@concepttocloud/saiku-embed 3.18.2 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -4
- package/package.json +1 -1
- package/saiku-embed.js +37 -35
- package/saiku-embed.js.map +1 -1
package/saiku-embed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>{throw TypeError(Oe)};var eB=(Oe,Re,Ze)=>Re in Oe?JR(Oe,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Oe[Re]=Ze;var Ne=(Oe,Re,Ze)=>eB(Oe,typeof Re!="symbol"?Re+"":Re,Ze),og=(Oe,Re,Ze)=>Re.has(Oe)||gx("Cannot "+Ze);var I=(Oe,Re,Ze)=>(og(Oe,Re,"read from private field"),Ze?Ze.call(Oe):Re.get(Oe)),ae=(Oe,Re,Ze)=>Re.has(Oe)?gx("Cannot add the same private member more than once"):Re instanceof WeakSet?Re.add(Oe):Re.set(Oe,Ze),ee=(Oe,Re,Ze,zo)=>(og(Oe,Re,"write to private field"),zo?zo.call(Oe,Ze):Re.set(Oe,Ze),Ze),he=(Oe,Re,Ze)=>(og(Oe,Re,"access private method"),Ze);var px,Io,_i,wa,Po,ko,Sa,No,Pn,hl,qt,cl,bi,un,fn,Oo,Ro,_e,sg,_l,lg,mx,yx,gh,tB,ug,Fo,Zt,vl,Sr,xa,Ht,xr,Et,Kt,kn,Ta,wi,Bo,dl,pl,Nn,dh,ke,_x,bx,Sx,fg,mh,yh,hg,cg,Vr,hn,jt,Ca,gl,ml,ph,On,Tr;typeof window<"u"&&((px=window.__svelte??(window.__svelte={})).v??(px.v=new Set)).add("5");const Re=1,Ze=2,zo=4,xx=8,Tx=16,Cx=2,vg="[",_h="[!",dg="[?",bh="]",Da={},Qe=Symbol(),Dx="http://www.w3.org/1999/xhtml",pg=!1;var gg=Array.isArray,Ex=Array.prototype.indexOf,Ea=Array.prototype.includes,bl=Array.from,wl=Object.keys,Sl=Object.defineProperty,Aa=Object.getOwnPropertyDescriptor,Ax=Object.prototype,Mx=Array.prototype,Lx=Object.getPrototypeOf,mg=Object.isExtensible;const Ix=()=>{};function Px(t){for(var e=0;e<t.length;e++)t[e]()}function yg(){var t,e,r=new Promise((n,i)=>{t=n,e=i});return{promise:r,resolve:t,reject:e}}const at=2,Ma=4,xl=8,_g=1<<24,Cr=16,Dr=32,vn=64,wh=128,Qt=512,Ke=1024,Je=2048,Fr=4096,bt=8192,Jt=16384,Bn=32768,Sh=1<<25,La=65536,Tl=1<<17,kx=1<<18,xi=1<<19,Nx=1<<20,zr=1<<25,Ti=65536,Cl=1<<21,Ia=1<<22,Vn=1<<23,Dl=Symbol("$state"),Ox=Symbol("legacy props"),Rx=Symbol("attributes"),xh=Symbol("class"),Th=Symbol("style"),Ho=Symbol("text"),El=new class extends Error{constructor(){super(...arguments);Ne(this,"name","StaleReactionError");Ne(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Al=3,Go=8;function Bx(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Vx(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Fx(t,e,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function zx(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hx(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gx(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Wx(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $x(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ux(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Yx(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Xx(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function qx(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function Zx(){console.warn("https://svelte.dev/e/derived_inert")}function Ml(t){console.warn("https://svelte.dev/e/hydration_mismatch")}function Kx(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let be=!1;function dn(t){be=t}let pe;function Mt(t){if(t===null)throw Ml(),Da;return pe=t}function Ll(){return Mt(Hr(pe))}function vt(t){if(be){if(Hr(pe)!==null)throw Ml(),Da;pe=t}}function jx(t=1){if(be){for(var e=t,r=pe;e--;)r=Hr(r);pe=r}}function Il(t=!0){for(var e=0,r=pe;;){if(r.nodeType===Go){var n=r.data;if(n===bh){if(e===0)return r;e-=1}else(n===vg||n===_h||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(e+=1)}var i=Hr(r);t&&r.remove(),r=i}}function bg(t){if(!t||t.nodeType!==Go)throw Ml(),Da;return t.data}function wg(t){return t===this.v}function Qx(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sg(t){return!Qx(t,this.v)}let Jx=!1,Lt=null;function Pa(t){Lt=t}function Wo(t,e=!1,r){Lt={p:Lt,i:!1,c:null,e:null,s:t,x:null,r:le,l:null}}function $o(t){var e=Lt,r=e.e;if(r!==null){e.e=null;for(var n of r)Xg(n)}return t!==void 0&&(e.x=t),e.i=!0,Lt=e.p,t??{}}function xg(){return!0}let Ci=[];function Tg(){var t=Ci;Ci=[],Px(t)}function Di(t){if(Ci.length===0&&!Uo){var e=Ci;queueMicrotask(()=>{e===Ci&&Tg()})}Ci.push(t)}function eT(){for(;Ci.length>0;)Tg()}function Cg(t){var e=le;if(e===null)return ce.f|=Vn,t;if((e.f&Bn)===0&&(e.f&Ma)===0)throw t;Fn(t,e)}function Fn(t,e){for(;e!==null;){if((e.f&wh)!==0){if((e.f&Bn)===0)throw t;try{e.b.error(t);return}catch(r){t=r}}e=e.parent}throw t}const tT=-7169;function ze(t,e){t.f=t.f&tT|e}function Ch(t){(t.f&Qt)!==0||t.deps===null?ze(t,Ke):ze(t,Fr)}function Dg(t){if(t!==null)for(const e of t)(e.f&at)===0||(e.f&Ti)===0||(e.f^=Ti,Dg(e.deps))}function Eg(t,e,r){(t.f&Je)!==0?e.add(t):(t.f&Fr)!==0&&r.add(t),Dg(t.deps),ze(t,Ke)}let Dh=null,ka=null,ve=null,Eh=null,Er=null,Ah=null,Uo=!1,Mh=!1,Na=null,Pl=null;var Ag=0,rB=new Set;let rT=1;const vh=class vh{constructor(){ae(this,_e);Ne(this,"id",rT++);ae(this,Io,!1);Ne(this,"linked",!0);ae(this,_i,null);ae(this,wa,null);Ne(this,"async_deriveds",new Map);Ne(this,"current",new Map);Ne(this,"previous",new Map);Ne(this,"unblocked",new Set);ae(this,Po,new Set);ae(this,ko,new Set);ae(this,Sa,new Set);ae(this,No,0);ae(this,Pn,new Map);ae(this,hl,null);ae(this,qt,[]);ae(this,cl,[]);ae(this,bi,new Set);ae(this,un,new Set);ae(this,fn,new Map);ae(this,Oo,new Set);Ne(this,"is_fork",!1);ae(this,Ro,!1)}skip_effect(e){I(this,fn).has(e)||I(this,fn).set(e,{d:[],m:[]}),I(this,Oo).delete(e)}unskip_effect(e,r=n=>this.schedule(n)){var n=I(this,fn).get(e);if(n){I(this,fn).delete(e);for(var i of n.d)ze(i,Je),r(i);for(i of n.m)ze(i,Fr),r(i)}I(this,Oo).add(e)}capture(e,r,n=!1){e.v!==Qe&&!this.previous.has(e)&&this.previous.set(e,e.v),(e.f&Vn)===0&&(this.current.set(e,[r,n]),Er?.set(e,r)),this.is_fork||(e.v=r)}activate(){ve=this}deactivate(){ve=null,Er=null}flush(){try{Mh=!0,ve=this,he(this,_e,_l).call(this)}finally{Ag=0,Ah=null,Na=null,Pl=null,Mh=!1,ve=null,Er=null,Ei.clear()}}discard(){for(const e of I(this,ko))e(this);I(this,ko).clear(),I(this,Sa).clear(),he(this,_e,Fo).call(this)}register_created_effect(e){I(this,cl).push(e)}increment(e,r){if(ee(this,No,I(this,No)+1),e){let n=I(this,Pn).get(r)??0;I(this,Pn).set(r,n+1)}}decrement(e,r){if(ee(this,No,I(this,No)-1),e){let n=I(this,Pn).get(r)??0;n===1?I(this,Pn).delete(r):I(this,Pn).set(r,n-1)}I(this,Ro)||(ee(this,Ro,!0),Di(()=>{ee(this,Ro,!1),this.linked&&this.flush()}))}transfer_effects(e,r){for(const n of e)I(this,bi).add(n);for(const n of r)I(this,un).add(n);e.clear(),r.clear()}oncommit(e){I(this,Po).add(e)}ondiscard(e){I(this,ko).add(e)}on_fork_commit(e){I(this,Sa).add(e)}run_fork_commit_callbacks(){for(const e of I(this,Sa))e(this);I(this,Sa).clear()}settled(){return(I(this,hl)??ee(this,hl,yg())).promise}static ensure(){var e;if(ve===null){const r=ve=new vh;he(e=r,_e,ug).call(e),!Mh&&!Uo&&Di(()=>{I(r,Io)||r.flush()})}return ve}apply(){{Er=null;return}}schedule(e){if(Ah=e,e.b?.is_pending&&(e.f&(Ma|xl|_g))!==0&&(e.f&Bn)===0){e.b.defer_effect(e);return}for(var r=e;r.parent!==null;){r=r.parent;var n=r.f;if(Na!==null&&r===le&&(ce===null||(ce.f&at)===0))return;if((n&(vn|Dr))!==0){if((n&Ke)===0)return;r.f^=Ke}}I(this,qt).push(r)}};Io=new WeakMap,_i=new WeakMap,wa=new WeakMap,Po=new WeakMap,ko=new WeakMap,Sa=new WeakMap,No=new WeakMap,Pn=new WeakMap,hl=new WeakMap,qt=new WeakMap,cl=new WeakMap,bi=new WeakMap,un=new WeakMap,fn=new WeakMap,Oo=new WeakMap,Ro=new WeakMap,_e=new WeakSet,sg=function(){if(this.is_fork)return!0;for(const n of I(this,Pn).keys()){for(var e=n,r=!1;e.parent!==null;){if(I(this,fn).has(e)){r=!0;break}e=e.parent}if(!r)return!0}return!1},_l=function(){var l,u,f;if(ee(this,Io,!0),Ag++>1e3&&(he(this,_e,Fo).call(this),nT()),!he(this,_e,sg).call(this)){for(const h of I(this,bi))I(this,un).delete(h),ze(h,Je),this.schedule(h);for(const h of I(this,un))ze(h,Fr),this.schedule(h)}const e=I(this,qt);ee(this,qt,[]),this.apply();var r=Na=[],n=[],i=Pl=[];for(const h of e)try{he(this,_e,lg).call(this,h,r,n)}catch(c){throw Pg(h),c}if(ve=null,i.length>0){var a=vh.ensure();for(const h of i)a.schedule(h)}if(Na=null,Pl=null,he(this,_e,sg).call(this)){he(this,_e,gh).call(this,n),he(this,_e,gh).call(this,r);for(const[h,c]of I(this,fn))Ig(h,c);i.length>0&&he(l=ve,_e,_l).call(l);return}const o=he(this,_e,mx).call(this);if(o){he(u=o,_e,yx).call(u,this);return}I(this,bi).clear(),I(this,un).clear();for(const h of I(this,Po))h(this);I(this,Po).clear(),Eh=this,Mg(n),Mg(r),Eh=null,I(this,hl)?.resolve();var s=ve;if(this.linked&&I(this,No)===0&&he(this,_e,Fo).call(this),I(this,qt).length>0){s===null&&(s=this,he(this,_e,ug).call(this));const h=s;I(h,qt).push(...I(this,qt).filter(c=>!I(h,qt).includes(c)))}s!==null&&he(f=s,_e,_l).call(f)},lg=function(e,r,n){e.f^=Ke;for(var i=e.first;i!==null;){var a=i.f,o=(a&(Dr|vn))!==0,s=o&&(a&Ke)!==0,l=s||(a&bt)!==0||I(this,fn).has(i);if(!l&&i.fn!==null){o?i.f^=Ke:(a&Ma)!==0?r.push(i):Xo(i)&&((a&Cr)!==0&&I(this,un).add(i),Va(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},mx=function(){for(var e=I(this,_i);e!==null;){if(!e.is_fork){for(const[r,[,n]]of this.current)if(e.current.has(r)&&!n)return e}e=I(e,_i)}return null},yx=function(e){var n;for(const[i,a]of e.current)!this.previous.has(i)&&e.previous.has(i)&&this.previous.set(i,e.previous.get(i)),this.current.set(i,a);for(const[i,a]of e.async_deriveds){const o=this.async_deriveds.get(i);o&&a.promise.then(o.resolve)}const r=i=>{var a=i.reactions;if(a!==null)for(const l of a){var o=l.f;if((o&at)!==0)r(l);else{var s=l;o&(Ia|Cr)&&!this.async_deriveds.has(s)&&(I(this,un).delete(s),ze(s,Je),this.schedule(s))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>e.discard()),he(n=e,_e,Fo).call(n),ve=this,he(this,_e,_l).call(this)},gh=function(e){for(var r=0;r<e.length;r+=1)Eg(e[r],I(this,bi),I(this,un))},tB=function(){var f;he(this,_e,Fo).call(this);for(let h=Dh;h!==null;h=I(h,wa)){var e=h.id<this.id,r=[];for(const[c,[v,d]]of this.current){if(h.current.has(c)){var n=h.current.get(c)[0];if(e&&v!==n)h.current.set(c,[v,d]);else continue}r.push(c)}if(e)for(const[c,v]of this.async_deriveds){const d=h.async_deriveds.get(c);d&&v.promise.then(d.resolve)}if(I(h,Io)){var i=[...h.current.keys()].filter(c=>!this.current.has(c));if(i.length===0)e&&h.discard();else if(r.length>0){if(e)for(const c of I(this,Oo))h.unskip_effect(c,v=>{var d;(v.f&(Cr|Ia))!==0?h.schedule(v):he(d=h,_e,gh).call(d,[v])});h.activate();var a=new Set,o=new Map;for(var s of r)Lg(s,i,a,o);o=new Map;var l=[...h.current.keys()].filter(c=>this.current.has(c)?this.current.get(c)[0]!==c.v:!0);if(l.length>0)for(const c of I(this,cl))(c.f&(Jt|bt|Tl))===0&&Lh(c,l,o)&&((c.f&(Ia|Cr))!==0?(ze(c,Je),h.schedule(c)):I(h,bi).add(c));if(I(h,qt).length>0){h.apply();for(var u of I(h,qt))he(f=h,_e,lg).call(f,u,[],[]);ee(h,qt,[])}h.deactivate()}}}},ug=function(){ka===null?Dh=ka=this:(ee(ka,wa,this),ee(this,_i,ka)),ka=this},Fo=function(){var e=I(this,_i),r=I(this,wa);e===null?Dh=r:ee(e,wa,r),r===null?ka=e:ee(r,_i,e),this.linked=!1};let zn=vh;function It(t){var e=Uo;Uo=!0;try{for(var r;;){if(eT(),ve===null)return r;ve.flush()}}finally{Uo=e}}function nT(){try{Wx()}catch(t){Fn(t,Ah)}}let pn=null;function Mg(t){var e=t.length;if(e!==0){for(var r=0;r<e;){var n=t[r++];if((n.f&(Jt|bt))===0&&Xo(n)&&(pn=new Set,Va(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&Kg(n),pn?.size>0)){Ei.clear();for(const i of pn){if((i.f&(Jt|bt))!==0)continue;const a=[i];let o=i.parent;for(;o!==null;)pn.has(o)&&(pn.delete(o),a.push(o)),o=o.parent;for(let s=a.length-1;s>=0;s--){const l=a[s];(l.f&(Jt|bt))===0&&Va(l)}}pn.clear()}}pn=null}}function Lg(t,e,r,n){if(!r.has(t)&&(r.add(t),t.reactions!==null))for(const i of t.reactions){const a=i.f;(a&at)!==0?Lg(i,e,r,n):(a&(Ia|Cr))!==0&&(a&Je)===0&&Lh(i,e,n)&&(ze(i,Je),Ih(i))}}function Lh(t,e,r){const n=r.get(t);if(n!==void 0)return n;if(t.deps!==null)for(const i of t.deps){if(Ea.call(e,i))return!0;if((i.f&at)!==0&&Lh(i,e,r))return r.set(i,!0),!0}return r.set(t,!1),!1}function Ih(t){ve.schedule(t)}function Ig(t,e){if(!((t.f&Dr)!==0&&(t.f&Ke)!==0)){(t.f&Je)!==0?e.d.push(t):(t.f&Fr)!==0&&e.m.push(t),ze(t,Ke);for(var r=t.first;r!==null;)Ig(r,e),r=r.next}}function Pg(t){ze(t,Ke);for(var e=t.first;e!==null;)Pg(e),e=e.next}function iT(t){let e=0,r=Ai(0),n;return()=>{Rh()&&(U(r),Bh(()=>(e===0&&(n=Gh(()=>t(()=>Yo(r)))),e+=1,()=>{Di(()=>{e-=1,e===0&&(n?.(),n=void 0,Yo(r))})})))}}var aT=La|xi;function oT(t,e,r,n){new sT(t,e,r,n)}class sT{constructor(e,r,n,i){ae(this,ke);Ne(this,"parent");Ne(this,"is_pending",!1);Ne(this,"transform_error");ae(this,Zt);ae(this,vl,be?pe:null);ae(this,Sr);ae(this,xa);ae(this,Ht);ae(this,xr,null);ae(this,Et,null);ae(this,Kt,null);ae(this,kn,null);ae(this,Ta,0);ae(this,wi,0);ae(this,Bo,!1);ae(this,dl,new Set);ae(this,pl,new Set);ae(this,Nn,null);ae(this,dh,iT(()=>(ee(this,Nn,Ai(I(this,Ta))),()=>{ee(this,Nn,null)})));ee(this,Zt,e),ee(this,Sr,r),ee(this,xa,a=>{var o=le;o.b=this,o.f|=wh,n(a)}),this.parent=le.b,this.transform_error=i??this.parent?.transform_error??(a=>a),ee(this,Ht,Vh(()=>{if(be){const a=I(this,vl);Ll();const o=a.data===_h;if(a.data.startsWith(dg)){const l=JSON.parse(a.data.slice(dg.length));he(this,ke,bx).call(this,l)}else o?he(this,ke,Sx).call(this):he(this,ke,_x).call(this)}else he(this,ke,fg).call(this)},aT)),be&&ee(this,Zt,pe)}defer_effect(e){Eg(e,I(this,dl),I(this,pl))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!I(this,Sr).pending}update_pending_count(e,r){he(this,ke,hg).call(this,e,r),ee(this,Ta,I(this,Ta)+e),!(!I(this,Nn)||I(this,Bo))&&(ee(this,Bo,!0),Di(()=>{ee(this,Bo,!1),I(this,Nn)&&Oa(I(this,Nn),I(this,Ta))}))}get_effect_pending(){return I(this,dh).call(this),U(I(this,Nn))}error(e){if(!I(this,Sr).onerror&&!I(this,Sr).failed)throw e;ve?.is_fork?(I(this,xr)&&ve.skip_effect(I(this,xr)),I(this,Et)&&ve.skip_effect(I(this,Et)),I(this,Kt)&&ve.skip_effect(I(this,Kt)),ve.on_fork_commit(()=>{he(this,ke,cg).call(this,e)})):he(this,ke,cg).call(this,e)}}Zt=new WeakMap,vl=new WeakMap,Sr=new WeakMap,xa=new WeakMap,Ht=new WeakMap,xr=new WeakMap,Et=new WeakMap,Kt=new WeakMap,kn=new WeakMap,Ta=new WeakMap,wi=new WeakMap,Bo=new WeakMap,dl=new WeakMap,pl=new WeakMap,Nn=new WeakMap,dh=new WeakMap,ke=new WeakSet,_x=function(){try{ee(this,xr,rr(()=>I(this,xa).call(this,I(this,Zt))))}catch(e){this.error(e)}},bx=function(e){const r=I(this,Sr).failed;r&&ee(this,Kt,rr(()=>{r(I(this,Zt),()=>e,()=>()=>{})}))},Sx=function(){const e=I(this,Sr).pending;e&&(this.is_pending=!0,ee(this,Et,rr(()=>e(I(this,Zt)))),Di(()=>{var r=ee(this,kn,document.createDocumentFragment()),n=er();r.append(n),ee(this,xr,he(this,ke,yh).call(this,()=>rr(()=>I(this,xa).call(this,n)))),I(this,wi)===0&&(I(this,Zt).before(r),ee(this,kn,null),Mi(I(this,Et),()=>{ee(this,Et,null)}),he(this,ke,mh).call(this,ve))}))},fg=function(){try{if(this.is_pending=this.has_pending_snippet(),ee(this,wi,0),ee(this,Ta,0),ee(this,xr,rr(()=>{I(this,xa).call(this,I(this,Zt))})),I(this,wi)>0){var e=ee(this,kn,document.createDocumentFragment());Hh(I(this,xr),e);const r=I(this,Sr).pending;ee(this,Et,rr(()=>r(I(this,Zt))))}else he(this,ke,mh).call(this,ve)}catch(r){this.error(r)}},mh=function(e){this.is_pending=!1,e.transfer_effects(I(this,dl),I(this,pl))},yh=function(e){var r=le,n=ce,i=Lt;$r(I(this,Ht)),nr(I(this,Ht)),Pa(I(this,Ht).ctx);try{return zn.ensure(),e()}catch(a){return Cg(a),null}finally{$r(r),nr(n),Pa(i)}},hg=function(e,r){var n;if(!this.has_pending_snippet()){this.parent&&he(n=this.parent,ke,hg).call(n,e,r);return}ee(this,wi,I(this,wi)+e),I(this,wi)===0&&(he(this,ke,mh).call(this,r),I(this,Et)&&Mi(I(this,Et),()=>{ee(this,Et,null)}),I(this,kn)&&(I(this,Zt).before(I(this,kn)),ee(this,kn,null)))},cg=function(e){I(this,xr)&&(wt(I(this,xr)),ee(this,xr,null)),I(this,Et)&&(wt(I(this,Et)),ee(this,Et,null)),I(this,Kt)&&(wt(I(this,Kt)),ee(this,Kt,null)),be&&(Mt(I(this,vl)),jx(),Mt(Il()));var r=I(this,Sr).onerror;let n=I(this,Sr).failed;var i=!1,a=!1;const o=()=>{if(i){Kx();return}i=!0,a&&qx(),I(this,Kt)!==null&&Mi(I(this,Kt),()=>{ee(this,Kt,null)}),he(this,ke,yh).call(this,()=>{he(this,ke,fg).call(this)})},s=l=>{try{a=!0,r?.(l,o),a=!1}catch(u){Fn(u,I(this,Ht)&&I(this,Ht).parent)}n&&ee(this,Kt,he(this,ke,yh).call(this,()=>{try{return rr(()=>{var u=le;u.b=this,u.f|=wh,n(I(this,Zt),()=>l,()=>o)})}catch(u){return Fn(u,I(this,Ht).parent),null}}))};Di(()=>{var l;try{l=this.transform_error(e)}catch(u){Fn(u,I(this,Ht)&&I(this,Ht).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(s,u=>Fn(u,I(this,Ht)&&I(this,Ht).parent)):s(l)})};function lT(t,e,r,n){const i=Nl;var a=t.filter(c=>!c.settled);if(r.length===0&&a.length===0){n(e.map(i));return}var o=le,s=uT(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(c=>c.promise)):null;function u(c){if((o.f&Jt)===0){s();try{n(c)}catch(v){Fn(v,o)}kl()}}var f=kg();if(r.length===0){l.then(()=>u(e.map(i))).finally(f);return}function h(){Promise.all(r.map(c=>fT(c))).then(c=>u([...e.map(i),...c])).catch(c=>Fn(c,o)).finally(f)}l?l.then(()=>{s(),h(),kl()}):h()}function uT(){var t=le,e=ce,r=Lt,n=ve;return function(a=!0){$r(t),nr(e),Pa(r),a&&(t.f&Jt)===0&&(n?.activate(),n?.apply())}}function kl(t=!0){$r(null),nr(null),Pa(null),t&&ve?.deactivate()}function kg(){var t=le,e=t.b,r=ve,n=e.is_rendered();return e.update_pending_count(1,r),r.increment(n,t),()=>{e.update_pending_count(-1,r),r.decrement(n,t)}}function Nl(t){var e=at|Je;return le!==null&&(le.f|=xi),{ctx:Lt,deps:null,effects:null,equals:wg,f:e,fn:t,reactions:null,rv:0,v:Qe,wv:0,parent:le,ac:null}}const Ol=Symbol("obsolete");function fT(t,e,r){let n=le;n===null&&Vx();var i=void 0,a=Ai(Qe),o=!ce,s=new Set;return bT(()=>{var l=le,u=yg();i=u.promise;try{Promise.resolve(t()).then(u.resolve,v=>{v!==El&&u.reject(v)}).finally(kl)}catch(v){u.reject(v),kl()}var f=ve;if(o){if((l.f&Bn)!==0)var h=kg();if(n.b.is_rendered())f.async_deriveds.get(l)?.reject(Ol);else for(const v of s.values())v.reject(Ol);s.add(u),f.async_deriveds.set(l,u)}const c=(v,d=void 0)=>{h?.(),s.delete(u),d!==Ol&&(f.activate(),d?(a.f|=Vn,Oa(a,d)):((a.f&Vn)!==0&&(a.f^=Vn),Oa(a,v)),f.deactivate())};u.promise.then(c,v=>c(null,v||"unknown"))}),mT(()=>{for(const l of s)l.reject(Ol)}),new Promise(l=>{function u(f){function h(){f===i?l(a):u(i)}f.then(h,h)}u(i)})}function Rl(t){const e=Nl(t);return em(e),e}function hT(t){const e=Nl(t);return e.equals=Sg,e}function cT(t){var e=t.effects;if(e!==null){t.effects=null;for(var r=0;r<e.length;r+=1)wt(e[r])}}function Ph(t){var e,r=le,n=t.parent;if(!gn&&n!==null&&(n.f&(Jt|bt))!==0)return Zx(),t.v;$r(n);try{t.f&=~Ti,cT(t),e=am(t)}finally{$r(r)}return e}function Ng(t){var e=Ph(t);if(!t.equals(e)&&(t.wv=nm(),(!ve?.is_fork||t.deps===null)&&(ve!==null?(ve.capture(t,e,!0),Eh?.capture(t,e,!0)):t.v=e,t.deps===null))){ze(t,Ke);return}gn||(Er!==null?(Rh()||ve?.is_fork)&&Er.set(t,e):Ch(t))}function vT(t){if(t.effects!==null)for(const e of t.effects)(e.teardown||e.ac)&&(e.teardown?.(),e.ac?.abort(El),e.teardown=Ix,e.ac=null,qo(e,0),Fh(e))}function Og(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Va(e)}let Bl=new Set;const Ei=new Map;let Rg=!1;function Ai(t,e){var r={f:0,v:t,reactions:null,equals:wg,rv:0,wv:0};return r}function dt(t,e){const r=Ai(t);return em(r),r}function Bg(t,e=!1,r=!0){const n=Ai(t);return e||(n.equals=Sg),n}function ge(t,e,r=!1){ce!==null&&(!Ar||(ce.f&Tl)!==0)&&xg()&&(ce.f&(at|Cr|Ia|Tl))!==0&&(ir===null||!Ea.call(ir,t))&&Xx();let n=r?Ra(e):e;return Oa(t,n,Pl)}function Oa(t,e,r=null){if(!t.equals(e)){Ei.set(t,gn?e:t.v);var n=zn.ensure();if(n.capture(t,e),(t.f&at)!==0){const i=t;(t.f&Je)!==0&&Ph(i),Er===null&&Ch(i)}t.wv=nm(),Vg(t,Je,r),le!==null&&(le.f&Ke)!==0&&(le.f&(Dr|vn))===0&&(ar===null?xT([t]):ar.push(t)),!n.is_fork&&Bl.size>0&&!Rg&&dT()}return e}function dT(){Rg=!1;for(const t of Bl){(t.f&Ke)!==0&&ze(t,Fr);let e;try{e=Xo(t)}catch{e=!0}e&&Va(t)}Bl.clear()}function Yo(t){ge(t,t.v+1)}function Vg(t,e,r){var n=t.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f,l=(s&Je)===0;if(l&&ze(o,e),(s&Tl)!==0)Bl.add(o);else if((s&at)!==0){var u=o;Er?.delete(u),(s&Ti)===0&&(s&Qt&&(le===null||(le.f&Cl)===0)&&(o.f|=Ti),Vg(u,Fr,r))}else if(l){var f=o;(s&Cr)!==0&&pn!==null&&pn.add(f),r!==null?r.push(f):Ih(f)}}}function Ra(t){if(typeof t!="object"||t===null||Dl in t)return t;const e=Lx(t);if(e!==Ax&&e!==Mx)return t;var r=new Map,n=gg(t),i=dt(0),a=Ii,o=s=>{if(Ii===a)return s();var l=ce,u=Ii;nr(null),rm(a);var f=s();return nr(l),rm(u),f};return n&&r.set("length",dt(t.length)),new Proxy(t,{defineProperty(s,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Ux();var f=r.get(l);return f===void 0?o(()=>{var h=dt(u.value);return r.set(l,h),h}):ge(f,u.value,!0),!0},deleteProperty(s,l){var u=r.get(l);if(u===void 0){if(l in s){const f=o(()=>dt(Qe));r.set(l,f),Yo(i)}}else ge(u,Qe),Yo(i);return!0},get(s,l,u){if(l===Dl)return t;var f=r.get(l),h=l in s;if(f===void 0&&(!h||Aa(s,l)?.writable)&&(f=o(()=>{var v=Ra(h?s[l]:Qe),d=dt(v);return d}),r.set(l,f)),f!==void 0){var c=U(f);return c===Qe?void 0:c}return Reflect.get(s,l,u)},getOwnPropertyDescriptor(s,l){var u=Reflect.getOwnPropertyDescriptor(s,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=U(f))}else if(u===void 0){var h=r.get(l),c=h?.v;if(h!==void 0&&c!==Qe)return{enumerable:!0,configurable:!0,value:c,writable:!0}}return u},has(s,l){if(l===Dl)return!0;var u=r.get(l),f=u!==void 0&&u.v!==Qe||Reflect.has(s,l);if(u!==void 0||le!==null&&(!f||Aa(s,l)?.writable)){u===void 0&&(u=o(()=>{var c=f?Ra(s[l]):Qe,v=dt(c);return v}),r.set(l,u));var h=U(u);if(h===Qe)return!1}return f},set(s,l,u,f){var h=r.get(l),c=l in s;if(n&&l==="length")for(var v=u;v<h.v;v+=1){var d=r.get(v+"");d!==void 0?ge(d,Qe):v in s&&(d=o(()=>dt(Qe)),r.set(v+"",d))}if(h===void 0)(!c||Aa(s,l)?.writable)&&(h=o(()=>dt(void 0)),ge(h,Ra(u)),r.set(l,h));else{c=h.v!==Qe;var m=o(()=>Ra(u));ge(h,m)}var p=Reflect.getOwnPropertyDescriptor(s,l);if(p?.set&&p.set.call(f,u),!c){if(n&&typeof l=="string"){var g=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=g.v&&ge(g,y+1)}Yo(i)}return!0},ownKeys(s){U(i);var l=Reflect.ownKeys(s).filter(h=>{var c=r.get(h);return c===void 0||c.v!==Qe});for(var[u,f]of r)f.v!==Qe&&!(u in s)&&l.push(u);return l},setPrototypeOf(){Yx()}})}var Fg,zg,Hg,Gg;function kh(){if(Fg===void 0){Fg=window,zg=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,r=Text.prototype;Hg=Aa(e,"firstChild").get,Gg=Aa(e,"nextSibling").get,mg(t)&&(t[xh]=void 0,t[Rx]=null,t[Th]=void 0,t.__e=void 0),mg(r)&&(r[Ho]=void 0)}}function er(t=""){return document.createTextNode(t)}function Ba(t){return Hg.call(t)}function Hr(t){return Gg.call(t)}function tr(t,e){if(!be)return Ba(t);var r=Ba(pe);if(r===null)r=pe.appendChild(er());else if(e&&r.nodeType!==Al){var n=er();return r?.before(n),Mt(n),n}return e&&Oh(r),Mt(r),r}function Vl(t,e=!1){if(!be){var r=Ba(t);return r instanceof Comment&&r.data===""?Hr(r):r}if(e){if(pe?.nodeType!==Al){var n=er();return pe?.before(n),Mt(n),n}Oh(pe)}return pe}function Wg(t,e=1,r=!1){let n=be?pe:t;for(var i;e--;)i=n,n=Hr(n);if(!be)return n;if(r){if(n?.nodeType!==Al){var a=er();return n===null?i?.after(a):n.before(a),Mt(a),a}Oh(n)}return Mt(n),n}function $g(t){t.textContent=""}function Ug(){return!1}function Nh(t,e,r){return document.createElementNS(Dx,t,void 0)}function Oh(t){if(t.nodeValue.length<65536)return;let e=t.nextSibling;for(;e!==null&&e.nodeType===Al;)e.remove(),t.nodeValue+=e.nodeValue,e=t.nextSibling}function Yg(t){var e=ce,r=le;nr(null),$r(null);try{return t()}finally{nr(e),$r(r)}}function pT(t){le===null&&(ce===null&&Gx(),Hx()),gn&&zx()}function gT(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function Gr(t,e){var r=le;r!==null&&(r.f&bt)!==0&&(t|=bt);var n={ctx:Lt,deps:null,nodes:null,f:t|Je|Qt,first:null,fn:e,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ve?.register_created_effect(n);var i=n;if((t&Ma)!==0)Na!==null?Na.push(n):zn.ensure().schedule(n);else if(e!==null){try{Va(n)}catch(o){throw wt(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&xi)===0&&(i=i.first,(t&Cr)!==0&&(t&La)!==0&&i!==null&&(i.f|=La))}if(i!==null&&(i.parent=r,r!==null&&gT(i,r),ce!==null&&(ce.f&at)!==0&&(t&vn)===0)){var a=ce;(a.effects??(a.effects=[])).push(i)}return n}function Rh(){return ce!==null&&!Ar}function mT(t){const e=Gr(xl,null);return ze(e,Ke),e.teardown=t,e}function Fl(t){pT();var e=le.f,r=!ce&&(e&Dr)!==0&&(e&Bn)===0;if(r){var n=Lt;(n.e??(n.e=[])).push(t)}else return Xg(t)}function Xg(t){return Gr(Ma|Nx,t)}function yT(t){zn.ensure();const e=Gr(vn|xi,t);return()=>{wt(e)}}function _T(t){zn.ensure();const e=Gr(vn|xi,t);return(r={})=>new Promise(n=>{r.outro?Mi(e,()=>{wt(e),n(void 0)}):(wt(e),n(void 0))})}function qg(t){return Gr(Ma,t)}function bT(t){return Gr(Ia|xi,t)}function Bh(t,e=0){return Gr(xl|e,t)}function Wr(t,e=[],r=[],n=[]){lT(n,e,r,i=>{Gr(xl,()=>t(...i.map(U)))})}function Vh(t,e=0){var r=Gr(Cr|e,t);return r}function rr(t){return Gr(Dr|xi,t)}function Zg(t){var e=t.teardown;if(e!==null){const r=gn,n=ce;Jg(!0),nr(null);try{e.call(null)}finally{Jg(r),nr(n)}}}function Fh(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){const i=r.ac;i!==null&&Yg(()=>{i.abort(El)});var n=r.next;(r.f&vn)!==0?r.parent=null:wt(r,e),r=n}}function wT(t){for(var e=t.first;e!==null;){var r=e.next;(e.f&Dr)===0&&wt(e),e=r}}function wt(t,e=!0){var r=!1;(e||(t.f&kx)!==0)&&t.nodes!==null&&t.nodes.end!==null&&(ST(t.nodes.start,t.nodes.end),r=!0),ze(t,Sh),Fh(t,e&&!r),qo(t,0);var n=t.nodes&&t.nodes.t;if(n!==null)for(const a of n)a.stop();Zg(t),t.f^=Sh,t.f|=Jt;var i=t.parent;i!==null&&i.first!==null&&Kg(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function ST(t,e){for(;t!==null;){var r=t===e?null:Hr(t);t.remove(),t=r}}function Kg(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Mi(t,e,r=!0){var n=[];jg(t,n,!0);var i=()=>{r&&wt(t),e&&e()},a=n.length;if(a>0){var o=()=>--a||i();for(var s of n)s.out(o)}else i()}function jg(t,e,r){if((t.f&bt)===0){t.f^=bt;var n=t.nodes&&t.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&e.push(s);for(var i=t.first;i!==null;){var a=i.next;if((i.f&vn)===0){var o=(i.f&La)!==0||(i.f&Dr)!==0&&(t.f&Cr)!==0;jg(i,e,o?r:!1)}i=a}}}function zh(t){Qg(t,!0)}function Qg(t,e){if((t.f&bt)!==0){t.f^=bt,(t.f&Ke)===0&&(ze(t,Je),zn.ensure().schedule(t));for(var r=t.first;r!==null;){var n=r.next,i=(r.f&La)!==0||(r.f&Dr)!==0;Qg(r,i?e:!1),r=n}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Hh(t,e){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end;r!==null;){var i=r===n?null:Hr(r);e.append(r),r=i}}let zl=!1,gn=!1;function Jg(t){gn=t}let ce=null,Ar=!1;function nr(t){ce=t}let le=null;function $r(t){le=t}let ir=null;function em(t){ce!==null&&(ir===null?ir=[t]:ir.push(t))}let Pt=null,Gt=0,ar=null;function xT(t){ar=t}let tm=1,Li=0,Ii=Li;function rm(t){Ii=t}function nm(){return++tm}function Xo(t){var e=t.f;if((e&Je)!==0)return!0;if(e&at&&(t.f&=~Ti),(e&Fr)!==0){for(var r=t.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(Xo(a)&&Ng(a),a.wv>t.wv)return!0}(e&Qt)!==0&&Er===null&&ze(t,Ke)}return!1}function im(t,e,r=!0){var n=t.reactions;if(n!==null&&!(ir!==null&&Ea.call(ir,t)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&at)!==0?im(a,e,!1):e===a&&(r?ze(a,Je):(a.f&Ke)!==0&&ze(a,Fr),Ih(a))}}function am(t){var m;var e=Pt,r=Gt,n=ar,i=ce,a=ir,o=Lt,s=Ar,l=Ii,u=t.f;Pt=null,Gt=0,ar=null,ce=(u&(Dr|vn))===0?t:null,ir=null,Pa(t.ctx),Ar=!1,Ii=++Li,t.ac!==null&&(Yg(()=>{t.ac.abort(El)}),t.ac=null);try{t.f|=Cl;var f=t.fn,h=f();t.f|=Bn;var c=t.deps,v=ve?.is_fork;if(Pt!==null){var d;if(v||qo(t,Gt),c!==null&&Gt>0)for(c.length=Gt+Pt.length,d=0;d<Pt.length;d++)c[Gt+d]=Pt[d];else t.deps=c=Pt;if(Rh()&&(t.f&Qt)!==0)for(d=Gt;d<c.length;d++)((m=c[d]).reactions??(m.reactions=[])).push(t)}else!v&&c!==null&&Gt<c.length&&(qo(t,Gt),c.length=Gt);if(xg()&&ar!==null&&!Ar&&c!==null&&(t.f&(at|Fr|Je))===0)for(d=0;d<ar.length;d++)im(ar[d],t);if(i!==null&&i!==t){if(Li++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=Li;if(e!==null)for(const p of e)p.rv=Li;ar!==null&&(n===null?n=ar:n.push(...ar))}return(t.f&Vn)!==0&&(t.f^=Vn),h}catch(p){return Cg(p)}finally{t.f^=Cl,Pt=e,Gt=r,ar=n,ce=i,ir=a,Pa(o),Ar=s,Ii=l}}function TT(t,e){let r=e.reactions;if(r!==null){var n=Ex.call(r,t);if(n!==-1){var i=r.length-1;i===0?r=e.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(e.f&at)!==0&&(Pt===null||!Ea.call(Pt,e))){var a=e;(a.f&Qt)!==0&&(a.f^=Qt,a.f&=~Ti),a.v!==Qe&&Ch(a),vT(a),qo(a,0)}}function qo(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)TT(t,r[n])}function Va(t){var e=t.f;if((e&Jt)===0){ze(t,Ke);var r=le,n=zl;le=t,zl=!0;try{(e&(Cr|_g))!==0?wT(t):Fh(t),Zg(t);var i=am(t);t.teardown=typeof i=="function"?i:null,t.wv=tm;var a;pg&&Jx&&(t.f&Je)!==0&&t.deps}finally{zl=n,le=r}}}function U(t){var e=t.f,r=(e&at)!==0;if(ce!==null&&!Ar){var n=le!==null&&(le.f&Jt)!==0;if(!n&&(ir===null||!Ea.call(ir,t))){var i=ce.deps;if((ce.f&Cl)!==0)t.rv<Li&&(t.rv=Li,Pt===null&&i!==null&&i[Gt]===t?Gt++:Pt===null?Pt=[t]:Pt.push(t));else{(ce.deps??(ce.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[ce]:Ea.call(a,ce)||a.push(ce)}}}if(gn&&Ei.has(t))return Ei.get(t);if(r){var o=t;if(gn){var s=o.v;return((o.f&Ke)===0&&o.reactions!==null||sm(o))&&(s=Ph(o)),Ei.set(o,s),s}var l=(o.f&Qt)===0&&!Ar&&ce!==null&&(zl||(ce.f&Qt)!==0),u=(o.f&Bn)===0;Xo(o)&&(l&&(o.f|=Qt),Ng(o)),l&&!u&&(Og(o),om(o))}if(Er?.has(t))return Er.get(t);if((t.f&Vn)!==0)throw t.v;return t.v}function om(t){if(t.f|=Qt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),(e.f&at)!==0&&(e.f&Qt)===0&&(Og(e),om(e))}function sm(t){if(t.v===Qe)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Ei.has(e)||(e.f&at)!==0&&sm(e))return!0;return!1}function Gh(t){var e=Ar;try{return Ar=!0,t()}finally{Ar=e}}const Hl=Symbol("events"),CT=new Set,lm=new Set;let um=null;function fm(t){var e=this,r=e.ownerDocument,n=t.type,i=t.composedPath?.()||[],a=i[0]||t.target;um=t;var o=0,s=um===t&&t[Hl];if(s){var l=i.indexOf(s);if(l!==-1&&(e===document||e===window)){t[Hl]=e;return}var u=i.indexOf(e);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||t.target,a!==e){Sl(t,"currentTarget",{configurable:!0,get(){return a||r}});var f=ce,h=le;nr(null),$r(null);try{for(var c,v=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var m=a[Hl]?.[n];m!=null&&(!a.disabled||t.target===a)&&m.call(a,t)}catch(p){c?v.push(p):c=p}if(t.cancelBubble||d===e||d===null)break;a=d}if(c){for(let p of v)queueMicrotask(()=>{throw p});throw c}}finally{t[Hl]=e,delete t.currentTarget,nr(f),$r(h)}}}const DT=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function ET(t){return DT?.createHTML(t)??t}function AT(t){var e=Nh("template");return e.innerHTML=ET(t.replaceAll("<!>","<!---->")),e.content}function Zo(t,e){var r=le;r.nodes===null&&(r.nodes={start:t,end:e,a:null,t:null})}function Xe(t,e){var r=(e&Cx)!==0,n,i=!t.startsWith("<!>");return()=>{if(be)return Zo(pe,null),pe;n===void 0&&(n=AT(i?t:"<!>"+t),n=Ba(n));var a=r||zg?document.importNode(n,!0):n.cloneNode(!0);return Zo(a,a),a}}function Gl(){if(be)return Zo(pe,null),pe;var t=document.createDocumentFragment(),e=document.createComment(""),r=er();return t.append(e,r),Zo(e,r),t}function Ie(t,e){if(be){var r=le;((r.f&Bn)===0||r.nodes.end===null)&&(r.nodes.end=pe),Ll();return}t!==null&&t.before(e)}const MT=["touchstart","touchmove"];function LT(t){return MT.includes(t)}function Pi(t,e){var r=e==null?"":typeof e=="object"?`${e}`:e;r!==(t[Ho]??(t[Ho]=t.nodeValue))&&(t[Ho]=r,t.nodeValue=`${r}`)}function hm(t,e){return cm(t,e)}function IT(t,e){kh(),e.intro=e.intro??!1;const r=e.target,n=be,i=pe;try{for(var a=Ba(r);a&&(a.nodeType!==Go||a.data!==vg);)a=Hr(a);if(!a)throw Da;dn(!0),Mt(a);const o=cm(t,{...e,anchor:a});return dn(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
-
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw o;return o!==
|
|
3
|
-
\r\f \v\uFEFF`];function
|
|
1
|
+
var SaikuEmbed=(function(){"use strict";var VB=Object.defineProperty;var xx=zt=>{throw TypeError(zt)};var WB=(zt,Ht,re)=>Ht in zt?VB(zt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:re}):zt[Ht]=re;var Ft=(zt,Ht,re)=>WB(zt,typeof Ht!="symbol"?Ht+"":Ht,re),ig=(zt,Ht,re)=>Ht.has(zt)||xx("Cannot "+re);var P=(zt,Ht,re)=>(ig(zt,Ht,"read from private field"),re?re.call(zt):Ht.get(zt)),ot=(zt,Ht,re)=>Ht.has(zt)?xx("Cannot add the same private member more than once"):Ht instanceof WeakSet?Ht.add(zt):Ht.set(zt,re),et=(zt,Ht,re,zo)=>(ig(zt,Ht,"write to private field"),zo?zo.call(zt,re):Ht.set(zt,re),re),gt=(zt,Ht,re)=>(ig(zt,Ht,"access private method"),re);var Sx,ko,Si,Da,Io,Po,Aa,Eo,In,pl,qe,gl,xi,ln,un,Ro,Oo,xt,ag,xl,og,Tx,Cx,vh,$B,sg,Fo,Ze,ml,br,Ma,Ge,wr,Le,Ke,Pn,La,Ti,No,yl,_l,En,hh,Bt,Dx,Ax,Mx,lg,dh,ph,ug,fg,Br,fn,je,ka,bl,wl,ch,Rn,Sr;typeof window<"u"&&((Sx=window.__svelte??(window.__svelte={})).v??(Sx.v=new Set)).add("5");const Ht=1,re=2,zo=4,Lx=8,kx=16,Ix=1,Px=2,hg="[",gh="[!",cg="[?",mh="]",Ia={},ae=Symbol(),vg="http://www.w3.org/1999/xhtml",dg=!1;var pg=Array.isArray,Ex=Array.prototype.indexOf,Pa=Array.prototype.includes,Tl=Array.from,Cl=Object.keys,Dl=Object.defineProperty,Ea=Object.getOwnPropertyDescriptor,Rx=Object.getOwnPropertyDescriptors,Ox=Object.prototype,Nx=Array.prototype,gg=Object.getPrototypeOf,mg=Object.isExtensible;const Bx=()=>{};function Fx(e){for(var t=0;t<e.length;t++)e[t]()}function yg(){var e,t,r=new Promise((n,i)=>{e=n,t=i});return{promise:r,resolve:e,reject:t}}const ce=2,Ra=4,Al=8,_g=1<<24,xr=16,Tr=32,cn=64,yh=128,Qe=512,ne=1024,oe=2048,Fr=4096,Se=8192,Je=16384,Nn=32768,_h=1<<25,Oa=65536,Ml=1<<17,zx=1<<18,Di=1<<19,Hx=1<<20,zr=1<<25,Ai=65536,Ll=1<<21,Na=1<<22,Bn=1<<23,kl=Symbol("$state"),Gx=Symbol("legacy props"),Vx=Symbol(""),Il=Symbol("attributes"),bh=Symbol("class"),wh=Symbol("style"),Ho=Symbol("text"),Go=Symbol("form reset"),Pl=new class extends Error{constructor(){super(...arguments);Ft(this,"name","StaleReactionError");Ft(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Wx=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml"),El=3,Vo=8;function $x(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ux(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Yx(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Xx(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qx(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Zx(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Kx(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function jx(){throw new Error("https://svelte.dev/e/hydration_failed")}function Qx(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jx(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function tT(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function eT(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}function rT(){console.warn("https://svelte.dev/e/derived_inert")}function Rl(e){console.warn("https://svelte.dev/e/hydration_mismatch")}function nT(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let yt=!1;function vn(e){yt=e}let wt;function ke(e){if(e===null)throw Rl(),Ia;return wt=e}function Ol(){return ke(Gr(wt))}function st(e){if(yt){if(Gr(wt)!==null)throw Rl(),Ia;wt=e}}function iT(e=1){if(yt){for(var t=e,r=wt;t--;)r=Gr(r);wt=r}}function Nl(e=!0){for(var t=0,r=wt;;){if(r.nodeType===Vo){var n=r.data;if(n===mh){if(t===0)return r;t-=1}else(n===hg||n===gh||n[0]==="["&&!isNaN(Number(n.slice(1))))&&(t+=1)}var i=Gr(r);e&&r.remove(),r=i}}function bg(e){if(!e||e.nodeType!==Vo)throw Rl(),Ia;return e.data}function wg(e){return e===this.v}function aT(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sg(e){return!aT(e,this.v)}let oT=!1,Ie=null;function Ba(e){Ie=e}function Fn(e,t=!1,r){Ie={p:Ie,i:!1,c:null,e:null,s:e,x:null,r:ct,l:null}}function zn(e){var t=Ie,r=t.e;if(r!==null){t.e=null;for(var n of r)qg(n)}return e!==void 0&&(t.x=e),t.i=!0,Ie=t.p,e??{}}function xg(){return!0}let Mi=[];function Tg(){var e=Mi;Mi=[],Fx(e)}function dn(e){if(Mi.length===0&&!Wo){var t=Mi;queueMicrotask(()=>{t===Mi&&Tg()})}Mi.push(e)}function sT(){for(;Mi.length>0;)Tg()}function Cg(e){var t=ct;if(t===null)return mt.f|=Bn,e;if((t.f&Nn)===0&&(t.f&Ra)===0)throw e;Hn(e,t)}function Hn(e,t){for(;t!==null;){if((t.f&yh)!==0){if((t.f&Nn)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const lT=-7169;function Xt(e,t){e.f=e.f&lT|t}function Sh(e){(e.f&Qe)!==0||e.deps===null?Xt(e,ne):Xt(e,Fr)}function Dg(e){if(e!==null)for(const t of e)(t.f&ce)===0||(t.f&Ai)===0||(t.f^=Ai,Dg(t.deps))}function Ag(e,t,r){(e.f&oe)!==0?t.add(e):(e.f&Fr)!==0&&r.add(e),Dg(e.deps),Xt(e,ne)}let xh=null,Fa=null,ht=null,Th=null,Cr=null,Ch=null,Wo=!1,Dh=!1,za=null,Bl=null;var Mg=0,UB=new Set;let uT=1;const fh=class fh{constructor(){ot(this,xt);Ft(this,"id",uT++);ot(this,ko,!1);Ft(this,"linked",!0);ot(this,Si,null);ot(this,Da,null);Ft(this,"async_deriveds",new Map);Ft(this,"current",new Map);Ft(this,"previous",new Map);Ft(this,"unblocked",new Set);ot(this,Io,new Set);ot(this,Po,new Set);ot(this,Aa,new Set);ot(this,Eo,0);ot(this,In,new Map);ot(this,pl,null);ot(this,qe,[]);ot(this,gl,[]);ot(this,xi,new Set);ot(this,ln,new Set);ot(this,un,new Map);ot(this,Ro,new Set);Ft(this,"is_fork",!1);ot(this,Oo,!1)}skip_effect(t){P(this,un).has(t)||P(this,un).set(t,{d:[],m:[]}),P(this,Ro).delete(t)}unskip_effect(t,r=n=>this.schedule(n)){var n=P(this,un).get(t);if(n){P(this,un).delete(t);for(var i of n.d)Xt(i,oe),r(i);for(i of n.m)Xt(i,Fr),r(i)}P(this,Ro).add(t)}capture(t,r,n=!1){t.v!==ae&&!this.previous.has(t)&&this.previous.set(t,t.v),(t.f&Bn)===0&&(this.current.set(t,[r,n]),Cr?.set(t,r)),this.is_fork||(t.v=r)}activate(){ht=this}deactivate(){ht=null,Cr=null}flush(){try{Dh=!0,ht=this,gt(this,xt,xl).call(this)}finally{Mg=0,Ch=null,za=null,Bl=null,Dh=!1,ht=null,Cr=null,Li.clear()}}discard(){for(const t of P(this,Po))t(this);P(this,Po).clear(),P(this,Aa).clear(),gt(this,xt,Fo).call(this)}register_created_effect(t){P(this,gl).push(t)}increment(t,r){if(et(this,Eo,P(this,Eo)+1),t){let n=P(this,In).get(r)??0;P(this,In).set(r,n+1)}}decrement(t,r){if(et(this,Eo,P(this,Eo)-1),t){let n=P(this,In).get(r)??0;n===1?P(this,In).delete(r):P(this,In).set(r,n-1)}P(this,Oo)||(et(this,Oo,!0),dn(()=>{et(this,Oo,!1),this.linked&&this.flush()}))}transfer_effects(t,r){for(const n of t)P(this,xi).add(n);for(const n of r)P(this,ln).add(n);t.clear(),r.clear()}oncommit(t){P(this,Io).add(t)}ondiscard(t){P(this,Po).add(t)}on_fork_commit(t){P(this,Aa).add(t)}run_fork_commit_callbacks(){for(const t of P(this,Aa))t(this);P(this,Aa).clear()}settled(){return(P(this,pl)??et(this,pl,yg())).promise}static ensure(){var t;if(ht===null){const r=ht=new fh;gt(t=r,xt,sg).call(t),!Dh&&!Wo&&dn(()=>{P(r,ko)||r.flush()})}return ht}apply(){{Cr=null;return}}schedule(t){if(Ch=t,t.b?.is_pending&&(t.f&(Ra|Al|_g))!==0&&(t.f&Nn)===0){t.b.defer_effect(t);return}for(var r=t;r.parent!==null;){r=r.parent;var n=r.f;if(za!==null&&r===ct&&(mt===null||(mt.f&ce)===0))return;if((n&(cn|Tr))!==0){if((n&ne)===0)return;r.f^=ne}}P(this,qe).push(r)}};ko=new WeakMap,Si=new WeakMap,Da=new WeakMap,Io=new WeakMap,Po=new WeakMap,Aa=new WeakMap,Eo=new WeakMap,In=new WeakMap,pl=new WeakMap,qe=new WeakMap,gl=new WeakMap,xi=new WeakMap,ln=new WeakMap,un=new WeakMap,Ro=new WeakMap,Oo=new WeakMap,xt=new WeakSet,ag=function(){if(this.is_fork)return!0;for(const n of P(this,In).keys()){for(var t=n,r=!1;t.parent!==null;){if(P(this,un).has(t)){r=!0;break}t=t.parent}if(!r)return!0}return!1},xl=function(){var l,u,f;if(et(this,ko,!0),Mg++>1e3&&(gt(this,xt,Fo).call(this),fT()),!gt(this,xt,ag).call(this)){for(const h of P(this,xi))P(this,ln).delete(h),Xt(h,oe),this.schedule(h);for(const h of P(this,ln))Xt(h,Fr),this.schedule(h)}const t=P(this,qe);et(this,qe,[]),this.apply();var r=za=[],n=[],i=Bl=[];for(const h of t)try{gt(this,xt,og).call(this,h,r,n)}catch(v){throw Pg(h),v}if(ht=null,i.length>0){var a=fh.ensure();for(const h of i)a.schedule(h)}if(za=null,Bl=null,gt(this,xt,ag).call(this)){gt(this,xt,vh).call(this,n),gt(this,xt,vh).call(this,r);for(const[h,v]of P(this,un))Ig(h,v);i.length>0&>(l=ht,xt,xl).call(l);return}const o=gt(this,xt,Tx).call(this);if(o){gt(u=o,xt,Cx).call(u,this);return}P(this,xi).clear(),P(this,ln).clear();for(const h of P(this,Io))h(this);P(this,Io).clear(),Th=this,Lg(n),Lg(r),Th=null,P(this,pl)?.resolve();var s=ht;if(this.linked&&P(this,Eo)===0&>(this,xt,Fo).call(this),P(this,qe).length>0){s===null&&(s=this,gt(this,xt,sg).call(this));const h=s;P(h,qe).push(...P(this,qe).filter(v=>!P(h,qe).includes(v)))}s!==null&>(f=s,xt,xl).call(f)},og=function(t,r,n){t.f^=ne;for(var i=t.first;i!==null;){var a=i.f,o=(a&(Tr|cn))!==0,s=o&&(a&ne)!==0,l=s||(a&Se)!==0||P(this,un).has(i);if(!l&&i.fn!==null){o?i.f^=ne:(a&Ra)!==0?r.push(i):Uo(i)&&((a&xr)!==0&&P(this,ln).add(i),Va(i));var u=i.first;if(u!==null){i=u;continue}}for(;i!==null;){var f=i.next;if(f!==null){i=f;break}i=i.parent}}},Tx=function(){for(var t=P(this,Si);t!==null;){if(!t.is_fork){for(const[r,[,n]]of this.current)if(t.current.has(r)&&!n)return t}t=P(t,Si)}return null},Cx=function(t){var n;for(const[i,a]of t.current)!this.previous.has(i)&&t.previous.has(i)&&this.previous.set(i,t.previous.get(i)),this.current.set(i,a);for(const[i,a]of t.async_deriveds){const o=this.async_deriveds.get(i);o&&a.promise.then(o.resolve)}const r=i=>{var a=i.reactions;if(a!==null)for(const l of a){var o=l.f;if((o&ce)!==0)r(l);else{var s=l;o&(Na|xr)&&!this.async_deriveds.has(s)&&(P(this,ln).delete(s),Xt(s,oe),this.schedule(s))}}};for(const i of this.current.keys())r(i);this.oncommit(()=>t.discard()),gt(n=t,xt,Fo).call(n),ht=this,gt(this,xt,xl).call(this)},vh=function(t){for(var r=0;r<t.length;r+=1)Ag(t[r],P(this,xi),P(this,ln))},$B=function(){var f;gt(this,xt,Fo).call(this);for(let h=xh;h!==null;h=P(h,Da)){var t=h.id<this.id,r=[];for(const[v,[c,d]]of this.current){if(h.current.has(v)){var n=h.current.get(v)[0];if(t&&c!==n)h.current.set(v,[c,d]);else continue}r.push(v)}if(t)for(const[v,c]of this.async_deriveds){const d=h.async_deriveds.get(v);d&&c.promise.then(d.resolve)}if(P(h,ko)){var i=[...h.current.keys()].filter(v=>!this.current.has(v));if(i.length===0)t&&h.discard();else if(r.length>0){if(t)for(const v of P(this,Ro))h.unskip_effect(v,c=>{var d;(c.f&(xr|Na))!==0?h.schedule(c):gt(d=h,xt,vh).call(d,[c])});h.activate();var a=new Set,o=new Map;for(var s of r)kg(s,i,a,o);o=new Map;var l=[...h.current.keys()].filter(v=>this.current.has(v)?this.current.get(v)[0]!==v.v:!0);if(l.length>0)for(const v of P(this,gl))(v.f&(Je|Se|Ml))===0&&Ah(v,l,o)&&((v.f&(Na|xr))!==0?(Xt(v,oe),h.schedule(v)):P(h,xi).add(v));if(P(h,qe).length>0){h.apply();for(var u of P(h,qe))gt(f=h,xt,og).call(f,u,[],[]);et(h,qe,[])}h.deactivate()}}}},sg=function(){Fa===null?xh=Fa=this:(et(Fa,Da,this),et(this,Si,Fa)),Fa=this},Fo=function(){var t=P(this,Si),r=P(this,Da);t===null?xh=r:et(t,Da,r),r===null?Fa=t:et(r,Si,t),this.linked=!1};let Gn=fh;function Pt(e){var t=Wo;Wo=!0;try{for(var r;;){if(sT(),ht===null)return r;ht.flush()}}finally{Wo=t}}function fT(){try{Kx()}catch(e){Hn(e,Ch)}}let pn=null;function Lg(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var n=e[r++];if((n.f&(Je|Se))===0&&Uo(n)&&(pn=new Set,Va(n),n.deps===null&&n.first===null&&n.nodes===null&&n.teardown===null&&n.ac===null&&jg(n),pn?.size>0)){Li.clear();for(const i of pn){if((i.f&(Je|Se))!==0)continue;const a=[i];let o=i.parent;for(;o!==null;)pn.has(o)&&(pn.delete(o),a.push(o)),o=o.parent;for(let s=a.length-1;s>=0;s--){const l=a[s];(l.f&(Je|Se))===0&&Va(l)}}pn.clear()}}pn=null}}function kg(e,t,r,n){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const i of e.reactions){const a=i.f;(a&ce)!==0?kg(i,t,r,n):(a&(Na|xr))!==0&&(a&oe)===0&&Ah(i,t,n)&&(Xt(i,oe),Mh(i))}}function Ah(e,t,r){const n=r.get(e);if(n!==void 0)return n;if(e.deps!==null)for(const i of e.deps){if(Pa.call(t,i))return!0;if((i.f&ce)!==0&&Ah(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function Mh(e){ht.schedule(e)}function Ig(e,t){if(!((e.f&Tr)!==0&&(e.f&ne)!==0)){(e.f&oe)!==0?t.d.push(e):(e.f&Fr)!==0&&t.m.push(e),Xt(e,ne);for(var r=e.first;r!==null;)Ig(r,t),r=r.next}}function Pg(e){Xt(e,ne);for(var t=e.first;t!==null;)Pg(t),t=t.next}function hT(e){let t=0,r=ki(0),n;return()=>{Eh()&&(R(r),Wl(()=>(t===0&&(n=Ul(()=>e(()=>$o(r)))),t+=1,()=>{dn(()=>{t-=1,t===0&&(n?.(),n=void 0,$o(r))})})))}}var cT=Oa|Di;function vT(e,t,r,n){new dT(e,t,r,n)}class dT{constructor(t,r,n,i){ot(this,Bt);Ft(this,"parent");Ft(this,"is_pending",!1);Ft(this,"transform_error");ot(this,Ze);ot(this,ml,yt?wt:null);ot(this,br);ot(this,Ma);ot(this,Ge);ot(this,wr,null);ot(this,Le,null);ot(this,Ke,null);ot(this,Pn,null);ot(this,La,0);ot(this,Ti,0);ot(this,No,!1);ot(this,yl,new Set);ot(this,_l,new Set);ot(this,En,null);ot(this,hh,hT(()=>(et(this,En,ki(P(this,La))),()=>{et(this,En,null)})));et(this,Ze,t),et(this,br,r),et(this,Ma,a=>{var o=ct;o.b=this,o.f|=yh,n(a)}),this.parent=ct.b,this.transform_error=i??this.parent?.transform_error??(a=>a),et(this,Ge,Rh(()=>{if(yt){const a=P(this,ml);Ol();const o=a.data===gh;if(a.data.startsWith(cg)){const l=JSON.parse(a.data.slice(cg.length));gt(this,Bt,Ax).call(this,l)}else o?gt(this,Bt,Mx).call(this):gt(this,Bt,Dx).call(this)}else gt(this,Bt,lg).call(this)},cT)),yt&&et(this,Ze,wt)}defer_effect(t){Ag(t,P(this,yl),P(this,_l))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!P(this,br).pending}update_pending_count(t,r){gt(this,Bt,ug).call(this,t,r),et(this,La,P(this,La)+t),!(!P(this,En)||P(this,No))&&(et(this,No,!0),dn(()=>{et(this,No,!1),P(this,En)&&Ha(P(this,En),P(this,La))}))}get_effect_pending(){return P(this,hh).call(this),R(P(this,En))}error(t){if(!P(this,br).onerror&&!P(this,br).failed)throw t;ht?.is_fork?(P(this,wr)&&ht.skip_effect(P(this,wr)),P(this,Le)&&ht.skip_effect(P(this,Le)),P(this,Ke)&&ht.skip_effect(P(this,Ke)),ht.on_fork_commit(()=>{gt(this,Bt,fg).call(this,t)})):gt(this,Bt,fg).call(this,t)}}Ze=new WeakMap,ml=new WeakMap,br=new WeakMap,Ma=new WeakMap,Ge=new WeakMap,wr=new WeakMap,Le=new WeakMap,Ke=new WeakMap,Pn=new WeakMap,La=new WeakMap,Ti=new WeakMap,No=new WeakMap,yl=new WeakMap,_l=new WeakMap,En=new WeakMap,hh=new WeakMap,Bt=new WeakSet,Dx=function(){try{et(this,wr,er(()=>P(this,Ma).call(this,P(this,Ze))))}catch(t){this.error(t)}},Ax=function(t){const r=P(this,br).failed;r&&et(this,Ke,er(()=>{r(P(this,Ze),()=>t,()=>()=>{})}))},Mx=function(){const t=P(this,br).pending;t&&(this.is_pending=!0,et(this,Le,er(()=>t(P(this,Ze)))),dn(()=>{var r=et(this,Pn,document.createDocumentFragment()),n=tr();r.append(n),et(this,wr,gt(this,Bt,ph).call(this,()=>er(()=>P(this,Ma).call(this,n)))),P(this,Ti)===0&&(P(this,Ze).before(r),et(this,Pn,null),Ei(P(this,Le),()=>{et(this,Le,null)}),gt(this,Bt,dh).call(this,ht))}))},lg=function(){try{if(this.is_pending=this.has_pending_snippet(),et(this,Ti,0),et(this,La,0),et(this,wr,er(()=>{P(this,Ma).call(this,P(this,Ze))})),P(this,Ti)>0){var t=et(this,Pn,document.createDocumentFragment());Bh(P(this,wr),t);const r=P(this,br).pending;et(this,Le,er(()=>r(P(this,Ze))))}else gt(this,Bt,dh).call(this,ht)}catch(r){this.error(r)}},dh=function(t){this.is_pending=!1,t.transfer_effects(P(this,yl),P(this,_l))},ph=function(t){var r=ct,n=mt,i=Ie;Wr(P(this,Ge)),rr(P(this,Ge)),Ba(P(this,Ge).ctx);try{return Gn.ensure(),t()}catch(a){return Cg(a),null}finally{Wr(r),rr(n),Ba(i)}},ug=function(t,r){var n;if(!this.has_pending_snippet()){this.parent&>(n=this.parent,Bt,ug).call(n,t,r);return}et(this,Ti,P(this,Ti)+t),P(this,Ti)===0&&(gt(this,Bt,dh).call(this,r),P(this,Le)&&Ei(P(this,Le),()=>{et(this,Le,null)}),P(this,Pn)&&(P(this,Ze).before(P(this,Pn)),et(this,Pn,null)))},fg=function(t){P(this,wr)&&(xe(P(this,wr)),et(this,wr,null)),P(this,Le)&&(xe(P(this,Le)),et(this,Le,null)),P(this,Ke)&&(xe(P(this,Ke)),et(this,Ke,null)),yt&&(ke(P(this,ml)),iT(),ke(Nl()));var r=P(this,br).onerror;let n=P(this,br).failed;var i=!1,a=!1;const o=()=>{if(i){nT();return}i=!0,a&&eT(),P(this,Ke)!==null&&Ei(P(this,Ke),()=>{et(this,Ke,null)}),gt(this,Bt,ph).call(this,()=>{gt(this,Bt,lg).call(this)})},s=l=>{try{a=!0,r?.(l,o),a=!1}catch(u){Hn(u,P(this,Ge)&&P(this,Ge).parent)}n&&et(this,Ke,gt(this,Bt,ph).call(this,()=>{try{return er(()=>{var u=ct;u.b=this,u.f|=yh,n(P(this,Ze),()=>l,()=>o)})}catch(u){return Hn(u,P(this,Ge).parent),null}}))};dn(()=>{var l;try{l=this.transform_error(t)}catch(u){Hn(u,P(this,Ge)&&P(this,Ge).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(s,u=>Hn(u,P(this,Ge)&&P(this,Ge).parent)):s(l)})};function pT(e,t,r,n){const i=zl;var a=e.filter(v=>!v.settled);if(r.length===0&&a.length===0){n(t.map(i));return}var o=ct,s=gT(),l=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(v=>v.promise)):null;function u(v){if((o.f&Je)===0){s();try{n(v)}catch(c){Hn(c,o)}Fl()}}var f=Eg();if(r.length===0){l.then(()=>u(t.map(i))).finally(f);return}function h(){Promise.all(r.map(v=>mT(v))).then(v=>u([...t.map(i),...v])).catch(v=>Hn(v,o)).finally(f)}l?l.then(()=>{s(),h(),Fl()}):h()}function gT(){var e=ct,t=mt,r=Ie,n=ht;return function(a=!0){Wr(e),rr(t),Ba(r),a&&(e.f&Je)===0&&(n?.activate(),n?.apply())}}function Fl(e=!0){Wr(null),rr(null),Ba(null),e&&ht?.deactivate()}function Eg(){var e=ct,t=e.b,r=ht,n=t.is_rendered();return t.update_pending_count(1,r),r.increment(n,e),()=>{t.update_pending_count(-1,r),r.decrement(n,e)}}function zl(e){var t=ce|oe;return ct!==null&&(ct.f|=Di),{ctx:Ie,deps:null,effects:null,equals:wg,f:t,fn:e,reactions:null,rv:0,v:ae,wv:0,parent:ct,ac:null}}const Hl=Symbol("obsolete");function mT(e,t,r){let n=ct;n===null&&Ux();var i=void 0,a=ki(ae),o=!mt,s=new Set;return AT(()=>{var l=ct,u=yg();i=u.promise;try{Promise.resolve(e()).then(u.resolve,c=>{c!==Pl&&u.reject(c)}).finally(Fl)}catch(c){u.reject(c),Fl()}var f=ht;if(o){if((l.f&Nn)!==0)var h=Eg();if(n.b.is_rendered())f.async_deriveds.get(l)?.reject(Hl);else for(const c of s.values())c.reject(Hl);s.add(u),f.async_deriveds.set(l,u)}const v=(c,d=void 0)=>{h?.(),s.delete(u),d!==Hl&&(f.activate(),d?(a.f|=Bn,Ha(a,d)):((a.f&Bn)!==0&&(a.f^=Bn),Ha(a,c)),f.deactivate())};u.promise.then(v,c=>v(null,c||"unknown"))}),Xg(()=>{for(const l of s)l.reject(Hl)}),new Promise(l=>{function u(f){function h(){f===i?l(a):u(i)}f.then(h,h)}u(i)})}function Vn(e){const t=zl(e);return em(t),t}function yT(e){const t=zl(e);return t.equals=Sg,t}function _T(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)xe(t[r])}}function Lh(e){var t,r=ct,n=e.parent;if(!gn&&n!==null&&(n.f&(Je|Se))!==0)return rT(),e.v;Wr(n);try{e.f&=~Ai,_T(e),t=om(e)}finally{Wr(r)}return t}function Rg(e){var t=Lh(e);if(!e.equals(t)&&(e.wv=im(),(!ht?.is_fork||e.deps===null)&&(ht!==null?(ht.capture(e,t,!0),Th?.capture(e,t,!0)):e.v=t,e.deps===null))){Xt(e,ne);return}gn||(Cr!==null?(Eh()||ht?.is_fork)&&Cr.set(e,t):Sh(e))}function bT(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(Pl),t.teardown=Bx,t.ac=null,Yo(t,0),Oh(t))}function Og(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Va(t)}let Gl=new Set;const Li=new Map;let Ng=!1;function ki(e,t){var r={f:0,v:e,reactions:null,equals:wg,rv:0,wv:0};return r}function Et(e,t){const r=ki(e);return em(r),r}function Bg(e,t=!1,r=!0){const n=ki(e);return t||(n.equals=Sg),n}function X(e,t,r=!1){mt!==null&&(!Dr||(mt.f&Ml)!==0)&&xg()&&(mt.f&(ce|xr|Na|Ml))!==0&&(nr===null||!Pa.call(nr,e))&&tT();let n=r?Hr(t):t;return Ha(e,n,Bl)}function Ha(e,t,r=null){if(!e.equals(t)){Li.set(e,gn?t:e.v);var n=Gn.ensure();if(n.capture(e,t),(e.f&ce)!==0){const i=e;(e.f&oe)!==0&&Lh(i),Cr===null&&Sh(i)}e.wv=im(),Fg(e,oe,r),ct!==null&&(ct.f&ne)!==0&&(ct.f&(Tr|cn))===0&&(ir===null?kT([e]):ir.push(e)),!n.is_fork&&Gl.size>0&&!Ng&&wT()}return t}function wT(){Ng=!1;for(const e of Gl){(e.f&ne)!==0&&Xt(e,Fr);let t;try{t=Uo(e)}catch{t=!0}t&&Va(e)}Gl.clear()}function $o(e){X(e,e.v+1)}function Fg(e,t,r){var n=e.reactions;if(n!==null)for(var i=n.length,a=0;a<i;a++){var o=n[a],s=o.f,l=(s&oe)===0;if(l&&Xt(o,t),(s&Ml)!==0)Gl.add(o);else if((s&ce)!==0){var u=o;Cr?.delete(u),(s&Ai)===0&&(s&Qe&&(ct===null||(ct.f&Ll)===0)&&(o.f|=Ai),Fg(u,Fr,r))}else if(l){var f=o;(s&xr)!==0&&pn!==null&&pn.add(f),r!==null?r.push(f):Mh(f)}}}function Hr(e){if(typeof e!="object"||e===null||kl in e)return e;const t=gg(e);if(t!==Ox&&t!==Nx)return e;var r=new Map,n=pg(e),i=Et(0),a=Oi,o=s=>{if(Oi===a)return s();var l=mt,u=Oi;rr(null),nm(a);var f=s();return rr(l),nm(u),f};return n&&r.set("length",Et(e.length)),new Proxy(e,{defineProperty(s,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Qx();var f=r.get(l);return f===void 0?o(()=>{var h=Et(u.value);return r.set(l,h),h}):X(f,u.value,!0),!0},deleteProperty(s,l){var u=r.get(l);if(u===void 0){if(l in s){const f=o(()=>Et(ae));r.set(l,f),$o(i)}}else X(u,ae),$o(i);return!0},get(s,l,u){if(l===kl)return e;var f=r.get(l),h=l in s;if(f===void 0&&(!h||Ea(s,l)?.writable)&&(f=o(()=>{var c=Hr(h?s[l]:ae),d=Et(c);return d}),r.set(l,f)),f!==void 0){var v=R(f);return v===ae?void 0:v}return Reflect.get(s,l,u)},getOwnPropertyDescriptor(s,l){var u=Reflect.getOwnPropertyDescriptor(s,l);if(u&&"value"in u){var f=r.get(l);f&&(u.value=R(f))}else if(u===void 0){var h=r.get(l),v=h?.v;if(h!==void 0&&v!==ae)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return u},has(s,l){if(l===kl)return!0;var u=r.get(l),f=u!==void 0&&u.v!==ae||Reflect.has(s,l);if(u!==void 0||ct!==null&&(!f||Ea(s,l)?.writable)){u===void 0&&(u=o(()=>{var v=f?Hr(s[l]):ae,c=Et(v);return c}),r.set(l,u));var h=R(u);if(h===ae)return!1}return f},set(s,l,u,f){var h=r.get(l),v=l in s;if(n&&l==="length")for(var c=u;c<h.v;c+=1){var d=r.get(c+"");d!==void 0?X(d,ae):c in s&&(d=o(()=>Et(ae)),r.set(c+"",d))}if(h===void 0)(!v||Ea(s,l)?.writable)&&(h=o(()=>Et(void 0)),X(h,Hr(u)),r.set(l,h));else{v=h.v!==ae;var m=o(()=>Hr(u));X(h,m)}var p=Reflect.getOwnPropertyDescriptor(s,l);if(p?.set&&p.set.call(f,u),!v){if(n&&typeof l=="string"){var g=r.get("length"),y=Number(l);Number.isInteger(y)&&y>=g.v&&X(g,y+1)}$o(i)}return!0},ownKeys(s){R(i);var l=Reflect.ownKeys(s).filter(h=>{var v=r.get(h);return v===void 0||v.v!==ae});for(var[u,f]of r)f.v!==ae&&!(u in s)&&l.push(u);return l},setPrototypeOf(){Jx()}})}var zg,Hg,Gg,Vg;function kh(){if(zg===void 0){zg=window,Hg=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;Gg=Ea(t,"firstChild").get,Vg=Ea(t,"nextSibling").get,mg(e)&&(e[bh]=void 0,e[Il]=null,e[wh]=void 0,e.__e=void 0),mg(r)&&(r[Ho]=void 0)}}function tr(e=""){return document.createTextNode(e)}function Ii(e){return Gg.call(e)}function Gr(e){return Vg.call(e)}function vt(e,t){if(!yt)return Ii(e);var r=Ii(wt);if(r===null)r=wt.appendChild(tr());else if(t&&r.nodeType!==El){var n=tr();return r?.before(n),ke(n),n}return t&&Ph(r),ke(r),r}function Pi(e,t=!1){if(!yt){var r=Ii(e);return r instanceof Comment&&r.data===""?Gr(r):r}if(t){if(wt?.nodeType!==El){var n=tr();return wt?.before(n),ke(n),n}Ph(wt)}return wt}function Ve(e,t=1,r=!1){let n=yt?wt:e;for(var i;t--;)i=n,n=Gr(n);if(!yt)return n;if(r){if(n?.nodeType!==El){var a=tr();return n===null?i?.after(a):n.before(a),ke(a),a}Ph(n)}return ke(n),n}function Wg(e){e.textContent=""}function $g(){return!1}function Ih(e,t,r){return document.createElementNS(vg,e,void 0)}function Ph(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===El;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}let Ug=!1;function Yg(){Ug||(Ug=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{if(!e.defaultPrevented)for(const t of e.target.elements)t[Go]?.()})},{capture:!0}))}function Vl(e){var t=mt,r=ct;rr(null),Wr(null);try{return e()}finally{rr(t),Wr(r)}}function ST(e,t,r,n=r){e.addEventListener(t,()=>Vl(r));const i=e[Go];i?e[Go]=()=>{i(),n(!0)}:e[Go]=()=>n(!0),Yg()}function xT(e){ct===null&&(mt===null&&Zx(),qx()),gn&&Xx()}function TT(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Vr(e,t){var r=ct;r!==null&&(r.f&Se)!==0&&(e|=Se);var n={ctx:Ie,deps:null,nodes:null,f:e|oe|Qe,first:null,fn:t,last:null,next:null,parent:r,b:r&&r.b,prev:null,teardown:null,wv:0,ac:null};ht?.register_created_effect(n);var i=n;if((e&Ra)!==0)za!==null?za.push(n):Gn.ensure().schedule(n);else if(t!==null){try{Va(n)}catch(o){throw xe(n),o}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&(i.f&Di)===0&&(i=i.first,(e&xr)!==0&&(e&Oa)!==0&&i!==null&&(i.f|=Oa))}if(i!==null&&(i.parent=r,r!==null&&TT(i,r),mt!==null&&(mt.f&ce)!==0&&(e&cn)===0)){var a=mt;(a.effects??(a.effects=[])).push(i)}return n}function Eh(){return mt!==null&&!Dr}function Xg(e){const t=Vr(Al,null);return Xt(t,ne),t.teardown=e,t}function Ga(e){xT();var t=ct.f,r=!mt&&(t&Tr)!==0&&(t&Nn)===0;if(r){var n=Ie;(n.e??(n.e=[])).push(e)}else return qg(e)}function qg(e){return Vr(Ra|Hx,e)}function CT(e){Gn.ensure();const t=Vr(cn|Di,e);return()=>{xe(t)}}function DT(e){Gn.ensure();const t=Vr(cn|Di,e);return(r={})=>new Promise(n=>{r.outro?Ei(t,()=>{xe(t),n(void 0)}):(xe(t),n(void 0))})}function Zg(e){return Vr(Ra,e)}function AT(e){return Vr(Na|Di,e)}function Wl(e,t=0){return Vr(Al|t,e)}function Gt(e,t=[],r=[],n=[]){pT(n,t,r,i=>{Vr(Al,()=>e(...i.map(R)))})}function Rh(e,t=0){var r=Vr(xr|t,e);return r}function er(e){return Vr(Tr|Di,e)}function Kg(e){var t=e.teardown;if(t!==null){const r=gn,n=mt;tm(!0),rr(null);try{t.call(null)}finally{tm(r),rr(n)}}}function Oh(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const i=r.ac;i!==null&&Vl(()=>{i.abort(Pl)});var n=r.next;(r.f&cn)!==0?r.parent=null:xe(r,t),r=n}}function MT(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Tr)===0&&xe(t),t=r}}function xe(e,t=!0){var r=!1;(t||(e.f&zx)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(LT(e.nodes.start,e.nodes.end),r=!0),Xt(e,_h),Oh(e,t&&!r),Yo(e,0);var n=e.nodes&&e.nodes.t;if(n!==null)for(const a of n)a.stop();Kg(e),e.f^=_h,e.f|=Je;var i=e.parent;i!==null&&i.first!==null&&jg(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function LT(e,t){for(;e!==null;){var r=e===t?null:Gr(e);e.remove(),e=r}}function jg(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ei(e,t,r=!0){var n=[];Qg(e,n,!0);var i=()=>{r&&xe(e),t&&t()},a=n.length;if(a>0){var o=()=>--a||i();for(var s of n)s.out(o)}else i()}function Qg(e,t,r){if((e.f&Se)===0){e.f^=Se;var n=e.nodes&&e.nodes.t;if(n!==null)for(const s of n)(s.is_global||r)&&t.push(s);for(var i=e.first;i!==null;){var a=i.next;if((i.f&cn)===0){var o=(i.f&Oa)!==0||(i.f&Tr)!==0&&(e.f&xr)!==0;Qg(i,t,o?r:!1)}i=a}}}function Nh(e){Jg(e,!0)}function Jg(e,t){if((e.f&Se)!==0){e.f^=Se,(e.f&ne)===0&&(Xt(e,oe),Gn.ensure().schedule(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&Oa)!==0||(r.f&Tr)!==0;Jg(r,i?t:!1),r=n}var a=e.nodes&&e.nodes.t;if(a!==null)for(const o of a)(o.is_global||t)&&o.in()}}function Bh(e,t){if(e.nodes)for(var r=e.nodes.start,n=e.nodes.end;r!==null;){var i=r===n?null:Gr(r);t.append(r),r=i}}let $l=!1,gn=!1;function tm(e){gn=e}let mt=null,Dr=!1;function rr(e){mt=e}let ct=null;function Wr(e){ct=e}let nr=null;function em(e){mt!==null&&(nr===null?nr=[e]:nr.push(e))}let Pe=null,We=0,ir=null;function kT(e){ir=e}let rm=1,Ri=0,Oi=Ri;function nm(e){Oi=e}function im(){return++rm}function Uo(e){var t=e.f;if((t&oe)!==0)return!0;if(t&ce&&(e.f&=~Ai),(t&Fr)!==0){for(var r=e.deps,n=r.length,i=0;i<n;i++){var a=r[i];if(Uo(a)&&Rg(a),a.wv>e.wv)return!0}(t&Qe)!==0&&Cr===null&&Xt(e,ne)}return!1}function am(e,t,r=!0){var n=e.reactions;if(n!==null&&!(nr!==null&&Pa.call(nr,e)))for(var i=0;i<n.length;i++){var a=n[i];(a.f&ce)!==0?am(a,t,!1):t===a&&(r?Xt(a,oe):(a.f&ne)!==0&&Xt(a,Fr),Mh(a))}}function om(e){var m;var t=Pe,r=We,n=ir,i=mt,a=nr,o=Ie,s=Dr,l=Oi,u=e.f;Pe=null,We=0,ir=null,mt=(u&(Tr|cn))===0?e:null,nr=null,Ba(e.ctx),Dr=!1,Oi=++Ri,e.ac!==null&&(Vl(()=>{e.ac.abort(Pl)}),e.ac=null);try{e.f|=Ll;var f=e.fn,h=f();e.f|=Nn;var v=e.deps,c=ht?.is_fork;if(Pe!==null){var d;if(c||Yo(e,We),v!==null&&We>0)for(v.length=We+Pe.length,d=0;d<Pe.length;d++)v[We+d]=Pe[d];else e.deps=v=Pe;if(Eh()&&(e.f&Qe)!==0)for(d=We;d<v.length;d++)((m=v[d]).reactions??(m.reactions=[])).push(e)}else!c&&v!==null&&We<v.length&&(Yo(e,We),v.length=We);if(xg()&&ir!==null&&!Dr&&v!==null&&(e.f&(ce|Fr|oe))===0)for(d=0;d<ir.length;d++)am(ir[d],e);if(i!==null&&i!==e){if(Ri++,i.deps!==null)for(let p=0;p<r;p+=1)i.deps[p].rv=Ri;if(t!==null)for(const p of t)p.rv=Ri;ir!==null&&(n===null?n=ir:n.push(...ir))}return(e.f&Bn)!==0&&(e.f^=Bn),h}catch(p){return Cg(p)}finally{e.f^=Ll,Pe=t,We=r,ir=n,mt=i,nr=a,Ba(o),Dr=s,Oi=l}}function IT(e,t){let r=t.reactions;if(r!==null){var n=Ex.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}if(r===null&&(t.f&ce)!==0&&(Pe===null||!Pa.call(Pe,t))){var a=t;(a.f&Qe)!==0&&(a.f^=Qe,a.f&=~Ai),a.v!==ae&&Sh(a),bT(a),Yo(a,0)}}function Yo(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)IT(e,r[n])}function Va(e){var t=e.f;if((t&Je)===0){Xt(e,ne);var r=ct,n=$l;ct=e,$l=!0;try{(t&(xr|_g))!==0?MT(e):Oh(e),Kg(e);var i=om(e);e.teardown=typeof i=="function"?i:null,e.wv=rm;var a;dg&&oT&&(e.f&oe)!==0&&e.deps}finally{$l=n,ct=r}}}async function PT(){await Promise.resolve(),Pt()}function R(e){var t=e.f,r=(t&ce)!==0;if(mt!==null&&!Dr){var n=ct!==null&&(ct.f&Je)!==0;if(!n&&(nr===null||!Pa.call(nr,e))){var i=mt.deps;if((mt.f&Ll)!==0)e.rv<Ri&&(e.rv=Ri,Pe===null&&i!==null&&i[We]===e?We++:Pe===null?Pe=[e]:Pe.push(e));else{(mt.deps??(mt.deps=[])).push(e);var a=e.reactions;a===null?e.reactions=[mt]:Pa.call(a,mt)||a.push(mt)}}}if(gn&&Li.has(e))return Li.get(e);if(r){var o=e;if(gn){var s=o.v;return((o.f&ne)===0&&o.reactions!==null||lm(o))&&(s=Lh(o)),Li.set(o,s),s}var l=(o.f&Qe)===0&&!Dr&&mt!==null&&($l||(mt.f&Qe)!==0),u=(o.f&Nn)===0;Uo(o)&&(l&&(o.f|=Qe),Rg(o)),l&&!u&&(Og(o),sm(o))}if(Cr?.has(e))return Cr.get(e);if((e.f&Bn)!==0)throw e.v;return e.v}function sm(e){if(e.f|=Qe,e.deps!==null)for(const t of e.deps)(t.reactions??(t.reactions=[])).push(e),(t.f&ce)!==0&&(t.f&Qe)===0&&(Og(t),sm(t))}function lm(e){if(e.v===ae)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(Li.has(t)||(t.f&ce)!==0&&lm(t))return!0;return!1}function Ul(e){var t=Dr;try{return Dr=!0,e()}finally{Dr=t}}const Ni=Symbol("events"),um=new Set,Fh=new Set;function ET(e,t,r,n={}){function i(a){if(n.capture||Hh.call(t,a),!a.cancelBubble)return Vl(()=>r?.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?dn(()=>{t.addEventListener(e,i,n)}):t.addEventListener(e,i,n),i}function RT(e,t,r,n,i){var a={capture:n,passive:i},o=ET(e,t,r,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Xg(()=>{t.removeEventListener(e,o,a)})}function zh(e,t,r){(t[Ni]??(t[Ni]={}))[e]=r}function OT(e){for(var t=0;t<e.length;t++)um.add(e[t]);for(var r of Fh)r(e)}let fm=null;function Hh(e){var t=this,r=t.ownerDocument,n=e.type,i=e.composedPath?.()||[],a=i[0]||e.target;fm=e;var o=0,s=fm===e&&e[Ni];if(s){var l=i.indexOf(s);if(l!==-1&&(t===document||t===window)){e[Ni]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(o=l)}if(a=i[o]||e.target,a!==t){Dl(e,"currentTarget",{configurable:!0,get(){return a||r}});var f=mt,h=ct;rr(null),Wr(null);try{for(var v,c=[];a!==null;){var d=a.assignedSlot||a.parentNode||a.host||null;try{var m=a[Ni]?.[n];m!=null&&(!a.disabled||e.target===a)&&m.call(a,e)}catch(p){v?c.push(p):v=p}if(e.cancelBubble||d===t||d===null)break;a=d}if(v){for(let p of c)queueMicrotask(()=>{throw p});throw v}}finally{e[Ni]=t,delete e.currentTarget,rr(f),Wr(h)}}}const NT=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function BT(e){return NT?.createHTML(e)??e}function FT(e){var t=Ih("template");return t.innerHTML=BT(e.replaceAll("<!>","<!---->")),t.content}function Wa(e,t){var r=ct;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function lt(e,t){var r=(t&Ix)!==0,n=(t&Px)!==0,i,a=!e.startsWith("<!>");return()=>{if(yt)return Wa(wt,null),wt;i===void 0&&(i=FT(a?e:"<!>"+e),r||(i=Ii(i)));var o=n||Hg?document.importNode(i,!0):i.cloneNode(!0);if(r){var s=Ii(o),l=o.lastChild;Wa(s,l)}else Wa(o,o);return o}}function $a(){if(yt)return Wa(wt,null),wt;var e=document.createDocumentFragment(),t=document.createComment(""),r=tr();return e.append(t,r),Wa(t,r),e}function j(e,t){if(yt){var r=ct;((r.f&Nn)===0||r.nodes.end===null)&&(r.nodes.end=wt),Ol();return}e!==null&&e.before(t)}const zT=["touchstart","touchmove"];function HT(e){return zT.includes(e)}function jt(e,t){var r=t==null?"":typeof t=="object"?`${t}`:t;r!==(e[Ho]??(e[Ho]=e.nodeValue))&&(e[Ho]=r,e.nodeValue=`${r}`)}function hm(e,t){return cm(e,t)}function GT(e,t){kh(),t.intro=t.intro??!1;const r=t.target,n=yt,i=wt;try{for(var a=Ii(r);a&&(a.nodeType!==Vo||a.data!==hg);)a=Gr(a);if(!a)throw Ia;vn(!0),ke(a);const o=cm(e,{...t,anchor:a});return vn(!1),o}catch(o){if(o instanceof Error&&o.message.split(`
|
|
2
|
+
`).some(s=>s.startsWith("https://svelte.dev/e/")))throw o;return o!==Ia&&console.warn("Failed to hydrate: ",o),t.recover===!1&&jx(),kh(),Wg(r),vn(!1),hm(e,t)}finally{vn(n),ke(i)}}const Yl=new Map;function cm(e,{target:t,anchor:r,props:n={},events:i,context:a,intro:o=!0,transformError:s}){kh();var l=void 0,u=DT(()=>{var f=r??t.appendChild(tr());vT(f,{pending:()=>{}},c=>{Fn({});var d=Ie;if(a&&(d.c=a),i&&(n.$$events=i),yt&&Wa(c,null),l=e(c,n)||{},yt&&(ct.nodes.end=wt,wt===null||wt.nodeType!==Vo||wt.data!==mh))throw Rl(),Ia;zn()},s);var h=new Set,v=c=>{for(var d=0;d<c.length;d++){var m=c[d];if(!h.has(m)){h.add(m);var p=HT(m);for(const _ of[t,document]){var g=Yl.get(_);g===void 0&&(g=new Map,Yl.set(_,g));var y=g.get(m);y===void 0?(_.addEventListener(m,Hh,{passive:p}),g.set(m,1)):g.set(m,y+1)}}}};return v(Tl(um)),Fh.add(v),()=>{for(var c of h)for(const p of[t,document]){var d=Yl.get(p),m=d.get(c);--m==0?(p.removeEventListener(c,Hh),d.delete(c),d.size===0&&Yl.delete(p)):d.set(c,m)}Fh.delete(v),f!==r&&f.parentNode?.removeChild(f)}});return Gh.set(l,u),l}let Gh=new WeakMap;function VT(e,t){const r=Gh.get(e);return r?(Gh.delete(e),r(t)):Promise.resolve()}class WT{constructor(t,r=!0){Ft(this,"anchor");ot(this,Br,new Map);ot(this,fn,new Map);ot(this,je,new Map);ot(this,ka,new Set);ot(this,bl,!0);ot(this,wl,t=>{if(P(this,Br).has(t)){var r=P(this,Br).get(t),n=P(this,fn).get(r);if(n)Nh(n),P(this,ka).delete(r);else{var i=P(this,je).get(r);i&&(P(this,fn).set(r,i.effect),P(this,je).delete(r),i.fragment.lastChild.remove(),this.anchor.before(i.fragment),n=i.effect)}for(const[a,o]of P(this,Br)){if(P(this,Br).delete(a),a===t)break;const s=P(this,je).get(o);s&&(xe(s.effect),P(this,je).delete(o))}for(const[a,o]of P(this,fn)){if(a===r||P(this,ka).has(a))continue;const s=()=>{if(Array.from(P(this,Br).values()).includes(a)){var u=document.createDocumentFragment();Bh(o,u),u.append(tr()),P(this,je).set(a,{effect:o,fragment:u})}else xe(o);P(this,ka).delete(a),P(this,fn).delete(a)};P(this,bl)||!n?(P(this,ka).add(a),Ei(o,s,!1)):s()}}});ot(this,ch,t=>{P(this,Br).delete(t);const r=Array.from(P(this,Br).values());for(const[n,i]of P(this,je))r.includes(n)||(xe(i.effect),P(this,je).delete(n))});this.anchor=t,et(this,bl,r)}ensure(t,r){var n=ht,i=$g();if(r&&!P(this,fn).has(t)&&!P(this,je).has(t))if(i){var a=document.createDocumentFragment(),o=tr();a.append(o),P(this,je).set(t,{effect:er(()=>r(o)),fragment:a})}else P(this,fn).set(t,er(()=>r(this.anchor)));if(P(this,Br).set(n,t),i){for(const[s,l]of P(this,fn))s===t?n.unskip_effect(l):n.skip_effect(l);for(const[s,l]of P(this,je))s===t?n.unskip_effect(l.effect):n.skip_effect(l.effect);n.oncommit(P(this,wl)),n.ondiscard(P(this,ch))}else yt&&(this.anchor=wt),P(this,wl).call(this,n)}}Br=new WeakMap,fn=new WeakMap,je=new WeakMap,ka=new WeakMap,bl=new WeakMap,wl=new WeakMap,ch=new WeakMap;function $T(e){Ie===null&&$x(),Ga(()=>{const t=Ul(e);if(typeof t=="function")return t})}function Te(e,t,r=!1){var n;yt&&(n=wt,Ol());var i=new WT(e),a=r?Oa:0;function o(s,l){if(yt){var u=bg(n);if(s!==parseInt(u.substring(1))){var f=Nl();ke(f),i.anchor=f,vn(!1),i.ensure(s,l),vn(!0);return}}i.ensure(s,l)}Rh(()=>{var s=!1;t((l,u=0)=>{s=!0,o(u,l)}),s||o(-1,null)},a)}function Vh(e,t){return t}function UT(e,t,r){for(var n=[],i=t.length,a,o=t.length,s=0;s<i;s++){let h=t[s];Ei(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var v=e.outrogroups;Wh(e,Tl(a.done)),v.delete(a),v.size===0&&(e.outrogroups=null)}}else o-=1},!1)}if(o===0){var l=n.length===0&&r!==null;if(l){var u=r,f=u.parentNode;Wg(f),f.append(u),e.items.clear()}Wh(e,t,!l)}else a={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(a)}function Wh(e,t,r=!0){var n;if(e.pending.size>0){n=new Set;for(const o of e.pending.values())for(const s of o)n.add(e.items.get(s).e)}for(var i=0;i<t.length;i++){var a=t[i];if(n?.has(a)){a.f|=zr;const o=document.createDocumentFragment();Bh(a,o)}else xe(t[i],r)}}var vm;function mn(e,t,r,n,i,a=null){var o=e,s=new Map,l=(t&zo)!==0;if(l){var u=e;o=yt?ke(Ii(u)):u.appendChild(tr())}yt&&Ol();var f=null,h=yT(()=>{var _=r();return pg(_)?_:_==null?[]:Tl(_)}),v,c=new Map,d=!0;function m(_){(y.effect.f&Je)===0&&(y.pending.delete(_),y.fallback=f,YT(y,v,o,t,n),f!==null&&(v.length===0?(f.f&zr)===0?Nh(f):(f.f^=zr,qo(f,null,o)):Ei(f,()=>{f=null})))}function p(_){y.pending.delete(_)}var g=Rh(()=>{v=R(h);var _=v.length;let b=!1;if(yt){var S=bg(o)===gh;S!==(_===0)&&(o=Nl(),ke(o),vn(!1),b=!0)}for(var w=new Set,T=ht,x=$g(),A=0;A<_;A+=1){yt&&wt.nodeType===Vo&&wt.data===mh&&(o=wt,b=!0,vn(!1));var C=v[A],D=n(C,A),k=d?null:s.get(D);k?(k.v&&Ha(k.v,C),k.i&&Ha(k.i,A),x&&T.unskip_effect(k.e)):(k=XT(s,d?o:vm??(vm=tr()),C,D,A,i,t,r),d||(k.e.f|=zr),s.set(D,k)),w.add(D)}if(_===0&&a&&!f&&(d?f=er(()=>a(o)):(f=er(()=>a(vm??(vm=tr()))),f.f|=zr)),_>w.size&&Yx(),yt&&_>0&&ke(Nl()),!d)if(c.set(T,w),x){for(const[M,I]of s)w.has(M)||T.skip_effect(I.e);T.oncommit(m),T.ondiscard(p)}else m(T);b&&vn(!0),R(h)}),y={effect:g,items:s,pending:c,outrogroups:null,fallback:f};d=!1,yt&&(o=wt)}function Xo(e){for(;e!==null&&(e.f&Tr)===0;)e=e.next;return e}function YT(e,t,r,n,i){var a=(n&Lx)!==0,o=t.length,s=e.items,l=Xo(e.effect.first),u,f=null,h,v=[],c=[],d,m,p,g;if(a)for(g=0;g<o;g+=1)d=t[g],m=i(d,g),p=s.get(m).e,(p.f&zr)===0&&(p.nodes?.a?.measure(),(h??(h=new Set)).add(p));for(g=0;g<o;g+=1){if(d=t[g],m=i(d,g),p=s.get(m).e,e.outrogroups!==null)for(const C of e.outrogroups)C.pending.delete(p),C.done.delete(p);if((p.f&Se)!==0&&(Nh(p),a&&(p.nodes?.a?.unfix(),(h??(h=new Set)).delete(p))),(p.f&zr)!==0)if(p.f^=zr,p===l)qo(p,null,r);else{var y=f?f.next:l;p===e.effect.last&&(e.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),Wn(e,f,p),Wn(e,p,y),qo(p,y,r),f=p,v=[],c=[],l=Xo(f.next);continue}if(p!==l){if(u!==void 0&&u.has(p)){if(v.length<c.length){var _=c[0],b;f=_.prev;var S=v[0],w=v[v.length-1];for(b=0;b<v.length;b+=1)qo(v[b],_,r);for(b=0;b<c.length;b+=1)u.delete(c[b]);Wn(e,S.prev,w.next),Wn(e,f,S),Wn(e,w,_),l=_,f=w,g-=1,v=[],c=[]}else u.delete(p),qo(p,l,r),Wn(e,p.prev,p.next),Wn(e,p,f===null?e.effect.first:f.next),Wn(e,f,p),f=p;continue}for(v=[],c=[];l!==null&&l!==p;)(u??(u=new Set)).add(l),c.push(l),l=Xo(l.next);if(l===null)continue}(p.f&zr)===0&&v.push(p),f=p,l=Xo(p.next)}if(e.outrogroups!==null){for(const C of e.outrogroups)C.pending.size===0&&(Wh(e,Tl(C.done)),e.outrogroups?.delete(C));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var T=[];if(u!==void 0)for(p of u)(p.f&Se)===0&&T.push(p);for(;l!==null;)(l.f&Se)===0&&l!==e.fallback&&T.push(l),l=Xo(l.next);var x=T.length;if(x>0){var A=(n&zo)!==0&&o===0?r:null;if(a){for(g=0;g<x;g+=1)T[g].nodes?.a?.measure();for(g=0;g<x;g+=1)T[g].nodes?.a?.fix()}UT(e,T,A)}}a&&dn(()=>{if(h!==void 0)for(p of h)p.nodes?.a?.apply()})}function XT(e,t,r,n,i,a,o,s){var l=(o&Ht)!==0?(o&kx)===0?Bg(r,!1,!1):ki(r):null,u=(o&re)!==0?ki(i):null;return{v:l,i:u,e:er(()=>(a(t,l??r,u??i,s),()=>{e.delete(n)}))}}function qo(e,t,r){if(e.nodes)for(var n=e.nodes.start,i=e.nodes.end,a=t&&(t.f&zr)===0?t.nodes.start:r;n!==null;){var o=Gr(n);if(a.before(n),n===i)return;n=o}}function Wn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function Bi(e,t){Zg(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=Ih("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}const dm=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function qT(e,t,r){var n=e==null?"":""+e;if(r){for(var i of Object.keys(r))if(r[i])n=n?n+" "+i:i;else if(n.length)for(var a=i.length,o=0;(o=n.indexOf(i,o))>=0;){var s=o+a;(o===0||dm.includes(n[o-1]))&&(s===n.length||dm.includes(n[s]))?n=(o===0?"":n.substring(0,o))+n.substring(s+1):o=s}}return n===""?null:n}function ZT(e,t){return e==null?null:String(e)}function Xl(e,t,r,n,i,a){var o=e[bh];if(yt||o!==r||o===void 0){var s=qT(r,n,a);(!yt||s!==e.getAttribute("class"))&&(s==null?e.removeAttribute("class"):e.className=s),e[bh]=r}else if(a&&i!==a)for(var l in a){var u=!!a[l];(i==null||u!==!!i[l])&&e.classList.toggle(l,u)}return a}function $h(e,t,r,n){var i=e[wh];if(yt||i!==t){var a=ZT(t);(!yt||a!==e.getAttribute("style"))&&(a==null?e.removeAttribute("style"):e.style.cssText=a),e[wh]=t}return n}const KT=Symbol("is custom element"),jT=Symbol("is html"),QT=Wx?"link":"LINK";function pm(e){if(yt){var t=!1,r=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var n=e.value;ql(e,"value",null),e.value=n}if(e.hasAttribute("checked")){var i=e.checked;ql(e,"checked",null),e.checked=i}}};e[Go]=r,dn(r),Yg()}}function JT(e,t){var r=gm(e);r.checked!==(r.checked=t??void 0)&&(e.checked=t)}function tC(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ql(e,t,r,n){var i=gm(e);yt&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName===QT)||i[t]!==(i[t]=r)&&(t==="loading"&&(e[Vx]=r),r==null?e.removeAttribute(t):typeof r!="string"&&eC(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function gm(e){return e[Il]??(e[Il]={[KT]:e.nodeName.includes("-"),[jT]:e.namespaceURI===vg})}var mm=new Map;function eC(e){var t=e.getAttribute("is")||e.nodeName,r=mm.get(t);if(r)return r;mm.set(t,r=[]);for(var n,i=e,a=Element.prototype;a!==i;){n=Rx(i);for(var o in n)n[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&r.push(o);i=gg(i)}return r}function rC(e,t,r=t){var n=new WeakSet;ST(e,"input",async i=>{var a=i?e.defaultValue:e.value;if(a=Uh(e)?Yh(a):a,r(a),ht!==null&&n.add(ht),await PT(),a!==(a=t())){var o=e.selectionStart,s=e.selectionEnd,l=e.value.length;if(e.value=a??"",s!==null){var u=e.value.length;o===s&&s===l&&u>l?(e.selectionStart=u,e.selectionEnd=u):(e.selectionStart=o,e.selectionEnd=Math.min(s,u))}}}),(yt&&e.defaultValue!==e.value||Ul(t)==null&&e.value)&&(r(Uh(e)?Yh(e.value):e.value),ht!==null&&n.add(ht)),Wl(()=>{var i=t();if(e===document.activeElement){var a=ht;if(n.has(a))return}Uh(e)&&i===Yh(e.value)||e.type==="date"&&!i&&!e.value||i!==e.value&&(e.value=i??"")})}function Uh(e){var t=e.type;return t==="number"||t==="range"}function Yh(e){return e===""?null:+e}function Xh(e,t){return e===t||e?.[kl]===t}function nC(e={},t,r,n){var i=Ie.r,a=ct;return Zg(()=>{var o,s;return Wl(()=>{o=s,s=[],Ul(()=>{Xh(r(...s),e)||(t(e,...s),o&&Xh(r(...o),e)&&t(null,...o))})}),()=>{let l=a;for(;l!==i&&l.parent!==null&&l.parent.f&_h;)l=l.parent;const u=()=>{s&&Xh(r(...s),e)&&t(null,...s)},f=l.teardown;l.teardown=()=>{u(),f?.()}}}),e}function Nt(e,t,r,n){var i=n,a=!0,o=()=>(a&&(a=!1,i=n),i),s;s=e[t],s===void 0&&n!==void 0&&(s=o());var l;l=()=>{var v=e[t];return v===void 0?o():(a=!0,v)};var u=!1,f=zl(()=>(u=!1,l())),h=ct;return(function(v,c){if(arguments.length>0){const d=c?R(f):v;return X(f,d),u=!0,i!==void 0&&(i=d),v}return gn&&u||(h.f&Je)!==0?f.v:R(f)})}function iC(e){return new aC(e)}class aC{constructor(t){ot(this,Rn);ot(this,Sr);var r=new Map,n=(a,o)=>{var s=Bg(o,!1,!1);return r.set(a,s),s};const i=new Proxy({...t.props||{},$$events:{}},{get(a,o){return R(r.get(o)??n(o,Reflect.get(a,o)))},has(a,o){return o===Gx?!0:(R(r.get(o)??n(o,Reflect.get(a,o))),Reflect.has(a,o))},set(a,o,s){return X(r.get(o)??n(o,s),s),Reflect.set(a,o,s)}});et(this,Sr,(t.hydrate?GT:hm)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError})),(!t?.props?.$$host||t.sync===!1)&&Pt(),et(this,Rn,i.$$events);for(const a of Object.keys(P(this,Sr)))a==="$set"||a==="$destroy"||a==="$on"||Dl(this,a,{get(){return P(this,Sr)[a]},set(o){P(this,Sr)[a]=o},enumerable:!0});P(this,Sr).$set=a=>{Object.assign(i,a)},P(this,Sr).$destroy=()=>{VT(P(this,Sr))}}$set(t){P(this,Sr).$set(t)}$on(t,r){P(this,Rn)[t]=P(this,Rn)[t]||[];const n=(...i)=>r.call(this,...i);return P(this,Rn)[t].push(n),()=>{P(this,Rn)[t]=P(this,Rn)[t].filter(i=>i!==n)}}$destroy(){P(this,Sr).$destroy()}}Rn=new WeakMap,Sr=new WeakMap;let ym;typeof HTMLElement=="function"&&(ym=class extends HTMLElement{constructor(t,r,n){super();Ft(this,"$$ctor");Ft(this,"$$s");Ft(this,"$$c");Ft(this,"$$cn",!1);Ft(this,"$$d",{});Ft(this,"$$r",!1);Ft(this,"$$p_d",{});Ft(this,"$$l",{});Ft(this,"$$l_u",new Map);Ft(this,"$$me");Ft(this,"$$shadowRoot",null);this.$$ctor=t,this.$$s=r,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return a=>{const o=Ih("slot");i!=="default"&&(o.name=i),j(a,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=oC(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const a=this.$$g_p(i.name);a in this.$$d||(this.$$d[a]=Zl(a,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=iC({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=CT(()=>{Wl(()=>{this.$$r=!0;for(const i of Cl(this.$$c)){if(!this.$$p_d[i]?.reflect)continue;this.$$d[i]=this.$$c[i];const a=Zl(i,this.$$d[i],this.$$p_d,"toAttribute");a==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,a)}this.$$r=!1})});for(const i in this.$$l)for(const a of this.$$l[i]){const o=this.$$c.$on(i,a);this.$$l_u.set(a,o)}this.$$l={}}}attributeChangedCallback(t,r,n){this.$$r||(t=this.$$g_p(t),this.$$d[t]=Zl(t,n,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Cl(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Zl(e,t,r,n){const i=r[e]?.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function oC(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function Fi(e,t,r,n,i,a){let o=class extends ym{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Cl(t).map(s=>(t[s].attribute||s).toLowerCase())}};return Cl(t).forEach(s=>{Dl(o.prototype,s,{get(){return this.$$c&&s in this.$$c?this.$$c[s]:this.$$d[s]},set(l){l=Zl(s,l,t),this.$$d[s]=l;var u=this.$$c;if(u){var f=Ea(u,s)?.get;f?u[s]=l:u.$set({[s]:l})}}})}),n.forEach(s=>{Dl(o.prototype,s,{get(){return this.$$c?.[s]}})}),e.element=o,o}var sC=lt('<div class="empty svelte-93f8ou">No rows returned</div>'),lC=lt("<th> </th>"),uC=lt("<td> </td>"),fC=lt('<tr class="svelte-93f8ou"></tr>'),hC=lt('<table class="svelte-93f8ou"><thead><tr></tr></thead><tbody class="svelte-93f8ou"></tbody></table>');const cC={hash:"svelte-93f8ou",code:`
|
|
4
4
|
/* Scoped styles ship inside the custom element's shadow DOM, so they
|
|
5
5
|
* never leak into the host page's CSS and vice versa. Deliberately
|
|
6
6
|
* conservative — host page should be able to wrap us in any layout. */table.svelte-93f8ou {border-collapse:collapse;width:100%;font-family:system-ui,
|
|
@@ -8,7 +8,7 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
|
|
|
8
8
|
Segoe UI,
|
|
9
9
|
sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}th.svelte-93f8ou,
|
|
10
10
|
td.svelte-93f8ou {padding:6px 10px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);text-align:left;white-space:nowrap;}th.svelte-93f8ou {background:var(--saiku-embed-header-bg, #f9fafb);font-weight:600;}th.numeric.svelte-93f8ou,
|
|
11
|
-
td.numeric.svelte-93f8ou {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-93f8ou {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-93f8ou tr:where(.svelte-93f8ou):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}.empty.svelte-93f8ou {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function
|
|
11
|
+
td.numeric.svelte-93f8ou {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-93f8ou {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-93f8ou tr:where(.svelte-93f8ou):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}.empty.svelte-93f8ou {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function _m(e,t){Fn(t,!0),Bi(e,cC);let r=Nt(t,"rows"),n=Vn(()=>r().length>0?Object.keys(r()[0]):[]);function i(f){for(const h of r()){const v=h[f]?.value;if(v!=null&&(typeof v!="number"||Number.isNaN(v)))return!1}return!0}var a={get rows(){return r()},set rows(f){r(f),Pt()}},o=$a(),s=Pi(o);{var l=f=>{var h=sC();j(f,h)},u=f=>{var h=hC(),v=vt(h),c=vt(v);mn(c,20,()=>R(n),m=>m,(m,p)=>{var g=lC();let y;var _=vt(g,!0);st(g),Gt(b=>{y=Xl(g,1,"svelte-93f8ou",null,y,b),jt(_,p)},[()=>({numeric:i(p)})]),j(m,g)}),st(c),st(v);var d=Ve(v);mn(d,21,r,Vh,(m,p)=>{var g=fC();mn(g,20,()=>R(n),y=>y,(y,_)=>{const b=Vn(()=>R(p)[_]);var S=uC();let w;var T=vt(S,!0);st(S),Gt(x=>{w=Xl(S,1,"svelte-93f8ou",null,w,x),jt(T,R(b)?.formatted??"")},[()=>({numeric:i(_),negative:R(b)&&R(b).value!==null&&R(b).value<0})]),j(y,S)}),st(g),j(m,g)}),st(d),st(h),j(f,h)};Te(s,f=>{r().length===0?f(l):f(u,-1)})}return j(e,o),zn(a)}Fi(_m,{rows:{}},[],[],{mode:"open"});/*! *****************************************************************************
|
|
12
12
|
Copyright (c) Microsoft Corporation.
|
|
13
13
|
|
|
14
14
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -21,7 +21,7 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
|
|
|
21
21
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
22
22
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
23
23
|
PERFORMANCE OF THIS SOFTWARE.
|
|
24
|
-
***************************************************************************** */var
|
|
24
|
+
***************************************************************************** */var qh=function(e,t){return qh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},qh(e,t)};function J(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");qh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var vC=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),dC=(function(){function e(){this.browser=new vC,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),it=new dC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(it.wxa=!0,it.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?it.worker=!0:!it.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(it.node=!0,it.svgSupported=!0):pC(navigator.userAgent,it);function pC(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in l||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}}var Zh=12,gC="sans-serif",$n=Zh+"px "+gC,mC=20,yC=100,_C="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function bC(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-mC)/yC;t[n]=i}return t}var wC=bC(_C),yn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(r,n){if(!e){var i=yn.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||$n),e.measureText(r);r=r||"",n=n||$n;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||Zh,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=wC[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},bm=Un(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),wm=Un(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Zo=Object.prototype.toString,Kl=Array.prototype,SC=Kl.forEach,xC=Kl.filter,Kh=Kl.slice,TC=Kl.map,Sm=function(){}.constructor,jl=Sm?Sm.prototype:null,jh="__proto__",CC=2311;function xm(){return CC++}function Qh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function pt(e){if(e==null||typeof e!="object")return e;var t=e,r=Zo.call(e);if(r==="[object Array]"){if(!Qo(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=pt(e[n])}}else if(wm[r]){if(!Qo(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!bm[r]&&!Qo(e)&&!Ko(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==jh&&(t[o]=pt(e[o]))}return t}function Tt(e,t,r){if(!Z(t)||!Z(e))return r?pt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==jh){var i=e[n],a=t[n];Z(a)&&Z(i)&&!U(a)&&!U(i)&&!Ko(a)&&!Ko(i)&&!Tm(a)&&!Tm(i)&&!Qo(a)&&!Qo(i)?Tt(i,a,r):(r||!(n in e))&&(e[n]=pt(t[n]))}return e}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==jh&&(e[r]=t[r]);return e}function Dt(e,t,r){for(var n=Vt(t),i=0,a=n.length;i<a;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function St(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function DC(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function $r(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&e[a]==null&&(e[a]=t[a])}else Dt(e,t)}function Ee(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function L(e,t,r){if(e&&t)if(e.forEach&&e.forEach===SC)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function K(e,t,r){if(!e)return[];if(!t)return tc(e);if(e.map&&e.map===TC)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Un(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function se(e,t,r){if(!e)return[];if(!t)return tc(e);if(e.filter&&e.filter===xC)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function AC(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function Vt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function MC(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(Kh.call(arguments)))}}var At=jl&&rt(jl.bind)?jl.call.bind(jl.bind):MC;function Qt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(Kh.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):Zo.call(e)==="[object Array]"}function rt(e){return typeof e=="function"}function Y(e){return typeof e=="string"}function Jh(e){return Zo.call(e)==="[object String]"}function Mt(e){return typeof e=="number"}function Z(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Tm(e){return!!bm[Zo.call(e)]}function Re(e){return!!wm[Zo.call(e)]}function Ko(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ql(e){return e.colorStops!=null}function LC(e){return e.image!=null}function jo(e){return e!==e}function Jl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function Q(e,t){return e??t}function zi(e,t,r){return e??t??r}function tc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return Kh.apply(e,t)}function ec(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function _n(e,t){if(!e)throw new Error(t)}function Ur(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Cm="__ec_primitive__";function rc(e){e[Cm]=!0}function Qo(e){return e[Cm]}var kC=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return Vt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e})(),Dm=typeof Map=="function";function IC(){return Dm?new Map:new kC}var PC=(function(){function e(t){var r=U(t);this.data=IC();var n=this;t instanceof e?t.each(i):t&&L(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return Dm?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function ft(e){return new PC(e)}function EC(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function tu(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&H(r,t),r}function Am(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ar(e,t){return e.hasOwnProperty(t)}function Oe(){}var RC=180/Math.PI;/*! *****************************************************************************
|
|
25
25
|
Copyright (c) Microsoft Corporation.
|
|
26
26
|
|
|
27
27
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -34,8 +34,8 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
|
|
|
34
34
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
35
35
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
36
36
|
PERFORMANCE OF THIS SOFTWARE.
|
|
37
|
-
***************************************************************************** */var ec=function(t,e){return ec=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},ec(t,e)};function Me(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ec(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Wa(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function bC(t){return[t[0],t[1]]}function Dm(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function wC(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function SC(t){return Math.sqrt(xC(t))}function xC(t){return t[0]*t[0]+t[1]*t[1]}function tc(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function TC(t,e){var r=SC(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function rc(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var nc=rc;function CC(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var $a=CC;function ic(t,e,r,n){return t[0]=e[0]+n*(r[0]-e[0]),t[1]=e[1]+n*(r[1]-e[1]),t}function or(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[2]*i+r[4],t[1]=r[1]*n+r[3]*i+r[5],t}function Ua(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ya(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var Xa=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})(),DC=(function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xa(r,e),"dragstart",e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,e),this.handler.dispatchToElement(new Xa(r,e),"drag",e.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Xa(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Xa(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Xa(r,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Xa(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t})(),Xr=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(r){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==r&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},t.prototype.trigger=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})(),EC=Math.log(2);function ac(t,e,r,n,i,a){var o=n+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/EC);return t[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*t[r][c]*ac(t,e-1,f,u,i|d,a),v++)}return a[o]=h,h}function Em(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},i=ac(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ac(r,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Jl="___zrEVENTSAVED",oc=[];function AC(t,e,r,n,i){return sc(oc,e,n,i,!0)&&sc(t,r,oc[0],oc[1])}function MC(t,e){t&&r(t),e&&r(e);function r(n){var i=n[Jl];i&&(i.clearMarkers&&i.clearMarkers(),delete n[Jl])}}function sc(t,e,r,n,i){if(e.getBoundingClientRect&&te.domSupported&&!Am(e)){var a=e[Jl]||(e[Jl]={}),o=LC(e,a),s=IC(o,a,i);if(s)return s(t,r,n),!0}return!1}function LC(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){A(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function IC(t,e,r){for(var n=r?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=r?Em(s,o):Em(o,s))}function Am(t){return t.nodeName.toUpperCase()==="CANVAS"}var PC=/([&<>"'])/g,kC={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ot(t){return t==null?"":(t+"").replace(PC,function(e,r){return kC[r]})}var NC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,lc=[],OC=te.browser.firefox&&+te.browser.version.split(".")[0]<39;function uc(t,e,r,n){return r=r||{},n?Mm(t,e,r):OC&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Mm(t,e,r),r}function Mm(t,e,r){if(te.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(Am(t)){var a=t.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(sc(lc,t,n,i)){r.zrX=lc[0],r.zrY=lc[1];return}}r.zrX=r.zrY=0}function fc(t){return t||window.event}function sr(t,e,r){if(e=fc(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&uc(t,o,e,r)}else{uc(t,e,e,r);var a=RC(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&NC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function RC(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,n=t.deltaY;if(r==null||n==null)return e;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function BC(t,e,r,n){t.addEventListener(e,r,n)}function VC(t,e,r,n){t.removeEventListener(e,r,n)}var Lm=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},FC=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,n){return this._doTrack(e,r,n),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:r,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=uc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in hc)if(hc.hasOwnProperty(r)){var n=hc[r](this._track,e);if(n)return n}},t})();function Im(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function zC(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var hc={pinch:function(t,e){var r=t.length;if(r){var n=(t[r-1]||{}).points,i=(t[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Im(n)/Im(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=zC(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function _n(){return[1,0,0,1,0,0]}function cc(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Pm(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Jo(t,e,r){var n=e[0]*r[0]+e[2]*r[1],i=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function vc(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function dc(t,e,r,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),h=Math.cos(r);return t[0]=i*h+s*f,t[1]=-i*f+s*h,t[2]=a*h+l*f,t[3]=-a*f+h*l,t[4]=h*(o-n[0])+f*(u-n[1])+n[0],t[5]=h*(u-n[1])-f*(o-n[0])+n[1],t}function HC(t,e,r){var n=r[0],i=r[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function es(t,e){var r=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*n;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-n*l,t[3]=r*l,t[4]=(n*s-o*i)*l,t[5]=(a*i-r*s)*l,t):null}var ne=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,n=this.y-e.y;return Math.sqrt(r*r+n*n)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,n=this.y-e.y;return r*r+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,n=this.y;return this.x=e[0]*r+e[2]*n+e[4],this.y=e[1]*r+e[3]*n+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,n){e.x=r,e.y=n},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,n){e.x=r.x+n.x,e.y=r.y+n.y},t.sub=function(e,r,n){e.x=r.x-n.x,e.y=r.y-n.y},t.scale=function(e,r,n){e.x=r.x*n,e.y=r.y*n},t.scaleAndAdd=function(e,r,n,i){e.x=r.x+n.x*i,e.y=r.y+n.y*i},t.lerp=function(e,r,n,i){var a=1-i;e.x=a*r.x+i*n.x,e.y=a*r.y+i*n.y},t})(),Oi=Math.min,qa=Math.max,pc=Math.abs,km=["x","y"],GC=["width","height"],Ri=new ne,Bi=new ne,Vi=new ne,Fi=new ne,$t=Om(),ts=$t.minTv,gc=$t.maxTv,rs=[0,0],oe=(function(){function t(e,r,n,i){t.set(this,e,r,n,i)}return t.set=function(e,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),e.x=r,e.y=n,e.width=i,e.height=a,e},t.prototype.union=function(e){var r=Oi(e.x,this.x),n=Oi(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qa(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=qa(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=r,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var r=this,n=e.width/r.width,i=e.height/r.height,a=_n();return vc(a,a,[-r.x,-r.y]),HC(a,a,[n,i]),vc(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,r,n){return t.intersect(this,e,r,n)},t.intersect=function(e,r,n,i){n&&ne.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=t.set(WC,e.x,e.y,e.width,e.height)),r instanceof t||(r=t.set($C,r.x,r.y,r.width,r.height));var s=!!n;$t.reset(i,s);var l=$t.touchThreshold,u=e.x+l,f=e.x+e.width-l,h=e.y+l,c=e.y+e.height-l,v=r.x+l,d=r.x+r.width-l,m=r.y+l,p=r.y+r.height-l;if(u>f||h>c||v>d||m>p)return!1;var g=!(f<v||d<u||c<m||p<h);return(s||a)&&(rs[0]=1/0,rs[1]=0,Nm(u,f,v,d,0,s,a,o),Nm(h,c,m,p,1,s,a,o),s&&ne.copy(n,g?$t.useDir?$t.dirMinTv:ts:gc)),g},t.contain=function(e,r,n){return r>=e.x&&r<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,n){if(!n){e!==r&&t.copy(e,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=r.x*i+o,e.y=r.y*a+s,e.width=r.width*i,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ri.x=Vi.x=r.x,Ri.y=Fi.y=r.y,Bi.x=Fi.x=r.x+r.width,Bi.y=Vi.y=r.y+r.height,Ri.transform(n),Fi.transform(n),Bi.transform(n),Vi.transform(n),e.x=Oi(Ri.x,Bi.x,Vi.x,Fi.x),e.y=Oi(Ri.y,Bi.y,Vi.y,Fi.y);var l=qa(Ri.x,Bi.x,Vi.x,Fi.x),u=qa(Ri.y,Bi.y,Vi.y,Fi.y);e.width=l-e.x,e.height=u-e.y},t})(),WC=new oe(0,0,0,0),$C=new oe(0,0,0,0);function Nm(t,e,r,n,i,a,o,s){var l=pc(e-r),u=pc(n-t),f=Oi(l,u),h=km[i],c=km[1-i],v=GC[i];e<r||n<t?l<u?(a&&(gc[h]=-l),s&&(o[h]=e,o[v]=0)):(a&&(gc[h]=u),s&&(o[h]=t,o[v]=0)):(o&&(o[h]=qa(t,r),o[v]=Oi(e,n)-o[h]),a&&(f<rs[0]||$t.useDir)&&(rs[0]=Oi(f,rs[0]),(l<u||!$t.bidirectional)&&(ts[h]=l,ts[c]=0,$t.useDir&&$t.calcDirMTV()),(l>=u||!$t.bidirectional)&&(ts[h]=-u,ts[c]=0,$t.useDir&&$t.calcDirMTV())))}function Om(){var t=0,e=new ne,r=new ne,n={minTv:new ne,maxTv:new ne,useDir:!1,dirMinTv:new ne,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=qa(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),t=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return pc(a)<1e-10}return n}var Rm="silent";function UC(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:YC}}function YC(){Lm(this.event)}var XC=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Xr),ns=(function(){function t(e,r){this.x=e,this.y=r}return t})(),qC=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mc=new oe(0,0,0,0),Bm=(function(t){Me(e,t);function e(r,n,i,a,o){var s=t.call(this)||this;return s._hovered=new ns(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new XC,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new DC(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(A(qC,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Fm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ns(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},e.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},e.prototype.resize=function(){this._hovered=new ns(0,0)},e.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},e.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=UC(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ns(r,n);if(Vm(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new oe(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(mc.copy(c.getBoundingRect()),c.transform&&mc.applyTransform(c.transform),mc.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,m=Math.PI*2,p=0;p<u;p+=v)for(var g=0;g<m;g+=d){var y=r+p*Math.cos(g),_=n+p*Math.sin(g);if(Vm(s,o,y,_,i),o.target)return o}}return o},e.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new FC);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ns;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Xr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Bm.prototype[t]=function(e){var r=e.zrX,n=e.zrY,i=Fm(this,r,n),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||nc(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function ZC(t,e,r){if(t[t.rectHover?"rectContain":"contain"](e,r)){for(var n=t,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Rm:!0}return!1}function Vm(t,e,r,n,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=ZC(o,r,n))&&(!e.topTarget&&(e.topTarget=o),s!==Rm)){e.target=o;break}}}function Fm(t,e,r){var n=t.painter;return e<0||e>n.getWidth()||r<0||r>n.getHeight()}var zm=32,is=7;function KC(t){for(var e=0;t>=zm;)e|=t&1,t>>=1;return t+e}function Hm(t,e,r,n){var i=e+1;if(i===r)return 1;if(n(t[i++],t[e])<0){for(;i<r&&n(t[i],t[i-1])<0;)i++;jC(t,e,i)}else for(;i<r&&n(t[i],t[i-1])>=0;)i++;return i-e}function jC(t,e,r){for(r--;e<r;){var n=t[e];t[e++]=t[r],t[r--]=n}}function Gm(t,e,r,n,i){for(n===e&&n++;n<r;n++){for(var a=t[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function yc(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])>0){for(s=n-i;l<s&&a(t,e[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])>0?o=f+1:l=f}return l}function _c(t,e,r,n,i,a){var o=0,s=0,l=1;if(a(t,e[r+i])<0){for(s=i+1;l<s&&a(t,e[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(t,e[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(t,e[r+f])<0?l=f:o=f+1}return l}function QC(t,e){var r=is,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],m=i[v],p=n[v+1],g=i[v+1];i[v]=m+g,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var y=_c(t[p],t,d,m,0,e);d+=y,m-=y,m!==0&&(g=yc(t[d+m-1],t,p,g,g-1,e),g!==0&&(m<=g?h(d,m,p,g):c(d,m,p,g)))}function h(v,d,m,p){var g=0;for(g=0;g<d;g++)o[g]=t[v+g];var y=0,_=m,b=v;if(t[b++]=t[_++],--p===0){for(g=0;g<d;g++)t[b+g]=o[y+g];return}if(d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y];return}for(var w=r,S,x,T;;){S=0,x=0,T=!1;do if(e(t[_],o[y])<0){if(t[b++]=t[_++],x++,S=0,--p===0){T=!0;break}}else if(t[b++]=o[y++],S++,x=0,--d===1){T=!0;break}while((S|x)<w);if(T)break;do{if(S=_c(t[_],o,y,d,0,e),S!==0){for(g=0;g<S;g++)t[b+g]=o[y+g];if(b+=S,y+=S,d-=S,d<=1){T=!0;break}}if(t[b++]=t[_++],--p===0){T=!0;break}if(x=yc(o[y],t,_,p,0,e),x!==0){for(g=0;g<x;g++)t[b+g]=t[_+g];if(b+=x,_+=x,p-=x,p===0){T=!0;break}}if(t[b++]=o[y++],--d===1){T=!0;break}w--}while(S>=is||x>=is);if(T)break;w<0&&(w=0),w+=2}if(r=w,r<1&&(r=1),d===1){for(g=0;g<p;g++)t[b+g]=t[_+g];t[b+p]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)t[b+g]=o[y+g]}}function c(v,d,m,p){var g=0;for(g=0;g<p;g++)o[g]=t[m+g];var y=v+d-1,_=p-1,b=m+p-1,w=0,S=0;if(t[b--]=t[y--],--d===0){for(w=b-(p-1),g=0;g<p;g++)t[w+g]=o[g];return}if(p===1){for(b-=d,y-=d,S=b+1,w=y+1,g=d-1;g>=0;g--)t[S+g]=t[w+g];t[b]=o[_];return}for(var x=r;;){var T=0,C=0,E=!1;do if(e(o[_],t[y])<0){if(t[b--]=t[y--],T++,C=0,--d===0){E=!0;break}}else if(t[b--]=o[_--],C++,T=0,--p===1){E=!0;break}while((T|C)<x);if(E)break;do{if(T=d-_c(o[_],t,v,d,d-1,e),T!==0){for(b-=T,y-=T,d-=T,S=b+1,w=y+1,g=T-1;g>=0;g--)t[S+g]=t[w+g];if(d===0){E=!0;break}}if(t[b--]=o[_--],--p===1){E=!0;break}if(C=p-yc(t[y],o,0,p,p-1,e),C!==0){for(b-=C,_-=C,p-=C,S=b+1,w=_+1,g=0;g<C;g++)t[S+g]=o[w+g];if(p<=1){E=!0;break}}if(t[b--]=t[y--],--d===0){E=!0;break}x--}while(T>=is||C>=is);if(E)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(b-=d,y-=d,S=b+1,w=y+1,g=d-1;g>=0;g--)t[S+g]=t[w+g];t[b]=o[_]}else{if(p===0)throw new Error;for(w=b-(p-1),g=0;g<p;g++)t[w+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function eu(t,e,r,n){r||(r=0),n||(n=t.length);var i=n-r;if(!(i<2)){var a=0;if(i<zm){a=Hm(t,r,n,e),Gm(t,r,n,r+a,e);return}var o=QC(t,e),s=KC(i);do{if(a=Hm(t,r,n,e),a<s){var l=i;l>s&&(l=s),Gm(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ut=1,as=2,Za=4,Wm=!1;function bc(){Wm||(Wm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $m(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var JC=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$m}return t.prototype.traverse=function(e,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(r),n},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,e);n.length=this._displayListLen,eu(n,$m)},t.prototype._updateAndAddDisplayable=function(e,r,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||i)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var h=e.childrenRef(),c=0;c<h.length;c++){var v=h[c];e.__dirty&&(v.__dirty|=Ut),this._updateAndAddDisplayable(v,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(bc(),d.z=0),isNaN(d.z2)&&(bc(),d.z2=0),isNaN(d.zlevel)&&(bc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,n=e.length;r<n;r++)this.delRoot(e[r]);return}var i=me(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})(),tu;tu=te.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var os={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)))},elasticOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},elasticInOut:function(t){var e,r=.1,n=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=n/4):e=n*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-os.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?os.bounceIn(t*2)*.5:os.bounceOut(t*2-1)*.5+.5}},ru=Math.pow,$n=Math.sqrt,nu=1e-8,Um=1e-4,Ym=$n(3),iu=1/3,qr=Wa(),lr=Wa(),Ka=Wa();function Un(t){return t>-nu&&t<nu}function Xm(t){return t>nu||t<-nu}function ot(t,e,r,n,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*n+3*a*r)}function qm(t,e,r,n,i){var a=1-i;return 3*(((e-t)*a+2*(r-e)*i)*a+(n-r)*i*i)}function au(t,e,r,n,i,a){var o=n+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-i,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Un(f)&&Un(h))if(Un(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var m=h*h-4*f*c;if(Un(m)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g)}else if(m>0){var y=$n(m),_=f*s+1.5*o*(-h+y),b=f*s+1.5*o*(-h-y);_<0?_=-ru(-_,iu):_=ru(_,iu),b<0?b=-ru(-b,iu):b=ru(b,iu);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*$n(f*f*f)),S=Math.acos(w)/3,x=$n(f),T=Math.cos(S),d=(-s-2*x*T)/(3*o),g=(-s+x*(T+Ym*Math.sin(S)))/(3*o),C=(-s+x*(T-Ym*Math.sin(S)))/(3*o);d>=0&&d<=1&&(a[v++]=d),g>=0&&g<=1&&(a[v++]=g),C>=0&&C<=1&&(a[v++]=C)}}return v}function Zm(t,e,r,n,i){var a=6*r-12*e+6*t,o=9*e+3*n-3*t-9*r,s=3*e-3*t,l=0;if(Un(o)){if(Xm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Un(f))i[0]=-a/(2*o);else if(f>0){var h=$n(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function ou(t,e,r,n,i,a){var o=(e-t)*i+t,s=(r-e)*i+e,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function eD(t,e,r,n,i,a,o,s,l,u,f){var h,c=.005,v=1/0,d,m,p,g;qr[0]=l,qr[1]=u;for(var y=0;y<1;y+=.05)lr[0]=ot(t,r,i,o,y),lr[1]=ot(e,n,a,s,y),p=$a(qr,lr),p<v&&(h=y,v=p);v=1/0;for(var _=0;_<32&&!(c<Um);_++)d=h-c,m=h+c,lr[0]=ot(t,r,i,o,d),lr[1]=ot(e,n,a,s,d),p=$a(lr,qr),d>=0&&p<v?(h=d,v=p):(Ka[0]=ot(t,r,i,o,m),Ka[1]=ot(e,n,a,s,m),g=$a(Ka,qr),m<=1&&g<v?(h=m,v=g):c*=.5);return $n(v)}function tD(t,e,r,n,i,a,o,s,l){for(var u=t,f=e,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,m=ot(t,r,i,o,d),p=ot(e,n,a,s,d),g=m-u,y=p-f;h+=Math.sqrt(g*g+y*y),u=m,f=p}return h}function Rt(t,e,r,n){var i=1-n;return i*(i*t+2*n*e)+n*n*r}function Km(t,e,r,n){return 2*((1-n)*(e-t)+n*(r-e))}function rD(t,e,r,n,i){var a=t-2*e+r,o=2*(e-t),s=t-n,l=0;if(Un(a)){if(Xm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Un(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=$n(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),c>=0&&c<=1&&(i[l++]=c)}}return l}function jm(t,e,r){var n=t+r-2*e;return n===0?.5:(t-e)/n}function su(t,e,r,n,i){var a=(e-t)*n+t,o=(r-e)*n+e,s=(o-a)*n+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function nD(t,e,r,n,i,a,o,s,l){var u,f=.005,h=1/0;qr[0]=o,qr[1]=s;for(var c=0;c<1;c+=.05){lr[0]=Rt(t,r,i,c),lr[1]=Rt(e,n,a,c);var v=$a(qr,lr);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<Um);d++){var m=u-f,p=u+f;lr[0]=Rt(t,r,i,m),lr[1]=Rt(e,n,a,m);var v=$a(lr,qr);if(m>=0&&v<h)u=m,h=v;else{Ka[0]=Rt(t,r,i,p),Ka[1]=Rt(e,n,a,p);var g=$a(Ka,qr);p<=1&&g<h?(u=p,h=g):f*=.5}}return $n(h)}function iD(t,e,r,n,i,a,o){for(var s=t,l=e,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Rt(t,r,i,c),d=Rt(e,n,a,c),m=v-s,p=d-l;u+=Math.sqrt(m*m+p*p),s=v,l=d}return u}var aD=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qm(t){var e=t&&aD.exec(t);if(e){var r=e[1].split(","),n=+Yr(r[0]),i=+Yr(r[1]),a=+Yr(r[2]),o=+Yr(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:au(0,n,a,1,l,s)&&ot(0,i,o,1,s[0])}}}var oD=(function(){function t(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||Nt,this.ondestroy=e.ondestroy||Nt,this.onrestart=e.onrestart||Nt,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Q(e)?e:os[e]||Qm(e)},t})(),Jm=(function(){function t(e){this.value=e}return t})(),sD=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new Jm(e);return this.insertEntry(r),r},t.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++},t.prototype.remove=function(e){var r=e.prev,n=e.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})(),ja=(function(){function t(e){this._list=new sD,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new Jm(r),s.key=e,n.insertEntry(s),i[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})(),ey={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 Yn(t){return t=Math.round(t),t<0?0:t>255?255:t}function wc(t){return t<0?0:t>1?1:t}function Sc(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Yn(parseFloat(e)/100*255):Yn(parseInt(e,10))}function zi(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?wc(parseFloat(e)/100):wc(parseFloat(e))}function xc(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(.6666666666666666-r)*6:t}function lu(t,e,r){return t+(e-t)*r}function ur(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}function Tc(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var ty=new ja(20),uu=null;function Qa(t,e){uu&&Tc(uu,e),uu=ty.put(t,uu||e.slice())}function Zr(t,e){if(t){e=e||[];var r=ty.get(t);if(r)return Tc(e,r);t=t+"";var n=t.replace(/ /g,"").toLowerCase();if(n in ey)return Tc(e,ey[n]),Qa(t,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){ur(e,0,0,0,1);return}return ur(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Qa(t,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ur(e,0,0,0,1);return}return ur(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Qa(t,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ur(e,+u[0],+u[1],+u[2],1):ur(e,0,0,0,1);f=zi(u.pop());case"rgb":if(u.length>=3)return ur(e,Sc(u[0]),Sc(u[1]),Sc(u[2]),u.length===3?f:zi(u[3])),Qa(t,e),e;ur(e,0,0,0,1);return;case"hsla":if(u.length!==4){ur(e,0,0,0,1);return}return u[3]=zi(u[3]),Cc(u,e),Qa(t,e),e;case"hsl":if(u.length!==3){ur(e,0,0,0,1);return}return Cc(u,e),Qa(t,e),e;default:return}}ur(e,0,0,0,1)}}function Cc(t,e){var r=(parseFloat(t[0])%360+360)%360/360,n=zi(t[1]),i=zi(t[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],ur(e,Yn(xc(o,a,r+.3333333333333333)*255),Yn(xc(o,a,r)*255),Yn(xc(o,a,r-.3333333333333333)*255),1),t.length===4&&(e[3]=t[3]),e}function lD(t){if(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,i=Math.min(e,r,n),a=Math.max(e,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-r)/6+o/2)/o,c=((a-n)/6+o/2)/o;e===a?l=c-h:r===a?l=.3333333333333333+f-c:n===a&&(l=.6666666666666666+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return t[3]!=null&&v.push(t[3]),v}}function ry(t,e){var r=Zr(t);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-e)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ss(r,r.length===4?"rgba":"rgb")}}function uD(t,e,r){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var n=t*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=Zr(e[i]),s=Zr(e[a]),l=n-i,u=ss([Yn(lu(o[0],s[0],l)),Yn(lu(o[1],s[1],l)),Yn(lu(o[2],s[2],l)),wc(lu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Dc(t,e,r,n){var i=Zr(t);if(t)return i=lD(i),r!=null&&(i[1]=zi(Q(r)?r(i[1]):r)),n!=null&&(i[2]=zi(Q(n)?n(i[2]):n)),ss(Cc(i),"rgba")}function ss(t,e){if(!(!t||!t.length)){var r=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(r+=","+t[3]),e+"("+r+")"}}function fu(t,e){var r=Zr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var ny=new ja(100);function iy(t){if(Y(t)){var e=ny.get(t);return e||(e=ry(t,-.1),ny.put(t,e)),e}else if(jl(t)){var r=V({},t);return r.colorStops=Z(t.colorStops,function(n){return{offset:n.offset,color:ry(n.color,-.1)}}),r}return t}function fD(t){return t.type==="linear"}function hD(t){return t.type==="radial"}(function(){return te.hasGlobalWindow&&Q(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&Ni("Base64 isn't natively supported in the current environment."),null}})();var Ec=Array.prototype.slice;function bn(t,e,r){return(e-t)*r+t}function Ac(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=bn(e[a],r[a],n);return t}function cD(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=bn(e[o][s],r[o][s],n)}return t}function hu(t,e,r,n){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+r[a]*n;return t}function ay(t,e,r,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*n}return t}function vD(t,e){for(var r=t.length,n=e.length,i=r>n?e:t,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function dD(t,e,r){var n=t,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:Ec.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function cu(t){if(kt(t)){var e=t.length;if(kt(t[0])){for(var r=[],n=0;n<e;n++)r.push(Ec.call(t[n]));return r}return Ec.call(t)}return t}function vu(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function pD(t){return kt(t&&t[0])?2:1}var du=0,pu=1,oy=2,ls=3,Mc=4,Lc=5,sy=6;function ly(t){return t===Mc||t===Lc}function gu(t){return t===pu||t===oy}var us=[0,0,0,0],gD=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=sy,l=r;if(kt(r)){var u=pD(r);s=u,(u===1&&!Ce(r[0])||u===2&&!Ce(r[0][0]))&&(o=!0)}else if(Ce(r)&&!Ha(r))s=du;else if(Y(r))if(!isNaN(+r))s=du;else{var f=Zr(r);f&&(l=f,s=ls)}else if(jl(r)){var h=V({},l);h.colorStops=Z(r.colorStops,function(v){return{offset:v.offset,color:Zr(v.color)}}),fD(r)?s=Mc:hD(r)&&(s=Lc),l=h}a===0?this.valType=s:(s!==this.valType||s===sy)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:r,percent:0};return n&&(c.easing=n,c.easingFunc=Q(n)?n:os[n]||Qm(n)),i.push(c),c},t.prototype.prepare=function(e,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,p){return m.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=gu(i),u=ly(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/e,s||(l&&f!==a-1?dD(c,v,i):u&&vD(c.colorStops,v.colorStops))}if(!s&&i!==Lc&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===du?n[f].additiveValue=n[f].value-d:i===ls?n[f].additiveValue=hu([],n[f].value,d,-1):gu(i)&&(n[f].additiveValue=i===pu?hu([],n[f].value,d,-1):ay([],n[f].value,d,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ls,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=c(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-v.percent,g=p===0?1:c((r-v.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?us:e[l];if((gu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:d.rawValue;else if(gu(a))a===pu?Ac(y,v[i],d[i],g):cD(y,v[i],d[i],g);else if(ly(a)){var _=v[i],b=d[i],w=a===Mc;e[l]={type:w?"linear":"radial",x:bn(_.x,b.x,g),y:bn(_.y,b.y,g),colorStops:Z(_.colorStops,function(x,T){var C=b.colorStops[T];return{offset:bn(x.offset,C.offset,g),color:vu(Ac([],x.color,C.color,g))}}),global:b.global},w?(e[l].x2=bn(_.x2,b.x2,g),e[l].y2=bn(_.y2,b.y2,g)):e[l].r=bn(_.r,b.r,g)}else if(u)Ac(y,v[i],d[i],g),n||(e[l]=vu(y));else{var S=bn(v[i],d[i],g);n?this._additiveValue=S:e[l]=S}n&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,n=this.propName,i=this._additiveValue;r===du?e[n]=e[n]+i:r===ls?(Zr(e[n],us),hu(us,us,i,1),e[n]=vu(us)):r===pu?hu(e[n],e[n],i,1):r===oy&&ay(e[n],e[n],i,1)},t})(),Ic=(function(){function t(e,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&i){Ni("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,n){return this.whenWithKeys(e,r,Pe(r),n)},t.prototype.whenWithKeys=function(e,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new gD(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===ls&&u&&(u=vu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,cu(u),i),this._trackKeys.push(s)}l.addKeyframe(e,cu(r[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,n=0;n<r;n++)e[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)e[r[n]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new oD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,p=0;p<d.length;p++)if(d[p]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,v);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,v)},ondestroy:function(){r._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return Z(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,n){if(e){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=cu(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||Pe(e);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function Ja(){return new Date().getTime()}var mD=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},e.prototype.update=function(r){for(var n=Ja()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(tu(n),!r._paused&&r.update())}tu(n)},e.prototype.start=function(){this._running||(this._time=Ja(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ja(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ja()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,n){n=n||{},this.start();var i=new Ic(r,n.loop);return this.addAnimator(i),i},e})(Xr),yD=300,Pc=te.domSupported,kc=(function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Z(t,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:n}})(),uy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},fy=!1;function Nc(t){var e=t.pointerType;return e==="pen"||e==="touch"}function _D(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function Oc(t){t&&(t.zrByTouch=!0)}function bD(t,e){return sr(t.dom,new wD(t,e),!0)}function hy(t,e){for(var r=e,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return n}var wD=(function(){function t(e,r){this.stopPropagation=Nt,this.stopImmediatePropagation=Nt,this.preventDefault=Nt,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})(),Lr={mousedown:function(t){t=sr(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=sr(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=sr(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=sr(this.dom,t);var e=t.toElement||t.relatedTarget;hy(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){fy=!0,t=sr(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){fy||(t=sr(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=sr(this.dom,t),Oc(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Lr.mousemove.call(this,t),Lr.mousedown.call(this,t)},touchmove:function(t){t=sr(this.dom,t),Oc(t),this.handler.processGesture(t,"change"),Lr.mousemove.call(this,t)},touchend:function(t){t=sr(this.dom,t),Oc(t),this.handler.processGesture(t,"end"),Lr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<yD&&Lr.click.call(this,t)},pointerdown:function(t){Lr.mousedown.call(this,t)},pointermove:function(t){Nc(t)||Lr.mousemove.call(this,t)},pointerup:function(t){Lr.mouseup.call(this,t)},pointerout:function(t){Nc(t)||Lr.mouseout.call(this,t)}};A(["click","dblclick","contextmenu"],function(t){Lr[t]=function(e){e=sr(this.dom,e),this.trigger(t,e)}});var Rc={pointermove:function(t){Nc(t)||Rc.mousemove.call(this,t)},pointerup:function(t){Rc.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function SD(t,e){var r=e.domHandlers;te.pointerEventsSupported?A(kc.pointer,function(n){mu(e,n,function(i){r[n].call(t,i)})}):(te.touchEventsSupported&&A(kc.touch,function(n){mu(e,n,function(i){r[n].call(t,i),_D(e)})}),A(kc.mouse,function(n){mu(e,n,function(i){i=fc(i),e.touching||r[n].call(t,i)})}))}function xD(t,e){te.pointerEventsSupported?A(uy.pointer,r):te.touchEventsSupported||A(uy.mouse,r);function r(n){function i(a){a=fc(a),hy(t,a.target)||(a=bD(t,a),e.domHandlers[n].call(t,a))}mu(e,n,i,{capture:!0})}}function mu(t,e,r,n){t.mounted[e]=r,t.listenerOpts[e]=n,BC(t.domTarget,e,r,n)}function Bc(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&VC(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var cy=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})(),TD=(function(t){Me(e,t);function e(r,n){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new cy(r,Lr),Pc&&(i._globalHandlerScope=new cy(document,Rc)),SD(i,i._localHandlerScope),i}return e.prototype.dispose=function(){Bc(this._localHandlerScope),Pc&&Bc(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Pc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?xD(this,n):Bc(n)}},e})(Xr),vy=1;te.hasGlobalWindow&&(vy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var yu=vy,Vc=.4,Fc="#333",zc="#ccc",CD="#eee",dy=cc,py=5e-5;function Hi(t){return t>py||t<-py}var Gi=[],eo=[],Hc=_n(),Gc=Math.abs,Wc=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Hi(this.rotation)||Hi(this.x)||Hi(this.y)||Hi(this.scaleX-1)||Hi(this.scaleY-1)||Hi(this.skewX)||Hi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||e)){n&&(dy(n),this.invTransform=null);return}n=n||_n(),r?this.getLocalTransform(n):dy(n),e&&(r?Jo(n,e,n):Pm(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gi);var n=Gi[0]<0?-1:1,i=Gi[1]<0?-1:1,a=((Gi[0]-n)*r+n)/Gi[0]||0,o=((Gi[1]-i)*r+i)/Gi[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||_n(),es(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||_n(),Jo(eo,e.invTransform,r),r=eo);var n=this.originX,i=this.originY;(n||i)&&(Hc[4]=n,Hc[5]=i,Jo(eo,r,Hc),eo[4]-=n,eo[5]-=i,r=eo),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var n=[e,r],i=this.invTransform;return i&&or(n,n,i),n},t.prototype.transformCoordToGlobal=function(e,r){var n=[e,r],i=this.transform;return i&&or(n,n,i),n},t.prototype.getLineScale=function(){var e=this.transform;return e&&Gc(e[0]-1)>1e-10&&Gc(e[3]-1)>1e-10?Math.sqrt(Gc(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){$c(this,e)},t.getLocalTransform=function(e,r){r=r||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var d=n+s,m=i+l;r[4]=-d*a-c*m*o,r[5]=-m*o-v*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=v*a,r[2]=c*o,u&&dc(r,r,u),r[4]+=n+f,r[5]+=i+h,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})(),fs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function $c(t,e){for(var r=0;r<fs.length;r++){var n=fs[r];t[n]=e[n]}}function Kr(t){_u||(_u=new ja(100)),t=t||Gn;var e=_u.get(t);return e||(e={font:t,strWidthCache:new ja(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:mn.measureText("国",t).width,asciiCharWidth:mn.measureText("a",t).width},_u.put(t,e)),e}var _u;function DD(t){if(!(Uc>=gy)){t=t||Gn;for(var e=[],r=+new Date,n=0;n<=127;n++)e[n]=mn.measureText(String.fromCharCode(n),t).width;var i=+new Date-r;return i>16?Uc=gy:i>2&&Uc++,e}}var Uc=0,gy=5;function my(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=DD(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function jr(t,e){var r=t.strWidthCache,n=r.get(e);return n==null&&(n=mn.measureText(e,t.font).width,r.put(e,n)),n}function yy(t,e,r,n){var i=jr(Kr(e),t),a=bu(e),o=to(0,i,r),s=Wi(0,a,n),l=new oe(o,s,i,a);return l}function _y(t,e,r,n){var i=((t||"")+"").split(`
|
|
38
|
-
`),a=i.length;if(a===1)return yy(i[0],e,r,n);for(var o=new oe(0,0,0,0),s=0;s<i.length;s++){var l=yy(i[s],e,r,n);s===0?o.copy(l):o.union(l)}return o}function to(t,e,r,n){return r==="right"?n?t+=e:t-=e:r==="center"&&(n?t+=e/2:t-=e/2),t}function Wi(t,e,r,n){return r==="middle"?n?t+=e/2:t-=e/2:r==="bottom"&&(n?t+=e:t-=e),t}function bu(t){return Kr(t).stWideCharWidth}function Xn(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function wu(t,e,r){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Xn(n[0],r.width),u+=Xn(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=h,t}var Yc="__zr_normal__",Xc=fs.concat(["ignore"]),ED=Wn(fs,function(t,e){return t[e]=!0,t},{ignore:!1}),ro={},AD=new oe(0,0,0,0),Su=[],xu=(function(){function t(e){this.id=wm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,n){switch(this.draggable){case"horizontal":r=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]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,c=void 0;if((h||f)&&(c=AD,n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(ro,n,c):wu(ro,n,c),a.x=ro.x,a.y=ro.y,o=ro.align,s=ro.verticalAlign;var v=n.origin;if(v&&n.rotation!=null){var d=void 0,m=void 0;v==="center"?(d=c.width*.5,m=c.height*.5):(d=Xn(v[0],c.width),m=Xn(v[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+m+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=g.overflowRect=g.overflowRect||new oe(0,0,0,0);a.getLocalTransform(Su),es(Su,Su),oe.copy(y,c),y.applyTransform(Su)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,w=void 0,S=void 0;_&&this.canBeInsideText()?(b=n.insideFill,w=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(b),S=!0)):(b=n.outsideFill,w=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(b),S=!0)),b=b||"#000",(b!==g.fill||w!==g.stroke||S!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=b,g.stroke=w,g.autoStroke=S,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ut,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?zc:Fc},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Zr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ss(n,"rgba")},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e==="textConfig"?this.setTextConfig(r):e==="textContent"?this.setTextContent(r):e==="clipPath"?this.setClipPath(r):e==="extra"?(this.extra=this.extra||{},V(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e=="string")this.attrKV(e,r);else if(q(e))for(var n=e,i=Pe(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Yc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Xc)},t.prototype._savePrimaryToNormal=function(e,r,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(Yc,!1,e)},t.prototype.useState=function(e,r,n,i){var a=e===Yc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(me(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Ni("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(e,r,n,f),c&&c.useState(e,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut),u}}},t.prototype.useStates=function(e,r,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(","),v,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(e,r,c),p&&p.useStates(e,r,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ut)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=me(this.currentStates,e);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},t.prototype.replaceState=function(e,r,n){var i=this.currentStates.slice(),a=me(i,e),o=me(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},n,i=0;i<e.length;i++){var a=e[i];V(r,a),a.textConfig&&(n=n||{},V(n,a.textConfig))}return n&&(r.textConfig=n),r},t.prototype._applyStateObj=function(e,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=V({},i?this.textConfig:n.textConfig),V(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Xc.length;f++){var h=Xc[f],c=a&&ED[h];r&&r[h]!=null?c?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(c?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(e,l,o)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;if(r!==e){if(r&&r!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Wc,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),V(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Ut;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=e),n&&(n.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)e.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,n){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){Ni('Property "'+e+'" is not existed in element '+this.id);return}var a=new Ic(i,r,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=me(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,n){qc(this,e,r,n)},t.prototype.animateFrom=function(e,r,n){qc(this,e,r,n,!0)},t.prototype._transitionState=function(e,r,n,i){for(var a=qc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Ut;var r={};function n(a,o,s){r[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&n(a,s,l),!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){process.env.NODE_ENV!=="production"&&n(a,s,l),this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,h){Object.defineProperty(h,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(h,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))})(),t})();Ur(xu,Xr),Ur(xu,Wc);function qc(t,e,r,n,i){r=r||{};var a=[];by(t,"",t,e,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),r.force&&v.duration(r.duration),v.start(r.easing)}return a}function Zc(t,e,r){for(var n=0;n<r;n++)t[n]=e[n]}function MD(t){return kt(t[0])}function LD(t,e,r){if(kt(e[r]))if(kt(t[r])||(t[r]=[]),St(e[r])){var n=e[r].length;t[r].length!==n&&(t[r]=new e[r].constructor(n),Zc(t[r],e[r],n))}else{var i=e[r],a=t[r],o=i.length;if(MD(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Zc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Zc(a,i,o);a.length=i.length}else t[r]=e[r]}function ID(t,e){return t===e||kt(t)&&kt(e)&&PD(t,e)}function PD(t,e){var r=t.length;if(r!==e.length)return!1;for(var n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function by(t,e,r,n,i,a,o,s){for(var l=Pe(n),u=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!q(a),d=t.animators,m=[],p=0;p<l.length;p++){var g=l[p],y=n[g];if(y!=null&&r[g]!=null&&(v||a[g]))if(q(y)&&!kt(y)&&!jl(y)){if(e){s||(r[g]=y,t.updateDuringAnimation(e));continue}by(t,g,r[g],y,i,a&&a[g],o,s)}else m.push(g);else s||(r[g]=y,t.updateDuringAnimation(e),m.push(g))}var _=m.length;if(!h&&_)for(var b=0;b<d.length;b++){var w=d[b];if(w.targetName===e){var S=w.stopTracks(m);if(S){var x=me(d,w);d.splice(x,1)}}}if(i.force||(m=et(m,function(D){return!ID(n[D],r[D])}),_=m.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,E=void 0;if(s){C={},c&&(T={});for(var b=0;b<_;b++){var g=m[b];C[g]=r[g],c?T[g]=n[g]:r[g]=n[g]}}else if(c){E={};for(var b=0;b<_;b++){var g=m[b];E[g]=cu(r[g]),LD(r,n,g)}}var w=new Ic(r,!1,!1,h?et(d,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,m),E&&w.whenWithKeys(0,E,m),w.whenWithKeys(u??500,s?C:n,m).delay(f||0),t.addAnimator(w,e),o.push(w)}}var tt=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,n){var i=me(this._children,r);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(r){var n=this.__zr,i=this._children,a=me(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},e.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},e.prototype.getBoundingRect=function(r){for(var n=new oe(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(oe.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e})(xu);tt.prototype.type="group";/*!
|
|
37
|
+
***************************************************************************** */var nc=function(e,t){return nc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},nc(e,t)};function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");nc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function Ua(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function OC(e){return[e[0],e[1]]}function Mm(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function NC(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function BC(e){return Math.sqrt(FC(e))}function FC(e){return e[0]*e[0]+e[1]*e[1]}function ic(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function zC(e,t){var r=BC(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function ac(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var oc=ac;function HC(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ya=HC;function sc(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function ar(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function Xa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function qa(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Za=(function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e})(),GC=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Za(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new Za(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Za(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Za(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Za(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Za(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),Yr=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e})(),VC=Math.log(2);function lc(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/VC);return e[r][l]}for(var u=n|1<<r,f=r+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*e[r][v]*lc(e,t-1,f,u,i|d,a),c++)}return a[o]=h,h}function Lm(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=lc(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*lc(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var eu="___zrEVENTSAVED",uc=[];function WC(e,t,r,n,i){return fc(uc,t,n,i,!0)&&fc(e,r,uc[0],uc[1])}function $C(e,t){e&&r(e),t&&r(t);function r(n){var i=n[eu];i&&(i.clearMarkers&&i.clearMarkers(),delete n[eu])}}function fc(e,t,r,n,i){if(t.getBoundingClientRect&&it.domSupported&&!km(t)){var a=t[eu]||(t[eu]={}),o=UC(t,a),s=YC(o,a,i);if(s)return s(e,r,n),!0}return!1}function UC(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return t.clearMarkers=function(){L(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function YC(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=e[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?Lm(s,o):Lm(o,s))}function km(e){return e.nodeName.toUpperCase()==="CANVAS"}var XC=/([&<>"'])/g,qC={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ne(e){return e==null?"":(e+"").replace(XC,function(t,r){return qC[r]})}var ZC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,hc=[],KC=it.browser.firefox&&+it.browser.version.split(".")[0]<39;function cc(e,t,r,n){return r=r||{},n?Im(e,t,r):KC&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):Im(e,t,r),r}function Im(e,t,r){if(it.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(km(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(fc(hc,e,n,i)){r.zrX=hc[0],r.zrY=hc[1];return}}r.zrX=r.zrY=0}function vc(e){return e||window.event}function or(e,t,r){if(t=vc(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&cc(e,o,t,r)}else{cc(e,t,t,r);var a=jC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ZC.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function jC(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function QC(e,t,r,n){e.addEventListener(t,r,n)}function JC(e,t,r,n){e.removeEventListener(t,r,n)}var Pm=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},tD=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=cc(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in dc)if(dc.hasOwnProperty(r)){var n=dc[r](this._track,t);if(n)return n}},e})();function Em(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function eD(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var dc={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Em(n)/Em(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eD(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function bn(){return[1,0,0,1,0,0]}function pc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Rm(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 Jo(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function gc(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function mc(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(r),h=Math.cos(r);return e[0]=i*h+s*f,e[1]=-i*f+s*h,e[2]=a*h+l*f,e[3]=-a*f+h*l,e[4]=h*(o-n[0])+f*(u-n[1])+n[0],e[5]=h*(u-n[1])-f*(o-n[0])+n[1],e}function rD(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function ts(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}var at=(function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e})(),Hi=Math.min,Ka=Math.max,yc=Math.abs,Om=["x","y"],nD=["width","height"],Gi=new at,Vi=new at,Wi=new at,$i=new at,$e=Bm(),es=$e.minTv,_c=$e.maxTv,rs=[0,0],ut=(function(){function e(t,r,n,i){e.set(this,t,r,n,i)}return e.set=function(t,r,n,i,a){return i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),t.x=r,t.y=n,t.width=i,t.height=a,t},e.prototype.union=function(t){var r=Hi(t.x,this.x),n=Hi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ka(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ka(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=bn();return gc(a,a,[-r.x,-r.y]),rD(a,a,[n,i]),gc(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r,n){return e.intersect(this,t,r,n)},e.intersect=function(t,r,n,i){n&&at.set(n,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!r)return!1;t instanceof e||(t=e.set(iD,t.x,t.y,t.width,t.height)),r instanceof e||(r=e.set(aD,r.x,r.y,r.width,r.height));var s=!!n;$e.reset(i,s);var l=$e.touchThreshold,u=t.x+l,f=t.x+t.width-l,h=t.y+l,v=t.y+t.height-l,c=r.x+l,d=r.x+r.width-l,m=r.y+l,p=r.y+r.height-l;if(u>f||h>v||c>d||m>p)return!1;var g=!(f<c||d<u||v<m||p<h);return(s||a)&&(rs[0]=1/0,rs[1]=0,Nm(u,f,c,d,0,s,a,o),Nm(h,v,m,p,1,s,a,o),s&&at.copy(n,g?$e.useDir?$e.dirMinTv:es:_c)),g},e.contain=function(t,r,n){return r>=t.x&&r<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},e.prototype.contain=function(t,r){return e.contain(this,t,r)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){return t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height,t},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Gi.x=Wi.x=r.x,Gi.y=$i.y=r.y,Vi.x=$i.x=r.x+r.width,Vi.y=Wi.y=r.y+r.height,Gi.transform(n),$i.transform(n),Vi.transform(n),Wi.transform(n),t.x=Hi(Gi.x,Vi.x,Wi.x,$i.x),t.y=Hi(Gi.y,Vi.y,Wi.y,$i.y);var l=Ka(Gi.x,Vi.x,Wi.x,$i.x),u=Ka(Gi.y,Vi.y,Wi.y,$i.y);t.width=l-t.x,t.height=u-t.y},e})(),iD=new ut(0,0,0,0),aD=new ut(0,0,0,0);function Nm(e,t,r,n,i,a,o,s){var l=yc(t-r),u=yc(n-e),f=Hi(l,u),h=Om[i],v=Om[1-i],c=nD[i];t<r||n<e?l<u?(a&&(_c[h]=-l),s&&(o[h]=t,o[c]=0)):(a&&(_c[h]=u),s&&(o[h]=e,o[c]=0)):(o&&(o[h]=Ka(e,r),o[c]=Hi(t,n)-o[h]),a&&(f<rs[0]||$e.useDir)&&(rs[0]=Hi(f,rs[0]),(l<u||!$e.bidirectional)&&(es[h]=l,es[v]=0,$e.useDir&&$e.calcDirMTV()),(l>=u||!$e.bidirectional)&&(es[h]=-u,es[v]=0,$e.useDir&&$e.calcDirMTV())))}function Bm(){var e=0,t=new at,r=new at,n={minTv:new at,maxTv:new at,useDir:!1,dirMinTv:new at,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){n.touchThreshold=0,a&&a.touchThreshold!=null&&(n.touchThreshold=Ka(0,a.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,a&&a.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),r.copy(n.minTv),e=a.direction,n.bidirectional=a.bidirectional==null||!!a.bidirectional,n.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=n.minTv,o=n.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(e),u=Math.cos(e),f=l*a.y+u*a.x;if(i(f)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,i(r.x)&&i(r.y)){o.set(0,0);return}(n.bidirectional||t.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function i(a){return yc(a)<1e-10}return n}var Fm="silent";function oD(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:sD}}function sD(){Pm(this.event)}var lD=(function(e){It(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Yr),ns=(function(){function e(t,r){this.x=t,this.y=r}return e})(),uD=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],bc=new ut(0,0,0,0),zm=(function(e){It(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ns(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new lD,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new GC(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(L(uD,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=Gm(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ns(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new ns(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=oD(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new ns(r,n);if(Hm(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ut(r-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(bc.copy(v.getBoundingRect()),v.transform&&bc.applyTransform(v.transform),bc.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,m=Math.PI*2,p=0;p<u;p+=c)for(var g=0;g<m;g+=d){var y=r+p*Math.cos(g),_=n+p*Math.sin(g);if(Hm(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new tD);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ns;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Yr);L(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){zm.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=Gm(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||oc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function fD(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return i?Fm:!0}return!1}function Hm(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=fD(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Fm)){t.target=o;break}}}function Gm(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Vm=32,is=7;function hD(e){for(var t=0;e>=Vm;)t|=e&1,e>>=1;return e+t}function Wm(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;cD(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function cD(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function $m(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function wc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])>0?o=f+1:l=f}return l}function Sc(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(e,t[r+f])<0?l=f:o=f+1}return l}function vD(e,t){var r=is,n,i,a=0,o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],m=i[c],p=n[c+1],g=i[c+1];i[c]=m+g,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var y=Sc(e[p],e,d,m,0,t);d+=y,m-=y,m!==0&&(g=wc(e[d+m-1],e,p,g,g-1,t),g!==0&&(m<=g?h(d,m,p,g):v(d,m,p,g)))}function h(c,d,m,p){var g=0;for(g=0;g<d;g++)o[g]=e[c+g];var y=0,_=m,b=c;if(e[b++]=e[_++],--p===0){for(g=0;g<d;g++)e[b+g]=o[y+g];return}if(d===1){for(g=0;g<p;g++)e[b+g]=e[_+g];e[b+p]=o[y];return}for(var S=r,w,T,x;;){w=0,T=0,x=!1;do if(t(e[_],o[y])<0){if(e[b++]=e[_++],T++,w=0,--p===0){x=!0;break}}else if(e[b++]=o[y++],w++,T=0,--d===1){x=!0;break}while((w|T)<S);if(x)break;do{if(w=Sc(e[_],o,y,d,0,t),w!==0){for(g=0;g<w;g++)e[b+g]=o[y+g];if(b+=w,y+=w,d-=w,d<=1){x=!0;break}}if(e[b++]=e[_++],--p===0){x=!0;break}if(T=wc(o[y],e,_,p,0,t),T!==0){for(g=0;g<T;g++)e[b+g]=e[_+g];if(b+=T,_+=T,p-=T,p===0){x=!0;break}}if(e[b++]=o[y++],--d===1){x=!0;break}S--}while(w>=is||T>=is);if(x)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),d===1){for(g=0;g<p;g++)e[b+g]=e[_+g];e[b+p]=o[y]}else{if(d===0)throw new Error;for(g=0;g<d;g++)e[b+g]=o[y+g]}}function v(c,d,m,p){var g=0;for(g=0;g<p;g++)o[g]=e[m+g];var y=c+d-1,_=p-1,b=m+p-1,S=0,w=0;if(e[b--]=e[y--],--d===0){for(S=b-(p-1),g=0;g<p;g++)e[S+g]=o[g];return}if(p===1){for(b-=d,y-=d,w=b+1,S=y+1,g=d-1;g>=0;g--)e[w+g]=e[S+g];e[b]=o[_];return}for(var T=r;;){var x=0,A=0,C=!1;do if(t(o[_],e[y])<0){if(e[b--]=e[y--],x++,A=0,--d===0){C=!0;break}}else if(e[b--]=o[_--],A++,x=0,--p===1){C=!0;break}while((x|A)<T);if(C)break;do{if(x=d-Sc(o[_],e,c,d,d-1,t),x!==0){for(b-=x,y-=x,d-=x,w=b+1,S=y+1,g=x-1;g>=0;g--)e[w+g]=e[S+g];if(d===0){C=!0;break}}if(e[b--]=o[_--],--p===1){C=!0;break}if(A=p-wc(e[y],o,0,p,p-1,t),A!==0){for(b-=A,_-=A,p-=A,w=b+1,S=_+1,g=0;g<A;g++)e[w+g]=o[S+g];if(p<=1){C=!0;break}}if(e[b--]=e[y--],--d===0){C=!0;break}T--}while(x>=is||A>=is);if(C)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(b-=d,y-=d,w=b+1,S=y+1,g=d-1;g>=0;g--)e[w+g]=e[S+g];e[b]=o[_]}else{if(p===0)throw new Error;for(S=b-(p-1),g=0;g<p;g++)e[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ru(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<Vm){a=Wm(e,r,n,t),$m(e,r,n,r+a,t);return}var o=vD(e,t),s=hD(i);do{if(a=Wm(e,r,n,t),a<s){var l=i;l>s&&(l=s),$m(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Ue=1,as=2,ja=4,Um=!1;function xc(){Um||(Um=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Ym(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var dD=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Ym}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ru(n,Ym)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),a=r&&r.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||i)){if(s||(s=t.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[l];for(var u=i,f=t;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var h=t.childrenRef(),v=0;v<h.length;v++){var c=h[v];t.__dirty&&(c.__dirty|=Ue),this._updateAndAddDisplayable(c,s,n)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(xc(),d.z=0),isNaN(d.z2)&&(xc(),d.z2=0),isNaN(d.zlevel)&&(xc(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,n);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,s,n);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,s,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=St(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),nu;nu=it.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var os={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-os.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?os.bounceIn(e*2)*.5:os.bounceOut(e*2-1)*.5+.5}},iu=Math.pow,Yn=Math.sqrt,au=1e-8,Xm=1e-4,qm=Yn(3),ou=1/3,Xr=Ua(),sr=Ua(),Qa=Ua();function Xn(e){return e>-au&&e<au}function Zm(e){return e>au||e<-au}function ve(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Km(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function su(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Xn(f)&&Xn(h))if(Xn(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var m=h*h-4*f*v;if(Xn(m)){var p=h/f,d=-s/o+p,g=-p/2;d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g)}else if(m>0){var y=Yn(m),_=f*s+1.5*o*(-h+y),b=f*s+1.5*o*(-h-y);_<0?_=-iu(-_,ou):_=iu(_,ou),b<0?b=-iu(-b,ou):b=iu(b,ou);var d=(-s-(_+b))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var S=(2*f*s-3*o*h)/(2*Yn(f*f*f)),w=Math.acos(S)/3,T=Yn(f),x=Math.cos(w),d=(-s-2*T*x)/(3*o),g=(-s+T*(x+qm*Math.sin(w)))/(3*o),A=(-s+T*(x-qm*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),g>=0&&g<=1&&(a[c++]=g),A>=0&&A<=1&&(a[c++]=A)}}return c}function jm(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Xn(o)){if(Zm(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Xn(f))i[0]=-a/(2*o);else if(f>0){var h=Yn(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function lu(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function pD(e,t,r,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,m,p,g;Xr[0]=l,Xr[1]=u;for(var y=0;y<1;y+=.05)sr[0]=ve(e,r,i,o,y),sr[1]=ve(t,n,a,s,y),p=Ya(Xr,sr),p<c&&(h=y,c=p);c=1/0;for(var _=0;_<32&&!(v<Xm);_++)d=h-v,m=h+v,sr[0]=ve(e,r,i,o,d),sr[1]=ve(t,n,a,s,d),p=Ya(sr,Xr),d>=0&&p<c?(h=d,c=p):(Qa[0]=ve(e,r,i,o,m),Qa[1]=ve(t,n,a,s,m),g=Ya(Qa,Xr),m<=1&&g<c?(h=m,c=g):v*=.5);return Yn(c)}function gD(e,t,r,n,i,a,o,s,l){for(var u=e,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,m=ve(e,r,i,o,d),p=ve(t,n,a,s,d),g=m-u,y=p-f;h+=Math.sqrt(g*g+y*y),u=m,f=p}return h}function Be(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function Qm(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function mD(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Xn(a)){if(Zm(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Xn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Yn(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function Jm(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function uu(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function yD(e,t,r,n,i,a,o,s,l){var u,f=.005,h=1/0;Xr[0]=o,Xr[1]=s;for(var v=0;v<1;v+=.05){sr[0]=Be(e,r,i,v),sr[1]=Be(t,n,a,v);var c=Ya(Xr,sr);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Xm);d++){var m=u-f,p=u+f;sr[0]=Be(e,r,i,m),sr[1]=Be(t,n,a,m);var c=Ya(sr,Xr);if(m>=0&&c<h)u=m,h=c;else{Qa[0]=Be(e,r,i,p),Qa[1]=Be(t,n,a,p);var g=Ya(Qa,Xr);p<=1&&g<h?(u=p,h=g):f*=.5}}return Yn(h)}function _D(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=Be(e,r,i,v),d=Be(t,n,a,v),m=c-s,p=d-l;u+=Math.sqrt(m*m+p*p),s=c,l=d}return u}var bD=/cubic-bezier\(([0-9,\.e ]+)\)/;function ty(e){var t=e&&bD.exec(e);if(t){var r=t[1].split(","),n=+Ur(r[0]),i=+Ur(r[1]),a=+Ur(r[2]),o=+Ur(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:su(0,n,a,1,l,s)&&ve(0,i,o,1,s[0])}}}var wD=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Oe,this.ondestroy=t.ondestroy||Oe,this.onrestart=t.onrestart||Oe,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=rt(t)?t:os[t]||ty(t)},e})(),ey=(function(){function e(t){this.value=t}return e})(),SD=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new ey(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),Ja=(function(){function e(t){this._list=new SD,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new ey(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),ry={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 qn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Tc(e){return e<0?0:e>1?1:e}function Cc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qn(parseFloat(t)/100*255):qn(parseInt(t,10))}function Ui(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Tc(parseFloat(t)/100):Tc(parseFloat(t))}function Dc(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(.6666666666666666-r)*6:e}function fu(e,t,r){return e+(t-e)*r}function lr(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Ac(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ny=new Ja(20),hu=null;function to(e,t){hu&&Ac(hu,t),hu=ny.put(e,hu||t.slice())}function qr(e,t){if(e){t=t||[];var r=ny.get(e);if(r)return Ac(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in ry)return Ac(t,ry[n]),to(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){lr(t,0,0,0,1);return}return lr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),to(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){lr(t,0,0,0,1);return}return lr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),to(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?lr(t,+u[0],+u[1],+u[2],1):lr(t,0,0,0,1);f=Ui(u.pop());case"rgb":if(u.length>=3)return lr(t,Cc(u[0]),Cc(u[1]),Cc(u[2]),u.length===3?f:Ui(u[3])),to(e,t),t;lr(t,0,0,0,1);return;case"hsla":if(u.length!==4){lr(t,0,0,0,1);return}return u[3]=Ui(u[3]),Mc(u,t),to(e,t),t;case"hsl":if(u.length!==3){lr(t,0,0,0,1);return}return Mc(u,t),to(e,t),t;default:return}}lr(t,0,0,0,1)}}function Mc(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Ui(e[1]),i=Ui(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],lr(t,qn(Dc(o,a,r+.3333333333333333)*255),qn(Dc(o,a,r)*255),qn(Dc(o,a,r-.3333333333333333)*255),1),e.length===4&&(t[3]=e[3]),t}function xD(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-t)/6+o/2)/o,h=((a-r)/6+o/2)/o,v=((a-n)/6+o/2)/o;t===a?l=v-h:r===a?l=.3333333333333333+f-v:n===a&&(l=.6666666666666666+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return e[3]!=null&&c.push(e[3]),c}}function iy(e,t){var r=qr(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ss(r,r.length===4?"rgba":"rgb")}}function TD(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=qr(t[i]),s=qr(t[a]),l=n-i,u=ss([qn(fu(o[0],s[0],l)),qn(fu(o[1],s[1],l)),qn(fu(o[2],s[2],l)),Tc(fu(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function Lc(e,t,r,n){var i=qr(e);if(e)return i=xD(i),r!=null&&(i[1]=Ui(rt(r)?r(i[1]):r)),n!=null&&(i[2]=Ui(rt(n)?n(i[2]):n)),ss(Mc(i),"rgba")}function ss(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function cu(e,t){var r=qr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var ay=new Ja(100);function oy(e){if(Y(e)){var t=ay.get(e);return t||(t=iy(e,-.1),ay.put(e,t)),t}else if(Ql(e)){var r=H({},e);return r.colorStops=K(e.colorStops,function(n){return{offset:n.offset,color:iy(n.color,-.1)}}),r}return e}function CD(e){return e.type==="linear"}function DD(e){return e.type==="radial"}(function(){return it.hasGlobalWindow&&rt(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var kc=Array.prototype.slice;function wn(e,t,r){return(t-e)*r+e}function Ic(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=wn(t[a],r[a],n);return e}function AD(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=wn(t[o][s],r[o][s],n)}return e}function vu(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function sy(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function MD(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function LD(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:kc.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function du(e){if(Ee(e)){var t=e.length;if(Ee(e[0])){for(var r=[],n=0;n<t;n++)r.push(kc.call(e[n]));return r}return kc.call(e)}return e}function pu(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]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function kD(e){return Ee(e&&e[0])?2:1}var gu=0,mu=1,ly=2,ls=3,Pc=4,Ec=5,uy=6;function fy(e){return e===Pc||e===Ec}function yu(e){return e===mu||e===ly}var us=[0,0,0,0],ID=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=uy,l=r;if(Ee(r)){var u=kD(r);s=u,(u===1&&!Mt(r[0])||u===2&&!Mt(r[0][0]))&&(o=!0)}else if(Mt(r)&&!jo(r))s=gu;else if(Y(r))if(!isNaN(+r))s=gu;else{var f=qr(r);f&&(l=f,s=ls)}else if(Ql(r)){var h=H({},l);h.colorStops=K(r.colorStops,function(c){return{offset:c.offset,color:qr(c.color)}}),CD(r)?s=Pc:DD(r)&&(s=Ec),l=h}a===0?this.valType=s:(s!==this.valType||s===uy)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=rt(n)?n:os[n]||ty(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,p){return m.time-p.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=yu(i),u=fy(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/t,s||(l&&f!==a-1?LD(v,c,i):u&&MD(v.colorStops,c.colorStops))}if(!s&&i!==Ec&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var d=n[0].value,f=0;f<a;f++)i===gu?n[f].additiveValue=n[f].value-d:i===ls?n[f].additiveValue=vu([],n[f].value,d,-1):yu(i)&&(n[f].additiveValue=i===mu?vu([],n[f].value,d,-1):sy([],n[f].value,d,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===ls,f,h=this._lastFr,v=Math.min,c,d;if(s===1)c=d=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){var m=v(h+1,s-1);for(f=m;f>=0&&!(o[f].percent<=r);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>r);f++);f=v(f-1,s-2)}d=o[f+1],c=o[f]}if(c&&d){this._lastFr=f,this._lastFrP=r;var p=d.percent-c.percent,g=p===0?1:v((r-c.percent)/p,1);d.easingFunc&&(g=d.easingFunc(g));var y=n?this._additiveValue:u?us:t[l];if((yu(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)t[l]=g<1?c.rawValue:d.rawValue;else if(yu(a))a===mu?Ic(y,c[i],d[i],g):AD(y,c[i],d[i],g);else if(fy(a)){var _=c[i],b=d[i],S=a===Pc;t[l]={type:S?"linear":"radial",x:wn(_.x,b.x,g),y:wn(_.y,b.y,g),colorStops:K(_.colorStops,function(T,x){var A=b.colorStops[x];return{offset:wn(T.offset,A.offset,g),color:pu(Ic([],T.color,A.color,g))}}),global:b.global},S?(t[l].x2=wn(_.x2,b.x2,g),t[l].y2=wn(_.y2,b.y2,g)):t[l].r=wn(_.r,b.r,g)}else if(u)Ic(y,c[i],d[i],g),n||(t[l]=pu(y));else{var w=wn(c[i],d[i],g);n?this._additiveValue=w:t[l]=w}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===gu?t[n]=t[n]+i:r===ls?(qr(t[n],us),vu(us,us,i,1),t[n]=pu(us)):r===mu?vu(t[n],t[n],i,1):r===ly&&sy(t[n],t[n],i,1)},e})(),Rc=(function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){Qh("Can' use additive animation on looped animation.");return}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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,Vt(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new ID(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===ls&&u&&(u=pu(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,du(u),i),this._trackKeys.push(s)}l.addKeyframe(t,du(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(r._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new wD({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var d=r._additiveAnimators;if(d){for(var m=!1,p=0;p<d.length;p++)if(d[p]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,c);var g=r._onframeCbs;if(g)for(var p=0;p<g.length;p++)g[p](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return K(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=du(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Vt(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function eo(){return new Date().getTime()}var PD=(function(e){It(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=eo()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(nu(n),!r._paused&&r.update())}nu(n)},t.prototype.start=function(){this._running||(this._time=eo(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=eo(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=eo()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new Rc(r,n.loop);return this.addAnimator(i),i},t})(Yr),ED=300,Oc=it.domSupported,Nc=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=K(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}})(),hy={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},cy=!1;function Bc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function RD(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Fc(e){e&&(e.zrByTouch=!0)}function OD(e,t){return or(e.dom,new ND(e,t),!0)}function vy(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var ND=(function(){function e(t,r){this.stopPropagation=Oe,this.stopImmediatePropagation=Oe,this.preventDefault=Oe,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e})(),Mr={mousedown:function(e){e=or(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=or(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=or(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=or(this.dom,e);var t=e.toElement||e.relatedTarget;vy(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){cy=!0,e=or(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){cy||(e=or(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=or(this.dom,e),Fc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Mr.mousemove.call(this,e),Mr.mousedown.call(this,e)},touchmove:function(e){e=or(this.dom,e),Fc(e),this.handler.processGesture(e,"change"),Mr.mousemove.call(this,e)},touchend:function(e){e=or(this.dom,e),Fc(e),this.handler.processGesture(e,"end"),Mr.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ED&&Mr.click.call(this,e)},pointerdown:function(e){Mr.mousedown.call(this,e)},pointermove:function(e){Bc(e)||Mr.mousemove.call(this,e)},pointerup:function(e){Mr.mouseup.call(this,e)},pointerout:function(e){Bc(e)||Mr.mouseout.call(this,e)}};L(["click","dblclick","contextmenu"],function(e){Mr[e]=function(t){t=or(this.dom,t),this.trigger(e,t)}});var zc={pointermove:function(e){Bc(e)||zc.mousemove.call(this,e)},pointerup:function(e){zc.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 BD(e,t){var r=t.domHandlers;it.pointerEventsSupported?L(Nc.pointer,function(n){_u(t,n,function(i){r[n].call(e,i)})}):(it.touchEventsSupported&&L(Nc.touch,function(n){_u(t,n,function(i){r[n].call(e,i),RD(t)})}),L(Nc.mouse,function(n){_u(t,n,function(i){i=vc(i),t.touching||r[n].call(e,i)})}))}function FD(e,t){it.pointerEventsSupported?L(hy.pointer,r):it.touchEventsSupported||L(hy.mouse,r);function r(n){function i(a){a=vc(a),vy(e,a.target)||(a=OD(e,a),t.domHandlers[n].call(e,a))}_u(t,n,i,{capture:!0})}}function _u(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,QC(e.domTarget,t,r,n)}function Hc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&JC(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var dy=(function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e})(),zD=(function(e){It(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new dy(r,Mr),Oc&&(i._globalHandlerScope=new dy(document,zc)),BD(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Hc(this._localHandlerScope),Oc&&Hc(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Oc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?FD(this,n):Hc(n)}},t})(Yr),py=1;it.hasGlobalWindow&&(py=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var bu=py,Gc=.4,Vc="#333",Wc="#ccc",HD="#eee",gy=pc,my=5e-5;function Yi(e){return e>my||e<-my}var Xi=[],ro=[],$c=bn(),Uc=Math.abs,Yc=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(gy(n),this.invTransform=null);return}n=n||bn(),r?this.getLocalTransform(n):gy(n),t&&(r?Jo(n,t,n):Rm(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Xi);var n=Xi[0]<0?-1:1,i=Xi[1]<0?-1:1,a=((Xi[0]-n)*r+n)/Xi[0]||0,o=((Xi[1]-i)*r+i)/Xi[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||bn(),ts(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||bn(),Jo(ro,t.invTransform,r),r=ro);var n=this.originX,i=this.originY;(n||i)&&($c[4]=n,$c[5]=i,Jo(ro,r,$c),ro[4]-=n,ro[5]-=i,r=ro),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&ar(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&ar(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Uc(t[0]-1)>1e-10&&Uc(t[3]-1)>1e-10?Math.sqrt(Uc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Xc(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var d=n+s,m=i+l;r[4]=-d*a-v*m*o,r[5]=-m*o-c*d*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,u&&mc(r,r,u),r[4]+=n+f,r[5]+=i+h,r},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})(),fs=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Xc(e,t){for(var r=0;r<fs.length;r++){var n=fs[r];e[n]=t[n]}}function Zr(e){wu||(wu=new Ja(100)),e=e||$n;var t=wu.get(e);return t||(t={font:e,strWidthCache:new Ja(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:yn.measureText("国",e).width,asciiCharWidth:yn.measureText("a",e).width},wu.put(e,t)),t}var wu;function GD(e){if(!(qc>=yy)){e=e||$n;for(var t=[],r=+new Date,n=0;n<=127;n++)t[n]=yn.measureText(String.fromCharCode(n),e).width;var i=+new Date-r;return i>16?qc=yy:i>2&&qc++,t}}var qc=0,yy=5;function _y(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=GD(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function Kr(e,t){var r=e.strWidthCache,n=r.get(t);return n==null&&(n=yn.measureText(t,e.font).width,r.put(t,n)),n}function by(e,t,r,n){var i=Kr(Zr(t),e),a=Su(t),o=no(0,i,r),s=qi(0,a,n),l=new ut(o,s,i,a);return l}function wy(e,t,r,n){var i=((e||"")+"").split(`
|
|
38
|
+
`),a=i.length;if(a===1)return by(i[0],t,r,n);for(var o=new ut(0,0,0,0),s=0;s<i.length;s++){var l=by(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function no(e,t,r,n){return r==="right"?n?e+=t:e-=t:r==="center"&&(n?e+=t/2:e-=t/2),e}function qi(e,t,r,n){return r==="middle"?n?e+=t/2:e-=t/2:r==="bottom"&&(n?e+=t:e-=t),e}function Su(e){return Zr(e).stWideCharWidth}function Zn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function xu(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f="left",h="top";if(n instanceof Array)l+=Zn(n[0],r.width),u+=Zn(n[1],r.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=f,e.verticalAlign=h,e}var Zc="__zr_normal__",Kc=fs.concat(["ignore"]),VD=Un(fs,function(e,t){return e[t]=!0,e},{ignore:!1}),io={},WD=new ut(0,0,0,0),Tu=[],Cu=(function(){function e(t){this.id=xm(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;a.copyTransform(r);var f=n.position!=null,h=n.autoOverflowArea,v=void 0;if((h||f)&&(v=WD,n.layoutRect?v.copy(n.layoutRect):v.copy(this.getBoundingRect()),i||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(io,n,v):xu(io,n,v),a.x=io.x,a.y=io.y,o=io.align,s=io.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,m=void 0;c==="center"?(d=v.width*.5,m=v.height*.5):(d=Zn(c[0],v.width),m=Zn(c[1],v.height)),u=!0,a.originX=-a.x+d+(i?0:v.x),a.originY=-a.y+m+(i?0:v.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var y=g.overflowRect=g.overflowRect||new ut(0,0,0,0);a.getLocalTransform(Tu),ts(Tu,Tu),ut.copy(y,v),y.applyTransform(Tu)}else g.overflowRect=null;var _=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,b=void 0,S=void 0,w=void 0;_&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),w=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),w=!0)),b=b||"#000",(b!==g.fill||S!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=b,g.stroke=S,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=Ue,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wc:Vc},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&qr(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ss(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},H(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Z(t))for(var n=t,i=Vt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Zc)){var o=i.targetName,s=o?r[o]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,Kc)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Zc,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Zc,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(St(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Qh("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(t,r,n,f),v&&v.useState(t,r,n,f),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!r&&!this.__inHover&&d&&d.duration>0,d);var m=this._textContent,p=this._textGuide;m&&m.useStates(t,r,v),p&&p.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Ue)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var r=t.__hostTarget;t=r?t.ignoreHostSilent?null:r:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=St(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=St(i,t),o=St(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var a=t[i];H(r,a),a.textConfig&&(n=n||{},H(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=H({},i?this.textConfig:n.textConfig),H(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<Kc.length;f++){var h=Kc[f],v=a&&VD[h];r&&r[h]!=null?v?(u=!0,l[h]=r[h]):this[h]=r[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],d=c.targetName;c.getLoop()||c.__changeFinalValue(d?(r||n)[d]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Yc,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Ue;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,a=new Rc(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=St(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){jc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){jc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=jc(this,r,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Ue;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))})(),e})();$r(Cu,Yr),$r(Cu,Yc);function jc(e,t,r,n,i){r=r||{};var a=[];Sy(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(d,m){r.during(m)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function Qc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function $D(e){return Ee(e[0])}function UD(e,t,r){if(Ee(t[r]))if(Ee(e[r])||(e[r]=[]),Re(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Qc(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if($D(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Qc(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Qc(a,i,o);a.length=i.length}else e[r]=t[r]}function YD(e,t){return e===t||Ee(e)&&Ee(t)&&XD(e,t)}function XD(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function Sy(e,t,r,n,i,a,o,s){for(var l=Vt(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!Z(a),d=e.animators,m=[],p=0;p<l.length;p++){var g=l[p],y=n[g];if(y!=null&&r[g]!=null&&(c||a[g]))if(Z(y)&&!Ee(y)&&!Ql(y)){if(t){s||(r[g]=y,e.updateDuringAnimation(t));continue}Sy(e,g,r[g],y,i,a&&a[g],o,s)}else m.push(g);else s||(r[g]=y,e.updateDuringAnimation(t),m.push(g))}var _=m.length;if(!h&&_)for(var b=0;b<d.length;b++){var S=d[b];if(S.targetName===t){var w=S.stopTracks(m);if(w){var T=St(d,S);d.splice(T,1)}}}if(i.force||(m=se(m,function(D){return!YD(n[D],r[D])}),_=m.length),_>0||i.force&&!o.length){var x=void 0,A=void 0,C=void 0;if(s){A={},v&&(x={});for(var b=0;b<_;b++){var g=m[b];A[g]=r[g],v?x[g]=n[g]:r[g]=n[g]}}else if(v){C={};for(var b=0;b<_;b++){var g=m[b];C[g]=du(r[g]),UD(r,n,g)}}var S=new Rc(r,!1,!1,h?se(d,function(k){return k.targetName===t}):null);S.targetName=t,i.scope&&(S.scope=i.scope),v&&x&&S.whenWithKeys(0,x,m),C&&S.whenWithKeys(0,C,m),S.whenWithKeys(u??500,s?A:n,m).delay(f||0),e.addAnimator(S,t),o.push(S)}}var le=(function(e){It(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=St(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=St(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ut(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ut.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t})(Cu);le.prototype.type="group";/*!
|
|
39
39
|
* ZRender, a high performance 2d drawing library.
|
|
40
40
|
*
|
|
41
41
|
* Copyright (c) 2013, Baidu Inc.
|
|
@@ -43,40 +43,42 @@ var SaikuEmbed=(function(){"use strict";var JR=Object.defineProperty;var gx=Oe=>
|
|
|
43
43
|
*
|
|
44
44
|
* LICENSE
|
|
45
45
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
46
|
-
*/var hs={},wy={};function kD(t){delete wy[t]}function ND(t){if(!t)return!1;if(typeof t=="string")return fu(t,1)<Vc;if(t.colorStops){for(var e=t.colorStops,r=0,n=e.length,i=0;i<n;i++)r+=fu(e[i].color,1);return r/=n,r<Vc}return!1}var OD=(function(){function t(e,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=e;var a=new JC,o=n.renderer||"canvas";if(hs[o]||(o=Pe(hs)[0]),process.env.NODE_ENV!=="production"&&!hs[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new hs[o](r,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!te.node&&!te.worker&&!l?new TD(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?te.touchEventsSupported:!!f,c=44,v;h&&(v=j(n.pointerSize,c)),this.handler=new Bm(a,s,u,s.root,v),this.animation=new mD({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=ND(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var r,n=Ja();this._needsRefresh&&(r=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Ja();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,n){return this._disposed||this.handler.on(e,r,n),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof tt&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,kD(this.id))},t})();function Sy(t,e){var r=new OD(wm(),t,e);return wy[r.id]=r,r}function RD(t,e){hs[t]=e}var xy=1e-4,Ty=20;function BD(t){return t.replace(/^\s+|\s+$/g,"")}var cs=Math.min,Yt=Math.max,Qr=Math.abs;function Kc(t,e,r,n){var i=e[0],a=e[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Be=VD;function VD(t,e,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return jc(t,e,r)}function jc(t,e,r){return Y(t)?BD(t).match(/%$/)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function st(t,e,r){return e==null&&(e=10),e=Math.min(Math.max(0,e),Ty),t=(+t).toFixed(e),r?t:+t}function wn(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Math.round(t*e)/e===t)return r}return Qc(t)}function Qc(t){var e=t.toString().toLowerCase(),r=e.indexOf("e"),n=r>0?+e.slice(r+1):0,i=r>0?r:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function FD(t,e){var r=Math.log,n=Math.LN10,i=Math.floor(r(t[1]-t[0])/n),a=Math.round(r(Qr(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function zD(t,e){var r=Wn(t,function(v,d){return v+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,e),i=Z(t,function(v){return(isNaN(v)?0:v)/r*n*100}),a=n*100,o=Z(i,function(v){return Math.floor(v)}),s=Wn(o,function(v,d){return v+d},0),l=Z(i,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return Z(o,function(v){return v/n})}function HD(t,e){var r=Math.max(wn(t),wn(e)),n=t+e;return r>Ty?n:st(n,r)}function Cy(t){var e=Math.PI*2;return(t%e+e)%e}function Tu(t){return t>-xy&&t<xy}var GD=/^(?:(\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 no(t){if(t instanceof Date)return t;if(Y(t)){var e=GD.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function WD(t){return Math.pow(10,Cu(t))}function Cu(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Dy(t,e){var r=Cu(t),n=Math.pow(10,r),i=t/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,t=a*n,r>=-20?+t.toFixed(r<0?-r:0):t}function Du(t){var e=parseFloat(t);return e==t&&(e!==0||!Y(t)||t.indexOf("x")<=0)?e:NaN}function Ey(t){return!isNaN(Du(t))}function Ay(){return Math.round(Math.random()*9)}function My(t,e){return e===0?t:My(e,t%e)}function Ly(t,e){return t==null?e:e==null?t:t*e/My(t,e)}var $D="[ECharts] ",Iy={},UD=typeof console<"u"&&console.warn&&console.log;function Eu(t,e,r){if(UD){if(r){if(Iy[e])return;Iy[e]=!0}console[t]($D+e)}}function Py(t,e){Eu("log",t,e)}function pt(t,e){Eu("warn",t,e)}function De(t,e){Eu("error",t,e)}function Sn(t){process.env.NODE_ENV!=="production"&&Eu("warn","DEPRECATED: "+t,!0)}function je(t,e,r){process.env.NODE_ENV!=="production"&&Sn((r?"["+r+"]":"")+(t+" is deprecated; use "+e+" instead."))}function Au(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r="";if(process.env.NODE_ENV!=="production"){var n=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Ha(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Q(i)?"function () { ... }":dC(i)?i+"":null};r=Z(t,function(i){if(Y(i))return i;var a=n(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function Bt(t){throw new Error(t)}function ky(t,e,r){return(e-t)*r+t}var Ny="series\0",YD="\0_ec_\0";function xt(t){return t instanceof Array?t:t==null?[]:[t]}function Jc(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var Oy=["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 vs(t){return q(t)&&!W(t)&&!(t instanceof Date)?t.value:t}function XD(t){return q(t)&&!(t instanceof Array)}function qD(t,e,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";t=t||[],e=(e||[]).slice();var o=se();A(e,function(l,u){if(!q(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Vy(l.id)&&By(l.id),l.name!=null&&!Vy(l.name)&&By(l.name))});var s=ZD(t,o,r);return(n||i)&&KD(s,t,o,e),n&&jD(s,e),n||i?QD(s,e,i):a&&JD(s,e),eE(s),s}function ZD(t,e,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:r==="replaceMerge"||io(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function KD(t,e,r,n){A(n,function(i,a){if(!(!i||i.id==null)){var o=ds(i.id),s=r.get(o);if(s!=null){var l=t[s];K(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function jD(t,e){A(e,function(r,n){if(!(!r||r.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||r.id==null)&&!io(r)&&!io(a)&&Ry("name",a,r)){t[i].newOption=r,e[n]=null;return}}})}function QD(t,e,r){A(e,function(n){if(n){for(var i,a=0;(i=t[a])&&(i.newOption||io(i.existing)||i.existing&&n.id!=null&&!Ry("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):t.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function JD(t,e){A(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function eE(t){var e=se();A(t,function(r){var n=r.existing;n&&e.set(n.id,r)}),A(t,function(r){var n=r.newOption;K(!n||n.id==null||!e.get(n.id)||e.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),A(t,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(q(a)){if(o.name=a.name!=null?ds(a.name):i?i.name:Ny+n,i)o.id=ds(i.id);else if(a.id!=null)o.id=ds(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,r)}})}function Ry(t,e,r){var n=Jr(e[t],null),i=Jr(r[t],null);return n!=null&&i!=null&&n===i}function ds(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return Jr(t,"")}function Jr(t,e){return t==null?e:Y(t)?t:Ce(t)||Kl(t)?t+"":e}function By(t){process.env.NODE_ENV!=="production"&&pt("`"+t+"` is invalid id or name. Must be a string or number.")}function Vy(t){return Kl(t)||Ey(t)}function ev(t){var e=t.name;return!!(e&&e.indexOf(Ny))}function io(t){return t&&t.id!=null&&ds(t.id).indexOf(YD)===0}function tE(t,e,r){A(t,function(n){var i=n.newOption;q(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=rE(e,i,n.existing,r))})}function rE(t,e,r,n){var i=e.type?e.type:r?r.subType:n.determineSubType(t,e);return i}function $i(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return W(e.dataIndex)?Z(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return W(e.name)?Z(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function Ve(){var t="__ec_inner_"+nE++;return function(e){return e[t]||(e[t]={})}}var nE=Ay();function tv(t,e,r){var n=rv(e,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ps(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function rv(t,e){var r;if(Y(t)){var n={};n[t+"Index"]=0,r=n}else r=t;var i=se(),a={},o=!1;return A(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&me(e.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fr={useDefault:!0,enableAll:!1,enableNone:!1};function ps(t,e,r,n){n=n||fr;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;process.env.NODE_ENV!=="production"&&De('`"none"` or `false` is not a valid value on index option.'),i=-1}return i==="all"&&(n.enableAll?i=a=o=null:(process.env.NODE_ENV!=="production"&&De('`"all"` is not a valid value on index option.'),i=-1)),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function Fy(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function iE(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function aE(t){return t==="auto"?te.domSupported?"html":"richText":t||"html"}function oE(t,e,r,n,i){var a=e==null||e==="auto";if(n==null)return n;if(Ce(n)){var o=ky(r||0,n,i);return st(o,a?Math.max(wn(r||0),wn(n)):e)}else{if(Y(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=t.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=ky(v,d,i);s[h]=st(o,a?Math.max(wn(v),wn(d)):e)}}return s}}var sE=".",Ui="___EC__COMPONENT__CONTAINER___",zy="___EC__EXTENDED_CLASS___";function en(t){var e={main:"",sub:""};if(t){var r=t.split(sE);e.main=r[0]||"",e.sub=r[1]||""}return e}function lE(t){K(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function uE(t){return!!(t&&t[zy])}function nv(t,e){t.$constructor=t,t.extend=function(r){process.env.NODE_ENV!=="production"&&A(e,function(a){r[a]||console.warn("Method `"+a+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,i;return fE(n)?i=(function(a){J(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},fC(i,this)),V(i.prototype,r),i[zy]=!0,i.extend=this.extend,i.superCall=vE,i.superApply=dE,i.superClass=n,i}}function fE(t){return Q(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Hy(t,e){t.extend=e.extend}var hE=Math.round(Math.random()*10);function cE(t){var e=["__\0is_clz",hE++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&K(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(r){return!!(r&&r[e])}}function vE(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,r)}function dE(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Mu(t){var e={};t.registerClass=function(n){var i=n.type||n.prototype.type;if(i){lE(i),n.prototype.type=i;var a=en(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=n;else if(a.sub!==Ui){var o=r(a);o[a.sub]=n}}return n},t.getClass=function(n,i,a){var o=e[n];if(o&&o[Ui]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},t.getClassesByMainType=function(n){var i=en(n),a=[],o=e[i.main];return o&&o[Ui]?A(o,function(s,l){l!==Ui&&a.push(s)}):a.push(o),a},t.hasClass=function(n){var i=en(n);return!!e[i.main]},t.getAllClassMainTypes=function(){var n=[];return A(e,function(i,a){n.push(a)}),n},t.hasSubTypes=function(n){var i=en(n),a=e[i.main];return a&&a[Ui]};function r(n){var i=e[n.main];return(!i||!i[Ui])&&(i=e[n.main]={},i[Ui]=!0),i}}function gs(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&me(i,l)>=0||a&&me(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var pE=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gE=gs(pE),mE=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return gE(this,e,r)},t})(),iv=new ja(50);function yE(t){if(typeof t=="string"){var e=iv.get(t);return e&&e.image}else return t}function Gy(t,e,r,n,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!r)return e;var a=iv.get(t),o={hostEl:r,cb:n,cbPayload:i};return a?(e=a.image,!Lu(e)&&a.pending.push(o)):(e=mn.loadImage(t,Wy,Wy),e.__zrImageSrc=t,iv.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Wy(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Lu(t){return t&&t.width&&t.height}var av=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _E(t,e,r,n,i,a){if(!r){t.text="",t.isTruncated=!1;return}var o=(e+"").split(`
|
|
47
|
-
`);a
|
|
48
|
-
`),
|
|
49
|
-
`):[];var y=g.length*
|
|
50
|
-
`),u=!0),n.accumWidth=d}else{var m=
|
|
51
|
-
`));for(var p=
|
|
52
|
-
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=my(h,v.charCodeAt(0)),m=n?!1:!EE(v);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(m?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=d)):m?(a.push(l),o.push(u),l=v,u=d):(a.push(v),o.push(d));continue}f+=d,m?(l+=v,u+=d):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function qy(t,e,r,n,i,a){if(t.baseX=r,t.baseY=n,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;oe.set(Zy,to(r,o,i),Wi(n,s,a),o,s),oe.intersect(e,Zy,null,Ky);var l=Ky.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=to(l.x,l.width,i,!0),t.baseY=Wi(l.y,l.height,a,!0)}}var Zy=new oe(0,0,0,0),Ky={outIntersectRect:{},clamp:!0};function sv(t){return t!=null?t+="":t=""}function AE(t){var e=sv(t.text),r=t.font,n=jr(Kr(r),e),i=bu(r);return lv(t,n,i,null)}function lv(t,e,r,n){var i=new oe(to(t.x||0,e,t.textAlign),Wi(t.y||0,r,t.textBaseline),e,r),a=n??(jy(t)?t.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function jy(t){var e=t.stroke;return e!=null&&e!=="none"&&t.lineWidth>0}var uv="__zr_style_"+Math.round(Math.random()*10),Yi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Iu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Yi[uv]=!0;var Qy=["z","z2","invisible"],ME=["invisible"],ms=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&LE(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,n){return this.rectContain(r,n)},e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new oe(0,0,0,0)),n?oe.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new oe(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate("style",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,n){r!=="style"?t.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:V(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=as,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&as)},e.prototype.styleUpdated=function(){this.__dirty&=~as},e.prototype.createStyle=function(r){return Ql(Yi,r)},e.prototype.useStyle=function(r){r[uv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},e.prototype.isStyleObject=function(r){return r[uv]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Qy)},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Pe(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=Pe(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?ME:Qy,c=0;c<m.length;c++){var v=m[c];n&&n[v]!=null?this[v]=n[v]:l&&i[v]!=null&&(this[v]=i[v])}},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(r,n){return V(r,n),r},e.prototype.getAnimationStyleProps=function(){return Iu},e.initDefaultProps=(function(){var r=e.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ut|as})(),e})(xu),fv=new oe(0,0,0,0),hv=new oe(0,0,0,0);function LE(t,e,r){return fv.copy(t.getBoundingRect()),t.transform&&fv.applyTransform(t.transform),hv.width=e,hv.height=r,!fv.intersect(hv)}var hr=Math.min,cr=Math.max,cv=Math.sin,vv=Math.cos,Xi=Math.PI*2,Pu=Wa(),ku=Wa(),Nu=Wa();function Jy(t,e,r,n,i,a){i[0]=hr(t,r),i[1]=hr(e,n),a[0]=cr(t,r),a[1]=cr(e,n)}var e_=[],t_=[];function IE(t,e,r,n,i,a,o,s,l,u){var f=Zm,h=ot,c=f(t,r,i,o,e_);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(t,r,i,o,e_[v]);l[0]=hr(d,l[0]),u[0]=cr(d,u[0])}c=f(e,n,a,s,t_);for(var v=0;v<c;v++){var m=h(e,n,a,s,t_[v]);l[1]=hr(m,l[1]),u[1]=cr(m,u[1])}l[0]=hr(t,l[0]),u[0]=cr(t,u[0]),l[0]=hr(o,l[0]),u[0]=cr(o,u[0]),l[1]=hr(e,l[1]),u[1]=cr(e,u[1]),l[1]=hr(s,l[1]),u[1]=cr(s,u[1])}function PE(t,e,r,n,i,a,o,s){var l=jm,u=Rt,f=cr(hr(l(t,r,i),1),0),h=cr(hr(l(e,n,a),1),0),c=u(t,r,i,f),v=u(e,n,a,h);o[0]=hr(t,i,c),o[1]=hr(e,a,v),s[0]=cr(t,i,c),s[1]=cr(e,a,v)}function kE(t,e,r,n,i,a,o,s,l){var u=Ua,f=Ya,h=Math.abs(i-a);if(h%Xi<1e-4&&h>1e-4){s[0]=t-r,s[1]=e-n,l[0]=t+r,l[1]=e+n;return}if(Pu[0]=vv(i)*r+t,Pu[1]=cv(i)*n+e,ku[0]=vv(a)*r+t,ku[1]=cv(a)*n+e,u(s,Pu,ku),f(l,Pu,ku),i=i%Xi,i<0&&(i=i+Xi),a=a%Xi,a<0&&(a=a+Xi),i>a&&!o?a+=Xi:i<a&&o&&(i+=Xi),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(Nu[0]=vv(v)*r+t,Nu[1]=cv(v)*n+e,u(s,Nu,s),f(l,Nu,l))}var Se={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qi=[],Zi=[],tn=[],qn=[],rn=[],nn=[],dv=Math.min,pv=Math.max,Ki=Math.cos,ji=Math.sin,xn=Math.abs,gv=Math.PI,Zn=gv*2,mv=typeof Float32Array<"u",ys=[];function yv(t){var e=Math.round(t/gv*1e8)/1e8;return e%2*gv}function r_(t,e){var r=yv(t[0]);r<0&&(r+=Zn);var n=r-t[0],i=t[1];i+=n,!e&&i-r>=Zn?i=r+Zn:e&&r-i>=Zn?i=r-Zn:!e&&r>i?i=r+(Zn-yv(r-i)):e&&r<i&&(i=r-(Zn-yv(i-r))),t[0]=r,t[1]=i}var Qi=(function(){function t(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 t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,n){n=n||0,n>0&&(this._ux=xn(n/yu/e)||0,this._uy=xn(n/yu/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(Se.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var n=xn(e-this._xi),i=xn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Se.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,n,i,a,o){return this._drawPendingPt(),this.addData(Se.C,e,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,n,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,n,i){return this._drawPendingPt(),this.addData(Se.Q,e,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,r,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(e,r,n,i,a,o){this._drawPendingPt(),ys[0]=i,ys[1]=a,r_(ys,o),i=ys[0],a=ys[1];var s=a-i;return this.addData(Se.A,e,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,n,i,a,o),this._xi=Ki(a)*n+e,this._yi=ji(a)*n+r,this},t.prototype.arcTo=function(e,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,n,i,a),this},t.prototype.rect=function(e,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,n,i),this.addData(Se.R,e,r,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Se.Z);var e=this._ctx,r=this._x0,n=this._y0;return e&&e.closePath(),this._xi=r,this._yi=n,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&mv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=e[n];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,n=0,i=this._len,a=0;a<r;a++)n+=e[a].len();var o=this.data;if(mv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},t.prototype.addData=function(e,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,mv&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){tn[0]=tn[1]=rn[0]=rn[1]=Number.MAX_VALUE,qn[0]=qn[1]=nn[0]=nn[1]=-Number.MAX_VALUE;var e=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],n=e[o+1],i=r,a=n),s){case Se.M:r=i=e[o++],n=a=e[o++],rn[0]=i,rn[1]=a,nn[0]=i,nn[1]=a;break;case Se.L:Jy(r,n,e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.C:IE(r,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.Q:PE(r,n,e[o++],e[o++],e[o],e[o+1],rn,nn),r=e[o++],n=e[o++];break;case Se.A:var u=e[o++],f=e[o++],h=e[o++],c=e[o++],v=e[o++],d=e[o++]+v;o+=1;var m=!e[o++];l&&(i=Ki(v)*h+u,a=ji(v)*c+f),kE(u,f,h,c,v,d,m,rn,nn),r=Ki(d)*h+u,n=ji(d)*c+f;break;case Se.R:i=r=e[o++],a=n=e[o++];var p=e[o++],g=e[o++];Jy(i,a,i+p,a+g,rn,nn);break;case Se.Z:r=i,n=a;break}Ua(tn,tn,rn),Ya(qn,qn,nn)}return o===0&&(tn[0]=tn[1]=qn[0]=qn[1]=0),new oe(tn[0],tn[1],qn[0]-tn[0],qn[1]-tn[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<r;){var v=e[c++],d=c===1;d&&(a=e[c],o=e[c+1],s=a,l=o);var m=-1;switch(v){case Se.M:a=s=e[c++],o=l=e[c++];break;case Se.L:{var p=e[c++],g=e[c++],y=p-a,_=g-o;(xn(y)>n||xn(_)>i||c===r-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case Se.C:{var b=e[c++],w=e[c++],p=e[c++],g=e[c++],S=e[c++],x=e[c++];m=tD(a,o,b,w,p,g,S,x,10),a=S,o=x;break}case Se.Q:{var b=e[c++],w=e[c++],p=e[c++],g=e[c++];m=iD(a,o,b,w,p,g,10),a=p,o=g;break}case Se.A:var T=e[c++],C=e[c++],E=e[c++],D=e[c++],L=e[c++],M=e[c++],P=M+L;c+=1,d&&(s=Ki(L)*E+T,l=ji(L)*D+C),m=pv(E,D)*dv(Zn,Math.abs(M)),a=Ki(P)*E+T,o=ji(P)*D+C;break;case Se.R:{s=a=e[c++],l=o=e[c++];var k=e[c++],O=e[c++];m=k*2+O*2;break}case Se.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[h++]=m,f+=m)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=r<1,d,m,p=0,g=0,y,_=0,b,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=r*m,!y)))e:for(var S=0;S<o;){var x=n[S++],T=S===1;switch(T&&(u=n[S],f=n[S+1],s=u,l=f),x!==Se.L&&_>0&&(e.lineTo(b,w),_=0),x){case Se.M:s=u=n[S++],l=f=n[S++],e.moveTo(u,f);break;case Se.L:{h=n[S++],c=n[S++];var C=xn(h-u),E=xn(c-f);if(C>i||E>a){if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break e}p+=D}e.lineTo(h,c),u=h,f=c,_=0}else{var M=C*C+E*E;M>_&&(b=h,w=c,_=M)}break}case Se.C:{var P=n[S++],k=n[S++],O=n[S++],B=n[S++],N=n[S++],R=n[S++];if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;ou(u,P,O,N,L,qi),ou(f,k,B,R,L,Zi),e.bezierCurveTo(qi[1],Zi[1],qi[2],Zi[2],qi[3],Zi[3]);break e}p+=D}e.bezierCurveTo(P,k,O,B,N,R),u=N,f=R;break}case Se.Q:{var P=n[S++],k=n[S++],O=n[S++],B=n[S++];if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;su(u,P,O,L,qi),su(f,k,B,L,Zi),e.quadraticCurveTo(qi[1],Zi[1],qi[2],Zi[2]);break e}p+=D}e.quadraticCurveTo(P,k,O,B),u=O,f=B;break}case Se.A:var z=n[S++],H=n[S++],F=n[S++],$=n[S++],ie=n[S++],Ae=n[S++],ht=n[S++],At=!n[S++],_t=F>$?F:$,ct=xn(F-$)>.001,Ye=ie+Ae,re=!1;if(v){var D=d[g++];p+D>y&&(Ye=ie+Ae*(y-p)/D,re=!0),p+=D}if(ct&&e.ellipse?e.ellipse(z,H,F,$,ht,ie,Ye,At):e.arc(z,H,_t,ie,Ye,At),re)break e;T&&(s=Ki(ie)*F+z,l=ji(ie)*$+H),u=Ki(Ye)*F+z,f=ji(Ye)*$+H;break;case Se.R:s=u=n[S],l=f=n[S+1],h=n[S++],c=n[S++];var ue=n[S++],cn=n[S++];if(v){var D=d[g++];if(p+D>y){var it=y-p;e.moveTo(h,c),e.lineTo(h+dv(it,ue),c),it-=ue,it>0&&e.lineTo(h+ue,c+dv(it,cn)),it-=cn,it>0&&e.lineTo(h+pv(ue-it,0),c+cn),it-=ue,it>0&&e.lineTo(h,c+pv(cn-it,0));break e}p+=D}e.rect(h,c,ue,cn);break;case Se.Z:if(v){var D=d[g++];if(p+D>y){var L=(y-p)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break e}p+=D}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Se,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function ao(t,e,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-n)/(t-r),u=(t*n-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function NE(t,e,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>a+h&&f>s+h||f<e-h&&f<n-h&&f<a-h&&f<s-h||u>t+h&&u>r+h&&u>i+h&&u>o+h||u<t-h&&u<r-h&&u<i-h&&u<o-h)return!1;var c=eD(t,e,r,n,i,a,o,s,u,f);return c<=h/2}function OE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>t+u&&s>r+u&&s>i+u||s<t-u&&s<r-u&&s<i-u)return!1;var f=nD(t,e,r,n,i,a,s,l);return f<=u/2}var n_=Math.PI*2;function Ou(t){return t%=n_,t<0&&(t+=n_),t}var _s=Math.PI*2;function RE(t,e,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%_s<1e-4)return!0;if(a){var h=n;n=Ou(i),i=Ou(h)}else n=Ou(n),i=Ou(i);n>i&&(i+=_s);var c=Math.atan2(l,s);return c<0&&(c+=_s),c>=n&&c<=i||c+_s>=n&&c+_s<=i}function Ji(t,e,r,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(r-t)+t;return l===i?1/0:l>i?s:0}var Kn=Qi.CMD,ea=Math.PI*2,BE=1e-4;function VE(t,e){return Math.abs(t-e)<BE}var Tt=[-1,-1,-1],vr=[-1,-1];function FE(){var t=vr[0];vr[0]=vr[1],vr[1]=t}function zE(t,e,r,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=au(e,n,a,s,u,Tt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,m=0;m<f;m++){var p=Tt[m],g=p===0||p===1?.5:1,y=ot(t,r,i,o,p);y<l||(c<0&&(c=Zm(e,n,a,s,vr),vr[1]<vr[0]&&c>1&&FE(),v=ot(e,n,a,s,vr[0]),c>1&&(d=ot(e,n,a,s,vr[1]))),c===2?p<vr[0]?h+=v<e?g:-g:p<vr[1]?h+=d<v?g:-g:h+=s<d?g:-g:p<vr[0]?h+=v<e?g:-g:h+=s<v?g:-g)}return h}function HE(t,e,r,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=rD(e,n,a,s,Tt);if(l===0)return 0;var u=jm(e,n,a);if(u>=0&&u<=1){for(var f=0,h=Rt(e,n,a,u),c=0;c<l;c++){var v=Tt[c]===0||Tt[c]===1?.5:1,d=Rt(t,r,i,Tt[c]);d<o||(Tt[c]<u?f+=h<e?v:-v:f+=a<h?v:-v)}return f}else{var v=Tt[0]===0||Tt[0]===1?.5:1,d=Rt(t,r,i,Tt[0]);return d<o?0:a<e?v:-v}}function GE(t,e,r,n,i,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Tt[0]=-l,Tt[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=ea-1e-4){n=0,i=ea;var f=a?1:-1;return o>=Tt[0]+t&&o<=Tt[1]+t?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=ea,i+=ea);for(var c=0,v=0;v<2;v++){var d=Tt[v];if(d+t>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=ea+m),(m>=n&&m<=i||m+ea>=n&&m+ea<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),c+=f)}}return c}function i_(t,e,r,n,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var m=a[d++],p=d===1;switch(m===Kn.M&&d>1&&(r||(s+=Ji(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),m){case Kn.M:f=a[d++],h=a[d++],l=f,u=h;break;case Kn.L:if(r){if(ao(l,u,a[d],a[d+1],e,n,i))return!0}else s+=Ji(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.C:if(r){if(NE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=zE(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.Q:if(r){if(OE(l,u,a[d++],a[d++],a[d],a[d+1],e,n,i))return!0}else s+=HE(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Kn.A:var g=a[d++],y=a[d++],_=a[d++],b=a[d++],w=a[d++],S=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(w)*_+g,v=Math.sin(w)*b+y,p?(f=c,h=v):s+=Ji(l,u,c,v,n,i);var T=(n-g)*b/_+g;if(r){if(RE(g,y,b,w,w+S,x,e,T,i))return!0}else s+=GE(g,y,b,w,w+S,x,T,i);l=Math.cos(w+S)*_+g,u=Math.sin(w+S)*b+y;break;case Kn.R:f=l=a[d++],h=u=a[d++];var C=a[d++],E=a[d++];if(c=f+C,v=h+E,r){if(ao(f,h,c,h,e,n,i)||ao(c,h,c,v,e,n,i)||ao(c,v,f,v,e,n,i)||ao(f,v,f,h,e,n,i))return!0}else s+=Ji(c,h,c,v,n,i),s+=Ji(f,v,f,h,n,i);break;case Kn.Z:if(r){if(ao(l,u,f,h,e,n,i))return!0}else s+=Ji(l,u,f,h,n,i);l=f,u=h;break}}return!r&&!VE(u,h)&&(s+=Ji(l,u,f,h,n,i)||0),s!==0}function WE(t,e,r){return i_(t,0,!1,e,r)}function $E(t,e,r,n){return i_(t,e,!0,r,n)}var a_=xe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Yi),UE={style:xe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Iu.style)},_v=fs.concat(["invisible","culling","z","z2","zlevel","parent"]),Ee=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<_v.length;++s)i[_v[s]]=this[_v[s]];i.__dirty|=Ut}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var n=Pe(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?V(this.style,s):this.useStyle(s):o==="shape"?V(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Y(r)){var n=fu(r,0);return n>.5?Fc:n>.2?CD:zc}else if(r)return zc}return Fc},e.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=fu(r,0)<Vc;if(a===o)return n}},e.prototype.buildPath=function(r,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Za},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Qi(!1)},e.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Za)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),$E(s,l/u,r,n)))return!0}if(this.hasFill())return WE(s,r,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Za,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate("shape",r)},e.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):t.prototype.attrKV.call(this,r,n)},e.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:V(i,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Za)},e.prototype.createStyle=function(r){return Ql(a_,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=V({},this.shape))},e.prototype._applyStateObj=function(r,n,i,a,o,s){t.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=V({},i.shape),V(u,n.shape)):(u=V({},a?this.shape:i.shape),V(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=V({},this.shape);for(var f={},h=Pe(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(r){for(var n=t.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return UE},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var n=(function(a){Me(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return fe(r.style)},o.prototype.getDefaultShape=function(){return fe(r.shape)},o})(e);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},e.initDefaultProps=(function(){var r=e.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ut|as|Za})(),e})(ms),YE=xe({strokeFirst:!0,font:Gn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},a_),Ru=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return jy(this.style)},e.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(r){return Ql(YE,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=AE(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(ms);Ru.prototype.type="tspan";var XE=xe({x:0,y:0},Yi),qE={style:xe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Iu.style)};function ZE(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var jn=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Ql(XE,r)},e.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=ZE(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return qE},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new oe(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(ms);jn.prototype.type="image";function KE(t,e){var r=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),t.moveTo(r+s,n),t.lineTo(r+i-l,n),l!==0&&t.arc(r+i-l,n+l,l,-Math.PI/2,0),t.lineTo(r+i,n+a-u),u!==0&&t.arc(r+i-u,n+a-u,u,0,Math.PI/2),t.lineTo(r+f,n+a),f!==0&&t.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,n+s),s!==0&&t.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var oo=Math.round;function o_(t,e,r){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=n,t.x2=i,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(oo(n*2)===oo(i*2)&&(t.x1=t.x2=ta(n,s,!0)),oo(a*2)===oo(o*2)&&(t.y1=t.y2=ta(a,s,!0))),t}}function s_(t,e,r){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;t.x=n,t.y=i,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=ta(n,s,!0),t.y=ta(i,s,!0),t.width=Math.max(ta(n+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(ta(i+o,s,!1)-t.y,o===0?0:1)),t}}function ta(t,e,r){if(!e)return t;var n=oo(t*2);return(n+oo(e))%2===0?n/2:(n+(r?1:-1))/2}var jE=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})(),QE={},He=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new jE},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=s_(QE,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?KE(r,n):r.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(Ee);He.prototype.type="rect";var l_={fill:"#000"},u_=2,an={},JE={style:xe({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},Iu.style)},lt=(function(t){Me(e,t);function e(r){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=l_,n.attr(r),n}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,iA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new oe(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||l_},e.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return V(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,n){for(var i=Pe(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},V(r[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return JE},e.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Gn,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";qy(an,a.overflowRect,o,s,l,u),o=an.baseX,s=an.baseY;var f=g_(r),h=wE(f,r,an.outerWidth,an.outerHeight),c=bv(r),v=!!r.backgroundColor,d=h.outerHeight,m=h.outerWidth,p=h.lines,g=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=Wi(s,h.contentHeight,u);if(c||i){var b=to(o,m,l),w=Wi(s,d,u);c&&this._renderBackground(r,r,b,w,m,d)}_+=g/2,i&&(y=p_(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var S=0,x=!1,T=!1,C=d_("fill"in r?r.fill:(T=!0,a.fill)),E=v_("stroke"in r?r.stroke:!v&&(!a.autoStroke||T)?(S=u_,x=!0,a.stroke):null),D=r.textShadowBlur>0,L=0;L<p.length;L++){var M=this._getOrCreateChild(Ru),P=M.createStyle();M.useStyle(P),P.text=p[L],P.x=y,P.y=_,P.textAlign=l,P.textBaseline="middle",P.opacity=r.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=r.textShadowBlur||0,P.shadowColor=r.textShadowColor||"transparent",P.shadowOffsetX=r.textShadowOffsetX||0,P.shadowOffsetY=r.textShadowOffsetY||0),P.stroke=E,P.fill=C,E&&(P.lineWidth=r.lineWidth||S,P.lineDash=r.lineDash,P.lineDashOffset=r.lineDashOffset||0),P.font=n,h_(P,r),_+=g,M.setBoundingRect(lv(P,h.contentWidth,h.calculatedLineHeight,x?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;qy(an,n.overflowRect,o,s,i,a),o=an.baseX,s=an.baseY;var l=g_(r),u=TE(l,r,an.outerWidth,an.outerHeight,i),f=u.width,h=u.outerWidth,c=u.outerHeight,v=r.padding;this.isTruncated=!!u.isTruncated;var d=to(o,h,i),m=Wi(s,c,a),p=d,g=m;v&&(p+=v[3],g+=v[0]);var y=p+f;bv(r)&&this._renderBackground(r,r,d,m,h,c);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var w=u.lines[b],S=w.tokens,x=S.length,T=w.lineHeight,C=w.width,E=0,D=p,L=y,M=x-1,P=void 0;E<x&&(P=S[E],!P.align||P.align==="left");)this._placeToken(P,r,T,g,D,"left",_),C-=P.width,D+=P.width,E++;for(;M>=0&&(P=S[M],P.align==="right");)this._placeToken(P,r,T,g,L,"right",_),C-=P.width,L-=P.width,M--;for(D+=(f-(D-p)-(y-L)-C)/2;E<=M;)P=S[E],this._placeToken(P,r,T,g,D+P.width/2,"center",_),D+=P.width,E++;g+=T}},e.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var c=!r.isLineHolder&&bv(u);c&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var v=!!u.backgroundColor,d=r.textPadding;d&&(o=p_(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(Ru),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,b=!1,w=d_("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),S=v_("stroke"in u?u.stroke:"stroke"in n?n.stroke:!v&&!l&&(!g.autoStroke||y)?(_=u_,b=!0,g.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,x&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||Gn,p.opacity=yn(u.opacity,n.opacity,1),h_(p,u),S&&(p.lineWidth=yn(u.lineWidth,n.lineWidth,_),p.lineDash=j(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=S),w&&(p.fill=w),m.setBoundingRect(lv(p,r.contentWidth,r.contentHeight,b?0:null))},e.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,c=l&&!h,v=r.borderRadius,d=this,m,p;if(c||r.lineHeight||u&&f){m=this._getOrCreateChild(He),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=v,m.dirtyShape()}if(c){var y=m.style;y.fill=l||null,y.fillOpacity=j(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(jn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=j(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(m||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=yn(r.opacity,n.opacity,1)},e.makeFont=function(r){var n="";return nA(r)&&(n=[r.fontStyle,r.fontWeight,rA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Yr(n)||r.textFont||r.font},e})(ms),eA={left:!0,right:1,center:1},tA={top:1,bottom:1,middle:1},f_=["fontStyle","fontWeight","fontSize","fontFamily"];function rA(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?qh+"px":t+"px"}function h_(t,e){for(var r=0;r<f_.length;r++){var n=f_[r],i=e[n];i!=null&&(t[n]=i)}}function nA(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function iA(t){return c_(t),A(t.rich,c_),t}function c_(t){if(t){t.font=lt.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||eA[e]?e:"left";var r=t.verticalAlign;r==="center"&&(r="middle"),t.verticalAlign=r==null||tA[r]?r:"top";var n=t.padding;n&&(t.padding=Qh(t.padding))}}function v_(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function d_(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function p_(t,e,r){return e==="right"?t-r[1]:e==="center"?t+r[3]/2-r[1]/2:t+r[3]}function g_(t){var e=t.text;return e!=null&&(e+=""),e}function bv(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var de=Ve(),aA=function(t,e,r,n){if(n){var i=de(n);i.dataIndex=r,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=de(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType="chart"})}},m_=1,y_={},__=Ve(),wv=Ve(),Sv=0,Bu=1,Vu=2,dr=["emphasis","blur","select"],Fu=["normal","emphasis","blur","select"],oA=10,sA=9,ra="highlight",zu="downplay",Hu="select",xv="unselect",Gu="toggleSelect",Tv="selectchanged";function so(t){return t!=null&&t!=="none"}function Wu(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function b_(t){Wu(t,"emphasis",Vu)}function w_(t){t.hoverState===Vu&&Wu(t,"normal",Sv)}function Cv(t){Wu(t,"blur",Bu)}function S_(t){t.hoverState===Bu&&Wu(t,"normal",Sv)}function lA(t){t.selected=!0}function uA(t){t.selected=!1}function x_(t,e,r){e(t,r)}function Tn(t,e,r){x_(t,e,r),t.isGroup&&t.traverse(function(n){x_(n,e,r)})}function T_(t,e){switch(e){case"emphasis":t.hoverState=Vu;break;case"normal":t.hoverState=Sv;break;case"blur":t.hoverState=Bu;break;case"select":t.selected=!0}}function fA(t,e,r,n){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function hA(t,e,r,n){var i=r&&me(r,"select")>=0,a=!1;if(t instanceof Ee){var o=__(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(so(s)||so(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=V({},n),u=V({},u),u.fill=s):!so(u.fill)&&so(s)?(a=!0,n=V({},n),u=V({},u),u.fill=iy(s)):!so(u.stroke)&&so(l)&&(a||(n=V({},n),u=V({},u)),u.stroke=iy(l)),n.style=u}}if(n&&n.z2==null){a||(n=V({},n));var f=t.z2EmphasisLift;n.z2=t.z2+(f??oA)}return n}function cA(t,e,r){if(r&&r.z2==null){r=V({},r);var n=t.z2SelectLift;r.z2=t.z2+(n??sA)}return r}function vA(t,e,r){var n=me(t.currentStates,e)>=0,i=t.style.opacity,a=n?null:fA(t,["opacity"],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=V({},r),o=V({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Dv(t,e){var r=this.states[t];if(this.style){if(t==="emphasis")return hA(this,t,e,r);if(t==="blur")return vA(this,t,r);if(t==="select")return cA(this,t,r)}return r}function dA(t){t.stateProxy=Dv;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Dv),r&&(r.stateProxy=Dv)}function C_(t,e){!L_(t,e)&&!t.__highByOuter&&Tn(t,b_)}function D_(t,e){!L_(t,e)&&!t.__highByOuter&&Tn(t,w_)}function $u(t,e){t.__highByOuter|=1<<(e||0),Tn(t,b_)}function Uu(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Tn(t,w_)}function pA(t){Tn(t,Cv)}function E_(t){Tn(t,S_)}function A_(t){Tn(t,lA)}function M_(t){Tn(t,uA)}function L_(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function I_(t){var e=t.getModel(),r=[],n=[];e.eachComponent(function(i,a){var o=wv(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){S_(u)}),s&&r.push(a)),o.isBlured=!1}),A(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,e)})}function Ev(t,e,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&E_(c)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!c||e==="series"&&f)){var v=n.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&e==="self"||Cv(p)}),kt(e))a(u.getData(),e);else if(q(e))for(var d=Pe(e),m=0;m<d.length;m++)a(u.getData(d[m]),e[d[m]]);l.push(u),wv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Av(t,e,r){if(!(t==null||e==null)){var n=r.getModel().getComponent(t,e);if(n){wv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Cv(a)})}}}function gA(t,e,r){var n=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+e.dataType);return}var a=$i(i,e);a=(W(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=de(o);Ev(n,u.focus,u.blurScope,r)}else{var f=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);f!=null&&Ev(n,f,h,r)}}function Mv(t,e,r,n){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||r==null)return i;var a=n.getModel().getComponent(t,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!lo(s[u])&&De("param should be highDownDispatcher"),de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function mA(t,e,r){process.env.NODE_ENV!=="production"&&!lo(t)&&De("param should be highDownDispatcher");var n=de(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Av(n.componentMainType,n.componentIndex,r),A(a,function(s){return C_(s,e)})):(Ev(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Av(n.componentMainType,n.componentIndex,r),C_(t,e))}function yA(t,e,r){process.env.NODE_ENV!=="production"&&!lo(t)&&De("param should be highDownDispatcher"),I_(r);var n=de(t),i=Mv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?A(i,function(a){return D_(a,e)}):D_(t,e)}function _A(t,e,r){if(Iv(e)){var n=e.dataType,i=t.getData(n),a=$i(i,e);W(a)||(a=[a]),t[e.type===Gu?"toggleSelect":e.type===Hu?"select":"unselect"](a,n)}}function P_(t){var e=t.getAllData();A(e,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?A_(a):M_(a)})})}function bA(t){var e=[];return t.eachSeries(function(r){var n=r.getAllData();A(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function Lv(t,e,r){N_(t,!0),Tn(t,dA),SA(t,e,r)}function wA(t){N_(t,!1)}function bs(t,e,r,n){n?wA(t):Lv(t,e,r)}function SA(t,e,r){var n=de(t);e!=null?(n.focus=e,n.blurScope=r):n.focus&&(n.focus=null)}var k_=["emphasis","blur","select"],xA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yu(t,e,r,n){r=r||"itemStyle";for(var i=0;i<k_.length;i++){var a=k_[i],o=e.getModel([a,r]),s=t.ensureState(a);s.style=o[xA[r]]()}}function N_(t,e){var r=e===!1,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function lo(t){return!!(t&&t.__highDownDispatcher)}function TA(t){var e=y_[t];return e==null&&m_<=32&&(e=y_[t]=m_++),e}function Iv(t){var e=t.type;return e===Hu||e===xv||e===Gu}function O_(t){var e=t.type;return e===ra||e===zu}function CA(t){var e=__(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var uo=Qi.CMD,DA=[[],[],[]],R_=Math.sqrt,EA=Math.atan2;function AA(t,e){if(e){var r=t.data,n=t.len(),i,a,o,s,l,u,f=uo.M,h=uo.C,c=uo.L,v=uo.R,d=uo.A,m=uo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case m:a=2;break;case d:var p=e[4],g=e[5],y=R_(e[0]*e[0]+e[1]*e[1]),_=R_(e[2]*e[2]+e[3]*e[3]),b=EA(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case v:u[0]=r[o++],u[1]=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],or(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var w=DA[l];w[0]=r[o++],w[1]=r[o++],or(w,w,e),r[s++]=w[0],r[s++]=w[1]}}t.increaseVersion()}}var Pv=Math.sqrt,Xu=Math.sin,qu=Math.cos,ws=Math.PI;function B_(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kv(t,e){return(t[0]*e[0]+t[1]*e[1])/(B_(t)*B_(e))}function V_(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kv(t,e))}function F_(t,e,r,n,i,a,o,s,l,u,f){var h=l*(ws/180),c=qu(h)*(t-r)/2+Xu(h)*(e-n)/2,v=-1*Xu(h)*(t-r)/2+qu(h)*(e-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Pv(d),s*=Pv(d));var m=(i===a?-1:1)*Pv((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=m*o*v/s,g=m*-s*c/o,y=(t+r)/2+qu(h)*p-Xu(h)*g,_=(e+n)/2+Xu(h)*p+qu(h)*g,b=V_([1,0],[(c-p)/o,(v-g)/s]),w=[(c-p)/o,(v-g)/s],S=[(-1*c-p)/o,(-1*v-g)/s],x=V_(w,S);if(kv(w,S)<=-1&&(x=ws),kv(w,S)>=1&&(x=0),x<0){var T=Math.round(x/ws*1e6)/1e6;x=ws*2+T%2*ws}f.addData(u,y,_,o,s,b,x,h,a)}var MA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,LA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function IA(t){var e=new Qi;if(!t)return e;var r=0,n=0,i=r,a=n,o,s=Qi.CMD,l=t.match(MA);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(LA)||[],d=v.length,m=0;m<d;m++)v[m]=parseFloat(v[m]);for(var p=0;p<d;){var g=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,T=r,C=n,E=void 0,D=void 0;switch(h){case"l":r+=v[p++],n+=v[p++],c=s.L,e.addData(c,r,n);break;case"L":r=v[p++],n=v[p++],c=s.L,e.addData(c,r,n);break;case"m":r+=v[p++],n+=v[p++],c=s.M,e.addData(c,r,n),i=r,a=n,h="l";break;case"M":r=v[p++],n=v[p++],c=s.M,e.addData(c,r,n),i=r,a=n,h="L";break;case"h":r+=v[p++],c=s.L,e.addData(c,r,n);break;case"H":r=v[p++],c=s.L,e.addData(c,r,n);break;case"v":n+=v[p++],c=s.L,e.addData(c,r,n);break;case"V":n=v[p++],c=s.L,e.addData(c,r,n);break;case"C":c=s.C,e.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),r=v[p-2],n=v[p-1];break;case"c":c=s.C,e.addData(c,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n,v[p++]+r,v[p++]+n),r+=v[p-2],n+=v[p-1];break;case"S":g=r,y=n,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=n-D[E-3]),c=s.C,T=v[p++],C=v[p++],r=v[p++],n=v[p++],e.addData(c,g,y,T,C,r,n);break;case"s":g=r,y=n,E=e.len(),D=e.data,o===s.C&&(g+=r-D[E-4],y+=n-D[E-3]),c=s.C,T=r+v[p++],C=n+v[p++],r+=v[p++],n+=v[p++],e.addData(c,g,y,T,C,r,n);break;case"Q":T=v[p++],C=v[p++],r=v[p++],n=v[p++],c=s.Q,e.addData(c,T,C,r,n);break;case"q":T=v[p++]+r,C=v[p++]+n,r+=v[p++],n+=v[p++],c=s.Q,e.addData(c,T,C,r,n);break;case"T":g=r,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=n-D[E-3]),r=v[p++],n=v[p++],c=s.Q,e.addData(c,g,y,r,n);break;case"t":g=r,y=n,E=e.len(),D=e.data,o===s.Q&&(g+=r-D[E-4],y+=n-D[E-3]),r+=v[p++],n+=v[p++],c=s.Q,e.addData(c,g,y,r,n);break;case"A":_=v[p++],b=v[p++],w=v[p++],S=v[p++],x=v[p++],T=r,C=n,r=v[p++],n=v[p++],c=s.A,F_(T,C,r,n,S,x,_,b,w,c,e);break;case"a":_=v[p++],b=v[p++],w=v[p++],S=v[p++],x=v[p++],T=r,C=n,r+=v[p++],n+=v[p++],c=s.A,F_(T,C,r,n,S,x,_,b,w,c,e);break}}(h==="z"||h==="Z")&&(c=s.Z,e.addData(c),r=i,n=a),o=c}return e.toStatic(),e}var z_=(function(t){Me(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(Ee);function H_(t){return t.setData!=null}function G_(t,e){var r=IA(t),n=V({},e);return n.buildPath=function(i){var a=H_(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){AA(r,i),this.dirtyShape()},n}function PA(t,e){return new z_(G_(t,e))}function kA(t,e){var r=G_(t,e),n=(function(i){Me(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(z_);return n}function NA(t,e){for(var r=[],n=t.length,i=0;i<n;i++){var a=t[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Ee(e);return o.createPathProxy(),o.buildPath=function(s){if(H_(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var OA=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})(),Zu=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new OA},e.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e})(Ee);Zu.prototype.type="circle";var RA=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})(),Nv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new RA},e.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(Ee);Nv.prototype.type="ellipse";var W_=Math.PI,Ov=W_*2,na=Math.sin,fo=Math.cos,BA=Math.acos,gt=Math.atan2,$_=Math.abs,Ss=Math.sqrt,xs=Math.max,on=Math.min,Ir=1e-4;function VA(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,c=h*l-f*u;if(!(c*c<Ir))return c=(f*(e-a)-h*(t-i))/c,[t+c*l,e+c*u]}function Ku(t,e,r,n,i,a,o){var s=t-r,l=e-n,u=(o?a:-a)/Ss(s*s+l*l),f=u*l,h=-u*s,c=t+f,v=e+h,d=r+f,m=n+h,p=(c+d)/2,g=(v+m)/2,y=d-c,_=m-v,b=y*y+_*_,w=i-a,S=c*m-d*v,x=(_<0?-1:1)*Ss(xs(0,w*w*b-S*S)),T=(S*_-y*x)/b,C=(-S*y-_*x)/b,E=(S*_+y*x)/b,D=(-S*y+_*x)/b,L=T-p,M=C-g,P=E-p,k=D-g;return L*L+M*M>P*P+k*k&&(T=E,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/w-1),y1:C*(i/w-1)}}function FA(t){var e;if(W(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function zA(t,e){var r,n=xs(e.r,0),i=xs(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,c=!!e.clockwise,v=$_(u-l),d=v>Ov&&v%Ov;if(d>Ir&&(v=d),!(n>Ir))t.moveTo(f,h);else if(v>Ov-Ir)t.moveTo(f+n*fo(l),h+n*na(l)),t.arc(f,h,n,l,u,!c),i>Ir&&(t.moveTo(f+i*fo(u),h+i*na(u)),t.arc(f,h,i,u,l,c));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0,x=void 0,T=void 0,C=void 0,E=void 0,D=void 0,L=void 0,M=void 0,P=void 0,k=n*fo(l),O=n*na(l),B=i*fo(u),N=i*na(u),R=v>Ir;if(R){var z=e.cornerRadius;z&&(r=FA(z),m=r[0],p=r[1],g=r[2],y=r[3]);var H=$_(n-i)/2;if(_=on(H,g),b=on(H,y),w=on(H,m),S=on(H,p),C=x=xs(_,b),E=T=xs(w,S),(x>Ir||T>Ir)&&(D=n*fo(u),L=n*na(u),M=i*fo(l),P=i*na(l),v<W_)){var F=VA(k,O,M,P,D,L,B,N);if(F){var $=k-F[0],ie=O-F[1],Ae=D-F[0],ht=L-F[1],At=1/na(BA(($*Ae+ie*ht)/(Ss($*$+ie*ie)*Ss(Ae*Ae+ht*ht)))/2),_t=Ss(F[0]*F[0]+F[1]*F[1]);C=on(x,(n-_t)/(At+1)),E=on(T,(i-_t)/(At-1))}}}if(!R)t.moveTo(f+k,h+O);else if(C>Ir){var ct=on(g,C),Ye=on(y,C),re=Ku(M,P,k,O,n,ct,c),ue=Ku(D,L,B,N,n,Ye,c);t.moveTo(f+re.cx+re.x0,h+re.cy+re.y0),C<x&&ct===Ye?t.arc(f+re.cx,h+re.cy,C,gt(re.y0,re.x0),gt(ue.y0,ue.x0),!c):(ct>0&&t.arc(f+re.cx,h+re.cy,ct,gt(re.y0,re.x0),gt(re.y1,re.x1),!c),t.arc(f,h,n,gt(re.cy+re.y1,re.cx+re.x1),gt(ue.cy+ue.y1,ue.cx+ue.x1),!c),Ye>0&&t.arc(f+ue.cx,h+ue.cy,Ye,gt(ue.y1,ue.x1),gt(ue.y0,ue.x0),!c))}else t.moveTo(f+k,h+O),t.arc(f,h,n,l,u,!c);if(!(i>Ir)||!R)t.lineTo(f+B,h+N);else if(E>Ir){var ct=on(m,E),Ye=on(p,E),re=Ku(B,N,D,L,i,-Ye,c),ue=Ku(k,O,M,P,i,-ct,c);t.lineTo(f+re.cx+re.x0,h+re.cy+re.y0),E<T&&ct===Ye?t.arc(f+re.cx,h+re.cy,E,gt(re.y0,re.x0),gt(ue.y0,ue.x0),!c):(Ye>0&&t.arc(f+re.cx,h+re.cy,Ye,gt(re.y0,re.x0),gt(re.y1,re.x1),!c),t.arc(f,h,i,gt(re.cy+re.y1,re.cx+re.x1),gt(ue.cy+ue.y1,ue.cx+ue.x1),c),ct>0&&t.arc(f+ue.cx,h+ue.cy,ct,gt(ue.y1,ue.x1),gt(ue.y0,ue.x0),!c))}else t.lineTo(f+B,h+N),t.arc(f,h,i,u,l,c)}t.closePath()}}}var HA=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})(),Qn=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new HA},e.prototype.buildPath=function(r,n){zA(r,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(Ee);Qn.prototype.type="sector";var GA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})(),Rv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new GA},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},e})(Ee);Rv.prototype.type="ring";function WA(t,e,r,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=t.length;c<v;c++)Ua(f,f,t[c]),Ya(h,h,t[c]);Ua(f,f,n[0]),Ya(h,h,n[1])}for(var c=0,v=t.length;c<v;c++){var d=t[c];if(r)l=t[c?c-1:v-1],u=t[(c+1)%v];else if(c===0||c===v-1){i.push(bC(t[c]));continue}else l=t[c-1],u=t[c+1];wC(a,u,l),tc(a,a,e);var m=rc(d,l),p=rc(d,u),g=m+p;g!==0&&(m/=g,p/=g),tc(o,a,-m),tc(s,a,p);var y=Dm([],d,o),_=Dm([],d,s);n&&(Ya(y,y,f),Ua(y,y,h),Ya(_,_,f),Ua(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function U_(t,e,r){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=WA(i,n,r,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}r&&t.closePath()}}var $A=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})(),Bv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new $A},e.prototype.buildPath=function(r,n){U_(r,n,!0)},e})(Ee);Bv.prototype.type="polygon";var UA=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})(),Ts=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UA},e.prototype.buildPath=function(r,n){U_(r,n,!1)},e})(Ee);Ts.prototype.type="polyline";var YA={},XA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})(),Jn=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new XA},e.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=o_(YA,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},e})(Ee);Jn.prototype.type="line";var Vt=[],qA=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function Y_(t,e,r){var n=t.cpx2,i=t.cpy2;return n!=null||i!=null?[(r?qm:ot)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?qm:ot)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Km:Rt)(t.x1,t.cpx1,t.x2,e),(r?Km:Rt)(t.y1,t.cpy1,t.y2,e)]}var Vv=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new qA},e.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(r.moveTo(i,a),f==null||h==null?(c<1&&(su(i,l,o,c,Vt),l=Vt[1],o=Vt[2],su(a,u,s,c,Vt),u=Vt[1],s=Vt[2]),r.quadraticCurveTo(l,u,o,s)):(c<1&&(ou(i,l,f,o,c,Vt),l=Vt[1],f=Vt[2],o=Vt[3],ou(a,u,h,s,c,Vt),u=Vt[1],h=Vt[2],s=Vt[3]),r.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(r){return Y_(this.shape,r,!1)},e.prototype.tangentAt=function(r){var n=Y_(this.shape,r,!0);return TC(n,n)},e})(Ee);Vv.prototype.type="bezier-curve";var ZA=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),ju=(function(t){Me(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ZA},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},e})(Ee);ju.prototype.type="arc";var KA=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="compound",r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ee.prototype.getBoundingRect.call(this)},e})(Ee),X_=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})(),q_=(function(t){Me(e,t);function e(r,n,i,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e})(X_),jA=(function(t){Me(e,t);function e(r,n,i,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e})(X_),Fv=Math.min,QA=Math.max,Qu=Math.abs,ia=[0,0],aa=[0,0],rt=Om(),Ju=rt.minTv,ef=rt.maxTv,Z_=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new ne;for(var n=0;n<2;n++)this._axes[n]=new ne;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);ne.sub(i[0],n[1],n[0]),ne.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(e,r,n){var i=!0,a=!r;return r&&ne.set(r,0,0),rt.reset(n,!a),!this._intersectCheckOneSide(this,e,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(i=!1,a)||!a&&!rt.negativeSize&&ne.copy(r,i?rt.useDir?rt.dirMinTv:Ju:ef),i},t.prototype._intersectCheckOneSide=function(e,r,n,i){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,ia),e._getProjMinMaxOnAxis(o,r._corners,aa),rt.negativeSize||ia[1]<aa[0]||ia[0]>aa[1]){if(a=!1,rt.negativeSize||n)return a;var l=Qu(aa[0]-ia[1]),u=Qu(ia[0]-aa[1]);Fv(l,u)>ef.len()&&(l<u?ne.scale(ef,s,-l*i):ne.scale(ef,s,u*i))}else if(!n){var l=Qu(aa[0]-ia[1]),u=Qu(ia[0]-aa[1]);(rt.useDir||Fv(l,u)<Ju.len())&&((l<u||!rt.bidirectional)&&(ne.scale(Ju,s,l*i),rt.useDir&&rt.calcDirMTV()),(l>=u||!rt.bidirectional)&&(ne.scale(Ju,s,-u*i),rt.useDir&&rt.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,n){for(var i=this._axes[e],a=this._origin,o=r[0].dot(i)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[e];s=Fv(f,s),l=QA(f,l)}n[0]=s+rt.touchThreshold,n[1]=l-rt.touchThreshold,rt.negativeSize=n[1]<n[0]},t})(),JA=[],eM=(function(t){Me(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,n){r.call(n,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new oe(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(JA)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},e})(ms),tM=Ve();function rM(t,e,r,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=j(n.duration,200),f=j(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),Q(h)&&(h=h(r,i)),Q(u)&&(u=u(r));var c={duration:u||0,delay:h,easing:f};return c}else return null}function zv(t,e,r,n,i,a,o){var s=!1,l;Q(i)?(o=a,a=i,i=null):q(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var f=rM(t,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,d):e.animateTo(r,d)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ct(t,e,r,n,i,a){zv("update",t,e,r,n,i,a)}function pr(t,e,r,n,i,a){zv("enter",t,e,r,n,i,a)}function Cs(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var r=t.animators[e];if(r.scope==="leave")return!0}return!1}function tf(t,e,r,n,i,a){Cs(t)||zv("leave",t,e,r,n,i,a)}function K_(t,e,r,n){t.removeTextContent(),t.removeTextGuideLine(),tf(t,{style:{opacity:0}},e,r,n)}function Ds(t,e,r){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||K_(i,e,r,n)}):K_(t,e,r,n)}function Hv(t){tM(t).oldStyle=t.style}var Gv={},ei=["x","y"],ho=["width","height"];function nM(t){return Ee.extend(t)}var iM=kA;function aM(t,e){return iM(t,e)}function Pr(t,e){Gv[t]=e}function oM(t){if(Gv.hasOwnProperty(t))return Gv[t]}function Wv(t,e,r,n){var i=PA(t,e);return r&&(n==="center"&&(r=Q_(r,i.getBoundingRect())),J_(i,r)),i}function j_(t,e,r){var n=new jn({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(Q_(e,a))}}});return n}function Q_(t,e){var r=e.width/e.height,n=t.height*r,i;n<=t.width?i=t.height:(n=t.width,i=n/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var sM=NA;function J_(t,e){if(t.applyTransform){var r=t.getBoundingRect(),n=r.calculateTransform(e);t.applyTransform(n)}}function Es(t,e){return o_(t,t,{lineWidth:e}),t}function lM(t,e){return s_(t,t,e),t}var uM=ta;function fM(t,e){for(var r=cc([]);t&&t!==e;)Jo(r,t.getLocalTransform(),r),t=t.parent;return r}function $v(t,e,r){return e&&!kt(e)&&(e=Wc.getLocalTransform(e)),r&&(e=es([],e)),or([],t,e)}function hM(t,e,r){var n=e[4]===0||e[5]===0||e[0]===0?1:Qr(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Qr(2*e[4]/e[2]),a=[t==="left"?-n:t==="right"?n:0,t==="top"?-i:t==="bottom"?i:0];return a=$v(a,e,r),Qr(a[0])>Qr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function e0(t){return!t.isGroup}function cM(t){return t.shape!=null}function t0(t,e,r){if(!t||!e)return;function n(o){var s={};return o.traverse(function(l){e0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return cM(o)&&(s.shape=fe(o.shape)),s}var a=n(t);e.traverse(function(o){if(e0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ct(o,l,r,de(o).dataIndex)}}})}function vM(t,e){return Z(t,function(r){var n=r[0];n=Yt(n,e.x),n=cs(n,e.x+e.width);var i=r[1];return i=Yt(i,e.y),i=cs(i,e.y+e.height),[n,i]})}function dM(t,e){var r=Yt(t.x,e.x),n=cs(t.x+t.width,e.x+e.width),i=Yt(t.y,e.y),a=cs(t.y+t.height,e.y+e.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Uv(t,e,r){var n=V({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),xe(i,r),new jn(n)):Wv(t.replace("path://",""),n,r,"center")}function pM(t,e,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(r0(t,e,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function r0(t,e,r,n,i,a,o,s){var l=r-t,u=n-e,f=o-i,h=s-a,c=Yv(f,h,l,u);if(gM(c))return!1;var v=t-i,d=e-a,m=Yv(v,d,l,u)/c;if(m<0||m>1)return!1;var p=Yv(v,d,f,h)/c;return!(p<0||p>1)}function Yv(t,e,r,n){return t*n-r*e}function gM(t){return t<=1e-6&&t>=-1e-6}function rf(t,e,r,n,i){return e==null||(Ce(e)?Le[0]=Le[1]=Le[2]=Le[3]=e:(process.env.NODE_ENV!=="production"&&K(e.length===4),Le[0]=e[0],Le[1]=e[1],Le[2]=e[2],Le[3]=e[3]),n&&(Le[0]=Yt(0,Le[0]),Le[1]=Yt(0,Le[1]),Le[2]=Yt(0,Le[2]),Le[3]=Yt(0,Le[3])),r&&(Le[0]=-Le[0],Le[1]=-Le[1],Le[2]=-Le[2],Le[3]=-Le[3]),n0(t,Le,"x","width",3,1,i&&i[0]||0),n0(t,Le,"y","height",0,2,i&&i[1]||0)),t}var Le=[0,0,0,0];function n0(t,e,r,n,i,a,o){var s=e[a]+e[i],l=t[n];t[n]+=s,o=Yt(0,cs(o,l)),t[n]<o?(t[n]=o,t[r]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:Qr(s)>1e-8?(l-o)*e[i]/s:0):t[r]-=e[i]}function nf(t){var e=t.itemTooltipOption,r=t.componentModel,n=t.itemName,i=Y(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&A(Pe(l),function(f){Mr(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=de(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:xe({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function Xv(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function af(t,e){if(t)if(W(t))for(var r=0;r<t.length;r++)Xv(t[r],e);else Xv(t,e)}function qv(t){return!t||Qr(t[1])<of&&Qr(t[2])<of||Qr(t[0])<of&&Qr(t[3])<of}var of=1e-5;function As(t,e){return t?oe.copy(t,e):e.clone()}function Zv(t,e){return e?Pm(t||_n(),e):void 0}function i0(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function mM(t){var e=-1/0,r=1/0;Xv(t,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function a0(t,e,r){o0(t,e,r,-1/0)}function o0(t,e,r,n){if(t.ignoreModelZ)return n;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)n=Yt(o0(s[l],e,r,n),n);else t.z=e,t.zlevel=r,n=Yt(t.z2||0,n);if(i&&(i.z=e,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}Pr("circle",Zu),Pr("ellipse",Nv),Pr("sector",Qn),Pr("ring",Rv),Pr("polygon",Bv),Pr("polyline",Ts),Pr("rect",He),Pr("line",Jn),Pr("bezierCurve",Vv),Pr("arc",ju);const yM=Object.freeze(Object.defineProperty({__proto__:null,Arc:ju,BezierCurve:Vv,BoundingRect:oe,Circle:Zu,CompoundPath:KA,Ellipse:Nv,Group:tt,Image:jn,IncrementalDisplayable:eM,Line:Jn,LinearGradient:q_,OrientedBoundingRect:Z_,Path:Ee,Point:ne,Polygon:Bv,Polyline:Ts,RadialGradient:jA,Rect:He,Ring:Rv,Sector:Qn,Text:lt,WH:ho,XY:ei,applyTransform:$v,calcZ2Range:mM,clipPointsByRect:vM,clipRectByRect:dM,createIcon:Uv,ensureCopyRect:As,ensureCopyTransform:Zv,expandOrShrinkRect:rf,extendPath:aM,extendShape:nM,getShapeClass:oM,getTransform:fM,groupTransition:t0,initProps:pr,isBoundingRectAxisAligned:qv,isElementRemoved:Cs,lineLineIntersect:r0,linePolygonIntersect:pM,makeImage:j_,makePath:Wv,mergePath:sM,registerShape:Pr,removeElement:tf,removeElementWithFadeOut:Ds,resizePath:J_,retrieveZInfo:i0,setTooltipConfig:nf,subPixelOptimize:uM,subPixelOptimizeLine:Es,subPixelOptimizeRect:lM,transformDirection:hM,traverseElements:af,traverseUpdateZ:a0,updateProps:Ct},Symbol.toStringTag,{value:"Module"}));var sf={};function _M(t,e){for(var r=0;r<dr.length;r++){var n=dr[r],i=e[n],a=t.ensureState(n);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function s0(t,e,r){var n=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Q(t.defaultText)?t.defaultText(i,t,r):t.defaultText);for(var l={normal:s},u=0;u<dr.length;u++){var f=dr[u],h=e[f];l[f]=j(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Ms(t,e,r,n){r=r||sf;for(var i=t instanceof lt,a=!1,o=0;o<Fu.length;o++){var s=e[Fu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new lt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=s0(r,e),f=e.normal,h=!!f.getShallow("show"),c=ti(f,n&&n.normal,r,!1,!i);c.text=u.normal,i||t.setTextConfig(l0(f,r,!1));for(var o=0;o<dr.length;o++){var v=dr[o],s=e[v];if(s){var d=l.ensureState(v),m=!!j(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=ti(s,n&&n[v],r,!0,!i),d.style.text=u[v],!i){var p=t.ensureState(v);p.textConfig=l0(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),r.enableTextSetter&&(lf(l).setLabelText=function(g){var y=s0(r,e,g);_M(l,y)})}else l&&(l.ignore=!0);t.dirty()}function Ls(t,e){e=e||"label";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}function ti(t,e,r,n,i){var a={};return bM(a,t,r,n,i),e&&V(a,e),a}function l0(t,e,r){e=e||{};var n={},i,a=t.getShallow("rotate"),o=j(t.getShallow("distance"),r?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(n.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(n.layoutRect=e.layoutRect),n}function bM(t,e,r,n,i){r=r||sf;var a=e.ecModel,o=a&&a.option.textStyle,s=wM(e),l;if(s){l={};var u="richInheritPlainLabel",f=j(e.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var c=e.getModel(["rich",h]);c0(l[h]={},c,o,e,f,r,n,i,!1,!0)}}l&&(t.rich=l);var v=e.get("overflow");v&&(t.overflow=v);var d=e.get("lineOverflow");d&&(t.lineOverflow=d);var m=t,p=e.get("minMargin");if(p!=null)p=Ce(p)?p/2:0,m.margin=[p,p,p,p],m.__marginType=co.minMargin;else{var g=e.get("textMargin");g!=null&&(m.margin=Qh(g),m.__marginType=co.textMargin)}c0(t,e,o,null,null,r,n,i,!0,!1)}function wM(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||sf).rich;if(r){e=e||{};for(var n=Pe(r),i=0;i<n.length;i++){var a=n[i];e[a]=1}}t=t.parentModel}return e}var u0=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],f0=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],h0=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function c0(t,e,r,n,i,a,o,s,l,u){r=!o&&r||sf;var f=a&&a.inheritColor,h=e.getShallow("color"),c=e.getShallow("textBorderColor"),v=j(e.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(process.env.NODE_ENV!=="production"&&h==="auto"&&je("color: 'auto'","color: 'inherit'"),f?h=f:h=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&je("color: 'auto'","color: 'inherit'"),f?c=f:c=null),s||(h=h||r.color,c=c||r.textBorderColor),h!=null&&(t.fill=h),c!=null&&(t.stroke=c);var d=j(e.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(t.lineWidth=d);var m=j(e.getShallow("textBorderType"),r.textBorderType);m!=null&&(t.lineDash=m);var p=j(e.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(t.lineDashOffset=p),!o&&v==null&&!u&&(v=a&&a.defaultOpacity),v!=null&&(t.opacity=v),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var g=0;g<u0.length;g++){var y=u0[g],_=i!==!1&&n?yn(e.getShallow(y),n.getShallow(y),r[y]):j(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var g=0;g<f0.length;g++){var y=f0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!l||!a.disableBox){for(var g=0;g<h0.length;g++){var y=h0[g],_=e.getShallow(y);_!=null&&(t[y]=_)}var w=e.getShallow("borderType");w!=null&&(t.borderDash=w),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&je("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=f),(t.borderColor==="auto"||t.borderColor==="inherit")&&f&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&je("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=f)}}function SM(t,e){var r=e&&e.getModel("textStyle");return Yr([t.fontStyle||r&&r.getShallow("fontStyle")||"",t.fontWeight||r&&r.getShallow("fontWeight")||"",(t.fontSize||r&&r.getShallow("fontSize")||12)+"px",t.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var lf=Ve();function xM(t,e,r,n){if(t){var i=lf(t);i.prevValue=i.value,i.value=r;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var co={minMargin:1,textMargin:2},TM=["textStyle","color"],Kv=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],jv=new lt,CM=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow("color")||(!e&&r?r.get(TM):null)},t.prototype.getFont=function(){return SM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Kv.length;n++)r[Kv[n]]=this.getShallow(Kv[n]);return jv.useStyle(r),jv.update(),jv.getBoundingRect()},t})(),v0=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],DM=gs(v0),EM=(function(){function t(){}return t.prototype.getLineStyle=function(e){return DM(this,e)},t})(),d0=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],AM=gs(d0),MM=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return AM(this,e,r)},t})(),Fe=(function(){function t(e,r,n){this.parentModel=r,this.ecModel=n,this.option=e}return t.prototype.init=function(e,r,n){},t.prototype.mergeOption=function(e,r){we(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var n=this.option,i=n==null?n:n[e];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,r){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(fe(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!te.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(e),r.parentModel)),n},t})();nv(Fe),cE(Fe),Ur(Fe,EM),Ur(Fe,MM),Ur(Fe,mE),Ur(Fe,CM);var LM=Math.round(Math.random()*10);function uf(t){return[t||"",LM++].join("_")}function IM(t){var e={};t.registerSubTypeDefaulter=function(r,n){var i=en(r);e[i.main]=n},t.determineSubType=function(r,n){var i=n.type;if(!i){var a=en(r).main;t.hasSubTypes(r)&&e[a]&&(i=e[a](n))}return i}}function PM(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,h=u.noEntryList,c={};for(A(a,function(y){c[y]=!0});h.length;){var v=h.pop(),d=f[v],m=!!c[v];m&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,m?g:p)}A(c,function(){var y="";throw process.env.NODE_ENV!=="production"&&(y=Au("Circular dependency may exists: ",c,a,o)),new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){c[y]=!0,p(y)}};function r(a){var o={},s=[];return A(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){me(u.predecessor,c)<0&&u.predecessor.push(c);var v=n(o,c);me(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return A(a,function(l){me(o,l)>=0&&s.push(l)}),s}}function p0(t,e){return we(we({},t,!0),e,!0)}const kM={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},NM={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ff="ZH",Qv="EN",vo=Qv,hf={},Jv={},g0=te.domSupported?(function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||vo).toUpperCase();return t.indexOf(ff)>-1?ff:vo})():vo;function m0(t,e){t=t.toUpperCase(),Jv[t]=new Fe(e),hf[t]=e}function OM(t){if(Y(t)){var e=hf[t.toUpperCase()]||{};return t===ff||t===Qv?fe(e):we(fe(e),fe(hf[vo]),!1)}else return we(fe(t),fe(hf[vo]),!1)}function RM(t){return Jv[t]}function BM(){return Jv[vo]}m0(Qv,kM),m0(ff,NM);var VM=null;function cf(){return VM}var ed=1e3,td=ed*60,Is=td*60,gr=Is*24,y0=gr*365,FM={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},vf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},zM="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",df="{yyyy}-{MM}-{dd}",_0={year:"{yyyy}",month:"{yyyy}-{MM}",day:df,hour:df+" "+vf.hour,minute:df+" "+vf.minute,second:df+" "+vf.second,millisecond:zM},oa=["year","month","day","hour","minute","second","millisecond"],HM=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function GM(t){return!Y(t)&&!Q(t)?WM(t):t}function WM(t){t=t||{};var e={},r=!0;return A(oa,function(n){r&&(r=t[n]==null)}),A(oa,function(n,i){var a=t[n];e[n]={};for(var o=null,s=i;s>=0;s--){var l=oa[s],u=q(a)&&!W(a)?a[l]:a,f=void 0;W(u)?(f=u.slice(),o=f[0]||""):Y(u)?(o=u,f=[o]):(o==null?o=vf[n]:FM[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),e[n][l]=f}}),e}function ri(t,e){return t+="","0000".substr(0,e-t.length)+t}function Ps(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function $M(t){return t===Ps(t)}function UM(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pf(t,e,r,n){var i=no(t),a=i[b0(r)](),o=i[nd(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[id(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ad(r)](),h=(f-1)%12+1,c=i[od(r)](),v=i[sd(r)](),d=i[ld(r)](),m=f>=12?"pm":"am",p=m.toUpperCase(),g=n instanceof Fe?n:RM(n||g0)||BM(),y=g.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),w=y.get("dayOfWeek"),S=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,m+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ri(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,ri(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ri(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ri(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ri(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ri(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,ri(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,ri(d,3)).replace(/{S}/g,d+"")}function YM(t,e,r,n,i){var a=null;if(Y(r))a=r;else if(Q(r)){var o={time:t.time,level:t.time.level},s=cf();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=gf(t.value,i);a=r[f][f][0]}}return pf(new Date(t.value),a,i,n)}function gf(t,e){var r=no(t),n=r[nd(e)]()+1,i=r[id(e)](),a=r[ad(e)](),o=r[od(e)](),s=r[sd(e)](),l=r[ld(e)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function rd(t,e,r){switch(e){case"year":t[w0(r)](0);case"month":t[S0(r)](1);case"day":t[x0(r)](0);case"hour":t[T0(r)](0);case"minute":t[C0(r)](0);case"second":t[D0(r)](0)}return t}function b0(t){return t?"getUTCFullYear":"getFullYear"}function nd(t){return t?"getUTCMonth":"getMonth"}function id(t){return t?"getUTCDate":"getDate"}function ad(t){return t?"getUTCHours":"getHours"}function od(t){return t?"getUTCMinutes":"getMinutes"}function sd(t){return t?"getUTCSeconds":"getSeconds"}function ld(t){return t?"getUTCMilliseconds":"getMilliseconds"}function XM(t){return t?"setUTCFullYear":"setFullYear"}function w0(t){return t?"setUTCMonth":"setMonth"}function S0(t){return t?"setUTCDate":"setDate"}function x0(t){return t?"setUTCHours":"setHours"}function T0(t){return t?"setUTCMinutes":"setMinutes"}function C0(t){return t?"setUTCSeconds":"setSeconds"}function D0(t){return t?"setUTCMilliseconds":"setMilliseconds"}function E0(t){if(!Ey(t))return Y(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function A0(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var mf=Qh;function ud(t,e,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Yr(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?no(t):t;if(isNaN(+l)){if(s)return"-"}else return pf(l,n,r)}if(e==="ordinal")return Kl(t)?i(t):Ce(t)&&a(t)?t+"":"-";var u=Du(t);return a(u)?E0(u):Kl(t)?i(t):typeof t=="boolean"?t+"":"-"}var M0=["a","b","c","d","e","f","g"],fd=function(t,e){return"{"+t+(e??"")+"}"};function L0(t,e,r){W(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=M0[a];t=t.replace(fd(o),fd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(fd(M0[l],s),r?Ot(u):u)}return t}function qM(t,e){var r=Y(t)?{color:t,extraCssText:e}:t||{},n=r.color,i=r.type;e=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ot(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ot(n)+";"+(e||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function sa(t,e){return e=e||"transparent",Y(t)?t:q(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function I0(t,e){if(e==="_blank"||e==="blank"){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var yf={},hd={},cd=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=n(yf,!0),this._normalMasterList=n(hd,!1);function n(i,a){var o=[];return A(i,function(s,l){var u=s.create(e,r);o=o.concat(u||[]),process.env.NODE_ENV!=="production"&&a&&A(u,function(f){return K(!f.update)})}),o}},t.prototype.update=function(e,r){A(this._normalMasterList,function(n){n.update&&n.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e==="matrix"||e==="calendar"){yf[e]=r;return}hd[e]=r},t.get=function(e){return hd[e]||yf[e]},t})();function ZM(t){return!!yf[t]}var vd={coord:1,coord2:2};function KM(t){process.env.NODE_ENV!=="production"&&K(!dd.get(t.fullType)),dd.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var dd=se();function jM(t){var e=t.getShallow("coord",!0),r=vd.coord;if(e==null){var n=dd.get(t.type);n&&n.getCoord2&&(r=vd.coord2,e=n.getCoord2(t))}return{coord:e,from:r}}var Cn={none:0,dataCoordSys:1,boxCoordSys:2};function QM(t,e){var r=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=n!=null,a=Cn.none;if(r){var o=t.mainType==="series";n==null&&(n=o?"data":"box"),n==="data"?(a=Cn.dataCoordSys,o||(process.env.NODE_ENV!=="production"&&i&&e&&De('coordinateSystemUsage "data" is not supported in non-series components.'),a=Cn.none)):n==="box"&&(a=Cn.boxCoordSys,!o&&!ZM(r)&&(process.env.NODE_ENV!=="production"&&i&&e&&De('coordinateSystem "'+r+'" cannot be used'+(' as coordinateSystemUsage "box" for "'+t.type+'" yet.')),a=Cn.none))}return{coordSysType:r,kind:a}}function JM(t){var e=t.targetModel,r=t.coordSysType,n=t.coordSysProvider,i=t.isDefaultDataCoordSys,a=t.allowNotFound;process.env.NODE_ENV!=="production"&&K(!!r);var o=QM(e,!0),s=o.kind,l=o.coordSysType;if(i&&s!==Cn.dataCoordSys&&(s=Cn.dataCoordSys,l=r),s===Cn.none||l!==r)return!1;var u=n(r,e);return u?(s===Cn.dataCoordSys?(process.env.NODE_ENV!=="production"&&K(e.mainType==="series"),e.coordinateSystem=u):e.boxCoordinateSystem=u,!0):(process.env.NODE_ENV!=="production"&&(a||De(r+" cannot be found for"+(" "+e.type+" (index: "+e.componentIndex+")."))),!1)}var _f=A,eL=["left","right","top","bottom","width","height"],bf=[["width","left","right"],["height","top","bottom"]];function pd(t,e,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(t==="horizontal"){var m=f.width+(c?-c.x+f.x:0);v=a+m,v>n||l.newline?(a=0,v=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=v+r:o=d+r)})}var ks=pd;$e(pd,"vertical"),$e(pd,"horizontal");function tL(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function rL(t,e){var r=wf(t,e,{enableLayoutOnlyByCenter:!0}),n=t.getBoxLayoutParams(),i,a;if(r.type===Ns.point)a=r.refPoint,i=ni(n,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=W(o)?o:[o,o];i=ni(n,r.refContainer),a=r.boxCoordFrom===vd.coord2?r.refPoint:[Be(s[0],i.width)+i.x,Be(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function nL(t,e){var r=rL(t,e),n=r.viewRect,i=r.center,a=t.get("radius");W(a)||(a=[0,a]);var o=Be(n.width,e.getWidth()),s=Be(n.height,e.getHeight()),l=Math.min(o,s),u=Be(a[0],l/2),f=Be(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function ni(t,e,r){r=mf(r||0);var n=e.width,i=e.height,a=Be(t.left,n),o=Be(t.top,i),s=Be(t.right,n),l=Be(t.bottom,i),u=Be(t.width,n),f=Be(t.height,i),h=r[2]+r[0],c=r[1]+r[3],v=t.aspect;switch(isNaN(u)&&(u=n-s-c-a),isNaN(f)&&(f=i-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=n-s-u-c),isNaN(o)&&(o=i-l-f-h),t.left||t.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-c;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new oe((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return d.margin=r,d}var Ns={rect:1,point:2};function wf(t,e,r){var n,i,a,o=t.boxCoordinateSystem,s;if(o){var l=jM(t),u=l.coord,f=l.from;if(o.dataToLayout){a=Ns.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Ns.point,s=f,i=o.dataToPoint(u)):process.env.NODE_ENV!=="production"&&De(t.type+"["+t.componentIndex+"]"+(" layout based on "+o.type+" is not supported."))}return a==null&&(a=Ns.rect),a===Ns.rect&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Os(t){var e=t.layoutMode||t.constructor.layoutMode;return q(e)?e:e?{type:e}:null}function ii(t,e,r){var n=r&&r.ignoreSize;!W(n)&&(n=[n,n]);var i=o(bf[0],0),a=o(bf[1],1);l(bf[0],t,i),l(bf[1],t,a);function o(u,f){var h={},c=0,v={},d=0,m=2;if(_f(u,function(y){v[y]=t[y]}),_f(u,function(y){Mr(e,y)&&(h[y]=v[y]=e[y]),s(h,y)&&c++,s(v,y)&&d++}),n[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(d===m||!c)return v;if(c>=m)return h;for(var p=0;p<u.length;p++){var g=u[p];if(!Mr(h,g)&&Mr(t,g)){h[g]=t[g];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){_f(u,function(c){f[c]=h[c]})}}function Rs(t){return iL({},t)}function iL(t,e){return e&&t&&_f(eL,function(r){Mr(e,r)&&(t[r]=e[r])}),t}var aL=Ve(),ye=(function(t){J(e,t);function e(r,n,i){var a=t.call(this,r,n,i)||this;return a.uid=uf("ec_cpt_model"),a}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Rs(r):{},o=n.getTheme();we(r,o.get(this.mainType)),we(r,this.getDefaultOption()),i&&ii(r,a,i)},e.prototype.mergeOption=function(r,n){we(this.option,r,!0);var i=Os(this);i&&ii(this.option,r,i)},e.prototype.optionUpdated=function(r,n){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!uE(r))return r.defaultOption;var n=aL(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=we(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ps(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){return tL(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),e})(Fe);Hy(ye,Fe),Mu(ye),IM(ye),PM(ye,oL);function oL(t){var e=[];return A(ye.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=Z(e,function(r){return en(r).main}),t!=="dataset"&&me(e,"dataset")<=0&&e.unshift("dataset"),e}var X={color:{},darkColor:{},size:{}},Ge=X.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};V(Ge,{primary:Ge.neutral80,secondary:Ge.neutral70,tertiary:Ge.neutral60,quaternary:Ge.neutral50,disabled:Ge.neutral20,border:Ge.neutral30,borderTint:Ge.neutral20,borderShade:Ge.neutral40,background:Ge.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Ge.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Ge.neutral70,axisLineTint:Ge.neutral40,axisTick:Ge.neutral70,axisTickMinor:Ge.neutral60,axisLabel:Ge.neutral70,axisSplitLine:Ge.neutral15,axisMinorSplitLine:Ge.neutral05});for(var la in Ge)if(Ge.hasOwnProperty(la)){var P0=Ge[la];la==="theme"?X.darkColor.theme=Ge.theme.slice():la==="highlight"?X.darkColor.highlight="rgba(255,231,130,0.4)":la.indexOf("accent")===0?X.darkColor[la]=Dc(P0,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):X.darkColor[la]=Dc(P0,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)})}X.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var k0="";typeof navigator<"u"&&(k0=navigator.platform||"");var po="rgba(0, 0, 0, 0.2)",N0=X.color.theme[0],sL=Dc(N0,null,null,.9);const lL={darkMode:"auto",colorBy:"series",color:X.color.theme,gradientColor:[sL,N0],aria:{decal:{decals:[{color:po,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:po,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:po,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:po,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:po,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:po,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:k0.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 gd=se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xt="original",mt="arrayRows",mr="objectRows",kr="keyedColumns",Dn="typedArray",O0="unknown",sn="column",ua="row",ut={Must:1,Might:2,Not:3},R0=Ve();function uL(t){R0(t).datasetMap=se()}function fL(t,e,r){var n={},i=md(e);if(!i||!t)return n;var a=[],o=[],s=e.ecModel,l=R0(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,h;t=t.slice(),A(t,function(m,p){var g=q(m)?m:t[p]={name:m};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(t,function(m,p){var g=m.name,y=d(m);if(f==null){var _=c.valueWayDim;v(n[g],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===p)v(n[g],0,y),v(a,0,y);else{var _=c.categoryWayDim;v(n[g],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(m,p,g){for(var y=0;y<g;y++)m.push(p+y)}function d(m){var p=m.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function hL(t,e,r){var n={},i=md(t);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===mr||a===kr)&&A(o,function(f,h){(q(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},c=[],v=0,d=Math.min(5,r);v<d;v++){var m=V0(e.data,a,e.seriesLayoutBy,o,e.startIndex,v);c.push(m);var p=m===ut.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===ut.Not)&&(f.n=v),g(f)&&c[f.n]!==ut.Not)return f;p||(m===ut.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function md(t){var e=t.get("data",!0);if(!e)return ps(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},fr).models[0]}function cL(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:ps(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},fr).models}function B0(t,e){return V0(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function V0(t,e,r,n,i,a){var o,s=5;if(St(t))return ut.Not;var l,u;if(n){var f=n[a];q(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?ut.Must:ut.Not;if(e===mt){var h=t;if(r===ua){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=b(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=b(d[a]))!=null)return o}}else if(e===mr){var m=t;if(!l)return ut.Not;for(var v=0;v<m.length&&v<s;v++){var p=m[v];if(p&&(o=b(p[l]))!=null)return o}}else if(e===kr){var g=t;if(!l)return ut.Not;var c=g[l];if(!c||St(c))return ut.Not;for(var v=0;v<c.length&&v<s;v++)if((o=b(c[v]))!=null)return o}else if(e===Xt)for(var y=t,v=0;v<y.length&&v<s;v++){var p=y[v],_=vs(p);if(!W(_))return ut.Not;if((o=b(_[a]))!=null)return o}function b(w){var S=Y(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return S?ut.Might:ut.Not;if(S&&w!=="-")return ut.Must}return ut.Not}var vL=se();function dL(t,e,r){var n=vL.get(e);if(!n)return r;var i=n(t);if(!i)return r;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)K(io(i[a]));return r.concat(i)}var F0=Ve();Ve();var yd=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,n){var i=xt(this.get("color",!0)),a=this.get("colorLayer",!0);return gL(this,F0,i,a,e,r,n)},t.prototype.clearColorPalette=function(){mL(this,F0)},t})();function pL(t,e){for(var r=t.length,n=0;n<r;n++)if(t[n].length>e)return t[n];return t[r-1]}function gL(t,e,r,n,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:pL(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function mL(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var Sf,Bs,z0,_d="\0_ec_inner",H0=1,yL={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",matrix:"MatrixComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},_L={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",chord:"ChordChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},xf={};function bL(t){A(t,function(e,r){if(!ye.hasClass(r)){var n=yL[r];n&&!xf[n]&&(De("Component "+r+` is used but not imported.
|
|
53
|
-
import { `+n+` } from 'echarts/components';
|
|
54
|
-
echarts.use([`+n+"]);"),xf[n]=!0)}})}var bd=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Fe(a),this._locale=new Fe(o),this._optionManager=s},e.prototype.setOption=function(r,n,i){process.env.NODE_ENV!=="production"&&(K(r!=null,"option is null/undefined"),K(r[_d]!==H0,"please use chart.getOption()"));var a=$0(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,n){return this._resetOption(r,$0(n))},e.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&bL(o),!this.option||r==="recreate"?z0(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=se(),u=n&&n.replaceMergeMainTypeMap;uL(this),A(r,function(h,c){h!=null&&(ye.hasClass(c)?c&&(s.push(c),l.set(c,!0)):i[c]=i[c]==null?fe(h):we(i[c],h,!0))}),u&&u.each(function(h,c){ye.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ye.topologicalTravel(s,ye.getAllClassMainTypes(),f,this);function f(h){var c=dL(this,h,xt(r[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=qD(v,c,d);tE(m,h,ye),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],y=0,_,b;A(m,function(w,S){var x=w.existing,T=w.newOption;if(!T)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",E=ye.getClass(h,w.keyInfo.subType,!C);if(!E){if(process.env.NODE_ENV!=="production"){var D=w.keyInfo.subType,L=_L[D];xf[D]||(xf[D]=!0,De(L?"Series "+D+` is used but not imported.
|
|
55
|
-
import { `+L+` } from 'echarts/charts';
|
|
56
|
-
echarts.use([`+L+"]);":"Unknown series "+D))}return}if(h==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(b||(pt("Currently only one tooltip component is allowed."),b=!0));return}_=!0}if(x&&x.constructor===E)x.name=w.keyInfo.name,x.mergeOption(T,this),x.optionUpdated(T,!1);else{var M=V({componentIndex:S},w.keyInfo);x=new E(T,this,this,M),V(x,M),w.brandNew&&(x.__requireNewView=!0),x.init(T,this,this),x.optionUpdated(null,!0)}}x?(p.push(x.option),g.push(x),y++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,y),h==="series"&&Sf(this)}this._seriesIndices||Sf(this)},e.prototype.getOption=function(){var r=fe(this.option);return A(r,function(n,i){if(ye.hasClass(i)){for(var a=xt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!io(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[_d],r},e.prototype.setTheme=function(r){this._theme=new Fe(r),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],A(xt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=G0("id",a,s):o!=null?l=G0("name",o,s):l=et(s,function(u){return!!u}),W0(l,r)},e.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):et(this._componentsMap.get(i),function(u){return!!u});return l(W0(o,r));function s(u){var f=i+"Index",h=i+"Id",c=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:i,index:u[f],id:u[h],name:u[c]}:null}function l(u){return r.filter?et(u,r.filter):u}},e.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Q(r)){var o=n,s=r;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=Y(r)?a.get(r):q(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var n=Jr(r,null);return et(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},e.prototype.getSeriesByType=function(r){return et(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},e.prototype.getSeries=function(){return et(this._componentsMap.get("series"),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(r,n){Bs(this),A(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},e.prototype.eachRawSeries=function(r,n){A(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(r,n,i){Bs(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,n,i){return A(this.getSeriesByType(r),n,i)},e.prototype.isSeriesFiltered=function(r){return Bs(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,n){Bs(this);var i=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=se(i)},e.prototype.restoreData=function(r){Sf(this);var n=this._componentsMap,i=[];n.each(function(a,o){ye.hasClass(o)&&i.push(o)}),ye.topologicalTravel(i,ye.getAllClassMainTypes(),function(a){A(n.get(a),function(o){o&&(a!=="series"||!wL(o,r))&&o.restoreData()})})},e.internalField=(function(){Sf=function(r){var n=r._seriesIndices=[];A(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=se(n)},Bs=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},z0=function(r,n){r.option={},r.option[_d]=H0,r._componentsMap=se({series:[]}),r._componentsCount=se();var i=n.aria;q(i)&&i.enabled==null&&(i.enabled=!0),SL(n,r._theme.option),we(n,lL,!1),r._mergeOption(n,null)}})(),e})(Fe);function wL(t,e){if(e){var r=e.seriesIndex,n=e.seriesId,i=e.seriesName;return r!=null&&t.componentIndex!==r||n!=null&&t.id!==n||i!=null&&t.name!==i}}function SL(t,e){var r=t.color&&!t.colorLayer;A(e,function(n,i){i==="colorLayer"&&r||i==="color"&&t.color||ye.hasClass(i)||(typeof n=="object"?t[i]=t[i]?we(t[i],n,!1):fe(n):t[i]==null&&(t[i]=n))})}function G0(t,e,r){if(W(e)){var n=se();return A(e,function(a){if(a!=null){var o=Jr(a,null);o!=null&&n.set(a,!0)}}),et(r,function(a){return a&&n.get(a[t])})}else{var i=Jr(e,null);return et(r,function(a){return a&&i!=null&&a[t]===i})}}function W0(t,e){return e.hasOwnProperty("subType")?et(t,function(r){return r&&r.subType===e.subType}):t}function $0(t){var e=se();return t&&A(xt(t.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&K(ye.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),e.set(r,!0)}),{replaceMergeMainTypeMap:e}}Ur(bd,yd);var xL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],U0=(function(){function t(e){A(xL,function(r){this[r]=Te(e[r],e)},this)}return t})(),TL=/^(min|max)?(.+)$/,CL=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,n){e&&(A(xt(e.series),function(o){o&&o.data&&St(o.data)&&Jh(o.data)}),A(xt(e.dataset),function(o){o&&o.source&&St(o.source)&&Jh(o.source)})),e=fe(e);var i=this._optionBackup,a=DL(e,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],fe(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(r=fe(n[i.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)EL(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!ML(o,this._currentMediaIndices)&&(s=Z(o,function(f){return fe(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},t})();function DL(t,e,r){var n=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(t.options=t.media=null),a=t),f&&(W(u)?A(u,function(v){process.env.NODE_ENV!=="production"&&v&&!v.option&&q(v.query)&&q(v.query.option)&&De("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),v&&v.option&&(v.query?n.push(v):i||(i=v))}):process.env.NODE_ENV!=="production"&&De("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),c(a),A(l,function(v){return c(v)}),A(n,function(v){return c(v.option)});function c(v){A(e,function(d){d(v,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function EL(t,e,r){var n={width:e,height:r,aspectratio:e/r},i=!0;return A(t,function(a,o){var s=o.match(TL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();AL(n[u],a,l)||(i=!1)}}),i}function AL(t,e,r){return r==="min"?t>=e:r==="max"?t<=e:t===e}function ML(t,e){return t.join(",")===e.join(",")}var yr=A,Vs=q,Y0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function wd(t){var e=t&&t.itemStyle;if(e)for(var r=0,n=Y0.length;r<n;r++){var i=Y0[r],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?we(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&je("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?we(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function yt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,i=t[e].emphasis;n&&(process.env.NODE_ENV!=="production"&&Sn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),r?(t[e].normal=t[e].emphasis=null,xe(t[e],n)):t[e]=n),i&&(process.env.NODE_ENV!=="production"&&Sn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function Fs(t){yt(t,"itemStyle"),yt(t,"lineStyle"),yt(t,"areaStyle"),yt(t,"label"),yt(t,"labelLine"),yt(t,"upperLabel"),yt(t,"edgeLabel")}function Ue(t,e){var r=Vs(t)&&t[e],n=Vs(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&Sn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=Oy.length;i<a;i++){var o=Oy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function _r(t){t&&(Fs(t),Ue(t,"label"),t.emphasis&&Ue(t.emphasis,"label"))}function LL(t){if(Vs(t)){wd(t),Fs(t),Ue(t,"label"),Ue(t,"upperLabel"),Ue(t,"edgeLabel"),t.emphasis&&(Ue(t.emphasis,"label"),Ue(t.emphasis,"upperLabel"),Ue(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(wd(e),_r(e));var r=t.markLine;r&&(wd(r),_r(r));var n=t.markArea;n&&_r(n);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!St(a))for(var o=0;o<a.length;o++)_r(a[o]);A(t.categories,function(u){Fs(u)})}if(i&&!St(i))for(var o=0;o<i.length;o++)_r(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)_r(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)W(l[o])?(_r(l[o][0]),_r(l[o][1])):_r(l[o]);t.type==="gauge"?(Ue(t,"axisLabel"),Ue(t,"title"),Ue(t,"detail")):t.type==="treemap"?(yt(t.breadcrumb,"itemStyle"),A(t.levels,function(u){Fs(u)})):t.type==="tree"&&Fs(t.leaves)}}function En(t){return W(t)?t:t?[t]:[]}function X0(t){return(W(t)?t[0]:t)||{}}function IL(t,e){yr(En(t.series),function(n){Vs(n)&&LL(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),yr(r,function(n){yr(En(t[n]),function(i){i&&(Ue(i,"axisLabel"),Ue(i.axisPointer,"label"))})}),yr(En(t.parallel),function(n){var i=n&&n.parallelAxisDefault;Ue(i,"axisLabel"),Ue(i&&i.axisPointer,"label")}),yr(En(t.calendar),function(n){yt(n,"itemStyle"),Ue(n,"dayLabel"),Ue(n,"monthLabel"),Ue(n,"yearLabel")}),yr(En(t.radar),function(n){Ue(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&Sn("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&Sn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&yr(n.indicator,function(i){i.text&&je("text","name","radar.indicator")})}),yr(En(t.geo),function(n){Vs(n)&&(_r(n),yr(En(n.regions),function(i){_r(i)}))}),yr(En(t.timeline),function(n){_r(n),yt(n,"label"),yt(n,"itemStyle"),yt(n,"controlStyle",!0);var i=n.data;W(i)&&A(i,function(a){q(a)&&(yt(a,"label"),yt(a,"itemStyle"))})}),yr(En(t.toolbox),function(n){yt(n,"iconStyle"),yr(n.feature,function(i){yt(i,"iconStyle")})}),Ue(X0(t.axisPointer),"label"),Ue(X0(t.tooltip).axisPointer,"label")}function PL(t,e){for(var r=e.split(","),n=t,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function kL(t,e,r,n){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function q0(t){t&&A(NL,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var NL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],OL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Sd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function zs(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Sd.length;r++){var n=Sd[r][1],i=Sd[r][0];e[n]!=null&&(e[i]=e[n],process.env.NODE_ENV!=="production"&&je(n,i))}}function Z0(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&je("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function K0(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&je("downplay","blur","sunburst"))}function RL(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&je("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function j0(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&j0(t[r].children,e)}function Q0(t,e){IL(t,e),t.series=xt(t.series),A(t.series,function(r){if(q(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&je("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&je("clockWise","clockwise")),Z0(r.label);var i=r.data;if(i&&!St(i))for(var a=0;a<i.length;a++)Z0(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&je("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=PL(r,"pointer.color");o!=null&&kL(r,"itemStyle.color",o)}else if(n==="bar"){zs(r),zs(r.backgroundStyle),zs(r.emphasis);var i=r.data;if(i&&!St(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(zs(i[a]),zs(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&je("highlightPolicy","emphasis.focus","sunburst"))),K0(r),j0(r.data,K0)}else n==="graph"||n==="sankey"?RL(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&je("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&Sn("`mapLocation` is not used anymore."),xe(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&je("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),q0(r)}}),t.dataRange&&(t.visualMap=t.dataRange),A(OL,function(r){var n=t[r];n&&(W(n)||(n=[n]),A(n,function(i){q0(i)}))})}function BL(t){var e=se();t.eachSeries(function(r){var n=r.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),e.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),A(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),VL(r)}})}function VL(t){A(t,function(e,r){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(e.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(e.stackedByDimension,h);for(var m=NaN,p=r-1;p>=0;p--){var g=t[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=HD(c,y),m=y;break}}}return n[0]=c,n[1]=m,n})})}var Tf=(function(){function t(e){this.data=e.data||(e.sourceFormat===kr?{}:[]),this.sourceFormat=e.sourceFormat||O0,this.seriesLayoutBy=e.seriesLayoutBy||sn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&B0(this,n)===ut.Must&&(i.type="ordinal")}}return t})();function xd(t){return t instanceof Tf}function Td(t,e,r){r=r||eb(t);var n=e.seriesLayoutBy,i=zL(t,r,n,e.sourceHeader,e.dimensions),a=new Tf({data:t,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:fe(e)});return a}function J0(t){return new Tf({data:t,sourceFormat:St(t)?Dn:Xt})}function FL(t){return new Tf({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:fe(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function eb(t){var e=O0;if(St(t))e=Dn;else if(W(t)){t.length===0&&(e=mt);for(var r=0,n=t.length;r<n;r++){var i=t[r];if(i!=null){if(W(i)||St(i)){e=mt;break}else if(q(i)){e=mr;break}}}}else if(q(t)){for(var a in t)if(Mr(t,a)&&kt(t[a])){e=kr;break}}return e}function zL(t,e,r,n,i){var a,o;if(!t)return{dimensionsDefine:tb(i),startIndex:o,dimensionsDetectedCount:a};if(e===mt){var s=t;n==="auto"||n==null?rb(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},r,s,10):o=Ce(n)?n:n?1:0,!i&&o===1&&(i=[],rb(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ua?s.length:s[0]?s[0].length:null}else if(e===mr)i||(i=HL(t));else if(e===kr)i||(i=[],A(t,function(u,f){i.push(f)}));else if(e===Xt){var l=vs(t[0]);a=W(l)&&l.length||1}else e===Dn&&process.env.NODE_ENV!=="production"&&K(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:tb(i),dimensionsDetectedCount:a}}function HL(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return Pe(r)}function tb(t){if(t){var e=se();return Z(t,function(r,n){r=q(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function rb(t,e,r,n){if(e===ua)for(var i=0;i<r.length&&i<n;i++)t(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)t(a[i],i)}function nb(t){var e=t.sourceFormat;return e===mr||e===kr}var fa,ha,ca,va,ib,ab,ob=(function(){function t(e,r){var n=xd(e)?e:J0(e);this._source=n;var i=this._data=n.data,a=n.sourceFormat,o=n.seriesLayoutBy;if(a===Dn){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=i}if(process.env.NODE_ENV!=="production"){var s=GL[Df(a,o)];s&&s(i,n.dimensionsDefine)}ab(this,i,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;ab=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=ib[Df(u,f)];if(process.env.NODE_ENV!=="production"&&K(v,"Invalide sourceFormat: "+u),V(o,v),u===Dn)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=lb(u,f);o.getItem=Te(d,null,s,h,c);var m=fb(u,f);o.count=Te(m,null,s,h,c)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],m=v[1]==null?-1/0:v[1],p=s-o,g=l[c],y=0;y<p;y++){var _=f[y*h+c];g[o+y]=_,_<d&&(d=_),_>m&&(m=_)}v[0]=d,v[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};ib=(e={},e[mt+"_"+sn]={pure:!0,appendData:a},e[mt+"_"+ua]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[mr]={pure:!0,appendData:a},e[kr]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[Xt]={appendData:a},e[Dn]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&K(St(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})(),Cf=function(t){W(t)||De("series.data or dataset.source must be an array.")},GL=(fa={},fa[mt+"_"+sn]=Cf,fa[mt+"_"+ua]=Cf,fa[mr]=Cf,fa[kr]=function(t,e){for(var r=0;r<e.length;r++){var n=e[r].name;n==null&&De("dimension name must not be null/undefined.")}},fa[Xt]=Cf,fa),sb=function(t,e,r,n){return t[n]},WL=(ha={},ha[mt+"_"+sn]=function(t,e,r,n){return t[n+e]},ha[mt+"_"+ua]=function(t,e,r,n,i){n+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ha[mr]=sb,ha[kr]=function(t,e,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[n]:null}return a},ha[Xt]=sb,ha);function lb(t,e){var r=WL[Df(t,e)];return process.env.NODE_ENV!=="production"&&K(r,'Do not support get item on "'+t+'", "'+e+'".'),r}var ub=function(t,e,r){return t.length},$L=(ca={},ca[mt+"_"+sn]=function(t,e,r){return Math.max(0,t.length-e)},ca[mt+"_"+ua]=function(t,e,r){var n=t[0];return n?Math.max(0,n.length-e):0},ca[mr]=ub,ca[kr]=function(t,e,r){var n=r[0].name,i=n!=null?t[n]:null;return i?i.length:0},ca[Xt]=ub,ca);function fb(t,e){var r=$L[Df(t,e)];return process.env.NODE_ENV!=="production"&&K(r,'Do not support count on "'+t+'", "'+e+'".'),r}var Cd=function(t,e,r){return t[e]},UL=(va={},va[mt]=Cd,va[mr]=function(t,e,r){return t[r]},va[kr]=Cd,va[Xt]=function(t,e,r){var n=vs(t);return n instanceof Array?n[e]:n},va[Dn]=Cd,va);function hb(t){var e=UL[t];return process.env.NODE_ENV!=="production"&&K(e,'Do not support get value on "'+t+'".'),e}function Df(t,e){return t===mt?t+"_"+e:t}function go(t,e,r){if(t){var n=t.getRawDataItem(e);if(n!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=i.getDimensionProperty(o);return hb(a)(n,o,s)}else{var l=n;return a===Xt&&(l=vs(n)),l}}}}var YL=/\{@(.+?)\}/g,XL=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var n=this.getData(r),i=this.getRawValue(e,r),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&W(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Q(a))return l.status=r,l.dimensionIndex=i,a(l);if(Y(a)){var f=L0(a,l);return f.replace(YL,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1),process.env.NODE_ENV!=="production"&&isNaN(d)&&De("Invalide label formatter: @"+c+", only support @[0], @[1], @[2], ..."));var m=go(s,e,d);if(o&&W(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},t.prototype.getRawValue=function(e,r){return go(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,n){},t})();function cb(t){var e,r;return q(t)?t.type?r=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Au(t)):e=t,{text:e,frag:r}}function Hs(t){return new qL(t)}var qL=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,n=e&&e.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(r?(process.env.NODE_ENV!=="production"&&K(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&K(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var m=this._progress;if(W(m))for(var p=0;p<m.length;p++)this._doProgress(m[p],v,d,l,u);else this._doProgress(m,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;process.env.NODE_ENV!=="production"&&K(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,n,i,a){vb.reset(r,n,i,a),this._callingProgress=e,this._callingProgress({start:r,end:n,count:n-r,next:vb.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),W(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&K(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})(),vb=(function(){var t,e,r,n,i,a={reset:function(l,u,f,h){e=l,t=u,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%i*r+Math.ceil(e/i),u=e>=t?null:l<n?l:e;return e++,u}})();function Ef(t,e){var r=e&&e.type;return r==="ordinal"?t:(r==="time"&&!Ce(t)&&t!=null&&t!=="-"&&(t=+no(t)),t==null||t===""?NaN:Number(t))}se({number:function(t){return parseFloat(t)},time:function(t){return+no(t)},trim:function(t){return Y(t)?Yr(t):t}});var ZL=(function(){function t(e,r){var n=e==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,r){var n=Ce(e)?e:Du(e),i=Ce(r)?r:Du(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(e),l=Y(r);s&&(n=l?e:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},t})(),KL=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return Ef(e,r)},t})();function jL(t,e){var r=new KL,n=t.data,i=r.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==sn&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Bt(o));var s=[],l={},u=t.dimensionsDefine;if(u)A(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Mr(l,g)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+g+'" duplicated.'),Bt(_)),l[g]=y}});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var h=lb(i,sn);e.__isBuiltIn&&(r.getRawDataItem=function(m){return h(n,a,s,m)},r.getRawData=Te(QL,null,t)),r.cloneRawData=Te(JL,null,t);var c=fb(i,sn);r.count=Te(c,null,n,a,s);var v=hb(i);r.retrieveValue=function(m,p){var g=h(n,a,s,m);return d(g,p)};var d=r.retrieveValueFromItem=function(m,p){if(m!=null){var g=s[p];if(g)return v(m,p,g.name)}};return r.getDimensionInfo=Te(e2,null,s,l),r.cloneAllDimensionInfo=Te(t2,null,s),r}function QL(t){var e=t.sourceFormat;if(!Dd(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+e),Bt(r)}return t.data}function JL(t){var e=t.sourceFormat,r=t.data;if(!Dd(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+e),Bt(n)}if(e===mt){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(e===mr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(V({},r[a]));return i}}function e2(t,e,r){if(r!=null){if(Ce(r)||!isNaN(r)&&!Mr(e,r))return t[r];if(Mr(e,r))return e[r]}}function t2(t){return fe(t)}var db=se();function r2(t){t=fe(t);var e=t.type,r="";e||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),Bt(r));var n=e.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),Bt(r));var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),t.__isBuiltIn=i,db.set(e,t)}function n2(t,e,r){var n=xt(t),i=n.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),Bt(a));for(var o=0,s=i;o<s;o++){var l=n[o];e=i2(l,e,r,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function i2(t,e,r,n){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Bt(i)),q(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),Bt(i));var a=t.type,o=db.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),Bt(i));var s=Z(e,function(f){return jL(f,o)}),l=xt(o.transform({upstream:s[0],upstreamList:s,config:fe(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=Z(l,function(f){var h=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+h+" ===","- transform result data:",Au(f.data),"- transform result dimensions:",Au(f.dimensions)].join(`
|
|
57
|
-
`)}).join(`
|
|
58
|
-
`);Py(u)}return Z(l,function(f,h){var c="";q(f)||(process.env.NODE_ENV!=="production"&&(c="A transform should not return some empty results."),Bt(c)),f.data||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be not be null or undefined"),Bt(c));var v=eb(f.data);Dd(v)||(process.env.NODE_ENV!=="production"&&(c="Transform result data should be array rows or object rows."),Bt(c));var d,m=e[0];if(m&&h===0&&!f.dimensions){var p=m.startIndex;p&&(f.data=m.data.slice(0,p).concat(f.data)),d={seriesLayoutBy:sn,sourceHeader:p,dimensions:m.metaRawOption.dimensions}}else d={seriesLayoutBy:sn,sourceHeader:0,dimensions:f.dimensions};return Td(f.data,d,null)})}function Dd(t){return t===mt||t===mr}var Af="undefined",a2=typeof Uint32Array===Af?Array:Uint32Array,o2=typeof Uint16Array===Af?Array:Uint16Array,pb=typeof Int32Array===Af?Array:Int32Array,gb=typeof Float64Array===Af?Array:Float64Array,mb={float:gb,int:pb,ordinal:Array,number:Array,time:gb},Ed;function mo(t){return t>65535?a2:o2}function yo(){return[1/0,-1/0]}function s2(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function yb(t,e,r,n,i){var a=mb[r||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(n)}var Ad=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return t.prototype.initData=function(e,r,n){process.env.NODE_ENV!=="production"&&K(Q(e.getItem)&&Q(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ed[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[];var o=nb(i);this._dimensions=Z(r,function(s){return process.env.NODE_ENV!=="production"&&o&&K(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(e,a),this._chunks[a]=new mb[r||"float"](this._rawCount),this._rawExtent[a]=yo(),a},t.prototype.collectOrdinalMeta=function(e,r){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=yo());for(var l=a[e],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},t.prototype.getOrdinalMeta=function(e){var r=this._dimensions[e],n=r.ordinalMeta;return n},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&K(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(e);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},t.prototype.appendValues=function(e,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=i[u];yb(n,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],m=Ed.arrayRows.call(this,e[v]||h,f.property,v,d);n[d][c]=m;var p=o[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=yo()),yb(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(e,r,a,l);else for(var c=[],v=e;v<r;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var m=a[d],p=this._dimValueGetter(c,u[d],v,d);m[v]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var n=[],i=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[e];return n?n[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},t.prototype.getMedian=function(e){var r=[];this.each([e],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,n=r[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<e)i=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=r[a]}else e=new n(r.buffer,0,i)}else{var n=mo(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=mo(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(l===0)v=r(c);else if(l===1){var m=h[f][d];v=r(m,c)}else{for(var p=0;p<l;p++)s[p]=h[e[p]][d];s[p]=c,v=r.apply(null,s)}v&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(e){var r=this.clone(),n=r._count;if(!n)return this;var i=Pe(e),a=i.length;if(!a)return this;var o=r.count(),s=mo(r._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],c=e[f][1],v=r._chunks,d=!1;if(!r._indices){var m=0;if(a===1){for(var p=v[i[0]],g=0;g<n;g++){var y=p[g];(y>=h&&y<=c||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=v[i[0]],_=v[i[1]],b=e[i[1]][0],w=e[i[1]][1],g=0;g<n;g++){var y=p[g],S=_[g];(y>=h&&y<=c||isNaN(y))&&(S>=b&&S<=w||isNaN(S))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var x=r.getRawIndex(g),y=v[i[0]][x];(y>=h&&y<=c||isNaN(y))&&(l[u++]=x)}else for(var g=0;g<o;g++){for(var T=!0,x=r.getRawIndex(g),C=0;C<a;C++){var E=i[C],y=v[E][x];(y<e[E][0]||y>e[E][1])&&(T=!1)}T&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var n=this.clone(e);return this._updateDims(n,e,r),n},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,n){for(var i=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=yo();for(var h=0;h<s;h++){for(var c=e.getRawIndex(h),v=0;v<o;v++)l[v]=i[r[v]][c];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=r[f],p=d[f],g=u[m],y=i[m];y&&(y[c]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},t.prototype.lttbDownSample=function(e,r){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,c,v=new(mo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),p=Math.min(d+l*2,o),g=(p+m)/2,y=0,_=m;_<p;_++){var b=this.getRawIndex(_),w=a[b];isNaN(w)||(y+=w)}y/=p-m;var S=d,x=Math.min(d+l,o),T=d-1,C=a[u];f=-1,c=S;for(var E=-1,D=0,_=S;_<x;_++){var b=this.getRawIndex(_),w=a[b];if(isNaN(w)){D++,E<0&&(E=b);continue}h=Math.abs((T-g)*(w-C)-(T-_)*(y-C)),h>f&&(f=h,c=b)}D>0&&D<x-S&&(v[s++]=Math.min(E,c),c=Math.max(E,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},t.prototype.minmaxDownSample=function(e,r){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/r),o=i[e],s=this.count(),l=new(mo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],m=a;f+a>s&&(m=s-f);for(var p=0;p<m;p++){var g=this.getRawIndex(f+p),y=o[g];y<c&&(c=y,h=f+p),y>d&&(d=y,v=f+p)}var _=this.getRawIndex(h),b=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},t.prototype.downSample=function(e,r,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),h=a._rawExtent[e]=yo(),c=new(mo(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var m=0;m<l;m++){var p=this.getRawIndex(d+m);s[m]=u[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),c[v++]=y}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[e[0]][s],a);break;case 2:r(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e){var r=this._chunks[e],n=yo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},t.prototype.clone=function(e,r){var n=new t,i=this._chunks,a=e&&Wn(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?s2(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=fe(this._extent),e._rawExtent=fe(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var n=this._indices.length;r=new e(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,n,i,a){return Ef(r[a],this._dimensions[a])}Ed={arrayRows:e,objectRows:function(r,n,i,a){return Ef(r[n],this._dimensions[a])},keyedColumns:e,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Ef(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),t})(),l2=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Gs(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=St(s)?Dn:Xt,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),m=j(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||m;i=p?[Td(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:m},l)]:[]}else{var g=e;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Td(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&K(i&&a),this._setLocalSource(i,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&K(i!=null||n!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),_b(a))}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+i),_b(h)),s.push(f),l.push(u._getVersionSign())}),n?o=n2(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[FL(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var n=e[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&K(Gs(this._sourceHost),"Can only call getDataStore on series source manager.");var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Gs(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,n):(s=new Ad,s.initData(new ob(r,e.length),e)),o[n]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gs(e)){var r=md(e);return r?[r.getSourceManager()]:[]}else return Z(cL(e),function(n){return n.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,n,i;if(Gs(e))r=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},t})();function Gs(t){return t.mainType==="series"}function _b(t){throw new Error(t)}var u2="line-height:1";function bb(t){var e=t.lineHeight;return e==null?u2:"line-height:"+Ot(e+"")+"px"}function wb(t,e){var r=t.color||X.color.tertiary,n=t.fontSize||12,i=t.fontWeight||"400",a=t.color||X.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ot(n+"")+"px;color:"+Ot(r)+";font-weight:"+Ot(i+""),valueStyle:"font-size:"+Ot(o+"")+"px;color:"+Ot(a)+";font-weight:"+Ot(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var f2=[0,10,20,30],h2=["",`
|
|
46
|
+
*/var Du={},xy={};function qD(e){delete xy[e]}function ZD(e){if(!e)return!1;if(typeof e=="string")return cu(e,1)<Gc;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=cu(t[i].color,1);return r/=n,r<Gc}return!1}var KD=(function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var a=new dD,o=n.renderer||"canvas";Du[o]||(o=Vt(Du)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Du[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!it.node&&!it.worker&&!l?new zD(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?it.touchEventsSupported:!!f,v=44,c;h&&(c=Q(n.pointerSize,v)),this.handler=new zm(a,s,u,s.root,c),this.animation=new PD({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=ZD(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=eo();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=eo();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof le&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,qD(this.id))},e})();function Ty(e,t){var r=new KD(xm(),e,t);return xy[r.id]=r,r}function jD(e,t){Du[e]=t}var Cy=1e-4,Dy=20;function QD(e){return e.replace(/^\s+|\s+$/g,"")}var hs=Math.min,Ye=Math.max,jr=Math.abs;function Jc(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}var Wt=JD;function JD(e,t,r){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return tv(e,t,r)}function tv(e,t,r){return Y(e)?QD(e).match(/%$/)?parseFloat(e)/100*t+(r||0):parseFloat(e):e==null?NaN:+e}function de(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),Dy),e=(+e).toFixed(t),r?e:+e}function Sn(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return tA(e)}function tA(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function eA(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(jr(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function rA(e,t){var r=Un(e,function(c,d){return c+(isNaN(d)?0:d)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=K(e,function(c){return(isNaN(c)?0:c)/r*n*100}),a=n*100,o=K(i,function(c){return Math.floor(c)}),s=Un(o,function(c,d){return c+d},0),l=K(i,function(c,d){return c-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return K(o,function(c){return c/n})}function nA(e,t){var r=Math.max(Sn(e),Sn(t)),n=e+t;return r>Dy?n:de(n,r)}function Ay(e){var t=Math.PI*2;return(e%t+t)%t}function Au(e){return e>-Cy&&e<Cy}var iA=/^(?:(\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 ao(e){if(e instanceof Date)return e;if(Y(e)){var t=iA.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function aA(e){return Math.pow(10,ev(e))}function ev(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function My(e,t){var r=ev(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Mu(e){var t=parseFloat(e);return t==e&&(t!==0||!Y(e)||e.indexOf("x")<=0)?t:NaN}function oA(e){return!isNaN(Mu(e))}function Ly(){return Math.round(Math.random()*9)}function ky(e,t){return t===0?e:ky(t,e%t)}function Iy(e,t){return e==null?t:t==null?e:e*t/ky(e,t)}var sA="[ECharts] ",lA=typeof console<"u"&&console.warn&&console.log;function uA(e,t,r){lA&&console[e](sA+t)}function Py(e,t){uA("error",e)}function Fe(e){throw new Error(e)}function Ey(e,t,r){return(t-e)*r+e}var Ry="series\0",fA="\0_ec_\0";function Ce(e){return e instanceof Array?e:e==null?[]:[e]}function rv(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Oy=["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 cs(e){return Z(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function hA(e){return Z(e)&&!(e instanceof Array)}function cA(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ft();L(t,function(l,u){if(!Z(l)){t[u]=null;return}});var s=vA(e,o,r);return(n||i)&&dA(s,e,o,t),n&&pA(s,t),n||i?gA(s,t,i):a&&mA(s,t),yA(s),s}function vA(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||ds(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function dA(e,t,r,n){L(n,function(i,a){if(!(!i||i.id==null)){var o=vs(i.id),s=r.get(o);if(s!=null){var l=e[s];_n(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function pA(e,t){L(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!ds(r)&&!ds(a)&&Ny("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function gA(e,t,r){L(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||ds(i.existing)||i.existing&&n.id!=null&&!Ny("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function mA(e,t){L(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function yA(e){var t=ft();L(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),L(e,function(r){var n=r.newOption;_n(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),L(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Z(a)){if(o.name=a.name!=null?vs(a.name):i?i.name:Ry+n,i)o.id=vs(i.id);else if(a.id!=null)o.id=vs(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function Ny(e,t,r){var n=Qr(t[e],null),i=Qr(r[e],null);return n!=null&&i!=null&&n===i}function vs(e){return Qr(e,"")}function Qr(e,t){return e==null?t:Y(e)?e:Mt(e)||Jh(e)?e+"":t}function nv(e){var t=e.name;return!!(t&&t.indexOf(Ry))}function ds(e){return e&&e.id!=null&&vs(e.id).indexOf(fA)===0}function _A(e,t,r){L(e,function(n){var i=n.newOption;Z(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=bA(t,i,n.existing,r))})}function bA(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Zi(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?K(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?K(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function $t(){var e="__ec_inner_"+wA++;return function(t){return t[e]||(t[e]={})}}var wA=Ly();function iv(e,t,r){var n=av(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=ps(e,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function av(e,t){var r;if(Y(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=ft(),a={},o=!1;return L(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&St(t.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var ur={useDefault:!0,enableAll:!1,enableNone:!1};function ps(e,t,r,n){n=n||ur;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(i==="none"||i===!1){if(n.enableNone)return s.models=[],s;i=-1}return i==="all"&&(n.enableAll?i=a=o=null:i=-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function By(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function SA(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function xA(e){return e==="auto"?it.domSupported?"html":"richText":e||"html"}function TA(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Mt(n)){var o=Ey(r||0,n,i);return de(o,a?Math.max(Sn(r||0),Sn(n)):t)}else{if(Y(n))return i<1?r:n;for(var s=[],l=r,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=e.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,d=u[h],o=Ey(c,d,i);s[h]=de(o,a?Math.max(Sn(c),Sn(d)):t)}}return s}}var CA=".",Ki="___EC__COMPONENT__CONTAINER___",Fy="___EC__EXTENDED_CLASS___";function Jr(e){var t={main:"",sub:""};if(e){var r=e.split(CA);t.main=r[0]||"",t.sub=r[1]||""}return t}function DA(e){_n(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function AA(e){return!!(e&&e[Fy])}function ov(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return MA(n)?i=(function(a){J(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(r.$constructor||n).apply(this,arguments)},DC(i,this)),H(i.prototype,r),i[Fy]=!0,i.extend=this.extend,i.superCall=IA,i.superApply=PA,i.superClass=n,i}}function MA(e){return rt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function zy(e,t){e.extend=t.extend}var LA=Math.round(Math.random()*10);function kA(e){var t=["__\0is_clz",LA++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function IA(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function PA(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Lu(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){DA(i),n.prototype.type=i;var a=Jr(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Ki){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[Ki]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=Jr(n),a=[],o=t[i.main];return o&&o[Ki]?L(o,function(s,l){l!==Ki&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Jr(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return L(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Jr(n),a=t[i.main];return a&&a[Ki]};function r(n){var i=t[n.main];return(!i||!i[Ki])&&(i=t[n.main]={},i[Ki]=!0),i}}function gs(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&St(i,l)>=0||a&&St(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var EA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],RA=gs(EA),OA=(function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return RA(this,t,r)},e})(),sv=new Ja(50);function NA(e){if(typeof e=="string"){var t=sv.get(e);return t&&t.image}else return e}function Hy(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=sv.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!ku(t)&&a.pending.push(o)):(t=yn.loadImage(e,Gy,Gy),t.__zrImageSrc=e,sv.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Gy(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function ku(e){return e&&e.width&&e.height}var lv=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function BA(e,t,r,n,i,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
47
|
+
`);a=Vy(r,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Wy(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;e.text=o.join(`
|
|
48
|
+
`),e.isTruncated=s}function Vy(e,t,r,n){n=n||{};var i=H({},n);r=Q(r,"..."),i.maxIterations=Q(n.maxIterations,2);var a=i.minChar=Q(n.minChar,0),o=i.fontMeasureInfo=Zr(t),s=o.asciiCharWidth;i.placeholder=Q(n.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<a&&l>=s;u++)l-=s;var f=Kr(o,r);return f>l&&(r="",f=0),l=e-f,i.ellipsis=r,i.ellipsisWidth=f,i.contentWidth=l,i.containerWidth=e,i}function Wy(e,t,r){var n=r.containerWidth,i=r.contentWidth,a=r.fontMeasureInfo;if(!n){e.textLine="",e.isTruncated=!1;return}var o=Kr(a,t);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?FA(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,l),o=Kr(a,t)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function FA(e,t,r){for(var n=0,i=0,a=e.length;i<a&&n<t;i++)n+=_y(r,e.charCodeAt(i));return i}function zA(e,t,r,n){var i=fv(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=t.font,f=a==="truncate",h=Su(u),v=Q(t.lineHeight,h),c=t.lineOverflow==="truncate",d=!1,m=t.width;m==null&&r!=null&&(m=r-s);var p=t.height;p==null&&n!=null&&(p=n-l);var g;m!=null&&(a==="break"||a==="breakAll")?g=i?Uy(i,t.font,m,a==="breakAll",0).lines:[]:g=i?i.split(`
|
|
49
|
+
`):[];var y=g.length*v;if(p==null&&(p=y),y>p&&c){var _=Math.floor(p/v);d=d||g.length>_,g=g.slice(0,_),y=g.length*v}if(i&&f&&m!=null)for(var b=Vy(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),S={},w=0;w<g.length;w++)Wy(S,g[w],b),g[w]=S.textLine,d=d||S.isTruncated;for(var T=p,x=0,A=Zr(u),w=0;w<g.length;w++)x=Math.max(Kr(A,g[w]),x);m==null&&(m=x);var C=m;return T+=l,C+=s,{lines:g,height:p,outerWidth:C,outerHeight:T,lineHeight:v,calculatedLineHeight:h,contentWidth:x,contentHeight:y,width:m,isTruncated:d}}var HA=(function(){function e(){}return e})(),$y=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),GA=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function VA(e,t,r,n,i){var a=new GA,o=fv(e);if(!o)return a;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=t.width;f==null&&r!=null&&(f=r-l);var h=t.height;h==null&&n!=null&&(h=n-u);for(var v=t.overflow,c=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=lv.lastIndex=0,m;(m=lv.exec(o))!=null;){var p=m.index;p>d&&uv(a,o.substring(d,p),t,c),uv(a,m[2],t,c,m[1]),d=lv.lastIndex}d<o.length&&uv(a,o.substring(d,o.length),t,c);var g=[],y=0,_=0,b=v==="truncate",S=t.lineOverflow==="truncate",w={};function T(ie,ye,Ot){ie.width=ye,ie.lineHeight=Ot,y+=Ot,_=Math.max(_,ye)}t:for(var x=0;x<a.lines.length;x++){for(var A=a.lines[x],C=0,D=0,k=0;k<A.tokens.length;k++){var M=A.tokens[k],I=M.styleName&&t.rich[M.styleName]||{},E=M.textPadding=I.padding,N=E?E[1]+E[3]:0,z=M.font=I.font||t.font;M.contentHeight=Su(z);var O=Q(I.height,M.contentHeight);if(M.innerHeight=O,E&&(O+=E[0]+E[2]),M.height=O,M.lineHeight=zi(I.lineHeight,t.lineHeight,O),M.align=I&&I.align||i,M.verticalAlign=I&&I.verticalAlign||"middle",S&&h!=null&&y+M.lineHeight>h){var B=a.lines.length;k>0?(A.tokens=A.tokens.slice(0,k),T(A,D,C),a.lines=a.lines.slice(0,x+1)):a.lines=a.lines.slice(0,x),a.isTruncated=a.isTruncated||a.lines.length<B;break t}var G=I.width,V=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")M.percentWidth=G,g.push(M),M.contentWidth=Kr(Zr(z),M.text);else{if(V){var F=I.backgroundColor,W=F&&F.image;W&&(W=NA(W),ku(W)&&(M.width=Math.max(M.width,W.width*O/W.height)))}var tt=b&&f!=null?f-D:null;tt!=null&&tt<M.width?!V||tt<N?(M.text="",M.width=M.contentWidth=0):(BA(w,M.text,tt-N,z,t.ellipsis,{minChar:t.truncateMinChar}),M.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,M.width=M.contentWidth=Kr(Zr(z),M.text)):M.contentWidth=Kr(Zr(z),M.text)}M.width+=N,D+=M.width,I&&(C=Math.max(C,M.lineHeight))}T(A,D,C)}a.outerWidth=a.width=Q(f,_),a.outerHeight=a.height=Q(h,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var x=0;x<g.length;x++){var M=g[x],bt=M.percentWidth;M.width=parseInt(bt,10)/100*a.width}return a}function uv(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Zn(o.width,n.width)+c;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
|
|
50
|
+
`),u=!0),n.accumWidth=d}else{var m=Uy(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+c,h=m.linesWidths,f=m.lines}}f||(f=t.split(`
|
|
51
|
+
`));for(var p=Zr(l),g=0;g<f.length;g++){var y=f[g],_=new HA;if(_.styleName=i,_.text=y,_.isLineHolder=!y&&!a,typeof o.width=="number"?_.width=o.width:_.width=h?h[g]:Kr(p,y),!g&&!u){var b=(s[s.length-1]||(s[0]=new $y)).tokens,S=b.length;S===1&&b[0].isLineHolder?b[0]=_:(y||!S||a)&&b.push(_)}else s.push(new $y([_]))}}function WA(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $A=Un(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function UA(e){return WA(e)?!!$A[e]:!0}function Uy(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=Zr(t),v=0;v<e.length;v++){var c=e.charAt(v);if(c===`
|
|
52
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=_y(h,c.charCodeAt(0)),m=n?!1:!UA(c);if(a.length?f+d>r:i+f+d>r){f?(s||l)&&(m?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=d)):m?(a.push(l),o.push(u),l=c,u=d):(a.push(c),o.push(d));continue}f+=d,m?(l+=c,u+=d):(l&&(s+=l,l="",u=0),s+=c)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function Yy(e,t,r,n,i,a){if(e.baseX=r,e.baseY=n,e.outerWidth=e.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;ut.set(Xy,no(r,o,i),qi(n,s,a),o,s),ut.intersect(t,Xy,null,qy);var l=qy.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=no(l.x,l.width,i,!0),e.baseY=qi(l.y,l.height,a,!0)}}var Xy=new ut(0,0,0,0),qy={outIntersectRect:{},clamp:!0};function fv(e){return e!=null?e+="":e=""}function YA(e){var t=fv(e.text),r=e.font,n=Kr(Zr(r),t),i=Su(r);return hv(e,n,i,null)}function hv(e,t,r,n){var i=new ut(no(e.x||0,t,e.textAlign),qi(e.y||0,r,e.textBaseline),t,r),a=n??(Zy(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zy(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var cv="__zr_style_"+Math.round(Math.random()*10),ji={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Iu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ji[cv]=!0;var Ky=["z","z2","invisible"],XA=["invisible"],ms=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Vt(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&qA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ut(0,0,0,0)),n?ut.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ut(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:H(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=as,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&as)},t.prototype.styleUpdated=function(){this.__dirty&=~as},t.prototype.createStyle=function(r){return tu(ji,r)},t.prototype.useStyle=function(r){r[cv]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[cv]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,Ky)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=Vt(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var d=Vt(u),v=0;v<d.length;v++){var c=d[v];this.style[c]=this.style[c]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?XA:Ky,v=0;v<m.length;v++){var c=m[v];n&&n[c]!=null?this[c]=n[c]:l&&i[c]!=null&&(this[c]=i[c])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return H(r,n),r},t.prototype.getAnimationStyleProps=function(){return Iu},t.initDefaultProps=(function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Ue|as})(),t})(Cu),vv=new ut(0,0,0,0),dv=new ut(0,0,0,0);function qA(e,t,r){return vv.copy(e.getBoundingRect()),e.transform&&vv.applyTransform(e.transform),dv.width=t,dv.height=r,!vv.intersect(dv)}var fr=Math.min,hr=Math.max,pv=Math.sin,gv=Math.cos,Qi=Math.PI*2,Pu=Ua(),Eu=Ua(),Ru=Ua();function jy(e,t,r,n,i,a){i[0]=fr(e,r),i[1]=fr(t,n),a[0]=hr(e,r),a[1]=hr(t,n)}var Qy=[],Jy=[];function ZA(e,t,r,n,i,a,o,s,l,u){var f=jm,h=ve,v=f(e,r,i,o,Qy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var d=h(e,r,i,o,Qy[c]);l[0]=fr(d,l[0]),u[0]=hr(d,u[0])}v=f(t,n,a,s,Jy);for(var c=0;c<v;c++){var m=h(t,n,a,s,Jy[c]);l[1]=fr(m,l[1]),u[1]=hr(m,u[1])}l[0]=fr(e,l[0]),u[0]=hr(e,u[0]),l[0]=fr(o,l[0]),u[0]=hr(o,u[0]),l[1]=fr(t,l[1]),u[1]=hr(t,u[1]),l[1]=fr(s,l[1]),u[1]=hr(s,u[1])}function KA(e,t,r,n,i,a,o,s){var l=Jm,u=Be,f=hr(fr(l(e,r,i),1),0),h=hr(fr(l(t,n,a),1),0),v=u(e,r,i,f),c=u(t,n,a,h);o[0]=fr(e,i,v),o[1]=fr(t,a,c),s[0]=hr(e,i,v),s[1]=hr(t,a,c)}function jA(e,t,r,n,i,a,o,s,l){var u=Xa,f=qa,h=Math.abs(i-a);if(h%Qi<1e-4&&h>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Pu[0]=gv(i)*r+e,Pu[1]=pv(i)*n+t,Eu[0]=gv(a)*r+e,Eu[1]=pv(a)*n+t,u(s,Pu,Eu),f(l,Pu,Eu),i=i%Qi,i<0&&(i=i+Qi),a=a%Qi,a<0&&(a=a+Qi),i>a&&!o?a+=Qi:i<a&&o&&(i+=Qi),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(Ru[0]=gv(c)*r+e,Ru[1]=pv(c)*n+t,u(s,Ru,s),f(l,Ru,l))}var Ct={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ji=[],ta=[],tn=[],Kn=[],en=[],rn=[],mv=Math.min,yv=Math.max,ea=Math.cos,ra=Math.sin,xn=Math.abs,_v=Math.PI,jn=_v*2,bv=typeof Float32Array<"u",ys=[];function wv(e){var t=Math.round(e/_v*1e8)/1e8;return t%2*_v}function t0(e,t){var r=wv(e[0]);r<0&&(r+=jn);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=jn?i=r+jn:t&&r-i>=jn?i=r-jn:!t&&r>i?i=r+(jn-wv(r-i)):t&&r<i&&(i=r-(jn-wv(i-r))),e[0]=r,e[1]=i}var na=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=xn(n/bu/t)||0,this._uy=xn(n/bu/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Ct.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=xn(t-this._xi),i=xn(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(Ct.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(Ct.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Ct.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),ys[0]=i,ys[1]=a,t0(ys,o),i=ys[0],a=ys[1];var s=a-i;return this.addData(Ct.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=ea(a)*n+t,this._yi=ra(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Ct.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ct.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var r=t.length;!(this.data&&this.data.length===r)&&bv&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,a=0;a<r;a++)n+=t[a].len();var o=this.data;if(bv&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),i>0&&o))for(var s=0;s<i;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=t[a].data,s=0;s<l.length;s++)this.data[i++]=l[s];this._len=i}},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,bv&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){tn[0]=tn[1]=en[0]=en[1]=Number.MAX_VALUE,Kn[0]=Kn[1]=rn[0]=rn[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case Ct.M:r=i=t[o++],n=a=t[o++],en[0]=i,en[1]=a,rn[0]=i,rn[1]=a;break;case Ct.L:jy(r,n,t[o],t[o+1],en,rn),r=t[o++],n=t[o++];break;case Ct.C:ZA(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],en,rn),r=t[o++],n=t[o++];break;case Ct.Q:KA(r,n,t[o++],t[o++],t[o],t[o+1],en,rn),r=t[o++],n=t[o++];break;case Ct.A:var u=t[o++],f=t[o++],h=t[o++],v=t[o++],c=t[o++],d=t[o++]+c;o+=1;var m=!t[o++];l&&(i=ea(c)*h+u,a=ra(c)*v+f),jA(u,f,h,v,c,d,m,en,rn),r=ea(d)*h+u,n=ra(d)*v+f;break;case Ct.R:i=r=t[o++],a=n=t[o++];var p=t[o++],g=t[o++];jy(i,a,i+p,a+g,en,rn);break;case Ct.Z:r=i,n=a;break}Xa(tn,tn,en),qa(Kn,Kn,rn)}return o===0&&(tn[0]=tn[1]=Kn[0]=Kn[1]=0),new ut(tn[0],tn[1],Kn[0]-tn[0],Kn[1]-tn[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<r;){var c=t[v++],d=v===1;d&&(a=t[v],o=t[v+1],s=a,l=o);var m=-1;switch(c){case Ct.M:a=s=t[v++],o=l=t[v++];break;case Ct.L:{var p=t[v++],g=t[v++],y=p-a,_=g-o;(xn(y)>n||xn(_)>i||v===r-1)&&(m=Math.sqrt(y*y+_*_),a=p,o=g);break}case Ct.C:{var b=t[v++],S=t[v++],p=t[v++],g=t[v++],w=t[v++],T=t[v++];m=gD(a,o,b,S,p,g,w,T,10),a=w,o=T;break}case Ct.Q:{var b=t[v++],S=t[v++],p=t[v++],g=t[v++];m=_D(a,o,b,S,p,g,10),a=p,o=g;break}case Ct.A:var x=t[v++],A=t[v++],C=t[v++],D=t[v++],k=t[v++],M=t[v++],I=M+k;v+=1,d&&(s=ea(k)*C+x,l=ra(k)*D+A),m=yv(C,D)*mv(jn,Math.abs(M)),a=ea(I)*C+x,o=ra(I)*D+A;break;case Ct.R:{s=a=t[v++],l=o=t[v++];var E=t[v++],N=t[v++];m=E*2+N*2;break}case Ct.Z:{var y=s-a,_=l-o;m=Math.sqrt(y*y+_*_),a=s,o=l;break}}m>=0&&(u[h++]=m,f+=m)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=r<1,d,m,p=0,g=0,y,_=0,b,S;if(!(c&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,m=this._pathLen,y=r*m,!y)))t:for(var w=0;w<o;){var T=n[w++],x=w===1;switch(x&&(u=n[w],f=n[w+1],s=u,l=f),T!==Ct.L&&_>0&&(t.lineTo(b,S),_=0),T){case Ct.M:s=u=n[w++],l=f=n[w++],t.moveTo(u,f);break;case Ct.L:{h=n[w++],v=n[w++];var A=xn(h-u),C=xn(v-f);if(A>i||C>a){if(c){var D=d[g++];if(p+D>y){var k=(y-p)/D;t.lineTo(u*(1-k)+h*k,f*(1-k)+v*k);break t}p+=D}t.lineTo(h,v),u=h,f=v,_=0}else{var M=A*A+C*C;M>_&&(b=h,S=v,_=M)}break}case Ct.C:{var I=n[w++],E=n[w++],N=n[w++],z=n[w++],O=n[w++],B=n[w++];if(c){var D=d[g++];if(p+D>y){var k=(y-p)/D;lu(u,I,N,O,k,Ji),lu(f,E,z,B,k,ta),t.bezierCurveTo(Ji[1],ta[1],Ji[2],ta[2],Ji[3],ta[3]);break t}p+=D}t.bezierCurveTo(I,E,N,z,O,B),u=O,f=B;break}case Ct.Q:{var I=n[w++],E=n[w++],N=n[w++],z=n[w++];if(c){var D=d[g++];if(p+D>y){var k=(y-p)/D;uu(u,I,N,k,Ji),uu(f,E,z,k,ta),t.quadraticCurveTo(Ji[1],ta[1],Ji[2],ta[2]);break t}p+=D}t.quadraticCurveTo(I,E,N,z),u=N,f=z;break}case Ct.A:var G=n[w++],V=n[w++],F=n[w++],W=n[w++],tt=n[w++],bt=n[w++],ie=n[w++],ye=!n[w++],Ot=F>W?F:W,Yt=xn(F-W)>.001,te=tt+bt,nt=!1;if(c){var D=d[g++];p+D>y&&(te=tt+bt*(y-p)/D,nt=!0),p+=D}if(Yt&&t.ellipse?t.ellipse(G,V,F,W,ie,tt,te,ye):t.arc(G,V,Ot,tt,te,ye),nt)break t;x&&(s=ea(tt)*F+G,l=ra(tt)*W+V),u=ea(te)*F+G,f=ra(te)*W+V;break;case Ct.R:s=u=n[w],l=f=n[w+1],h=n[w++],v=n[w++];var dt=n[w++],hn=n[w++];if(c){var D=d[g++];if(p+D>y){var he=y-p;t.moveTo(h,v),t.lineTo(h+mv(he,dt),v),he-=dt,he>0&&t.lineTo(h+dt,v+mv(he,hn)),he-=hn,he>0&&t.lineTo(h+yv(dt-he,0),v+hn),he-=dt,he>0&&t.lineTo(h,v+yv(hn-he,0));break t}p+=D}t.rect(h,v,dt,hn);break;case Ct.Z:if(c){var D=d[g++];if(p+D>y){var k=(y-p)/D;t.lineTo(u*(1-k)+s*k,f*(1-k)+l*k);break t}p+=D}t.closePath(),u=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Ct,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function oo(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function QA(e,t,r,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||u>e+h&&u>r+h&&u>i+h&&u>o+h||u<e-h&&u<r-h&&u<i-h&&u<o-h)return!1;var v=pD(e,t,r,n,i,a,o,s,u,f);return v<=h/2}function JA(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var f=yD(e,t,r,n,i,a,s,l);return f<=u/2}var e0=Math.PI*2;function Ou(e){return e%=e0,e<0&&(e+=e0),e}var _s=Math.PI*2;function tM(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(n-i)%_s<1e-4)return!0;if(a){var h=n;n=Ou(i),i=Ou(h)}else n=Ou(n),i=Ou(i);n>i&&(i+=_s);var v=Math.atan2(l,s);return v<0&&(v+=_s),v>=n&&v<=i||v+_s>=n&&v+_s<=i}function ia(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Qn=na.CMD,aa=Math.PI*2,eM=1e-4;function rM(e,t){return Math.abs(e-t)<eM}var De=[-1,-1,-1],cr=[-1,-1];function nM(){var e=cr[0];cr[0]=cr[1],cr[1]=e}function iM(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var f=su(t,n,a,s,u,De);if(f===0)return 0;for(var h=0,v=-1,c=void 0,d=void 0,m=0;m<f;m++){var p=De[m],g=p===0||p===1?.5:1,y=ve(e,r,i,o,p);y<l||(v<0&&(v=jm(t,n,a,s,cr),cr[1]<cr[0]&&v>1&&nM(),c=ve(t,n,a,s,cr[0]),v>1&&(d=ve(t,n,a,s,cr[1]))),v===2?p<cr[0]?h+=c<t?g:-g:p<cr[1]?h+=d<c?g:-g:h+=s<d?g:-g:p<cr[0]?h+=c<t?g:-g:h+=s<c?g:-g)}return h}function aM(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=mD(t,n,a,s,De);if(l===0)return 0;var u=Jm(t,n,a);if(u>=0&&u<=1){for(var f=0,h=Be(t,n,a,u),v=0;v<l;v++){var c=De[v]===0||De[v]===1?.5:1,d=Be(e,r,i,De[v]);d<o||(De[v]<u?f+=h<t?c:-c:f+=a<h?c:-c)}return f}else{var c=De[0]===0||De[0]===1?.5:1,d=Be(e,r,i,De[0]);return d<o?0:a<t?c:-c}}function oM(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);De[0]=-l,De[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=aa-1e-4){n=0,i=aa;var f=a?1:-1;return o>=De[0]+e&&o<=De[1]+e?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=aa,i+=aa);for(var v=0,c=0;c<2;c++){var d=De[c];if(d+e>o){var m=Math.atan2(s,d),f=a?1:-1;m<0&&(m=aa+m),(m>=n&&m<=i||m+aa>=n&&m+aa<=i)&&(m>Math.PI/2&&m<Math.PI*1.5&&(f=-f),v+=f)}}return v}function r0(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,f=0,h=0,v,c,d=0;d<o;){var m=a[d++],p=d===1;switch(m===Qn.M&&d>1&&(r||(s+=ia(l,u,f,h,n,i))),p&&(l=a[d],u=a[d+1],f=l,h=u),m){case Qn.M:f=a[d++],h=a[d++],l=f,u=h;break;case Qn.L:if(r){if(oo(l,u,a[d],a[d+1],t,n,i))return!0}else s+=ia(l,u,a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Qn.C:if(r){if(QA(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=iM(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Qn.Q:if(r){if(JA(l,u,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=aM(l,u,a[d++],a[d++],a[d],a[d+1],n,i)||0;l=a[d++],u=a[d++];break;case Qn.A:var g=a[d++],y=a[d++],_=a[d++],b=a[d++],S=a[d++],w=a[d++];d+=1;var T=!!(1-a[d++]);v=Math.cos(S)*_+g,c=Math.sin(S)*b+y,p?(f=v,h=c):s+=ia(l,u,v,c,n,i);var x=(n-g)*b/_+g;if(r){if(tM(g,y,b,S,S+w,T,t,x,i))return!0}else s+=oM(g,y,b,S,S+w,T,x,i);l=Math.cos(S+w)*_+g,u=Math.sin(S+w)*b+y;break;case Qn.R:f=l=a[d++],h=u=a[d++];var A=a[d++],C=a[d++];if(v=f+A,c=h+C,r){if(oo(f,h,v,h,t,n,i)||oo(v,h,v,c,t,n,i)||oo(v,c,f,c,t,n,i)||oo(f,c,f,h,t,n,i))return!0}else s+=ia(v,h,v,c,n,i),s+=ia(f,c,f,h,n,i);break;case Qn.Z:if(r){if(oo(l,u,f,h,t,n,i))return!0}else s+=ia(l,u,f,h,n,i);l=f,u=h;break}}return!r&&!rM(u,h)&&(s+=ia(l,u,f,h,n,i)||0),s!==0}function sM(e,t,r){return r0(e,0,!1,t,r)}function lM(e,t,r,n){return r0(e,t,!0,r,n)}var n0=Dt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ji),uM={style:Dt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Iu.style)},Sv=fs.concat(["invisible","culling","z","z2","zlevel","parent"]),Lt=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Sv.length;++s)i[Sv[s]]=this[Sv[s]];i.__dirty|=Ue}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Vt(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?H(this.style,s):this.useStyle(s):o==="shape"?H(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Y(r)){var n=cu(r,0);return n>.5?Vc:n>.2?HD:Wc}else if(r)return Wc}return Vc},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Y(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=cu(r,0)<Gc;if(a===o)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~ja},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new na(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ja)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),lM(s,l/u,r,n)))return!0}if(this.hasFill())return sM(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ja,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:H(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ja)},t.prototype.createStyle=function(r){return tu(n0,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=H({},i.shape),H(u,n.shape)):(u=H({},a?this.shape:i.shape),H(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=H({},this.shape);for(var f={},h=Vt(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return uM},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=(function(a){It(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return pt(r.style)},o.prototype.getDefaultShape=function(){return pt(r.shape)},o})(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=(function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Ue|as|ja})(),t})(ms),fM=Dt({strokeFirst:!0,font:$n,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},n0),Nu=(function(e){It(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Zy(this.style)},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return tu(fM,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=YA(this.style)),this._rect},t.initDefaultProps=(function(){var r=t.prototype;r.dirtyRectTolerance=10})(),t})(ms);Nu.prototype.type="tspan";var hM=Dt({x:0,y:0},ji),cM={style:Dt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Iu.style)};function vM(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Jn=(function(e){It(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return tu(hM,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=vM(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return cM},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ut(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t})(ms);Jn.prototype.type="image";function dM(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,f;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+f,n+a),f!==0&&e.arc(r+f,n+a-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var so=Math.round;function i0(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(so(n*2)===so(i*2)&&(e.x1=e.x2=oa(n,s,!0)),so(a*2)===so(o*2)&&(e.y1=e.y2=oa(a,s,!0))),e}}function a0(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=oa(n,s,!0),e.y=oa(i,s,!0),e.width=Math.max(oa(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(oa(i+o,s,!1)-e.y,o===0?0:1)),e}}function oa(e,t,r){if(!t)return e;var n=so(e*2);return(n+so(t))%2===0?n/2:(n+(r?1:-1))/2}var pM=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),gM={},qt=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new pM},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=a0(gM,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?dM(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Lt);qt.prototype.type="rect";var o0={fill:"#000"},s0=2,nn={},mM={style:Dt({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},Iu.style)},pe=(function(e){It(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=o0,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,SM(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new ut(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||o0},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return H(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=Vt(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},H(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return mM},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||$n,i=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||"left",u=r.verticalAlign||a.verticalAlign||"top";Yy(nn,a.overflowRect,o,s,l,u),o=nn.baseX,s=nn.baseY;var f=d0(r),h=zA(f,r,nn.outerWidth,nn.outerHeight),v=xv(r),c=!!r.backgroundColor,d=h.outerHeight,m=h.outerWidth,p=h.lines,g=h.lineHeight;this.isTruncated=!!h.isTruncated;var y=o,_=qi(s,h.contentHeight,u);if(v||i){var b=no(o,m,l),S=qi(s,d,u);v&&this._renderBackground(r,r,b,S,m,d)}_+=g/2,i&&(y=v0(o,l,i),u==="top"?_+=i[0]:u==="bottom"&&(_-=i[2]));for(var w=0,T=!1,x=!1,A=c0("fill"in r?r.fill:(x=!0,a.fill)),C=h0("stroke"in r?r.stroke:!c&&(!a.autoStroke||x)?(w=s0,T=!0,a.stroke):null),D=r.textShadowBlur>0,k=0;k<p.length;k++){var M=this._getOrCreateChild(Nu),I=M.createStyle();M.useStyle(I),I.text=p[k],I.x=y,I.y=_,I.textAlign=l,I.textBaseline="middle",I.opacity=r.opacity,I.strokeFirst=!0,D&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||"transparent",I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=C,I.fill=A,C&&(I.lineWidth=r.lineWidth||w,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=n,u0(I,r),_+=g,M.setBoundingRect(hv(I,h.contentWidth,h.calculatedLineHeight,T?0:null))}},t.prototype._updateRichTexts=function(){var r=this.style,n=this._defaultStyle,i=r.align||n.align,a=r.verticalAlign||n.verticalAlign,o=r.x||0,s=r.y||0;Yy(nn,n.overflowRect,o,s,i,a),o=nn.baseX,s=nn.baseY;var l=d0(r),u=VA(l,r,nn.outerWidth,nn.outerHeight,i),f=u.width,h=u.outerWidth,v=u.outerHeight,c=r.padding;this.isTruncated=!!u.isTruncated;var d=no(o,h,i),m=qi(s,v,a),p=d,g=m;c&&(p+=c[3],g+=c[0]);var y=p+f;xv(r)&&this._renderBackground(r,r,d,m,h,v);for(var _=!!r.backgroundColor,b=0;b<u.lines.length;b++){for(var S=u.lines[b],w=S.tokens,T=w.length,x=S.lineHeight,A=S.width,C=0,D=p,k=y,M=T-1,I=void 0;C<T&&(I=w[C],!I.align||I.align==="left");)this._placeToken(I,r,x,g,D,"left",_),A-=I.width,D+=I.width,C++;for(;M>=0&&(I=w[M],I.align==="right");)this._placeToken(I,r,x,g,k,"right",_),A-=I.width,k-=I.width,M--;for(D+=(f-(D-p)-(y-k)-A)/2;C<=M;)I=w[C],this._placeToken(I,r,x,g,D+I.width/2,"center",_),D+=I.width,C++;g+=x}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,h=a+i/2;f==="top"?h=a+r.height/2:f==="bottom"&&(h=a+i-r.height/2);var v=!r.isLineHolder&&xv(u);v&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,h-r.height/2,r.width,r.height);var c=!!u.backgroundColor,d=r.textPadding;d&&(o=v0(o,s,d),h-=r.height/2-d[0]-r.innerHeight/2);var m=this._getOrCreateChild(Nu),p=m.createStyle();m.useStyle(p);var g=this._defaultStyle,y=!1,_=0,b=!1,S=c0("fill"in u?u.fill:"fill"in n?n.fill:(y=!0,g.fill)),w=h0("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!g.autoStroke||y)?(_=s0,b=!0,g.stroke):null),T=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=o,p.y=h,T&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||$n,p.opacity=zi(u.opacity,n.opacity,1),u0(p,u),w&&(p.lineWidth=zi(u.lineWidth,n.lineWidth,_),p.lineDash=Q(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=w),S&&(p.fill=S),m.setBoundingRect(hv(p,r.contentWidth,r.contentHeight,b?0:null))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,h=l&&l.image,v=l&&!h,c=r.borderRadius,d=this,m,p;if(v||r.lineHeight||u&&f){m=this._getOrCreateChild(qt),m.useStyle(m.createStyle()),m.style.fill=null;var g=m.shape;g.x=i,g.y=a,g.width=o,g.height=s,g.r=c,m.dirtyShape()}if(v){var y=m.style;y.fill=l||null,y.fillOpacity=Q(r.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Jn),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var y=m.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Q(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var b=(m||p).style;b.shadowBlur=r.shadowBlur||0,b.shadowColor=r.shadowColor||"transparent",b.shadowOffsetX=r.shadowOffsetX||0,b.shadowOffsetY=r.shadowOffsetY||0,b.opacity=zi(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return wM(r)&&(n=[r.fontStyle,r.fontWeight,bM(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ur(n)||r.textFont||r.font},t})(ms),yM={left:!0,right:1,center:1},_M={top:1,bottom:1,middle:1},l0=["fontStyle","fontWeight","fontSize","fontFamily"];function bM(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?Zh+"px":e+"px"}function u0(e,t){for(var r=0;r<l0.length;r++){var n=l0[r],i=t[n];i!=null&&(e[n]=i)}}function wM(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function SM(e){return f0(e),L(e.rich,f0),e}function f0(e){if(e){e.font=pe.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||yM[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||_M[r]?r:"top";var n=e.padding;n&&(e.padding=ec(e.padding))}}function h0(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function c0(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function v0(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function d0(e){var t=e.text;return t!=null&&(t+=""),t}function xv(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var _t=$t(),xM=function(e,t,r,n){if(n){var i=_t(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=_t(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},p0=1,g0={},m0=$t(),Tv=$t(),Cv=0,Bu=1,Fu=2,vr=["emphasis","blur","select"],zu=["normal","emphasis","blur","select"],TM=10,CM=9,sa="highlight",Hu="downplay",Gu="select",Dv="unselect",Vu="toggleSelect",Av="selectchanged";function lo(e){return e!=null&&e!=="none"}function Wu(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function y0(e){Wu(e,"emphasis",Fu)}function _0(e){e.hoverState===Fu&&Wu(e,"normal",Cv)}function Mv(e){Wu(e,"blur",Bu)}function b0(e){e.hoverState===Bu&&Wu(e,"normal",Cv)}function DM(e){e.selected=!0}function AM(e){e.selected=!1}function w0(e,t,r){t(e,r)}function Tn(e,t,r){w0(e,t,r),e.isGroup&&e.traverse(function(n){w0(n,t,r)})}function S0(e,t){switch(t){case"emphasis":e.hoverState=Fu;break;case"normal":e.hoverState=Cv;break;case"blur":e.hoverState=Bu;break;case"select":e.selected=!0}}function MM(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function LM(e,t,r,n){var i=r&&St(r,"select")>=0,a=!1;if(e instanceof Lt){var o=m0(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(lo(s)||lo(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=H({},n),u=H({},u),u.fill=s):!lo(u.fill)&&lo(s)?(a=!0,n=H({},n),u=H({},u),u.fill=oy(s)):!lo(u.stroke)&&lo(l)&&(a||(n=H({},n),u=H({},u)),u.stroke=oy(l)),n.style=u}}if(n&&n.z2==null){a||(n=H({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??TM)}return n}function kM(e,t,r){if(r&&r.z2==null){r=H({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??CM)}return r}function IM(e,t,r){var n=St(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:MM(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=H({},r),o=H({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Lv(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return LM(this,e,t,r);if(e==="blur")return IM(this,e,r);if(e==="select")return kM(this,e,r)}return r}function PM(e){e.stateProxy=Lv;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Lv),r&&(r.stateProxy=Lv)}function x0(e,t){!M0(e,t)&&!e.__highByOuter&&Tn(e,y0)}function T0(e,t){!M0(e,t)&&!e.__highByOuter&&Tn(e,_0)}function $u(e,t){e.__highByOuter|=1<<(t||0),Tn(e,y0)}function Uu(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Tn(e,_0)}function EM(e){Tn(e,Mv)}function C0(e){Tn(e,b0)}function D0(e){Tn(e,DM)}function A0(e){Tn(e,AM)}function M0(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function L0(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Tv(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){b0(u)}),s&&r.push(a)),o.isBlured=!1}),L(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function kv(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&C0(v)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Mv(p)}),Ee(t))a(u.getData(),t);else if(Z(t))for(var d=Vt(t),m=0;m<d.length;m++)a(u.getData(d[m]),t[d[m]]);l.push(u),Tv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function Iv(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Tv(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Mv(a)})}}}function RM(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Zi(i,t);a=(U(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=_t(o);kv(n,u.focus,u.blurScope,r)}else{var f=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);f!=null&&kv(n,f,h,r)}}}function Pv(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(_t(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function OM(e,t,r){var n=_t(e),i=Pv(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&Iv(n.componentMainType,n.componentIndex,r),L(a,function(s){return x0(s,t)})):(kv(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Iv(n.componentMainType,n.componentIndex,r),x0(e,t))}function NM(e,t,r){L0(r);var n=_t(e),i=Pv(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?L(i,function(a){return T0(a,t)}):T0(e,t)}function BM(e,t,r){if(Ov(t)){var n=t.dataType,i=e.getData(n),a=Zi(i,t);U(a)||(a=[a]),e[t.type===Vu?"toggleSelect":t.type===Gu?"select":"unselect"](a,n)}}function k0(e){var t=e.getAllData();L(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?D0(a):A0(a)})})}function FM(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();L(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function Ev(e,t,r){P0(e,!0),Tn(e,PM),HM(e,t,r)}function zM(e){P0(e,!1)}function bs(e,t,r,n){n?zM(e):Ev(e,t,r)}function HM(e,t,r){var n=_t(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var I0=["emphasis","blur","select"],GM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yu(e,t,r,n){r=r||"itemStyle";for(var i=0;i<I0.length;i++){var a=I0[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=o[GM[r]]()}}function P0(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Rv(e){return!!(e&&e.__highDownDispatcher)}function VM(e){var t=g0[e];return t==null&&p0<=32&&(t=g0[e]=p0++),t}function Ov(e){var t=e.type;return t===Gu||t===Dv||t===Vu}function E0(e){var t=e.type;return t===sa||t===Hu}function WM(e){var t=m0(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var uo=na.CMD,$M=[[],[],[]],R0=Math.sqrt,UM=Math.atan2;function YM(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,f=uo.M,h=uo.C,v=uo.L,c=uo.R,d=uo.A,m=uo.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case m:a=2;break;case d:var p=t[4],g=t[5],y=R0(t[0]*t[0]+t[1]*t[1]),_=R0(t[2]*t[2]+t[3]*t[3]),b=UM(-t[1]/_,t[0]/y);r[o]*=y,r[o++]+=p,r[o]*=_,r[o++]+=g,r[o++]*=y,r[o++]*=_,r[o++]+=b,r[o++]+=b,o+=2,s=o;break;case c:u[0]=r[o++],u[1]=r[o++],ar(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],ar(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=$M[l];S[0]=r[o++],S[1]=r[o++],ar(S,S,t),r[s++]=S[0],r[s++]=S[1]}}e.increaseVersion()}}var Nv=Math.sqrt,Xu=Math.sin,qu=Math.cos,ws=Math.PI;function O0(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Bv(e,t){return(e[0]*t[0]+e[1]*t[1])/(O0(e)*O0(t))}function N0(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Bv(e,t))}function B0(e,t,r,n,i,a,o,s,l,u,f){var h=l*(ws/180),v=qu(h)*(e-r)/2+Xu(h)*(t-n)/2,c=-1*Xu(h)*(e-r)/2+qu(h)*(t-n)/2,d=v*v/(o*o)+c*c/(s*s);d>1&&(o*=Nv(d),s*=Nv(d));var m=(i===a?-1:1)*Nv((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,p=m*o*c/s,g=m*-s*v/o,y=(e+r)/2+qu(h)*p-Xu(h)*g,_=(t+n)/2+Xu(h)*p+qu(h)*g,b=N0([1,0],[(v-p)/o,(c-g)/s]),S=[(v-p)/o,(c-g)/s],w=[(-1*v-p)/o,(-1*c-g)/s],T=N0(S,w);if(Bv(S,w)<=-1&&(T=ws),Bv(S,w)>=1&&(T=0),T<0){var x=Math.round(T/ws*1e6)/1e6;T=ws*2+x%2*ws}f.addData(u,y,_,o,s,b,T,h,a)}var XM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ZM(e){var t=new na;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=na.CMD,l=e.match(XM);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(qM)||[],d=c.length,m=0;m<d;m++)c[m]=parseFloat(c[m]);for(var p=0;p<d;){var g=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,T=void 0,x=r,A=n,C=void 0,D=void 0;switch(h){case"l":r+=c[p++],n+=c[p++],v=s.L,t.addData(v,r,n);break;case"L":r=c[p++],n=c[p++],v=s.L,t.addData(v,r,n);break;case"m":r+=c[p++],n+=c[p++],v=s.M,t.addData(v,r,n),i=r,a=n,h="l";break;case"M":r=c[p++],n=c[p++],v=s.M,t.addData(v,r,n),i=r,a=n,h="L";break;case"h":r+=c[p++],v=s.L,t.addData(v,r,n);break;case"H":r=c[p++],v=s.L,t.addData(v,r,n);break;case"v":n+=c[p++],v=s.L,t.addData(v,r,n);break;case"V":n=c[p++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,c[p++],c[p++],c[p++],c[p++],c[p++],c[p++]),r=c[p-2],n=c[p-1];break;case"c":v=s.C,t.addData(v,c[p++]+r,c[p++]+n,c[p++]+r,c[p++]+n,c[p++]+r,c[p++]+n),r+=c[p-2],n+=c[p-1];break;case"S":g=r,y=n,C=t.len(),D=t.data,o===s.C&&(g+=r-D[C-4],y+=n-D[C-3]),v=s.C,x=c[p++],A=c[p++],r=c[p++],n=c[p++],t.addData(v,g,y,x,A,r,n);break;case"s":g=r,y=n,C=t.len(),D=t.data,o===s.C&&(g+=r-D[C-4],y+=n-D[C-3]),v=s.C,x=r+c[p++],A=n+c[p++],r+=c[p++],n+=c[p++],t.addData(v,g,y,x,A,r,n);break;case"Q":x=c[p++],A=c[p++],r=c[p++],n=c[p++],v=s.Q,t.addData(v,x,A,r,n);break;case"q":x=c[p++]+r,A=c[p++]+n,r+=c[p++],n+=c[p++],v=s.Q,t.addData(v,x,A,r,n);break;case"T":g=r,y=n,C=t.len(),D=t.data,o===s.Q&&(g+=r-D[C-4],y+=n-D[C-3]),r=c[p++],n=c[p++],v=s.Q,t.addData(v,g,y,r,n);break;case"t":g=r,y=n,C=t.len(),D=t.data,o===s.Q&&(g+=r-D[C-4],y+=n-D[C-3]),r+=c[p++],n+=c[p++],v=s.Q,t.addData(v,g,y,r,n);break;case"A":_=c[p++],b=c[p++],S=c[p++],w=c[p++],T=c[p++],x=r,A=n,r=c[p++],n=c[p++],v=s.A,B0(x,A,r,n,w,T,_,b,S,v,t);break;case"a":_=c[p++],b=c[p++],S=c[p++],w=c[p++],T=c[p++],x=r,A=n,r+=c[p++],n+=c[p++],v=s.A,B0(x,A,r,n,w,T,_,b,S,v,t);break}}(h==="z"||h==="Z")&&(v=s.Z,t.addData(v),r=i,n=a),o=v}return t.toStatic(),t}var F0=(function(e){It(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t})(Lt);function z0(e){return e.setData!=null}function H0(e,t){var r=ZM(e),n=H({},t);return n.buildPath=function(i){var a=z0(i);if(a&&i.canSave()){i.appendPath(r);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=a?i.getContext():i;o&&r.rebuildPath(o,1)}},n.applyTransform=function(i){YM(r,i),this.dirtyShape()},n}function KM(e,t){return new F0(H0(e,t))}function jM(e,t){var r=H0(e,t),n=(function(i){It(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(F0);return n}function QM(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new Lt(t);return o.createPathProxy(),o.buildPath=function(s){if(z0(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var JM=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),Zu=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new JM},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(Lt);Zu.prototype.type="circle";var tL=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),Fv=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new tL},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},t})(Lt);Fv.prototype.type="ellipse";var G0=Math.PI,zv=G0*2,la=Math.sin,fo=Math.cos,eL=Math.acos,_e=Math.atan2,V0=Math.abs,Ss=Math.sqrt,xs=Math.max,an=Math.min,Lr=1e-4;function rL(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<Lr))return v=(f*(t-a)-h*(e-i))/v,[e+v*l,t+v*u]}function Ku(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/Ss(s*s+l*l),f=u*l,h=-u*s,v=e+f,c=t+h,d=r+f,m=n+h,p=(v+d)/2,g=(c+m)/2,y=d-v,_=m-c,b=y*y+_*_,S=i-a,w=v*m-d*c,T=(_<0?-1:1)*Ss(xs(0,S*S*b-w*w)),x=(w*_-y*T)/b,A=(-w*y-_*T)/b,C=(w*_+y*T)/b,D=(-w*y+_*T)/b,k=x-p,M=A-g,I=C-p,E=D-g;return k*k+M*M>I*I+E*E&&(x=C,A=D),{cx:x,cy:A,x0:-f,y0:-h,x1:x*(i/S-1),y1:A*(i/S-1)}}function nL(e){var t;if(U(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function iL(e,t){var r,n=xs(t.r,0),i=xs(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,v=!!t.clockwise,c=V0(u-l),d=c>zv&&c%zv;if(d>Lr&&(c=d),!(n>Lr))e.moveTo(f,h);else if(c>zv-Lr)e.moveTo(f+n*fo(l),h+n*la(l)),e.arc(f,h,n,l,u,!v),i>Lr&&(e.moveTo(f+i*fo(u),h+i*la(u)),e.arc(f,h,i,u,l,v));else{var m=void 0,p=void 0,g=void 0,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0,T=void 0,x=void 0,A=void 0,C=void 0,D=void 0,k=void 0,M=void 0,I=void 0,E=n*fo(l),N=n*la(l),z=i*fo(u),O=i*la(u),B=c>Lr;if(B){var G=t.cornerRadius;G&&(r=nL(G),m=r[0],p=r[1],g=r[2],y=r[3]);var V=V0(n-i)/2;if(_=an(V,g),b=an(V,y),S=an(V,m),w=an(V,p),A=T=xs(_,b),C=x=xs(S,w),(T>Lr||x>Lr)&&(D=n*fo(u),k=n*la(u),M=i*fo(l),I=i*la(l),c<G0)){var F=rL(E,N,M,I,D,k,z,O);if(F){var W=E-F[0],tt=N-F[1],bt=D-F[0],ie=k-F[1],ye=1/la(eL((W*bt+tt*ie)/(Ss(W*W+tt*tt)*Ss(bt*bt+ie*ie)))/2),Ot=Ss(F[0]*F[0]+F[1]*F[1]);A=an(T,(n-Ot)/(ye+1)),C=an(x,(i-Ot)/(ye-1))}}}if(!B)e.moveTo(f+E,h+N);else if(A>Lr){var Yt=an(g,A),te=an(y,A),nt=Ku(M,I,E,N,n,Yt,v),dt=Ku(D,k,z,O,n,te,v);e.moveTo(f+nt.cx+nt.x0,h+nt.cy+nt.y0),A<T&&Yt===te?e.arc(f+nt.cx,h+nt.cy,A,_e(nt.y0,nt.x0),_e(dt.y0,dt.x0),!v):(Yt>0&&e.arc(f+nt.cx,h+nt.cy,Yt,_e(nt.y0,nt.x0),_e(nt.y1,nt.x1),!v),e.arc(f,h,n,_e(nt.cy+nt.y1,nt.cx+nt.x1),_e(dt.cy+dt.y1,dt.cx+dt.x1),!v),te>0&&e.arc(f+dt.cx,h+dt.cy,te,_e(dt.y1,dt.x1),_e(dt.y0,dt.x0),!v))}else e.moveTo(f+E,h+N),e.arc(f,h,n,l,u,!v);if(!(i>Lr)||!B)e.lineTo(f+z,h+O);else if(C>Lr){var Yt=an(m,C),te=an(p,C),nt=Ku(z,O,D,k,i,-te,v),dt=Ku(E,N,M,I,i,-Yt,v);e.lineTo(f+nt.cx+nt.x0,h+nt.cy+nt.y0),C<x&&Yt===te?e.arc(f+nt.cx,h+nt.cy,C,_e(nt.y0,nt.x0),_e(dt.y0,dt.x0),!v):(te>0&&e.arc(f+nt.cx,h+nt.cy,te,_e(nt.y0,nt.x0),_e(nt.y1,nt.x1),!v),e.arc(f,h,i,_e(nt.cy+nt.y1,nt.cx+nt.x1),_e(dt.cy+dt.y1,dt.cx+dt.x1),v),Yt>0&&e.arc(f+dt.cx,h+dt.cy,Yt,_e(dt.y1,dt.x1),_e(dt.y0,dt.x0),!v))}else e.lineTo(f+z,h+O),e.arc(f,h,i,u,l,v)}e.closePath()}}}var aL=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),ti=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new aL},t.prototype.buildPath=function(r,n){iL(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(Lt);ti.prototype.type="sector";var oL=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Hv=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new oL},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t})(Lt);Hv.prototype.type="ring";function sL(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=e.length;v<c;v++)Xa(f,f,e[v]),qa(h,h,e[v]);Xa(f,f,n[0]),qa(h,h,n[1])}for(var v=0,c=e.length;v<c;v++){var d=e[v];if(r)l=e[v?v-1:c-1],u=e[(v+1)%c];else if(v===0||v===c-1){i.push(OC(e[v]));continue}else l=e[v-1],u=e[v+1];NC(a,u,l),ic(a,a,t);var m=ac(d,l),p=ac(d,u),g=m+p;g!==0&&(m/=g,p/=g),ic(o,a,-m),ic(s,a,p);var y=Mm([],d,o),_=Mm([],d,s);n&&(qa(y,y,f),Xa(y,y,h),qa(_,_,f),Xa(_,_,h)),i.push(y),i.push(_)}return r&&i.push(i.shift()),i}function W0(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=sL(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var lL=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Gv=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new lL},t.prototype.buildPath=function(r,n){W0(r,n,!0)},t})(Lt);Gv.prototype.type="polygon";var uL=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),Ts=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uL},t.prototype.buildPath=function(r,n){W0(r,n,!1)},t})(Lt);Ts.prototype.type="polyline";var fL={},hL=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),ei=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hL},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=i0(fL,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t})(Lt);ei.prototype.type="line";var ze=[],cL=(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 $0(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?Km:ve)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Km:ve)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Qm:Be)(e.x1,e.cpx1,e.x2,t),(r?Qm:Be)(e.y1,e.cpy1,e.y2,t)]}var Vv=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new cL},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,a),f==null||h==null?(v<1&&(uu(i,l,o,v,ze),l=ze[1],o=ze[2],uu(a,u,s,v,ze),u=ze[1],s=ze[2]),r.quadraticCurveTo(l,u,o,s)):(v<1&&(lu(i,l,f,o,v,ze),l=ze[1],f=ze[2],o=ze[3],lu(a,u,h,s,v,ze),u=ze[1],h=ze[2],s=ze[3]),r.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(r){return $0(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=$0(this.shape,r,!0);return zC(n,n)},t})(Lt);Vv.prototype.type="bezier-curve";var vL=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),ju=(function(e){It(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vL},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);r.moveTo(f*o+i,h*o+a),r.arc(i,a,o,s,l,!u)},t})(Lt);ju.prototype.type="arc";var dL=(function(e){It(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Lt.prototype.getBoundingRect.call(this)},t})(Lt),U0=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e})(),Y0=(function(e){It(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t})(U0),pL=(function(e){It(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(U0),Wv=Math.min,gL=Math.max,Qu=Math.abs,ua=[0,0],fa=[0,0],ue=Bm(),Ju=ue.minTv,tf=ue.maxTv,X0=(function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new at;for(var n=0;n<2;n++)this._axes[n]=new at;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);at.sub(i[0],n[1],n[0]),at.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r,n){var i=!0,a=!r;return r&&at.set(r,0,0),ue.reset(n,!a),!this._intersectCheckOneSide(this,t,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(t,this,a,-1)&&(i=!1,a)||!a&&!ue.negativeSize&&at.copy(r,i?ue.useDir?ue.dirMinTv:Ju:tf),i},e.prototype._intersectCheckOneSide=function(t,r,n,i){for(var a=!0,o=0;o<2;o++){var s=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,ua),t._getProjMinMaxOnAxis(o,r._corners,fa),ue.negativeSize||ua[1]<fa[0]||ua[0]>fa[1]){if(a=!1,ue.negativeSize||n)return a;var l=Qu(fa[0]-ua[1]),u=Qu(ua[0]-fa[1]);Wv(l,u)>tf.len()&&(l<u?at.scale(tf,s,-l*i):at.scale(tf,s,u*i))}else if(!n){var l=Qu(fa[0]-ua[1]),u=Qu(ua[0]-fa[1]);(ue.useDir||Wv(l,u)<Ju.len())&&((l<u||!ue.bidirectional)&&(at.scale(Ju,s,l*i),ue.useDir&&ue.calcDirMTV()),(l>=u||!ue.bidirectional)&&(at.scale(Ju,s,-u*i),ue.useDir&&ue.calcDirMTV()))}}return a},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(i)+a[t];s=Wv(f,s),l=gL(f,l)}n[0]=s+ue.touchThreshold,n[1]=l-ue.touchThreshold,ue.negativeSize=n[1]<n[0]},e})(),mL=[],yL=(function(e){It(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ut(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(mL)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t})(ms),_L=$t();function bL(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=Q(n.duration,200),f=Q(n.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),rt(h)&&(h=h(r,i)),rt(u)&&(u=u(r));var v={duration:u||0,delay:h,easing:f};return v}else return null}function $v(e,t,r,n,i,a,o){var s=!1,l;rt(i)?(o=a,a=i,i=null):Z(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var f=bL(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,d={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,d):t.animateTo(r,d)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Ae(e,t,r,n,i,a){$v("update",e,t,r,n,i,a)}function dr(e,t,r,n,i,a){$v("enter",e,t,r,n,i,a)}function Cs(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function ef(e,t,r,n,i,a){Cs(e)||$v("leave",e,t,r,n,i,a)}function q0(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),ef(e,{style:{opacity:0}},t,r,n)}function Ds(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||q0(i,t,r,n)}):q0(e,t,r,n)}function Uv(e){_L(e).oldStyle=e.style}var Yv={},ri=["x","y"],ho=["width","height"];function wL(e){return Lt.extend(e)}var SL=jM;function xL(e,t){return SL(e,t)}function kr(e,t){Yv[e]=t}function TL(e){if(Yv.hasOwnProperty(e))return Yv[e]}function Xv(e,t,r,n){var i=KM(e,t);return r&&(n==="center"&&(r=K0(r,i.getBoundingRect())),j0(i,r)),i}function Z0(e,t,r){var n=new Jn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(K0(t,a))}}});return n}function K0(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var CL=QM;function j0(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function As(e,t){return i0(e,e,{lineWidth:t}),e}function DL(e,t){return a0(e,e,t),e}var AL=oa;function ML(e,t){for(var r=pc([]);e&&e!==t;)Jo(r,e.getLocalTransform(),r),e=e.parent;return r}function qv(e,t,r){return t&&!Ee(t)&&(t=Yc.getLocalTransform(t)),r&&(t=ts([],t)),ar([],e,t)}function LL(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:jr(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:jr(2*t[4]/t[2]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=qv(a,t,r),jr(a[0])>jr(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Q0(e){return!e.isGroup}function kL(e){return e.shape!=null}function J0(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Q0(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return kL(o)&&(s.shape=pt(o.shape)),s}var a=n(e);t.traverse(function(o){if(Q0(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ae(o,l,r,_t(o).dataIndex)}}})}function IL(e,t){return K(e,function(r){var n=r[0];n=Ye(n,t.x),n=hs(n,t.x+t.width);var i=r[1];return i=Ye(i,t.y),i=hs(i,t.y+t.height),[n,i]})}function PL(e,t){var r=Ye(e.x,t.x),n=hs(e.x+e.width,t.x+t.width),i=Ye(e.y,t.y),a=hs(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Zv(e,t,r){var n=H({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Dt(i,r),new Jn(n)):Xv(e.replace("path://",""),n,r,"center")}function EL(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(t_(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function t_(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,f=o-i,h=s-a,v=Kv(f,h,l,u);if(RL(v))return!1;var c=e-i,d=t-a,m=Kv(c,d,l,u)/v;if(m<0||m>1)return!1;var p=Kv(c,d,f,h)/v;return!(p<0||p>1)}function Kv(e,t,r,n){return e*n-r*t}function RL(e){return e<=1e-6&&e>=-1e-6}function rf(e,t,r,n,i){return t==null||(Mt(t)?Rt[0]=Rt[1]=Rt[2]=Rt[3]=t:(Rt[0]=t[0],Rt[1]=t[1],Rt[2]=t[2],Rt[3]=t[3]),n&&(Rt[0]=Ye(0,Rt[0]),Rt[1]=Ye(0,Rt[1]),Rt[2]=Ye(0,Rt[2]),Rt[3]=Ye(0,Rt[3])),r&&(Rt[0]=-Rt[0],Rt[1]=-Rt[1],Rt[2]=-Rt[2],Rt[3]=-Rt[3]),e_(e,Rt,"x","width",3,1,i&&i[0]||0),e_(e,Rt,"y","height",0,2,i&&i[1]||0)),e}var Rt=[0,0,0,0];function e_(e,t,r,n,i,a,o){var s=t[a]+t[i],l=e[n];e[n]+=s,o=Ye(0,hs(o,l)),e[n]<o?(e[n]=o,e[r]+=t[i]>=0?-t[i]:t[a]>=0?l+t[a]:jr(s)>1e-8?(l-o)*t[i]/s:0):e[r]-=t[i]}function nf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Y(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&L(Vt(l),function(f){Ar(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=_t(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Dt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function jv(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function af(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)jv(e[r],t);else jv(e,t)}function Qv(e){return!e||jr(e[1])<of&&jr(e[2])<of||jr(e[0])<of&&jr(e[3])<of}var of=1e-5;function Ms(e,t){return e?ut.copy(e,t):t.clone()}function Jv(e,t){return t?Rm(e||bn(),t):void 0}function r_(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function OL(e){var t=-1/0,r=1/0;jv(e,function(a){n(a),n(a.getTextContent()),n(a.getTextGuideLine())});function n(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)i(a.states[o[s]]);i(a)}}function i(a){if(a){var o=a.z2;o>t&&(t=o),o<r&&(r=o)}}return r>t&&(r=t=0),{min:r,max:t}}function n_(e,t,r){i_(e,t,r,-1/0)}function i_(e,t,r,n){if(e.ignoreModelZ)return n;var i=e.getTextContent(),a=e.getTextGuideLine(),o=e.isGroup;if(o)for(var s=e.childrenRef(),l=0;l<s.length;l++)n=Ye(i_(s[l],t,r,n),n);else e.z=t,e.zlevel=r,n=Ye(e.z2||0,n);if(i&&(i.z=t,i.zlevel=r,isFinite(n)&&(i.z2=n+2)),a){var u=e.textGuideLineConfig;a.z=t,a.zlevel=r,isFinite(n)&&(a.z2=n+(u&&u.showAbove?1:-1))}return n}kr("circle",Zu),kr("ellipse",Fv),kr("sector",ti),kr("ring",Hv),kr("polygon",Gv),kr("polyline",Ts),kr("rect",qt),kr("line",ei),kr("bezierCurve",Vv),kr("arc",ju);const NL=Object.freeze(Object.defineProperty({__proto__:null,Arc:ju,BezierCurve:Vv,BoundingRect:ut,Circle:Zu,CompoundPath:dL,Ellipse:Fv,Group:le,Image:Jn,IncrementalDisplayable:yL,Line:ei,LinearGradient:Y0,OrientedBoundingRect:X0,Path:Lt,Point:at,Polygon:Gv,Polyline:Ts,RadialGradient:pL,Rect:qt,Ring:Hv,Sector:ti,Text:pe,WH:ho,XY:ri,applyTransform:qv,calcZ2Range:OL,clipPointsByRect:IL,clipRectByRect:PL,createIcon:Zv,ensureCopyRect:Ms,ensureCopyTransform:Jv,expandOrShrinkRect:rf,extendPath:xL,extendShape:wL,getShapeClass:TL,getTransform:ML,groupTransition:J0,initProps:dr,isBoundingRectAxisAligned:Qv,isElementRemoved:Cs,lineLineIntersect:t_,linePolygonIntersect:EL,makeImage:Z0,makePath:Xv,mergePath:CL,registerShape:kr,removeElement:ef,removeElementWithFadeOut:Ds,resizePath:j0,retrieveZInfo:r_,setTooltipConfig:nf,subPixelOptimize:AL,subPixelOptimizeLine:As,subPixelOptimizeRect:DL,transformDirection:LL,traverseElements:af,traverseUpdateZ:n_,updateProps:Ae},Symbol.toStringTag,{value:"Module"}));var sf={};function BL(e,t){for(var r=0;r<vr.length;r++){var n=vr[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function a_(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=rt(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<vr.length;u++){var f=vr[u],h=t[f];l[f]=Q(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function Ls(e,t,r,n){r=r||sf;for(var i=e instanceof pe,a=!1,o=0;o<zu.length;o++){var s=t[zu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new pe,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=a_(r,t),f=t.normal,h=!!f.getShallow("show"),v=ni(f,n&&n.normal,r,!1,!i);v.text=u.normal,i||e.setTextConfig(o_(f,r,!1));for(var o=0;o<vr.length;o++){var c=vr[o],s=t[c];if(s){var d=l.ensureState(c),m=!!Q(s.getShallow("show"),h);if(m!==h&&(d.ignore=!m),d.style=ni(s,n&&n[c],r,!0,!i),d.style.text=u[c],!i){var p=e.ensureState(c);p.textConfig=o_(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),r.enableTextSetter&&(lf(l).setLabelText=function(g){var y=a_(r,t,g);BL(l,y)})}else l&&(l.ignore=!0);e.dirty()}function ks(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vr.length;n++){var i=vr[n];r[i]=e.getModel([i,t])}return r}function ni(e,t,r,n,i){var a={};return FL(a,e,r,n,i),t&&H(a,t),a}function o_(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Q(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(n.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(n.layoutRect=t.layoutRect),n}function FL(e,t,r,n,i){r=r||sf;var a=t.ecModel,o=a&&a.option.textStyle,s=zL(t),l;if(s){l={};var u="richInheritPlainLabel",f=Q(t.get(u),a?a.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var v=t.getModel(["rich",h]);f_(l[h]={},v,o,t,f,r,n,i,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var m=e,p=t.get("minMargin");if(p!=null)p=Mt(p)?p/2:0,m.margin=[p,p,p,p],m.__marginType=co.minMargin;else{var g=t.get("textMargin");g!=null&&(m.margin=ec(g),m.__marginType=co.textMargin)}f_(e,t,o,null,null,r,n,i,!0,!1)}function zL(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||sf).rich;if(r){t=t||{};for(var n=Vt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var s_=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],l_=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],u_=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function f_(e,t,r,n,i,a,o,s,l,u){r=!o&&r||sf;var f=a&&a.inheritColor,h=t.getShallow("color"),v=t.getShallow("textBorderColor"),c=Q(t.getShallow("opacity"),r.opacity);(h==="inherit"||h==="auto")&&(f?h=f:h=null),(v==="inherit"||v==="auto")&&(f?v=f:v=null),s||(h=h||r.color,v=v||r.textBorderColor),h!=null&&(e.fill=h),v!=null&&(e.stroke=v);var d=Q(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var m=Q(t.getShallow("textBorderType"),r.textBorderType);m!=null&&(e.lineDash=m);var p=Q(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!o&&c==null&&!u&&(c=a&&a.defaultOpacity),c!=null&&(e.opacity=c),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var g=0;g<s_.length;g++){var y=s_[g],_=i!==!1&&n?zi(t.getShallow(y),n.getShallow(y),r[y]):Q(t.getShallow(y),r[y]);_!=null&&(e[y]=_)}for(var g=0;g<l_.length;g++){var y=l_[g],_=t.getShallow(y);_!=null&&(e[y]=_)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!l||!a.disableBox){for(var g=0;g<u_.length;g++){var y=u_[g],_=t.getShallow(y);_!=null&&(e[y]=_)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&f&&(e.backgroundColor=f),(e.borderColor==="auto"||e.borderColor==="inherit")&&f&&(e.borderColor=f)}}function HL(e,t){var r=t&&t.getModel("textStyle");return Ur([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var lf=$t();function GL(e,t,r,n){if(e){var i=lf(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}var co={minMargin:1,textMargin:2},VL=["textStyle","color"],td=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ed=new pe,WL=(function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(VL):null)},e.prototype.getFont=function(){return HL({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<td.length;n++)r[td[n]]=this.getShallow(td[n]);return ed.useStyle(r),ed.update(),ed.getBoundingRect()},e})(),h_=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],$L=gs(h_),UL=(function(){function e(){}return e.prototype.getLineStyle=function(t){return $L(this,t)},e})(),c_=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],YL=gs(c_),XL=(function(){function e(){}return e.prototype.getItemStyle=function(t,r){return YL(this,t,r)},e})(),Ut=(function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Tt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(pt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!it.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e})();ov(Ut),kA(Ut),$r(Ut,UL),$r(Ut,XL),$r(Ut,OA),$r(Ut,WL);var qL=Math.round(Math.random()*10);function uf(e){return[e||"",qL++].join("_")}function ZL(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Jr(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Jr(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function KL(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,h=u.noEntryList,v={};for(L(a,function(y){v[y]=!0});h.length;){var c=h.pop(),d=f[c],m=!!v[c];m&&(s.call(l,c,d.originalDeps.slice()),delete v[c]),L(d.successor,m?g:p)}L(v,function(){var y="";throw new Error(y)});function p(y){f[y].entryCount--,f[y].entryCount===0&&h.push(y)}function g(y){v[y]=!0,p(y)}};function r(a){var o={},s=[];return L(a,function(l){var u=n(o,l),f=u.originalDeps=t(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),L(h,function(v){St(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);St(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return L(a,function(l){St(o,l)>=0&&s.push(l)}),s}}function v_(e,t){return Tt(Tt({},e,!0),t,!0)}const jL={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},QL={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ff="ZH",rd="EN",vo=rd,hf={},nd={},d_=it.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||vo).toUpperCase();return e.indexOf(ff)>-1?ff:vo})():vo;function p_(e,t){e=e.toUpperCase(),nd[e]=new Ut(t),hf[e]=t}function JL(e){if(Y(e)){var t=hf[e.toUpperCase()]||{};return e===ff||e===rd?pt(t):Tt(pt(t),pt(hf[vo]),!1)}else return Tt(pt(e),pt(hf[vo]),!1)}function t2(e){return nd[e]}function e2(){return nd[vo]}p_(rd,jL),p_(ff,QL);var r2=null;function cf(){return r2}var id=1e3,ad=id*60,Is=ad*60,pr=Is*24,g_=pr*365,n2={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},vf={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},i2="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",df="{yyyy}-{MM}-{dd}",m_={year:"{yyyy}",month:"{yyyy}-{MM}",day:df,hour:df+" "+vf.hour,minute:df+" "+vf.minute,second:df+" "+vf.second,millisecond:i2},ha=["year","month","day","hour","minute","second","millisecond"],a2=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function o2(e){return!Y(e)&&!rt(e)?s2(e):e}function s2(e){e=e||{};var t={},r=!0;return L(ha,function(n){r&&(r=e[n]==null)}),L(ha,function(n,i){var a=e[n];t[n]={};for(var o=null,s=i;s>=0;s--){var l=ha[s],u=Z(a)&&!U(a)?a[l]:a,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):Y(u)?(o=u,f=[o]):(o==null?o=vf[n]:n2[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],r&&(f[1]="{primary|"+o+"}")),t[n][l]=f}}),t}function ii(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ps(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 l2(e){return e===Ps(e)}function u2(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pf(e,t,r,n){var i=ao(e),a=i[y_(r)](),o=i[sd(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[ld(r)](),u=i["get"+(r?"UTC":"")+"Day"](),f=i[ud(r)](),h=(f-1)%12+1,v=i[fd(r)](),c=i[hd(r)](),d=i[cd(r)](),m=f>=12?"pm":"am",p=m.toUpperCase(),g=n instanceof Ut?n:t2(n||d_)||e2(),y=g.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),S=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ii(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,ii(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ii(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ii(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,ii(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,ii(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,ii(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,ii(d,3)).replace(/{S}/g,d+"")}function f2(e,t,r,n,i){var a=null;if(Y(r))a=r;else if(rt(r)){var o={time:e.time,level:e.time.level},s=cf();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=r(e.value,t,o)}else{var l=e.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var f=gf(e.value,i);a=r[f][f][0]}}return pf(new Date(e.value),a,i,n)}function gf(e,t){var r=ao(e),n=r[sd(t)]()+1,i=r[ld(t)](),a=r[ud(t)](),o=r[fd(t)](),s=r[hd(t)](),l=r[cd(t)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,d=c&&n===1;return d?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function od(e,t,r){switch(t){case"year":e[__(r)](0);case"month":e[b_(r)](1);case"day":e[w_(r)](0);case"hour":e[S_(r)](0);case"minute":e[x_(r)](0);case"second":e[T_(r)](0)}return e}function y_(e){return e?"getUTCFullYear":"getFullYear"}function sd(e){return e?"getUTCMonth":"getMonth"}function ld(e){return e?"getUTCDate":"getDate"}function ud(e){return e?"getUTCHours":"getHours"}function fd(e){return e?"getUTCMinutes":"getMinutes"}function hd(e){return e?"getUTCSeconds":"getSeconds"}function cd(e){return e?"getUTCMilliseconds":"getMilliseconds"}function h2(e){return e?"setUTCFullYear":"setFullYear"}function __(e){return e?"setUTCMonth":"setMonth"}function b_(e){return e?"setUTCDate":"setDate"}function w_(e){return e?"setUTCHours":"setHours"}function S_(e){return e?"setUTCMinutes":"setMinutes"}function x_(e){return e?"setUTCSeconds":"setSeconds"}function T_(e){return e?"setUTCMilliseconds":"setMilliseconds"}function C_(e){if(!oA(e))return Y(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function D_(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var mf=ec;function vd(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Ur(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?ao(e):e;if(isNaN(+l)){if(s)return"-"}else return pf(l,n,r)}if(t==="ordinal")return Jh(e)?i(e):Mt(e)&&a(e)?e+"":"-";var u=Mu(e);return a(u)?C_(u):Jh(e)?i(e):typeof e=="boolean"?e+"":"-"}var A_=["a","b","c","d","e","f","g"],dd=function(e,t){return"{"+e+(t??"")+"}"};function M_(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=A_[a];e=e.replace(dd(o),dd(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(dd(A_[l],s),r?Ne(u):u)}return e}function c2(e,t){var r=Y(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ne(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ne(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ca(e,t){return t=t||"transparent",Y(e)?e:Z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function L_(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var yf={},pd={},gd=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,r){this._nonSeriesBoxMasterList=n(yf),this._normalMasterList=n(pd);function n(i,a){var o=[];return L(i,function(s,l){var u=s.create(t,r);o=o.concat(u||[])}),o}},e.prototype.update=function(t,r){L(this._normalMasterList,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,r){if(t==="matrix"||t==="calendar"){yf[t]=r;return}pd[t]=r},e.get=function(t){return pd[t]||yf[t]},e})();function v2(e){return!!yf[e]}var md={coord:1,coord2:2};function d2(e){k_.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var k_=ft();function p2(e){var t=e.getShallow("coord",!0),r=md.coord;if(t==null){var n=k_.get(e.type);n&&n.getCoord2&&(r=md.coord2,t=n.getCoord2(e))}return{coord:t,from:r}}var Cn={none:0,dataCoordSys:1,boxCoordSys:2};function g2(e,t){var r=e.getShallow("coordinateSystem"),n=e.getShallow("coordinateSystemUsage",!0),i=Cn.none;if(r){var a=e.mainType==="series";n==null&&(n=a?"data":"box"),n==="data"?(i=Cn.dataCoordSys,a||(i=Cn.none)):n==="box"&&(i=Cn.boxCoordSys,!a&&!v2(r)&&(i=Cn.none))}return{coordSysType:r,kind:i}}function m2(e){var t=e.targetModel,r=e.coordSysType,n=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=g2(t),o=a.kind,s=a.coordSysType;if(i&&o!==Cn.dataCoordSys&&(o=Cn.dataCoordSys,s=r),o===Cn.none||s!==r)return!1;var l=n(r,t);return l?(o===Cn.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var _f=L,y2=["left","right","top","bottom","width","height"],bf=[["width","left","right"],["height","top","bottom"]];function yd(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),v=h&&h.getBoundingRect(),c,d;if(e==="horizontal"){var m=f.width+(v?-v.x+f.x:0);c=a+m,c>n||l.newline?(a=0,c=m,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(v?-v.y+f.y:0);d=o+p,d>i||l.newline?(a+=s+r,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=c+r:o=d+r)})}var Es=yd;Qt(yd,"vertical"),Qt(yd,"horizontal");function _2(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function b2(e,t){var r=wf(e,t,{enableLayoutOnlyByCenter:!0}),n=e.getBoxLayoutParams(),i,a;if(r.type===Rs.point)a=r.refPoint,i=ai(n,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get("center"),s=U(o)?o:[o,o];i=ai(n,r.refContainer),a=r.boxCoordFrom===md.coord2?r.refPoint:[Wt(s[0],i.width)+i.x,Wt(s[1],i.height)+i.y]}return{viewRect:i,center:a}}function w2(e,t){var r=b2(e,t),n=r.viewRect,i=r.center,a=e.get("radius");U(a)||(a=[0,a]);var o=Wt(n.width,t.getWidth()),s=Wt(n.height,t.getHeight()),l=Math.min(o,s),u=Wt(a[0],l/2),f=Wt(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:f,viewRect:n}}function ai(e,t,r){r=mf(r||0);var n=t.width,i=t.height,a=Wt(e.left,n),o=Wt(e.top,i),s=Wt(e.right,n),l=Wt(e.bottom,i),u=Wt(e.width,n),f=Wt(e.height,i),h=r[2]+r[0],v=r[1]+r[3],c=e.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-v;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-f/2-r[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var d=new ut((t.x||0)+a+r[3],(t.y||0)+o+r[0],u,f);return d.margin=r,d}var Rs={rect:1,point:2};function wf(e,t,r){var n,i,a,o=e.boxCoordinateSystem,s;if(o){var l=p2(e),u=l.coord,f=l.from;if(o.dataToLayout){a=Rs.rect,s=f;var h=o.dataToLayout(u);n=h.contentRect||h.rect}else r&&r.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Rs.point,s=f,i=o.dataToPoint(u))}return a==null&&(a=Rs.rect),a===Rs.rect&&(n||(n={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),i=[n.x+n.width/2,n.y+n.height/2]),{type:a,refContainer:n,refPoint:i,boxCoordFrom:s}}function Os(e){var t=e.layoutMode||e.constructor.layoutMode;return Z(t)?t:t?{type:t}:null}function oi(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var i=o(bf[0],0),a=o(bf[1],1);l(bf[0],e,i),l(bf[1],e,a);function o(u,f){var h={},v=0,c={},d=0,m=2;if(_f(u,function(y){c[y]=e[y]}),_f(u,function(y){Ar(t,y)&&(h[y]=c[y]=t[y]),s(h,y)&&v++,s(c,y)&&d++}),n[f])return s(t,u[1])?c[u[2]]=null:s(t,u[2])&&(c[u[1]]=null),c;if(d===m||!v)return c;if(v>=m)return h;for(var p=0;p<u.length;p++){var g=u[p];if(!Ar(h,g)&&Ar(e,g)){h[g]=e[g];break}}return h}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,h){_f(u,function(v){f[v]=h[v]})}}function Ns(e){return S2({},e)}function S2(e,t){return t&&e&&_f(y2,function(r){Ar(t,r)&&(e[r]=t[r])}),e}var x2=$t(),kt=(function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=uf("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Ns(r):{},o=n.getTheme();Tt(r,o.get(this.mainType)),Tt(r,this.getDefaultOption()),i&&oi(r,a,i)},t.prototype.mergeOption=function(r,n){Tt(this.option,r,!0);var i=Os(this);i&&oi(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!AA(r))return r.defaultOption;var n=x2(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Tt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return ps(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){return _2(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=(function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0})(),t})(Ut);zy(kt,Ut),Lu(kt),ZL(kt),KL(kt,T2);function T2(e){var t=[];return L(kt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=K(t,function(r){return Jr(r).main}),e!=="dataset"&&St(t,"dataset")<=0&&t.unshift("dataset"),t}var q={color:{},darkColor:{},size:{}},Zt=q.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};H(Zt,{primary:Zt.neutral80,secondary:Zt.neutral70,tertiary:Zt.neutral60,quaternary:Zt.neutral50,disabled:Zt.neutral20,border:Zt.neutral30,borderTint:Zt.neutral20,borderShade:Zt.neutral40,background:Zt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Zt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Zt.neutral70,axisLineTint:Zt.neutral40,axisTick:Zt.neutral70,axisTickMinor:Zt.neutral60,axisLabel:Zt.neutral70,axisSplitLine:Zt.neutral15,axisMinorSplitLine:Zt.neutral05});for(var va in Zt)if(Zt.hasOwnProperty(va)){var I_=Zt[va];va==="theme"?q.darkColor.theme=Zt.theme.slice():va==="highlight"?q.darkColor.highlight="rgba(255,231,130,0.4)":va.indexOf("accent")===0?q.darkColor[va]=Lc(I_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):q.darkColor[va]=Lc(I_,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var P_="";typeof navigator<"u"&&(P_=navigator.platform||"");var po="rgba(0, 0, 0, 0.2)",E_=q.color.theme[0],C2=Lc(E_,null,null,.9);const D2={darkMode:"auto",colorBy:"series",color:q.color.theme,gradientColor:[C2,E_],aria:{decal:{decals:[{color:po,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:po,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:po,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:po,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:po,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:po,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:P_.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 R_=ft(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xe="original",be="arrayRows",gr="objectRows",Ir="keyedColumns",si="typedArray",O_="unknown",on="column",da="row",ge={Must:1,Might:2,Not:3},N_=$t();function A2(e){N_(e).datasetMap=ft()}function M2(e,t,r){var n={},i=_d(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=N_(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,f,h;e=e.slice(),L(e,function(m,p){var g=Z(m)?m:e[p]={name:m};g.type==="ordinal"&&f==null&&(f=p,h=d(g)),n[g.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});L(e,function(m,p){var g=m.name,y=d(m);if(f==null){var _=v.valueWayDim;c(n[g],_,y),c(o,_,y),v.valueWayDim+=y}else if(f===p)c(n[g],0,y),c(a,0,y);else{var _=v.categoryWayDim;c(n[g],_,y),c(o,_,y),v.categoryWayDim+=y}});function c(m,p,g){for(var y=0;y<g;y++)m.push(p+y)}function d(m){var p=m.dimsDef;return p?p.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function L2(e,t,r){var n={},i=_d(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===gr||a===Ir)&&L(o,function(f,h){(Z(f)?f.name:f)==="name"&&(s=h)});var l=(function(){for(var f={},h={},v=[],c=0,d=Math.min(5,r);c<d;c++){var m=F_(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);v.push(m);var p=m===ge.Not;if(p&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!p&&v[f.n]===ge.Not)&&(f.n=c),g(f)&&v[f.n]!==ge.Not)return f;p||(m===ge.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(h)?h:null})();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function _d(e){var t=e.get("data",!0);if(!t)return ps(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},ur).models[0]}function k2(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:ps(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},ur).models}function B_(e,t){return F_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function F_(e,t,r,n,i,a){var o,s=5;if(Re(e))return ge.Not;var l,u;if(n){var f=n[a];Z(f)?(l=f.name,u=f.type):Y(f)&&(l=f)}if(u!=null)return u==="ordinal"?ge.Must:ge.Not;if(t===be){var h=e;if(r===da){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=b(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var d=h[i+c];if(d&&(o=b(d[a]))!=null)return o}}else if(t===gr){var m=e;if(!l)return ge.Not;for(var c=0;c<m.length&&c<s;c++){var p=m[c];if(p&&(o=b(p[l]))!=null)return o}}else if(t===Ir){var g=e;if(!l)return ge.Not;var v=g[l];if(!v||Re(v))return ge.Not;for(var c=0;c<v.length&&c<s;c++)if((o=b(v[c]))!=null)return o}else if(t===Xe)for(var y=e,c=0;c<y.length&&c<s;c++){var p=y[c],_=cs(p);if(!U(_))return ge.Not;if((o=b(_[a]))!=null)return o}function b(S){var w=Y(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return w?ge.Might:ge.Not;if(w&&S!=="-")return ge.Must}return ge.Not}var I2=ft();function P2(e,t,r){var n=I2.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var z_=$t();$t();var bd=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Ce(this.get("color",!0)),a=this.get("colorLayer",!0);return R2(this,z_,i,a,t,r,n)},e.prototype.clearColorPalette=function(){O2(this,z_)},e})();function E2(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function R2(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?r:E2(n,o);if(f=f||r,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function O2(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sf,Bs,H_,G_="\0_ec_inner",N2=1,wd=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ut(a),this._locale=new Ut(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=$_(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,$_(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?H_(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&L(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ft(),u=n&&n.replaceMergeMainTypeMap;A2(this),L(r,function(h,v){h!=null&&(kt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?pt(h):Tt(i[v],h,!0))}),u&&u.each(function(h,v){kt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(h){var v=P2(this,h,Ce(r[h])),c=a.get(h),d=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",m=cA(c,v,d);_A(m,h,kt),i[h]=null,a.set(h,null),o.set(h,0);var p=[],g=[],y=0,_;L(m,function(b,S){var w=b.existing,T=b.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var x=h==="series",A=kt.getClass(h,b.keyInfo.subType,!x);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===A)w.name=b.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var C=H({componentIndex:S},b.keyInfo);w=new A(T,this,this,C),H(w,C),b.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(p.push(w.option),g.push(w),y++):(p.push(void 0),g.push(void 0))},this),i[h]=p,a.set(h,g),o.set(h,y),h==="series"&&Sf(this)}this._seriesIndices||Sf(this)},t.prototype.getOption=function(){var r=pt(this.option);return L(r,function(n,i){if(kt.hasClass(i)){for(var a=Ce(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!ds(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[G_],r},t.prototype.setTheme=function(r){this._theme=new Ut(r),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],L(Ce(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=V_("id",a,s):o!=null?l=V_("name",o,s):l=se(s,function(u){return!!u}),W_(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):se(this._componentsMap.get(i),function(u){return!!u});return l(W_(o,r));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return r.filter?se(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(rt(r)){var o=n,s=r;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var d=h[c];d&&s.call(o,v,d,d.componentIndex)}})}else for(var l=Y(r)?a.get(r):Z(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Qr(r,null);return se(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return se(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return se(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Bs(this),L(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){L(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Bs(this),L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return L(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Bs(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Bs(this);var i=[];L(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=ft(i)},t.prototype.restoreData=function(r){Sf(this);var n=this._componentsMap,i=[];n.each(function(a,o){kt.hasClass(o)&&i.push(o)}),kt.topologicalTravel(i,kt.getAllClassMainTypes(),function(a){L(n.get(a),function(o){o&&(a!=="series"||!B2(o,r))&&o.restoreData()})})},t.internalField=(function(){Sf=function(r){var n=r._seriesIndices=[];L(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=ft(n)},Bs=function(r){},H_=function(r,n){r.option={},r.option[G_]=N2,r._componentsMap=ft({series:[]}),r._componentsCount=ft();var i=n.aria;Z(i)&&i.enabled==null&&(i.enabled=!0),F2(n,r._theme.option),Tt(n,D2,!1),r._mergeOption(n,null)}})(),t})(Ut);function B2(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function F2(e,t){var r=e.color&&!e.colorLayer;L(t,function(n,i){i==="colorLayer"&&r||i==="color"&&e.color||kt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Tt(e[i],n,!1):pt(n):e[i]==null&&(e[i]=n))})}function V_(e,t,r){if(U(t)){var n=ft();return L(t,function(a){if(a!=null){var o=Qr(a,null);o!=null&&n.set(a,!0)}}),se(r,function(a){return a&&n.get(a[e])})}else{var i=Qr(t,null);return se(r,function(a){return a&&i!=null&&a[e]===i})}}function W_(e,t){return t.hasOwnProperty("subType")?se(e,function(r){return r&&r.subType===t.subType}):e}function $_(e){var t=ft();return e&&L(Ce(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}$r(wd,bd);var z2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],U_=(function(){function e(t){L(z2,function(r){this[r]=At(t[r],t)},this)}return e})(),H2=/^(min|max)?(.+)$/,G2=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(L(Ce(t.series),function(o){o&&o.data&&Re(o.data)&&rc(o.data)}),L(Ce(t.dataset),function(o){o&&o.source&&Re(o.source)&&rc(o.source)})),t=pt(t);var i=this._optionBackup,a=V2(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],pt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=pt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)W2(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!U2(o,this._currentMediaIndices)&&(s=K(o,function(f){return pt(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},e})();function V2(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,f=!!e.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(e.options=e.media=null),a=e),f&&U(u)&&L(u,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),L(l,function(c){return v(c)}),L(n,function(c){return v(c.option)});function v(c){L(t,function(d){d(c,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function W2(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return L(e,function(a,o){var s=o.match(H2);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();$2(n[u],a,l)||(i=!1)}}),i}function $2(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function U2(e,t){return e.join(",")===t.join(",")}var Pr=L,Fs=Z,Y_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sd(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Y_.length;r<n;r++){var i=Y_[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?Tt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?Tt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function we(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Dt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function zs(e){we(e,"itemStyle"),we(e,"lineStyle"),we(e,"areaStyle"),we(e,"label"),we(e,"labelLine"),we(e,"upperLabel"),we(e,"edgeLabel")}function Jt(e,t){var r=Fs(e)&&e[t],n=Fs(r)&&r.textStyle;if(n)for(var i=0,a=Oy.length;i<a;i++){var o=Oy[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function mr(e){e&&(zs(e),Jt(e,"label"),e.emphasis&&Jt(e.emphasis,"label"))}function Y2(e){if(Fs(e)){Sd(e),zs(e),Jt(e,"label"),Jt(e,"upperLabel"),Jt(e,"edgeLabel"),e.emphasis&&(Jt(e.emphasis,"label"),Jt(e.emphasis,"upperLabel"),Jt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Sd(t),mr(t));var r=e.markLine;r&&(Sd(r),mr(r));var n=e.markArea;n&&mr(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Re(a))for(var o=0;o<a.length;o++)mr(a[o]);L(e.categories,function(u){zs(u)})}if(i&&!Re(i))for(var o=0;o<i.length;o++)mr(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)mr(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(mr(l[o][0]),mr(l[o][1])):mr(l[o]);e.type==="gauge"?(Jt(e,"axisLabel"),Jt(e,"title"),Jt(e,"detail")):e.type==="treemap"?(we(e.breadcrumb,"itemStyle"),L(e.levels,function(u){zs(u)})):e.type==="tree"&&zs(e.leaves)}}function Dn(e){return U(e)?e:e?[e]:[]}function X_(e){return(U(e)?e[0]:e)||{}}function X2(e,t){Pr(Dn(e.series),function(n){Fs(n)&&Y2(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Pr(r,function(n){Pr(Dn(e[n]),function(i){i&&(Jt(i,"axisLabel"),Jt(i.axisPointer,"label"))})}),Pr(Dn(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Jt(i,"axisLabel"),Jt(i&&i.axisPointer,"label")}),Pr(Dn(e.calendar),function(n){we(n,"itemStyle"),Jt(n,"dayLabel"),Jt(n,"monthLabel"),Jt(n,"yearLabel")}),Pr(Dn(e.radar),function(n){Jt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Pr(Dn(e.geo),function(n){Fs(n)&&(mr(n),Pr(Dn(n.regions),function(i){mr(i)}))}),Pr(Dn(e.timeline),function(n){mr(n),we(n,"label"),we(n,"itemStyle"),we(n,"controlStyle",!0);var i=n.data;U(i)&&L(i,function(a){Z(a)&&(we(a,"label"),we(a,"itemStyle"))})}),Pr(Dn(e.toolbox),function(n){we(n,"iconStyle"),Pr(n.feature,function(i){we(i,"iconStyle")})}),Jt(X_(e.axisPointer),"label"),Jt(X_(e.tooltip).axisPointer,"label")}function q2(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Z2(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function q_(e){e&&L(K2,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var K2=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],j2=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Hs(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<xd.length;r++){var n=xd[r][1],i=xd[r][0];t[n]!=null&&(t[i]=t[n])}}function Z_(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function K_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Q2(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function j_(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&j_(e[r].children,t)}function Q_(e,t){X2(e,t),e.series=Ce(e.series),L(e.series,function(r){if(Z(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),Z_(r.label);var i=r.data;if(i&&!Re(i))for(var a=0;a<i.length;a++)Z_(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=q2(r,"pointer.color");o!=null&&Z2(r,"itemStyle.color",o)}else if(n==="bar"){Hs(r),Hs(r.backgroundStyle),Hs(r.emphasis);var i=r.data;if(i&&!Re(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Hs(i[a]),Hs(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),K_(r),j_(r.data,K_)}else n==="graph"||n==="sankey"?Q2(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Dt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),q_(r)}}),e.dataRange&&(e.visualMap=e.dataRange),L(j2,function(r){var n=e[r];n&&(U(n)||(n=[n]),L(n,function(i){q_(i)}))})}function J2(e){var t=ft();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.push(o)}}),t.each(function(r){if(r.length!==0){var n=r[0].seriesModel,i=n.get("stackOrder")||"seriesAsc";i==="seriesDesc"&&r.reverse(),L(r,function(a,o){a.data.setCalculationInfo("stackedOnSeries",o>0?r[o-1].seriesModel:null)}),tk(r)}})}function tk(e){L(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(t.stackedDimension,h);if(isNaN(v))return i;var c,d;s?d=o.getRawIndex(h):c=o.get(t.stackedByDimension,h);for(var m=NaN,p=r-1;p>=0;p--){var g=e[p];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,c)),d>=0){var y=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&v>=0&&y>0||l==="samesign"&&v<=0&&y<0){v=nA(v,y),m=y;break}}}return n[0]=v,n[1]=m,n})})}var xf=(function(){function e(t){this.data=t.data||(t.sourceFormat===Ir?{}:[]),this.sourceFormat=t.sourceFormat||O_,this.seriesLayoutBy=t.seriesLayoutBy||on,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&B_(this,n)===ge.Must&&(i.type="ordinal")}}return e})();function Td(e){return e instanceof xf}function Cd(e,t,r){r=r||t1(e);var n=t.seriesLayoutBy,i=rk(e,r,n,t.sourceHeader,t.dimensions),a=new xf({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:pt(t)});return a}function J_(e){return new xf({data:e,sourceFormat:Re(e)?si:Xe})}function ek(e){return new xf({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:pt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function t1(e){var t=O_;if(Re(e))t=si;else if(U(e)){e.length===0&&(t=be);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(U(i)||Re(i)){t=be;break}else if(Z(i)){t=gr;break}}}}else if(Z(e)){for(var a in e)if(Ar(e,a)&&Ee(e[a])){t=Ir;break}}return t}function rk(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:e1(i),startIndex:o,dimensionsDetectedCount:a};if(t===be){var s=e;n==="auto"||n==null?r1(function(u){u!=null&&u!=="-"&&(Y(u)?o==null&&(o=1):o=0)},r,s,10):o=Mt(n)?n:n?1:0,!i&&o===1&&(i=[],r1(function(u,f){i[f]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===da?s.length:s[0]?s[0].length:null}else if(t===gr)i||(i=nk(e));else if(t===Ir)i||(i=[],L(e,function(u,f){i.push(f)}));else if(t===Xe){var l=cs(e[0]);a=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:e1(i),dimensionsDetectedCount:a}}function nk(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Vt(r)}function e1(e){if(e){var t=ft();return K(e,function(r,n){r=Z(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function r1(e,t,r,n){if(t===da)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function n1(e){var t=e.sourceFormat;return t===gr||t===Ir}var pa,ga,ma,ya,i1,a1,o1=(function(){function e(t,r){var n=Td(t)?t:J_(t);this._source=n;var i=this._data=n.data,a=n.sourceFormat;n.seriesLayoutBy,a===si&&(this._offset=0,this._dimSize=r,this._data=i),a1(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;a1=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=i1[Ad(u,f)];if(H(o,c),u===si)o.getItem=r,o.count=i,o.fillStorage=n;else{var d=l1(u,f);o.getItem=At(d,null,s,h,v);var m=f1(u,f);o.count=At(m,null,s,h,v)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],d=c[0]==null?1/0:c[0],m=c[1]==null?-1/0:c[1],p=s-o,g=l[v],y=0;y<p;y++){var _=f[y*h+v];g[o+y]=_,_<d&&(d=_),_>m&&(m=_)}c[0]=d,c[1]=m}},i=function(){return this._data?this._data.length/this._dimSize:0};i1=(t={},t[be+"_"+on]={pure:!0,appendData:a},t[be+"_"+da]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[gr]={pure:!0,appendData:a},t[Ir]={pure:!0,appendData:function(o){var s=this._data;L(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Xe]={appendData:a},t[si]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),e})(),Tf=function(e){U(e)||Py("series.data or dataset.source must be an array.")};pa={},pa[be+"_"+on]=Tf,pa[be+"_"+da]=Tf,pa[gr]=Tf,pa[Ir]=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].name;n==null&&Py("dimension name must not be null/undefined.")}},pa[Xe]=Tf;var s1=function(e,t,r,n){return e[n]},ik=(ga={},ga[be+"_"+on]=function(e,t,r,n){return e[n+t]},ga[be+"_"+da]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},ga[gr]=s1,ga[Ir]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?e[s]:null;a[o]=l?l[n]:null}return a},ga[Xe]=s1,ga);function l1(e,t){var r=ik[Ad(e,t)];return r}var u1=function(e,t,r){return e.length},ak=(ma={},ma[be+"_"+on]=function(e,t,r){return Math.max(0,e.length-t)},ma[be+"_"+da]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},ma[gr]=u1,ma[Ir]=function(e,t,r){var n=r[0].name,i=n!=null?e[n]:null;return i?i.length:0},ma[Xe]=u1,ma);function f1(e,t){var r=ak[Ad(e,t)];return r}var Dd=function(e,t,r){return e[t]},ok=(ya={},ya[be]=Dd,ya[gr]=function(e,t,r){return e[r]},ya[Ir]=Dd,ya[Xe]=function(e,t,r){var n=cs(e);return n instanceof Array?n[t]:n},ya[si]=Dd,ya);function h1(e){var t=ok[e];return t}function Ad(e,t){return e===be?e+"_"+t:e}function go(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return h1(a)(n,o,s)}else{var l=n;return a===Xe&&(l=cs(n)),l}}}}var sk=/\{@(.+?)\}/g,lk=(function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&U(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(rt(a))return l.status=r,l.dimensionIndex=i,a(l);if(Y(a)){var f=M_(a,l);return f.replace(sk,function(h,v){var c=v.length,d=v;d.charAt(0)==="["&&d.charAt(c-1)==="]"&&(d=+d.slice(1,c-1));var m=go(s,t,d);if(o&&U(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(m=o.interpolatedValue[p])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return go(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e})();function c1(e){var t,r;return Z(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Gs(e){return new uk(e)}var uk=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(y){return!(y>=1)&&(y=1),y}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,d=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<d)){var m=this._progress;if(U(m))for(var p=0;p<m.length;p++)this._doProgress(m[p],c,d,l,u);else this._doProgress(m,c,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,a){v1.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:v1.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),v1=(function(){var e,t,r,n,i,a={reset:function(l,u,f,h){t=l,e=u,r=f,n=h,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}})();function Cf(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Mt(e)&&e!=null&&e!=="-"&&(e=+ao(e)),e==null||e===""?NaN:Number(e))}ft({number:function(e){return parseFloat(e)},time:function(e){return+ao(e)},trim:function(e){return Y(e)?Ur(e):e}});var fk=(function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Mt(t)?t:Mu(t),i=Mt(r)?r:Mu(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Y(t),l=Y(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e})(),hk=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Cf(t,r)},e})();function ck(e,t){var r=new hk,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==on&&Fe(o);var s=[],l={},u=e.dimensionsDefine;if(u)L(u,function(m,p){var g=m.name,y={index:p,name:g,displayName:m.displayName};if(s.push(y),g!=null){var _="";Ar(l,g)&&Fe(_),l[g]=y}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var h=l1(i,on);t.__isBuiltIn&&(r.getRawDataItem=function(m){return h(n,a,s,m)},r.getRawData=At(vk,null,e)),r.cloneRawData=At(dk,null,e);var v=f1(i,on);r.count=At(v,null,n,a,s);var c=h1(i);r.retrieveValue=function(m,p){var g=h(n,a,s,m);return d(g,p)};var d=r.retrieveValueFromItem=function(m,p){if(m!=null){var g=s[p];if(g)return c(m,p,g.name)}};return r.getDimensionInfo=At(pk,null,s,l),r.cloneAllDimensionInfo=At(gk,null,s),r}function vk(e){var t=e.sourceFormat;if(!Md(t)){var r="";Fe(r)}return e.data}function dk(e){var t=e.sourceFormat,r=e.data;if(!Md(t)){var n="";Fe(n)}if(t===be){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===gr){for(var i=[],a=0,o=r.length;a<o;a++)i.push(H({},r[a]));return i}}function pk(e,t,r){if(r!=null){if(Mt(r)||!isNaN(r)&&!Ar(t,r))return e[r];if(Ar(t,r))return t[r]}}function gk(e){return pt(e)}var d1=ft();function mk(e){e=pt(e);var t=e.type,r="";t||Fe(r);var n=t.split(":");n.length!==2&&Fe(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,d1.set(t,e)}function yk(e,t,r){var n=Ce(e),i=n.length,a="";i||Fe(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=_k(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function _k(e,t,r,n){var i="";t.length||Fe(i),Z(e)||Fe(i);var a=e.type,o=d1.get(a);o||Fe(i);var s=K(t,function(u){return ck(u,o)}),l=Ce(o.transform({upstream:s[0],upstreamList:s,config:pt(e.config)}));return K(l,function(u,f){var h="";Z(u)||Fe(h),u.data||Fe(h);var v=t1(u.data);Md(v)||Fe(h);var c,d=t[0];if(d&&f===0&&!u.dimensions){var m=d.startIndex;m&&(u.data=d.data.slice(0,m).concat(u.data)),c={seriesLayoutBy:on,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else c={seriesLayoutBy:on,sourceHeader:0,dimensions:u.dimensions};return Cd(u.data,c,null)})}function Md(e){return e===be||e===gr}var Df="undefined",bk=typeof Uint32Array===Df?Array:Uint32Array,wk=typeof Uint16Array===Df?Array:Uint16Array,p1=typeof Int32Array===Df?Array:Int32Array,g1=typeof Float64Array===Df?Array:Float64Array,m1={float:g1,int:p1,ordinal:Array,number:Array,time:g1},Ld;function mo(e){return e>65535?bk:wk}function yo(){return[1/0,-1/0]}function Sk(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function y1(e,t,r,n,i){var a=m1[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var kd=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ft()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Ld[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],n1(i),this._dimensions=K(r,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new m1[r||"float"](this._rawCount),this._rawExtent[a]=yo(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=yo());for(var l=a[t],u=o;u<s;u++){var f=n[u]=r.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var f=i[u];y1(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,d=0;d<a;d++){var f=i[d],m=Ld.arrayRows.call(this,t[c]||h,f.property,c,d);n[d][v]=m;var p=o[d];m<p[0]&&(p[0]=m),m>p[1]&&(p[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=K(o,function(y){return y.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=yo()),y1(a,f,h.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var v=[],c=t;c<r;c++){v=i.getItem(c,v);for(var d=0;d<s;d++){var m=a[d],p=this._dimValueGetter(v,u[d],c,d);m[c]=p;var g=l[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=mo(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=mo(n._rawCount),o=new a(i),s=[],l=t.length,u=0,f=t[0],h=n._chunks,v=0;v<i;v++){var c=void 0,d=n.getRawIndex(v);if(l===0)c=r(v);else if(l===1){var m=h[f][d];c=r(m,v)}else{for(var p=0;p<l;p++)s[p]=h[t[p]][d];s[p]=v,c=r.apply(null,s)}c&&(o[u++]=d)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=Vt(t),a=i.length;if(!a)return this;var o=r.count(),s=mo(r._rawCount),l=new s(o),u=0,f=i[0],h=t[f][0],v=t[f][1],c=r._chunks,d=!1;if(!r._indices){var m=0;if(a===1){for(var p=c[i[0]],g=0;g<n;g++){var y=p[g];(y>=h&&y<=v||isNaN(y))&&(l[u++]=m),m++}d=!0}else if(a===2){for(var p=c[i[0]],_=c[i[1]],b=t[i[1]][0],S=t[i[1]][1],g=0;g<n;g++){var y=p[g],w=_[g];(y>=h&&y<=v||isNaN(y))&&(w>=b&&w<=S||isNaN(w))&&(l[u++]=m),m++}d=!0}}if(!d)if(a===1)for(var g=0;g<o;g++){var T=r.getRawIndex(g),y=c[i[0]][T];(y>=h&&y<=v||isNaN(y))&&(l[u++]=T)}else for(var g=0;g<o;g++){for(var x=!0,T=r.getRawIndex(g),A=0;A<a;A++){var C=i[A],y=c[C][T];(y<t[C][0]||y>t[C][1])&&(x=!1)}x&&(l[u++]=r.getRawIndex(g))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<r.length;f++)u[r[f]]=yo();for(var h=0;h<s;h++){for(var v=t.getRawIndex(h),c=0;c<o;c++)l[c]=i[r[c]][v];l[o]=h;var d=n&&n.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var m=r[f],p=d[f],g=u[m],y=i[m];y&&(y[v]=p),p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,h,v,c=new(mo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var d=1;d<o-1;d+=l){for(var m=Math.min(d+l,o-1),p=Math.min(d+l*2,o),g=(p+m)/2,y=0,_=m;_<p;_++){var b=this.getRawIndex(_),S=a[b];isNaN(S)||(y+=S)}y/=p-m;var w=d,T=Math.min(d+l,o),x=d-1,A=a[u];f=-1,v=w;for(var C=-1,D=0,_=w;_<T;_++){var b=this.getRawIndex(_),S=a[b];if(isNaN(S)){D++,C<0&&(C=b);continue}h=Math.abs((x-g)*(S-A)-(x-_)*(y-A)),h>f&&(f=h,v=b)}D>0&&D<T-w&&(c[s++]=Math.min(C,v),v=Math.max(C,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(t,r){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/r),o=i[t],s=this.count(),l=new(mo(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,d=o[this.getRawIndex(c)],m=a;f+a>s&&(m=s-f);for(var p=0;p<m;p++){var g=this.getRawIndex(f+p),y=o[g];y<v&&(v=y,h=f+p),y>d&&(d=y,c=f+p)}var _=this.getRawIndex(h),b=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=b):(l[u++]=b,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],f=this.count(),h=a._rawExtent[t]=yo(),v=new(mo(this._rawCount))(Math.ceil(f/l)),c=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var m=0;m<l;m++){var p=this.getRawIndex(d+m);s[m]=u[p]}var g=n(s),y=this.getRawIndex(Math.min(d+i(s,g)||0,f-1));u[y]=g,g<h[0]&&(h[0]=g),g>h[1]&&(h[1]=g),v[c++]=y}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=yo();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=r[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Un(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Sk(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=pt(this._extent),t._rawExtent=pt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(r,n,i,a){return Cf(r[a],this._dimensions[a])}Ld={arrayRows:t,objectRows:function(r,n,i,a){return Cf(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Cf(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}})(),e})(),xk=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(Af(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=Re(s)?si:Xe,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=Q(h.seriesLayoutBy,v.seriesLayoutBy)||null,d=Q(h.sourceHeader,v.sourceHeader),m=Q(h.dimensions,v.dimensions),p=c!==v.seriesLayoutBy||!!d!=!!v.sourceHeader||m;i=p?[Cd(s,{seriesLayoutBy:c,sourceHeader:d,dimensions:m},l)]:[]}else{var g=t;if(n){var y=this._applyTransform(r);i=y.sourceList,a=y.upstreamSignList}else{var _=g.get("source",!0);i=[Cd(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&_1(a)}var o,s=[],l=[];return L(t,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&_1(h),s.push(f),l.push(u._getVersionSign())}),n?o=yk(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[ek(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Af(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new kd,s.initData(new o1(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Af(t)){var r=_d(t);return r?[r.getSourceManager()]:[]}else return K(k2(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Af(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e})();function Af(e){return e.mainType==="series"}function _1(e){throw new Error(e)}var Tk="line-height:1";function b1(e){var t=e.lineHeight;return t==null?Tk:"line-height:"+Ne(t+"")+"px"}function w1(e,t){var r=e.color||q.color.tertiary,n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||q.color.secondary,o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ne(n+"")+"px;color:"+Ne(r)+";font-weight:"+Ne(i+""),valueStyle:"font-size:"+Ne(o+"")+"px;color:"+Ne(a)+";font-weight:"+Ne(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Ck=[0,10,20,30],Dk=["",`
|
|
59
53
|
`,`
|
|
60
54
|
|
|
61
55
|
`,`
|
|
62
56
|
|
|
63
57
|
|
|
64
|
-
`];function Ws(t,e){return e.type=t,e}function Md(t){return t.type==="section"}function Sb(t){return Md(t)?c2:v2}function xb(t){if(Md(t)){var e=0,r=t.blocks.length,n=r>1||r>0&&!t.noHeader;return A(t.blocks,function(i){var a=xb(i);a>=e&&(e=a+ +(n&&(!a||Md(i)&&!i.noHeader)))}),e}return 0}function c2(t,e,r,n){var i=e.noHeader,a=d2(xb(e)),o=[],s=e.blocks||[];K(!s||W(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Mr(u,l)){var f=new ZL(u[l],null);s.sort(function(m,p){return f.evaluate(m.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(m,p){var g=e.valueFormatter,y=Sb(m)(g?V(V({},t),{valueFormatter:g}):t,m,p>0?a.html:0,n);y!=null&&o.push(y)});var h=t.renderMode==="richText"?o.join(a.richText):Ld(n,o.join(""),i?r:a.html);if(i)return h;var c=ud(e.header,"ordinal",t.useUTC),v=wb(n,t.renderMode).nameStyle,d=bb(n);return t.renderMode==="richText"?Cb(t,c,v)+a.richText+h:Ld(n,'<div style="'+v+";"+d+';">'+Ot(c)+"</div>"+h,r)}function v2(t,e,r,n){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(b){return b=W(b)?b:[b],Z(b,function(w,S){return ud(w,W(v)?v[S]:v,u)})};if(!(a&&o)){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||X.color.secondary,i),c=a?"":ud(l,"ordinal",u),v=e.valueType,d=o?[]:f(e.value,e.dataIndex),m=!s||!a,p=!s&&a,g=wb(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":Cb(t,c,y))+(o?"":m2(t,d,m,p,_)):Ld(n,(s?"":h)+(a?"":p2(c,!s,y))+(o?"":g2(d,m,p,_)),r)}}function Tb(t,e,r,n,i,a){if(t){var o=Sb(t),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function d2(t){return{html:f2[t],richText:h2[t]}}function Ld(t,e,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=bb(t);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function p2(t,e,r){var n=e?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ot(t)+"</span>"}function g2(t,e,r,n){var i=r?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=W(t)?t:[t],'<span style="'+a+";"+n+'">'+Z(t,function(o){return Ot(o)}).join(" ")+"</span>"}function Cb(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function m2(t,e,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,a)}function y2(t,e){var r=t.getData().getItemVisual(e,"style"),n=r[t.visualDrawType];return sa(n)}function Db(t,e){var r=t.get("padding");return r??(e==="richText"?[8,10]:10)}var Id=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ay()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,n){var i=n==="richText"?this._generateStyleName():null,a=qM({color:r,type:e,renderMode:n,markerId:i});return Y(a)?a:(process.env.NODE_ENV!=="production"&&K(i),this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var n={};W(r)?A(r,function(a){return V(n,a)}):V(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},t})();function _2(t){var e=t.series,r=t.dataIndex,n=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(r),l=W(s),u=y2(e,r),f,h,c,v;if(o>1||l&&!o){var d=b2(s,e,r,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);v=f=go(i,r,a[0]),h=m.type}else v=f=l?s[0]:s;var p=ev(e),g=p&&e.name||"",y=i.getName(r),_=n?g:y;return Ws("section",{header:g,noHeader:n||!p,sortParam:v,blocks:[Ws("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Yr(_),value:f,valueType:h,dataIndex:r})].concat(c||[])})}function b2(t,e,r,n,i){var a=e.getData(),o=Wn(t,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?A(n,function(h){f(go(a,r,h),h)}):A(t,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Ws("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ai=Ve();function Mf(t,e){return t.getName(e)||t.getId(e)}var w2="__universalTransitionEnabled",Nr=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Hs({count:x2,reset:T2}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=ai(this).sourceManager=new l2(this);a.prepareSource();var o=this.getInitialData(r,i);Ab(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&K(o,"getInitialData returned invalid data."),ai(this).dataBeforeProcessed=o,Eb(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Rs(r):{},o=this.subType;ye.hasClass(o)&&(o+="Series"),we(r,n.getTheme().get(this.subType)),we(r,this.getDefaultOption()),Jc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&ii(r,a,i)},e.prototype.mergeOption=function(r,n){r=we(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Os(this);i&&ii(this.option,r,i);var a=ai(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);Ab(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ai(this).dataBeforeProcessed=o,Eb(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!St(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Jc(r[i],"label",n)},e.prototype.getInitialData=function(r,n){},e.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},e.prototype.getData=function(r){var n=Pd(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return ai(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var n=Pd(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}ai(this).data=r},e.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return se(r)},e.prototype.getSourceManager=function(){return ai(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ai(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,c=-1,v=0;return o.each(n,function(d,m){var p=l.dataToCoord(d),g=u-p,y=Math.abs(g);y<=a&&((y<h||y===h&&g>=0&&c<0)&&(h=y,c=g,v=0),g===c&&(f[v++]=m))}),f.length=v,f},e.prototype.formatTooltip=function(r,n,i){return _2({series:this,dataIndex:r,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(te.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=yd.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},e.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Mf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Pe(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Mf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[w2])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],c=Mf(r,h);u[c]=!0,this._selectedDataIndicesMap[c]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[l-1],c=Mf(r,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=r.getRawIndex(v),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},e.registerClass=function(r){return ye.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),e})(ye);Ur(Nr,XL),Ur(Nr,yd),Hy(Nr,ye);function Eb(t){var e=t.name;ev(t)||(t.name=S2(t)||e)}function S2(t){var e=t.getRawData(),r=e.mapDimensionsAll("seriesName"),n=[];return A(r,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function x2(t){return t.model.getRawData().count()}function T2(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),C2}function C2(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Ab(t,e){A(yC(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,$e(D2,e))})}function D2(t,e){var r=Pd(t);return r&&r.setOutputEnd((e||this).count()),e}function Pd(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}var Or=(function(){function t(){this.group=new tt,this.uid=uf("viewComponent")}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){},t.prototype.updateLayout=function(e,r,n,i){},t.prototype.updateVisual=function(e,r,n,i){},t.prototype.toggleBlurSeries=function(e,r,n){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();nv(Or),Mu(Or);function kd(){var t=Ve();return function(e){var r=t(e),n=e.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Mb=Ve(),E2=kd(),br=(function(){function t(){this.group=new tt,this.uid=uf("viewChart"),this.renderTask=Hs({plan:A2,reset:M2}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,n,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+i.dataType);return}Ib(a,i,"emphasis")},t.prototype.downplay=function(e,r,n,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&De("Unknown dataType "+i.dataType);return}Ib(a,i,"normal")},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateLayout=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.updateVisual=function(e,r,n,i){this.render(e,r,n,i)},t.prototype.eachRendered=function(e){af(this.group,e)},t.markUpdateMethod=function(e,r){Mb(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type="chart"})(),t})();function Lb(t,e,r){t&&lo(t)&&(e==="emphasis"?$u:Uu)(t,r)}function Ib(t,e,r){var n=$i(t,e),i=e&&e.highlightKey!=null?TA(e.highlightKey):null;n!=null?A(xt(n),function(a){Lb(t.getItemGraphicEl(a),r,i)}):t.eachItemGraphicEl(function(a){Lb(a,r,i)})}nv(br,["dispose"]),Mu(br);function A2(t){return E2(t.model)}function M2(t){var e=t.model,r=t.ecModel,n=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Mb(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,r,n,i),L2[l]}var L2={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Lf="\0__throttleOriginMethod",Pb="\0__throttleRate",kb="\0__throttleType";function Nd(t,e,r){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),l=this,u=v;var m=f||e,p=f||r;f=null,s=n-(p?i:a)-m,clearTimeout(o),p?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function Nb(t,e,r,n){var i=t[e];if(i){var a=i[Lf]||i,o=i[kb],s=i[Pb];if(s!==r||o!==n){if(r==null||!n)return t[e]=a;i=t[e]=Nd(a,r,n==="debounce"),i[Lf]=a,i[kb]=n,i[Pb]=r}return i}}function Od(t,e){var r=t[e];r&&r[Lf]&&(r.clear&&r.clear(),t[e]=r[Lf])}var Ob=Ve(),Rb={itemStyle:gs(d0,!0),lineStyle:gs(v0,!0)},I2={lineStyle:"stroke",itemStyle:"fill"};function Bb(t,e){var r=t.visualStyleMapper||Rb[e];return r||(console.warn("Unknown style type '"+e+"'."),Rb.itemStyle)}function Vb(t,e){var r=t.visualDrawType||I2[e];return r||(console.warn("Unknown style type '"+e+"'."),"fill")}var P2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),a=Bb(t,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Vb(t,n),u=o[l],f=Q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=c,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||Q(o.stroke)?c:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!e.isSeriesFiltered(t)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var m=t.getDataParams(d),p=V({},o);p[l]=f(m),v.setItemVisual(d,"style",p)}}}},$s=new Fe,k2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var r=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=Bb(t,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){$s.option=l[n];var u=i($s),f=o.ensureUniqueItemVisual(s,"style");V(f,u),$s.option.decal&&(o.setItemVisual(s,"decal",$s.option.decal),$s.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},N2={performRawSeries:!0,overallReset:function(t){var e=se();t.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),Ob(r).scope=a}}),t.eachSeries(function(r){if(!(r.isColorBySeries()||t.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=Ob(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Vb(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(u)||u+"",d=n.count();c[l]=r.getColorFromPalette(v,o,d)}})}})}},If=Math.PI;function O2(t,e){e=e||{},xe(e,{text:"loading",textColor:X.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:X.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new tt,n=new He({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(n);var i=new lt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new He({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new ju({shape:{startAngle:-If/2,endAngle:-If/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:If*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:If*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var Fb=(function(){function t(e,r,n,i){this._stageTaskMap=se(),this.ecInstance=e,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var r=this,n=r._pipelineMap=se();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),n=this.api;A(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),K(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},t.prototype.prepareView=function(e,r,n,i){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,n){this._performStageTasks(this._visualHandlers,e,r,n)},t.prototype._performStageTasks=function(e,r,n,i){i=i||{};var a=!1,o=this;A(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var m=o.getPerformArgs(c,i.block);d.each(function(p){p.perform(m)}),c.perform(m)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!=="remain"&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=se(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Hs({plan:z2,reset:H2,count:W2}));v.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,v)}},t.prototype._createOverallStageTask=function(e,r,n,i){var a=this,o=r.overallTask=r.overallTask||Hs({reset:R2});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=se(),u=e.seriesType,f=e.getTargetSeries,h=!0,c=!1,v="";process.env.NODE_ENV!=="production"&&(v='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),K(!e.createOnAllSeries,v),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,A(n.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(c=!0,Hs({reset:B2,onDirty:F2})));g.context={model:m,overallProgress:h},g.agent=o,g.__block=h,a._pipe(m,g)}c&&o.dirty()},t.prototype._pipe=function(e,r){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},t.wrapStageHandler=function(e,r){return Q(e)&&(e={overallReset:e,seriesType:$2(e)}),e.uid=uf("stageHandler"),r&&(e.visualType=r),e},t})();function R2(t){t.overallReset(t.ecModel,t.api,t.payload)}function B2(t){return t.overallProgress&&V2}function V2(){this.agent.dirty(),this.getDownstream().dirty()}function F2(){this.agent&&this.agent.dirty()}function z2(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function H2(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=xt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Z(e,function(r,n){return zb(n)}):G2}var G2=zb(0);function zb(t){return function(e,r){var n=r.data,i=r.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function W2(t){return t.data.count()}function $2(t){Pf=null;try{t(Us,Hb)}catch{}return Pf}var Us={},Hb={},Pf;Gb(Us,bd),Gb(Hb,U0),Us.eachSeriesByType=Us.eachRawSeriesByType=function(t){Pf=t},Us.eachComponent=function(t){t.mainType==="series"&&t.subType&&(Pf=t.subType)};function Gb(t,e){for(var r in e.prototype)t[r]=Nt}var G=X.darkColor,U2=G.background,Ys=function(){return{axisLine:{lineStyle:{color:G.axisLine}},splitLine:{lineStyle:{color:G.axisSplitLine}},splitArea:{areaStyle:{color:[G.backgroundTint,G.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:G.axisMinorSplitLine}},axisLabel:{color:G.axisLabel},axisName:{}}},Wb={label:{color:G.secondary},itemStyle:{borderColor:G.borderTint},dividerLineStyle:{color:G.border}},$b={darkMode:!0,color:G.theme,backgroundColor:U2,axisPointer:{lineStyle:{color:G.border},crossStyle:{color:G.borderShade},label:{color:G.tertiary}},legend:{textStyle:{color:G.secondary},pageTextStyle:{color:G.tertiary}},textStyle:{color:G.secondary},title:{textStyle:{color:G.primary},subtextStyle:{color:G.quaternary}},toolbox:{iconStyle:{borderColor:G.accent50}},tooltip:{backgroundColor:G.neutral20,defaultBorderColor:G.border,textStyle:{color:G.tertiary}},dataZoom:{borderColor:G.accent10,textStyle:{color:G.tertiary},brushStyle:{color:G.backgroundTint},handleStyle:{color:G.neutral00,borderColor:G.accent20},moveHandleStyle:{color:G.accent40},emphasis:{handleStyle:{borderColor:G.accent50}},dataBackground:{lineStyle:{color:G.accent30},areaStyle:{color:G.accent20}},selectedDataBackground:{lineStyle:{color:G.accent50},areaStyle:{color:G.accent30}}},visualMap:{textStyle:{color:G.secondary},handleStyle:{borderColor:G.neutral30}},timeline:{lineStyle:{color:G.accent10},label:{color:G.tertiary},controlStyle:{color:G.accent30,borderColor:G.accent30}},calendar:{itemStyle:{color:G.neutral00,borderColor:G.neutral20},dayLabel:{color:G.tertiary},monthLabel:{color:G.secondary},yearLabel:{color:G.secondary}},matrix:{x:Wb,y:Wb,backgroundColor:{borderColor:G.axisLine},body:{itemStyle:{borderColor:G.borderTint}}},timeAxis:Ys(),logAxis:Ys(),valueAxis:Ys(),categoryAxis:Ys(),line:{symbol:"circle"},graph:{color:G.theme},gauge:{title:{color:G.secondary},axisLine:{lineStyle:{color:[[1,G.neutral05]]}},axisLabel:{color:G.axisLabel},detail:{color:G.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:G.background}},radar:(function(){var t=Ys();return t.axisName={color:G.axisLabel},t.axisLine.lineStyle.color=G.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:G.neutral20,textStyle:{color:G.secondary}},emphasis:{itemStyle:{color:G.neutral30}}}},sunburst:{itemStyle:{borderColor:G.background}},map:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},label:{color:G.tertiary},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}}},geo:{itemStyle:{borderColor:G.border,areaColor:G.neutral10},emphasis:{label:{color:G.primary},itemStyle:{areaColor:G.highlight}},select:{label:{color:G.primary},itemStyle:{color:G.highlight}}}};$b.categoryAxis.splitLine.show=!1;var Y2=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},n={},i={};if(Y(e)){var a=en(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(r.mainType=d,r[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},t.prototype.filter=function(e,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})(),Rd=["symbol","symbolSize","symbolRotate","symbolOffset"],Ub=Rd.concat(["symbolKeepAspect"]),X2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Rd.length;o++){var s=Rd[o],l=t.get(s);Q(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,r.setVisual(V({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),e.isSeriesFiltered(t))return;var u=Pe(i);function f(h,c){for(var v=t.getRawValue(c),d=t.getDataParams(c),m=0;m<u.length;m++){var p=u[m];h.setItemVisual(c,p,i[p](v,d))}}return{dataEach:a?f:null}}},q2={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Ub.length;s++){var l=Ub[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Z2(t,e,r){switch(r){case"color":var n=t.getItemVisual(e,"style");return n[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function K2(t,e){switch(e){case"color":var r=t.getVisual("style");return r[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function j2(t,e){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}A([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=V({},i),process.env.NODE_ENV!=="production"&&je(i.type,n[1]),o.dispatchAction(V(i,{type:n[1],seriesIndex:r(a,i)}))})})}function _o(t,e,r,n,i){var a=t+e;r.isSilent(a)||(process.env.NODE_ENV!=="production"&&Sn("event "+a+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=$i(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:W(c)?h.getName(c[0]):h.getName(c),selected:Y(l)?l:V({},l)})}}))}function Q2(t,e,r){t.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(_o("map","selectchanged",e,i,n),_o("pie","selectchanged",e,i,n)):n.fromAction==="select"?(_o("map","selected",e,i,n),_o("pie","selected",e,i,n)):n.fromAction==="unselect"&&(_o("map","unselected",e,i,n),_o("pie","unselected",e,i,n))})}function Xs(t,e,r){for(var n;t&&!(e(t)&&(n=t,r));)t=t.__hostTarget||t.parent;return n}var J2=Math.round(Math.random()*9),eI=typeof Object.defineProperty=="function",tI=(function(){function t(){this._id="__ec_inner_"+J2++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var n=this._guard(e);return eI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t})(),rI=Ee.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n+a),t.lineTo(r-i,n+a),t.closePath()}}),nI=Ee.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,n=e.cy,i=e.width/2,a=e.height/2;t.moveTo(r,n-a),t.lineTo(r+i,n),t.lineTo(r,n+a),t.lineTo(r-i,n),t.closePath()}}),iI=Ee.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-h*v,l+s+c*v,r,n-d,r,n),t.bezierCurveTo(r,n-d,r-f+h*v,l+s+c*v,r-f,l+s),t.closePath()}}),aI=Ee.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;t.moveTo(i,a),t.lineTo(i+o,a+r),t.lineTo(i,a+r/4*3),t.lineTo(i-o,a+r),t.lineTo(i,a),t.closePath()}}),oI={line:Jn,rect:He,roundRect:He,square:He,circle:Zu,diamond:nI,pin:iI,arrow:aI,triangle:rI},sI={line:function(t,e,r,n,i){i.x1=t,i.y1=e+n/2,i.x2=t+r,i.y2=e+n/2},rect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n},roundRect:function(t,e,r,n,i){i.x=t,i.y=e,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(t,e,r,n,i){var a=Math.min(r,n);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.r=Math.min(r,n)/2},diamond:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n},pin:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},arrow:function(t,e,r,n,i){i.x=t+r/2,i.y=e+n/2,i.width=r,i.height=n},triangle:function(t,e,r,n,i){i.cx=t+r/2,i.cy=e+n/2,i.width=r,i.height=n}},Bd={};A(oI,function(t,e){Bd[e]=new t});var lI=Ee.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var n=wu(t,e,r),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(t,e,r){var n=e.symbolType;if(n!=="none"){var i=Bd[n];i||(n="rect",i=Bd[n]),sI[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,r)}}});function uI(t,e){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||X.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=t:r.fill=t,this.markRedraw()}}function bo(t,e,r,n,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=j_(t.slice(8),new oe(e,r,n,i),o?"center":"cover"):t.indexOf("path://")===0?l=Wv(t.slice(7),{},new oe(e,r,n,i),o?"center":"cover"):l=new lI({shape:{symbolType:t,x:e,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=uI,a&&l.setColor(a),l}function fI(t){return W(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Yb(t,e){if(t!=null)return W(t)||(t=[t,t]),[Be(t[0],e[0])||0,Be(j(t[1],t[0]),e[1])||0]}function da(t){return isFinite(t)}function hI(t,e,r){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=da(n)?n:0,i=da(i)?i:1,a=da(a)?a:0,o=da(o)?o:0;var s=t.createLinearGradient(n,a,i,o);return s}function cI(t,e,r){var n=r.width,i=r.height,a=Math.min(n,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=da(o)?o:.5,s=da(s)?s:.5,l=l>=0&&da(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function Vd(t,e,r){for(var n=e.type==="radial"?cI(t,e,r):hI(t,e,r),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function vI(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function kf(t){return parseInt(t,10)}function Nf(t,e,r){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(t);return(t[i]||kf(s[n])||kf(t.style[n]))-(kf(s[a])||0)-(kf(s[o])||0)|0}function dI(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Ce(t)?[t]:W(t)?t:null}function Xb(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&dI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(r){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(r=Z(r,function(a){return a/i}),n/=i)}return[r,n]}var pI=new Qi(!0);function Of(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function qb(t){return typeof t=="string"&&t!=="none"}function Rf(t){var e=t.fill;return e!=null&&e!=="none"}function Zb(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function Kb(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function Fd(t,e,r){var n=Gy(e.image,e.__image,r);if(Lu(n)){var i=t.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*_C),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function gI(t,e,r,n){var i,a=Of(r),o=Rf(r),s=r.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||pI,h=e.__dirty;if(!n){var c=r.fill,v=r.stroke,d=o&&!!c.colorStops,m=a&&!!v.colorStops,p=o&&!!c.image,g=a&&!!v.image,y=void 0,_=void 0,b=void 0,w=void 0,S=void 0;(d||m)&&(S=e.getBoundingRect()),d&&(y=h?Vd(t,c,S):e.__canvasFillGradient,e.__canvasFillGradient=y),m&&(_=h?Vd(t,v,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),p&&(b=h||!e.__canvasFillPattern?Fd(t,c,e):e.__canvasFillPattern,e.__canvasFillPattern=b),g&&(w=h||!e.__canvasStrokePattern?Fd(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),d?t.fillStyle=y:p&&(b?t.fillStyle=b:o=!1),m?t.strokeStyle=_:g&&(w?t.strokeStyle=w:a=!1)}var x=e.getGlobalScale();f.setScale(x[0],x[1],e.segmentIgnoreThreshold);var T,C;t.setLineDash&&r.lineDash&&(i=Xb(e),T=i[0],C=i[1]);var E=!0;(u||h&Za)&&(f.setDPR(t.dpr),l?f.setContext(null):(f.setContext(t),E=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),E&&f.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=C),n||(r.strokeFirst?(a&&Kb(t,r),o&&Zb(t,r)):(o&&Zb(t,r),a&&Kb(t,r))),T&&t.setLineDash([])}function mI(t,e,r){var n=e.__image=Gy(r.image,e.__image,e,e.onload);if(!(!n||!Lu(n))){var i=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,c=s-f;t.drawImage(n,u,f,h,c,i,a,o,s)}else t.drawImage(n,i,a,o,s)}}function yI(t,e,r){var n,i=r.text;if(i!=null&&(i+=""),i){t.font=r.font||Gn,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(n=Xb(e),a=n[0],o=n[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Of(r)&&t.strokeText(i,r.x,r.y),Rf(r)&&t.fillText(i,r.x,r.y)):(Rf(r)&&t.fillText(i,r.x,r.y),Of(r)&&t.strokeText(i,r.x,r.y)),a&&t.setLineDash([])}}var jb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Qb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Jb(t,e,r,n,i){var a=!1;if(!n&&(r=r||{},e===r))return!1;if(n||e.opacity!==r.opacity){Ft(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Yi.opacity:o}(n||e.blend!==r.blend)&&(a||(Ft(t,i),a=!0),t.globalCompositeOperation=e.blend||Yi.blend);for(var s=0;s<jb.length;s++){var l=jb[s];(n||e[l]!==r[l])&&(a||(Ft(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==r.shadowColor)&&(a||(Ft(t,i),a=!0),t.shadowColor=e.shadowColor||Yi.shadowColor),a}function e1(t,e,r,n,i){var a=qs(e,i.inHover),o=n?null:r&&qs(r,i.inHover)||{};if(a===o)return!1;var s=Jb(t,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(Ft(t,i),s=!0),qb(a.fill)&&(t.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(Ft(t,i),s=!0),qb(a.stroke)&&(t.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(Ft(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Ft(t,i),s=!0),t.lineWidth=u)}for(var f=0;f<Qb.length;f++){var h=Qb[f],c=h[0];(n||a[c]!==o[c])&&(s||(Ft(t,i),s=!0),t[c]=a[c]||h[1])}return s}function _I(t,e,r,n,i){return Jb(t,qs(e,i.inHover),r&&qs(r,i.inHover),n,i)}function t1(t,e){var r=e.transform,n=t.dpr||1;r?t.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):t.setTransform(n,0,0,n,0,0)}function bI(t,e,r){for(var n=!1,i=0;i<t.length;i++){var a=t[i];n=n||a.isZeroArea(),t1(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=n}function wI(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var r1=1,n1=2,i1=3,a1=4;function SI(t){var e=Rf(t),r=Of(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!="string"||r&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function Ft(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function qs(t,e){return e&&t.__hoverStyle||t.style}function o1(t,e){pa(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function pa(t,e,r,n){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Ut,e.__isRendered=!1;return}var a=e.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||vI(a,o))&&(o&&o.length&&(Ft(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(Ft(t,r),t.save(),bI(a,t,r),s=!0),r.prevElClipPaths=a),r.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof Ee&&e.autoBatch&&SI(e.style);s||wI(i,u.transform)?(Ft(t,r),t1(t,e)):f||Ft(t,r);var h=qs(e,r.inHover);e instanceof Ee?(r.lastDrawType!==r1&&(l=!0,r.lastDrawType=r1),e1(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),gI(t,e,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):e instanceof Ru?(r.lastDrawType!==i1&&(l=!0,r.lastDrawType=i1),e1(t,e,u,l,r),yI(t,e,h)):e instanceof jn?(r.lastDrawType!==n1&&(l=!0,r.lastDrawType=n1),_I(t,e,u,l,r),mI(t,e,h)):e.getTemporalDisplayables&&(r.lastDrawType!==a1&&(l=!0,r.lastDrawType=a1),xI(t,e,r)),f&&n&&Ft(t,r),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function xI(t,e,r){var n=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),pa(t,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var zd=new tI,s1=new ja(100),l1=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Hd(t,e){if(t==="none")return null;var r=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";t.dirty&&zd.delete(t);var a=zd.get(t);if(a)return a;var o=xe(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,zd.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],h=!0,c=0;c<l1.length;++c){var v=o[l1[c]];if(v!=null&&!W(v)&&!Y(v)&&!Ce(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var m=s1.get(d);m&&(i?u.svgElement=m:u.image=m)}var p=f1(o.dashArrayX),g=TI(o.dashArrayY),y=u1(o.symbol),_=CI(p),b=h1(g),w=!i&&mn.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=C(),T;w&&(w.width=x.width*r,w.height=x.height*r,T=w.getContext("2d")),E(),h&&s1.put(d,w||S),u.image=w,u.svgElement=S,u.svgWidth=x.width,u.svgHeight=x.height;function C(){for(var D=1,L=0,M=_.length;L<M;++L)D=Ly(D,_[L]);for(var P=1,L=0,M=y.length;L<M;++L)P=Ly(P,y[L].length);D*=P;var k=b*_.length*y.length;if(process.env.NODE_ENV!=="production"){var O=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&O("maxTileWidth"),k>o.maxTileHeight&&O("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function E(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var D=0,L=0;L<g.length;++L)D+=g[L];if(D<=0)return;for(var M=-b,P=0,k=0,O=0;M<x.height;){if(P%2===0){for(var B=k/2%y.length,N=0,R=0,z=0;N<x.width*2;){for(var H=0,L=0;L<p[O].length;++L)H+=p[O][L];if(H<=0)break;if(R%2===0){var F=(1-o.symbolSize)*.5,$=N+p[O][R]*F,ie=M+g[P]*F,Ae=p[O][R]*o.symbolSize,ht=g[P]*o.symbolSize,At=z/2%y[B].length;_t($,ie,Ae,ht,y[B][At])}N+=p[O][R],++z,++R,R===p[O].length&&(R=0)}++O,O===p.length&&(O=0)}M+=g[P],++k,++P,P===g.length&&(P=0)}function _t(ct,Ye,re,ue,cn){var it=i?1:r,Si=bo(cn,ct*it,Ye*it,re*it,ue*it,o.color,o.symbolKeepAspect);if(i){var Rn=n.painter.renderOneToVNode(Si);Rn&&S.children.push(Rn)}else o1(T,Si)}}}}function u1(t){if(!t||t.length===0)return[["rect"]];if(Y(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!Y(t[r])){e=!1;break}if(e)return u1([t]);for(var n=[],r=0;r<t.length;++r)Y(t[r])?n.push([t[r]]):n.push(t[r]);return n}function f1(t){if(!t||t.length===0)return[[0,0]];if(Ce(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,n=0;n<t.length;++n)if(!Ce(t[n])){r=!1;break}if(r)return f1([t]);for(var i=[],n=0;n<t.length;++n)if(Ce(t[n])){var e=Math.ceil(t[n]);i.push([e,e])}else{var e=Z(t[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function TI(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(Ce(t)){var e=Math.ceil(t);return[e,e]}var r=Z(t,function(n){return Math.ceil(n)});return t.length%2?r.concat(r):r}function CI(t){return Z(t,function(e){return h1(e)})}function h1(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}function DI(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Hd(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Hd(i,e)}}})}var Rr=new Xr,Bf={};function EI(t,e){process.env.NODE_ENV!=="production"&&Bf[t]&&De("Already has an implementation of "+t+"."),Bf[t]=e}function AI(t){return process.env.NODE_ENV!=="production"&&(Bf[t]||De("Implementation of "+t+" doesn't exists.")),Bf[t]}var MI=1,LI=800,II=900,PI=1e3,kI=2e3,NI=5e3,c1=1e3,OI=1100,Gd=2e3,v1=3e3,RI=4e3,Vf=4500,BI=4600,VI=5e3,FI=6e3,d1=7e3,zI={PROCESSOR:{FILTER:PI,SERIES_FILTER:LI,STATISTIC:NI},VISUAL:{LAYOUT:c1,PROGRESSIVE_LAYOUT:OI,GLOBAL:Gd,CHART:v1,POST_CHART_LAYOUT:BI,COMPONENT:RI,BRUSH:VI,CHART_ITEM:Vf,ARIA:FI,DECAL:d1}},qe="__flagInMainProcess",Ff="__mainProcessVersion",nt="__pendingUpdate",Wd="__needsUpdateStatus",p1=/^[a-zA-Z0-9_]+$/,$d="__connectUpdateStatus",g1=0,HI=1,GI=2;function m1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){zt(this.id);return}return _1(this,t,e)}}function y1(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return _1(this,t,e)}}function _1(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Xr.prototype[e].apply(t,r)}var b1=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Xr),w1=b1.prototype;w1.on=y1("on"),w1.off=y1("off");var ga,Ud,zf,An,Hf,Yd,Xd,wo,So,S1,x1,qd,T1,Gf,C1,D1,wr,E1,xo,A1=(function(t){J(e,t);function e(r,n,i){var a=t.call(this,new Y2)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;if(a[Ff]=1,process.env.NODE_ENV!=="production"){var u=te.hasGlobalWindow?window:global;u&&(o=j(u.__ECHARTS__DEFAULT__RENDERER__,o),s=j(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=j(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr;var f=a._zr=Sy(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:j(i.useDirtyRect,l),useCoarsePointer:j(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Nd(Te(f.flush,f),17),a._updateTheme(n),a._locale=OM(i.locale||g0),a._coordSysMgr=new cd;var h=a._api=C1(a);function c(v,d){return v.__prio-d.__prio}return eu(Uf,c),eu(jd,c),a._scheduler=new Fb(a,h,jd,Uf),a._messageCenter=new b1,a._initEvents(),a.resize=Te(a.resize,a),f.animation.on("frame",a._onframe,a),S1(f,a),x1(f,a),Jh(a),a}return e.prototype._onframe=function(){if(!this._disposed){E1(this);var r=this._scheduler;if(this[nt]){var n=this[nt].silent;this[qe]=!0,xo(this);try{ga(this),An.update.call(this,null,this[nt].updateParams)}catch(l){throw this[qe]=!1,this[nt]=null,l}this._zr.flush(),this[qe]=!1,this[nt]=null,wo.call(this,n),So.call(this,n)}else if(r.unfinished){var i=MI,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),Yd(this,a),r.performVisualTasks(a),Gf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,n,i){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`setOption` should not be called during main process.");return}if(this._disposed){zt(this.id);return}var a,o,s;if(q(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[qe]=!0,xo(this),!this._model||n){var l=new CL(this._api),u=this._theme,f=this._model=new bd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Qd);var h={seriesTransition:s,optionChanged:!0};if(i)this[nt]={silent:a,updateParams:h},this[qe]=!1,this.getZr().wakeUp();else{try{ga(this),An.update.call(this,null,h)}catch(c){throw this[nt]=null,this[qe]=!1,c}this._ssr||this._zr.flush(),this[nt]=null,this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype.setTheme=function(r,n){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`setTheme` should not be called during main process.");return}if(this._disposed){zt(this.id);return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[nt]&&(a==null&&(a=this[nt].silent),o=this[nt].updateParams,this[nt]=null),this[qe]=!0,xo(this);try{this._updateTheme(r),i.setTheme(this._theme),ga(this),An.update.call(this,{type:"setTheme"},o)}catch(s){throw this[qe]=!1,s}this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype._updateTheme=function(r){Y(r)&&(r=M1[r]),r&&(r=fe(r),r&&Q0(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||te.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&je("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return A(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){zt(this.id);return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;A(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return A(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){zt(this.id);return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(L1[i]){var l=s,u=s,f=-s,h=-s,c=[],v=r&&r.pixelRatio||this.getDevicePixelRatio();A(Zs,function(_,b){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(fe(r)),S=_.getDom().getBoundingClientRect();l=a(S.left,l),u=a(S.top,u),f=o(S.right,f),h=o(S.bottom,h),c.push({dom:w,left:S.left,top:S.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,m=h-u,p=mn.createCanvas(),g=Sy(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:m}),n){var y="";return A(c,function(_){var b=_.left-l,w=_.top-u;y+='<g transform="translate('+b+","+w+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new He({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),A(c,function(_){var b=new jn({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,n,i){return Hf(this,"convertToPixel",r,n,i)},e.prototype.convertToLayout=function(r,n,i){return Hf(this,"convertToLayout",r,n,i)},e.prototype.convertFromPixel=function(r,n,i){return Hf(this,"convertFromPixel",r,n,i)},e.prototype.containPixel=function(r,n){if(this._disposed){zt(this.id);return}var i=this._model,a,o=tv(i,r);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?a=a||h.containPoint(n,u):process.env.NODE_ENV!=="production"&&pt(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&pt(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(r,n){var i=this._model,a=tv(i,r,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||pt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?Z2(s,l,n):K2(s,n)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;A(WI,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Xs(l,function(m){var p=de(m);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=V({},p.eventData),!0},!0),u){var h=u.componentType,c=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",c=u.seriesIndex);var v=h&&c!=null&&s.getComponent(h,c),d=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];process.env.NODE_ENV!=="production"&&!f&&!(v&&d)&&pt("model or view can not be found by params"),u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;A(Kd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),Q2(n,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){zt(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){zt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Fy(this.getDom(),ep,"");var n=this,i=n._api,a=n._model;A(n._componentsViews,function(o){o.dispose(a,i)}),A(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete Zs[n.id]},e.prototype.resize=function(r){if(this[qe]){process.env.NODE_ENV!=="production"&&De("`resize` should not be called during main process.");return}if(this._disposed){zt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[nt]&&(a==null&&(a=this[nt].silent),i=!0,this[nt]=null),this[qe]=!0,xo(this);try{i&&ga(this),An.update.call(this,{type:"resize",animation:V({duration:0},r&&r.animation)})}catch(o){throw this[qe]=!1,o}this[qe]=!1,wo.call(this,a),So.call(this,a)}},e.prototype.showLoading=function(r,n){if(this._disposed){zt(this.id);return}if(q(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Jd[r]){process.env.NODE_ENV!=="production"&&pt("Loading effects "+r+" not exists.");return}var i=Jd[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){zt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(r){var n=V({},r);return n.type=$f[r.type],n},e.prototype.dispatchAction=function(r,n){if(this._disposed){zt(this.id);return}if(q(n)||(n={silent:!!n}),!!Wf[r.type]&&this._model){if(this[qe]){this._pendingActions.push(r);return}var i=n.silent;Xd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&te.browser.weChat&&this._throttledZrFlush(),wo.call(this,i),So.call(this,i)}},e.prototype.updateLabelLayout=function(){Rr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){zt(this.id);return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&K(r.data&&a),a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){ga=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Ud(h,!0),Ud(h,!1),c.plan()},Ud=function(h,c){for(var v=h._model,d=h._scheduler,m=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;c?v.eachComponent(function(S,x){S!=="series"&&b(x)}):v.eachSeries(b);function b(S){var x=S.__requireNewView;S.__requireNewView=!1;var T="_ec_"+S.id+"_"+S.type,C=!x&&p[T];if(!C){var E=en(S.type),D=c?Or.getClass(E.main,E.sub):br.getClass(E.sub);process.env.NODE_ENV!=="production"&&K(D,E.sub+" does not exist."),C=new D,C.init(v,y),p[T]=C,m.push(C),g.add(C.group)}S.__viewId=C.__id=T,C.__alive=!0,C.__model=S,C.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!c&&d.prepareView(C,S,v,y)}for(var _=0;_<m.length;){var w=m[_];w.__alive?_++:(!c&&w.renderTask.dispose(),g.remove(w.group),w.dispose(v,y),m.splice(_,1),p[w.__id]===w&&delete p[w.__id],w.__id=w.group.__ecComponentInfo=null)}},zf=function(h,c,v,d,m){var p=h._model;if(p.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),w);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var y={mainType:d,query:g};m&&(y.subType=m);var _=v.excludeSeriesId,b;_!=null&&(b=se(),A(xt(_),function(S){var x=Jr(S,null);x!=null&&b.set(x,!0)})),p&&p.eachComponent(y,function(S){var x=b&&b.get(S.id)!=null;if(!x)if(O_(v))if(S instanceof Nr)v.type===ra&&!v.notBlur&&!S.get(["emphasis","disabled"])&&gA(S,v,h._api);else{var T=Mv(S.mainType,S.componentIndex,v.name,h._api),C=T.focusSelf,E=T.dispatchers;v.type===ra&&C&&!v.notBlur&&Av(S.mainType,S.componentIndex,h._api),E&&A(E,function(D){v.type===ra?$u(D):Uu(D)})}else Iv(v)&&S instanceof Nr&&(_A(S,v,h._api),P_(S),wr(h))},h),p&&p.eachComponent(y,function(S){var x=b&&b.get(S.id)!=null;x||w(h[d==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},h);function w(S){S&&S.__alive&&S[c]&&S[c](S.__model,p,h._api,v)}},An={prepareAndUpdate:function(h){ga(this),An.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,m=this._zr,p=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(h),g.restoreData(v,h),g.performSeriesTasks(v),p.create(v,d),g.performDataProcessorTasks(v,h),Yd(this,v),p.update(v,d),n(v),g.performVisualTasks(v,h);var y=v.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),qd(this,v,d,h,c),Rr.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var m=[];v.eachComponent(function(g,y){if(g!=="series"){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,v,d,h);b&&b.update&&m.push(_)}else m.push(_)}});var p=se();v.eachSeries(function(g){var y=c._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,v,d,h);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:p}),Gf(this,v,d,h,{},p),Rr.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),br.markUpdateMethod(h,"updateView"),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),qd(this,c,this._api,h,{}),Rr.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),br.markUpdateMethod(h,"updateVisual"),n(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,m){if(d!=="series"){var p=c.getViewOfComponentModel(m);p&&p.__alive&&p.updateVisual(m,v,c._api,h)}}),v.eachSeries(function(d){var m=c._chartsMap[d.__viewId];m.updateVisual(d,v,c._api,h)}),Rr.trigger("afterupdate",v,this._api))},updateLayout:function(h){An.update.call(this,h)}};function r(h,c,v,d,m){if(h._disposed){zt(h.id);return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,_=tv(p,v),b=0;b<g.length;b++){var w=g[b];if(w[c]&&(y=w[c](p,_,d,m))!=null)return y}process.env.NODE_ENV!=="production"&&pt("No coordinate system that supports "+c+" found by the given finder.")}Hf=r,Yd=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(m){d.updateStreamModes(m,v[m.__viewId])})},Xd=function(h,c){var v=this,d=this.getModel(),m=h.type,p=h.escapeConnect,g=Wf[m],y=(g.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&en(y[0]);this[qe]=!0,xo(this);var w=[h],S=!1;h.batch&&(S=!0,w=Z(h.batch,function(O){return O=xe(V({},O),h),O.batch=null,O}));var x=[],T,C=[],E=g.nonRefinedEventType,D=Iv(h),L=O_(h);if(L&&I_(this._api),A(w,function(O){var B=g.action(O,d,v._api);if(g.refineEvent?C.push(B):T=B,T=T||V({},O),T.type=E,x.push(T),L){var N=rv(h),R=N.queryOptionMap,z=N.mainTypeSpecified,H=z?R.keys()[0]:"series";zf(v,_,O,H),wr(v)}else D?(zf(v,_,O,"series"),wr(v)):b&&zf(v,_,O,b.main,b.sub)}),_!=="none"&&!L&&!D&&!b)try{this[nt]?(ga(this),An.update.call(this,h),this[nt]=null):An[_].call(this,h)}catch(O){throw this[qe]=!1,O}if(S?T={type:E,escapeConnect:p,batch:x}:T=x[0],this[qe]=!1,!c){var M=void 0;if(g.refineEvent){var P=g.refineEvent(C,h,d,this._api).eventContent;K(q(P)),M=xe({type:g.refinedEventType},P),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var k=this._messageCenter;k.trigger(T.type,T),M&&k.trigger(M.type,M)}},wo=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Xd.call(this,v,h)}},So=function(h){!h&&this.trigger("updated")},S1=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[nt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},x1=function(h,c){h.on("mouseover",function(v){var d=v.target,m=Xs(d,lo);m&&(mA(m,v,c._api),wr(c))}).on("mouseout",function(v){var d=v.target,m=Xs(d,lo);m&&(yA(m,v,c._api),wr(c))}).on("click",function(v){var d=v.target,m=Xs(d,function(y){return de(y).dataIndex!=null},!0);if(m){var p=m.selected?"unselect":"select",g=de(m);c._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=!1;if(h.eachComponent(function(y,_){var b=_.get("zlevel")||0,w=_.get("z")||0,S=_.getZLevelKey();d=d||!!S,(y==="series"?v:c).push({zlevel:b,z:w,idx:_.componentIndex,type:y,key:S})}),d){var m=c.concat(v),p,g;eu(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),A(m,function(y){var _=h.getComponent(y.type,y.idx),b=y.zlevel,w=y.key;p!=null&&(b=Math.max(p,b)),w?(b===p&&w!==g&&b++,g=w):g&&(b===p&&b++,g=""),p=b,_.setZLevel(b)})}}qd=function(h,c,v,d,m){i(c),T1(h,c,v,d,m),A(h._chartsViews,function(p){p.__alive=!1}),Gf(h,c,v,d,m),A(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},T1=function(h,c,v,d,m,p){A(p||h._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,c,v,d),l(y,g),f(y,g)})},Gf=function(h,c,v,d,m,p){var g=h._scheduler;m=V(m||{},{updatedSeries:c.getSeries()}),Rr.trigger("series:beforeupdate",c,v,m);var y=!1;c.eachSeries(function(_){var b=h._chartsMap[_.__viewId];b.__alive=!0;var w=b.renderTask;g.updatePayload(w,d),u(_,b),p&&p.get(_.uid)&&w.dirty(),w.perform(g.getPerformArgs(w))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),P_(_)}),g.unfinished=y||g.unfinished,Rr.trigger("series:layoutlabels",c,v,m),Rr.trigger("series:transition",c,v,m),c.eachSeries(function(_){var b=h._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(h,c),Rr.trigger("series:afterupdate",c,v,m)},wr=function(h){h[Wd]=!0,h.getZr().wakeUp()},xo=function(h){h[Ff]=(h[Ff]+1)%1e3},E1=function(h){h[Wd]&&(h.getZr().storage.traverse(function(c){Cs(c)||a(c)}),h[Wd]=!1)};function a(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var m=v[d];m==="emphasis"||m==="blur"||m==="select"||c.push(m)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Vu&&h.states.emphasis?c.push("emphasis"):h.hoverState===Bu&&h.states.blur&&c.push("blur"),h.useStates(c)}function o(h,c){var v=h._zr,d=v.storage,m=0;d.traverse(function(p){p.isGroup||m++}),m>c.get("hoverLayerThreshold")&&!te.node&&!te.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(h,c){if(!h.preventAutoZ){var v=i0(h);c.eachRendered(function(d){return a0(d,v.z,v.zlevel),!0})}}function u(h,c){c.eachRendered(function(v){if(!Cs(v)){var d=v.getTextContent(),m=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=v.get("duration"),p=m>0?{duration:m,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cs(g))return;if(g instanceof Ee&&CA(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&a(g)}})}C1=function(h){return new((function(c){J(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},v.prototype.enterEmphasis=function(d,m){$u(d,m),wr(h)},v.prototype.leaveEmphasis=function(d,m){Uu(d,m),wr(h)},v.prototype.enterBlur=function(d){pA(d),wr(h)},v.prototype.leaveBlur=function(d){E_(d),wr(h)},v.prototype.enterSelect=function(d){A_(d),wr(h)},v.prototype.leaveSelect=function(d){M_(d),wr(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return h[Ff]},v})(U0))(h)},D1=function(h){function c(v,d){for(var m=0;m<v.length;m++){var p=v[m];p[$d]=d}}A($f,function(v,d){h._messageCenter.on(d,function(m){if(L1[h.group]&&h[$d]!==g1){if(m&&m.escapeConnect)return;var p=h.makeActionFromEvent(m),g=[];A(Zs,function(y){y!==h&&y.group===h.group&&g.push(y)}),c(g,g1),A(g,function(y){y[$d]!==HI&&y.dispatchAction(p)}),c(g,GI)}})})}})(),e})(Xr),Zd=A1.prototype;Zd.on=m1("on"),Zd.off=m1("off"),Zd.one=function(t,e,r){var n=this;Sn("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(t,i)}this.on.call(this,t,i,r)};var WI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function zt(t){process.env.NODE_ENV!=="production"&&pt("Instance "+t+" has been disposed")}var Wf={},$f={},Kd={},jd=[],Qd=[],Uf=[],M1={},Jd={},Zs={},L1={},$I=+new Date-0,ep="_echarts_instance_";function UI(t,e,r){{if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var n=YI(t);if(n)return process.env.NODE_ENV!=="production"&&pt("There is a chart instance already initialized on the dom."),n;process.env.NODE_ENV!=="production"&&za(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&!r||!t.clientHeight&&!r)&&pt("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new A1(t,e,r);return i.id="ec_"+$I++,Zs[i.id]=i,Fy(t,ep,i.id),D1(i),Rr.trigger("afterinit",i),i}function YI(t){return Zs[iE(t,ep)]}function I1(t,e){M1[t]=e}function P1(t){me(Qd,t)<0&&Qd.push(t)}function k1(t,e){rp(jd,t,e,kI)}function XI(t){tp("afterinit",t)}function qI(t){tp("afterupdate",t)}function tp(t,e){Rr.on(t,e)}function To(t,e,r){var n,i,a,o,s;Q(e)&&(r=e,e=""),q(t)?(n=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(n=t,i=e);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Wf[n]||(K(p1.test(n)&&p1.test(i)),a&&K(i!==n),Wf[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Kd[i]=1,a&&s&&(Kd[u]=1),process.env.NODE_ENV!=="production"&&$f[u]&&De(u+' must not be shared; use "refineEvent" if you intend to share an event name.'),$f[u]=n)}function ZI(t,e){cd.register(t,e)}function KI(t,e){rp(Uf,t,e,c1,"layout")}function ma(t,e){rp(Uf,t,e,v1,"visual")}var N1=[];function rp(t,e,r,n,i){if((Q(e)||q(e))&&(r=e,e=n),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");A(t,function(o){K(o.__raw!==r)})}if(!(me(N1,r)>=0)){N1.push(r);var a=Fb.wrapStageHandler(r,i);a.__prio=e,a.__raw=r,t.push(a)}}function O1(t,e){Jd[t]=e}function jI(t,e,r){var n=AI("registerMap");n&&n(t,e,r)}var QI=r2;ma(Gd,P2),ma(Vf,k2),ma(Vf,N2),ma(Gd,X2),ma(Vf,q2),ma(d1,DI),P1(Q0),k1(II,BL),O1("default",O2),To({type:ra,event:ra,update:ra},Nt),To({type:zu,event:zu,update:zu},Nt),To({type:Hu,event:Tv,update:Hu,action:Nt,refineEvent:np,publishNonRefinedEvent:!0}),To({type:xv,event:Tv,update:xv,action:Nt,refineEvent:np,publishNonRefinedEvent:!0}),To({type:Gu,event:Tv,update:Gu,action:Nt,refineEvent:np,publishNonRefinedEvent:!0});function np(t,e,r,n){return{eventContent:{selected:bA(r),isFromClick:e.isFromClick||!1}}}I1("default",{}),I1("dark",$b);function Ks(t){return t==null?0:t.length||1}function R1(t){return t}var JI=(function(){function t(e,r,n,i,a,o){this._old=e,this._new=r,this._oldKeyGetter=n||R1,this._newKeyGetter=i||R1,this.context=a,this._diffModeMultiple=o==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,n={},i=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Ks(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Ks(u),c=Ks(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,r){for(var n=0;n<e.length;n++){var i=e[n],a=r[i],o=Ks(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},t.prototype._initIndexMap=function(e,r,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Ks(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})(),eP=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function tP(t,e){var r={},n=r.encode={},i=se(),a=[],o=[],s={};A(t.dimensions,function(c){var v=t.getDimensionInfo(c),d=v.coordDim;if(d){process.env.NODE_ENV!=="production"&&K(gd.get(d)==null);var m=v.coordDimIndex;ip(n,d)[m]=c,v.isExtraCoord||(i.set(d,1),nP(v.type)&&(a[0]=c),ip(s,d)[m]=t.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}gd.each(function(p,g){var y=ip(n,g),_=v.otherDims[g];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};i.each(function(c,v){var d=n[v];u[v]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=Z(l,function(c){return t.getDimensionInfo(c).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new eP(s,e),r}function ip(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function rP(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function nP(t){return!(t==="ordinal"||t==="time")}var Yf=(function(){function t(e){this.otherDims={},e!=null&&V(this,e)}return t})(),iP=Ve(),aP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},B1=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=z1(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return j(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=nb(this.source),n=!H1(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=r?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=aP[u]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function V1(t){return t instanceof B1}function F1(t){for(var e=se(),r=0;r<(t||[]).length;r++){var n=t[r],i=q(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,r)}return e}function z1(t){var e=iP(t);return e.dimNameMap||(e.dimNameMap=F1(t.dimensionsDefine))}function H1(t){return t>30}var js=q,oi=Z,oP=typeof Int32Array>"u"?Array:Int32Array,sP="e\0\0",G1=-1,lP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],uP=["_approximateExtent"],W1,Xf,Qs,Co,ap,Js,op,$1=(function(){function t(e,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;V1(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],c=Y(h)?new Yf({name:h}):h instanceof Yf?h:new Yf(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]);var m=f;Ce(c.storeDimIndex)&&(m=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),process.env.NODE_ENV!=="production"&&K(i||c.storeDimIndex>=0),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=se();A(o,function(g){p.set(a[g].storeDimIndex,g)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(Ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var r=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+e);return r},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[r]:null},t.prototype.mapDimensionsAll=function(e){var r=this._dimSummary,n=r.encode[e];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,n){var i=this,a;if(e instanceof Ad&&(a=e),!a){var o=this.dimensions,s=xd(e)||kt(e)?new ob(e,o.length):e;a=new Ad;var l=oi(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=tP(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var n=this._store.appendValues(e,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&op(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Dn&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xt;if(l&&!i.pure)for(var u=[],f=e;f<r;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&XD(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Jr(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Jr(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)op(this,f);W1(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){js(e)?V(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Qs(this,this._nameDimIdx,r)),n==null&&(n=""),n},t.prototype._getCategory=function(e,r){var n=this._store.get(e,r),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},t.prototype.getId=function(e){return Xf(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var n=this,i=this._store;return W(e)?i.getValues(oi(e,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var i=n&&n[r];return i==null||isNaN(i)?G1:i},t.prototype.each=function(e,r,n){Q(e)&&(n=r,r=e,e=[]);var i=n||this,a=oi(Co(e),this._getStoreDimIndex,this);this._store.each(a,i?Te(r,i):r)},t.prototype.filterSelf=function(e,r,n){Q(e)&&(n=r,r=e,e=[]);var i=n||this,a=oi(Co(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Te(r,i):r),this},t.prototype.selectRange=function(e){var r=this,n={},i=Pe(e);return A(i,function(a){var o=r._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(e,r,n){Q(e)&&(n=r,r=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(r&&r.apply(this,arguments))},n),i},t.prototype.map=function(e,r,n,i){var a=n||i||this,o=oi(Co(e),this._getStoreDimIndex,this),s=Js(this);return s._store=this._store.map(o,a?Te(r,a):r),s},t.prototype.modify=function(e,r,n,i){var a=this,o=n||i||this;process.env.NODE_ENV!=="production"&&A(Co(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=oi(Co(e),this._getStoreDimIndex,this);this._store.modify(s,o?Te(r,o):r)},t.prototype.downSample=function(e,r,n,i){var a=Js(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,n,i),a},t.prototype.minmaxDownSample=function(e,r){var n=Js(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),n},t.prototype.lttbDownSample=function(e,r){var n=Js(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),n},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel,n=this.getRawDataItem(e);return new Fe(n,r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new JI(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xf(e,n)},function(n){return Xf(r,n)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},js(e)?V(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var n=this._itemVisuals[e],i=n&&n[r];return i??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[r];return a==null&&(a=this.getVisual(r),W(a)?a=a.slice():js(a)&&(a=V({},a)),i[r]=a),a},t.prototype.setItemVisual=function(e,r,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,js(r)?V(i,r):i[r]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){js(e)?V(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,n){this._itemLayouts[e]=n?V(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){var n=this.hostModel&&this.hostModel.seriesIndex;aA(n,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){A(this._graphicEls,function(n,i){n&&e&&e.call(r,n,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:oi(this.dimensions,this._getDimInfo,this),this.hostModel)),ap(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var n=this[e];Q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(jh(arguments)))})},t.internalField=(function(){W1=function(e){var r=e._invertedIndicesMap;A(r,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=r[i]=new oP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=G1;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Qs=function(e,r,n){return Jr(e._getCategory(r,n),null)},Xf=function(e,r){var n=e._idList[r];return n==null&&e._idDimIdx!=null&&(n=Qs(e,e._idDimIdx,r)),n==null&&(n=sP+r),n},Co=function(e){return W(e)||(e=e!=null?[e]:[]),e},Js=function(e){var r=new t(e._schema?e._schema:oi(e.dimensions,e._getDimInfo,e),e.hostModel);return ap(r,e),r},ap=function(e,r){A(lP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(e[n]=r[n])}),e.__wrappedMethods=r.__wrappedMethods,A(uP,function(n){e[n]=fe(r[n])}),e._calculationInfo=V({},r._calculationInfo)},op=function(e,r){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=Qs(e,a,r)),l==null&&o!=null&&(i[r]=l=Qs(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),t})();function U1(t,e){xd(t)||(t=J0(t)),e=e||{};var r=e.coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=se(),a=[],o=hP(t,r,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&H1(o),l=n===t.dimensionsDefine,u=l?z1(t):F1(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var h=se(f),c=new pb(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var E=c[C];if(E<0){var D=n[C],L=q(D)?D:{name:D},M=new Yf,P=L.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),L.type!=null&&(M.type=L.type),L.displayName!=null&&(M.displayName=L.displayName);var k=a.length;return c[C]=k,M.storeDimIndex=C,a.push(M),M}return a[E]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,E){var D=xt(C).slice();if(D.length===1&&!Y(D[0])&&D[0]<0){h.set(E,!1);return}var L=h.set(E,[]);A(D,function(M,P){var k=Y(M)?u.get(M):M;k!=null&&k<o&&(L[P]=k,p(d(k),E,P))})});var m=0;A(r,function(C){var E,D,L,M;if(Y(C))E=C,M={};else{M=C,E=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=V({},M),M.ordinalMeta=P,D=M.dimsDef,L=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var k=h.get(E);if(k!==!1){if(k=xt(k),!k.length)for(var O=0;O<(D&&D.length||1);O++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&k.push(m++)}A(k,function(B,N){var R=d(B);if(l&&M.type!=null&&(R.type=M.type),p(xe(R,M),E,N),R.name==null&&D){var z=D[N];!q(z)&&(z={name:z}),R.name=R.displayName=z.name,R.defaultTooltip=z.defaultTooltip}L&&xe(R.otherDims,L)})}});function p(C,E,D){gd.get(E)!=null?C.otherDims[E]=D:(C.coordDim=E,C.coordDimIndex=D,i.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)A(a,function(C){w(C)}),a.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});else for(var S=0;S<o;S++){var x=d(S),T=x.coordDim;T==null&&(x.coordDim=cP(b,i,_),x.coordDimIndex=0,(!g||y<=0)&&(x.isExtraCoord=!0),y--),w(x),x.type==null&&(B0(t,S)===ut.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return fP(a),new B1({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function fP(t){for(var e=se(),r=0;r<t.length;r++){var n=t[r],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function hP(t,e,r,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,n||0);return A(e,function(a){var o;q(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function cP(t,e,r){if(r||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var vP=(function(){function t(e){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=e}return t})();function dP(t){var e=t.get("coordinateSystem"),r=new vP(e),n=pP[e];if(n)return n(t,r,r.axisMap,r.categoryAxisMap),r}var pP={cartesian2d:function(t,e,r,n){var i=t.getReferringComponents("xAxis",fr).models[0],a=t.getReferringComponents("yAxis",fr).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Ga(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+Ga(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Do(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Do(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,r,n){var i=t.getReferringComponents("singleAxis",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],r.set("single",i),Do(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,r,n){var i=t.getReferringComponents("polar",fr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Do(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Do(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,r,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,r,n){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Do(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(t,e,r,n){var i=t.getReferringComponents("matrix",fr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("matrix coordinate system should be specified.");e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Do(t){return t.get("type")==="category"}function gP(t,e,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;mP(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,f,h,c;if(A(a,function(y,_){Y(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,m=0;A(a,function(y){y.coordDim===v&&m++});var p={name:h,coordDim:v,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:c,coordDim:c,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function mP(t){return!V1(t.schema)}function Eo(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function yP(t,e){return Eo(t,e)?t.getCalculationInfo("stackResultDimension"):e}function _P(t,e){var r=t.get("coordinateSystem"),n=cd.get(r),i;return e&&e.coordSysDims&&(i=Z(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=rP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function bP(t,e,r){var n,i;return r&&A(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(t[n].otherDims.itemName=0),n}function sp(t,e,r){r=r||{};var n=e.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Xt;var o=dP(e),s=_P(e,o),l=r.useEncodeDefaulter,u=Q(l)?l:l?$e(fL,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=U1(i,f),c=bP(h.dimensions,r.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=gP(e,{schema:h,store:v}),m=new $1(h,e);m.setCalculationInfo(d);var p=c!=null&&wP(i)?function(g,y,_,b){return b===c?_:this.defaultDimValueGetter(g,y,_,b)}:null;return m.hasItemOption=!1,m.initData(a?i:v,null,p),m}function wP(t){if(t.sourceFormat===Xt){var e=SP(t.data||[]);return!W(vs(e))}}function SP(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}function xP(t){var e=Math.pow(10,Cu(Math.abs(t))),r=Math.abs(t/e);return r===0||r===1||r===2||r===3||r===5}function lp(t){return t.type==="interval"||t.type==="log"}function TP(t,e,r,n,i){var a={},o=a.interval=Dy(e/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=el(o),l=a.niceTickExtent=[st(Math.ceil(t[0]/o)*o,s),st(Math.floor(t[1]/o)*o,s)];return CP(l,t),a}function up(t){var e=Math.pow(10,Cu(t)),r=t/e;return r?r===2?r=3:r===3?r=5:r*=2:r=1,st(r*e)}function el(t){return wn(t)+2}function Y1(t,e,r){t[e]=Math.max(Math.min(t[e],r[1]),r[0])}function CP(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Y1(t,0,e),Y1(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function fp(t,e){return t>=e[0]&&t<=e[1]}var DP=(function(){function t(){this.normalize=X1,this.scale=q1}return t.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Te(e.normalize,e),this.scale=Te(e.scale,e)):(this.normalize=X1,this.scale=q1)},t})();function X1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function q1(t,e){return t*(e[1]-e[0])+e[0]}function hp(t,e,r){var n=Math.log(t);return[Math.log(r?e[0]:Math.max(0,e[0]))/n,Math.log(r?e[1]:Math.max(0,e[1]))/n]}var si=(function(){function t(e){this._calculator=new DP,this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype._innerUnionExtent=function(e){var r=this._extent;this._innerSetExtent(e[0]<r[0]?e[0]:r[0],e[1]>r[1]?e[1]:r[1])},t.prototype.unionExtentFromData=function(e,r){this._innerUnionExtent(e.getApproximateExtent(r))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,r){this._innerSetExtent(e,r)},t.prototype._innerSetExtent=function(e,r){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},t.prototype.setBreaksFromOption=function(e){},t.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},t.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},t.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Mu(si);var EP=0,cp=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++EP,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,n=r.data,i=n&&Z(n,AP);return new t({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,n=this._needCollect;if(!Y(e)&&!n)return e;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var i=this._getOrCreateMap();return r=i.get(e),r==null&&(n?(r=this.categories.length,this.categories[r]=e,i.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=se(this.categories))},t})();function AP(t){return q(t)&&t.value!=null?t.value:t+""}var Z1=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new cp({})),W(i)&&(i=new cp({categories:Z(i,function(a){return q(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(r){return r==null?NaN:Y(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},e.prototype.contain=function(r){return fp(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},e.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},e.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e})(si);si.registerClass(Z1);var li=st,Ao=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return e.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},e.prototype.contain=function(r){return fp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=el(r)},e.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=cf(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:li(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,m){return Math.round((m-d)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=li(h+n,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(h,f);c>=0&&(h=li(h+c*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:a[1];return i[1]>v&&(r.expandToNicedExtent?l.push({value:li(v+n,o)}):l.push({value:i[1]})),r.breakTicks,l},e.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,c=h/r,v=el(c);u<r-1;){var d=li(l.value+(u+1)*c,v);d>a[0]&&d<a[1]&&f.push(d),u++}var m=cf();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=wn(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=li(r.value,i,!0);return E0(a)},e.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=TP(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=li(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=li(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},e.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},e.type="interval",e})(si);si.registerClass(Ao);var K1=typeof Float32Array<"u",MP=K1?Float32Array:Array;function Mn(t){return W(t)?K1?new Float32Array(t):t:new MP(t)}var LP="__ec_stack_";function j1(t){return t.get("stack")||LP+t.seriesIndex}function vp(t){return t.dim+t.index}function Q1(t,e){var r=[];return e.eachSeriesByType(t,function(n){ew(n)&&r.push(n)}),r}function IP(t){var e={};A(t,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),m=0,p=d.count();m<p;++m){var g=d.get(v,m);e[c]?e[c].push(g):e[c]=[g]}});var r={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function J1(t){var e=IP(t),r=[];return A(t,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=Be(n.get("barWidth"),s),m=Be(n.get("barMaxWidth"),s),p=Be(n.get("barMinWidth")||(tw(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:vp(a),stackId:j1(n)})}),PP(r)}function PP(t){var e={};A(t,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var c=n.barMinWidth;c&&(l[u].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return A(e,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Pe(a).length;s=Math.max(35-l*4,15)+"%"}var u=Be(s,o),f=Be(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,h-=b+f*b,c--}else{var b=v;y&&y<b&&(b=Math.min(y,h)),_&&_>b&&(b=_),b!==v&&(g.width=b,h-=b+f*b,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,m;A(a,function(g,y){g.width||(g.width=v),m=g,d+=g.width*(1+f)}),m&&(d-=m.width*f);var p=-d/2;A(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function kP(t,e,r){if(t&&e){var n=t[vp(e)];return n}}function NP(t,e){var r=Q1(t,e),n=J1(r);A(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=j1(i),u=n[vp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function OP(t){return{seriesType:t,plan:kd(),reset:function(e){if(ew(e)){var r=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=e.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Eo(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=RP(i,a),d=tw(e),m=e.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var w=_.count,S=d&&Mn(w*3),x=d&&l&&Mn(w*3),T=d&&Mn(w),C=n.master.getRect(),E=c?C.width:C.height,D,L=b.getStore(),M=0;(D=_.next())!=null;){var P=L.get(h?p:o,D),k=L.get(s,D),O=v,B=void 0;h&&(B=+P-L.get(o,D));var N=void 0,R=void 0,z=void 0,H=void 0;if(c){var F=n.dataToPoint([P,k]);if(h){var $=n.dataToPoint([B,k]);O=$[0]}N=O,R=F[1]+y,z=F[0]-O,H=g,Math.abs(z)<m&&(z=(z<0?-1:1)*m)}else{var F=n.dataToPoint([k,P]);if(h){var $=n.dataToPoint([k,B]);O=$[1]}N=F[0]+y,R=O,z=g,H=F[1]-O,Math.abs(H)<m&&(H=(H<=0?-1:1)*m)}d?(S[M]=N,S[M+1]=R,S[M+2]=c?z:H,x&&(x[M]=c?C.x:N,x[M+1]=c?R:C.y,x[M+2]=E),T[D]=D):b.setItemLayout(D,{x:N,y:R,width:z,height:H}),M+=3}d&&b.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function ew(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function tw(t){return t.pipelineContext&&t.pipelineContext.large}function RP(t,e){var r=e.model.get("startValue");return r||(r=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?r>0?r:1:r))}var BP=function(t,e,r,n){for(;r<n;){var i=r+n>>>1;t[i][1]<e?r=i+1:n=i}return r},rw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="time",n}return e.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pf(r.value,_0[UM(Ps(this._minLevelUnit))]||_0.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return YM(r,n,i,o,a)},e.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=gf(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=UP(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=gf(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=oa.length-1,h=0;return A(a,function(c){f=Math.min(f,me(oa,c.time.upperTimeUnit)),h=Math.max(h,c.time.level)}),a},e.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=gr,n[1]+=gr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-gr}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},e.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=qf.length,s=Math.min(BP(qf,this._approxInterval,0,o),o-1);this._interval=qf[s][1],this._intervalPrecision=el(this._interval),this._minLevelUnit=qf[Math.max(s-1,0)][0]},e.prototype.parse=function(r){return Ce(r)?r:+no(r)},e.prototype.contain=function(r){return fp(r,this._extent)},e.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},e.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},e.type="time",e})(Ao),qf=[["second",ed],["minute",td],["hour",Is],["quarter-day",Is*6],["half-day",Is*12],["day",gr*1.2],["half-week",gr*3.5],["week",gr*7],["month",gr*31],["quarter",gr*95],["half-year",y0/2],["year",y0]];function VP(t,e,r,n){return rd(new Date(e),t,n).getTime()===rd(new Date(r),t,n).getTime()}function FP(t,e){return t/=gr,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function zP(t){var e=30*gr;return t/=e,t>6?6:t>3?3:t>2?2:1}function HP(t){return t/=Is,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function nw(t,e){return t/=e?td:ed,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function GP(t){return Dy(t)}function WP(t,e,r){var n=Math.max(0,me(oa,e)-1);return rd(new Date(t),oa[n],r).getTime()}function $P(t,e){var r=new Date(0);r[t](1);var n=r.getTime();r[t](1+e);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function UP(t,e,r,n,i,a){var o=1e4,s=HM,l=0;function u(M,P,k,O,B,N,R){for(var z=$P(B,M),H=P,F=new Date(H);H<k&&H<=n[1];){if(R.push({value:H}),l++>o){process.env.NODE_ENV!=="production"&&pt("Exceed safe limit in time scale.");break}if(F[B](F[O]()+M),H=F.getTime(),a){var $=a.calcNiceTickMultiple(H,z);$>0&&(F[B](F[O]()+$*M),H=F.getTime())}}R.push({value:H,notAdd:!0})}function f(M,P,k){var O=[],B=!P.length;if(!VP(Ps(M),n[0],n[1],r)){B&&(P=[{value:WP(n[0],M,r)},{value:n[1]}]);for(var N=0;N<P.length-1;N++){var R=P[N].value,z=P[N+1].value;if(R!==z){var H=void 0,F=void 0,$=void 0,ie=!1;switch(M){case"year":H=Math.max(1,Math.round(e/gr/365)),F=b0(r),$=XM(r);break;case"half-year":case"quarter":case"month":H=zP(e),F=nd(r),$=w0(r);break;case"week":case"half-week":case"day":H=FP(e),F=id(r),$=S0(r),ie=!0;break;case"half-day":case"quarter-day":case"hour":H=HP(e),F=ad(r),$=x0(r);break;case"minute":H=nw(e,!0),F=od(r),$=T0(r);break;case"second":H=nw(e,!1),F=sd(r),$=C0(r);break;case"millisecond":H=GP(e),F=ld(r),$=D0(r);break}z>=n[0]&&R<=n[1]&&u(H,R,z,F,$,ie,O),M==="year"&&k.length>1&&N===0&&k.unshift({value:k[0].value-H})}}for(var N=0;N<O.length;N++)k.push(O[N])}}for(var h=[],c=[],v=0,d=0,m=0;m<s.length;++m){var p=Ps(s[m]);if($M(s[m])){f(s[m],h[h.length-1]||[],c);var g=s[m+1]?Ps(s[m+1]):null;if(p!==g){if(c.length){d=v,c.sort(function(M,P){return M.value-P.value});for(var y=[],_=0;_<c.length;++_){var b=c[_].value;(_===0||c[_-1].value!==b)&&(y.push(c[_]),b>=n[0]&&b<=n[1]&&v++)}var w=i/e;if(v>w*1.5&&d>w/1.5||(h.push(y),v>w||t===s[m]))break}c=[]}}}for(var S=et(Z(h,function(M){return et(M,function(P){return P.value>=n[0]&&P.value<=n[1]&&!P.notAdd})}),function(M){return M.length>0}),x=[],T=S.length-1,m=0;m<S.length;++m)for(var C=S[m],E=0;E<C.length;++E){var D=gf(C[E].value,r);x.push({value:C[E].value,time:{level:T-m,upperTimeUnit:D,lowerTimeUnit:D}})}x.sort(function(M,P){return M.value-P.value});for(var L=[],m=0;m<x.length;++m)(m===0||x[m].value!==x[m-1].value)&&L.push(x[m]);return L}si.registerClass(rw);var dp=st,YP=Math.floor,XP=Math.ceil,Zf=Math.pow,Kf=Math.log,iw=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ao,r}return e.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=t.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),Z(a,function(s){var l=s.value,u=null,f=Zf(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var h;return u!=null&&(f=pp(f,u)),{value:f,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=hp(this.base,[r,n]);t.prototype.setExtent.call(this,i[0],i[1])},e.prototype.getExtent=function(){var r=this.base,n=t.prototype.getExtent.call(this);n[0]=Zf(r,n[0]),n[1]=Zf(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=pp(n[0],i[0])),this._fixMax&&(n[1]=pp(n[1],i[1])),n},e.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=hp(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},e.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=WD(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[dp(XP(n[0]/a)*a),dp(YP(n[1]/a)*a)];this._interval=a,this._intervalPrecision=el(a),this._niceExtent=s}},e.prototype.calcNiceExtent=function(r){t.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},e.prototype.contain=function(r){return r=Kf(r)/Kf(this.base),t.prototype.contain.call(this,r)},e.prototype.normalize=function(r){return r=Kf(r)/Kf(this.base),t.prototype.normalize.call(this,r)},e.prototype.scale=function(r){return r=t.prototype.scale.call(this,r),Zf(this.base,r)},e.prototype.setBreaksFromOption=function(r){},e.type="log",e})(Ao);function pp(t,e){return dp(t,wn(e))}si.registerClass(iw);var qP=(function(){function t(e,r,n){this._prepareParams(e,r,n)}return t.prototype._prepareParams=function(e,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Q(o)?this._modelMinNum=jf(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=jf(e,o));var s=this._modelMaxRaw=r.get("max",!0);if(Q(s)?this._modelMaxNum=jf(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=jf(e,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=W(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Xn(u[0],1),Xn(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:r-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=Ha(s)||Ha(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},t.prototype.modifyDataMinMax=function(e,r){process.env.NODE_ENV!=="production"&&K(!this.frozen),this[KP[e]]=r},t.prototype.setDeterminedMinMax=function(e,r){var n=ZP[e];process.env.NODE_ENV!=="production"&&K(!this.frozen&&this[n]==null),this[n]=r},t.prototype.freeze=function(){this.frozen=!0},t})(),ZP={min:"_determinedMin",max:"_determinedMax"},KP={min:"_dataMin",max:"_dataMax"};function jP(t,e,r){var n=t.rawExtentInfo;return n||(n=new qP(t,e,r),t.rawExtentInfo=n,n)}function jf(t,e){return e==null?null:Ha(e)?NaN:t.parse(e)}function aw(t,e){var r=t.type,n=jP(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&r==="time"){var s=Q1("bar",o),l=!1;if(A(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=J1(s),f=QP(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function QP(t,e,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=kP(n,r.axis);if(o===void 0)return{min:t,max:e};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-t,h=1-(s+l)/a,c=f/h-f;return e+=c*(l/u),t-=c*(s/u),{min:t,max:e}}function ow(t,e){var r=e,n=aw(t,r),i=n.extent,a=r.get("splitNumber");t instanceof iw&&(t.base=r.get("logBase"));var o=t.type,s=r.get("interval"),l=o==="interval"||o==="time";t.setBreaksFromOption(lw(r)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function JP(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new Z1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new rw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(si.getClass(e)||Ao)}}function ek(t){var e=t.scale.getExtent(),r=e[0],n=e[1];return!(r>0&&n>0||r<0&&n<0)}function tl(t){var e=t.getLabelModel().get("formatter");if(t.type==="time"){var r=GM(e);return function(i,a){return t.scale.getFormattedLabel(i,a,r)}}else{if(Y(e))return function(i){var a=t.scale.getLabel(i),o=e.replace("{value}",a??"");return o};if(Q(e)){if(t.type==="category")return function(i,a){return e(Qf(t,i),i.value-t.scale.getExtent()[0],null)};var n=cf();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),e(Qf(t,i),a,o)}}else return function(i){return t.scale.getLabel(i)}}}function Qf(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function gp(t){var e=t.get("interval");return e??"auto"}function sw(t){return t.type==="category"&&gp(t.getLabelModel())===0}function tk(t,e){var r={};return A(t.mapDimensionsAll(e),function(n){r[yP(t,n)]=!0}),Pe(r)}function Mo(t){return t==="middle"||t==="center"}function rl(t){return t.getShallow("show")}function lw(t){var e=t.get("breaks",!0);if(e!=null){process.env.NODE_ENV!=="production"&&De('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}}var rk=(function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t})(),uw=[],nk={registerPreprocessor:P1,registerProcessor:k1,registerPostInit:XI,registerPostUpdate:qI,registerUpdateLifecycle:tp,registerAction:To,registerCoordinateSystem:ZI,registerLayout:KI,registerVisual:ma,registerTransform:QI,registerLoading:O1,registerMap:jI,registerImpl:EI,PRIORITY:zI,ComponentModel:ye,ComponentView:Or,SeriesModel:Nr,ChartView:br,registerComponentModel:function(t){ye.registerClass(t)},registerComponentView:function(t){Or.registerClass(t)},registerSeriesModel:function(t){Nr.registerClass(t)},registerChartView:function(t){br.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){ye.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){RD(t,e)}};function ui(t){if(W(t)){A(t,function(e){ui(e)});return}me(uw,t)>=0||(uw.push(t),Q(t)&&(t={install:t}),t.install(nk))}var ik=Ve(),nl=Ve(),Br={estimate:1,determine:2};function Jf(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function fw(t,e){var r=Z(e,function(n){return t.scale.parse(n)});return t.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function ak(t,e){var r=t.getLabelModel().get("customValues");if(r){var n=tl(t),i=t.scale.getExtent(),a=fw(t,r),o=et(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:Z(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return t.type==="category"?sk(t,e):uk(t)}function ok(t,e,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=fw(t,n);return{ticks:et(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?lk(t,e):{ticks:Z(t.scale.getTicks(r),function(o){return o.value})}}function sk(t,e){var r=t.getLabelModel(),n=hw(t,r,e);return!r.get("show")||t.scale.isBlank()?{labels:[]}:n}function hw(t,e,r){var n=hk(t),i=gp(e),a=r.kind===Br.estimate;if(!a){var o=vw(n,i);if(o)return o}var s,l;Q(i)?s=gw(t,i):(l=i==="auto"?ck(t,r):i,s=pw(t,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return mp(n,i,u),!0}):mp(n,i,u),u}function lk(t,e){var r=fk(t),n=gp(e),i=vw(r,n);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),Q(n))a=gw(t,n,!0);else if(n==="auto"){var s=hw(t,t.getLabelModel(),Jf(Br.determine));o=s.labelCategoryInterval,a=Z(s.labels,function(l){return l.tickValue})}else o=n,a=pw(t,o,!0);return mp(r,n,{ticks:a,tickCategoryInterval:o})}function uk(t){var e=t.scale.getTicks(),r=tl(t);return{labels:Z(e,function(n,i){return{formattedLabel:r(n,i),rawLabel:t.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var fk=cw("axisTick"),hk=cw("axisLabel");function cw(t){return function(r){return nl(r)[t]||(nl(r)[t]={list:[]})}}function vw(t,e){for(var r=0;r<t.list.length;r++)if(t.list[r].key===e)return t.list[r].value}function mp(t,e,r){return t.list.push({key:e,value:r}),r}function ck(t,e){if(e.kind===Br.estimate){var r=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return nl(t).autoInterval=r,!0}),r}var n=nl(t).autoInterval;return n??(nl(t).autoInterval=t.calculateCategoryInterval(e))}function vk(t,e){var r=e.kind,n=pk(t),i=tl(t),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],c=t.dataToCoord(h+1)-t.dataToCoord(h),v=Math.abs(c*Math.cos(a)),d=Math.abs(c*Math.sin(a)),m=0,p=0;h<=s[1];h+=u){var g=0,y=0,_=_y(i({value:h}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,m=Math.max(m,g,7),p=Math.max(p,y,7)}var b=m/v,w=p/d;isNaN(b)&&(b=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(b,w)));if(r===Br.estimate)return e.out.noPxChangeTryDetermine.push(Te(dk,null,t,S,l)),S;var x=dw(t,S,l);return x??S}function dk(t,e,r){return dw(t,e,r)==null}function dw(t,e,r){var n=ik(t.model),i=t.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-e)<=1&&Math.abs(o-r)<=1&&a>e&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=e,n.axisExtent0=i[0],n.axisExtent1=i[1]}function pk(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function pw(t,e,r){var n=tl(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=sw(t),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);v&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function gw(t,e,r){var n=t.scale,i=tl(t),a=[];return A(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var mw=[0,1],gk=(function(){function t(e,r,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=r,this._extent=n||[0,0]}return t.prototype.contain=function(e){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return e>=n&&e<=i},t.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return FD(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,r){var n=this._extent;n[0]=e,n[1]=r},t.prototype.dataToCoord=function(e,r){var n=this._extent,i=this.scale;return e=i.normalize(i.parse(e)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),yw(n,i.count())),Kc(e,mw,n,r)},t.prototype.coordToData=function(e,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),yw(n,i.count()));var a=Kc(e,n,mw,r);return this.scale.scale(a)},t.prototype.pointToData=function(e,r){},t.prototype.getTicksCoords=function(e){e=e||{};var r=e.tickModel||this.getTickModel(),n=ok(this,r,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),i=n.ticks,a=Z(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return mk(this,a,o,e.clamp),a},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),r=e.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Z(n,function(a){return Z(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(e){return e=e||Jf(Br.determine),ak(this,e).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(e){return e=e||Jf(Br.determine),vk(this,e)},t})();function yw(t,e){var r=t[1]-t[0],n=e,i=r/n/2;t[0]+=i,t[1]-=i}function mk(t,e,r,n){var i=e.length;if(!t.onBand||r||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],e[0].onBand=!0,o=e[1]={coord:a[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;A(e,function(v){v.coord-=u/2,v.onBand=!0});var f=t.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var h=a[0]>a[1];c(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&c(a[0],e[0].coord)&&e.unshift({coord:a[0],onBand:!0}),c(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&c(o.coord,a[1])&&e.push({coord:a[1],onBand:!0});function c(v,d){return v=st(v),d=st(d),h?v>d:v<d}}function _w(t,e,r,n,i,a,o,s){var l=i-t,u=a-e,f=r-t,h=n-e,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;d*=c;var m=o[0]=t+d*f,p=o[1]=e+d*h;return Math.sqrt((m-i)*(m-i)+(p-a)*(p-a))}var fi=new ne,We=new ne,ft=new ne,hi=new ne,ln=new ne,eh=[],Dt=new ne;function yk(t,e){if(e<=180&&e>0){e=e/180*Math.PI,fi.fromArray(t[0]),We.fromArray(t[1]),ft.fromArray(t[2]),ne.sub(hi,fi,We),ne.sub(ln,ft,We);var r=hi.len(),n=ln.len();if(!(r<.001||n<.001)){hi.scale(1/r),ln.scale(1/n);var i=hi.dot(ln),a=Math.cos(e);if(a<i){var o=_w(We.x,We.y,ft.x,ft.y,fi.x,fi.y,eh);Dt.fromArray(eh),Dt.scaleAndAdd(ln,o/Math.tan(Math.PI-e));var s=ft.x!==We.x?(Dt.x-We.x)/(ft.x-We.x):(Dt.y-We.y)/(ft.y-We.y);if(isNaN(s))return;s<0?ne.copy(Dt,We):s>1&&ne.copy(Dt,ft),Dt.toArray(t[1])}}}}function _k(t,e,r){if(r<=180&&r>0){r=r/180*Math.PI,fi.fromArray(t[0]),We.fromArray(t[1]),ft.fromArray(t[2]),ne.sub(hi,We,fi),ne.sub(ln,ft,We);var n=hi.len(),i=ln.len();if(!(n<.001||i<.001)){hi.scale(1/n),ln.scale(1/i);var a=hi.dot(e),o=Math.cos(r);if(a<o){var s=_w(We.x,We.y,ft.x,ft.y,fi.x,fi.y,eh);Dt.fromArray(eh);var l=Math.PI/2,u=Math.acos(ln.dot(e)),f=l+u-r;if(f>=l)ne.copy(Dt,ft);else{Dt.scaleAndAdd(ln,s/Math.tan(Math.PI/2-f));var h=ft.x!==We.x?(Dt.x-We.x)/(ft.x-We.x):(Dt.y-We.y)/(ft.y-We.y);if(isNaN(h))return;h<0?ne.copy(Dt,We):h>1&&ne.copy(Dt,ft)}Dt.toArray(t[1])}}}}function yp(t,e,r,n){var i=r==="normal",a=i?t:t.ensureState(r);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function bk(t,e){var r=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=nc(n[0],n[1]),a=nc(n[1],n[2]);if(!i||!a){t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=ic([],n[1],n[0],o/i),l=ic([],n[1],n[2],o/a),u=ic([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)t.lineTo(n[f][0],n[f][1])}function wk(t,e,r){var n=t.getTextGuideLine(),i=t.getTextContent();if(!i){n&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Fu.length;l++){var u=Fu[l],f=e[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:j(i.states[u]&&i.states[u].ignore,s);if(v||!j(c,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&yp(n,!0,u,f);continue}n||(n=new Ts,t.setTextGuideLine(n),!h&&(s||!o)&&yp(n,!0,"normal",e.normal),t.stateProxy&&(n.stateProxy=t.stateProxy)),yp(n,!1,u,f)}}if(n){xe(n.style,r),n.style.fill=null;var m=a.get("showAbove"),p=t.textGuideLineConfig=t.textGuideLineConfig||{};p.showAbove=m||!1,n.buildPath=bk}}function Sk(t,e){e=e||"labelLine";for(var r={normal:t.getModel(e)},n=0;n<dr.length;n++){var i=dr[n];r[i]=t.getModel([i,e])}return r}var bw=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],xk=1,th=2,ww=xk|th;function rh(t,e,r){r=r||ww,e?t.dirty|=r:t.dirty&=~r}function Sw(t,e){return e=e||ww,t.dirty==null||!!(t.dirty&e)}function ci(t){if(t)return Sw(t)&&xw(t,t.label,t),t}function xw(t,e,r){var n=e.getComputedTransform();t.transform=Zv(t.transform,n);var i=t.localRect=As(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=co.textMargin);for(var h=0;h<4;h++)_p[h]=f===co.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===co.textMargin&&rf(i,_p,!1,!1);var c=t.rect=As(t.rect,i);return n&&c.applyTransform(n),f===co.minMargin&&rf(c,_p,!1,!1),t.axisAligned=qv(n),(t.label=t.label||{}).ignore=e.ignore,rh(t,!1),rh(t,!0,th),t}var _p=[0,0,0,0];function Tk(t,e,r){return t.transform=Zv(t.transform,r),t.localRect=As(t.localRect,e),t.rect=As(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=qv(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function Ck(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,r)}}function Tw(t,e){for(var r=0;r<bw.length;r++){var n=bw[r];t[n]==null&&(t[n]=e[n])}return ci(t)}function Cw(t){var e=t.obb;return(!e||Sw(t,th))&&(t.obb=e=e||new Z_,e.fromBoundingRect(t.localRect,t.transform),rh(t,!1,th)),e}function Dk(t,e,r,n,i){var a=t.length,o=ei[e],s=ho[e];if(a<2)return!1;t.sort(function(x,T){return x.rect[o]-T.rect[o]});for(var l=0,u,f=!1,h=0;h<a;h++){var c=t[h],v=c.rect;u=v[o]-l,u<0&&(v[o]-=u,c.label[o]-=u,f=!0),l=v[o]+v[s]}var d=t[0],m=t[a-1],p,g;y(),p<0&&w(-p,.8),g<0&&w(g,.8),y(),_(p,g,1),_(g,p,-1),y(),p<0&&S(-p),g<0&&S(g);function y(){p=d.rect[o]-r,g=n-m.rect[o]-m.rect[s]}function _(x,T,C){if(x<0){var E=Math.min(T,-x);if(E>0){b(E*C,0,a);var D=E+x;D<0&&w(-D*C,1)}else w(-x*C,1)}}function b(x,T,C){x!==0&&(f=!0);for(var E=T;E<C;E++){var D=t[E],L=D.rect;L[o]+=x,D.label[o]+=x}}function w(x,T){for(var C=[],E=0,D=1;D<a;D++){var L=t[D-1].rect,M=Math.max(t[D].rect[o]-L[o]-L[s],0);C.push(M),E+=M}if(E){var P=Math.min(Math.abs(x)/E,T);if(x>0)for(var D=0;D<a-1;D++){var k=C[D]*P;b(k,0,D+1)}else for(var D=a-1;D>0;D--){var k=C[D-1]*P;b(-k,D,a)}}}function S(x){var T=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(a-1)),E=0;E<a-1;E++)if(T>0?b(C,0,E+1):b(-C,a-E-1,a),x-=C,x<=0)return}return f}function Ek(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<t.length;n++){var i=ci(t[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(bp(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(i)}}}function bp(t,e,r,n){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,n)?!1:t.axisAligned&&e.axisAligned?!0:Cw(t).intersect(Cw(e),r,n)}var Ak=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.hasSymbolVisual=!0,r}return e.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return sp(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(r){var n=new tt,i=bo("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=bo(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=X.color.neutral00,u.style.lineWidth=2),n},e.type="series.line",e.dependencies=["grid","polar"],e.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:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e})(Nr);function wp(t,e){var r=t.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=go(t,e,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(go(t,e,r[o]));return a.join(" ")}}function Dw(t,e){var r=t.mapDimensionsAll("defaultedLabel");if(!W(e))return e+"";for(var n=[],i=0;i<r.length;i++){var a=t.getDimensionIndex(r[i]);a>=0&&n.push(e[a])}return n.join(" ")}var Sp=(function(t){J(e,t);function e(r,n,i,a){var o=t.call(this)||this;return o.updateData(r,n,i,a),o}return e.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=bo(r,-1,-1,2,2,null,s);l.attr({z2:j(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Mk,this._symbolType=r,this.add(l)},e.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){$u(this.childAt(0))},e.prototype.downplay=function(){Uu(this.childAt(0))},e.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},e.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},e.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=e.getSymbolSize(r,n),u=e.getSymbolZ2(r,n),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,c)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?v.attr(d):Ct(v,d,s,n),Hv(v)}if(this._updateCommon(r,n,l,i,a),f){var v=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,pr(v,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,h,c,v,d,m,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),m=Ls(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var w=Yb(r.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),g&&s.attr("cursor",g);var S=r.getItemVisual(n,"style"),x=S.fill;if(s instanceof jn){var T=s.style;s.useStyle(V({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},S))}else s.__isEmptyBrush?s.useStyle(V({},S)):s.useStyle(S),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=r.getItemVisual(n,"liftZ"),E=this._z2;C!=null?E==null&&(this._z2=s.z2,s.z2+=C):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;Ms(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:x,defaultOpacity:S.opacity});function L(k){return D?r.getName(k):wp(r,k)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),bs(this,c,v,d)},e.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},e.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=de(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&tf(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();tf(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},e.getSymbolSize=function(r,n){return fI(r.getItemVisual(n,"symbolSize"))},e.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},e})(tt);function Mk(t,e){this.parent.drift(t,e)}function xp(t,e,r,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&t.getItemVisual(r,"symbol")!=="none"}function Ew(t){return t!=null&&!q(t)&&(t={isIgnore:t}),t||{}}function Aw(t){var e=t.hostModel,r=e.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Ls(e),cursorStyle:e.get("cursor")}}var Lk=(function(){function t(e){this.group=new tt,this._SymbolCtor=e||Sp}return t.prototype.updateData=function(e,r){this._progressiveEls=null,r=Ew(r);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Aw(e),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var c=f(h);if(xp(e,c,h,r)){var v=new o(e,h,l,u);v.setPosition(c),e.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!xp(e,d,h,r)){n.remove(v);return}var m=e.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==m)n.remove(v),v=new o(e,h,l,u),v.setPosition(d);else{v.updateData(e,h,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):Ct(v,g,i)}n.add(v),e.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=e},t.prototype.updateLayout=function(){var e=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Aw(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,r,n){this._progressiveEls=[],n=Ew(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=r.getItemLayout(a);if(xp(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){af(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var r=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},t})();function Mw(t,e,r){var n=t.getBaseAxis(),i=t.getOtherAxis(n),a=Ik(i,r),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=Z(t.dimensions,function(d){return e.mapDimension(d)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return Eo(e,h[0])&&(c=!0,h[0]=v),Eo(e,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ik(t,e){var r=0,n=t.scale.getExtent();return e==="start"?r=n[0]:e==="end"?r=n[1]:Ce(e)&&!isNaN(e)?r=e:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Lw(t,e,r,n){var i=NaN;t.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=r.get(t.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function Pk(t,e){var r=[];return e.diff(t).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function kk(t,e,r,n,i,a,o,s){for(var l=Pk(t,e),u=[],f=[],h=[],c=[],v=[],d=[],m=[],p=Mw(i,e,o),g=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],w=!0,S=void 0,x=void 0;switch(b.cmd){case"=":S=b.idx*2,x=b.idx1*2;var T=g[S],C=g[S+1],E=y[x],D=y[x+1];(isNaN(T)||isNaN(C))&&(T=E,C=D),u.push(T,C),f.push(E,D),h.push(r[S],r[S+1]),c.push(n[x],n[x+1]),m.push(e.getRawIndex(b.idx1));break;case"+":var L=b.idx,M=p.dataDimsForPoint,P=i.dataToPoint([e.get(M[0],L),e.get(M[1],L)]);x=L*2,u.push(P[0],P[1]),f.push(y[x],y[x+1]);var k=Lw(p,i,e,L);h.push(k[0],k[1]),c.push(n[x],n[x+1]),m.push(e.getRawIndex(L));break;case"-":w=!1}w&&(v.push(b),d.push(d.length))}d.sort(function(Ae,ht){return m[Ae]-m[ht]});for(var O=u.length,B=Mn(O),N=Mn(O),R=Mn(O),z=Mn(O),H=[],_=0;_<d.length;_++){var F=d[_],$=_*2,ie=F*2;B[$]=u[ie],B[$+1]=u[ie+1],N[$]=f[ie],N[$+1]=f[ie+1],R[$]=h[ie],R[$+1]=h[ie+1],z[$]=c[ie],z[$+1]=c[ie+1],H[_]=v[F]}return{current:B,next:N,stackedOnCurrent:R,stackedOnNext:z,status:H}}var vi=Math.min,di=Math.max;function ya(t,e){return isNaN(t)||isNaN(e)}function Tp(t,e,r,n,i,a,o,s,l){for(var u,f,h,c,v,d,m=r,p=0;p<n;p++){var g=e[m*2],y=e[m*2+1];if(m>=i||m<0)break;if(ya(g,y)){if(l){m+=a;continue}break}if(m===r)t[a>0?"moveTo":"lineTo"](g,y),h=g,c=y;else{var _=g-u,b=y-f;if(_*_+b*b<.5){m+=a;continue}if(o>0){for(var w=m+a,S=e[w*2],x=e[w*2+1];S===g&&x===y&&p<n;)p++,w+=a,m+=a,S=e[w*2],x=e[w*2+1],g=e[m*2],y=e[m*2+1],_=g-u,b=y-f;var T=p+1;if(l)for(;ya(S,x)&&T<n;)T++,w+=a,S=e[w*2],x=e[w*2+1];var C=.5,E=0,D=0,L=void 0,M=void 0;if(T>=n||ya(S,x))v=g,d=y;else{E=S-u,D=x-f;var P=g-u,k=S-g,O=y-f,B=x-y,N=void 0,R=void 0;if(s==="x"){N=Math.abs(P),R=Math.abs(k);var z=E>0?1:-1;v=g-z*N*o,d=y,L=g+z*R*o,M=y}else if(s==="y"){N=Math.abs(O),R=Math.abs(B);var H=D>0?1:-1;v=g,d=y-H*N*o,L=g,M=y+H*R*o}else N=Math.sqrt(P*P+O*O),R=Math.sqrt(k*k+B*B),C=R/(R+N),v=g-E*o*(1-C),d=y-D*o*(1-C),L=g+E*o*C,M=y+D*o*C,L=vi(L,di(S,g)),M=vi(M,di(x,y)),L=di(L,vi(S,g)),M=di(M,vi(x,y)),E=L-g,D=M-y,v=g-E*N/R,d=y-D*N/R,v=vi(v,di(u,g)),d=vi(d,di(f,y)),v=di(v,vi(u,g)),d=di(d,vi(f,y)),E=g-v,D=y-d,L=g+E*R/N,M=y+D*R/N}t.bezierCurveTo(h,c,v,d,g,y),h=L,c=M}else t.lineTo(g,y)}u=g,f=y,m+=a}return p}var Iw=(function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t})(),Nk=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:X.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Iw},e.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&ya(i[o*2-2],i[o*2-1]);o--);for(;a<o&&ya(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Tp(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Qi.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,m=void 0,p=void 0,g=void 0,y=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=u?(r-s)/(v-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(v-s)*_+s;return u?[r,b]:[b,r]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],m=a[h++],p=a[h++],g=a[h++],y=a[h++];var w=u?au(s,v,m,g,r,f):au(l,d,p,y,r,f);if(w>0)for(var S=0;S<w;S++){var x=f[S];if(x<=1&&x>=0){var b=u?ot(l,d,p,y,x):ot(s,v,m,g,x);return u?[r,b]:[b,r]}}s=g,l=y;break}}},e})(Ee),Ok=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Iw),Rk=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new Ok},e.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&ya(i[s*2-2],i[s*2-1]);s--);for(;o<s&&ya(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Tp(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Tp(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},e})(Ee);function Pw(t,e,r,n,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new He({shape:{x:o,y:s,width:l,height:u}});if(e){var c=t.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var m=Q(i)?function(p){i(p,h)}:null;pr(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return h}function kw(t,e,r){var n=t.getArea(),i=st(n.r0,1),a=st(n.r,1),o=new Qn({shape:{cx:st(t.cx,1),cy:st(t.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,pr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Bk(t,e,r,n,i){if(t){if(t.type==="polar")return kw(t,e,r);if(t.type==="cartesian2d")return Pw(t,e,r,n,i)}else return null;return null}function Cp(t,e){return t.type===e}function Nw(t,e){if(t.length===e.length){for(var r=0;r<t.length;r++)if(t[r]!==e[r])return;return!0}}function Ow(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[e,r],[n,i]]}function Rw(t,e){var r=Ow(t),n=r[0],i=r[1],a=Ow(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Bw(t){return Ce(t)?t:t?.5:0}function Vk(t,e,r){if(!r.valueDim)return[];for(var n=e.count(),i=Mn(n*2),a=0;a<n;a++){var o=Lw(r,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function pi(t,e,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(i){for(l=0;l<t.length;l+=2){var v=e||t;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(t[l],t[l+1])}t=c}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],f[0]=t[l],f[1]=t[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,m=[];u[o]=m[o]=d,u[1-o]=f[1-o],m[1-o]=h[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function Fk(t,e){var r=[],n=t.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),m=uD(d,[f.color,h.color]);return{coord:c,color:m}}for(var s=0;s<n;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?r.push(o(a,l,e)):i&&r.push(o(i,l,0),o(i,l,e));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function zk(t,e,r){var n=t.getVisual("visualMeta");if(!(!n||!n.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,a,o=n.length-1;o>=0;o--){var s=t.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(!a){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=Z(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=Fk(u,i==="x"?r.getWidth():r.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,m=c[0].coord-d,p=c[v-1].coord+d,g=p-m;if(g<.001)return"transparent";A(c,function(_){_.offset=(_.coord-m)/g}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var y=new q_(0,0,0,0,c,!0);return y[i]=m,y[i+"2"]=p,y}}function Hk(t,e,r){var n=t.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&Gk(a,e))){var o=e.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function Gk(t,e){var r=t.getExtent(),n=Math.abs(r[1]-r[0])/t.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Sp.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>n)return!1;return!0}function Wk(t,e){return isNaN(t)||isNaN(e)}function $k(t){for(var e=t.length/2;e>0&&Wk(t[e*2-2],t[e*2-1]);e--);return e-1}function Vw(t,e){return[t[e*2],t[e*2+1]]}function Uk(t,e,r){for(var n=t.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function Fw(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<dr.length;e++)if(t.get([dr[e],"endLabel","show"]))return!0;return!1}function Dp(t,e,r,n){if(Cp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Fw(n)?function(v,d){t._endLabelOnDuring(v,d,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=Pw(e,r,n,function(){var v=t._endLabel;v&&r&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),kw(e,r,n)}function Yk(t,e){var r=e.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var Xk=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var r=new tt,n=new Lk;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=Te(this._changePolyState,this)},e.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,m=this._polygon,p=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=Mw(a,s,_),w=y&&Vk(a,s,b),S=r.get("showSymbol"),x=r.get("connectNulls"),T=S&&!h&&Hk(r,s,a),C=this._data;C&&C.eachItemGraphicEl(function(Ae,ht){Ae.__temp&&(o.remove(Ae),C.setItemGraphicEl(ht,null))}),S||v.remove(),o.add(p);var E=h?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=zk(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&E===this._step))S&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),E&&(w&&(w=pi(w,f,a,E,x)),f=pi(f,null,a,E,x)),d=this._newPolyline(f),y?m=this._newPolygon(f,w):m&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,sa(L)),p.setClipPath(Dp(this,a,!0,r));else{y&&!m?m=this._newPolygon(f,w):m&&!y&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,sa(L));var M=p.getClipPath();if(M){var P=Dp(this,a,!1,r);pr(M,{shape:P.shape},r)}else p.setClipPath(Dp(this,a,!0,r));S&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(Ae){return[f[Ae*2],f[Ae*2+1]]}}),(!Nw(this._stackedOnPoints,w)||!Nw(this._points,f))&&(g?this._doUpdateAnimation(s,w,a,i,E,_,x):(E&&(w&&(w=pi(w,f,a,E,x)),f=pi(f,null,a,E,x)),d.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:w})))}var k=r.getModel("emphasis"),O=k.get("focus"),B=k.get("blurScope"),N=k.get("disabled");if(d.useStyle(xe(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Yu(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var R=d.getState("emphasis").style;R.lineWidth=+d.style.lineWidth+1}de(d).seriesIndex=r.seriesIndex,bs(d,O,B,N);var z=Bw(r.get("smooth")),H=r.get("smoothMonotone");if(d.setShape({smooth:z,smoothMonotone:H,connectNulls:x}),m){var F=s.getCalculationInfo("stackedOnSeries"),$=0;m.useStyle(xe(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&($=Bw(F.get("smooth"))),m.setShape({smooth:z,stackedOnSmooth:$,smoothMonotone:H,connectNulls:x}),Yu(m,r,"areaStyle"),de(m).seriesIndex=r.seriesIndex,bs(m,O,B,N)}var ie=this._changePolyState;s.eachItemGraphicEl(function(Ae){Ae&&(Ae.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=E,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),m&&this.packEventData(r,m))},e.prototype.packEventData=function(r,n){de(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},e.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=$i(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=r.get("zlevel")||0,v=r.get("z")||0;u=new Sp(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else br.prototype.highlight.call(this,r,n,i,a)},e.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=$i(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else br.prototype.downplay.call(this,r,n,i,a)},e.prototype._changePolyState=function(r){var n=this._polygon;T_(this._polyline,r),n&&T_(n,r)},e.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new Nk({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Rk({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");Q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=Q(h)?h(null):h;r.eachItemGraphicEl(function(v,d){var m=v;if(m){var p=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,w=n.pointToCoord(p);a?(g=b.startAngle,y=b.endAngle,_=-w[1]/180*Math.PI):(g=b.r0,y=b.r,_=w[0])}else{var S=i;a?(g=S.x,y=S.x+S.width,_=v.x):(g=S.y+S.height,y=S.y,_=v.y)}var x=y===g?0:(_-g)/(y-g);l&&(x=1-x);var T=Q(h)?h(d):f*x+c,C=m.getSymbolPath(),E=C.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Fw(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new lt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=$k(l);f>=0&&(Ms(s,Ls(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Dw(o,v):wp(o,h)},enableTextSetter:!0},Yk(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,w=(g?m:0)*(y?-1:1),S=(g?0:-m)*(y?-1:1),x=g?"x":"y",T=Uk(h,b,x),C=T.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!v){var L=Vw(h,C[0]);u.attr({x:L[0]+w,y:L[1]+S}),o&&(D=c.getRawValue(C[0]))}else{var L=f.getPointOn(b,x);L&&u.attr({x:L[0]+w,y:L[1]+S});var M=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=oE(i,d,M,P,T.t))}a.lastFrameIndex=C[0]}else{var k=r===1||a.lastFrameIndex>0?C[0]:0,L=Vw(h,k);o&&(D=c.getRawValue(k)),u.attr({x:L[0]+w,y:L[1]+S})}if(o){var O=lf(u);typeof O.setLabelText=="function"&&O.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,c=kk(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,m=c.next,p=c.stackedOnNext;if(o&&(d=pi(c.stackedOnCurrent,c.current,i,o,l),v=pi(c.current,null,i,o,l),p=pi(c.stackedOnNext,c.next,i,o,l),m=pi(c.next,null,i,o,l)),Rw(v,m)>3e3||f&&Rw(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var g={shape:{points:m}};c.current!==v&&(g.shape.__points=c.next),u.stopAnimation(),Ct(u,g,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),Ct(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,b=0;b<_.length;b++){var w=_[b].cmd;if(w==="="){var S=r.getItemGraphicEl(_[b].idx1);S&&y.push({el:S,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<y.length;T++){var C=y[T].el,E=y[T].ptIdx*2;C.x=x[E],C.y=x[E+1],C.markRedraw()}})},e.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(br);function qk(t,e){return{seriesType:t,plan:kd(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=Z(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Eo(n,a[0])&&(a[0]=s),Eo(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=Mn(v*o),m=[],p=[],g=h.start,y=0;g<h.end;g++){var _=void 0;if(o===1){var b=l.get(u,g);_=i.dataToPoint(b,null,p)}else m[0]=l.get(u,g),m[1]=l.get(f,g),_=i.dataToPoint(m,null,p);d[y++]=_[0],d[y++]=_[1]}c.setLayout("points",d)}}}}}}var Zk={average:function(t){for(var e=0,r=0,n=0;n<t.length;n++)isNaN(t[n])||(e+=t[n],r++);return r===0?NaN:e/r},sum:function(t){for(var e=0,r=0;r<t.length;r++)e+=t[r]||0;return e},max:function(t){for(var e=-1/0,r=0;r<t.length;r++)t[r]>e&&(e=t[r]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,r=0;r<t.length;r++)t[r]<e&&(e=t[r]);return isFinite(e)?e:NaN},nearest:function(t){return t[0]}},Kk=function(t){return Math.round(t.length/2)};function zw(t){return{seriesType:t,reset:function(e,r,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/v)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/v));var d=void 0;Y(a)?d=Zk[a]:Q(a)&&(d=a),d&&e.setData(i.downSample(i.mapDimension(u.dim),1/v,d,Kk))}}}}}function jk(t){t.registerChartView(Xk),t.registerSeriesModel(Ak),t.registerLayout(qk("line")),t.registerVisual({seriesType:"line",reset:function(e){var r=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,zw("line"))}var Ep=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(r,n){return sp(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)A(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),m=c.getTickModel().get("alignWithLabel"),p=o[v],g=n[v]==="x1"||n[v]==="y1";if(g&&!m&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,b=1,w=0;w<d.length;w++){var S=d[w].coord,x=w===d.length-1?d[w-1].tickValue+b:d[w].tickValue;if(x===p){_=S;break}else if(x<p)y=S;else if(y!=null&&x>p){_=(S+y)/2;break}w===1&&(b=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(Nr);Nr.registerClass(Ep);var Qk=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.getInitialData=function(){return sp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},e.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=p0(Ep.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:X.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Ep),Jk=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})(),Hw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Jk},e.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var m=Math.cos(f),p=Math.sin(f),g=Math.cos(h),y=Math.sin(h);d?(r.moveTo(m*o+i,p*o+a),r.arc(m*u+i,p*u+a,l,-Math.PI+f,f,!c)):r.moveTo(m*s+i,p*s+a),r.arc(i,a,s,f,h,!c),r.arc(g*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&r.arc(i,a,o,h,f,c)},e})(Ee);function eN(t,e){e=e||{};var r=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return wu(n,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,m=u.startAngle,p=u.endAngle,g=(m+p)/2,y=r?Math.abs(c-v)/2:0,_=Math.cos,b=Math.sin,w=f+c*_(m),S=h+c*b(m),x="left",T="top";switch(s){case"startArc":w=f+(v-l)*_(g),S=h+(v-l)*b(g),x="center",T="top";break;case"insideStartArc":w=f+(v+l)*_(g),S=h+(v+l)*b(g),x="center",T="bottom";break;case"startAngle":w=f+d*_(m)+nh(m,l+y,!1),S=h+d*b(m)+ih(m,l+y,!1),x="right",T="middle";break;case"insideStartAngle":w=f+d*_(m)+nh(m,-l+y,!1),S=h+d*b(m)+ih(m,-l+y,!1),x="left",T="middle";break;case"middle":w=f+d*_(g),S=h+d*b(g),x="center",T="middle";break;case"endArc":w=f+(c+l)*_(g),S=h+(c+l)*b(g),x="center",T="bottom";break;case"insideEndArc":w=f+(c-l)*_(g),S=h+(c-l)*b(g),x="center",T="top";break;case"endAngle":w=f+d*_(p)+nh(p,l+y,!0),S=h+d*b(p)+ih(p,l+y,!0),x="left",T="middle";break;case"insideEndAngle":w=f+d*_(p)+nh(p,-l+y,!0),S=h+d*b(p)+ih(p,-l+y,!0),x="right",T="middle";break;default:return wu(n,i,a)}return n=n||{},n.x=w,n.y=S,n.align=x,n.verticalAlign=T,n}}function tN(t,e,r,n){if(Ce(n)){t.setTextConfig({rotation:n});return}else if(W(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:t.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),t.setTextConfig({rotation:f})}function nh(t,e,r){return e*Math.sin(t)*(r?-1:1)}function ih(t,e,r){return e*Math.cos(t)*(r?1:-1)}function il(t,e,r){var n=t.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;W(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Z(n,function(a){return Xn(a,i)})}}var Ap=Math.max,Mp=Math.min;function rN(t,e){var r=t.getArea&&t.getArea();if(Cp(t,"cartesian2d")){var n=t.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var nN=(function(t){J(e,t);function e(){var r=t.call(this)||this;return r.type=e.type,r._isFirstFrame=!0,r}return e.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a)):process.env.NODE_ENV!=="production"&&pt("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},e.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},e.prototype.eachRendered=function(r){af(this._progressiveEls||this.group,r)},e.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=r.isAnimationEnabled()?r:null,v=iN(r,u);v&&this._enableRealtimeSort(v,s,i);var d=r.get("clip",!0)||v,m=rN(u,s);o.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],w=this._backgroundEls,S=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(D){var L=ah[u.type](s,D);if(!L)return null;var M=hN(u,h,L);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[D]=M,M}s.diff(l).add(function(D){var L=s.getItemModel(D),M=ah[u.type](s,D,L);if(M&&(g&&T(D),!(!s.hasValue(D)||!Yw[u.type](M)))){var P=!1;d&&(P=Gw[u.type](m,M));var k=Ww[u.type](r,s,D,M,h,c,f.model,!1,p);v&&(k.forceLabelAnimation=!0),qw(k,s,D,L,M,r,h,u.type==="polar"),S?k.attr({shape:M}):v?$w(v,c,k,M,D,h,!1,!1):pr(k,{shape:M},r,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,L){var M=s.getItemModel(D),P=ah[u.type](s,D,M);if(P){if(g){var k=void 0;w.length===0?k=T(L):(k=w[L],k.useStyle(y.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),b[D]=k);var O=ah[u.type](s,D),B=Qw(h,O,u);Ct(k,{shape:B},c,D)}var N=l.getItemGraphicEl(L);if(!s.hasValue(D)||!Yw[u.type](P)){o.remove(N);return}var R=!1;d&&(R=Gw[u.type](m,P),R&&o.remove(N));var z=N&&(N.type==="sector"&&p||N.type==="sausage"&&!p);if(z&&(N&&Ds(N,r,L),N=null),N?Hv(N):N=Ww[u.type](r,s,D,P,h,c,f.model,!0,p),v&&(N.forceLabelAnimation=!0),x){var H=N.getTextContent();if(H){var F=lf(H);F.prevValue!=null&&(F.prevValue=F.value)}}else qw(N,s,D,M,P,r,h,u.type==="polar");S?N.attr({shape:P}):v?$w(v,c,N,P,D,h,!0,x):Ct(N,{shape:P},r,D,null),s.setItemGraphicEl(D,N),N.ignore=R,o.add(N)}}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Ds(L,r,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new tt);C.removeAll();for(var E=0;E<b.length;++E)C.add(b[E]);o.add(C),this._backgroundEls=b,this._data=s},e.prototype._renderLarge=function(r,n,i){this._clear(),Kw(r,this.group),this._updateLargeClip(r)},e.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),Kw(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Bk(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Z(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ds(a,r,de(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e})(br),Gw={cartesian2d:function(t,e){var r=e.width<0?-1:1,n=e.height<0?-1:1;r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=Ap(e.x,t.x),s=Mp(e.x+e.width,i),l=Ap(e.y,t.y),u=Mp(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,r<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(t,e){var r=e.r0<=e.r?1:-1;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}var i=Mp(e.r,t.r),a=Ap(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(r<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},Ww={cartesian2d:function(t,e,r,n,i,a,o,s,l){var u=new He({shape:V({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(t,e,r,n,i,a,o,s,l){var u=!i&&l?Hw:Qn,f=new u({shape:n,z2:1});f.name="item";var h=Xw(i);if(f.calculateTextPosition=eN(h,{isRoundCap:u===Hw}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?Ct:pr)(f,{shape:d},a)}return f}};function iN(t,e){var r=t.get("realtimeSort",!0),n=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&pt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&pt("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function $w(t,e,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ct:pr)(r,{shape:l},e,i,null);var f=e?t.baseAxis.model:null;(o?Ct:pr)(r,{shape:u},f,i)}function Uw(t,e){for(var r=0;r<e.length;r++)if(!isFinite(t[e[r]]))return!0;return!1}var aN=["x","y","width","height"],oN=["cx","cy","r","startAngle","endAngle"],Yw={cartesian2d:function(t){return!Uw(t,aN)},polar:function(t){return!Uw(t,oN)}},ah={cartesian2d:function(t,e,r){var n=t.getItemLayout(e);if(!n)return null;var i=r?lN(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(t,e,r){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function sN(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function Xw(t){return(function(e){var r=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(t)}function qw(t,e,r,n,i,a,o,s){var l=e.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=t.shape,h=il(n.getModel("itemStyle"),f,!0);V(f,h),t.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var c=n.getShallow("cursor");c&&t.attr("cursor",c);var v=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=Ls(n);Ms(t,d,{labelFetcher:a,labelDataIndex:r,defaultText:wp(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var m=t.getTextContent();if(s&&m){var p=n.get(["label","position"]);t.textConfig.inside=p==="middle"?!0:null,tN(t,p==="outside"?v:p,Xw(o),n.get(["label","rotate"]))}xM(m,d,a.getRawValue(r),function(y){return Dw(e,y)});var g=n.getModel(["emphasis"]);bs(t,g.get("focus"),g.get("blurScope"),g.get("disabled")),Yu(t,n),sN(i)&&(t.style.fill="none",t.style.stroke="none",A(t.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function lN(t,e){var r=t.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var uN=(function(){function t(){}return t})(),Zw=(function(t){J(e,t);function e(r){var n=t.call(this,r)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new uN},e.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},e})(Ee);function Kw(t,e,r,n){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Zw({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),r&&r.push(f)}var h=new Zw({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,de(h).seriesIndex=t.seriesIndex,t.get("silent")||(h.on("mousedown",jw),h.on("mousemove",jw)),r&&r.push(h)}var jw=Nd(function(t){var e=this,r=fN(e,t.offsetX,t.offsetY);de(e).dataIndex=r>=0?r:null},30,!1);function fN(t,e,r){for(var n=t.baseDimIdx,i=1-n,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[n]=u,l[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Qw(t,e,r){if(Cp(r,"cartesian2d")){var n=e,i=r.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}else{var i=r.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function hN(t,e,r){var n=t.type==="polar"?Qn:He;return new n({shape:Qw(e,r,t),silent:!0,z2:0})}function cN(t){t.registerChartView(nN),t.registerSeriesModel(Qk),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,$e(NP,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,OP("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,zw("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,r){var n=e.componentType||"series";r.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Jw=Math.PI*2,oh=Math.PI/180;function vN(t,e,r){e.eachSeriesByType(t,function(n){var i=n.getData(),a=i.mapDimension("value"),o=nL(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,h=o.viewRect,c=-n.get("startAngle")*oh,v=n.get("endAngle"),d=n.get("padAngle")*oh;v=v==="auto"?c-Jw:-v*oh;var m=n.get("minAngle")*oh,p=m+d,g=0;i.each(a,function(B){!isNaN(B)&&g++});var y=i.getSum(a),_=Math.PI/(y||g)*2,b=n.get("clockwise"),w=n.get("roseType"),S=n.get("stillShowZeroSum"),x=i.getDataExtent(a);x[0]=0;var T=b?1:-1,C=[c,v],E=T*d/2;r_(C,!b),c=C[0],v=C[1];var D=eS(n);D.startAngle=c,D.endAngle=v,D.clockwise=b,D.cx=s,D.cy=l,D.r=u,D.r0=f;var L=Math.abs(v-c),M=L,P=0,k=c;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(B,N){var R;if(isNaN(B)){i.setItemLayout(N,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:w?NaN:u});return}w!=="area"?R=y===0&&S?_:B*_:R=L/g,R<p?(R=p,M-=p):P+=B;var z=k+T*R,H=0,F=0;d>R?(H=k+T*R/2,F=H):(H=k+E,F=z-E),i.setItemLayout(N,{angle:R,startAngle:H,endAngle:F,clockwise:b,cx:s,cy:l,r0:f,r:w?Kc(B,x,[f,u]):u}),k=z}),M<Jw&&g)if(M<=.001){var O=L/g;i.each(a,function(B,N){if(!isNaN(B)){var R=i.getItemLayout(N);R.angle=O;var z=0,H=0;O<d?(z=c+T*(N+.5)*O,H=z):(z=c+T*N*O+E,H=c+T*(N+1)*O-E),R.startAngle=z,R.endAngle=H}})}else _=M/P,k=c,i.each(a,function(B,N){if(!isNaN(B)){var R=i.getItemLayout(N),z=R.angle===p?p:B*_,H=0,F=0;z<d?(H=k+T*z/2,F=H):(H=k+E,F=k+T*z-E),R.startAngle=H,R.endAngle=F,k+=T*z}})})}var eS=Ve();function dN(t){return{seriesType:t,reset:function(e,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var pN=Math.PI/180;function tS(t,e,r,n,i,a,o,s,l,u){if(t.length<2)return;function f(m){for(var p=m.rB,g=p*p,y=0;y<m.list.length;y++){var _=m.list[y],b=Math.abs(_.label.y-r),w=n+_.len,S=w*w,x=Math.sqrt(Math.abs((1-b*b/g)*S)),T=e+(x+_.len2)*i,C=T-_.label.x,E=_.targetTextWidth-C*i;rS(_,E,!0),_.label.x=T}}function h(m){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if(m[y].labelAlignTo==="none"){var _=m[y],b=_.label.y>r?g:p,w=Math.abs(_.label.y-r);if(w>=b.maxY){var S=_.label.x-e-_.len2*i,x=n+_.len,T=Math.abs(S)<x?Math.sqrt(w*w/(1-S*S/x/x)):x;b.rB=T,b.maxY=w}b.list.push(_)}f(p),f(g)}for(var c=t.length,v=0;v<c;v++)if(t[v].position==="outer"&&t[v].labelAlignTo==="labelLine"){var d=t[v].label.x-u;t[v].linePoints[1][0]+=d,t[v].label.x=u}Dk(t,1,l,l+o)&&h(t)}function gN(t,e,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<t.length;c++){var v=t[c].label;Lp(t[c])||(v.x<e?(f=Math.min(f,v.x),l.push(t[c])):(h=Math.max(h,v.x),u.push(t[c])))}for(var c=0;c<t.length;c++){var d=t[c];if(!Lp(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,m=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<e?p=m[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-m[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<e?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:v.x<e?p=v.x-o-d.bleedMargin:p=o+i-v.x-d.bleedMargin,d.targetTextWidth=p,rS(d,p,!1)}}tS(u,e,r,n,1,i,a,o,s,h),tS(l,e,r,n,-1,i,a,o,s,f);for(var c=0;c<t.length;c++){var d=t[c];if(!Lp(d)&&d.linePoints){var v=d.label,m=d.linePoints,g=d.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,b=v.style.backgroundColor?0:_,w=d.rect.width+b,S=m[1][0]-m[2][0];g?v.x<e?m[2][0]=o+d.edgeDistance+w+d.labelDistance:m[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(v.x<e?m[2][0]=v.x+d.labelDistance:m[2][0]=v.x-d.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=v.y}}}function rS(t,e,r){if(t.labelStyleWidth==null){var n=t.label,i=n.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,v=e<f?c:r?c>t.unconstrainedWidth?null:c:null;n.setStyle("width",v)}nS(a,n)}}}function nS(t,e){iS.rect=t,xw(iS,e,mN)}var mN={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},iS={};function Lp(t){return t.position==="center"}function yN(t){var e=t.getData(),r=[],n,i,a=!1,o=(t.get("minShowLabelAngle")||0)*pN,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(S){S.ignore=!0}function d(S){if(!S.ignore)return!0;for(var x in S.states)if(S.states[x].ignore===!1)return!0;return!1}e.each(function(S){var x=e.getItemGraphicEl(S),T=x.shape,C=x.getTextContent(),E=x.getTextGuideLine(),D=e.getItemModel(S),L=D.getModel("label"),M=L.get("position")||D.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),k=L.get("alignTo"),O=Be(L.get("edgeDistance"),u),B=L.get("bleedMargin");B==null&&(B=Math.min(u,c)>200?10:2);var N=D.getModel("labelLine"),R=N.get("length");R=Be(R,u);var z=N.get("length2");if(z=Be(z,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,v),C.ignore=!0,E&&(A(E.states,v),E.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,F=Math.cos(H),$=Math.sin(H),ie,Ae,ht,At;n=T.cx,i=T.cy;var _t=M==="inside"||M==="inner";if(M==="center")ie=T.cx,Ae=T.cy,At="center";else{var ct=(_t?(T.r+T.r0)/2*F:T.r*F)+n,Ye=(_t?(T.r+T.r0)/2*$:T.r*$)+i;if(ie=ct+F*3,Ae=Ye+$*3,!_t){var re=ct+F*(R+l-T.r),ue=Ye+$*(R+l-T.r),cn=re+(F<0?-1:1)*z,it=ue;k==="edge"?ie=F<0?f+O:f+u-O:ie=cn+(F<0?-P:P),Ae=it,ht=[[ct,Ye],[re,ue],[cn,it]]}At=_t?"center":k==="edge"?F>0?"right":"left":F>0?"left":"right"}var Si=Math.PI,Rn=0,yl=L.get("rotate");if(Ce(yl))Rn=yl*(Si/180);else if(M==="center")Rn=0;else if(yl==="radial"||yl===!0){var jR=F<0?-H+Si:-H;Rn=jR}else if(yl==="tangential"&&M!=="outside"&&M!=="outer"){var Vo=Math.atan2(F,$);Vo<0&&(Vo=Si*2+Vo);var QR=$>0;QR&&(Vo=Si+Vo),Rn=Vo-Si}if(a=!!Rn,C.x=ie,C.y=Ae,C.rotation=Rn,C.setStyle({verticalAlign:"middle"}),_t){C.setStyle({align:At});var ag=C.states.select;ag&&(ag.x+=C.x,ag.y+=C.y)}else{var ig=new oe(0,0,0,0);nS(ig,C),r.push({label:C,labelLine:E,position:M,len:R,len2:z,minTurnAngle:N.get("minTurnAngle"),maxSurfaceAngle:N.get("maxSurfaceAngle"),surfaceNormal:new ne(F,$),linePoints:ht,textAlign:At,labelDistance:P,labelAlignTo:k,edgeDistance:O,bleedMargin:B,rect:ig,unconstrainedWidth:ig.width,labelStyleWidth:C.style.width})}x.setTextConfig({inside:_t})}}),!a&&t.get("avoidLabelOverlap")&&gN(r,n,i,l,u,c,f,h);for(var m=0;m<r.length;m++){var p=r[m],g=p.label,y=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(A(g.states,v),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var w=p.linePoints;_||!w?(A(y.states,v),y.ignore=!0):(yk(w,p.minTurnAngle),_k(w,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:w}),g.__hostTarget.textGuideLineConfig={anchor:new ne(w[0][0],w[0][1])})}}}var _N=(function(t){J(e,t);function e(r,n,i){var a=t.call(this)||this;a.z2=2;var o=new lt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return e.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=V(il(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(pr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,pr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),pr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ct(o,{shape:{endAngle:f.endAngle}},s,n))}else Hv(o),Ct(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Yu(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(v)*d,p=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=V({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},il(u.getModel("itemStyle"),f)),V(o.ensureState("select"),{x:m,y:p,shape:il(l.getModel(["select","itemStyle"]),f)}),V(o.ensureState("blur"),{shape:il(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&V(y.ensureState("select"),{x:m,y:p}),V(_.ensureState("select"),{x:m,y:p}),bs(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Ms(a,Ls(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new Ts,this.setTextGuideLine(v)),wk(this,Sk(o),{stroke:u,opacity:yn(s.get(["lineStyle","opacity"]),f,1)})}},e})(Qn),bN=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return e.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var c=eS(r),v=new Qn({shape:fe(c)});v.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var m=new _N(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var p=s.getItemGraphicEl(m);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var m=s.getItemGraphicEl(d);Ds(m,r,d)}).execute(),yN(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e})(br);function wN(t,e,r){e=W(e)&&{coordDimensions:e}||V({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=U1(n,e).dimensions,a=new $1(i,t);return a.initData(n,r),a}var SN=(function(){function t(e,r){this._getDataWithEncodedVisual=e,this._getRawData=r}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var r=this._getRawData();return r.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var r=this._getDataWithEncodedVisual();return r.indexOfName(e)},t.prototype.getItemVisual=function(e,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,r)},t})(),xN=Ve(),aS=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new SN(Te(this.getData,this),Te(this.getRawData,this)),this._defaultLabelLine(r)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return wN(this,{coordDimensions:["value"],encodeDefaulter:$e(hL,this)})},e.prototype.getDataParams=function(r){var n=this.getData(),i=xN(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=zD(o,n.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(r){Jc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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"},e})(Nr);KM({fullType:aS.type,getCoord2:function(t){return t.getShallow("center")}});function TN(t){return{seriesType:t,reset:function(e,r){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Ce(o)&&!isNaN(o)&&o<0)})}}}function CN(t){t.registerChartView(bN),t.registerSeriesModel(aS),j2("pie",t.registerAction),t.registerLayout($e(vN,"pie")),t.registerProcessor(dN("pie")),t.registerProcessor(TN("pie"))}var oS={left:0,right:0,top:0,bottom:0},sh=["25%","25%"],DN=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(r,n){var i=Rs(r.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&ii(r.outerBounds,i)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&ii(this.option.outerBounds,r.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:oS,outerBoundsContain:"all",outerBoundsClampWidth:sh[0],outerBoundsClampHeight:sh[1],backgroundColor:X.color.transparent,borderWidth:1,borderColor:X.color.neutral30},e})(ye),Ip=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fr).models[0]},e.type="cartesian2dAxis",e})(ye);Ur(Ip,rk);var sS={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:X.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:X.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:X.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[X.color.backgroundTint,X.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:X.color.neutral00,borderColor:X.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},EN=we({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},sS),Pp=we({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:X.color.axisMinorSplitLine,width:1}}},sS),AN=we({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pp),MN=xe({logBase:10},Pp);const LN={category:EN,value:Pp,time:AN,log:MN};var IN={value:1,category:1,time:1,log:1},PN=null;function kN(){return PN}function lS(t,e,r,n){A(IN,function(i,a){var o=we(we({},LN[a],!0),n,!0),s=(function(l){J(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Os(this),v=c?Rs(f):{},d=h.getTheme();we(f,d.get(a+"Axis")),we(f,this.getDefaultOption()),f.type=uS(f),c&&ii(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=cp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=e+"Axis."+a,u.defaultOption=o,u})(r);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",uS)}function uS(t){return t.type||(t.data?"category":"value")}var NN=(function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return Z(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),et(this.getAxes(),function(r){return r.scale.type===e})},t.prototype.addAxis=function(e){var r=e.dim;this._axes[r]=e,this._dimList.push(r)},t})(),kp=["x","y"];function fS(t){return(t.type==="interval"||t.type==="time")&&!t.hasBreaks()}var ON=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=kp,r}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!fS(r)||!fS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=es([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},e.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},e.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new oe(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return or(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return or(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},e.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},e.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new oe(a,o,s,l)},e})(NN),RN=(function(t){J(e,t);function e(r,n,i,a,o){var s=t.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},e.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},e})(gk),BN="expandAxisBreak",gi=Math.PI,VN=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],FN=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],al=Ve(),hS=Ve(),cS=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,n=e.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},t})();function zN(t,e,r,n){var i=r.axis,a=e.ensureRecord(r),o=[],s,l=Op(t.axisName)&&Mo(t.nameLocation);A(n,function(d){var m=ci(d);if(!(!m||m.label.ignore)){o.push(m);var p=a.transGroup;l&&(p.transform?es(ol,p.transform):cc(ol),m.transform&&Jo(ol,ol,m.transform),oe.copy(lh,m.localRect),lh.applyTransform(ol),s?s.union(lh):oe.copy(s=new oe(0,0,0,0),lh))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,m){return Math.abs(d.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var h=i.getExtent(),c=Math.min(h[0],h[1]),v=Math.max(h[0],h[1])-c;s.union(new oe(c,0,v,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ol=_n(),lh=new oe(0,0,0,0),vS=function(t,e,r,n,i,a){if(Mo(t.nameLocation)){var o=a.stOccupiedRect;o&&dS(Tk({},o,a.transGroup.transform),n,i)}else pS(a.labelInfoList,a.dirVec,n,i)};function dS(t,e,r){var n=new ne;bp(t,e,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&Ck(e,n)}function pS(t,e,r,n){for(var i=ne.dot(n,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||dS(s,r,n)}}var mi=(function(){function t(e,r,n,i){this.group=new tt,this._axisModel=e,this._api=r,this._local={},this._shared=i||new cS(vS),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(e){if(process.env.NODE_ENV!=="production"){var r=this._shared.ensureRecord(this._axisModel).ready;K(!r.axisLine&&!r.axisTickLabelDetermine),r.axisName=r.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=j(e.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=j(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:j(e.nameDirection,1),tickDirection:j(e.tickDirection,1),labelDirection:j(e.labelDirection,1),labelOffset:j(e.labelOffset,0),silent:j(e.silent,!0),axisName:i,nameLocation:yn(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Op(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};process.env.NODE_ENV!=="production"&&(K(o.position!=null),K(o.rotation!=null)),this._cfg=o;var s=new tt({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new ne(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var n=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(HN,function(i){e[i]&&GN[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},t.innerTextLayout=function(e,r,n){var i=Cy(r-e),a,o;return Tu(i)?(o=n>0?"top":"bottom",a="center"):Tu(i-gi)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<gi?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+"Index"]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||r&&r.show)},t})(),HN=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],GN={axisLine:function(t,e,r,n,i,a,o){if(process.env.NODE_ENV!=="production"){var s=r.ensureRecord(n).ready;K(!s.axisLine),s.axisLine=!0}var l=n.get(["axisLine","show"]);if(l==="auto"&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=n.axis.getExtent(),f=a.transform,h=[u[0],0],c=[u[1],0],v=h[0]>c[0];f&&(or(h,h,f),or(c,c,f));var d=V({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),m={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:d};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())kN().buildAxisBreakLine(n,i,a,m);else{var p=new Jn(V({shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]}},m));Es(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var g=n.get(["axisLine","symbol"]);if(g!=null){var y=n.get(["axisLine","symbolSize"]);Y(g)&&(g=[g,g]),(Y(y)||Ce(y))&&(y=[y,y]);var _=Yb(n.get(["axisLine","symbolOffset"])||0,y),b=y[0],w=y[1];A([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((h[0]-c[0])*(h[0]-c[0])+(h[1]-c[1])*(h[1]-c[1]))}],function(S,x){if(g[x]!=="none"&&g[x]!=null){var T=bo(g[x],-b/2,-w/2,b,w,d.stroke,!0),C=S.r+S.offset,E=v?c:h;T.attr({rotation:S.rotate,x:E[0]+C*Math.cos(t.rotation),y:E[1]-C*Math.sin(t.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;K(!l.axisTickLabelDetermine),l.axisTickLabelEstimate=!0}var u=yS(e,i,s);u&&gS(t,e,r,n,i,a,o,Br.estimate)},axisTickLabelDetermine:function(t,e,r,n,i,a,o,s){if(process.env.NODE_ENV!=="production"){var l=r.ensureRecord(n).ready;l.axisTickLabelDetermine=!0}var u=yS(e,i,s);u&&gS(t,e,r,n,i,a,o,Br.determine);var f=YN(t,i,a,n);UN(t,e.labelLayoutList,f),XN(t,i,a,n,t.tickDirection)},axisName:function(t,e,r,n,i,a,o,s){var l=r.ensureRecord(n);if(process.env.NODE_ENV!=="production"){var u=l.ready;K(u.axisTickLabelEstimate||u.axisTickLabelDetermine),u.axisName=!0}e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(Op(f)){var h=t.nameLocation,c=t.nameDirection,v=n.getModel("nameTextStyle"),d=n.get("nameGap")||0,m=n.axis.getExtent(),p=n.axis.inverse?-1:1,g=new ne(0,0),y=new ne(0,0);h==="start"?(g.x=m[0]-p*d,y.x=-p):h==="end"?(g.x=m[1]+p*d,y.x=p):(g.x=(m[0]+m[1])/2,g.y=t.labelOffset+c*d,y.y=c);var _=_n();y.transform(dc(_,_,t.rotation));var b=n.get("nameRotate");b!=null&&(b=b*gi/180);var w,S;Mo(h)?w=mi.innerTextLayout(t.rotation,b??t.rotation,c):(w=WN(t.rotation,h,b||0,m),S=t.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(w.rotation)),!isFinite(S)&&(S=null)));var x=v.getFont(),T=n.get("nameTruncate",!0)||{},C=T.ellipsis,E=Ga(t.raw.nameTruncateMaxWidth,T.maxWidth,S),D=s.nameMarginLevel||0,L=new lt({x:g.x,y:g.y,rotation:w.rotation,silent:mi.isLabelSilent(n),style:ti(v,{text:f,font:x,overflow:"truncate",width:E,ellipsis:C,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||w.textAlign,verticalAlign:v.get("verticalAlign")||w.textVerticalAlign}),z2:1});if(nf({el:L,componentModel:n,itemName:f}),L.__fullText=f,L.anid="name",n.get("triggerEvent")){var M=mi.makeAxisEventDataBase(n);M.targetType="axisName",M.name=f,de(L).eventData=M}a.add(L),L.updateTransform(),e.nameEl=L;var P=l.nameLayout=ci({label:L,priority:L.z2,defaultAttr:{ignore:L.ignore},marginDefault:Mo(h)?VN[D]:FN[D]});if(l.nameLocation=h,i.add(L),L.decomposeTransform(),t.shouldNameMoveOverlap&&P){var k=r.ensureRecord(n);process.env.NODE_ENV!=="production"&&K(k.labelInfoList),r.resolveAxisNameOverlap(t,r,n,P,y,k)}}}};function gS(t,e,r,n,i,a,o,s){_S(e)||qN(t,e,i,s,n,o);var l=e.labelLayoutList;ZN(t,n,l,a),t.rotation;var u=t.optionHideOverlap;$N(n,l,u),u&&Ek(et(l,function(f){return f&&!f.label.ignore})),zN(t,r,n,l)}function WN(t,e,r,n){var i=Cy(r-t),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Tu(i-gi/2)?(o=l?"bottom":"top",a="center"):Tu(i-gi*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<gi*1.5&&i>gi/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function $N(t,e,r){if(sw(t.axis))return;function n(s,l,u){var f=ci(e[l]),h=ci(e[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){sl(f.label);return}if(h.suggestIgnore){sl(h.label);return}var c=.1;if(!r){var v=[0,0,0,0];f=Tw({marginForce:v},f),h=Tw({marginForce:v},h)}bp(f,h,null,{touchThreshold:c})&&sl(s?h.label:f.label)}}var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),o=e.length;n(i,0,1),n(a,o-1,o-2)}function UN(t,e,r){t.showMinorTicks||A(e,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=hS(a),s=al(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){sl(a);return}}})}function sl(t){t&&(t.ignore=!0)}function mS(t,e,r,n,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(or(o,o,e),or(s,s,e));var f=new Jn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Es(f.shape,f.style.lineWidth),f.anid=i+"_"+t[l].tickValue,a.push(f);var h=hS(f);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function YN(t,e,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),f=mS(u,r.transform,l,xe(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)e.add(f[h]);return f}function XN(t,e,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=xe(l.getLineStyle(),xe(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var c=mS(s[h],r.transform,u,f,"minorticks_"+h),v=0;v<c.length;v++)e.add(c[v])}}function yS(t,e,r){if(_S(t)){var n=t.axisLabelsCreationContext;process.env.NODE_ENV!=="production"&&K(t.labelGroup&&n);var i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),Np(t,null,null,null))}return!0}function qN(t,e,r,n,i,a){var o=i.axis,s=Ga(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new tt;r.add(l);var u=Jf(n);if(!s||o.scale.isBlank()){Np(e,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),c=(Ga(t.raw.labelRotate,f.get("rotate"))||0)*gi/180,v=mi.innerTextLayout(t.rotation,c,t.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],p=i.get("triggerEvent"),g=1/0,y=-1/0;A(h,function(b,w){var S,x=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,T=b.formattedLabel,C=b.rawLabel,E=f;if(d&&d[x]){var D=d[x];q(D)&&D.textStyle&&(E=new Fe(D.textStyle,f,i.ecModel))}var L=E.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=E.getShallow("align",!0)||v.textAlign,P=j(E.getShallow("alignMinLabel",!0),M),k=j(E.getShallow("alignMaxLabel",!0),M),O=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||v.textVerticalAlign,B=j(E.getShallow("verticalAlignMinLabel",!0),O),N=j(E.getShallow("verticalAlignMaxLabel",!0),O),R=10+(((S=b.time)===null||S===void 0?void 0:S.level)||0);g=Math.min(g,R),y=Math.max(y,R);var z=new lt({x:0,y:0,rotation:0,silent:mi.isLabelSilent(i),z2:R,style:ti(E,{text:T,align:w===0?P:w===h.length-1?k:M,verticalAlign:w===0?B:w===h.length-1?N:O,fill:Q(L)?L(o.type==="category"?C:o.type==="value"?x+"":x,w):L})});z.anid="label_"+x;var H=al(z);if(H.break=b.break,H.tickValue=x,H.layoutRotation=v.rotation,nf({el:z,componentModel:i,itemName:T,formatterParamsExtra:{isTruncated:function(){return z.isTruncated},value:C,tickIndex:w}}),p){var F=mi.makeAxisEventDataBase(i);F.targetType="axisLabel",F.value=C,F.tickIndex=w,b.break&&(F.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(F.dataIndex=x),de(z).eventData=F,b.break&&jN(i,a,z,b.break)}m.push(z),l.add(z)});var _=Z(m,function(b){return{label:b,priority:al(b).break?b.z2+(y-g+1):b.z2,defaultAttr:{ignore:b.ignore}}});Np(e,_,l,u)}function _S(t){return!!t.labelLayoutList}function Np(t,e,r,n){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=n}function ZN(t,e,r,n){var i=e.get(["axisLabel","margin"]);A(r,function(a,o){var s=ci(a);if(s){var l=s.label,u=al(l);s.suggestIgnore=l.ignore,l.ignore=!1,$c(Ln,KN),Ln.x=e.axis.dataToCoord(u.tickValue),Ln.y=t.labelOffset+t.labelDirection*i,Ln.rotation=u.layoutRotation,n.add(Ln),Ln.updateTransform(),n.remove(Ln),Ln.decomposeTransform(),$c(l,Ln),l.markRedraw(),rh(s,!0),ci(s)}})}var Ln=new He,KN=new He;function Op(t){return!!t}function jN(t,e,r,n){r.on("click",function(i){var a={type:BN,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(a)})}function nB(t,e,r){}function uh(t,e,r){r=r||{};var n=e.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,c=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var v=a.toGlobalCoord(a.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}i.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Ga(r.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=e.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function QN(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function bS(t){var e={xAxisModel:null,yAxisModel:null};return A(e,function(r,n){var i=n.replace(/Model$/,""),a=t.getReferringComponents(i,fr).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+yn(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[n]=a}),e}function JN(t,e,r,n,i,a){for(var o=uh(t,r),s=!1,l=!1,u=0;u<e.length;u++)lp(e[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new mi(r,n,o,i)}function eO(t,e,r){var n=uh(e,r);if(process.env.NODE_ENV!=="production"){var i=t.__getRawCfg();A(Pe(n),function(a){a!=="position"&&a!=="labelOffset"&&K(n[a]===i[a])})}t.updateCfg(n)}function tO(t,e,r){var n,i=Ao.prototype,a=i.getTicks.call(r),o=i.getTicks.call(r,{expandToNicedExtent:!0}),s=a.length-1,l=i.getInterval.call(r),u=aw(t,e),f=u.extent,h=u.fixMin,c=u.fixMax;t.type==="log"&&(f=hp(t.base,f,!0)),t.setBreaksFromOption(lw(e)),t.setExtent(f[0],f[1]),t.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:c});var v=i.getExtent.call(t);h&&(f[0]=v[0]),c&&(f[1]=v[1]);var d=i.getInterval.call(t),m=f[0],p=f[1];if(h&&c)d=(p-m)/s;else if(h)for(p=f[0]+d*s;p<f[1]&&isFinite(p)&&isFinite(f[1]);)d=up(d),p=f[0]+d*s;else if(c)for(m=f[1]-d*s;m>f[0]&&isFinite(m)&&isFinite(f[0]);)d=up(d),m=f[1]-d*s;else{var g=t.getTicks().length-1;g>s&&(d=up(d));var y=d*s;p=Math.ceil(f[1]/d)*d,m=st(p-y),m<0&&f[0]>=0?(m=0,p=st(y)):p>0&&f[1]<=0&&(p=0,m=-st(y))}var _=(a[0].value-o[0].value)/l,b=(a[s].value-o[s].value)/l;if(i.setExtent.call(t,m+d*_,p+d*b),i.setInterval.call(t,d),(_||b)&&i.setNiceExtent.call(t,m+d,p-d),process.env.NODE_ENV!=="production"){var w=i.getTicks.call(t);w[1]&&(!xP(d)||Qc(w[1].value)>Qc(d))&&pt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+(" and alignTicks: true. ("+((n=e.axis)===null||n===void 0?void 0:n.dim)+"AxisIndex: "+e.componentIndex+")"),!0)}}var wS=[[3,1],[0,2]],rO=(function(){function t(e,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kp,this._initCartesian(e,r,n),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,r){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=Pe(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,m=v.scale;lp(m)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(ow(m,d),lp(m)&&(s=v))}f.length&&(s||(s=f.pop(),ow(s.scale,s.model)),A(f,function(p){tO(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};A(n.x,function(o){SS(n,"y",o,a)}),A(n.y,function(o){SS(n,"x",o,a)}),this.resize(this.model,r)},t.prototype.resize=function(e,r,n){var i=wf(e,r),a=this._rect=ni(e.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(TS(o,a),!n){var u=iO(a,s,o,l,r),f=void 0;if(l)process.env.NODE_ENV!=="production"&&Py("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),f=DS(a.clone(),"axisLabel",null,a,o,u,i);else{var h=aO(e,a,i),c=h.outerBoundsRect,v=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;c&&(f=DS(c,v,d,a,o,u,i))}ES(a,o,Br.determine,null,f,i)}A(this._coordsList,function(m){m.calcAffineTransform()})},t.prototype.getAxis=function(e,r){var n=this._axesMap[e];if(n!=null)return n[r||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,r){if(e!=null&&r!=null){var n="x"+e+"y"+r;return this._coordsMap[n]}q(e)&&(r=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===r)return a[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(e,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(e){var r=e.seriesModel,n=e.xAxisModel||r&&r.getReferringComponents("xAxis",fr).models[0],i=e.yAxisModel||r&&r.getReferringComponents("yAxis",fr).models[0],a=e.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,me(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},t.prototype.containPoint=function(e){var r=this._coordsList[0];if(r)return r.containPoint(e)},t.prototype._initCartesian=function(e,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,m=new ON(d);m.master=i,m.model=e,i._coordsMap[d]=m,i._coordsList.push(m),m.addAxis(f),m.addAxis(c)})});function u(f){return function(h,c){if(Rp(h,e)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new RN(f,JP(h),[0,0],h.get("type"),v),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},t.prototype._updateScale=function(e,r){A(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(QN(i)){var a=bS(i),o=a.xAxisModel,s=a.yAxisModel;if(!Rp(o,r)||!Rp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){A(tk(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var r=[],n=[];return A(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);me(r,a)<0&&r.push(a),me(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},t.create=function(e,r){var n=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){JM({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=bS(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!u)throw new Error('Grid "'+yn(s.get("gridIndex"),s.get("gridId"),0)+'" not found');if(s.getCoordSysModel()!==l.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},t.dimensions=kp,t})();function Rp(t,e){return t.getCoordSysModel()===e}function SS(t,e,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)xS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&xS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function xS(t){return t&&t.type!=="category"&&t.type!=="time"&&ek(t)}function nO(t,e){var r=t.getExtent(),n=r[0]+r[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return n-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}function TS(t,e){A(t.x,function(r){return CS(r,e.x,e.width)}),A(t.y,function(r){return CS(r,e.y,e.height)})}function CS(t,e,r){var n=[0,r],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),nO(t,e)}function DS(t,e,r,n,i,a,o){process.env.NODE_ENV!=="production"&&K(e==="all"||e==="axisLabel"),ES(n,i,Br.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=hC(s,function(c){return c>0})==null;return rf(n,s,!0,!0,r),TS(i,n),l;function u(c){A(i[ei[c]],function(v){if(rl(v.model)){var d=a.ensureRecord(v.model),m=d.labelInfoList;if(m)for(var p=0;p<m.length;p++){var g=m[p],y=v.scale.normalize(al(g.label).tickValue);y=c===1?1-y:y,f(g.rect,c,y),f(g.rect,1-c,NaN)}var _=d.nameLayout;if(_){var y=Mo(d.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,d){var m=t[ei[v]]-c[ei[v]],p=c[ho[v]]+c[ei[v]]-(t[ho[v]]+t[ei[v]]);m=h(m,1-d),p=h(p,d);var g=wS[v][0],y=wS[v][1];s[g]=Yt(s[g],m),s[y]=Yt(s[y],p)}function h(c,v){return c>0&&!Ha(v)&&v>1e-4&&(c/=v),c}}function iO(t,e,r,n,i){var a=new cS(oO);return A(r,function(o){return A(o,function(s){if(rl(s.model)){var l=!n;s.axisBuilder=JN(t,e,s.model,i,a,l)}})}),a}function ES(t,e,r,n,i,a){var o=r===Br.determine;A(e,function(u){return A(u,function(f){rl(f.model)&&(eO(f.axisBuilder,t,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ei[1-u]]=t[ho[u]]<=a.refContainer[ho[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(h){rl(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function aO(t,e,r){var n,i=t.get("outerBoundsMode",!0);i==="same"?n=e.clone():i==null||i==="auto"?n=ni(t.get("outerBounds",!0)||oS,r.refContainer):i!=="none"&&process.env.NODE_ENV!=="production"&&De("Invalid grid["+t.componentIndex+"].outerBoundsMode.");var a=t.get("outerBoundsContain",!0),o;a==null||a==="auto"?o="all":me(["all","axisLabel"],a)<0?(process.env.NODE_ENV!=="production"&&De("Invalid grid["+t.componentIndex+"].outerBoundsContain."),o="all"):o=a;var s=[jc(j(t.get("outerBoundsClampWidth",!0),sh[0]),e.width),jc(j(t.get("outerBoundsClampHeight",!0),sh[1]),e.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var oO=function(t,e,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";vS(t,e,r,n,i,a),Mo(t.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&pS(s.labelInfoList,s.dirVec,n,i)})};function sO(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return lO(r,t,e),r.seriesInvolved&&fO(r,t),r}function lO(t,e,r){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];A(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ll(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(A(s.getAxes(),$e(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,$e(m,v?"cross":!0,c)),v&&A(d.otherAxes,$e(m,"cross",!1))}function m(p,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Fp(_))){g==null&&(g=_.get("triggerTooltip")),_=p?uO(y,h,i,e,p,g):_;var w=_.get("snap"),S=_.get("triggerEmphasis"),x=ll(y.model),T=g||w||y.type==="category",C=t.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:S,involveSeries:T,snap:w,useHandle:Fp(_),seriesModels:[],linkGroup:null};u[x]=C,t.seriesInvolved=t.seriesInvolved||T;var E=hO(a,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[x]=C,D.mapper=a[E].mapper,C.linkGroup=D}}}})}function uO(t,e,r,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=fe(o.get(c))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&xe(u,h.textStyle)}}return t.model.getModel("axisPointer",new Fe(l,r,n))}function fO(t,e){e.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||A(t.coordSysAxesInfo[ll(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function hO(t,e){for(var r=e.model,n=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(Bp(a[n+"AxisId"],r.id)||Bp(a[n+"AxisIndex"],r.componentIndex)||Bp(a[n+"AxisName"],r.name))return i}}function Bp(t,e){return t==="all"||W(t)&&me(t,e)>=0||t===e}function cO(t){var e=Vp(t);if(e){var r=e.axisPointerModel,n=e.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Fp(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Vp(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[ll(t)]}function vO(t){var e=Vp(t);return e&&e.axisPointerModel}function Fp(t){return!!t.get(["handle","show"])}function ll(t){return t.type+"||"+t.id}var zp={},AS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i,a){this.axisPointerClass&&cO(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},e.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},e.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(r,n){this._disposeAxisPointer(n),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=vO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&zp[r])throw new Error("axisPointer "+r+" exists");zp[r]=n},e.getAxisPointerClass=function(r){return r&&zp[r]},e.type="axis",e})(Or),Hp=Ve();function dO(t,e,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=Hp(t).splitAreaColors,c=se(),v=0;if(h)for(var d=0;d<u.length;d++){var m=h.get(u[d].tickValue);if(m!=null){v=(m+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=W(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,w=void 0,S=void 0;i.isHorizontal()?(_=p,b=l.y,w=y-_,S=l.height,p=_+w):(_=l.x,b=p,w=l.width,S=y-b,p=b+S);var x=u[d-1].tickValue;x!=null&&c.set(x,v),e.add(new He({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:w,height:S},style:xe({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}Hp(t).splitAreaColors=c}}}function pO(t){Hp(t).splitAreaColors=null}var gO=["splitArea","splitLine","minorSplitLine","breakArea"],MS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.axisPointerClass="CartesianAxisPointer",r}return e.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new tt,this.group.add(this._axisGroup),!!rl(r)){this._axisGroup.add(r.axis.axisBuilder.group),A(gO,function(l){r.get([l,"show"])&&mO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||t0(o,this._axisGroup,r),t.prototype.render.call(this,r,n,i,a)}},e.prototype.remove=function(){pO(this)},e.type="cartesianAxis",e})(AS),mO={splitLine:function(t,e,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=W(l)?l:[l];for(var h=n.coordinateSystem.getRect(),c=a.isHorizontal(),v=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],p=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;c?(m[0]=_,m[1]=h.y,p[0]=_,p[1]=h.y+h.height):(m[0]=h.x,m[1]=_,p[0]=h.x+h.width,p[1]=_);var w=v++%l.length,S=new Jn({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:p[0],y2:p[1]},style:xe({stroke:l[w]},g),silent:!0});Es(S.shape,g.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],c=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var m=0;m<f[d].length;m++){var p=a.toGlobalCoord(f[d][m].coord);u?(h[0]=p,h[1]=l.y,c[0]=p,c[1]=l.y+l.height):(h[0]=l.x,h[1]=p,c[0]=l.x+l.width,c[1]=p);var g=new Jn({anid:"minor_line_"+f[d][m].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:c[0],y2:c[1]},style:v,silent:!0});Es(g.shape,v.lineWidth),e.add(g)}},splitArea:function(t,e,r,n,i){dO(t,e,r,n)},breakArea:function(t,e,r,n,i){r.axis.scale}},LS=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="xAxis",e})(MS),yO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=LS.type,r}return e.type="yAxis",e})(MS),_O=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="grid",r}return e.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new He({shape:r.coordinateSystem.getRect(),style:xe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(Or),IS={offset:0};function bO(t){t.registerComponentView(_O),t.registerComponentModel(DN),t.registerCoordinateSystem("cartesian2d",rO),lS(t,"x",Ip,IS),lS(t,"y",Ip,IS),t.registerComponentView(LS),t.registerComponentView(yO),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var _a=Ve(),PS=fe,Gp=Te,wO=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=e,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new tt,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),n.getZr().add(s);else{var c=$e(kS,r,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,r)}RS(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var n=r.get("animation"),i=e.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Vp(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},t.prototype.makeElOption=function(e,r,n,i,a){},t.prototype.createPointerEl=function(e,r,n,i){var a=r.pointer;if(a){var o=_a(e).pointerEl=new yM[a.type](PS(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,n,i){if(r.label){var a=_a(e).labelEl=new lt(PS(r.label));e.add(a),OS(a,i)}},t.prototype.updatePointerEl=function(e,r,n){var i=_a(e).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,n,i){var a=_a(e).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),OS(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Uv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Lm(u.event)},onmousedown:Gp(this._onHandleDragMove,this,0,0),drift:Gp(this._onHandleDragMove,this),ondragend:Gp(this._onHandleDragEnd,this)}),n.add(i)),RS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");W(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Nb(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){kS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Wp(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Wp(n),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Wp(i)),_a(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Od(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,n){return n=n||0,{x:e[n],y:e[1-n],width:r[n],height:r[1-n]}},t})();function kS(t,e,r,n){NS(_a(r).lastProp,n)||(_a(r).lastProp=n,e?Ct(r,n,t):(r.stopAnimation(),r.attr(n)))}function NS(t,e){if(q(t)&&q(e)){var r=!0;return A(e,function(n,i){r=r&&NS(t[i],n)}),!!r}else return t===e}function OS(t,e){t[e.get(["label","show"])?"show":"hide"]()}function Wp(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function RS(t,e,r){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function SO(t){var e=t.get("type"),r=t.getModel(e+"Style"),n;return e==="line"?(n=r.getLineStyle(),n.fill=null):e==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function xO(t,e,r,n,i){var a=r.get("value"),o=BS(a,e.axis,e.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mf(s.get("padding")||0),u=s.getFont(),f=_y(o,u),h=i.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var m=i.verticalAlign;m==="bottom"&&(h[1]-=v),m==="middle"&&(h[1]-=v/2),TO(h,c,v,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:ti(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function TO(t,e,r,n){var i=n.getWidth(),a=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function BS(t,e,r,n,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:Qf(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Y(o)?a=o.replace("{value}",a):Q(o)&&(a=o(s))}return a}function VS(t,e,r){var n=_n();return dc(n,n,r.rotation),vc(n,n,r.position),$v([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function CO(t,e,r,n,i,a){var o=mi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),xO(e,n,i,a,{position:VS(n.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function DO(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function EO(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}var AO=(function(t){J(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=FS(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var c=SO(a),v=MO[u](s,h,f);v.style=c,r.graphicKey=v.type,r.pointer=v}var d=uh(l.getRect(),i);CO(n,r,d,i,a,o)},e.prototype.getHandleTransform=function(r,n,i){var a=uh(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=VS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=FS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:v,tooltipOption:d[f]}},e})(wO);function FS(t,e){var r={};return r[e.dim+"AxisIndex"]=e.index,t.getCartesian(r)}var MO={line:function(t,e,r){var n=DO([e,r[0]],[e,r[1]],zS(t));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(t,e,r){var n=Math.max(1,t.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:EO([e-n/2,r[0]],[n,i],zS(t))}}};function zS(t){return t.dim==="x"?0:1}var LO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:X.color.border,width:1,type:"dashed"},shadowStyle:{color:X.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:X.color.neutral00,padding:[5,7,5,7],backgroundColor:X.color.accent60,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:X.color.accent40,throttle:40}},e})(ye),In=Ve(),IO=A;function HS(t,e,r){if(!te.node){var n=e.getZr();In(n).records||(In(n).records={}),PO(n,e);var i=In(n).records[t]||(In(n).records[t]={});i.handler=r}}function PO(t,e){if(In(t).initialized)return;In(t).initialized=!0,r("click",$e(GS,"click")),r("mousemove",$e(GS,"mousemove")),r("globalout",NO);function r(n,i){t.on(n,function(a){var o=OO(e);IO(In(t).records,function(s){s&&i(s,a,o.dispatchAction)}),kO(o.pendings,e)})}}function kO(t,e){var r=t.showTip.length,n=t.hideTip.length,i;r?i=t.showTip[r-1]:n&&(i=t.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function NO(t,e,r){t.handler("leave",null,r)}function GS(t,e,r,n){e.handler(t,r,n)}function OO(t){var e={showTip:[],hideTip:[]},r=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=r,t.dispatchAction(n))};return{dispatchAction:r,pendings:e}}function $p(t,e){if(!te.node){var r=e.getZr(),n=(In(r).records||{})[t];n&&(In(r).records[t]=null)}}var RO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";HS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(r,n){$p("axisPointer",n)},e.prototype.dispose=function(r,n){$p("axisPointer",n)},e.type="axisPointer",e})(Or);function WS(t,e){var r=[],n=t.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=$i(a,t);if(o==null||o<0||W(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),m=[];m[v]=a.get(d,o),m[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(Z(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var $S=Ve();function BO(t,e,r){var n=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Te(r.dispatchAction,r),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){fh(i)&&(i=WS({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=fh(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||fh(i),c={},v={},d={list:[],map:{}},m={showPointer:$e(FO,v),showTooltip:$e(zO,d)};A(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);A(s.coordSysAxesInfo[y],function(b,w){var S=b.axis,x=$O(u,b);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=S.pointToData(i)),T!=null&&US(b,T,m,!1,c)}})});var p={};return A(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&A(_.axesInfo,function(b,w){var S=v[w];if(b!==g&&S){var x=S.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,YS(b),YS(g)))),p[g.key]=x}})}),A(p,function(g,y){US(f[y],g,m,!0,c)}),HO(v,f,c),GO(d,i,t,o),WO(f,o,r),c}}function US(t,e,r,n,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=VO(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&V(i,s[0]),!n&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function VO(t,e){var r=e.axis,n=r.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,t,r);c=v.dataIndices,h=v.nestestValue}else{if(c=l.indicesOfNearest(n,f[0],t,r.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=t-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=h,a.length=0),A(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function FO(t,e,r,n){t[e.key]={value:r,payloadBatch:n}}function zO(t,e,r,n){var i=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=ll(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function HO(t,e,r){var n=r.axesInfo=[];A(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function GO(t,e,r,n){if(fh(e)||!t.list.length){n({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function WO(t,e,r){var n=r.getZr(),i="axisPointerLastHighlights",a=$S(n)[i]||{},o=$S(n)[i]={};A(t,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $O(t,e){for(var r=0;r<(t||[]).length;r++){var n=t[r];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function YS(t){var e=t.axis.model,r={},n=r.axisDim=t.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=e.componentIndex,r.axisName=r[n+"AxisName"]=e.name,r.axisId=r[n+"AxisId"]=e.id,r}function fh(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function XS(t){AS.registerAxisPointerClass("CartesianAxisPointer",AO),t.registerComponentModel(LO),t.registerComponentView(RO),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!W(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,r){e.getComponent("axisPointer").coordSysAxesInfo=sO(e,r)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},BO)}function UO(t){ui(bO),ui(XS)}function YO(t,e){var r=mf(e.get("padding")),n=e.getItemStyle(["color","opacity"]);n.fill=e.get("backgroundColor");var i=new He({shape:{x:t.x-r[3],y:t.y-r[0],width:t.width+r[1]+r[3],height:t.height+r[0]+r[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var XO=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:X.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:X.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:X.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:X.color.tertiary,fontSize:14}},e})(ye);function qS(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function ZS(t){if(te.domSupported){for(var e=document.documentElement.style,r=0,n=t.length;r<n;r++)if(t[r]in e)return t[r]}}var KS=ZS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qO=ZS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function jS(t,e){if(!t)return e;e=A0(e,!0);var r=t.indexOf(e);return t=r===-1?e:"-"+t.slice(0,r)+"-"+e,t.toLowerCase()}function ZO(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?r[e]:null}var KO=jS(qO,"transition"),Up=jS(KS,"transform"),jO="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(te.transform3dSupported?"will-change:transform;":"");function QO(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function JO(t,e,r){if(!Y(r)||r==="inside")return"";var n=t.get("backgroundColor"),i=t.get("borderWidth");e=sa(e);var a=QO(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Up+":",u;me(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=e+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function eR(t,e,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+n,a+=(a.length?",":"")+(te.transformSupported?""+Up+i:",left"+i+",top"+i)),KO+":"+a}function QS(t,e,r){var n=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!te.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=te.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Up+":"+o+";":[["top",0],["left",0],[KS,o]]}function tR(t){var e=[],r=t.get("fontSize"),n=t.getTextColor();n&&e.push("color:"+n),e.push("font:"+t.getFont());var i=j(t.get("lineHeight"),Math.round(r*3/2));r&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var f=t.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function rR(t,e,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),f=t.get("shadowOffsetY"),h=t.getModel("textStyle"),c=Db(t,"html"),v=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+v),e&&a>0&&i.push(eR(a,r,n)),o&&i.push("background-color:"+o),A(["width","color","radius"],function(d){var m="border-"+d,p=A0(m),g=t.get(p);g!=null&&i.push(m+":"+g+(d==="color"?"":"px"))}),i.push(tR(h)),c!=null&&i.push("padding:"+mf(c).join("px ")+"px"),i.join(";")+";"}function JS(t,e,r,n,i){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&AC(t,o,r,n,i)}else{t[0]=n,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var nR=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,te.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=r.appendTo,o=a&&(Y(a)?document.querySelector(a):za(a)?a:Q(a)&&a(e.getDom()));JS(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();sr(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),n=ZO(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=jO+rR(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+QS(a[0],a[1],!0)+("border-color:"+sa(r)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(Y(a)&&n.get("trigger")==="item"&&!qS(n)&&(s=JO(n,i,a)),Y(e))o.innerHTML=e+s;else if(e){o.innerHTML="",W(e)||(e=[e]);for(var l=0;l<e.length;l++)za(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var n=this._styleCoord;if(JS(n,this._zr,this._container,e,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=QS(n[0],n[1]);A(a,function(o){i[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",te.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;MC(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},t})(),iR=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),tx(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,n,i,a){var o=this;q(e)&&Bt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new lt({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Db(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),n=ex(e.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},t.prototype.moveTo=function(e,r){var n=this.el;if(n){var i=this._styleCoord;tx(i,this._zr,e,r),e=i[0],r=i[1];var a=n.style,o=yi(a.borderWidth||0),s=ex(a);n.x=e+o+s.left,n.y=r+o+s.top,n.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Te(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function yi(t){return Math.max(0,t)}function ex(t){var e=yi(t.shadowBlur||0),r=yi(t.shadowOffsetX||0),n=yi(t.shadowOffsetY||0);return{left:yi(e-r),right:yi(e+r),top:yi(e-n),bottom:yi(e+n)}}function tx(t,e,r,n){t[0]=r,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var aR=new He({shape:{x:-1,y:-1,width:2,height:2}}),oR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,n){if(!(te.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=aE(i.get("renderMode"));this._tooltipContent=a==="richText"?new iR(n):new nR(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(r,n,i){if(!(te.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Nb(this,"_updatePosition",50,"fixRate"):Od(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");HS("itemTooltip",this._api,Te(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||te.node||!i.getDom())){var o=rx(a,i);this._ticket="";var s=a.dataByCoordSys,l=fR(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=aR;f.x=a.x,f.y=a.y,f.update(),de(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=WS(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(rx(a,i))},e.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ul([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=de(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xs(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(de(f).dataIndex!=null?l=f:de(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Te(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ul([n.tooltipOption],a),l=this._renderMode,u=[],f=Ws("section",{blocks:[],noHeader:!0}),h=[],c=new Id;A(r,function(y){A(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!b||w==null)){var S=BS(w,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),x=Ws("section",{header:S,noHeader:!Yr(S),sortBlocks:!0,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),E=T.dataIndexInside,D=C.getDataParams(E);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Qf(b.axis,{value:w}),D.axisValueLabel=S,D.marker=c.makeTooltipMarker("item",sa(D.color),l);var L=cb(C.formatTooltip(E,!0,null)),M=L.frag;if(M){var P=ul([C],a).get("valueFormatter");x.blocks.push(P?V({valueFormatter:P},M):M)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),m=Tb(f,c,l,d,i.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var p=l==="richText"?`
|
|
58
|
+
`];function Vs(e,t){return t.type=e,t}function Id(e){return e.type==="section"}function S1(e){return Id(e)?Ak:Mk}function x1(e){if(Id(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return L(e.blocks,function(i){var a=x1(i);a>=t&&(t=a+ +(n&&(!a||Id(i)&&!i.noHeader)))}),t}return 0}function Ak(e,t,r,n){var i=t.noHeader,a=Lk(x1(t)),o=[],s=t.blocks||[];_n(!s||U(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Ar(u,l)){var f=new fk(u[l],null);s.sort(function(m,p){return f.evaluate(m.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}L(s,function(m,p){var g=t.valueFormatter,y=S1(m)(g?H(H({},e),{valueFormatter:g}):e,m,p>0?a.html:0,n);y!=null&&o.push(y)});var h=e.renderMode==="richText"?o.join(a.richText):Pd(n,o.join(""),i?r:a.html);if(i)return h;var v=vd(t.header,"ordinal",e.useUTC),c=w1(n,e.renderMode).nameStyle,d=b1(n);return e.renderMode==="richText"?C1(e,v,c)+a.richText+h:Pd(n,'<div style="'+c+";"+d+';">'+Ne(v)+"</div>"+h,r)}function Mk(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(b){return b=U(b)?b:[b],K(b,function(S,w){return vd(S,U(c)?c[w]:c,u)})};if(!(a&&o)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||q.color.secondary,i),v=a?"":vd(l,"ordinal",u),c=t.valueType,d=o?[]:f(t.value,t.dataIndex),m=!s||!a,p=!s&&a,g=w1(n,i),y=g.nameStyle,_=g.valueStyle;return i==="richText"?(s?"":h)+(a?"":C1(e,v,y))+(o?"":Pk(e,d,m,p,_)):Pd(n,(s?"":h)+(a?"":kk(v,!s,y))+(o?"":Ik(d,m,p,_)),r)}}function T1(e,t,r,n,i,a){if(e){var o=S1(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function Lk(e){return{html:Ck[e],richText:Dk[e]}}function Pd(e,t,r){var n='<div style="clear:both"></div>',i="margin: "+r+"px 0 0",a=b1(e);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function kk(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ne(e)+"</span>"}function Ik(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=U(e)?e:[e],'<span style="'+a+";"+n+'">'+K(e,function(o){return Ne(o)}).join(" ")+"</span>"}function C1(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Pk(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,a)}function Ek(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ca(n)}function D1(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Ed=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=Ly()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=c2({color:r,type:t,renderMode:n,markerId:i});return Y(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?L(r,function(a){return H(n,a)}):H(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e})();function Rk(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=U(s),u=Ek(t,r),f,h,v,c;if(o>1||l&&!o){var d=Ok(s,t,r,a,u);f=d.inlineValues,h=d.inlineValueTypes,v=d.blocks,c=d.inlineValues[0]}else if(o){var m=i.getDimensionInfo(a[0]);c=f=go(i,r,a[0]),h=m.type}else c=f=l?s[0]:s;var p=nv(t),g=p&&t.name||"",y=i.getName(r),_=n?g:y;return Vs("section",{header:g,noHeader:n||!p,sortParam:c,blocks:[Vs("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Ur(_),value:f,valueType:h,dataIndex:r})].concat(v||[])})}function Ok(e,t,r,n,i){var a=t.getData(),o=Un(e,function(h,v,c){var d=a.getDimensionInfo(c);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];n.length?L(n,function(h){f(go(a,r,h),h)}):L(e,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(Vs("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var li=$t();function Mf(e,t){return e.getName(t)||e.getId(t)}var Nk="__universalTransitionEnabled",Er=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Gs({count:Fk,reset:zk}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=li(this).sourceManager=new xk(this);a.prepareSource();var o=this.getInitialData(r,i);M1(o,this),this.dataTask.context.data=o,li(this).dataBeforeProcessed=o,A1(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Os(this),a=i?Ns(r):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),Tt(r,n.getTheme().get(this.subType)),Tt(r,this.getDefaultOption()),rv(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&oi(r,a,i)},t.prototype.mergeOption=function(r,n){r=Tt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Os(this);i&&oi(this.option,r,i);var a=li(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);M1(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,li(this).dataBeforeProcessed=o,A1(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Re(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&rv(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=Rd(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return li(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=Rd(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}li(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ft(r)},t.prototype.getSourceManager=function(){return li(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return li(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.indicesOfNearest=function(r,n,i,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(i);a==null&&(a=1/0);var f=[],h=1/0,v=-1,c=0;return o.each(n,function(d,m){var p=l.dataToCoord(d),g=u-p,y=Math.abs(g);y<=a&&((y<h||y===h&&g>=0&&v<0)&&(h=y,v=g,c=0),g===v&&(f[c++]=m))}),f.length=c,f},t.prototype.formatTooltip=function(r,n,i){return Rk({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(it.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=bd.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=Mf(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=Vt(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Mf(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Nk])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Z(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Mf(r,h);u[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Mf(r,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=r.getRawIndex(c),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return kt.registerClass(r)},t.protoInitialize=(function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"})(),t})(kt);$r(Er,lk),$r(Er,bd),zy(Er,kt);function A1(e){var t=e.name;nv(e)||(e.name=Bk(e)||t)}function Bk(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return L(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function Fk(e){return e.model.getRawData().count()}function zk(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Hk}function Hk(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function M1(e,t){L(EC(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Qt(Gk,t))})}function Gk(e,t){var r=Rd(e);return r&&r.setOutputEnd((t||this).count()),t}function Rd(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Rr=(function(){function e(){this.group=new le,this.uid=uf("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e})();ov(Rr),Lu(Rr);function Od(){var e=$t();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var L1=$t(),Vk=Od(),yr=(function(){function e(){this.group=new le,this.uid=uf("viewChart"),this.renderTask=Gs({plan:Wk,reset:$k}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&I1(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&I1(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){af(this.group,t)},e.markUpdateMethod=function(t,r){L1(t).updateMethod=r},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function k1(e,t,r){e&&Rv(e)&&(t==="emphasis"?$u:Uu)(e,r)}function I1(e,t,r){var n=Zi(e,t),i=t&&t.highlightKey!=null?VM(t.highlightKey):null;n!=null?L(Ce(n),function(a){k1(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){k1(a,r,i)})}ov(yr),Lu(yr);function Wk(e){return Vk(e.model)}function $k(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&L1(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),Uk[l]}var Uk={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)}}},Lf="\0__throttleOriginMethod",P1="\0__throttleRate",E1="\0__throttleType";function Nd(e,t,r){var n,i=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var v=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];n=new Date().getTime(),l=this,u=c;var m=f||t,p=f||r;f=null,s=n-(p?i:a)-m,clearTimeout(o),p?o=setTimeout(h,m):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function R1(e,t,r,n){var i=e[t];if(i){var a=i[Lf]||i,o=i[E1],s=i[P1];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=Nd(a,r,n==="debounce"),i[Lf]=a,i[E1]=n,i[P1]=r}return i}}function Bd(e,t){var r=e[t];r&&r[Lf]&&(r.clear&&r.clear(),e[t]=r[Lf])}var O1=$t(),N1={itemStyle:gs(c_,!0),lineStyle:gs(h_,!0)},Yk={lineStyle:"stroke",itemStyle:"fill"};function B1(e,t){var r=e.visualStyleMapper||N1[t];return r||(console.warn("Unknown style type '"+t+"'."),N1.itemStyle)}function F1(e,t){var r=e.visualDrawType||Yk[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var Xk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=B1(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F1(e,n),u=o[l],f=rt(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=v,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||rt(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||rt(o.stroke)?v:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(c,d){var m=e.getDataParams(d),p=H({},o);p[l]=f(m),c.setItemVisual(d,"style",p)}}}},Ws=new Ut,qk={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=B1(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ws.option=l[n];var u=i(Ws),f=o.ensureUniqueItemVisual(s,"style");H(f,u),Ws.option.decal&&(o.setItemVisual(s,"decal",Ws.option.decal),Ws.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Zk={performRawSeries:!0,overallReset:function(e){var t=ft();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),O1(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=O1(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F1(r,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",d=n.count();v[l]=r.getColorFromPalette(c,o,d)}})}})}},kf=Math.PI;function Kk(e,t){t=t||{},Dt(t,{text:"loading",textColor:q.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new le,n=new qt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new pe({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 qt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new ju({shape:{startAngle:-kf/2,endAngle:-kf/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:kf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:kf*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var z1=(function(){function e(t,r,n,i){this._stageTaskMap=ft(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ft();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;L(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";_n(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;L(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,d=v.agentStubMap;d.each(function(p){s(i,p)&&(p.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var m=o.getPerformArgs(v,i.block);d.each(function(p){p.perform(m)}),v.perform(m)&&(a=!0)}else h&&h.each(function(p,g){s(i,p)&&p.dirty();var y=o.getPerformArgs(p,i.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),o.updatePayload(p,n),p.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ft(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||Gs({plan:eI,reset:rI,count:iI}));c.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,c)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Gs({reset:jk});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ft(),u=t.seriesType,f=t.getTargetSeries,h=!0,v=!1,c="";_n(!t.createOnAllSeries,c),u?n.eachRawSeriesByType(u,d):f?f(n,i).each(d):(h=!1,L(n.getSeries(),d));function d(m){var p=m.uid,g=l.set(p,s&&s.get(p)||(v=!0,Gs({reset:Qk,onDirty:tI})));g.context={model:m,overallProgress:h},g.agent=o,g.__block=h,a._pipe(m,g)}v&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return rt(t)&&(t={overallReset:t,seriesType:aI(t)}),t.uid=uf("stageHandler"),r&&(t.visualType=r),t},e})();function jk(e){e.overallReset(e.ecModel,e.api,e.payload)}function Qk(e){return e.overallProgress&&Jk}function Jk(){this.agent.dirty(),this.getDownstream().dirty()}function tI(){this.agent&&this.agent.dirty()}function eI(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function rI(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ce(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?K(t,function(r,n){return H1(n)}):nI}var nI=H1(0);function H1(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function iI(e){return e.data.count()}function aI(e){If=null;try{e($s,G1)}catch{}return If}var $s={},G1={},If;V1($s,wd),V1(G1,U_),$s.eachSeriesByType=$s.eachRawSeriesByType=function(e){If=e},$s.eachComponent=function(e){e.mainType==="series"&&e.subType&&(If=e.subType)};function V1(e,t){for(var r in t.prototype)e[r]=Oe}var $=q.darkColor,oI=$.background,Us=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},W1={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},$1={darkMode:!0,color:$.theme,backgroundColor:oI,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:W1,y:W1,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Us(),logAxis:Us(),valueAxis:Us(),categoryAxis:Us(),line:{symbol:"circle"},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:$.background}},radar:(function(){var e=Us();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};$1.categoryAxis.splitLine.show=!1;var sI=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(Y(t)){var a=Jr(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};L(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var d=u.slice(0,c);d!=="data"&&(r.mainType=d,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function f(h,v,c,d){return h[c]==null||v[d||c]===h[c]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Fd=["symbol","symbolSize","symbolRotate","symbolOffset"],U1=Fd.concat(["symbolKeepAspect"]),lI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Fd.length;o++){var s=Fd[o],l=e.get(s);rt(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(H({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Vt(i);function f(h,v){for(var c=e.getRawValue(v),d=e.getDataParams(v),m=0;m<u.length;m++){var p=u[m];h.setItemVisual(v,p,i[p](c,d))}}return{dataEach:a?f:null}}},uI={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<U1.length;s++){var l=U1[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function fI(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function hI(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function cI(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}L([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=H({},i),o.dispatchAction(H(i,{type:n[1],seriesIndex:r(a,i)}))})})}function _o(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=Zi(h,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:U(v)?h.getName(v[0]):h.getName(v),selected:Y(l)?l:H({},l)})}})}function vI(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(_o("map","selectchanged",t,i,n),_o("pie","selectchanged",t,i,n)):n.fromAction==="select"?(_o("map","selected",t,i,n),_o("pie","selected",t,i,n)):n.fromAction==="unselect"&&(_o("map","unselected",t,i,n),_o("pie","unselected",t,i,n))})}function Ys(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var dI=Math.round(Math.random()*9),pI=typeof Object.defineProperty=="function",gI=(function(){function e(){this._id="__ec_inner_"+dI++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return pI?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})(),mI=Lt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),yI=Lt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),_I=Lt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,d=o*.7;e.moveTo(r-f,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+f-h*c,l+s+v*c,r,n-d,r,n),e.bezierCurveTo(r,n-d,r-f+h*c,l+s+v*c,r-f,l+s),e.closePath()}}),bI=Lt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),wI={line:ei,rect:qt,roundRect:qt,square:qt,circle:Zu,diamond:yI,pin:_I,arrow:bI,triangle:mI},SI={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},zd={};L(wI,function(e,t){zd[t]=new e});var xI=Lt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=xu(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=zd[n];i||(n="rect",i=zd[n]),SI[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function TI(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||q.color.neutral00,r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function bo(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=Z0(e.slice(8),new ut(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=Xv(e.slice(7),{},new ut(t,r,n,i),o?"center":"cover"):l=new xI({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=TI,a&&l.setColor(a),l}function CI(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Y1(e,t){if(e!=null)return U(e)||(e=[e,e]),[Wt(e[0],t[0])||0,Wt(Q(e[1],e[0]),t[1])||0]}function _a(e){return isFinite(e)}function DI(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=_a(n)?n:0,i=_a(i)?i:1,a=_a(a)?a:0,o=_a(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function AI(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=_a(o)?o:.5,s=_a(s)?s:.5,l=l>=0&&_a(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Hd(e,t,r){for(var n=t.type==="radial"?AI(e,t,r):DI(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function MI(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Pf(e){return parseInt(e,10)}function Ef(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Pf(s[n])||Pf(e.style[n]))-(Pf(s[a])||0)-(Pf(s[o])||0)|0}function LI(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Mt(e)?[e]:U(e)?e:null}function X1(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&LI(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=K(r,function(a){return a/i}),n/=i)}return[r,n]}var kI=new na(!0);function Rf(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function q1(e){return typeof e=="string"&&e!=="none"}function Of(e){var t=e.fill;return t!=null&&t!=="none"}function Z1(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function K1(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Gd(e,t,r){var n=Hy(t.image,t.__image,r);if(ku(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*RC),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function II(e,t,r,n){var i,a=Rf(r),o=Of(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||kI,h=t.__dirty;if(!n){var v=r.fill,c=r.stroke,d=o&&!!v.colorStops,m=a&&!!c.colorStops,p=o&&!!v.image,g=a&&!!c.image,y=void 0,_=void 0,b=void 0,S=void 0,w=void 0;(d||m)&&(w=t.getBoundingRect()),d&&(y=h?Hd(e,v,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=h?Hd(e,c,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(b=h||!t.__canvasFillPattern?Gd(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=b),g&&(S=h||!t.__canvasStrokePattern?Gd(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?e.fillStyle=y:p&&(b?e.fillStyle=b:o=!1),m?e.strokeStyle=_:g&&(S?e.strokeStyle=S:a=!1)}var T=t.getGlobalScale();f.setScale(T[0],T[1],t.segmentIgnoreThreshold);var x,A;e.setLineDash&&r.lineDash&&(i=X1(t),x=i[0],A=i[1]);var C=!0;(u||h&ja)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),C=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),C&&f.rebuildPath(e,l?s:1),x&&(e.setLineDash(x),e.lineDashOffset=A),n||(r.strokeFirst?(a&&K1(e,r),o&&Z1(e,r)):(o&&Z1(e,r),a&&K1(e,r))),x&&e.setLineDash([])}function PI(e,t,r){var n=t.__image=Hy(r.image,t.__image,t,t.onload);if(!(!n||!ku(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;e.drawImage(n,u,f,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,h=o-u,v=s-f;e.drawImage(n,u,f,h,v,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function EI(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||$n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=X1(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(Rf(r)&&e.strokeText(i,r.x,r.y),Of(r)&&e.fillText(i,r.x,r.y)):(Of(r)&&e.fillText(i,r.x,r.y),Rf(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var j1=["shadowBlur","shadowOffsetX","shadowOffsetY"],Q1=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function J1(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){He(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?ji.opacity:o}(n||t.blend!==r.blend)&&(a||(He(e,i),a=!0),e.globalCompositeOperation=t.blend||ji.blend);for(var s=0;s<j1.length;s++){var l=j1[s];(n||t[l]!==r[l])&&(a||(He(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(He(e,i),a=!0),e.shadowColor=t.shadowColor||ji.shadowColor),a}function tb(e,t,r,n,i){var a=Xs(t,i.inHover),o=n?null:r&&Xs(r,i.inHover)||{};if(a===o)return!1;var s=J1(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(He(e,i),s=!0),q1(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(He(e,i),s=!0),q1(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(He(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(He(e,i),s=!0),e.lineWidth=u)}for(var f=0;f<Q1.length;f++){var h=Q1[f],v=h[0];(n||a[v]!==o[v])&&(s||(He(e,i),s=!0),e[v]=a[v]||h[1])}return s}function RI(e,t,r,n,i){return J1(e,Xs(t,i.inHover),r&&Xs(r,i.inHover),n,i)}function eb(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function OI(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),eb(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function NI(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 rb=1,nb=2,ib=3,ab=4;function BI(e){var t=Of(e),r=Rf(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function He(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Xs(e,t){return t&&e.__hoverStyle||e.style}function ob(e,t){ba(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ba(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~Ue,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||MI(a,o))&&(o&&o.length&&(He(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(He(e,r),e.save(),OI(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=t instanceof Lt&&t.autoBatch&&BI(t.style);s||NI(i,u.transform)?(He(e,r),eb(e,t)):f||He(e,r);var h=Xs(t,r.inHover);t instanceof Lt?(r.lastDrawType!==rb&&(l=!0,r.lastDrawType=rb),tb(e,t,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),II(e,t,h,f),f&&(r.batchFill=h.fill||"",r.batchStroke=h.stroke||"")):t instanceof Nu?(r.lastDrawType!==ib&&(l=!0,r.lastDrawType=ib),tb(e,t,u,l,r),EI(e,t,h)):t instanceof Jn?(r.lastDrawType!==nb&&(l=!0,r.lastDrawType=nb),RI(e,t,u,l,r),PI(e,t,h)):t.getTemporalDisplayables&&(r.lastDrawType!==ab&&(l=!0,r.lastDrawType=ab),FI(e,t,r)),f&&n&&He(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function FI(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ba(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ba(e,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Vd=new gI,sb=new Ja(100),lb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Wd(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Vd.delete(e);var a=Vd.get(e);if(a)return a;var o=Dt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,Vd.set(e,s),e.dirty=!1,s;function l(u){for(var f=[r],h=!0,v=0;v<lb.length;++v){var c=o[lb[v]];if(c!=null&&!U(c)&&!Y(c)&&!Mt(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var d;if(h){d=f.join(",")+(i?"-svg":"");var m=sb.get(d);m&&(i?u.svgElement=m:u.image=m)}var p=fb(o.dashArrayX),g=zI(o.dashArrayY),y=ub(o.symbol),_=HI(p),b=hb(g),S=!i&&yn.createCanvas(),w=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),x;S&&(S.width=T.width*r,S.height=T.height*r,x=S.getContext("2d")),C(),h&&sb.put(d,S||w),u.image=S,u.svgElement=w,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var D=1,k=0,M=_.length;k<M;++k)D=Iy(D,_[k]);for(var I=1,k=0,M=y.length;k<M;++k)I=Iy(I,y[k].length);D*=I;var E=b*_.length*y.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(E,o.maxTileHeight))}}function C(){x&&(x.clearRect(0,0,S.width,S.height),o.backgroundColor&&(x.fillStyle=o.backgroundColor,x.fillRect(0,0,S.width,S.height)));for(var D=0,k=0;k<g.length;++k)D+=g[k];if(D<=0)return;for(var M=-b,I=0,E=0,N=0;M<T.height;){if(I%2===0){for(var z=E/2%y.length,O=0,B=0,G=0;O<T.width*2;){for(var V=0,k=0;k<p[N].length;++k)V+=p[N][k];if(V<=0)break;if(B%2===0){var F=(1-o.symbolSize)*.5,W=O+p[N][B]*F,tt=M+g[I]*F,bt=p[N][B]*o.symbolSize,ie=g[I]*o.symbolSize,ye=G/2%y[z].length;Ot(W,tt,bt,ie,y[z][ye])}O+=p[N][B],++G,++B,B===p[N].length&&(B=0)}++N,N===p.length&&(N=0)}M+=g[I],++E,++I,I===g.length&&(I=0)}function Ot(Yt,te,nt,dt,hn){var he=i?1:r,Ci=bo(hn,Yt*he,te*he,nt*he,dt*he,o.color,o.symbolKeepAspect);if(i){var On=n.painter.renderOneToVNode(Ci);On&&w.children.push(On)}else ob(x,Ci)}}}}function ub(e){if(!e||e.length===0)return[["rect"]];if(Y(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!Y(e[r])){t=!1;break}if(t)return ub([e]);for(var n=[],r=0;r<e.length;++r)Y(e[r])?n.push([e[r]]):n.push(e[r]);return n}function fb(e){if(!e||e.length===0)return[[0,0]];if(Mt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Mt(e[n])){r=!1;break}if(r)return fb([e]);for(var i=[],n=0;n<e.length;++n)if(Mt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=K(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function zI(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Mt(e)){var t=Math.ceil(e);return[t,t]}var r=K(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function HI(e){return K(e,function(t){return hb(t)})}function hb(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function GI(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Wd(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Wd(i,t)}}})}var Or=new Yr,cb={};function VI(e,t){cb[e]=t}function WI(e){return cb[e]}var $I=1,UI=800,YI=900,XI=1e3,qI=2e3,ZI=5e3,vb=1e3,KI=1100,$d=2e3,db=3e3,jI=4e3,Nf=4500,QI=4600,JI=5e3,tP=6e3,pb=7e3,eP={PROCESSOR:{FILTER:XI,SERIES_FILTER:UI,STATISTIC:ZI},VISUAL:{LAYOUT:vb,PROGRESSIVE_LAYOUT:KI,GLOBAL:$d,CHART:db,POST_CHART_LAYOUT:QI,COMPONENT:jI,BRUSH:JI,CHART_ITEM:Nf,ARIA:tP,DECAL:pb}},ee="__flagInMainProcess",Bf="__mainProcessVersion",fe="__pendingUpdate",Ud="__needsUpdateStatus",gb=/^[a-zA-Z0-9_]+$/,Yd="__connectUpdateStatus",mb=0,rP=1,nP=2;function yb(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return bb(this,e,t)}}function _b(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return bb(this,e,t)}}function bb(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Yr.prototype[t].apply(e,r)}var wb=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Yr),Sb=wb.prototype;Sb.on=_b("on"),Sb.off=_b("off");var wa,Xd,Ff,An,zf,qd,Zd,wo,So,xb,Tb,Kd,Cb,Hf,Db,Ab,_r,Mb,xo,Lb=(function(e){J(t,e);function t(r,n,i){var a=e.call(this,new sI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},a._dom=r;var o="canvas",s="auto",l=!1;a[Bf]=1,i.ssr;var u=a._zr=Ty(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Q(i.useDirtyRect,l),useCoarsePointer:Q(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Nd(At(u.flush,u),17),a._updateTheme(n),a._locale=JL(i.locale||d_),a._coordSysMgr=new gd;var f=a._api=Db(a);function h(v,c){return v.__prio-c.__prio}return ru(Vf,h),ru(tp,h),a._scheduler=new z1(a,f,tp,Vf),a._messageCenter=new wb,a._initEvents(),a.resize=At(a.resize,a),u.animation.on("frame",a._onframe,a),xb(u,a),Tb(u,a),rc(a),a}return t.prototype._onframe=function(){if(!this._disposed){Mb(this);var r=this._scheduler;if(this[fe]){var n=this[fe].silent;this[ee]=!0,xo(this);try{wa(this),An.update.call(this,null,this[fe].updateParams)}catch(l){throw this[ee]=!1,this[fe]=null,l}this._zr.flush(),this[ee]=!1,this[fe]=null,wo.call(this,n),So.call(this,n)}else if(r.unfinished){var i=$I,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),qd(this,a),r.performVisualTasks(a),Hf(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[ee]){if(this._disposed){this.id;return}var a,o,s;if(Z(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[ee]=!0,xo(this),!this._model||n){var l=new G2(this._api),u=this._theme,f=this._model=new wd;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},ep);var h={seriesTransition:s,optionChanged:!0};if(i)this[fe]={silent:a,updateParams:h},this[ee]=!1,this.getZr().wakeUp();else{try{wa(this),An.update.call(this,null,h)}catch(v){throw this[fe]=null,this[ee]=!1,v}this._ssr||this._zr.flush(),this[fe]=null,this[ee]=!1,wo.call(this,a),So.call(this,a)}}},t.prototype.setTheme=function(r,n){if(!this[ee]){if(this._disposed){this.id;return}var i=this._model;if(i){var a=n&&n.silent,o=null;this[fe]&&(a==null&&(a=this[fe].silent),o=this[fe].updateParams,this[fe]=null),this[ee]=!0,xo(this);try{this._updateTheme(r),i.setTheme(this._theme),wa(this),An.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ee]=!1,s}this[ee]=!1,wo.call(this,a),So.call(this,a)}}},t.prototype._updateTheme=function(r){Y(r)&&(r=kb[r]),r&&(r=pt(r),r&&Q_(r,!0),this._theme=r)},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||it.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){var r=this._zr,n=r.storage.getDisplayList();return L(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;L(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return L(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Ib[i]){var l=s,u=s,f=-s,h=-s,v=[],c=r&&r.pixelRatio||this.getDevicePixelRatio();L(qs,function(_,b){if(_.group===i){var S=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(pt(r)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),v.push({dom:S,left:w.left,top:w.top})}}),l*=c,u*=c,f*=c,h*=c;var d=f-l,m=h-u,p=yn.createCanvas(),g=Ty(p,{renderer:n?"svg":"canvas"});if(g.resize({width:d,height:m}),n){var y="";return L(v,function(_){var b=_.left-l,S=_.top-u;y+='<g transform="translate('+b+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&g.painter.setBackgroundColor(r.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return r.connectedBackgroundColor&&g.add(new qt({shape:{x:0,y:0,width:d,height:m},style:{fill:r.connectedBackgroundColor}})),L(v,function(_){var b=new Jn({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});g.add(b)}),g.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n,i){return zf(this,"convertToPixel",r,n,i)},t.prototype.convertToLayout=function(r,n,i){return zf(this,"convertToLayout",r,n,i)},t.prototype.convertFromPixel=function(r,n,i){return zf(this,"convertFromPixel",r,n,i)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=iv(i,r);return L(o,function(s,l){l.indexOf("Models")>=0&&L(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=iv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?fI(s,l,n):hI(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;L(iP,function(i){var a=function(o){var s=r.getModel(),l=o.target,u,f=i==="globalout";if(f?u={}:l&&Ys(l,function(m){var p=_t(m);if(p&&p.dataIndex!=null){var g=p.dataModel||s.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,l)||{},!0}else if(p.eventData)return u=H({},p.eventData),!0},!0),u){var h=u.componentType,v=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",v=u.seriesIndex);var c=h&&v!=null&&s.getComponent(h,v),d=c&&r[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=o,u.type=i,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:c,view:d},r.trigger(i,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(i,a,r)});var n=this._messageCenter;L(Jd,function(i,a){n.on(a,function(o){r.trigger(a,o)})}),vI(n,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&By(this.getDom(),np,"");var n=this,i=n._api,a=n._model;L(n._componentsViews,function(o){o.dispose(a,i)}),L(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete qs[n.id]},t.prototype.resize=function(r){if(!this[ee]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[fe]&&(a==null&&(a=this[fe].silent),i=!0,this[fe]=null),this[ee]=!0,xo(this);try{i&&wa(this),An.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(o){throw this[ee]=!1,o}this[ee]=!1,wo.call(this,a),So.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Z(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!rp[r]){var i=rp[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=H({},r);return n.type=Qd[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Z(n)||(n={silent:!!n}),!!Gf[r.type]&&this._model){if(this[ee]){this._pendingActions.push(r);return}var i=n.silent;Zd.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&it.browser.weChat&&this._throttledZrFlush(),wo.call(this,i),So.call(this,i)}},t.prototype.updateLabelLayout=function(){Or.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){wa=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Xd(h,!0),Xd(h,!1),v.plan()},Xd=function(h,v){for(var c=h._model,d=h._scheduler,m=v?h._componentsViews:h._chartsViews,p=v?h._componentsMap:h._chartsMap,g=h._zr,y=h._api,_=0;_<m.length;_++)m[_].__alive=!1;v?c.eachComponent(function(w,T){w!=="series"&&b(T)}):c.eachSeries(b);function b(w){var T=w.__requireNewView;w.__requireNewView=!1;var x="_ec_"+w.id+"_"+w.type,A=!T&&p[x];if(!A){var C=Jr(w.type),D=v?Rr.getClass(C.main,C.sub):yr.getClass(C.sub);A=new D,A.init(c,y),p[x]=A,m.push(A),g.add(A.group)}w.__viewId=A.__id=x,A.__alive=!0,A.__model=w,A.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!v&&d.prepareView(A,w,c,y)}for(var _=0;_<m.length;){var S=m[_];S.__alive?_++:(!v&&S.renderTask.dispose(),g.remove(S.group),S.dispose(c,y),m.splice(_,1),p[S.__id]===S&&delete p[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Ff=function(h,v,c,d,m){var p=h._model;if(p.setUpdatePayload(c),!d){L([].concat(h._componentsViews).concat(h._chartsViews),S);return}var g={};g[d+"Id"]=c[d+"Id"],g[d+"Index"]=c[d+"Index"],g[d+"Name"]=c[d+"Name"];var y={mainType:d,query:g};m&&(y.subType=m);var _=c.excludeSeriesId,b;_!=null&&(b=ft(),L(Ce(_),function(w){var T=Qr(w,null);T!=null&&b.set(T,!0)})),p&&p.eachComponent(y,function(w){var T=b&&b.get(w.id)!=null;if(!T)if(E0(c))if(w instanceof Er)c.type===sa&&!c.notBlur&&!w.get(["emphasis","disabled"])&&RM(w,c,h._api);else{var x=Pv(w.mainType,w.componentIndex,c.name,h._api),A=x.focusSelf,C=x.dispatchers;c.type===sa&&A&&!c.notBlur&&Iv(w.mainType,w.componentIndex,h._api),C&&L(C,function(D){c.type===sa?$u(D):Uu(D)})}else Ov(c)&&w instanceof Er&&(BM(w,c,h._api),k0(w),_r(h))},h),p&&p.eachComponent(y,function(w){var T=b&&b.get(w.id)!=null;T||S(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function S(w){w&&w.__alive&&w[v]&&w[v](w.__model,p,h._api,c)}},An={prepareAndUpdate:function(h){wa(this),An.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,d=this._api,m=this._zr,p=this._coordSysMgr,g=this._scheduler;if(c){c.setUpdatePayload(h),g.restoreData(c,h),g.performSeriesTasks(c),p.create(c,d),g.performDataProcessorTasks(c,h),qd(this,c),p.update(c,d),n(c),g.performVisualTasks(c,h);var y=c.get("backgroundColor")||"transparent";m.setBackgroundColor(y);var _=c.get("darkMode");_!=null&&_!=="auto"&&m.setDarkMode(_),Kd(this,c,d,h,v),Or.trigger("afterupdate",c,d)}},updateTransform:function(h){var v=this,c=this._model,d=this._api;if(c){c.setUpdatePayload(h);var m=[];c.eachComponent(function(g,y){if(g!=="series"){var _=v.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var b=_.updateTransform(y,c,d,h);b&&b.update&&m.push(_)}else m.push(_)}});var p=ft();c.eachSeries(function(g){var y=v._chartsMap[g.__viewId];if(y.updateTransform){var _=y.updateTransform(g,c,d,h);_&&_.update&&p.set(g.uid,1)}else p.set(g.uid,1)}),n(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:p}),Hf(this,c,d,h,{},p),Or.trigger("afterupdate",c,d)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),yr.markUpdateMethod(h,"updateView"),n(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),Kd(this,v,this._api,h,{}),Or.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(d){d.getData().clearAllVisual()}),yr.markUpdateMethod(h,"updateVisual"),n(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(d,m){if(d!=="series"){var p=v.getViewOfComponentModel(m);p&&p.__alive&&p.updateVisual(m,c,v._api,h)}}),c.eachSeries(function(d){var m=v._chartsMap[d.__viewId];m.updateVisual(d,c,v._api,h)}),Or.trigger("afterupdate",c,this._api))},updateLayout:function(h){An.update.call(this,h)}};function r(h,v,c,d,m){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,_=iv(p,c),b=0;b<g.length;b++){var S=g[b];if(S[v]&&(y=S[v](p,_,d,m))!=null)return y}}zf=r,qd=function(h,v){var c=h._chartsMap,d=h._scheduler;v.eachSeries(function(m){d.updateStreamModes(m,c[m.__viewId])})},Zd=function(h,v){var c=this,d=this.getModel(),m=h.type,p=h.escapeConnect,g=Gf[m],y=(g.update||"update").split(":"),_=y.pop(),b=y[0]!=null&&Jr(y[0]);this[ee]=!0,xo(this);var S=[h],w=!1;h.batch&&(w=!0,S=K(h.batch,function(N){return N=Dt(H({},N),h),N.batch=null,N}));var T=[],x,A=[],C=g.nonRefinedEventType,D=Ov(h),k=E0(h);if(k&&L0(this._api),L(S,function(N){var z=g.action(N,d,c._api);if(g.refineEvent?A.push(z):x=z,x=x||H({},N),x.type=C,T.push(x),k){var O=av(h),B=O.queryOptionMap,G=O.mainTypeSpecified,V=G?B.keys()[0]:"series";Ff(c,_,N,V),_r(c)}else D?(Ff(c,_,N,"series"),_r(c)):b&&Ff(c,_,N,b.main,b.sub)}),_!=="none"&&!k&&!D&&!b)try{this[fe]?(wa(this),An.update.call(this,h),this[fe]=null):An[_].call(this,h)}catch(N){throw this[ee]=!1,N}if(w?x={type:C,escapeConnect:p,batch:T}:x=T[0],this[ee]=!1,!v){var M=void 0;if(g.refineEvent){var I=g.refineEvent(A,h,d,this._api).eventContent;_n(Z(I)),M=Dt({type:g.refinedEventType},I),M.fromAction=h.type,M.fromActionPayload=h,M.escapeConnect=!0}var E=this._messageCenter;E.trigger(x.type,x),M&&E.trigger(M.type,M)}},wo=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Zd.call(this,c,h)}},So=function(h){!h&&this.trigger("updated")},xb=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[fe]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Tb=function(h,v){h.on("mouseover",function(c){var d=c.target,m=Ys(d,Rv);m&&(OM(m,c,v._api),_r(v))}).on("mouseout",function(c){var d=c.target,m=Ys(d,Rv);m&&(NM(m,c,v._api),_r(v))}).on("click",function(c){var d=c.target,m=Ys(d,function(y){return _t(y).dataIndex!=null},!0);if(m){var p=m.selected?"unselect":"select",g=_t(m);v._api.dispatchAction({type:p,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function n(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function i(h){var v=[],c=[],d=!1;if(h.eachComponent(function(y,_){var b=_.get("zlevel")||0,S=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(y==="series"?c:v).push({zlevel:b,z:S,idx:_.componentIndex,type:y,key:w})}),d){var m=v.concat(c),p,g;ru(m,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),L(m,function(y){var _=h.getComponent(y.type,y.idx),b=y.zlevel,S=y.key;p!=null&&(b=Math.max(p,b)),S?(b===p&&S!==g&&b++,g=S):g&&(b===p&&b++,g=""),p=b,_.setZLevel(b)})}}Kd=function(h,v,c,d,m){i(v),Cb(h,v,c,d,m),L(h._chartsViews,function(p){p.__alive=!1}),Hf(h,v,c,d,m),L(h._chartsViews,function(p){p.__alive||p.remove(v,c)})},Cb=function(h,v,c,d,m,p){L(p||h._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,v,c,d),l(y,g),f(y,g)})},Hf=function(h,v,c,d,m,p){var g=h._scheduler;m=H(m||{},{updatedSeries:v.getSeries()}),Or.trigger("series:beforeupdate",v,c,m);var y=!1;v.eachSeries(function(_){var b=h._chartsMap[_.__viewId];b.__alive=!0;var S=b.renderTask;g.updatePayload(S,d),u(_,b),p&&p.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),b.group.silent=!!_.get("silent"),s(_,b),k0(_)}),g.unfinished=y||g.unfinished,Or.trigger("series:layoutlabels",v,c,m),Or.trigger("series:transition",v,c,m),v.eachSeries(function(_){var b=h._chartsMap[_.__viewId];l(_,b),f(_,b)}),o(h,v),Or.trigger("series:afterupdate",v,c,m)},_r=function(h){h[Ud]=!0,h.getZr().wakeUp()},xo=function(h){h[Bf]=(h[Bf]+1)%1e3},Mb=function(h){h[Ud]&&(h.getZr().storage.traverse(function(v){Cs(v)||a(v)}),h[Ud]=!1)};function a(h){for(var v=[],c=h.currentStates,d=0;d<c.length;d++){var m=c[d];m==="emphasis"||m==="blur"||m==="select"||v.push(m)}h.selected&&h.states.select&&v.push("select"),h.hoverState===Fu&&h.states.emphasis?v.push("emphasis"):h.hoverState===Bu&&h.states.blur&&v.push("blur"),h.useStates(v)}function o(h,v){var c=h._zr,d=c.storage,m=0;d.traverse(function(p){p.isGroup||m++}),m>v.get("hoverLayerThreshold")&&!it.node&&!it.worker&&v.eachSeries(function(p){if(!p.preventUsingHoverLayer){var g=h._chartsMap[p.__viewId];g.__alive&&g.eachRendered(function(y){y.states.emphasis&&(y.states.emphasis.hoverLayer=!0)})}})}function s(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(d){d.isGroup||(d.style.blend=c)})}function l(h,v){if(!h.preventAutoZ){var c=r_(h);v.eachRendered(function(d){return n_(d,c.z,c.zlevel),!0})}}function u(h,v){v.eachRendered(function(c){if(!Cs(c)){var d=c.getTextContent(),m=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),m=c.get("duration"),p=m>0?{duration:m,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(g){if(g.states&&g.states.emphasis){if(Cs(g))return;if(g instanceof Lt&&WM(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(d){g.stateTransition=p;var _=g.getTextContent(),b=g.getTextGuideLine();_&&(_.stateTransition=p),b&&(b.stateTransition=p)}g.__dirty&&a(g)}})}Db=function(h){return new((function(v){J(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(d){for(;d;){var m=d.__ecComponentInfo;if(m!=null)return h._model.getComponent(m.mainType,m.index);d=d.parent}},c.prototype.enterEmphasis=function(d,m){$u(d,m),_r(h)},c.prototype.leaveEmphasis=function(d,m){Uu(d,m),_r(h)},c.prototype.enterBlur=function(d){EM(d),_r(h)},c.prototype.leaveBlur=function(d){C0(d),_r(h)},c.prototype.enterSelect=function(d){D0(d),_r(h)},c.prototype.leaveSelect=function(d){A0(d),_r(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},c.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},c.prototype.getMainProcessVersion=function(){return h[Bf]},c})(U_))(h)},Ab=function(h){function v(c,d){for(var m=0;m<c.length;m++){var p=c[m];p[Yd]=d}}L(Qd,function(c,d){h._messageCenter.on(d,function(m){if(Ib[h.group]&&h[Yd]!==mb){if(m&&m.escapeConnect)return;var p=h.makeActionFromEvent(m),g=[];L(qs,function(y){y!==h&&y.group===h.group&&g.push(y)}),v(g,mb),L(g,function(y){y[Yd]!==rP&&y.dispatchAction(p)}),v(g,nP)}})})}})(),t})(Yr),jd=Lb.prototype;jd.on=yb("on"),jd.off=yb("off"),jd.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var iP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function YB(e){}var Gf={},Qd={},Jd={},tp=[],ep=[],Vf=[],kb={},rp={},qs={},Ib={},aP=+new Date-0,np="_echarts_instance_";function oP(e,t,r){{var n=sP(e);if(n)return n}var i=new Lb(e,t,r);return i.id="ec_"+aP++,qs[i.id]=i,By(e,np,i.id),Ab(i),Or.trigger("afterinit",i),i}function sP(e){return qs[SA(e,np)]}function Pb(e,t){kb[e]=t}function Eb(e){St(ep,e)<0&&ep.push(e)}function Rb(e,t){ap(tp,e,t,qI)}function lP(e){ip("afterinit",e)}function uP(e){ip("afterupdate",e)}function ip(e,t){Or.on(e,t)}function To(e,t,r){var n,i,a,o,s;rt(t)&&(r=t,t=""),Z(e)?(n=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,r||(r=e.action),a=e.refineEvent):(n=e,i=t);function l(f){return f.toLowerCase()}i=l(i||n);var u=a?l(n):i;Gf[n]||(_n(gb.test(n)&&gb.test(i)),a&&_n(i!==n),Gf[n]={actionType:n,refinedEventType:i,nonRefinedEventType:u,update:o,action:r,refineEvent:a},Jd[i]=1,a&&s&&(Jd[u]=1),Qd[u]=n)}function fP(e,t){gd.register(e,t)}function hP(e,t){ap(Vf,e,t,vb,"layout")}function Sa(e,t){ap(Vf,e,t,db,"visual")}var Ob=[];function ap(e,t,r,n,i){if((rt(t)||Z(t))&&(r=t,t=n),!(St(Ob,r)>=0)){Ob.push(r);var a=z1.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Nb(e,t){rp[e]=t}function cP(e,t,r){var n=WI("registerMap");n&&n(e,t,r)}var vP=mk;Sa($d,Xk),Sa(Nf,qk),Sa(Nf,Zk),Sa($d,lI),Sa(Nf,uI),Sa(pb,GI),Eb(Q_),Rb(YI,J2),Nb("default",Kk),To({type:sa,event:sa,update:sa},Oe),To({type:Hu,event:Hu,update:Hu},Oe),To({type:Gu,event:Av,update:Gu,action:Oe,refineEvent:op,publishNonRefinedEvent:!0}),To({type:Dv,event:Av,update:Dv,action:Oe,refineEvent:op,publishNonRefinedEvent:!0}),To({type:Vu,event:Av,update:Vu,action:Oe,refineEvent:op,publishNonRefinedEvent:!0});function op(e,t,r,n){return{eventContent:{selected:FM(r),isFromClick:t.isFromClick||!1}}}Pb("default",{}),Pb("dark",$1);function Zs(e){return e==null?0:e.length||1}function Bb(e){return e}var dP=(function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Bb,this._newKeyGetter=i||Bb,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=Zs(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Zs(u),v=Zs(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=Zs(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=Zs(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e})(),pP=(function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function gP(e,t){var r={},n=r.encode={},i=ft(),a=[],o=[],s={};L(e.dimensions,function(v){var c=e.getDimensionInfo(v),d=c.coordDim;if(d){var m=c.coordDimIndex;sp(n,d)[m]=v,c.isExtraCoord||(i.set(d,1),yP(c.type)&&(a[0]=v),sp(s,d)[m]=e.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}R_.each(function(p,g){var y=sp(n,g),_=c.otherDims[g];_!=null&&_!==!1&&(y[_]=c.name)})});var l=[],u={};i.each(function(v,c){var d=n[c];u[c]=d[0],l=l.concat(d)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=K(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new pP(s,t),r}function sp(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function mP(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function yP(e){return!(e==="ordinal"||e==="time")}var Wf=(function(){function e(t){this.otherDims={},t!=null&&H(this,t)}return e})(),_P=$t(),bP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Fb=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Gb(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Q(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=n1(this.source),n=!Vb(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=r?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=r?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=bP[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,d=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function zb(e){return e instanceof Fb}function Hb(e){for(var t=ft(),r=0;r<(e||[]).length;r++){var n=e[r],i=Z(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function Gb(e){var t=_P(e);return t.dimNameMap||(t.dimNameMap=Hb(e.dimensionsDefine))}function Vb(e){return e>30}var Ks=Z,ui=K,wP=typeof Int32Array>"u"?Array:Int32Array,SP="e\0\0",Wb=-1,xP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],TP=["_approximateExtent"],$b,$f,js,Qs,lp,Js,up,Ub=(function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;zb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=Y(h)?new Wf({name:h}):h instanceof Wf?h:new Wf(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var d=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]);var m=f;Mt(v.storeDimIndex)&&(m=v.storeDimIndex),d.itemName===0&&(this._nameDimIdx=m),d.itemId===0&&(this._idDimIdx=m),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=ft();L(o,function(g){p.set(a[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(Mt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,a;if(t instanceof kd&&(a=t),!a){var o=this.dimensions,s=Td(t)||Ee(t)?new o1(t,o.length):t;a=new kd;var l=ui(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=gP(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r&&r.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&up(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==si&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xe;if(l&&!i.pure)for(var u=[],f=t;f<r;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&hA(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=Qr(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=Qr(c,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)up(this,f);$b(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Ks(t)?H(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=js(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return $f(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return U(t)?i.getValues(ui(t,function(a){return n._getStoreDimIndex(a)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n&&n[r];return i==null||isNaN(i)?Wb:i},e.prototype.each=function(t,r,n){rt(t)&&(n=r,r=t,t=[]);var i=n||this,a=ui(Qs(t),this._getStoreDimIndex,this);this._store.each(a,i?At(r,i):r)},e.prototype.filterSelf=function(t,r,n){rt(t)&&(n=r,r=t,t=[]);var i=n||this,a=ui(Qs(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?At(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Vt(t);return L(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){rt(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var a=n||i||this,o=ui(Qs(t),this._getStoreDimIndex,this),s=Js(this);return s._store=this._store.map(o,a?At(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=ui(Qs(t),this._getStoreDimIndex,this);this._store.modify(o,a?At(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Js(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.minmaxDownSample=function(t,r){var n=Js(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),r),n},e.prototype.lttbDownSample=function(t,r){var n=Js(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Ut(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new dP(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return $f(t,n)},function(n){return $f(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Ks(t)?H(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),U(a)?a=a.slice():Ks(a)&&(a=H({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ks(r)?H(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Ks(t)?H(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?H(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;xM(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){L(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:ui(this.dimensions,this._getDimInfo,this),this.hostModel)),lp(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];rt(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(tc(arguments)))})},e.internalField=(function(){$b=function(t){var r=t._invertedIndicesMap;L(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new wP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Wb;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},js=function(t,r,n){return Qr(t._getCategory(r,n),null)},$f=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=js(t,t._idDimIdx,r)),n==null&&(n=SP+r),n},Qs=function(t){return U(t)||(t=t!=null?[t]:[]),t},Js=function(t){var r=new e(t._schema?t._schema:ui(t.dimensions,t._getDimInfo,t),t.hostModel);return lp(r,t),r},lp=function(t,r){L(xP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,L(TP,function(n){t[n]=pt(r[n])}),t._calculationInfo=H({},r._calculationInfo)},up=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=js(t,a,r)),l==null&&o!=null&&(i[r]=l=js(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}})(),e})();function Yb(e,t){Td(e)||(e=J_(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ft(),a=[],o=DP(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Vb(o),l=n===e.dimensionsDefine,u=l?Gb(e):Hb(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,o));for(var h=ft(f),v=new p1(o),c=0;c<v.length;c++)v[c]=-1;function d(A){var C=v[A];if(C<0){var D=n[A],k=Z(D)?D:{name:D},M=new Wf,I=k.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),k.type!=null&&(M.type=k.type),k.displayName!=null&&(M.displayName=k.displayName);var E=a.length;return v[A]=E,M.storeDimIndex=A,a.push(M),M}return a[C]}if(!s)for(var c=0;c<o;c++)d(c);h.each(function(A,C){var D=Ce(A).slice();if(D.length===1&&!Y(D[0])&&D[0]<0){h.set(C,!1);return}var k=h.set(C,[]);L(D,function(M,I){var E=Y(M)?u.get(M):M;E!=null&&E<o&&(k[I]=E,p(d(E),C,I))})});var m=0;L(r,function(A){var C,D,k,M;if(Y(A))C=A,M={};else{M=A,C=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=H({},M),M.ordinalMeta=I,D=M.dimsDef,k=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var E=h.get(C);if(E!==!1){if(E=Ce(E),!E.length)for(var N=0;N<(D&&D.length||1);N++){for(;m<o&&d(m).coordDim!=null;)m++;m<o&&E.push(m++)}L(E,function(z,O){var B=d(z);if(l&&M.type!=null&&(B.type=M.type),p(Dt(B,M),C,O),B.name==null&&D){var G=D[O];!Z(G)&&(G={name:G}),B.name=B.displayName=G.name,B.defaultTooltip=G.defaultTooltip}k&&Dt(B.otherDims,k)})}});function p(A,C,D){R_.get(C)!=null?A.otherDims[C]=D:(A.coordDim=C,A.coordDimIndex=D,i.set(C,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function S(A){A.name==null&&(A.name=A.coordDim)}if(s)L(a,function(A){S(A)}),a.sort(function(A,C){return A.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var T=d(w),x=T.coordDim;x==null&&(T.coordDim=AP(b,i,_),T.coordDimIndex=0,(!g||y<=0)&&(T.isExtraCoord=!0),y--),S(T),T.type==null&&(B_(e,w)===ge.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return CP(a),new Fb({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function CP(e){for(var t=ft(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function DP(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return L(t,function(a){var o;Z(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function AP(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var MP=(function(){function e(t){this.coordSysDims=[],this.axisMap=ft(),this.categoryAxisMap=ft(),this.coordSysName=t}return e})();function LP(e){var t=e.get("coordinateSystem"),r=new MP(t),n=kP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var kP={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",ur).models[0],a=e.getReferringComponents("yAxis",ur).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Co(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Co(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",ur).models[0];t.coordSysDims=["single"],r.set("single",i),Co(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",ur).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Co(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Co(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];r.set(f,u),Co(u)&&(n.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,r,n){var i=e.getReferringComponents("matrix",ur).models[0];t.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");r.set("x",a),r.set("y",o),n.set("x",a),n.set("y",o)}};function Co(e){return e.get("type")==="category"}function IP(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;PP(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,f,h,v;if(L(a,function(y,_){Y(y)&&(a[_]=y={name:y}),l&&!y.isExtraCoord&&(!n&&!u&&y.ordinalMeta&&(u=y),!f&&y.type!=="ordinal"&&y.type!=="time"&&(!i||i===y.coordDim)&&(f=y))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,d=f.type,m=0;L(a,function(y){y.coordDim===c&&m++});var p={name:h,coordDim:c,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},g={name:v,coordDim:v,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(v,d),g.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(g)):(a.push(p),a.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function PP(e){return!zb(e.schema)}function Do(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function EP(e,t){return Do(e,t)?e.getCalculationInfo("stackResultDimension"):t}function RP(e,t){var r=e.get("coordinateSystem"),n=gd.get(r),i;return t&&t.coordSysDims&&(i=K(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=mP(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function OP(e,t,r){var n,i;return r&&L(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function fp(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===Xe;var o=LP(t),s=RP(t,o),l=r.useEncodeDefaulter,u=rt(l)?l:l?Qt(M2,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Yb(i,f),v=OP(h.dimensions,r.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),d=IP(t,{schema:h,store:c}),m=new Ub(h,t);m.setCalculationInfo(d);var p=v!=null&&NP(i)?function(g,y,_,b){return b===v?_:this.defaultDimValueGetter(g,y,_,b)}:null;return m.hasItemOption=!1,m.initData(a?i:c,null,p),m}function NP(e){if(e.sourceFormat===Xe){var t=BP(e.data||[]);return!U(cs(t))}}function BP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}function hp(e){return e.type==="interval"||e.type==="log"}function FP(e,t,r,n,i){var a={},o=a.interval=My(t/r);n!=null&&o<n&&(o=a.interval=n),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=tl(o),l=a.niceTickExtent=[de(Math.ceil(e[0]/o)*o,s),de(Math.floor(e[1]/o)*o,s)];return zP(l,e),a}function cp(e){var t=Math.pow(10,ev(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,de(r*t)}function tl(e){return Sn(e)+2}function Xb(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function zP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Xb(e,0,t),Xb(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function vp(e,t){return e>=t[0]&&e<=t[1]}var HP=(function(){function e(){this.normalize=qb,this.scale=Zb}return e.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=At(t.normalize,t),this.scale=At(t.scale,t)):(this.normalize=qb,this.scale=Zb)},e})();function qb(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Zb(e,t){return e*(t[1]-t[0])+t[0]}function dp(e,t,r){var n=Math.log(e);return[Math.log(r?t[0]:Math.max(0,t[0]))/n,Math.log(r?t[1]:Math.max(0,t[1]))/n]}var fi=(function(){function e(t){this._calculator=new HP,this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype._innerUnionExtent=function(t){var r=this._extent;this._innerSetExtent(t[0]<r[0]?t[0]:r[0],t[1]>r[1]?t[1]:r[1])},e.prototype.unionExtentFromData=function(t,r){this._innerUnionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){this._innerSetExtent(t,r)},e.prototype._innerSetExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(t){},e.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();Lu(fi);var GP=0,pp=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++GP,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&K(n,VP);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Y(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,this._onCollect&&this._onCollect(t,r),r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r),this._onCollect&&this._onCollect(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ft(this.categories))},e})();function VP(e){return Z(e)&&e.value!=null?e.value:e+""}var Kb=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new pp({})),U(i)&&(i=new pp({categories:K(i,function(a){return Z(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Y(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return vp(r,this._extent)&&r>=0&&r<this._ordinalMeta.categories.length},t.prototype.normalize=function(r){return r=this._getTickNumber(r),this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(this._calculator.scale(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(fi);fi.registerClass(Kb);var hi=de,Ao=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r==null||r===""?NaN:Number(r)},t.prototype.contain=function(r){return vp(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=tl(r)},t.prototype.getTicks=function(r){r=r||{};var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=cf(),l=[];if(!n)return l;r.breakTicks;var u=1e4;i[0]<a[0]&&(r.expandToNicedExtent?l.push({value:hi(a[0]-n,o)}):l.push({value:i[0]}));for(var f=function(d,m){return Math.round((m-d)/n)},h=a[0];h<=a[1];){if(l.push({value:h}),h=hi(h+n,o),this._brkCtx){var v=this._brkCtx.calcNiceTickMultiple(h,f);v>=0&&(h=hi(h+v*n,o))}if(l.length>0&&h===l[l.length-1].value)break;if(l.length>u)return[]}var c=l.length?l[l.length-1].value:a[1];return i[1]>c&&(r.expandToNicedExtent?l.push({value:hi(c+n,o)}):l.push({value:i[1]})),r.breakTicks,l},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks({expandToNicedExtent:!0}),i=[],a=this.getExtent(),o=1;o<n.length;o++){var s=n[o],l=n[o-1];if(!(l.break||s.break)){for(var u=0,f=[],h=s.value-l.value,v=h/r,c=tl(v);u<r-1;){var d=hi(l.value+(u+1)*v,c);d>a[0]&&d<a[1]&&f.push(d),u++}var m=cf();m&&m.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(p){return p},this._interval,a),i.push(f)}}return i},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Sn(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=hi(r.value,i,!0);return C_(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,a.reverse(),this._innerSetExtent(a[0],a[1]),a=this._extent.slice());var s=FP(a,o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent.slice();if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this._innerSetExtent(n[0],n[1]),n=this._extent.slice(),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval,s=this._intervalPrecision;r.fixMin||(n[0]=hi(Math.floor(n[0]/o)*o,s)),r.fixMax||(n[1]=hi(Math.ceil(n[1]/o)*o,s)),this._innerSetExtent(n[0],n[1])},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t})(fi);fi.registerClass(Ao);var jb=typeof Float32Array<"u",WP=jb?Float32Array:Array;function Mn(e){return U(e)?jb?new Float32Array(e):e:new WP(e)}var $P="__ec_stack_";function Qb(e){return e.get("stack")||$P+e.seriesIndex}function gp(e){return e.dim+e.index}function Jb(e,t){var r=[];return t.eachSeriesByType(e,function(n){ew(n)&&r.push(n)}),r}function UP(e){var t={};L(e,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),m=0,p=d.count();m<p;++m){var g=d.get(c,m);t[v]?t[v].push(g):t[v]=[g]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function tw(e){var t=UP(e),r=[];return L(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var d=Wt(n.get("barWidth"),s),m=Wt(n.get("barMaxWidth"),s),p=Wt(n.get("barMinWidth")||(rw(n)?.5:1),s),g=n.get("barGap"),y=n.get("barCategoryGap"),_=n.get("defaultBarGap");r.push({bandWidth:s,barWidth:d,barMaxWidth:m,barMinWidth:p,barGap:g,barCategoryGap:y,defaultBarGap:_,axisKey:gp(a),stackId:Qb(n)})}),YP(r)}function YP(e){var t={};L(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:n.defaultBarGap||0,stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var r={};return L(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Vt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Wt(s,o),f=Wt(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),L(a,function(g){var y=g.maxWidth,_=g.minWidth;if(g.width){var b=g.width;y&&(b=Math.min(b,y)),_&&(b=Math.max(b,_)),g.width=b,h-=b+f*b,v--}else{var b=c;y&&y<b&&(b=Math.min(y,h)),_&&_>b&&(b=_),b!==c&&(g.width=b,h-=b+f*b,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var d=0,m;L(a,function(g,y){g.width||(g.width=c),m=g,d+=g.width*(1+f)}),m&&(d-=m.width*f);var p=-d/2;L(a,function(g,y){r[i][y]=r[i][y]||{bandWidth:o,offset:p,width:g.width},p+=g.width*(1+f)})}),r}function XP(e,t,r){if(e&&t){var n=e[gp(t)];return n}}function qP(e,t){var r=Jb(e,t),n=tw(r);L(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Qb(i),u=n[gp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function ZP(e){return{seriesType:e,plan:Od(),reset:function(t){if(ew(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),f=r.getCalculationInfo("stackResultDimension"),h=Do(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=KP(i,a),d=rw(t),m=t.get("barMinHeight")||0,p=f&&r.getDimensionIndex(f),g=r.getLayout("size"),y=r.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=d&&Mn(S*3),T=d&&l&&Mn(S*3),x=d&&Mn(S),A=n.master.getRect(),C=v?A.width:A.height,D,k=b.getStore(),M=0;(D=_.next())!=null;){var I=k.get(h?p:o,D),E=k.get(s,D),N=c,z=void 0;h&&(z=+I-k.get(o,D));var O=void 0,B=void 0,G=void 0,V=void 0;if(v){var F=n.dataToPoint([I,E]);if(h){var W=n.dataToPoint([z,E]);N=W[0]}O=N,B=F[1]+y,G=F[0]-N,V=g,Math.abs(G)<m&&(G=(G<0?-1:1)*m)}else{var F=n.dataToPoint([E,I]);if(h){var W=n.dataToPoint([E,z]);N=W[1]}O=F[0]+y,B=N,G=g,V=F[1]-N,Math.abs(V)<m&&(V=(V<=0?-1:1)*m)}d?(w[M]=O,w[M+1]=B,w[M+2]=v?G:V,T&&(T[M]=v?A.x:O,T[M+1]=v?B:A.y,T[M+2]=C),x[D]=D):b.setItemLayout(D,{x:O,y:B,width:G,height:V}),M+=3}d&&b.setLayout({largePoints:w,largeDataIndices:x,largeBackgroundPoints:T,valueAxisHorizontal:v})}}}}}}function ew(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function rw(e){return e.pipelineContext&&e.pipelineContext.large}function KP(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var jP=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},nw=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pf(r.value,m_[u2(Ps(this._minLevelUnit))]||m_.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return f2(r,n,i,o,a)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=[];if(!n)return a;var o=this.getSetting("useUTC"),s=gf(i[1],o);a.push({value:i[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=aE(this._minLevelUnit,this._approxInterval,o,i,this._getExtentSpanWithBreaks(),this._brkCtx);a=a.concat(l);var u=gf(i[1],o);a.push({value:i[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=ha.length-1,h=0;return L(a,function(v){f=Math.min(f,St(ha,v.time.upperTimeUnit)),h=Math.max(h,v.time.level)}),a},t.prototype.calcNiceExtent=function(r){var n=this.getExtent();if(n[0]===n[1]&&(n[0]-=pr,n[1]+=pr),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-pr}this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._getExtentSpanWithBreaks();this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var o=Uf.length,s=Math.min(jP(Uf,this._approxInterval,0,o),o-1);this._interval=Uf[s][1],this._intervalPrecision=tl(this._interval),this._minLevelUnit=Uf[Math.max(s-1,0)][0]},t.prototype.parse=function(r){return Mt(r)?r:+ao(r)},t.prototype.contain=function(r){return vp(r,this._extent)},t.prototype.normalize=function(r){return this._calculator.normalize(r,this._extent)},t.prototype.scale=function(r){return this._calculator.scale(r,this._extent)},t.type="time",t})(Ao),Uf=[["second",id],["minute",ad],["hour",Is],["quarter-day",Is*6],["half-day",Is*12],["day",pr*1.2],["half-week",pr*3.5],["week",pr*7],["month",pr*31],["quarter",pr*95],["half-year",g_/2],["year",g_]];function QP(e,t,r,n){return od(new Date(t),e,n).getTime()===od(new Date(r),e,n).getTime()}function JP(e,t){return e/=pr,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function tE(e){var t=30*pr;return e/=t,e>6?6:e>3?3:e>2?2:1}function eE(e){return e/=Is,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function iw(e,t){return e/=t?ad:id,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rE(e){return My(e)}function nE(e,t,r){var n=Math.max(0,St(ha,t)-1);return od(new Date(e),ha[n],r).getTime()}function iE(e,t){var r=new Date(0);r[e](1);var n=r.getTime();r[e](1+t);var i=r.getTime()-n;return function(a,o){return Math.max(0,Math.round((o-a)/i))}}function aE(e,t,r,n,i,a){var o=1e4,s=a2,l=0;function u(M,I,E,N,z,O,B){for(var G=iE(z,M),V=I,F=new Date(V);V<E&&V<=n[1]&&(B.push({value:V}),!(l++>o));)if(F[z](F[N]()+M),V=F.getTime(),a){var W=a.calcNiceTickMultiple(V,G);W>0&&(F[z](F[N]()+W*M),V=F.getTime())}B.push({value:V,notAdd:!0})}function f(M,I,E){var N=[],z=!I.length;if(!QP(Ps(M),n[0],n[1],r)){z&&(I=[{value:nE(n[0],M,r)},{value:n[1]}]);for(var O=0;O<I.length-1;O++){var B=I[O].value,G=I[O+1].value;if(B!==G){var V=void 0,F=void 0,W=void 0,tt=!1;switch(M){case"year":V=Math.max(1,Math.round(t/pr/365)),F=y_(r),W=h2(r);break;case"half-year":case"quarter":case"month":V=tE(t),F=sd(r),W=__(r);break;case"week":case"half-week":case"day":V=JP(t),F=ld(r),W=b_(r),tt=!0;break;case"half-day":case"quarter-day":case"hour":V=eE(t),F=ud(r),W=w_(r);break;case"minute":V=iw(t,!0),F=fd(r),W=S_(r);break;case"second":V=iw(t,!1),F=hd(r),W=x_(r);break;case"millisecond":V=rE(t),F=cd(r),W=T_(r);break}G>=n[0]&&B<=n[1]&&u(V,B,G,F,W,tt,N),M==="year"&&E.length>1&&O===0&&E.unshift({value:E[0].value-V})}}for(var O=0;O<N.length;O++)E.push(N[O])}}for(var h=[],v=[],c=0,d=0,m=0;m<s.length;++m){var p=Ps(s[m]);if(l2(s[m])){f(s[m],h[h.length-1]||[],v);var g=s[m+1]?Ps(s[m+1]):null;if(p!==g){if(v.length){d=c,v.sort(function(M,I){return M.value-I.value});for(var y=[],_=0;_<v.length;++_){var b=v[_].value;(_===0||v[_-1].value!==b)&&(y.push(v[_]),b>=n[0]&&b<=n[1]&&c++)}var S=i/t;if(c>S*1.5&&d>S/1.5||(h.push(y),c>S||e===s[m]))break}v=[]}}}for(var w=se(K(h,function(M){return se(M,function(I){return I.value>=n[0]&&I.value<=n[1]&&!I.notAdd})}),function(M){return M.length>0}),T=[],x=w.length-1,m=0;m<w.length;++m)for(var A=w[m],C=0;C<A.length;++C){var D=gf(A[C].value,r);T.push({value:A[C].value,time:{level:x-m,upperTimeUnit:D,lowerTimeUnit:D}})}T.sort(function(M,I){return M.value-I.value});for(var k=[],m=0;m<T.length;++m)(m===0||T[m].value!==T[m-1].value)&&k.push(T[m]);return k}fi.registerClass(nw);var mp=de,oE=Math.floor,sE=Math.ceil,Yf=Math.pow,Xf=Math.log,aw=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Ao,r}return t.prototype.getTicks=function(r){r=r||{};var n=this._extent.slice(),i=this._originalScale.getExtent(),a=e.prototype.getTicks.call(this,r),o=this.base;return this._originalScale._innerGetBreaks(),K(a,function(s){var l=s.value,u=null,f=Yf(o,l);l===n[0]&&this._fixMin?u=i[0]:l===n[1]&&this._fixMax&&(u=i[1]);var h;return u!=null&&(f=yp(f,u)),{value:f,break:h}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(r,n){this._originalScale.setExtent(r,n);var i=dp(this.base,[r,n]);e.prototype.setExtent.call(this,i[0],i[1])},t.prototype.getExtent=function(){var r=this.base,n=e.prototype.getExtent.call(this);n[0]=Yf(r,n[0]),n[1]=Yf(r,n[1]);var i=this._originalScale.getExtent();return this._fixMin&&(n[0]=yp(n[0],i[0])),this._fixMax&&(n[1]=yp(n[1],i[1])),n},t.prototype.unionExtentFromData=function(r,n){this._originalScale.unionExtentFromData(r,n);var i=dp(this.base,r.getApproximateExtent(n),!0);this._innerUnionExtent(i)},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(!(!isFinite(i)||i<=0)){var a=aA(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[mp(sE(n[0]/a)*a),mp(oE(n[1]/a)*a)];this._interval=a,this._intervalPrecision=tl(a),this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){e.prototype.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.contain=function(r){return r=Xf(r)/Xf(this.base),e.prototype.contain.call(this,r)},t.prototype.normalize=function(r){return r=Xf(r)/Xf(this.base),e.prototype.normalize.call(this,r)},t.prototype.scale=function(r){return r=e.prototype.scale.call(this,r),Yf(this.base,r)},t.prototype.setBreaksFromOption=function(r){},t.type="log",t})(Ao);function yp(e,t){return mp(e,Sn(t))}fi.registerClass(aw);var lE=(function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;rt(o)?this._modelMinNum=qf(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=qf(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(rt(s)?this._modelMaxNum=qf(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=qf(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=U(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Zn(u[0],1),Zn(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=jo(s)||jo(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},e.prototype.modifyDataMinMax=function(t,r){this[fE[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=uE[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e})(),uE={min:"_determinedMin",max:"_determinedMax"},fE={min:"_dataMin",max:"_dataMax"};function hE(e,t,r){var n=e.rawExtentInfo;return n||(n=new lE(e,t,r),e.rawExtentInfo=n,n)}function qf(e,t){return t==null?null:jo(t)?NaN:e.parse(t)}function ow(e,t){var r=e.type,n=hE(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Jb("bar",o),l=!1;if(L(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=tw(s),f=cE(i,a,t,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function cE(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=XP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;L(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;L(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-e,h=1-(s+l)/a,v=f/h-f;return t+=v*(l/u),e-=v*(s/u),{min:e,max:t}}function sw(e,t){var r=t,n=ow(e,r),i=n.extent,a=r.get("splitNumber");e instanceof aw&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setBreaksFromOption(uw(r)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function vE(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Kb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new nw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(fi.getClass(t)||Ao)}}function dE(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function el(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var r=o2(t);return function(i,a){return e.scale.getFormattedLabel(i,a,r)}}else{if(Y(t))return function(i){var a=e.scale.getLabel(i),o=t.replace("{value}",a??"");return o};if(rt(t)){if(e.type==="category")return function(i,a){return t(Zf(e,i),i.value-e.scale.getExtent()[0],null)};var n=cf();return function(i,a){var o=null;return n&&(o=n.makeAxisLabelFormatterParamBreak(o,i.break)),t(Zf(e,i),a,o)}}else return function(i){return e.scale.getLabel(i)}}}function Zf(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function _p(e){var t=e.get("interval");return t??"auto"}function lw(e){return e.type==="category"&&_p(e.getLabelModel())===0}function pE(e,t){var r={};return L(e.mapDimensionsAll(t),function(n){r[EP(e,n)]=!0}),Vt(r)}function Mo(e){return e==="middle"||e==="center"}function rl(e){return e.getShallow("show")}function uw(e){var t=e.get("breaks",!0);t==null}var gE=(function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e})(),fw=[],mE={registerPreprocessor:Eb,registerProcessor:Rb,registerPostInit:lP,registerPostUpdate:uP,registerUpdateLifecycle:ip,registerAction:To,registerCoordinateSystem:fP,registerLayout:hP,registerVisual:Sa,registerTransform:vP,registerLoading:Nb,registerMap:cP,registerImpl:VI,PRIORITY:eP,ComponentModel:kt,ComponentView:Rr,SeriesModel:Er,ChartView:yr,registerComponentModel:function(e){kt.registerClass(e)},registerComponentView:function(e){Rr.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){yr.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){kt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){jD(e,t)}};function ci(e){if(U(e)){L(e,function(t){ci(t)});return}St(fw,e)>=0||(fw.push(e),rt(e)&&(e={install:e}),e.install(mE))}var yE=$t(),nl=$t(),Nr={estimate:1,determine:2};function Kf(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function hw(e,t){var r=K(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function _E(e,t){var r=e.getLabelModel().get("customValues");if(r){var n=el(e),i=e.scale.getExtent(),a=hw(e,r),o=se(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:K(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return e.type==="category"?wE(e,t):xE(e)}function bE(e,t,r){var n=e.getTickModel().get("customValues");if(n){var i=e.scale.getExtent(),a=hw(e,n);return{ticks:se(a,function(o){return o>=i[0]&&o<=i[1]})}}return e.type==="category"?SE(e,t):{ticks:K(e.scale.getTicks(r),function(o){return o.value})}}function wE(e,t){var r=e.getLabelModel(),n=cw(e,r,t);return!r.get("show")||e.scale.isBlank()?{labels:[]}:n}function cw(e,t,r){var n=CE(e),i=_p(t),a=r.kind===Nr.estimate;if(!a){var o=dw(n,i);if(o)return o}var s,l;rt(i)?s=mw(e,i):(l=i==="auto"?DE(e,r):i,s=gw(e,l));var u={labels:s,labelCategoryInterval:l};return a?r.out.noPxChangeTryDetermine.push(function(){return bp(n,i,u),!0}):bp(n,i,u),u}function SE(e,t){var r=TE(e),n=_p(t),i=dw(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),rt(n))a=mw(e,n,!0);else if(n==="auto"){var s=cw(e,e.getLabelModel(),Kf(Nr.determine));o=s.labelCategoryInterval,a=K(s.labels,function(l){return l.tickValue})}else o=n,a=gw(e,o,!0);return bp(r,n,{ticks:a,tickCategoryInterval:o})}function xE(e){var t=e.scale.getTicks(),r=el(e);return{labels:K(t,function(n,i){return{formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value,time:n.time,break:n.break}})}}var TE=vw("axisTick"),CE=vw("axisLabel");function vw(e){return function(r){return nl(r)[e]||(nl(r)[e]={list:[]})}}function dw(e,t){for(var r=0;r<e.list.length;r++)if(e.list[r].key===t)return e.list[r].value}function bp(e,t,r){return e.list.push({key:t,value:r}),r}function DE(e,t){if(t.kind===Nr.estimate){var r=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return nl(e).autoInterval=r,!0}),r}var n=nl(e).autoInterval;return n??(nl(e).autoInterval=e.calculateCategoryInterval(t))}function AE(e,t){var r=t.kind,n=LE(e),i=el(e),a=(n.axisRotate-n.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var h=s[0],v=e.dataToCoord(h+1)-e.dataToCoord(h),c=Math.abs(v*Math.cos(a)),d=Math.abs(v*Math.sin(a)),m=0,p=0;h<=s[1];h+=u){var g=0,y=0,_=wy(i({value:h}),n.font,"center","top");g=_.width*1.3,y=_.height*1.3,m=Math.max(m,g,7),p=Math.max(p,y,7)}var b=m/c,S=p/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(r===Nr.estimate)return t.out.noPxChangeTryDetermine.push(At(ME,null,e,w,l)),w;var T=pw(e,w,l);return T??w}function ME(e,t,r){return pw(e,t,r)==null}function pw(e,t,r){var n=yE(e.model),i=e.getExtent(),a=n.lastAutoInterval,o=n.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-r)<=1&&a>t&&n.axisExtent0===i[0]&&n.axisExtent1===i[1])return a;n.lastTickCount=r,n.lastAutoInterval=t,n.axisExtent0=i[0],n.axisExtent1=i[1]}function LE(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 gw(e,t,r){var n=el(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=lw(e),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&m(a[0]);for(var d=u;d<=a[1];d+=l)m(d);c&&d-l!==a[1]&&m(a[1]);function m(p){var g={value:p};s.push(r?p:{formattedLabel:n(g),rawLabel:i.getLabel(g),tickValue:p,time:void 0,break:void 0})}return s}function mw(e,t,r){var n=e.scale,i=el(e),a=[];return L(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),a}var yw=[0,1],kE=(function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return eA(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&i.type==="ordinal"&&(n=n.slice(),_w(n,i.count())),Jc(t,yw,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),_w(n,i.count()));var a=Jc(t,n,yw,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=bE(this,r,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=n.ticks,a=K(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return IE(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=K(n,function(a){return K(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(t){return t=t||Kf(Nr.determine),_E(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(t){return t=t||Kf(Nr.determine),AE(this,t)},e})();function _w(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function IE(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;L(t,function(c){c.coord-=u/2,c.onBand=!0});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var h=a[0]>a[1];v(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&v(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),v(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&v(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function v(c,d){return c=de(c),d=de(d),h?c>d:c<d}}function bw(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,f=r-e,h=n-t,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,d=c/v;d*=v;var m=o[0]=e+d*f,p=o[1]=t+d*h;return Math.sqrt((m-i)*(m-i)+(p-a)*(p-a))}var vi=new at,Kt=new at,me=new at,di=new at,sn=new at,jf=[],Me=new at;function PE(e,t){if(t<=180&&t>0){t=t/180*Math.PI,vi.fromArray(e[0]),Kt.fromArray(e[1]),me.fromArray(e[2]),at.sub(di,vi,Kt),at.sub(sn,me,Kt);var r=di.len(),n=sn.len();if(!(r<.001||n<.001)){di.scale(1/r),sn.scale(1/n);var i=di.dot(sn),a=Math.cos(t);if(a<i){var o=bw(Kt.x,Kt.y,me.x,me.y,vi.x,vi.y,jf);Me.fromArray(jf),Me.scaleAndAdd(sn,o/Math.tan(Math.PI-t));var s=me.x!==Kt.x?(Me.x-Kt.x)/(me.x-Kt.x):(Me.y-Kt.y)/(me.y-Kt.y);if(isNaN(s))return;s<0?at.copy(Me,Kt):s>1&&at.copy(Me,me),Me.toArray(e[1])}}}}function EE(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,vi.fromArray(e[0]),Kt.fromArray(e[1]),me.fromArray(e[2]),at.sub(di,Kt,vi),at.sub(sn,me,Kt);var n=di.len(),i=sn.len();if(!(n<.001||i<.001)){di.scale(1/n),sn.scale(1/i);var a=di.dot(t),o=Math.cos(r);if(a<o){var s=bw(Kt.x,Kt.y,me.x,me.y,vi.x,vi.y,jf);Me.fromArray(jf);var l=Math.PI/2,u=Math.acos(sn.dot(t)),f=l+u-r;if(f>=l)at.copy(Me,me);else{Me.scaleAndAdd(sn,s/Math.tan(Math.PI/2-f));var h=me.x!==Kt.x?(Me.x-Kt.x)/(me.x-Kt.x):(Me.y-Kt.y)/(me.y-Kt.y);if(isNaN(h))return;h<0?at.copy(Me,Kt):h>1&&at.copy(Me,me)}Me.toArray(e[1])}}}}function wp(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function RE(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=oc(n[0],n[1]),a=oc(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=sc([],n[1],n[0],o/i),l=sc([],n[1],n[2],o/a),u=sc([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)e.lineTo(n[f][0],n[f][1])}function OE(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<zu.length;l++){var u=zu[l],f=t[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:Q(i.states[u]&&i.states[u].ignore,s);if(c||!Q(v,o)){var d=h?n:n&&n.states[u];d&&(d.ignore=!0),n&&wp(n,!0,u,f);continue}n||(n=new Ts,e.setTextGuideLine(n),!h&&(s||!o)&&wp(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),wp(n,!1,u,f)}}if(n){Dt(n.style,r),n.style.fill=null;var m=a.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=m||!1,n.buildPath=RE}}function NE(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<vr.length;n++){var i=vr[n];r[i]=e.getModel([i,t])}return r}var ww=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],BE=1,Qf=2,Sw=BE|Qf;function Jf(e,t,r){r=r||Sw,t?e.dirty|=r:e.dirty&=~r}function xw(e,t){return t=t||Sw,e.dirty==null||!!(e.dirty&t)}function pi(e){if(e)return xw(e)&&Tw(e,e.label,e),e}function Tw(e,t,r){var n=t.getComputedTransform();e.transform=Jv(e.transform,n);var i=e.localRect=Ms(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=co.textMargin);for(var h=0;h<4;h++)Sp[h]=f===co.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:o?o[h]:0;f===co.textMargin&&rf(i,Sp,!1,!1);var v=e.rect=Ms(e.rect,i);return n&&v.applyTransform(n),f===co.minMargin&&rf(v,Sp,!1,!1),e.axisAligned=Qv(n),(e.label=e.label||{}).ignore=t.ignore,Jf(e,!1),Jf(e,!0,Qf),e}var Sp=[0,0,0,0];function FE(e,t,r){return e.transform=Jv(e.transform,r),e.localRect=Ms(e.localRect,t),e.rect=Ms(e.rect,t),r&&e.rect.applyTransform(r),e.axisAligned=Qv(r),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function zE(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var r=e.transform;r&&(r[4]+=t.x,r[5]+=t.y);var n=e.rect;n&&(n.x+=t.x,n.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,r)}}function Cw(e,t){for(var r=0;r<ww.length;r++){var n=ww[r];e[n]==null&&(e[n]=t[n])}return pi(e)}function Dw(e){var t=e.obb;return(!t||xw(e,Qf))&&(e.obb=t=t||new X0,t.fromBoundingRect(e.localRect,e.transform),Jf(e,!1,Qf)),t}function HE(e,t,r,n,i){var a=e.length,o=ri[t],s=ho[t];if(a<2)return!1;e.sort(function(T,x){return T.rect[o]-x.rect[o]});for(var l=0,u,f=!1,h=0;h<a;h++){var v=e[h],c=v.rect;u=c[o]-l,u<0&&(c[o]-=u,v.label[o]-=u,f=!0),l=c[o]+c[s]}var d=e[0],m=e[a-1],p,g;y(),p<0&&S(-p,.8),g<0&&S(g,.8),y(),_(p,g,1),_(g,p,-1),y(),p<0&&w(-p),g<0&&w(g);function y(){p=d.rect[o]-r,g=n-m.rect[o]-m.rect[s]}function _(T,x,A){if(T<0){var C=Math.min(x,-T);if(C>0){b(C*A,0,a);var D=C+T;D<0&&S(-D*A,1)}else S(-T*A,1)}}function b(T,x,A){T!==0&&(f=!0);for(var C=x;C<A;C++){var D=e[C],k=D.rect;k[o]+=T,D.label[o]+=T}}function S(T,x){for(var A=[],C=0,D=1;D<a;D++){var k=e[D-1].rect,M=Math.max(e[D].rect[o]-k[o]-k[s],0);A.push(M),C+=M}if(C){var I=Math.min(Math.abs(T)/C,x);if(T>0)for(var D=0;D<a-1;D++){var E=A[D]*I;b(E,0,D+1)}else for(var D=a-1;D>0;D--){var E=A[D-1]*I;b(-E,D,a)}}}function w(T){var x=T<0?-1:1;T=Math.abs(T);for(var A=Math.ceil(T/(a-1)),C=0;C<a-1;C++)if(x>0?b(A,0,C+1):b(-A,a-C-1,a),T-=A,T<=0)return}return f}function GE(e){var t=[];e.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var n=0;n<e.length;n++){var i=pi(e[n]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<t.length;l++)if(xp(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):t.push(i)}}}function xp(e,t,r,n){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,r,n)?!1:e.axisAligned&&t.axisAligned?!0:Dw(e).intersect(Dw(t),r,n)}var VE=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return fp(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new le,i=bo("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=bo(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=q.color.neutral00,u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Er);function Tp(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=go(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(go(e,t,r[o]));return a.join(" ")}}function Aw(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Cp=(function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o,s){this.removeAll();var l=bo(r,-1,-1,2,2,null,s);l.attr({z2:Q(o,100),culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=WE,this._symbolType=r,this.add(l)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){$u(this.childAt(0))},t.prototype.downplay=function(){Uu(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=t.getSymbolZ2(r,n),f=o!==this._symbolType,h=a&&a.disableAnimation;if(f){var v=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,u,v)}else{var c=this.childAt(0);c.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?c.attr(d):Ae(c,d,s,n),Uv(c)}if(this._updateCommon(r,n,l,i,a),f){var c=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,dr(c,d,s,n)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,f,h,v,c,d,m,p,g;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,m=a.labelStatesModels,p=a.hoverScale,g=a.cursorStyle,d=a.emphasisDisabled),!a||r.hasItemOption){var y=a&&a.itemModel?a.itemModel:r.getItemModel(n),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),d=_.get("disabled"),m=ks(y),p=_.getShallow("scale"),g=y.getShallow("cursor")}var b=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=Y1(r.getItemVisual(n,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var w=r.getItemVisual(n,"style"),T=w.fill;if(s instanceof Jn){var x=s.style;s.useStyle(H({image:x.image,x:x.x,y:x.y,width:x.width,height:x.height},w))}else s.__isEmptyBrush?s.useStyle(H({},w)):s.useStyle(w),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=r.getItemVisual(n,"liftZ"),C=this._z2;A!=null?C==null&&(this._z2=s.z2,s.z2+=A):C!=null&&(s.z2=C,this._z2=null);var D=o&&o.useNameLabel;Ls(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:T,defaultOpacity:w.opacity});function k(E){return D?r.getName(E):Tp(r,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;M.scaleX=this._sizeX*I,M.scaleY=this._sizeY*I,this.setSymbolScale(1),bs(this,v,c,d)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=_t(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&ef(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();ef(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return CI(r.getItemVisual(n,"symbolSize"))},t.getSymbolZ2=function(r,n){return r.getItemVisual(n,"z2")},t})(le);function WE(e,t){this.parent.drift(e,t)}function Dp(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Mw(e){return e!=null&&!Z(e)&&(e={isIgnore:e}),e||{}}function Lw(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:ks(t),cursorStyle:t.get("cursor")}}var $E=(function(){function e(t){this.group=new le,this._SymbolCtor=t||Cp}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Mw(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Lw(t),u={disableAnimation:s},f=r.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var v=f(h);if(Dp(t,v,h,r)){var c=new o(t,h,l,u);c.setPosition(v),t.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),d=f(h);if(!Dp(t,d,h,r)){n.remove(c);return}var m=t.getItemVisual(h,"symbol")||"circle",p=c&&c.getSymbolType&&c.getSymbolType();if(!c||p&&p!==m)n.remove(c),c=new o(t,h,l,u),c.setPosition(d);else{c.updateData(t,h,l,u);var g={x:d[0],y:d[1]};s?c.attr(g):Ae(c,g,i)}n.add(c),t.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Lw(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Mw(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Dp(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){af(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e})();function kw(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=UE(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=K(e.dimensions,function(d){return t.mapDimension(d)}),v=!1,c=t.getCalculationInfo("stackResultDimension");return Do(t,h[0])&&(v=!0,h[0]=c),Do(t,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function UE(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Mt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Iw(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function YE(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function XE(e,t,r,n,i,a,o,s){for(var l=YE(e,t),u=[],f=[],h=[],v=[],c=[],d=[],m=[],p=kw(i,t,o),g=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],S=!0,w=void 0,T=void 0;switch(b.cmd){case"=":w=b.idx*2,T=b.idx1*2;var x=g[w],A=g[w+1],C=y[T],D=y[T+1];(isNaN(x)||isNaN(A))&&(x=C,A=D),u.push(x,A),f.push(C,D),h.push(r[w],r[w+1]),v.push(n[T],n[T+1]),m.push(t.getRawIndex(b.idx1));break;case"+":var k=b.idx,M=p.dataDimsForPoint,I=i.dataToPoint([t.get(M[0],k),t.get(M[1],k)]);T=k*2,u.push(I[0],I[1]),f.push(y[T],y[T+1]);var E=Iw(p,i,t,k);h.push(E[0],E[1]),v.push(n[T],n[T+1]),m.push(t.getRawIndex(k));break;case"-":S=!1}S&&(c.push(b),d.push(d.length))}d.sort(function(bt,ie){return m[bt]-m[ie]});for(var N=u.length,z=Mn(N),O=Mn(N),B=Mn(N),G=Mn(N),V=[],_=0;_<d.length;_++){var F=d[_],W=_*2,tt=F*2;z[W]=u[tt],z[W+1]=u[tt+1],O[W]=f[tt],O[W+1]=f[tt+1],B[W]=h[tt],B[W+1]=h[tt+1],G[W]=v[tt],G[W+1]=v[tt+1],V[_]=c[F]}return{current:z,next:O,stackedOnCurrent:B,stackedOnNext:G,status:V}}var gi=Math.min,mi=Math.max;function xa(e,t){return isNaN(e)||isNaN(t)}function Ap(e,t,r,n,i,a,o,s,l){for(var u,f,h,v,c,d,m=r,p=0;p<n;p++){var g=t[m*2],y=t[m*2+1];if(m>=i||m<0)break;if(xa(g,y)){if(l){m+=a;continue}break}if(m===r)e[a>0?"moveTo":"lineTo"](g,y),h=g,v=y;else{var _=g-u,b=y-f;if(_*_+b*b<.5){m+=a;continue}if(o>0){for(var S=m+a,w=t[S*2],T=t[S*2+1];w===g&&T===y&&p<n;)p++,S+=a,m+=a,w=t[S*2],T=t[S*2+1],g=t[m*2],y=t[m*2+1],_=g-u,b=y-f;var x=p+1;if(l)for(;xa(w,T)&&x<n;)x++,S+=a,w=t[S*2],T=t[S*2+1];var A=.5,C=0,D=0,k=void 0,M=void 0;if(x>=n||xa(w,T))c=g,d=y;else{C=w-u,D=T-f;var I=g-u,E=w-g,N=y-f,z=T-y,O=void 0,B=void 0;if(s==="x"){O=Math.abs(I),B=Math.abs(E);var G=C>0?1:-1;c=g-G*O*o,d=y,k=g+G*B*o,M=y}else if(s==="y"){O=Math.abs(N),B=Math.abs(z);var V=D>0?1:-1;c=g,d=y-V*O*o,k=g,M=y+V*B*o}else O=Math.sqrt(I*I+N*N),B=Math.sqrt(E*E+z*z),A=B/(B+O),c=g-C*o*(1-A),d=y-D*o*(1-A),k=g+C*o*A,M=y+D*o*A,k=gi(k,mi(w,g)),M=gi(M,mi(T,y)),k=mi(k,gi(w,g)),M=mi(M,gi(T,y)),C=k-g,D=M-y,c=g-C*O/B,d=y-D*O/B,c=gi(c,mi(u,g)),d=gi(d,mi(f,y)),c=mi(c,gi(u,g)),d=mi(d,gi(f,y)),C=g-c,D=y-d,k=g+C*B/O,M=y+D*B/O}e.bezierCurveTo(h,v,c,d,g,y),h=k,v=M}else e.lineTo(g,y)}u=g,f=y,m+=a}return p}var Pw=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),qE=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Pw},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&xa(i[o*2-2],i[o*2-1]);o--);for(;a<o&&xa(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Ap(r,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=na.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,d=void 0,m=void 0,p=void 0,g=void 0,y=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],d=a[h++],_=u?(r-s)/(c-s):(r-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(c-s)*_+s;return u?[r,b]:[b,r]}s=c,l=d;break;case o.C:c=a[h++],d=a[h++],m=a[h++],p=a[h++],g=a[h++],y=a[h++];var S=u?su(s,c,m,g,r,f):su(l,d,p,y,r,f);if(S>0)for(var w=0;w<S;w++){var T=f[w];if(T<=1&&T>=0){var b=u?ve(l,d,p,y,T):ve(s,c,m,g,T);return u?[r,b]:[b,r]}}s=g,l=y;break}}},t})(Lt),ZE=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Pw),KE=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new ZE},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&xa(i[s*2-2],i[s*2-1]);s--);for(;o<s&&xa(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Ap(r,i,o,s,s,1,n.smooth,l,n.connectNulls);Ap(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t})(Lt);function Ew(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=r.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new qt({shape:{x:o,y:s,width:l,height:u}});if(t){var v=e.getBaseAxis(),c=v.isHorizontal(),d=v.inverse;c?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var m=rt(i)?function(p){i(p,h)}:null;dr(h,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return h}function Rw(e,t,r){var n=e.getArea(),i=de(n.r0,1),a=de(n.r,1),o=new ti({shape:{cx:de(e.cx,1),cy:de(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,dr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function jE(e,t,r,n,i){if(e){if(e.type==="polar")return Rw(e,t,r);if(e.type==="cartesian2d")return Ew(e,t,r,n,i)}else return null;return null}function Mp(e,t){return e.type===t}function Ow(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Nw(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function Bw(e,t){var r=Nw(e),n=r[0],i=r[1],a=Nw(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function Fw(e){return Mt(e)?e:e?.5:0}function QE(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=Mn(n*2),a=0;a<n;a++){var o=Iw(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function yi(e,t,r,n,i){var a=r.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(i){for(l=0;l<e.length;l+=2){var c=t||e;!isNaN(c[l])&&!isNaN(c[l+1])&&v.push(e[l],e[l+1])}e=v}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],f[0]=e[l],f[1]=e[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,m=[];u[o]=m[o]=d,u[1-o]=f[1-o],m[1-o]=h[1-o],s.push(u[0],u[1]),s.push(m[0],m[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function JE(e,t){var r=[],n=e.length,i,a;function o(f,h,v){var c=f.coord,d=(v-c)/(h.coord-c),m=TD(d,[f.color,h.color]);return{coord:v,color:m}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function tR(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=K(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=JE(u,i==="x"?r.getWidth():r.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,m=v[0].coord-d,p=v[c-1].coord+d,g=p-m;if(g<.001)return"transparent";L(v,function(_){_.offset=(_.coord-m)/g}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var y=new Y0(0,0,0,0,v,!0);return y[i]=m,y[i+"2"]=p,y}}}function eR(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&rR(a,t))){var o=t.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function rR(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Cp.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function nR(e,t){return isNaN(e)||isNaN(t)}function iR(e){for(var t=e.length/2;t>0&&nR(e[t*2-2],e[t*2-1]);t--);return t-1}function zw(e,t){return[e[t*2],e[t*2+1]]}function aR(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Hw(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vr.length;t++)if(e.get([vr[t],"endLabel","show"]))return!0;return!1}function Lp(e,t,r,n){if(Mp(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Hw(n)?function(c,d){e._endLabelOnDuring(c,d,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Ew(t,r,n,function(){var c=e._endLabel;c&&r&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return Rw(t,r,n)}function oR(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var sR=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new le,n=new $E;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r,this._changePolyState=At(this._changePolyState,this)},t.prototype.render=function(r,n,i){var a=r.coordinateSystem,o=this.group,s=r.getData(),l=r.getModel("lineStyle"),u=r.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,c=this._symbolDraw,d=this._polyline,m=this._polygon,p=this._lineGroup,g=!n.ssr&&r.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=kw(a,s,_),S=y&&QE(a,s,b),w=r.get("showSymbol"),T=r.get("connectNulls"),x=w&&!h&&eR(r,s,a),A=this._data;A&&A.eachItemGraphicEl(function(bt,ie){bt.__temp&&(o.remove(bt),A.setItemGraphicEl(ie,null))}),w||c.remove(),o.add(p);var C=h?!1:r.get("step"),D;a&&a.getArea&&r.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var k=tR(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===a.type&&C===this._step))w&&c.updateData(s,{isIgnore:x,clipShape:D,disableAnimation:!0,getSymbolPoint:function(bt){return[f[bt*2],f[bt*2+1]]}}),g&&this._initSymbolLabelAnimation(s,a,D),C&&(S&&(S=yi(S,f,a,C,T)),f=yi(f,null,a,C,T)),d=this._newPolyline(f),y?m=this._newPolygon(f,S):m&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,ca(k)),p.setClipPath(Lp(this,a,!0,r));else{y&&!m?m=this._newPolygon(f,S):m&&!y&&(p.remove(m),m=this._polygon=null),h||this._initOrUpdateEndLabel(r,a,ca(k));var M=p.getClipPath();if(M){var I=Lp(this,a,!1,r);dr(M,{shape:I.shape},r)}else p.setClipPath(Lp(this,a,!0,r));w&&c.updateData(s,{isIgnore:x,clipShape:D,disableAnimation:!0,getSymbolPoint:function(bt){return[f[bt*2],f[bt*2+1]]}}),(!Ow(this._stackedOnPoints,S)||!Ow(this._points,f))&&(g?this._doUpdateAnimation(s,S,a,i,C,_,T):(C&&(S&&(S=yi(S,f,a,C,T)),f=yi(f,null,a,C,T)),d.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:S})))}var E=r.getModel("emphasis"),N=E.get("focus"),z=E.get("blurScope"),O=E.get("disabled");if(d.useStyle(Dt(l.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Yu(d,r,"lineStyle"),d.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}_t(d).seriesIndex=r.seriesIndex,bs(d,N,z,O);var G=Fw(r.get("smooth")),V=r.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:V,connectNulls:T}),m){var F=s.getCalculationInfo("stackedOnSeries"),W=0;m.useStyle(Dt(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),F&&(W=Fw(F.get("smooth"))),m.setShape({smooth:G,stackedOnSmooth:W,smoothMonotone:V,connectNulls:T}),Yu(m,r,"areaStyle"),_t(m).seriesIndex=r.seriesIndex,bs(m,N,z,O)}var tt=this._changePolyState;s.eachItemGraphicEl(function(bt){bt&&(bt.onHoverStateChange=tt)}),this._polyline.onHoverStateChange=tt,this._data=s,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=C,this._valueOrigin=_,r.get("triggerLineEvent")&&(this.packEventData(r,d),m&&this.packEventData(r,m))},t.prototype.packEventData=function(r,n){_t(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=Zi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=r.get("zlevel")||0,c=r.get("z")||0;u=new Cp(o,s),u.x=f,u.y=h,u.setZ(v,c);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=c,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else yr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Zi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else yr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;S0(this._polyline,r),n&&S0(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new qE({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new KE({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,f=u.get("animationDuration");rt(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=rt(h)?h(null):h;r.eachItemGraphicEl(function(c,d){var m=c;if(m){var p=[c.x,c.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,S=n.pointToCoord(p);a?(g=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(g=b.r0,y=b.r,_=S[0])}else{var w=i;a?(g=w.x,y=w.x+w.width,_=c.x):(g=w.y+w.height,y=w.y,_=c.y)}var T=y===g?0:(_-g)/(y-g);l&&(T=1-T);var x=rt(h)?h(d):f*T+v,A=m.getSymbolPath(),C=A.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:x}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(Hw(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new pe({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=iR(l);f>=0&&(Ls(s,ks(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?Aw(o,c):Tp(o,h)},enableTextSetter:!0},oR(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),d=s.get("precision"),m=s.get("distance")||0,p=l.getBaseAxis(),g=p.isHorizontal(),y=p.inverse,_=n.shape,b=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?m:0)*(y?-1:1),w=(g?0:-m)*(y?-1:1),T=g?"x":"y",x=aR(h,b,T),A=x.range,C=A[1]-A[0],D=void 0;if(C>=1){if(C>1&&!c){var k=zw(h,A[0]);u.attr({x:k[0]+S,y:k[1]+w}),o&&(D=v.getRawValue(A[0]))}else{var k=f.getPointOn(b,T);k&&u.attr({x:k[0]+S,y:k[1]+w});var M=v.getRawValue(A[0]),I=v.getRawValue(A[1]);o&&(D=TA(i,d,M,I,x.t))}a.lastFrameIndex=A[0]}else{var E=r===1||a.lastFrameIndex>0?A[0]:0,k=zw(h,E);o&&(D=v.getRawValue(E)),u.attr({x:k[0]+S,y:k[1]+w})}if(o){var N=lf(u);typeof N.setLabelText=="function"&&N.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=r.hostModel,v=XE(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,d=v.stackedOnCurrent,m=v.next,p=v.stackedOnNext;if(o&&(d=yi(v.stackedOnCurrent,v.current,i,o,l),c=yi(v.current,null,i,o,l),p=yi(v.stackedOnNext,v.next,i,o,l),m=yi(v.next,null,i,o,l)),Bw(c,m)>3e3||f&&Bw(d,p)>3e3){u.stopAnimation(),u.setShape({points:m}),f&&(f.stopAnimation(),f.setShape({points:m,stackedOnPoints:p}));return}u.shape.__points=v.current,u.shape.points=c;var g={shape:{points:m}};v.current!==c&&(g.shape.__points=v.next),u.stopAnimation(),Ae(u,g,h),f&&(f.setShape({points:c,stackedOnPoints:d}),f.stopAnimation(),Ae(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=v.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var w=r.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var T=u.shape.__points,x=0;x<y.length;x++){var A=y[x].el,C=y[x].ptIdx*2;A.x=T[C],A.y=T[C+1],A.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(yr);function lR(e,t){return{seriesType:e,plan:Od(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var a=K(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");Do(n,a[0])&&(a[0]=s),Do(n,a[1])&&(a[1]=s);var l=n.getStore(),u=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,v){for(var c=h.end-h.start,d=Mn(c*o),m=[],p=[],g=h.start,y=0;g<h.end;g++){var _=void 0;if(o===1){var b=l.get(u,g);_=i.dataToPoint(b,null,p)}else m[0]=l.get(u,g),m[1]=l.get(f,g),_=i.dataToPoint(m,null,p);d[y++]=_[0],d[y++]=_[1]}v.setLayout("points",d)}}}}}}var uR={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},fR=function(e){return Math.round(e.length/2)};function Gw(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var d=void 0;Y(a)?d=uR[a]:rt(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/c,d,fR))}}}}}function hR(e){e.registerChartView(sR),e.registerSeriesModel(VE),e.registerLayout(lR("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gw("line"))}var kp=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return fp(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)L(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var d=v.getTicksCoords(),m=v.getTickModel().get("alignWithLabel"),p=o[c],g=n[c]==="x1"||n[c]==="y1";if(g&&!m&&(p+=1),d.length<2)return;if(d.length===2){s[c]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var w=d[S].coord,T=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(T===p){_=w;break}else if(T<p)y=w;else if(y!=null&&T>p){_=(w+y)/2;break}S===1&&(b=T-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Er);Er.registerClass(kp);var cR=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return fp(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=v_(kp.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:q.color.primary,borderWidth:2}},realtimeSort:!1}),t})(kp),vR=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),Vw=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new vR},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,d=v?h-f<c:f-h<c;d||(f=h-(v?c:-c));var m=Math.cos(f),p=Math.sin(f),g=Math.cos(h),y=Math.sin(h);d?(r.moveTo(m*o+i,p*o+a),r.arc(m*u+i,p*u+a,l,-Math.PI+f,f,!v)):r.moveTo(m*s+i,p*s+a),r.arc(i,a,s,f,h,!v),r.arc(g*u+i,y*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&r.arc(i,a,o,h,f,v)},t})(Lt);function dR(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return xu(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,d=(v+c)/2,m=u.startAngle,p=u.endAngle,g=(m+p)/2,y=r?Math.abs(v-c)/2:0,_=Math.cos,b=Math.sin,S=f+v*_(m),w=h+v*b(m),T="left",x="top";switch(s){case"startArc":S=f+(c-l)*_(g),w=h+(c-l)*b(g),T="center",x="top";break;case"insideStartArc":S=f+(c+l)*_(g),w=h+(c+l)*b(g),T="center",x="bottom";break;case"startAngle":S=f+d*_(m)+th(m,l+y,!1),w=h+d*b(m)+eh(m,l+y,!1),T="right",x="middle";break;case"insideStartAngle":S=f+d*_(m)+th(m,-l+y,!1),w=h+d*b(m)+eh(m,-l+y,!1),T="left",x="middle";break;case"middle":S=f+d*_(g),w=h+d*b(g),T="center",x="middle";break;case"endArc":S=f+(v+l)*_(g),w=h+(v+l)*b(g),T="center",x="bottom";break;case"insideEndArc":S=f+(v-l)*_(g),w=h+(v-l)*b(g),T="center",x="top";break;case"endAngle":S=f+d*_(p)+th(p,l+y,!0),w=h+d*b(p)+eh(p,l+y,!0),T="left",x="middle";break;case"insideEndAngle":S=f+d*_(p)+th(p,-l+y,!0),w=h+d*b(p)+eh(p,-l+y,!0),T="right",x="middle";break;default:return xu(n,i,a)}return n=n||{},n.x=S,n.y=w,n.align=T,n.verticalAlign=x,n}}function pR(e,t,r,n){if(Mt(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),e.setTextConfig({rotation:f})}function th(e,t,r){return t*Math.sin(e)*(r?-1:1)}function eh(e,t,r){return t*Math.cos(e)*(r?1:-1)}function il(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:K(n,function(a){return Zn(a,i)})}}var Ip=Math.max,Pp=Math.min;function gR(e,t){var r=e.getArea&&e.getArea();if(Mp(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var mR=(function(e){J(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){af(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=r.isAnimationEnabled()?r:null,c=yR(r,u);c&&this._enableRealtimeSort(c,s,i);var d=r.get("clip",!0)||c,m=gR(u,s);o.removeClipPath();var p=r.get("roundCap",!0),g=r.get("showBackground",!0),y=r.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=a&&a.isInitSort,T=a&&a.type==="changeAxisOrder";function x(D){var k=rh[u.type](s,D);if(!k)return null;var M=CR(u,h,k);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),b[D]=M,M}s.diff(l).add(function(D){var k=s.getItemModel(D),M=rh[u.type](s,D,k);if(M&&(g&&x(D),!(!s.hasValue(D)||!Xw[u.type](M)))){var I=!1;d&&(I=Ww[u.type](m,M));var E=$w[u.type](r,s,D,M,h,v,f.model,!1,p);c&&(E.forceLabelAnimation=!0),Zw(E,s,D,k,M,r,h,u.type==="polar"),w?E.attr({shape:M}):c?Uw(c,v,E,M,D,h,!1,!1):dr(E,{shape:M},r,D),s.setItemGraphicEl(D,E),o.add(E),E.ignore=I}}).update(function(D,k){var M=s.getItemModel(D),I=rh[u.type](s,D,M);if(I){if(g){var E=void 0;S.length===0?E=x(k):(E=S[k],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),b[D]=E);var N=rh[u.type](s,D),z=Jw(h,N,u);Ae(E,{shape:z},v,D)}var O=l.getItemGraphicEl(k);if(!s.hasValue(D)||!Xw[u.type](I)){o.remove(O);return}var B=!1;d&&(B=Ww[u.type](m,I),B&&o.remove(O));var G=O&&(O.type==="sector"&&p||O.type==="sausage"&&!p);if(G&&(O&&Ds(O,r,k),O=null),O?Uv(O):O=$w[u.type](r,s,D,I,h,v,f.model,!0,p),c&&(O.forceLabelAnimation=!0),T){var V=O.getTextContent();if(V){var F=lf(V);F.prevValue!=null&&(F.prevValue=F.value)}}else Zw(O,s,D,M,I,r,h,u.type==="polar");w?O.attr({shape:I}):c?Uw(c,v,O,I,D,h,!0,T):Ae(O,{shape:I},r,D,null),s.setItemGraphicEl(D,O),O.ignore=B,o.add(O)}}).remove(function(D){var k=l.getItemGraphicEl(D);k&&Ds(k,r,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new le);A.removeAll();for(var C=0;C<b.length;++C)A.add(b[C]);o.add(A),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),jw(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),jw(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&jE(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:K(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(r.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Ds(a,r,_t(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(yr),Ww={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Ip(t.x,e.x),s=Pp(t.x+t.width,i),l=Ip(t.y,e.y),u=Pp(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>i?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Pp(t.r,e.r),a=Ip(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},$w={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new qt({shape:H({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Vw:ti,f=new u({shape:n,z2:1});f.name="item";var h=qw(i);if(f.calculateTextPosition=dR(h,{isRoundCap:u===Vw}),a){var v=f.shape,c=i?"r":"endAngle",d={};v[c]=i?n.r0:n.startAngle,d[c]=n[c],(s?Ae:dr)(f,{shape:d},a)}return f}};function yR(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Uw(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Ae:dr)(r,{shape:l},t,i,null);var f=t?e.baseAxis.model:null;(o?Ae:dr)(r,{shape:u},f,i)}function Yw(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var _R=["x","y","width","height"],bR=["cx","cy","r","startAngle","endAngle"],Xw={cartesian2d:function(e){return!Yw(e,_R)},polar:function(e){return!Yw(e,bR)}},rh={cartesian2d:function(e,t,r){var n=e.getItemLayout(t);if(!n)return null;var i=r?SR(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function wR(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function qw(e){return(function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}})(e)}function Zw(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var f=e.shape,h=il(n.getModel("itemStyle"),f,!0);H(f,h),e.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var v=n.getShallow("cursor");v&&e.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",d=ks(n);Ls(e,d,{labelFetcher:a,labelDataIndex:r,defaultText:Tp(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var m=e.getTextContent();if(s&&m){var p=n.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,pR(e,p==="outside"?c:p,qw(o),n.get(["label","rotate"]))}GL(m,d,a.getRawValue(r),function(y){return Aw(t,y)});var g=n.getModel(["emphasis"]);bs(e,g.get("focus"),g.get("blurScope"),g.get("disabled")),Yu(e,n),wR(i)&&(e.style.fill="none",e.style.stroke="none",L(e.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function SR(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var xR=(function(){function e(){}return e})(),Kw=(function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new xR},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],r.rect(s[0],s[1],l[0],l[1])},t})(Lt);function jw(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new Kw({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),r&&r.push(f)}var h=new Kw({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,_t(h).seriesIndex=e.seriesIndex,e.get("silent")||(h.on("mousedown",Qw),h.on("mousemove",Qw)),r&&r.push(h)}var Qw=Nd(function(e){var t=this,r=TR(t,e.offsetX,e.offsetY);_t(t).dataIndex=r>=0?r:null},30,!1);function TR(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[f]}return-1}function Jw(e,t,r){if(Mp(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function CR(e,t,r){var n=e.type==="polar"?ti:qt;return new n({shape:Jw(t,r,e),silent:!0,z2:0})}function DR(e){e.registerChartView(mR),e.registerSeriesModel(cR),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Qt(qP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Gw("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var tS=Math.PI*2,nh=Math.PI/180;function AR(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=w2(n,r),s=o.cx,l=o.cy,u=o.r,f=o.r0,h=o.viewRect,v=-n.get("startAngle")*nh,c=n.get("endAngle"),d=n.get("padAngle")*nh;c=c==="auto"?v-tS:-c*nh;var m=n.get("minAngle")*nh,p=m+d,g=0;i.each(a,function(z){!isNaN(z)&&g++});var y=i.getSum(a),_=Math.PI/(y||g)*2,b=n.get("clockwise"),S=n.get("roseType"),w=n.get("stillShowZeroSum"),T=i.getDataExtent(a);T[0]=0;var x=b?1:-1,A=[v,c],C=x*d/2;t0(A,!b),v=A[0],c=A[1];var D=eS(n);D.startAngle=v,D.endAngle=c,D.clockwise=b,D.cx=s,D.cy=l,D.r=u,D.r0=f;var k=Math.abs(c-v),M=k,I=0,E=v;if(i.setLayout({viewRect:h,r:u}),i.each(a,function(z,O){var B;if(isNaN(z)){i.setItemLayout(O,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:b,cx:s,cy:l,r0:f,r:S?NaN:u});return}S!=="area"?B=y===0&&w?_:z*_:B=k/g,B<p?(B=p,M-=p):I+=z;var G=E+x*B,V=0,F=0;d>B?(V=E+x*B/2,F=V):(V=E+C,F=G-C),i.setItemLayout(O,{angle:B,startAngle:V,endAngle:F,clockwise:b,cx:s,cy:l,r0:f,r:S?Jc(z,T,[f,u]):u}),E=G}),M<tS&&g)if(M<=.001){var N=k/g;i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O);B.angle=N;var G=0,V=0;N<d?(G=v+x*(O+.5)*N,V=G):(G=v+x*O*N+C,V=v+x*(O+1)*N-C),B.startAngle=G,B.endAngle=V}})}else _=M/I,E=v,i.each(a,function(z,O){if(!isNaN(z)){var B=i.getItemLayout(O),G=B.angle===p?p:z*_,V=0,F=0;G<d?(V=E+x*G/2,F=V):(V=E+C,F=E+x*G-C),B.startAngle=V,B.endAngle=F,E+=x*G}})})}var eS=$t();function MR(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var LR=Math.PI/180;function rS(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function f(m){for(var p=m.rB,g=p*p,y=0;y<m.list.length;y++){var _=m.list[y],b=Math.abs(_.label.y-r),S=n+_.len,w=S*S,T=Math.sqrt(Math.abs((1-b*b/g)*w)),x=t+(T+_.len2)*i,A=x-_.label.x,C=_.targetTextWidth-A*i;nS(_,C,!0),_.label.x=x}}function h(m){for(var p={list:[],maxY:0},g={list:[],maxY:0},y=0;y<m.length;y++)if(m[y].labelAlignTo==="none"){var _=m[y],b=_.label.y>r?g:p,S=Math.abs(_.label.y-r);if(S>=b.maxY){var w=_.label.x-t-_.len2*i,T=n+_.len,x=Math.abs(w)<T?Math.sqrt(S*S/(1-w*w/T/T)):T;b.rB=x,b.maxY=S}b.list.push(_)}f(p),f(g)}for(var v=e.length,c=0;c<v;c++)if(e[c].position==="outer"&&e[c].labelAlignTo==="labelLine"){var d=e[c].label.x-u;e[c].linePoints[1][0]+=d,e[c].label.x=u}HE(e,1,l,l+o)&&h(e)}function kR(e,t,r,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<e.length;v++){var c=e[v].label;Ep(e[v])||(c.x<t?(f=Math.min(f,c.x),l.push(e[v])):(h=Math.max(h,c.x),u.push(e[v])))}for(var v=0;v<e.length;v++){var d=e[v];if(!Ep(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var c=d.label,m=d.linePoints,p=void 0;d.labelAlignTo==="edge"?c.x<t?p=m[2][0]-d.labelDistance-o-d.edgeDistance:p=o+i-d.edgeDistance-m[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?c.x<t?p=f-o-d.bleedMargin:p=o+i-h-d.bleedMargin:c.x<t?p=c.x-o-d.bleedMargin:p=o+i-c.x-d.bleedMargin,d.targetTextWidth=p,nS(d,p,!1)}}rS(u,t,r,n,1,i,a,o,s,h),rS(l,t,r,n,-1,i,a,o,s,f);for(var v=0;v<e.length;v++){var d=e[v];if(!Ep(d)&&d.linePoints){var c=d.label,m=d.linePoints,g=d.labelAlignTo==="edge",y=c.style.padding,_=y?y[1]+y[3]:0,b=c.style.backgroundColor?0:_,S=d.rect.width+b,w=m[1][0]-m[2][0];g?c.x<t?m[2][0]=o+d.edgeDistance+S+d.labelDistance:m[2][0]=o+i-d.edgeDistance-S-d.labelDistance:(c.x<t?m[2][0]=c.x+d.labelDistance:m[2][0]=c.x-d.labelDistance,m[1][0]=m[2][0]+w),m[1][1]=m[2][1]=c.y}}}function nS(e,t,r){if(e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(t<f||r){if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var h=n.getBoundingRect();n.setStyle("width",Math.ceil(h.width)),n.setStyle("backgroundColor",o)}else{var v=t-l,c=t<f?v:r?v>e.unconstrainedWidth?null:v:null;n.setStyle("width",c)}iS(a,n)}}}function iS(e,t){aS.rect=e,Tw(aS,t,IR)}var IR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},aS={};function Ep(e){return e.position==="center"}function PR(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*LR,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var T in w.states)if(w.states[T].ignore===!1)return!0;return!1}t.each(function(w){var T=t.getItemGraphicEl(w),x=T.shape,A=T.getTextContent(),C=T.getTextGuideLine(),D=t.getItemModel(w),k=D.getModel("label"),M=k.get("position")||D.get(["emphasis","label","position"]),I=k.get("distanceToLabelLine"),E=k.get("alignTo"),N=Wt(k.get("edgeDistance"),u),z=k.get("bleedMargin");z==null&&(z=Math.min(u,v)>200?10:2);var O=D.getModel("labelLine"),B=O.get("length");B=Wt(B,u);var G=O.get("length2");if(G=Wt(G,u),Math.abs(x.endAngle-x.startAngle)<o){L(A.states,c),A.ignore=!0,C&&(L(C.states,c),C.ignore=!0);return}if(d(A)){var V=(x.startAngle+x.endAngle)/2,F=Math.cos(V),W=Math.sin(V),tt,bt,ie,ye;n=x.cx,i=x.cy;var Ot=M==="inside"||M==="inner";if(M==="center")tt=x.cx,bt=x.cy,ye="center";else{var Yt=(Ot?(x.r+x.r0)/2*F:x.r*F)+n,te=(Ot?(x.r+x.r0)/2*W:x.r*W)+i;if(tt=Yt+F*3,bt=te+W*3,!Ot){var nt=Yt+F*(B+l-x.r),dt=te+W*(B+l-x.r),hn=nt+(F<0?-1:1)*G,he=dt;E==="edge"?tt=F<0?f+N:f+u-N:tt=hn+(F<0?-I:I),bt=he,ie=[[Yt,te],[nt,dt],[hn,he]]}ye=Ot?"center":E==="edge"?F>0?"right":"left":F>0?"left":"right"}var Ci=Math.PI,On=0,Sl=k.get("rotate");if(Mt(Sl))On=Sl*(Ci/180);else if(M==="center")On=0;else if(Sl==="radial"||Sl===!0){var HB=F<0?-V+Ci:-V;On=HB}else if(Sl==="tangential"&&M!=="outside"&&M!=="outer"){var Bo=Math.atan2(F,W);Bo<0&&(Bo=Ci*2+Bo);var GB=W>0;GB&&(Bo=Ci+Bo),On=Bo-Ci}if(a=!!On,A.x=tt,A.y=bt,A.rotation=On,A.setStyle({verticalAlign:"middle"}),Ot){A.setStyle({align:ye});var ng=A.states.select;ng&&(ng.x+=A.x,ng.y+=A.y)}else{var rg=new ut(0,0,0,0);iS(rg,A),r.push({label:A,labelLine:C,position:M,len:B,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new at(F,W),linePoints:ie,textAlign:ye,labelDistance:I,labelAlignTo:E,edgeDistance:N,bleedMargin:z,rect:rg,unconstrainedWidth:rg.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:Ot})}}),!a&&e.get("avoidLabelOverlap")&&kR(r,n,i,l,u,v,f,h);for(var m=0;m<r.length;m++){var p=r[m],g=p.label,y=p.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:p.textAlign}),_&&(L(g.states,c),g.ignore=!0);var b=g.states.select;b&&(b.x+=g.x,b.y+=g.y)}if(y){var S=p.linePoints;_||!S?(L(y.states,c),y.ignore=!0):(PE(S,p.minTurnAngle),EE(S,p.surfaceNormal,p.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new at(S[0][0],S[0][1])})}}}var ER=(function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new pe;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),f=r.getItemLayout(n),h=H(il(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(dr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,dr(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),dr(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,Ae(o,{shape:{endAngle:f.endAngle}},s,n))}else Uv(o),Ae(o,{shape:h},s,n);o.useStyle(r.getItemVisual(n,"style")),Yu(o,l);var c=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),m=Math.cos(c)*d,p=Math.sin(c)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=H({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},il(u.getModel("itemStyle"),f)),H(o.ensureState("select"),{x:m,y:p,shape:il(l.getModel(["select","itemStyle"]),f)}),H(o.ensureState("blur"),{shape:il(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&H(y.ensureState("select"),{x:m,y:p}),H(_.ensureState("select"),{x:m,y:p}),bs(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;Ls(a,ks(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=o.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ts,this.setTextGuideLine(c)),OE(this,NE(o),{stroke:u,opacity:zi(s.get(["lineStyle","opacity"]),f,1)})}},t})(ti),RR=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var v=eS(r),c=new ti({shape:pt(v)});c.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(d){var m=new ER(o,d,u);o.setItemGraphicEl(d,m),l.add(m)}).update(function(d,m){var p=s.getItemGraphicEl(m);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var m=s.getItemGraphicEl(d);Ds(m,r,d)}).execute(),PR(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t})(yr);function OR(e,t,r){t=U(t)&&{coordDimensions:t}||H({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Yb(n,t).dimensions,a=new Ub(i,e);return a.initData(n,r),a}var NR=(function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e})(),BR=$t(),oS=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new NR(At(this.getData,this),At(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return OR(this,{coordDimensions:["value"],encodeDefaulter:Qt(L2,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=BR(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=rA(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){rv(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,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})(Er);d2({fullType:oS.type,getCoord2:function(e){return e.getShallow("center")}});function FR(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Mt(o)&&!isNaN(o)&&o<0)})}}}function zR(e){e.registerChartView(RR),e.registerSeriesModel(oS),cI("pie",e.registerAction),e.registerLayout(Qt(AR,"pie")),e.registerProcessor(MR("pie")),e.registerProcessor(FR("pie"))}var sS={left:0,right:0,top:0,bottom:0},ih=["25%","25%"],HR=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(r,n){var i=Ns(r.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&r.outerBounds&&oi(r.outerBounds,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&r.outerBounds&&oi(this.option.outerBounds,r.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:sS,outerBoundsContain:"all",outerBoundsClampWidth:ih[0],outerBoundsClampHeight:ih[1],backgroundColor:q.color.transparent,borderWidth:1,borderColor:q.color.neutral30},t})(kt),Rp=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ur).models[0]},t.type="cartesian2dAxis",t})(kt);$r(Rp,gE);var lS={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:q.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:q.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[q.color.backgroundTint,q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:q.color.neutral00,borderColor:q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},GR=Tt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},lS),Op=Tt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:q.color.axisMinorSplitLine,width:1}}},lS),VR=Tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Op),WR=Dt({logBase:10},Op);const $R={category:GR,value:Op,time:VR,log:WR};var UR={value:1,category:1,time:1,log:1},YR=null;function XR(){return YR}function uS(e,t,r,n){L(UR,function(i,a){var o=Tt(Tt({},$R[a],!0),n,!0),s=(function(l){J(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=Os(this),c=v?Ns(f):{},d=h.getTheme();Tt(f,d.get(a+"Axis")),Tt(f,this.getDefaultOption()),f.type=fS(f),v&&oi(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=pp.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){return{breaks:[]}},u.type=t+"Axis."+a,u.defaultOption=o,u})(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",fS)}function fS(e){return e.type||(e.data?"category":"value")}var qR=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return K(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),se(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e})(),Np=["x","y"];function hS(e){return(e.type==="interval"||e.type==="time")&&!e.hasBreaks()}var ZR=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Np,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!hS(r)||!hS(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,d=this._transform=[f,0,0,h,v,c];this._invTransform=ts([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new ut(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return ar(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n,i){if(i=i||[],this._invTransform)return ar(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new ut(a,o,s,l)},t})(qR),KR=(function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t})(kE),jR="expandAxisBreak",_i=Math.PI,QR=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],JR=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],al=$t(),cS=$t(),vS=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var r=t.axis.dim,n=t.componentIndex,i=this.recordMap,a=i[r]||(i[r]=[]);return a[n]||(a[n]={ready:{}})},e})();function tO(e,t,r,n){var i=r.axis,a=t.ensureRecord(r),o=[],s,l=Fp(e.axisName)&&Mo(e.nameLocation);L(n,function(d){var m=pi(d);if(!(!m||m.label.ignore)){o.push(m);var p=a.transGroup;l&&(p.transform?ts(ol,p.transform):pc(ol),m.transform&&Jo(ol,ol,m.transform),ut.copy(ah,m.localRect),ah.applyTransform(ol),s?s.union(ah):ut.copy(s=new ut(0,0,0,0),ah))}});var u=Math.abs(a.dirVec.x)>.1?"x":"y",f=a.transGroup[u];if(o.sort(function(d,m){return Math.abs(d.label[u]-f)-Math.abs(m.label[u]-f)}),l&&s){var h=i.getExtent(),v=Math.min(h[0],h[1]),c=Math.max(h[0],h[1])-v;s.union(new ut(v,0,c,1))}a.stOccupiedRect=s,a.labelInfoList=o}var ol=bn(),ah=new ut(0,0,0,0),dS=function(e,t,r,n,i,a){if(Mo(e.nameLocation)){var o=a.stOccupiedRect;o&&pS(FE({},o,a.transGroup.transform),n,i)}else gS(a.labelInfoList,a.dirVec,n,i)};function pS(e,t,r){var n=new at;xp(e,t,n,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&zE(t,n)}function gS(e,t,r,n){for(var i=at.dot(n,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||pS(s,r,n)}}var bi=(function(){function e(t,r,n,i){this.group=new le,this._axisModel=t,this._api=r,this._local={},this._shared=i||new vS(dS),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(t){var r=this._cfg.raw;r.position=t.position,r.labelOffset=t.labelOffset,this._resetCfgDetermined(r)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var r=this._axisModel,n=r.getDefaultOption?r.getDefaultOption():{},i=Q(t.axisName,r.get("name")),a=r.get("nameMoveOverlap");(a==null||a==="auto")&&(a=Q(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:Q(t.nameDirection,1),tickDirection:Q(t.tickDirection,1),labelDirection:Q(t.labelDirection,1),labelOffset:Q(t.labelOffset,0),silent:Q(t.silent,!0),axisName:i,nameLocation:zi(r.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:Fp(i)&&a,optionHideOverlap:r.get(["axisLabel","hideOverlap"]),showMinorTicks:r.get(["minorTick","show"])};this._cfg=o;var s=new le({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new at(Math.cos(-o.rotation),Math.sin(-o.rotation))},e.prototype.build=function(t,r){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),L(eO,function(i){t[i]&&rO[i](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,r||{})}),this},e.innerTextLayout=function(t,r,n){var i=Ay(r-t),a,o;return Au(i)?(o=n>0?"top":"bottom",a="center"):Au(i-_i)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<_i?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e})(),eO=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],rO={axisLine:function(e,t,r,n,i,a,o){var s=n.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=n.axis.getExtent(),u=a.transform,f=[l[0],0],h=[l[1],0],v=f[0]>h[0];u&&(ar(f,f,u),ar(h,h,u));var c=H({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:c};if(n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks())XR().buildAxisBreakLine(n,i,a,d);else{var m=new ei(H({shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]}},d));As(m.shape,m.style.lineWidth),m.anid="line",i.add(m)}var p=n.get(["axisLine","symbol"]);if(p!=null){var g=n.get(["axisLine","symbolSize"]);Y(p)&&(p=[p,p]),(Y(g)||Mt(g))&&(g=[g,g]);var y=Y1(n.get(["axisLine","symbolOffset"])||0,g),_=g[0],b=g[1];L([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((f[0]-h[0])*(f[0]-h[0])+(f[1]-h[1])*(f[1]-h[1]))}],function(S,w){if(p[w]!=="none"&&p[w]!=null){var T=bo(p[w],-_/2,-b/2,_,b,c.stroke,!0),x=S.r+S.offset,A=v?h:f;T.attr({rotation:S.rotate,x:A[0]+x*Math.cos(e.rotation),y:A[1]-x*Math.sin(e.rotation),silent:!0,z2:11}),i.add(T)}})}}},axisTickLabelEstimate:function(e,t,r,n,i,a,o,s){var l=_S(t,i,s);l&&mS(e,t,r,n,i,a,o,Nr.estimate)},axisTickLabelDetermine:function(e,t,r,n,i,a,o,s){var l=_S(t,i,s);l&&mS(e,t,r,n,i,a,o,Nr.determine);var u=oO(e,i,a,n);aO(e,t.labelLayoutList,u),sO(e,i,a,n,e.tickDirection)},axisName:function(e,t,r,n,i,a,o,s){var l=r.ensureRecord(n);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(Fp(u)){var f=e.nameLocation,h=e.nameDirection,v=n.getModel("nameTextStyle"),c=n.get("nameGap")||0,d=n.axis.getExtent(),m=n.axis.inverse?-1:1,p=new at(0,0),g=new at(0,0);f==="start"?(p.x=d[0]-m*c,g.x=-m):f==="end"?(p.x=d[1]+m*c,g.x=m):(p.x=(d[0]+d[1])/2,p.y=e.labelOffset+h*c,g.y=h);var y=bn();g.transform(mc(y,y,e.rotation));var _=n.get("nameRotate");_!=null&&(_=_*_i/180);var b,S;Mo(f)?b=bi.innerTextLayout(e.rotation,_??e.rotation,h):(b=nO(e.rotation,f,_||0,d),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=v.getFont(),T=n.get("nameTruncate",!0)||{},x=T.ellipsis,A=Jl(e.raw.nameTruncateMaxWidth,T.maxWidth,S),C=s.nameMarginLevel||0,D=new pe({x:p.x,y:p.y,rotation:b.rotation,silent:bi.isLabelSilent(n),style:ni(v,{text:u,font:w,overflow:"truncate",width:A,ellipsis:x,fill:v.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(nf({el:D,componentModel:n,itemName:u}),D.__fullText=u,D.anid="name",n.get("triggerEvent")){var k=bi.makeAxisEventDataBase(n);k.targetType="axisName",k.name=u,_t(D).eventData=k}a.add(D),D.updateTransform(),t.nameEl=D;var M=l.nameLayout=pi({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Mo(f)?QR[C]:JR[C]});if(l.nameLocation=f,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&M){var I=r.ensureRecord(n);r.resolveAxisNameOverlap(e,r,n,M,g,I)}}}};function mS(e,t,r,n,i,a,o,s){bS(t)||lO(e,t,i,s,n,o);var l=t.labelLayoutList;uO(e,n,l,a),e.rotation;var u=e.optionHideOverlap;iO(n,l,u),u&&GE(se(l,function(f){return f&&!f.label.ignore})),tO(e,r,n,l)}function nO(e,t,r,n){var i=Ay(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Au(i-_i/2)?(o=l?"bottom":"top",a="center"):Au(i-_i*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<_i*1.5&&i>_i/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function iO(e,t,r){if(lw(e.axis))return;function n(s,l,u){var f=pi(t[l]),h=pi(t[u]);if(!(!f||!h)){if(s===!1||f.suggestIgnore){sl(f.label);return}if(h.suggestIgnore){sl(h.label);return}var v=.1;if(!r){var c=[0,0,0,0];f=Cw({marginForce:c},f),h=Cw({marginForce:c},h)}xp(f,h,null,{touchThreshold:v})&&sl(s?h.label:f.label)}}var i=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]),o=t.length;n(i,0,1),n(a,o-1,o-2)}function aO(e,t,r){e.showMinorTicks||L(t,function(n){if(n&&n.label.ignore)for(var i=0;i<r.length;i++){var a=r[i],o=cS(a),s=al(n.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){sl(a);return}}})}function sl(e){e&&(e.ignore=!0)}function yS(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(ar(o,o,t),ar(s,s,t));var f=new ei({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});As(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,a.push(f);var h=cS(f);h.onBand=!!e[l].onBand,h.tickValue=e[l].tickValue}return a}function oO(e,t,r,n){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=e.tickDirection*a.get("length"),u=i.getTicksCoords(),f=yS(u,r.transform,l,Dt(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)t.add(f[h]);return f}function sO(e,t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),f=Dt(l.getLineStyle(),Dt(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var v=yS(s[h],r.transform,u,f,"minorticks_"+h),c=0;c<v.length;c++)t.add(v[c])}}function _S(e,t,r){if(bS(e)){var n=e.axisLabelsCreationContext,i=n.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),Bp(e,null,null,null))}return!0}function lO(e,t,r,n,i,a){var o=i.axis,s=Jl(e.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new le;r.add(l);var u=Kf(n);if(!s||o.scale.isBlank()){Bp(t,[],l,u);return}var f=i.getModel("axisLabel"),h=o.getViewLabels(u),v=(Jl(e.raw.labelRotate,f.get("rotate"))||0)*_i/180,c=bi.innerTextLayout(e.rotation,v,e.labelDirection),d=i.getCategories&&i.getCategories(!0),m=[],p=i.get("triggerEvent"),g=1/0,y=-1/0;L(h,function(b,S){var w,T=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,x=b.formattedLabel,A=b.rawLabel,C=f;if(d&&d[T]){var D=d[T];Z(D)&&D.textStyle&&(C=new Ut(D.textStyle,f,i.ecModel))}var k=C.getTextColor()||i.get(["axisLine","lineStyle","color"]),M=C.getShallow("align",!0)||c.textAlign,I=Q(C.getShallow("alignMinLabel",!0),M),E=Q(C.getShallow("alignMaxLabel",!0),M),N=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||c.textVerticalAlign,z=Q(C.getShallow("verticalAlignMinLabel",!0),N),O=Q(C.getShallow("verticalAlignMaxLabel",!0),N),B=10+(((w=b.time)===null||w===void 0?void 0:w.level)||0);g=Math.min(g,B),y=Math.max(y,B);var G=new pe({x:0,y:0,rotation:0,silent:bi.isLabelSilent(i),z2:B,style:ni(C,{text:x,align:S===0?I:S===h.length-1?E:M,verticalAlign:S===0?z:S===h.length-1?O:N,fill:rt(k)?k(o.type==="category"?A:o.type==="value"?T+"":T,S):k})});G.anid="label_"+T;var V=al(G);if(V.break=b.break,V.tickValue=T,V.layoutRotation=c.rotation,nf({el:G,componentModel:i,itemName:x,formatterParamsExtra:{isTruncated:function(){return G.isTruncated},value:A,tickIndex:S}}),p){var F=bi.makeAxisEventDataBase(i);F.targetType="axisLabel",F.value=A,F.tickIndex=S,b.break&&(F.break={start:b.break.parsedBreak.vmin,end:b.break.parsedBreak.vmax}),o.type==="category"&&(F.dataIndex=T),_t(G).eventData=F,b.break&&hO(i,a,G,b.break)}m.push(G),l.add(G)});var _=K(m,function(b){return{label:b,priority:al(b).break?b.z2+(y-g+1):b.z2,defaultAttr:{ignore:b.ignore}}});Bp(t,_,l,u)}function bS(e){return!!e.labelLayoutList}function Bp(e,t,r,n){e.labelLayoutList=t,e.labelGroup=r,e.axisLabelsCreationContext=n}function uO(e,t,r,n){var i=t.get(["axisLabel","margin"]);L(r,function(a,o){var s=pi(a);if(s){var l=s.label,u=al(l);s.suggestIgnore=l.ignore,l.ignore=!1,Xc(Ln,fO),Ln.x=t.axis.dataToCoord(u.tickValue),Ln.y=e.labelOffset+e.labelDirection*i,Ln.rotation=u.layoutRotation,n.add(Ln),Ln.updateTransform(),n.remove(Ln),Ln.decomposeTransform(),Xc(l,Ln),l.markRedraw(),Jf(s,!0),pi(s)}})}var Ln=new qt,fO=new qt;function Fp(e){return!!e}function hO(e,t,r,n){r.on("click",function(i){var a={type:jR,breaks:[{start:n.parsedBreak.breakOption.start,end:n.parsedBreak.breakOption.end}]};a[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(a)})}function XB(e,t,r){}function oh(e,t,r){r=r||{};var n=t.axis,i={},a=n.getAxesOnZeroOf()[0],o=n.position,s=a?"onZero":o,l=n.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var c=a.toGlobalCoord(a.dataToCoord(0));v[f.onZero]=Math.max(Math.min(c,v[1]),v[0])}i.position=[l==="y"?v[f[s]]:u[0],l==="x"?v[f[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=a?v[f[o]]-v[f.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Jl(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var m=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-m:m,i.z2=1,i}function cO(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function wS(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,ur).models[0];t[n]=a}),t}function vO(e,t,r,n,i,a){for(var o=oh(e,r),s=!1,l=!1,u=0;u<t.length;u++)hp(t[u].getOtherAxis(r.axis).scale)&&(s=l=!0,r.axis.type==="category"&&r.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new bi(r,n,o,i)}function dO(e,t,r){var n=oh(t,r);e.updateCfg(n)}function pO(e,t,r){var n=Ao.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,{expandToNicedExtent:!0}),o=i.length-1,s=n.getInterval.call(r),l=ow(e,t),u=l.extent,f=l.fixMin,h=l.fixMax;e.type==="log"&&(u=dp(e.base,u,!0)),e.setBreaksFromOption(uw(t)),e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(e);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var c=n.getInterval.call(e),d=u[0],m=u[1];if(f&&h)c=(m-d)/o;else if(f)for(m=u[0]+c*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)c=cp(c),m=u[0]+c*o;else if(h)for(d=u[1]-c*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)c=cp(c),d=u[1]-c*o;else{var p=e.getTicks().length-1;p>o&&(c=cp(c));var g=c*o;m=Math.ceil(u[1]/c)*c,d=de(m-g),d<0&&u[0]>=0?(d=0,m=de(g)):m>0&&u[1]<=0&&(m=0,d=-de(g))}var y=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(e,d+c*y,m+c*_),n.setInterval.call(e,c),(y||_)&&n.setNiceExtent.call(e,d+c,m-c)}var SS=[[3,1],[0,2]],gO=(function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Np,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=Vt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],d=c.model,m=c.scale;hp(m)&&d.get("alignTicks")&&d.get("interval")==null?f.push(c):(sw(m,d),hp(m)&&(s=c))}f.length&&(s||(s=f.pop(),sw(s.scale,s.model)),L(f,function(p){pO(p.scale,p.model,s.scale)}))}}i(n.x),i(n.y);var a={};L(n.x,function(o){xS(n,"y",o,a)}),L(n.y,function(o){xS(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=wf(t,r),a=this._rect=ai(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(CS(o,a),!n){var u=yO(a,s,o,l,r),f=void 0;if(l)f=AS(a.clone(),"axisLabel",null,a,o,u,i);else{var h=_O(t,a,i),v=h.outerBoundsRect,c=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;v&&(f=AS(v,c,d,a,o,u,i))}MS(a,o,Nr.determine,null,f,i)}L(this._coordsList,function(m){m.calcAffineTransform()})},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Z(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",ur).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",ur).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,St(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,L(s.x,function(f,h){L(s.y,function(v,c){var d="x"+h+"y"+c,m=new ZR(d);m.master=i,m.model=t,i._coordsMap[d]=m,i._coordsList.push(m),m.addAxis(f),m.addAxis(v)})});function u(f){return function(h,v){if(zp(h,t)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var d=new KR(f,vE(h),[0,0],h.get("type"),c),m=d.type==="category";d.onBand=m&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=v,a._axesList.push(d),s[f][v]=d,l[f]++}}}},e.prototype._updateScale=function(t,r){L(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(cO(i)){var a=wS(i),o=a.xAxisModel,s=a.yAxisModel;if(!zp(o,r)||!zp(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){L(pE(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return L(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);St(r,a)<0&&r.push(a),St(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){m2({targetModel:i,coordSysType:"cartesian2d",coordSysProvider:a});function a(){var o=wS(i),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),n},e.dimensions=Np,e})();function zp(e,t){return e.getCoordSysModel()===t}function xS(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)TS(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&TS(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function TS(e){return e&&e.type!=="category"&&e.type!=="time"&&dE(e)}function mO(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}function CS(e,t){L(e.x,function(r){return DS(r,t.x,t.width)}),L(e.y,function(r){return DS(r,t.y,t.height)})}function DS(e,t,r){var n=[0,r],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),mO(e,t)}function AS(e,t,r,n,i,a,o){MS(n,i,Nr.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(n,0,NaN),f(n,1,NaN);var l=AC(s,function(v){return v>0})==null;return rf(n,s,!0,!0,r),CS(i,n),l;function u(v){L(i[ri[v]],function(c){if(rl(c.model)){var d=a.ensureRecord(c.model),m=d.labelInfoList;if(m)for(var p=0;p<m.length;p++){var g=m[p],y=c.scale.normalize(al(g.label).tickValue);y=v===1?1-y:y,f(g.rect,v,y),f(g.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=Mo(d.nameLocation)?.5:NaN;f(_.rect,v,y),f(_.rect,1-v,NaN)}}})}function f(v,c,d){var m=e[ri[c]]-v[ri[c]],p=v[ho[c]]+v[ri[c]]-(e[ho[c]]+e[ri[c]]);m=h(m,1-d),p=h(p,d);var g=SS[c][0],y=SS[c][1];s[g]=Ye(s[g],m),s[y]=Ye(s[y],p)}function h(v,c){return v>0&&!jo(c)&&c>1e-4&&(v/=c),v}}function yO(e,t,r,n,i){var a=new vS(bO);return L(r,function(o){return L(o,function(s){if(rl(s.model)){var l=!n;s.axisBuilder=vO(e,t,s.model,i,a,l)}})}),a}function MS(e,t,r,n,i,a){var o=r===Nr.determine;L(t,function(u){return L(u,function(f){rl(f.model)&&(dO(f.axisBuilder,e,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[ri[1-u]]=e[ho[u]]<=a.refContainer[ho[u]]*.5?0:1-u===1?2:1}L(t,function(u,f){return L(u,function(h){rl(h.model)&&((n==="all"||o)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&h.axisBuilder.build({axisLine:!0}))})})}function _O(e,t,r){var n,i=e.get("outerBoundsMode",!0);i==="same"?n=t.clone():(i==null||i==="auto")&&(n=ai(e.get("outerBounds",!0)||sS,r.refContainer));var a=e.get("outerBoundsContain",!0),o;a==null||a==="auto"||St(["all","axisLabel"],a)<0?o="all":o=a;var s=[tv(Q(e.get("outerBoundsClampWidth",!0),ih[0]),t.width),tv(Q(e.get("outerBoundsClampHeight",!0),ih[1]),t.height)];return{outerBoundsRect:n,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var bO=function(e,t,r,n,i,a){var o=r.axis.dim==="x"?"y":"x";dS(e,t,r,n,i,a),Mo(e.nameLocation)||L(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&gS(s.labelInfoList,s.dirVec,n,i)})};function wO(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return SO(r,e,t),r.seriesInvolved&&TO(r,e),r}function SO(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];L(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ll(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(L(s.getAxes(),Qt(m,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&L(d.baseAxes,Qt(m,c?"cross":!0,v)),c&&L(d.otherAxes,Qt(m,"cross",!1))}function m(p,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!p&&!Vp(_))){g==null&&(g=_.get("triggerTooltip")),_=p?xO(y,h,i,t,p,g):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),T=ll(y.model),x=g||S||y.type==="category",A=e.axesInfo[T]={key:T,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:x,snap:S,useHandle:Vp(_),seriesModels:[],linkGroup:null};u[T]=A,e.seriesInvolved=e.seriesInvolved||x;var C=CO(a,y);if(C!=null){var D=o[C]||(o[C]={axesInfo:{}});D.axesInfo[T]=A,D.mapper=a[C].mapper,A.linkGroup=D}}}})}function xO(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};L(s,function(v){l[v]=pt(o.get(v))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&Dt(u,h.textStyle)}}return e.model.getModel("axisPointer",new Ut(l,r,n))}function TO(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||!n.model||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||L(e.coordSysAxesInfo[ll(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function CO(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Hp(a[n+"AxisId"],r.id)||Hp(a[n+"AxisIndex"],r.componentIndex)||Hp(a[n+"AxisName"],r.name))return i}}function Hp(e,t){return e==="all"||U(e)&&St(e,t)>=0||e===t}function DO(e){var t=Gp(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Vp(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function Gp(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ll(e)]}function AO(e){var t=Gp(e);return t&&t.axisPointerModel}function Vp(e){return!!e.get(["handle","show"])}function ll(e){return e.type+"||"+e.id}var LS={},kS=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,a){this.axisPointerClass&&DO(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=AO(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){LS[r]=n},t.getAxisPointerClass=function(r){return r&&LS[r]},t.type="axis",t})(Rr),Wp=$t();function MO(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,h=Wp(e).splitAreaColors,v=ft(),c=0;if(h)for(var d=0;d<u.length;d++){var m=h.get(u[d].tickValue);if(m!=null){c=(m+(f-1)*d)%f;break}}var p=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=p,b=l.y,S=y-_,w=l.height,p=_+S):(_=l.x,b=p,S=l.width,w=y-b,p=b+w);var T=u[d-1].tickValue;T!=null&&v.set(T,c),t.add(new qt({anid:T!=null?"area_"+T:null,shape:{x:_,y:b,width:S,height:w},style:Dt({fill:s[c]},g),autoBatch:!0,silent:!0})),c=(c+1)%f}Wp(e).splitAreaColors=v}}}function LO(e){Wp(e).splitAreaColors=null}var kO=["splitArea","splitLine","minorSplitLine","breakArea"],IS=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!rl(r)){this._axisGroup.add(r.axis.axisBuilder.group),L(kO,function(l){r.get([l,"show"])&&IO[l](this,this._axisGroup,r,r.getCoordSysModel(),i)},this);var s=a&&a.type==="changeAxisOrder"&&a.isInitSort;s||J0(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){LO(this)},t.type="cartesianAxis",t})(kS),IO={splitLine:function(e,t,r,n,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var h=n.coordinateSystem.getRect(),v=a.isHorizontal(),c=0,d=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),m=[],p=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=a.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!f)){var b=d[y].tickValue;v?(m[0]=_,m[1]=h.y,p[0]=_,p[1]=h.y+h.height):(m[0]=h.x,m[1]=_,p[0]=h.x+h.width,p[1]=_);var S=c++%l.length,w=new ei({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:m[0],y1:m[1],x2:p[0],y2:p[1]},style:Dt({stroke:l[S]},g),silent:!0});As(w.shape,g.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,r,n,i){var a=r.axis,o=r.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=n.coordinateSystem.getRect(),u=a.isHorizontal(),f=a.getMinorTicksCoords();if(f.length)for(var h=[],v=[],c=s.getLineStyle(),d=0;d<f.length;d++)for(var m=0;m<f[d].length;m++){var p=a.toGlobalCoord(f[d][m].coord);u?(h[0]=p,h[1]=l.y,v[0]=p,v[1]=l.y+l.height):(h[0]=l.x,h[1]=p,v[0]=l.x+l.width,v[1]=p);var g=new ei({anid:"minor_line_"+f[d][m].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:v[0],y2:v[1]},style:c,silent:!0});As(g.shape,c.lineWidth),t.add(g)}},splitArea:function(e,t,r,n,i){MO(e,t,r,n)},breakArea:function(e,t,r,n,i){r.axis.scale}},PS=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t})(IS),PO=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=PS.type,r}return t.type="yAxis",t})(IS),EO=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new qt({shape:r.coordinateSystem.getRect(),style:Dt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(Rr),ES={offset:0};function RO(e){e.registerComponentView(EO),e.registerComponentModel(HR),e.registerCoordinateSystem("cartesian2d",gO),uS(e,"x",Rp,ES),uS(e,"y",Rp,ES),e.registerComponentView(PS),e.registerComponentView(PO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Ta=$t(),RS=pt,$p=At,OO=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new le,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var v=Qt(OS,r,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,r)}FS(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Gp(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Ta(t).pointerEl=new NL[a.type](RS(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Ta(t).labelEl=new pe(RS(r.label));t.add(a),BS(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Ta(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=Ta(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),BS(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Zv(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Pm(u.event)},onmousedown:$p(this._onHandleDragMove,this,0,0),drift:$p(this._onHandleDragMove,this),ondragend:$p(this._onHandleDragEnd,this)}),n.add(i)),FS(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");U(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,R1(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){OS(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Up(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Up(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Up(i)),Ta(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Bd(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e})();function OS(e,t,r,n){NS(Ta(r).lastProp,n)||(Ta(r).lastProp=n,t?Ae(r,n,e):(r.stopAnimation(),r.attr(n)))}function NS(e,t){if(Z(e)&&Z(t)){var r=!0;return L(t,function(n,i){r=r&&NS(e[i],n)}),!!r}else return e===t}function BS(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Up(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function FS(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function NO(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function BO(e,t,r,n,i){var a=r.get("value"),o=zS(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=mf(s.get("padding")||0),u=s.getFont(),f=wy(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],d=i.align;d==="right"&&(h[0]-=v),d==="center"&&(h[0]-=v/2);var m=i.verticalAlign;m==="bottom"&&(h[1]-=c),m==="middle"&&(h[1]-=c/2),FO(h,v,c,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:ni(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function FO(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function zS(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:Zf(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),Y(o)?a=o.replace("{value}",a):rt(o)&&(a=o(s))}return a}function HS(e,t,r){var n=bn();return mc(n,n,r.rotation),gc(n,n,r.position),qv([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function zO(e,t,r,n,i,a){var o=bi.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),BO(t,n,i,a,{position:HS(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function HO(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function GO(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var VO=(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=GS(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=NO(a),c=WO[u](s,h,f);c.style=v,r.graphicKey=c.type,r.pointer=c}var d=oh(l.getRect(),i);zO(n,r,d,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=oh(n.axis.grid.getRect(),n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=HS(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=GS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[r.x,r.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:r.rotation,cursorPoint:c,tooltipOption:d[f]}},t})(OO);function GS(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var WO={line:function(e,t,r){var n=HO([t,r[0]],[t,r[1]],VS(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:GO([t-n/2,r[0]],[n,i],VS(e))}}};function VS(e){return e.dim==="x"?0:1}var $O=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:q.color.border,width:1,type:"dashed"},shadowStyle:{color:q.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:q.color.neutral00,padding:[5,7,5,7],backgroundColor:q.color.accent60,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:q.color.accent40,throttle:40}},t})(kt),kn=$t(),UO=L;function WS(e,t,r){if(!it.node){var n=t.getZr();kn(n).records||(kn(n).records={}),YO(n,t);var i=kn(n).records[e]||(kn(n).records[e]={});i.handler=r}}function YO(e,t){if(kn(e).initialized)return;kn(e).initialized=!0,r("click",Qt($S,"click")),r("mousemove",Qt($S,"mousemove")),r("globalout",qO);function r(n,i){e.on(n,function(a){var o=ZO(t);UO(kn(e).records,function(s){s&&i(s,a,o.dispatchAction)}),XO(o.pendings,t)})}}function XO(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function qO(e,t,r){e.handler("leave",null,r)}function $S(e,t,r,n){t.handler(e,r,n)}function ZO(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Yp(e,t){if(!it.node){var r=t.getZr(),n=(kn(r).records||{})[e];n&&(kn(r).records[e]=null)}}var KO=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";WS("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Yp("axisPointer",n)},t.prototype.dispose=function(r,n){Yp("axisPointer",n)},t.type="axisPointer",t})(Rr);function US(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Zi(a,e);if(o==null||o<0||U(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,d=a.mapDimension(v),m=[];m[c]=a.get(d,o),m[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(a.getValues(K(l.dimensions,function(g){return a.mapDimension(g)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var YS=$t();function jO(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||At(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){sh(i)&&(i=US({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=sh(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||sh(i),v={},c={},d={list:[],map:{}},m={showPointer:Qt(JO,c),showTooltip:Qt(tN,d)};L(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);L(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,T=iN(u,b);if(!h&&_&&(!u||T)){var x=T&&T.value;x==null&&!l&&(x=w.pointToData(i)),x!=null&&XS(b,x,m,!1,v)}})});var p={};return L(f,function(g,y){var _=g.linkGroup;_&&!c[y]&&L(_.axesInfo,function(b,S){var w=c[S];if(b!==g&&w){var T=w.value;_.mapper&&(T=g.axis.scale.parse(_.mapper(T,qS(b),qS(g)))),p[g.key]=T}})}),L(p,function(g,y){XS(f[y],g,m,!0,v)}),eN(c,f,v),rN(d,i,e,o),nN(f,o,r),v}}function XS(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=QO(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&H(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function QO(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,e,r);v=c.dataIndices,h=c.nestestValue}else{if(v=l.indicesOfNearest(n,f[0],e,r.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var d=e-h,m=Math.abs(d);m<=o&&((m<o||d>=0&&s<0)&&(o=m,s=d,i=h,a.length=0),L(v,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:i}}function JO(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function tN(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=ll(l),f=e.map[u];f||(f=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function eN(e,t,r){var n=r.axesInfo=[];L(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function rN(e,t,r,n){if(sh(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function nN(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=YS(n)[i]||{},o=YS(n)[i]={};L(e,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&L(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];L(a,function(u,f){!o[f]&&l.push(u)}),L(o,function(u,f){!a[f]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function iN(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function qS(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function sh(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function ZS(e){kS.registerAxisPointerClass("CartesianAxisPointer",VO),e.registerComponentModel($O),e.registerComponentView(KO),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=wO(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jO)}function aN(e){ci(RO),ci(ZS)}function oN(e,t){var r=mf(t.get("padding")),n=t.getItemStyle(["color","opacity"]);n.fill=t.get("backgroundColor");var i=new qt({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1});return i}var sN=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:q.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:q.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:q.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:q.color.tertiary,fontSize:14}},t})(kt);function KS(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function jS(e){if(it.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var QS=jS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lN=jS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function JS(e,t){if(!e)return t;t=D_(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function uN(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var fN=JS(lN,"transition"),Xp=JS(QS,"transform"),hN="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(it.transform3dSupported?"will-change:transform;":"");function cN(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function vN(e,t,r){if(!Y(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=ca(t);var a=cN(r),o=Math.max(Math.round(i)*1.5,6),s="",l=Xp+":",u;St(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var d=t+" solid "+i+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function dN(e,t,r){var n="cubic-bezier(0.23,1,0.32,1)",i="",a="";return r&&(i=" "+e/2+"s "+n,a="opacity"+i+",visibility"+i),t||(i=" "+e+"s "+n,a+=(a.length?",":"")+(it.transformSupported?""+Xp+i:",left"+i+",top"+i)),fN+":"+a}function tx(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!it.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=it.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+Xp+":"+o+";":[["top",0],["left",0],[QS,o]]}function pN(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=Q(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),L(["decoration","align"],function(u){var f=e.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function gN(e,t,r,n){var i=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),f=e.get("shadowOffsetY"),h=e.getModel("textStyle"),v=D1(e,"html"),c=u+"px "+f+"px "+s+"px "+l;return i.push("box-shadow:"+c),t&&a>0&&i.push(dN(a,r,n)),o&&i.push("background-color:"+o),L(["width","color","radius"],function(d){var m="border-"+d,p=D_(m),g=e.get(p);g!=null&&i.push(m+":"+g+(d==="color"?"":"px"))}),i.push(pN(h)),v!=null&&i.push("padding:"+mf(v).join("px ")+"px"),i.join(";")+";"}function ex(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&WC(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var mN=(function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,it.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Y(a)?document.querySelector(a):Ko(a)?a:rt(a)&&a(t.getDom()));ex(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();or(f,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=uN(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=hN+gN(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+tx(a[0],a[1],!0)+("border-color:"+ca(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Y(a)&&n.get("trigger")==="item"&&!KS(n)&&(s=vN(n,i,a)),Y(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)Ko(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,r){if(this.el){var n=this._styleCoord;if(ex(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=tx(n[0],n[1]);L(a,function(o){i[o[0]]=o[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;this._enableDisplayTransition?(r.visibility="hidden",r.opacity="0"):r.display="none",it.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(At(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;$C(t&&t.painter&&t.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var n=r.parentNode;n&&n.removeChild(r)}this.el=this._container=null},e})(),yN=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),nx(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,a){var o=this;Z(t)&&Fe(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new pe({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:D1(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),L(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),L(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=rx(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;nx(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=wi(a.borderWidth||0),s=rx(a);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(At(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function wi(e){return Math.max(0,e)}function rx(e){var t=wi(e.shadowBlur||0),r=wi(e.shadowOffsetX||0),n=wi(e.shadowOffsetY||0);return{left:wi(t-r),right:wi(t+r),top:wi(t-n),bottom:wi(t+n)}}function nx(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _N=new qt({shape:{x:-1,y:-1,width:2,height:2}}),bN=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(it.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=xA(i.get("renderMode"));this._tooltipContent=a==="richText"?new yN(n):new mN(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(it.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?R1(this,"_updatePosition",50,"fixRate"):Bd(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");WS("itemTooltip",this._api,At(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||it.node||!i.getDom())){var o=ix(a,i);this._ticket="";var s=a.dataByCoordSys,l=TN(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=_N;f.x=a.x,f.y=a.y,f.update(),_t(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var h=US(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(ix(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=ul([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=_t(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Ys(i,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(_t(f).dataIndex!=null?l=f:_t(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=At(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=ul([n.tooltipOption],a),l=this._renderMode,u=[],f=Vs("section",{blocks:[],noHeader:!0}),h=[],v=new Ed;L(r,function(y){L(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!b||S==null)){var w=zS(S,b.axis,i,_.seriesDataIndices,_.valueLabelOpt),T=Vs("section",{header:w,noHeader:!Ur(w),sortBlocks:!0,blocks:[]});f.blocks.push(T),L(_.seriesDataIndices,function(x){var A=i.getSeriesByIndex(x.seriesIndex),C=x.dataIndexInside,D=A.getDataParams(C);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Zf(b.axis,{value:S}),D.axisValueLabel=w,D.marker=v.makeTooltipMarker("item",ca(D.color),l);var k=c1(A.formatTooltip(C,!0,null)),M=k.frag;if(M){var I=ul([A],a).get("valueFormatter");T.blocks.push(I?H({valueFormatter:I},M):M)}k.text&&h.push(k.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,d=s.get("order"),m=T1(f,v,l,d,i.get("useUTC"),s.get("textStyle"));m&&h.unshift(m);var p=l==="richText"?`
|
|
65
59
|
|
|
66
|
-
`:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=de(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=r.positionDefault,m=ul([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),y=new Id;g.marker=y.makeTooltipMarker("item",sa(g.color),v);var _=cb(u.formatTooltip(f,!1,h)),b=m.get("order"),w=m.get("valueFormatter"),S=_.frag,x=S?Tb(w?V({valueFormatter:w},S):S,y,v,b,a.get("useUTC"),m.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,x,g,T,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=de(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=fe(l),l.content=Ot(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=r.positionDefault,d=ul(h,this._tooltipModel,v?{position:v}:null),m=d.get("content"),p=Math.random()+"",g=new Id;this._showOrMove(d,function(){var y=fe(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var c=r.get("formatter");l=l||r.get("position");var v=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=d.color;if(c)if(Y(c)){var p=r.ecModel.get("useUTC"),g=W(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,y&&(v=pf(g.axisValue,v,p)),v=L0(v,i,!0)}else if(Q(c)){var _=Te(function(b,w){b===this._ticket&&(h.setContent(w,f,r,m,l),this._updatePosition(r,l,o,s,h,i,u))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,r,m,l),h.show(r,m),this._updatePosition(r,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||W(n))return{color:a||o};if(!W(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),c=r.get("align"),v=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),Q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),W(n))i=Be(n[0],u),a=Be(n[1],f);else if(q(n)){var m=n;m.width=h[0],m.height=h[1];var p=ni(m,{width:u,height:f});i=p.x,a=p.y,c=null,v=null}else if(Y(n)&&l){var g=uR(n,d,h,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=sR(i,a,o,u,f,c?null:20,v?null:20);i=g[0],a=g[1]}if(c&&(i-=nx(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=nx(v)?h[1]/2:v==="bottom"?h[1]:0),qS(r)){var g=lR(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&A(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},m=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&m.length===p.length,o&&A(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},e.prototype.dispose=function(r,n){te.node||!n.getDom()||(Od(this,"_updatePosition"),this._tooltipContent.dispose(),$p("itemTooltip",n))},e.type="tooltip",e})(Or);function ul(t,e,r){var n=e.ecModel,i;r?(i=new Fe(r,n,n),i=new Fe(e.option,i,n)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Fe&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new Fe(o,i,n)))}return i}function rx(t,e){return t.dispatchAction||Te(e.dispatchAction,e)}function sR(t,e,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>n?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function lR(t,e,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,n)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function uR(t,e,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function nx(t){return t==="center"||t==="middle"}function fR(t,e,r){var n=rv(t).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ps(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=de(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function hR(t){ui(XS),t.registerComponentModel(XO),t.registerComponentView(oR),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Nt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Nt)}var cR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:X.size.m,backgroundColor:X.color.transparent,borderColor:X.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:X.color.primary},subtextStyle:{fontSize:12,color:X.color.quaternary}},e})(ye),vR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=j(r.get("textBaseline"),r.get("textVerticalAlign")),f=new lt({style:ti(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=r.get("subtext"),v=new lt({style:ti(s,{text:c,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!m&&!p,d&&f.on("click",function(){I0(d,"_"+r.get("target"))}),m&&v.on("click",function(){I0(m,"_"+r.get("subtarget"))}),de(f).eventData=de(v).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),c&&a.add(v);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=wf(r,i),b=ni(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};f.setStyle(w),v.setStyle(w),g=a.getBoundingRect();var S=b.margin,x=r.getItemStyle(["color","opacity"]);x.fill=r.get("backgroundColor");var T=new He({shape:{x:g.x-S[3],y:g.y-S[0],width:g.width+S[1]+S[3],height:g.height+S[0]+S[2],r:r.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(T)}},e.type="title",e})(Or);function dR(t){t.registerComponentModel(cR),t.registerComponentView(vR)}var pR=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Yp=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.layoutMode={type:"box",ignoreSize:!0},r}return e.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},e.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),W(n)&&A(n,function(a,o){Y(a)&&(a={type:a}),n[o]=we(a,pR(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},e.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&ev(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=se(),s=Z(a,function(l){return(Y(l)||Ce(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Fe(l,this,this.ecModel))},this);this._data=et(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;A(a,function(o){n[o.get("name")]=!1})}n[r]=!0},e.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},e.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},e.prototype.allSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;A(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&me(this._availableNames,r)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:X.size.m,align:"auto",backgroundColor:X.color.transparent,borderColor:X.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:X.color.disabled,inactiveBorderColor:X.color.disabled,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:X.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:X.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:X.color.tertiary,borderWidth:1,borderColor:X.color.border},emphasis:{selectorLabel:{show:!0,color:X.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(ye),Lo=$e,Xp=A,hh=tt,ix=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!1,r}return e.prototype.init=function(){this.group.add(this._contentGroup=new hh),this.group.add(this._selectorGroup=new hh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=wf(r,i).refContainer,h=r.getBoxLayoutParams(),c=r.get("padding"),v=ni(h,f,c),d=this.layoutInner(r,o,v,a,l,u),m=ni(xe({width:d.width,height:d.height},h),f,c);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=YO(d,r))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=se(),h=n.get("selectedMode"),c=n.get("triggerEvent"),v=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),Xp(n.getData(),function(d,m){var p=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
67
|
-
`)){var y=new
|
|
68
|
-
`||i==="")){var a=t.isSelected(i);Mr(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function _R(t){t.registerAction("legendToggleSelect","legendselectchanged",$e(fl,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",$e(fl,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",$e(fl,"inverseSelect")),t.registerAction("legendSelect","legendselected",$e(fl,"select")),t.registerAction("legendUnSelect","legendunselected",$e(fl,"unSelect"))}function lx(t){t.registerComponentModel(Yp),t.registerComponentView(ix),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,yR),t.registerSubTypeDefaulter("legend",function(){return"plain"}),_R(t)}var bR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},e.prototype.init=function(r,n,i){var a=Rs(r);t.prototype.init.call(this,r,n,i),ux(this,r,a)},e.prototype.mergeOption=function(r,n){t.prototype.mergeOption.call(this,r,n),ux(this,this.option,r)},e.type="legend.scroll",e.defaultOption=p0(Yp.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:X.color.accent50,pageIconInactiveColor:X.color.accent10,pageIconSize:15,pageTextStyle:{color:X.color.tertiary},animationDurationUpdate:800}),e})(Yp);function ux(t,e,r){var n=t.getOrient(),i=[1,1];i[n.index]=0,ii(e,r,{type:"box",ignoreSize:!!i})}var fx=tt,Kp=["width","height"],jp=["x","y"],wR=(function(t){J(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r.newlineDisabled=!0,r._currentIndex=0,r}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new fx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new fx)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;t.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=W(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new lt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,p){var g=m+"DataIndex",y=Uv(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:Te(u._pageGo,u,g,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=m,f.add(y)}},e.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Kp[u],h=jp[u],c=Kp[1-u],v=jp[1-u];o&&ks("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),p=[-m.x,-m.y],g=fe(i);o&&(g[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,c,v,h);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=m[f]+d;p[u]-=_,y[h]-=_}y[f]+=m[f]+d,p[1-u]+=y[v]+y[c]/2-m[c]/2,y[c]=Math.max(y[c],m[c]),y[v]=Math.min(y[v],m[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;ks(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),ks("horizontal",c,r.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),m=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=j(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),c.setPosition(y);var w={x:0,y:0};if(w[o]=m?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],m){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new He({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Ct(f,{x:x.contentPosition[0],y:x.contentPosition[1]},m?r:null),this._updatePageInfoView(r,x),w},e.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Kp[o],l=jp[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=b(h);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=c;++p)_=b(f[p]),(!_&&y.e>g.s+a||_&&!w(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=b(f[p]),(!_||!w(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function b(S){if(S){var x=S.getBoundingRect(),T=x[l]+S[l];return{s:T,e:T+x[s],i:S.__legendDataIndex}}}function w(S,x){return S.e>=x&&S.s<=x+a}},e.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},e.type="legend.scroll",e})(ix);function SR(t){t.registerAction("legendScroll","legendscroll",function(e,r){var n=e.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function xR(t){ui(lx),t.registerComponentModel(bR),t.registerComponentView(wR),SR(t)}function TR(t){ui(lx),ui(xR)}function hx(t,e,r){var n=mn.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*r,n.height=a*r,n}var Qp=(function(t){Me(e,t);function e(r,n,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||yu,typeof r=="string"?o=hx(r,n,i):q(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Cm(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=hx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new oe(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new oe(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,w=1/0,S=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(y)){var C=new oe(0,0,0,0);C.copy(T),C.union(y),o[x]=C,b=!0;break}else if(l){u.copy(y),u.union(T);var E=y.width*y.height,D=T.width*T.height,L=u.width*u.height,M=L-E-D;M<w&&(w=M,S=x)}}if(l&&(o[S].union(y),b=!0),!b){var _=new oe(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=r[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Ut||!v)?c.getPrevPaintRect():null;d&&f(d);var m=v&&(c.__dirty&Ut||!c.__isRendered)?c.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},e.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(m,p,g,y){if(o.clearRect(m,p,g,y),n&&n!=="transparent"){var _=void 0;if(jl(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Vd(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else vC(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Fd(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,p,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,m,p,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&A(i,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},e})(Xr),cx=1e5,ba=314159,ch=.01,CR=.001;function DR(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function ER(t,e){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var AR=(function(){function t(e,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||yu,this._singleCanvas=a,this.root=e;var o=e.style;o&&(Cm(e),e.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=e,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Qp(f,this,this.dpr);v.__builtin__=!0,v.initContext(),l[ba]=v,v.zlevel=ba,s.push(ba),this._domRoot=e}else{this._width=Nf(e,0,n),this._height=Nf(e,1,n);var u=this._domRoot=ER(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,e,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var r=e.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=e[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(cx)),a||(a=n.ctx,a.save()),pa(a,s,i,o===r-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(cx)},t.prototype.paintOne=function(e,r){o1(e,r)},t.prototype._paintList=function(e,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;tu(function(){l._paintList(e,r,n,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(ba).ctx,r=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,r,n)})},t.prototype._doPaintList=function(e,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,c=function(m){var p=a[m],g=p.ctx,y=o&&p.createRepaintRects(e,r,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,w=b&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,y);else if(_===p.__startIndex){var x=e[_];(!x.incremental||!x.notClear||n)&&p.clear(!1,S,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,C=function(M){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<p.__endIndex;T++){var k=e[T];if(k.__inHover&&(h=!0),i._doPaintEl(k,p,o,M,P,T===p.__endIndex-1),b){var O=Date.now()-w;if(O>15)break}}P.prevElClipPaths&&g.restore()};if(y)if(y.length===0)T=p.__endIndex;else for(var E=v.dpr,D=0;D<y.length;++D){var L=y[D];g.save(),g.beginPath(),g.rect(L.x*E,L.y*E,L.width*E,L.height*E),g.clip(),C(L),g.restore()}else g.save(),C(),g.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return te.wxa&&A(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},t.prototype._doPaintEl=function(e,r,n,i,a,o){var s=r.ctx;if(n){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(pa(s,e,a,o),e.setPrevPaintRect(l))}else pa(s,e,a,o)},t.prototype.getLayer=function(e,r){this._singleCanvas&&!this._needsManuallyCompositing&&(e=ba);var n=this._layers[e];return n||(n=new Qp("zr_"+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?we(n,this._layerConfig[e],!0):this._layerConfig[e-ch]&&we(n,this._layerConfig[e-ch],!0),r&&(n.virtual=r),this.insertLayer(e,n),n.initContext()),n},t.prototype.insertLayer=function(e,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(n[e]){process.env.NODE_ENV!=="production"&&Ni("ZLevel "+e+" has been used already");return}if(!DR(r)){process.env.NODE_ENV!=="production"&&Ni("Layer of zlevel "+e+" is not valid");return}if(a>0&&e>i[0]){for(l=0;l<a-1&&!(i[l]<e&&i[l+1]>e);l++);s=n[i[l]]}if(i.splice(l+1,0,e),n[e]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},t.prototype.eachLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];e.call(r,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&e.call(r,o,a)}},t.prototype.eachOtherLayer=function(e,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||e.call(r,o,a)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(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 a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+CR,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?ch:0),this._needsManuallyCompositing),f.__builtin__||Ni("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ut&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var n=this._layerConfig;n[e]?we(n[e],r,!0):n[e]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+ch){var o=this._layers[a];we(o,n[e],!0)}}}},t.prototype.delLayer=function(e){var r=this._layers,n=this._zlevelList,i=r[e];i&&(i.dom.parentNode.removeChild(i.dom),delete r[e],n.splice(me(n,e),1))},t.prototype.resize=function(e,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(e!=null&&(i.width=e),r!=null&&(i.height=r),e=Nf(a,0,i),r=Nf(a,1,i),n.style.display="",this._width!==e||r!==this._height){n.style.width=e+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(e,r);this.refresh(!0)}this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this.getLayer(ba).resize(e,r)}return this},t.prototype.clearLayer=function(e){var r=this._layers[e];r&&r.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[ba].dom;var r=new Qp("image",this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var n=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];pa(n,f,o,l===u-1)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function MR(t){t.registerPainter("canvas",AR)}var LR=Xe('<div class="chart svelte-p6m4jy" role="img" aria-label="Saiku embed chart"></div>');const IR={hash:"svelte-p6m4jy",code:`
|
|
69
|
-
/*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
grid-column: ${U(S).x+1} / span ${U(S).w??""};
|
|
74
|
-
grid-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
`:"<br/>",g=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],c,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=_t(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,d=r.positionDefault,m=ul([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=m.get("trigger");if(!(p!=null&&p!=="item")){var g=u.getDataParams(f,h),y=new Ed;g.marker=y.makeTooltipMarker("item",ca(g.color),c);var _=c1(u.formatTooltip(f,!1,h)),b=m.get("order"),S=m.get("valueFormatter"),w=_.frag,T=w?T1(S?H({valueFormatter:S},w):w,y,c,b,a.get("useUTC"),m.get("textStyle")):_.text,x="item_"+u.name+"_"+f;this._showOrMove(m,function(){this._showTooltipContent(m,T,g,x,r.offsetX,r.offsetY,r.position,r.target,y)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=_t(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=pt(l),l.content=Ne(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=r.positionDefault,d=ul(h,this._tooltipModel,c?{position:c}:null),m=d.get("content"),p=Math.random()+"",g=new Ed;this._showOrMove(d,function(){var y=pt(d.get("formatterParams")||{});this._showTooltipContent(d,m,y,p,r.offsetX,r.offsetY,r.position,n,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var h=this._tooltipContent;h.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var c=n,d=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor"),r.get("defaultBorderColor",!0)),m=d.color;if(v)if(Y(v)){var p=r.ecModel.get("useUTC"),g=U(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;c=v,y&&(c=pf(g.axisValue,c,p)),c=M_(c,i,!0)}else if(rt(v)){var _=At(function(b,S){b===this._ticket&&(h.setContent(S,f,r,m,l),this._updatePosition(r,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,r,m,l),h.show(r,m),this._updatePosition(r,l,o,s,h,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a,o){if(i==="axis"||U(n))return{color:a||o};if(!U(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var h=o.getSize(),v=r.get("align"),c=r.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),rt(n)&&(n=n([i,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),U(n))i=Wt(n[0],u),a=Wt(n[1],f);else if(Z(n)){var m=n;m.width=h[0],m.height=h[1];var p=ai(m,{width:u,height:f});i=p.x,a=p.y,v=null,c=null}else if(Y(n)&&l){var g=xN(n,d,h,r.get("borderWidth"));i=g[0],a=g[1]}else{var g=wN(i,a,o,u,f,v?null:20,c?null:20);i=g[0],a=g[1]}if(v&&(i-=ax(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=ax(c)?h[1]/2:c==="bottom"?h[1]:0),KS(r)){var g=SN(i,a,o,u,f);i=g[0],a=g[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&L(i,function(s,l){var u=s.dataByAxis||[],f=r[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&L(u,function(v,c){var d=h[c]||{},m=v.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&m.length===p.length,o&&L(m,function(g,y){var _=p[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),a&&L(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=n[y],b=a[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){it.node||!n.getDom()||(Bd(this,"_updatePosition"),this._tooltipContent.dispose(),Yp("itemTooltip",n))},t.type="tooltip",t})(Rr);function ul(e,t,r){var n=t.ecModel,i;r?(i=new Ut(r,n,n),i=new Ut(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ut&&(o=o.get("tooltip",!0)),Y(o)&&(o={formatter:o}),o&&(i=new Ut(o,i,n)))}return i}function ix(e,t){return e.dispatchAction||At(t.dispatchAction,t)}function wN(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function SN(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function xN(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,f=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+f+o;break;case"left":s=t.x-i-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function ax(e){return e==="center"||e==="middle"}function TN(e,t,r){var n=av(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=ps(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=_t(u).tooltipConfig;if(f&&f.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function CN(e){ci(ZS),e.registerComponentModel(sN),e.registerComponentView(bN),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Oe),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Oe)}var DN=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:q.size.m,backgroundColor:q.color.transparent,borderColor:q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:q.color.primary},subtextStyle:{fontSize:12,color:q.color.quaternary}},t})(kt),AN=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Q(r.get("textBaseline"),r.get("textVerticalAlign")),f=new pe({style:ni(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=r.get("subtext"),c=new pe({style:ni(s,{text:v,fill:s.getTextColor(),y:h.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=r.get("link"),m=r.get("sublink"),p=r.get("triggerEvent",!0);f.silent=!d&&!p,c.silent=!m&&!p,d&&f.on("click",function(){L_(d,"_"+r.get("target"))}),m&&c.on("click",function(){L_(m,"_"+r.get("subtarget"))}),_t(f).eventData=_t(c).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(f),v&&a.add(c);var g=a.getBoundingRect(),y=r.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=wf(r,i),b=ai(y,_.refContainer,r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),g=a.getBoundingRect();var w=b.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var x=new qt({shape:{x:g.x-w[3],y:g.y-w[0],width:g.width+w[1]+w[3],height:g.height+w[0]+w[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});a.add(x)}},t.type="title",t})(Rr);function MN(e){e.registerComponentModel(DN),e.registerComponentView(AN)}var LN=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},qp=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&L(n,function(a,o){Y(a)&&(a={type:a}),n[o]=Tt(a,LN(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&nv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=ft(),s=K(a,function(l){return(Y(l)||Mt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ut(l,this,this.ecModel))},this);this._data=se(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;L(a,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;L(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&St(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:q.size.m,align:"auto",backgroundColor:q.color.transparent,borderColor:q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:q.color.disabled,inactiveBorderColor:q.color.disabled,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:q.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:q.color.tertiary,borderWidth:1,borderColor:q.color.border},emphasis:{selectorLabel:{show:!0,color:q.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(kt),Lo=Qt,Zp=L,lh=le,ox=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new lh),this.group.add(this._selectorGroup=new lh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var f=wf(r,i).refContainer,h=r.getBoxLayoutParams(),v=r.get("padding"),c=ai(h,f,v),d=this.layoutInner(r,o,c,a,l,u),m=ai(Dt({width:d.width,height:d.height},h),f,v);this.group.x=m.x-d.x,this.group.y=m.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=oN(d,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),f=ft(),h=n.get("selectedMode"),v=n.get("triggerEvent"),c=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&c.push(d.id)}),Zp(n.getData(),function(d,m){var p=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
61
|
+
`)){var y=new lh;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!f.get(g))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),T=b.getVisual("style"),x=this._createItem(_,g,m,d,n,r,S,T,w,h,a);x.on("click",Lo(sx,g,null,a,c)).on("mouseover",Lo(Kp,_.name,null,a,c)).on("mouseout",Lo(jp,_.name,null,a,c)),i.ssr&&x.eachChild(function(A){var C=_t(A);C.seriesIndex=_.seriesIndex,C.dataIndex=m,C.ssrType="legend"}),v&&x.eachChild(function(A){p.packEventData(A,n,_,m,g)}),f.set(g,!0)}else i.eachRawSeries(function(A){var C=this;if(!f.get(g)&&A.legendVisualProvider){var D=A.legendVisualProvider;if(!D.containName(g))return;var k=D.indexOfName(g),M=D.getItemVisual(k,"style"),I=D.getItemVisual(k,"legendIcon"),E=qr(M.fill);E&&E[3]===0&&(E[3]=.2,M=H(H({},M),{fill:ss(E,"rgba")}));var N=this._createItem(A,g,m,d,n,r,{},M,I,h,a);N.on("click",Lo(sx,null,g,a,c)).on("mouseover",Lo(Kp,null,g,a,c)).on("mouseout",Lo(jp,null,g,a,c)),i.ssr&&N.eachChild(function(z){var O=_t(z);O.seriesIndex=A.seriesIndex,O.dataIndex=m,O.ssrType="legend"}),v&&N.eachChild(function(z){C.packEventData(z,n,A,m,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype.packEventData=function(r,n,i,a,o){var s={componentType:"legend",componentIndex:n.componentIndex,dataIndex:a,value:o,seriesIndex:i.seriesIndex};_t(r).eventData=s},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();Zp(r,function(u){var f=u.type,h=new pe({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);Ls(h,{normal:v,emphasis:c},{defaultText:u.title}),Ev(h)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,f,h,v){var c=r.visualDrawType,d=o.get("itemWidth"),m=o.get("itemHeight"),p=o.isSelected(n),g=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var b=kN(f,a,l,u,c,p,v),S=new lh,w=a.getModel("textStyle");if(rt(r.getLegendIcon)&&(!_||_==="inherit"))S.add(r.getLegendIcon({itemWidth:d,itemHeight:m,icon:f,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?g==="inherit"?r.getData().getVisual("symbolRotate"):g:0;S.add(IN({itemWidth:d,itemHeight:m,icon:f,iconRotate:T,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var x=s==="left"?d+5:-5,A=s,C=o.get("formatter"),D=n;Y(C)&&C?D=C.replace("{name}",n??""):rt(C)&&(D=C(n));var k=p?w.getTextColor():a.get("inactiveColor");S.add(new pe({style:ni(w,{text:D,x,y:m/2,fill:k,align:A,verticalAlign:"middle"},{inheritColor:k})}));var M=new qt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&nf({el:M,componentModel:o,itemName:n,itemTooltipOption:I.option}),S.add(M),S.eachChild(function(E){E.silent=!0}),M.silent=!h,this.getContentGroup().add(S),Ev(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Es(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Es("horizontal",u,r.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],d=r.get("selectorButtonGap",!0),m=r.getOrient().index,p=m===0?"width":"height",g=m===0?"height":"width",y=m===0?"y":"x";s==="end"?c[m]+=f[p]+d:h[m]+=v[p]+d,c[1-m]+=f[g]/2-v[g]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+v[p],_[g]=Math.max(f[g],v[g]),_[y]=Math.min(0,v[y]+c[1-m]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Rr);function kN(e,t,r,n,i,a,o){function s(p,g){p.lineWidth==="auto"&&(p.lineWidth=g.lineWidth>0?2:0),Zp(p,function(y,_){p[_]==="inherit"&&(p[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Wd(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var v=t.getModel("lineStyle"),c=v.getLineStyle();if(s(c,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),m=u[f];u.lineWidth=d==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function IN(e){var t=e.icon||"roundRect",r=bo(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill=q.color.neutral00,r.style.lineWidth=2),r}function sx(e,t,r,n){jp(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Kp(e,t,r,n)}function lx(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Kp(e,t,r,n){lx(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function jp(e,t,r,n){lx(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function PN(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function fl(e,t,r){var n=e==="allSelect"||e==="inverseSelect",i={},a=[];r.eachComponent({mainType:"legend",query:t},function(s){n?s[e]():s[e](t.name),ux(s,i),a.push(s.componentIndex)});var o={};return r.eachComponent("legend",function(s){L(i,function(l,u){s[l?"select":"unSelect"](u)}),ux(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function ux(e,t){var r=t||{};return L(e.getData(),function(n){var i=n.get("name");if(!(i===`
|
|
62
|
+
`||i==="")){var a=e.isSelected(i);Ar(r,i)?r[i]=r[i]&&a:r[i]=a}}),r}function EN(e){e.registerAction("legendToggleSelect","legendselectchanged",Qt(fl,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Qt(fl,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Qt(fl,"inverseSelect")),e.registerAction("legendSelect","legendselected",Qt(fl,"select")),e.registerAction("legendUnSelect","legendunselected",Qt(fl,"unSelect"))}function fx(e){e.registerComponentModel(qp),e.registerComponentView(ox),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,PN),e.registerSubTypeDefaulter("legend",function(){return"plain"}),EN(e)}var RN=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=Ns(r);e.prototype.init.call(this,r,n,i),hx(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),hx(this,this.option,r)},t.type="legend.scroll",t.defaultOption=v_(qp.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:q.color.accent50,pageIconInactiveColor:q.color.accent10,pageIconSize:15,pageTextStyle:{color:q.color.tertiary},animationDurationUpdate:800}),t})(qp);function hx(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,oi(t,r,{type:"box",ignoreSize:!!i})}var cx=le,Qp=["width","height"],Jp=["x","y"],ON=(function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new cx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new cx)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=U(h)?h:[h,h];d("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new pe({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(m,p){var g=m+"DataIndex",y=Zv(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:At(u._pageGo,u,g,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=m,f.add(y)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,f=Qp[u],h=Jp[u],v=Qp[1-u],c=Jp[1-u];o&&Es("horizontal",l,r.get("selectorItemGap",!0));var d=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),p=[-m.x,-m.y],g=pt(i);o&&(g[f]=i[f]-m[f]-d);var y=this._layoutContentAndController(r,a,g,u,f,v,c,h);if(o){if(s==="end")p[u]+=y[f]+d;else{var _=m[f]+d;p[u]-=_,y[h]-=_}y[f]+=m[f]+d,p[1-u]+=y[c]+y[v]/2-m[v]/2,y[v]=Math.max(y[v],m[v]),y[c]=Math.min(y[c],m[c]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;Es(r.get("orient"),f,r.get("itemGap"),a?i.width:null,a?null:i.height),Es("horizontal",v,r.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),d=v.getBoundingRect(),m=this._showController=c[o]>i[o],p=[-c.x,-c.y];n||(p[a]=f[u]);var g=[0,0],y=[-d.x,-d.y],_=Q(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var b=r.get("pageButtonPosition",!0);b==="end"?y[a]+=i[o]-d[o]:g[a]+=d[o]+_}y[1-a]+=c[s]/2-d[s]/2,f.setPosition(p),h.setPosition(g),v.setPosition(y);var S={x:0,y:0};if(S[o]=m?i[o]:c[o],S[s]=Math.max(c[s],d[s]),S[l]=Math.min(0,d[l]+y[1-a]),h.__rectSize=i[o],m){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=S[s],h.setClipPath(new qt({shape:w})),h.__rectSize=w[o]}else v.eachChild(function(x){x.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&Ae(f,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),S},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;L(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Y(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=Qp[o],l=Jp[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,d={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var m=b(h);d.contentPosition[o]=-m.s;for(var p=u+1,g=m,y=m,_=null;p<=v;++p)_=b(f[p]),(!_&&y.e>g.s+a||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var p=u-1,g=m,y=m,_=null;p>=-1;--p)_=b(f[p]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function b(w){if(w){var T=w.getBoundingRect(),x=T[l]+w[l];return{s:x,e:x+T[s],i:w.__legendDataIndex}}}function S(w,T){return w.e>=T&&w.s<=T+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t})(ox);function NN(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function BN(e){ci(fx),e.registerComponentModel(RN),e.registerComponentView(ON),NN(e)}function FN(e){ci(fx),ci(BN)}function vx(e,t,r){var n=yn.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var tg=(function(e){It(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||bu,typeof r=="string"?o=vx(r,n,i):Z(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Am(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=vx("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ut(0,0,0,0);function f(y){if(!(!y.isFinite()||y.isZero()))if(o.length===0){var _=new ut(0,0,0,0);_.copy(y),o.push(_)}else{for(var b=!1,S=1/0,w=0,T=0;T<o.length;++T){var x=o[T];if(x.intersect(y)){var A=new ut(0,0,0,0);A.copy(x),A.union(y),o[T]=A,b=!0;break}else if(l){u.copy(y),u.union(x);var C=y.width*y.height,D=x.width*x.height,k=u.width*u.height,M=k-C-D;M<S&&(S=M,w=T)}}if(l&&(o[w].union(y),b=!0),!b){var _=new ut(0,0,0,0);_.copy(y),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var v=r[h];if(v){var c=v.shouldBePainted(i,a,!0,!0),d=v.__isRendered&&(v.__dirty&Ue||!c)?v.getPrevPaintRect():null;d&&f(d);var m=c&&(v.__dirty&Ue||!v.__isRendered)?v.getPaintRect():null;m&&f(m)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var v=n[h],c=v&&v.shouldBePainted(i,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var g=h+1;g<o.length;)o[h].intersect(o[g])?(p=!0,o[h].union(o[g]),o.splice(g,1)):g++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,h=this.dpr,v=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var c=this.domBack;function d(m,p,g,y){if(o.clearRect(m,p,g,y),n&&n!=="transparent"){var _=void 0;if(Ql(n)){var b=n.global||n.__width===g&&n.__height===y;_=b&&n.__canvasGradient||Hd(o,n,{x:0,y:0,width:g,height:y}),n.__canvasGradient=_,n.__width=g,n.__height=y}else LC(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Gd(o,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,p,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(c,m,p,g,y),o.restore())}!i||u?d(0,0,s,l):i.length&&L(i,function(m){d(m.x*h,m.y*h,m.width*h,m.height*h)})},t})(Yr),dx=1e5,Ca=314159,uh=.01,zN=.001;function HN(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function GN(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var VN=(function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||bu,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Am(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,v=f.height;n.width!=null&&(h=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=v*this.dpr,this._width=h,this._height=v;var c=new tg(f,this,this.dpr);c.__builtin__=!0,c.initContext(),l[Ca]=c,c.zlevel=Ca,s.push(Ca),this._domRoot=t}else{this._width=Ef(t,0,n),this._height=Ef(t,1,n);var u=this._domRoot=GN(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(dx)),a||(a=n.ctx,a.save()),ba(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(dx)},e.prototype.paintOne=function(t,r){ob(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;nu(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Ca).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var f=!0,h=!1,v=function(m){var p=a[m],g=p.ctx,y=o&&p.createRepaintRects(t,r,c._width,c._height),_=n?p.__startIndex:p.__drawIndex,b=!n&&p.incremental&&Date.now,S=b&&Date.now(),w=p.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,w,y);else if(_===p.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&p.clear(!1,w,y)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var x,A=function(M){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(x=_;x<p.__endIndex;x++){var E=t[x];if(E.__inHover&&(h=!0),i._doPaintEl(E,p,o,M,I,x===p.__endIndex-1),b){var N=Date.now()-S;if(N>15)break}}I.prevElClipPaths&&g.restore()};if(y)if(y.length===0)x=p.__endIndex;else for(var C=c.dpr,D=0;D<y.length;++D){var k=y[D];g.save(),g.beginPath(),g.rect(k.x*C,k.y*C,k.width*C,k.height*C),g.clip(),A(k),g.restore()}else g.save(),A(),g.restore();p.__drawIndex=x,p.__drawIndex<p.__endIndex&&(f=!1)},c=this,d=0;d<a.length;d++)v(d);return it.wxa&&L(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:f,needsRefreshHover:h}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(ba(s,t,a,o),t.setPrevPaintRect(l))}else ba(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Ca);var n=this._layers[t];return n||(n=new tg("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Tt(n,this._layerConfig[t],!0):this._layerConfig[t-uh]&&Tt(n,this._layerConfig[t-uh],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&HN(r)){if(a>0&&t>i[0]){for(l=0;l<a-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,v){h.__dirty=h.__used=!1});function r(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,f=void 0;s!==u&&(s=u,o=0),i.incremental?(f=this.getLayer(u+zN,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?uh:0),this._needsManuallyCompositing),f.__builtin__||Qh("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),a=f),i.__dirty&Ue&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(h,v){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,L(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Tt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+uh){var o=this._layers[a];Tt(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(St(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Ef(a,0,i),r=Ef(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Ca).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ca].dom;var r=new tg("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,a=r.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];ba(n,f,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function WN(e){e.registerPainter("canvas",VN)}function $N(e){const t=[];for(let i=1;i<=8;i++){const a=(e(`--saiku-embed-chart-${i}`)||"").trim();if(!a)break;t.push(a)}const r=(e("--saiku-embed-fg")||"").trim()||void 0,n=(e("--saiku-embed-muted")||"").trim()||void 0;return{palette:t,fg:r,axisLine:n}}function px(e,t){for(const r of e){const n=r[t]?.value;if(n!=null&&(typeof n!="number"||Number.isNaN(n)))return!1}return!0}function UN(e,t,r){const n=r.fg,i=r.axisLine,a=r.palette.length?{color:r.palette}:{},o={bottom:0,...n?{textStyle:{color:n}}:{}},s=n?{color:n}:{},l=i?{axisLine:{lineStyle:{color:i}}}:{};if(e.length===0)return{title:{text:"No data",left:"center",top:"middle",textStyle:{fontSize:12,...s}}};const u=Object.keys(e[0]),f=u.filter(c=>px(e,c)),h=u.find(c=>!px(e,c))??u[0],v=e.map(c=>c[h]?.formatted??"");if(t==="pie"){const c=f[0];return c?{...a,tooltip:{trigger:"item"},legend:o,series:[{type:"pie",radius:["40%","70%"],label:{show:!0,formatter:"{b}: {d}%",...s},data:e.map(d=>({name:d[h]?.formatted??"",value:d[c]?.value??0}))}]}:{title:{text:"No numeric series",textStyle:{...s}}}}return{...a,tooltip:{trigger:"axis",formatter:c=>{const d=Array.isArray(c)?c:[c],m=d[0].axisValue??"",p=d.map(g=>{const y=g.dataIndex,_=g.seriesName,S=e[y]?.[_]?.formatted??String(g.value??"");return`${_}: ${S}`}).join("<br/>");return`<b>${m}</b><br/>${p}`}},legend:o,grid:{left:40,right:16,top:24,bottom:36,containLabel:!0},xAxis:{type:"category",data:v,axisLabel:{interval:0,rotate:v.length>8?-30:0,...s},...l},yAxis:{type:"value",...n?{axisLabel:{color:n}}:{},...l,...i?{splitLine:{lineStyle:{color:i}}}:{}},series:f.map(c=>({name:c,type:t==="line"?"line":"bar",data:e.map(d=>d[c]?.value??null)}))}}var YN=lt('<div class="chart svelte-p6m4jy" role="img" aria-label="Saiku embed chart"></div>');const XN={hash:"svelte-p6m4jy",code:`
|
|
63
|
+
/* ECharts measures its container synchronously on init, so the div MUST have a
|
|
64
|
+
* concrete height before init runs. Tailwind classes aren't in the embed
|
|
65
|
+
* bundle CSS (only the SvelteKit app has them), so we set width+height in
|
|
66
|
+
* scoped shadow-DOM CSS. Min-height covers the case where the host page's
|
|
67
|
+
* layout provides no explicit height. */.chart.svelte-p6m4jy {width:100%;height:100%;min-height:240px;}`};function eg(e,t){Fn(t,!0),Bi(e,XN),ci([DR,hR,zR,aN,FN,MN,CN,WN]);let r=Nt(t,"rows"),n=Nt(t,"mode",7,"bar"),i=Et(void 0),a=null;$T(()=>{if(!R(i))return;a=oP(R(i));const l=new ResizeObserver(()=>a?.resize());return l.observe(R(i)),()=>{l.disconnect(),a?.dispose(),a=null}}),Ga(()=>{if(!a)return;const l=R(i),u=l?$N(h=>getComputedStyle(l).getPropertyValue(h)):{palette:[]},f=UN(r(),n(),u);a.setOption(f,{notMerge:!0})});var o={get rows(){return r()},set rows(l){r(l),Pt()},get mode(){return n()},set mode(l="bar"){n(l),Pt()}},s=YN();return nC(s,l=>X(i,l),()=>R(i)),j(e,s),zn(o)}Fi(eg,{rows:{},mode:{}},[],[],{mode:"open"});async function qN(e,t,r,n="records"){const i=hl(e),a=n==="matrix"?"?format=matrix":"",o=`${i}/rest/saiku/api/embed/query/${cl(t)}${a}`,s={Accept:"application/json"};r&&(s["X-Saiku-Embed-Token"]=r);const l=await fetch(o,{headers:s,credentials:"omit"});if(!l.ok)throw await dl(l);return await l.json()}function hl(e){return e.endsWith("/")?e.slice(0,-1):e}function cl(e){return e.split("/").map(t=>encodeURIComponent(t)).join("/")}class vl extends Error{constructor(t,r){super(r.error??`Embed fetch failed: HTTP ${t}`),this.status=t,this.body=r,this.name="EmbedFetchError"}}async function dl(e){let t={status:"ERROR"};try{t=await e.json()}catch{t={status:"ERROR",error:`HTTP ${e.status}`}}return new vl(e.status,t)}async function ZN(e,t,r){const i=`${hl(e)}/rest/saiku/api/embed/dashboard/${cl(t)}`,a={Accept:"application/json"};r&&(a["X-Saiku-Embed-Token"]=r);const o=await fetch(i,{headers:a,credentials:"omit"});if(!o.ok)throw await dl(o);return await o.json()}async function KN(e,t,r,n,i){const o=`${hl(e)}/rest/saiku/api/embed/dashboard/${cl(t)}/tile/${encodeURIComponent(r)}/query`,s={Accept:"application/json"};n&&(s["X-Saiku-Embed-Token"]=n);const l=i&&i.length>0?JSON.stringify({filters:i}):void 0;l&&(s["Content-Type"]="application/json");const u=await fetch(o,{method:"POST",headers:s,credentials:"omit",body:l});if(!u.ok)throw await dl(u);return await u.json()}async function jN(e,t,r,n,i,a=50){const o=hl(e),s=new URLSearchParams;s.set("limit",String(a));const l=`${o}/rest/saiku/api/embed/dashboard/${cl(t)}/tile/${encodeURIComponent(r)}/members?${s.toString()}`,u={Accept:"application/json"};n&&(u["X-Saiku-Embed-Token"]=n);const f=await fetch(l,{headers:u,credentials:"omit"});if(!f.ok)throw await dl(f);return await f.json()}async function QN(e,t,r,n,i){const o=`${hl(e)}/rest/saiku/api/embed/ai/${cl(t)}/ask`,s={Accept:"application/json","Content-Type":"application/json"};r&&(s["X-Saiku-Embed-Token"]=r);const l=JSON.stringify({question:n,history:[]}),u=await fetch(o,{method:"POST",headers:s,credentials:"omit",body:l});if(!u.ok)throw await dl(u);return await u.json()}var JN=lt('<div class="state muted svelte-1wyd0zw">Filter tile has no target</div>'),tB=lt('<div class="state error svelte-1wyd0zw"> </div>'),eB=lt('<div class="state muted svelte-1wyd0zw">Loading members…</div>'),rB=lt('<div class="state muted svelte-1wyd0zw">No members</div>'),nB=lt("<option> </option>"),iB=lt('<select class="svelte-1wyd0zw"><option> </option><!></select>'),aB=lt('<label class="checkbox svelte-1wyd0zw"><input type="checkbox" class="svelte-1wyd0zw"/> <span> </span></label>'),oB=lt('<button type="button" class="clear svelte-1wyd0zw"> </button>'),sB=lt('<div class="multi svelte-1wyd0zw"><!> <!></div>'),lB=lt('<div class="filter-tile svelte-1wyd0zw"><!></div>');const uB={hash:"svelte-1wyd0zw",code:".filter-tile.svelte-1wyd0zw {padding:8px 10px;font-family:system-ui, sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}.state.svelte-1wyd0zw {padding:4px 0;}.state.muted.svelte-1wyd0zw {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-1wyd0zw {color:var(--saiku-embed-error, #b91c1c);}select.svelte-1wyd0zw {width:100%;padding:4px 6px;font-size:13px;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:4px;background:var(--saiku-embed-bg, #ffffff);color:inherit;}.multi.svelte-1wyd0zw {display:flex;flex-direction:column;gap:4px;max-height:220px;overflow-y:auto;}.checkbox.svelte-1wyd0zw {display:flex;align-items:center;gap:6px;cursor:pointer;padding:2px 0;}.checkbox.svelte-1wyd0zw input:where(.svelte-1wyd0zw) {margin:0;}.clear.svelte-1wyd0zw {margin-top:4px;padding:3px 8px;font-size:12px;background:transparent;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:4px;color:var(--saiku-embed-fg, #1f2937);cursor:pointer;}.clear.svelte-1wyd0zw:hover {background:var(--saiku-embed-row-hover, #f3f4f6);}"};function gx(e,t){Fn(t,!0),Bi(e,uB);let r=Nt(t,"server"),n=Nt(t,"token"),i=Nt(t,"dashboardPath"),a=Nt(t,"tile"),o=Nt(t,"onChange"),s=Et(null),l=Et(null),u=Et(Hr(new Set)),f=Vn(()=>(a().widget||"multi-select").toLowerCase());Ga(()=>{const x=r().trim(),A=i().trim();if(!A||!a().target){X(s,null);return}let C=!1;return X(s,null),X(l,null),jN(x,A,a().id,n()||void 0).then(D=>{C||X(s,D,!0)}).catch(D=>{C||X(l,D instanceof vl?D.body.error??"Members unavailable":"Members unavailable",!0)}),()=>{C=!0}});function h(){if(!a().target)return;const x=Array.from(R(u));if(x.length===0){o()(null);return}o()({dimension:a().target.dimension,hierarchy:a().target.hierarchy??null,level:a().target.level,members:x})}function v(x){const A=x.target.value;X(u,A?new Set([A]):new Set,!0),h()}function c(x,A){const C=new Set(R(u));A?C.add(x):C.delete(x),X(u,C,!0),h()}function d(){X(u,new Set,!0),h()}var m={get server(){return r()},set server(x){r(x),Pt()},get token(){return n()},set token(x){n(x),Pt()},get dashboardPath(){return i()},set dashboardPath(x){i(x),Pt()},get tile(){return a()},set tile(x){a(x),Pt()},get onChange(){return o()},set onChange(x){o(x),Pt()}},p=lB(),g=vt(p);{var y=x=>{var A=JN();j(x,A)},_=x=>{var A=tB(),C=vt(A,!0);st(A),Gt(()=>jt(C,R(l))),j(x,A)},b=x=>{var A=eB();j(x,A)},S=x=>{var A=rB();j(x,A)},w=x=>{var A=iB(),C=vt(A),D=vt(C);st(C),C.value=C.__value="";var k=Ve(C);mn(k,17,()=>R(s),M=>M.uniqueName,(M,I)=>{var E=nB(),N=vt(E,!0);st(E);var z={};Gt(O=>{tC(E,O),jt(N,R(I).caption),z!==(z=R(I).uniqueName)&&(E.value=(E.__value=R(I).uniqueName)??"")},[()=>R(u).has(R(I).uniqueName)]),j(M,E)}),st(A),Gt(()=>{ql(A,"aria-label",a().title??a().target.level),jt(D,`All ${a().target.level??""}`)}),zh("change",A,v),j(x,A)},T=x=>{var A=sB(),C=vt(A);mn(C,17,()=>R(s),M=>M.uniqueName,(M,I)=>{var E=aB(),N=vt(E);pm(N);var z=Ve(N,2),O=vt(z,!0);st(z),st(E),Gt(B=>{JT(N,B),jt(O,R(I).caption)},[()=>R(u).has(R(I).uniqueName)]),zh("change",N,B=>c(R(I).uniqueName,B.target.checked)),j(M,E)});var D=Ve(C,2);{var k=M=>{var I=oB(),E=vt(I);st(I),Gt(()=>jt(E,`Clear (${R(u).size??""})`)),zh("click",I,d),j(M,I)};Te(D,M=>{R(u).size>0&&M(k)})}st(A),j(x,A)};Te(g,x=>{a().target?R(l)?x(_,1):R(s)===null?x(b,2):R(s).length===0?x(S,3):R(f)==="single-select"?x(w,4):x(T,-1):x(y)})}return st(p),j(e,p),zn(m)}OT(["change","click"]),Fi(gx,{server:{},token:{},dashboardPath:{},tile:{},onChange:{}},[],[],{mode:"open"});var fB=lt('<div class="state svelte-icx34q">Loading dashboard…</div>'),hB=lt('<div class="state error svelte-icx34q" role="alert"> </div>'),cB=lt('<header class="svelte-icx34q"> </header>'),vB=lt('<p class="svelte-icx34q"> </p>'),dB=lt('<div class="kpi svelte-icx34q"> </div>'),pB=lt('<div class="state muted svelte-icx34q">Loading…</div>'),gB=lt('<div class="state muted svelte-icx34q">No data</div>'),mB=lt('<div class="state muted svelte-icx34q">Unsupported tile</div>'),yB=lt('<div class="tile svelte-icx34q"><!> <div class="body svelte-icx34q"><!></div></div>'),_B=lt('<div class="grid gap-3 p-3 w-full box-border"></div>');const bB={hash:"svelte-icx34q",code:".tile.svelte-icx34q {background:var(--saiku-embed-tile-bg, #ffffff);border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:8px;display:flex;flex-direction:column;overflow:hidden;min-height:0; /* let chart fill, not push */}.tile.svelte-icx34q header:where(.svelte-icx34q) {padding:8px 12px;font-weight:600;font-size:13px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.tile.svelte-icx34q .body:where(.svelte-icx34q) {flex:1;min-height:0;display:flex;flex-direction:column;}.tile.svelte-icx34q .body:where(.svelte-icx34q) p:where(.svelte-icx34q) {padding:8px 12px;margin:0;font-family:system-ui, sans-serif;font-size:13px;white-space:pre-wrap;color:var(--saiku-embed-fg, #1f2937);}.kpi.svelte-icx34q {flex:1;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--saiku-embed-fg, #1f2937);font-family:system-ui, sans-serif;}.state.svelte-icx34q {padding:12px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-icx34q {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-icx34q {color:var(--saiku-embed-error, #b91c1c);}"};function mx(e,t){Fn(t,!0),Bi(e,bB);let r=Nt(t,"server"),n=Nt(t,"token"),i=Nt(t,"path"),a=Et(null),o=Et(null),s=Et(!1),l=Et(Hr({})),u=Et(Hr({})),f=Vn(()=>Object.values(R(u)).filter(x=>x!==null));Ga(()=>{const x=r().trim(),A=i().trim(),C=n().trim();if(!A){X(a,null),X(o,null);return}let D=!1;return X(s,!0),X(o,null),X(a,null),X(l,{},!0),ZN(x,A,C||void 0).then(k=>{D||(X(a,k,!0),v(k,x,A,C,D,[]))}).catch(k=>{D||X(o,m(k),!0)}).finally(()=>{D||X(s,!1)}),()=>{D=!0}});function h(x){return x.type==="chart"||x.type==="kpi"}function v(x,A,C,D,k,M){for(const I of x.layout?.tiles??[])h(I)&&(X(l,{...R(l),[I.id]:null},!0),KN(A,C,I.id,D||void 0,M).then(E=>{k||X(l,{...R(l),[I.id]:E.data??[]},!0)}).catch(()=>{k||X(l,{...R(l),[I.id]:[]},!0)}))}Ga(()=>{const x=R(f),A=r().trim(),C=i().trim(),D=n().trim();!R(a)||!C||x.length===0&&!c.current||(c.current=c.current||x.length>0,v(R(a),A,C,D,!1,x))});const c={current:!1};function d(x,A){X(u,{...R(u),[x]:A},!0)}function m(x){return x instanceof vl?x.status===401?"This embed is unavailable.":x.body.error??`Embed failed (${x.status}).`:"Embed failed to load."}let p=Vn(()=>R(a)?.layout?.cols??12);function g(x,A){if(!x||x.length===0)return"-";const C=x[0],D=A.kpi?.measureCaption??A.kpi?.measure;if(D&&C[D]?.formatted)return C[D].formatted;for(const k of Object.keys(C)){const M=C[k];if(M?.value!==null&&typeof M?.value=="number")return M.formatted}return"-"}var y={get server(){return r()},set server(x){r(x),Pt()},get token(){return n()},set token(x){n(x),Pt()},get path(){return i()},set path(x){i(x),Pt()}},_=$a(),b=Pi(_);{var S=x=>{var A=fB();j(x,A)},w=x=>{var A=hB(),C=vt(A,!0);st(A),Gt(()=>jt(C,R(o))),j(x,A)},T=x=>{var A=_B();mn(A,21,()=>R(a).layout.tiles,C=>C.id,(C,D)=>{var k=yB(),M=vt(k);{var I=F=>{var W=cB(),tt=vt(W,!0);st(W),Gt(()=>jt(tt,R(D).title)),j(F,W)};Te(M,F=>{R(D).title&&F(I)})}var E=Ve(M,2),N=vt(E);{var z=F=>{var W=vB(),tt=vt(W,!0);st(W),Gt(()=>jt(tt,R(D).text??"")),j(F,W)},O=F=>{var W=dB(),tt=vt(W,!0);st(W),Gt(bt=>jt(tt,bt),[()=>g(R(l)[R(D).id],R(D))]),j(F,W)},B=F=>{var W=$a(),tt=Pi(W);{var bt=Ot=>{var Yt=pB();j(Ot,Yt)},ie=Ot=>{var Yt=gB();j(Ot,Yt)},ye=Ot=>{{let Yt=Vn(()=>R(D).chartType??"bar");eg(Ot,{get rows(){return R(l)[R(D).id]},get mode(){return R(Yt)}})}};Te(tt,Ot=>{R(l)[R(D).id]===void 0?Ot(bt):R(l)[R(D).id].length===0?Ot(ie,1):Ot(ye,-1)})}j(F,W)},G=F=>{gx(F,{get server(){return r()},get token(){return n()},get dashboardPath(){return i()},get tile(){return R(D)},onChange:W=>d(R(D).id,W)})},V=F=>{var W=mB();j(F,W)};Te(N,F=>{R(D).type==="text"?F(z):R(D).type==="kpi"?F(O,1):R(D).type==="chart"?F(B,2):R(D).type==="filter"?F(G,3):F(V,-1)})}st(E),st(k),Gt(()=>$h(k,`
|
|
68
|
+
grid-column: ${R(D).x+1} / span ${R(D).w??""};
|
|
69
|
+
grid-row: ${R(D).y+1} / span ${R(D).h??""};
|
|
70
|
+
`)),j(C,k)}),st(A),Gt(()=>$h(A,`
|
|
71
|
+
grid-template-columns: repeat(${R(p)??""}, minmax(0, 1fr));
|
|
77
72
|
grid-auto-rows: 60px;
|
|
78
|
-
`)),
|
|
79
|
-
|
|
73
|
+
`)),j(x,A)};Te(b,x=>{R(s)&&!R(a)?x(S):R(o)?x(w,1):R(a)&&x(T,2)})}return j(e,_),zn(y)}Fi(mx,{server:{},token:{},path:{}},[],[],{mode:"open"});var wB=lt('<div class="empty svelte-wdnagx">No rows returned</div>'),SB=lt("<th> </th>"),xB=lt("<td> </td>"),TB=lt('<tr class="svelte-wdnagx"><th class="row-header svelte-wdnagx"> </th><!></tr>'),CB=lt('<table class="svelte-wdnagx"><thead><tr><th class="row-header svelte-wdnagx"></th><!></tr></thead><tbody class="svelte-wdnagx"></tbody></table>');const DB={hash:"svelte-wdnagx",code:`table.svelte-wdnagx {border-collapse:collapse;width:100%;font-family:system-ui,
|
|
74
|
+
-apple-system,
|
|
75
|
+
Segoe UI,
|
|
76
|
+
sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);}th.svelte-wdnagx,
|
|
77
|
+
td.svelte-wdnagx {padding:6px 10px;border-bottom:1px solid var(--saiku-embed-border, #e5e7eb);text-align:left;white-space:nowrap;}th.svelte-wdnagx {background:var(--saiku-embed-header-bg, #f9fafb);font-weight:600;}
|
|
78
|
+
/* Row-axis headers live in the first column — sticky-left in wide tables
|
|
79
|
+
so the axis label stays visible when the caller wraps us in a scroller. */th.row-header.svelte-wdnagx {position:sticky;left:0;background:var(--saiku-embed-header-bg, #f9fafb);z-index:1;}th.numeric.svelte-wdnagx,
|
|
80
|
+
td.numeric.svelte-wdnagx {text-align:right;font-variant-numeric:tabular-nums;}td.negative.svelte-wdnagx {color:var(--saiku-embed-negative, #b91c1c);}tbody.svelte-wdnagx tr:where(.svelte-wdnagx):hover {background:var(--saiku-embed-row-hover, #f3f4f6);}.empty.svelte-wdnagx {padding:12px;color:var(--saiku-embed-muted, #6b7280);font-family:system-ui, sans-serif;font-size:13px;}`};function yx(e,t){Fn(t,!0),Bi(e,DB);let r=Nt(t,"rows"),n=Nt(t,"rowCaptions"),i=Nt(t,"columnCaptions");function a(v){for(const c of r()){const d=c[String(v)]?.value;if(d!=null&&(typeof d!="number"||Number.isNaN(d)))return!1}return!0}function o(v,c){return v[String(c)]}var s={get rows(){return r()},set rows(v){r(v),Pt()},get rowCaptions(){return n()},set rowCaptions(v){n(v),Pt()},get columnCaptions(){return i()},set columnCaptions(v){i(v),Pt()}},l=$a(),u=Pi(l);{var f=v=>{var c=wB();j(v,c)},h=v=>{var c=CB(),d=vt(c),m=vt(d),p=Ve(vt(m));mn(p,17,i,y=>y.name,(y,_)=>{const b=Vn(()=>i().indexOf(R(_)));var S=SB();let w;var T=vt(S,!0);st(S),Gt(x=>{w=Xl(S,1,"svelte-wdnagx",null,w,x),jt(T,R(_).caption)},[()=>({numeric:a(R(b))})]),j(y,S)}),st(m),st(d);var g=Ve(d);mn(g,21,r,Vh,(y,_,b)=>{var S=TB(),w=vt(S),T=vt(w,!0);st(w);var x=Ve(w);mn(x,17,i,Vh,(A,C,D)=>{const k=Vn(()=>o(R(_),D));var M=xB();let I;var E=vt(M,!0);st(M),Gt(N=>{I=Xl(M,1,"svelte-wdnagx",null,I,N),jt(E,R(k)?.formatted??"")},[()=>({numeric:a(D),negative:R(k)&&R(k).value!==null&&R(k).value<0})]),j(A,M)}),st(S),Gt(()=>jt(T,n()[b]?.caption??"")),j(y,S)}),st(g),st(c),j(v,c)};Te(u,v=>{r().length===0?v(f):v(h,-1)})}return j(e,l),zn(s)}Fi(yx,{rows:{},rowCaptions:{},columnCaptions:{}},[],[],{mode:"open"});var AB=lt('<div class="state error svelte-1850173" role="alert"> </div>'),MB=lt('<div class="state warn svelte-1850173"> </div>'),LB=lt('<div class="answer svelte-1850173"> </div>'),kB=lt('<div class="narrative svelte-1850173"> </div>'),IB=lt('<details class="mdx svelte-1850173"><summary class="svelte-1850173">Generated MDX</summary> <pre class="svelte-1850173"> </pre></details>'),PB=lt("<!> <!> <!>",1),EB=lt('<div class="ask-widget svelte-1850173"><form class="row svelte-1850173"><input type="text" aria-label="Ask a question" class="svelte-1850173"/> <button type="submit" class="svelte-1850173"> </button></form> <!></div>');const RB={hash:"svelte-1850173",code:'.ask-widget.svelte-1850173 {font-family:system-ui, sans-serif;font-size:13px;color:var(--saiku-embed-fg, #1f2937);display:flex;flex-direction:column;gap:10px;padding:10px 12px;}.row.svelte-1850173 {display:flex;gap:8px;}input[type="text"].svelte-1850173 {flex:1;padding:6px 10px;font-size:13px;border:1px solid var(--saiku-embed-border, #e5e7eb);border-radius:6px;background:var(--saiku-embed-bg, #ffffff);color:inherit;}input[type="text"].svelte-1850173:focus {outline:2px solid var(--saiku-embed-accent, #b3170f);outline-offset:1px;}button.svelte-1850173 {padding:6px 14px;font-size:13px;font-weight:600;color:#ffffff;background:var(--saiku-embed-accent, #b3170f);border:none;border-radius:6px;cursor:pointer;}button.svelte-1850173:disabled {opacity:0.5;cursor:not-allowed;}.answer.svelte-1850173 {padding:8px 10px;background:var(--saiku-embed-header-bg, #f9fafb);border-radius:6px;line-height:1.5;white-space:pre-wrap;}.narrative.svelte-1850173 {padding:4px 2px;color:var(--saiku-embed-muted, #6b7280);font-size:12px;line-height:1.4;white-space:pre-wrap;}.mdx.svelte-1850173 summary:where(.svelte-1850173) {cursor:pointer;font-size:12px;color:var(--saiku-embed-muted, #6b7280);}.mdx.svelte-1850173 pre:where(.svelte-1850173) {margin:6px 0 0;padding:8px;background:var(--saiku-embed-header-bg, #f9fafb);border-radius:4px;overflow-x:auto;font-family:ui-monospace, monospace;font-size:11px;line-height:1.4;}.state.svelte-1850173 {padding:8px 10px;border-radius:6px;font-size:12px;line-height:1.4;}.state.error.svelte-1850173 {color:var(--saiku-embed-error, #b91c1c);background:rgba(185, 28, 28, 0.06);}.state.warn.svelte-1850173 {color:#a25400;background:rgba(162, 84, 0, 0.06);}'};function _x(e,t){Fn(t,!0),Bi(e,RB);let r=Nt(t,"server"),n=Nt(t,"token"),i=Nt(t,"cubeId"),a=Nt(t,"placeholder",7,"Ask a question about this cube..."),o=Et(""),s=Et(!1),l=Et(null),u=Et(null);async function f(b){b.preventDefault();const S=R(o).trim();if(S){X(s,!0),X(l,null),X(u,null);try{X(u,await QN(r(),i(),n()||void 0,S),!0)}catch(w){w instanceof vl?X(l,w.status===401?"This embed is unavailable.":w.body.error??"Ask failed.",!0):X(l,"Ask failed to reach the server.")}finally{X(s,!1)}}}var h={get server(){return r()},set server(b){r(b),Pt()},get token(){return n()},set token(b){n(b),Pt()},get cubeId(){return i()},set cubeId(b){i(b),Pt()},get placeholder(){return a()},set placeholder(b="Ask a question about this cube..."){a(b),Pt()}},v=EB(),c=vt(v),d=vt(c);pm(d);var m=Ve(d,2),p=vt(m,!0);st(m),st(c);var g=Ve(c,2);{var y=b=>{var S=AB(),w=vt(S,!0);st(S),Gt(()=>jt(w,R(l))),j(b,S)},_=b=>{var S=$a(),w=Pi(S);{var T=A=>{var C=MB(),D=vt(C,!0);st(C),Gt(()=>jt(D,R(u).reason??"AI ask is not configured on this deployment.")),j(A,C)},x=A=>{var C=PB(),D=Pi(C);{var k=z=>{var O=LB(),B=vt(O,!0);st(O),Gt(()=>jt(B,R(u).answer)),j(z,O)};Te(D,z=>{R(u).answer&&z(k)})}var M=Ve(D,2);{var I=z=>{var O=kB(),B=vt(O,!0);st(O),Gt(()=>jt(B,R(u).narrative)),j(z,O)};Te(M,z=>{R(u).narrative&&R(u).narrative!==R(u).answer&&z(I)})}var E=Ve(M,2);{var N=z=>{var O=IB(),B=Ve(vt(O),2),G=vt(B,!0);st(B),st(O),Gt(()=>jt(G,R(u).mdx)),j(z,O)};Te(E,z=>{R(u).mdx&&z(N)})}j(A,C)};Te(w,A=>{R(u).degraded?A(T):A(x,-1)})}j(b,S)};Te(g,b=>{R(l)?b(y):R(u)&&b(_,1)})}return st(v),Gt(b=>{ql(d,"placeholder",a()),d.disabled=R(s),m.disabled=b,jt(p,R(s)?"Asking…":"Ask")},[()=>R(s)||!R(o).trim()]),RT("submit",c,f),rC(d,()=>R(o),b=>X(o,b)),j(e,v),zn(h)}Fi(_x,{server:{},token:{},cubeId:{},placeholder:{}},[],[],{mode:"open"});var OB=lt('<div class="state svelte-17xdsuh">Loading…</div>'),NB=lt('<div class="state error svelte-17xdsuh" role="alert"> </div>'),BB=lt('<div class="state muted svelte-17xdsuh">Configure the embed: <code class="svelte-17xdsuh">server</code> + <code class="svelte-17xdsuh">path</code>.</div>'),FB=lt('<div class="w-full h-full overflow-auto"><!></div>');const zB={hash:"svelte-17xdsuh",code:`
|
|
81
|
+
/* Shadow-DOM scoped — host page CSS can't leak in and vice versa.
|
|
80
82
|
* Host page can recolour via the --saiku-embed-* CSS variables we
|
|
81
|
-
* surface on :host. */:host {display:block;color:var(--saiku-embed-fg, #1f2937);background:var(--saiku-embed-bg, transparent);}.
|
|
83
|
+
* surface on :host. */:host {display:block;color:var(--saiku-embed-fg, #1f2937);background:var(--saiku-embed-bg, transparent);}.state.svelte-17xdsuh {padding:16px;font-family:system-ui, sans-serif;font-size:13px;}.state.muted.svelte-17xdsuh {color:var(--saiku-embed-muted, #6b7280);}.state.error.svelte-17xdsuh {color:var(--saiku-embed-error, #b91c1c);}code.svelte-17xdsuh {background:rgba(0, 0, 0, 0.05);padding:1px 4px;border-radius:3px;font-family:ui-monospace, monospace;}`};function bx(e,t){Fn(t,!0),Bi(e,zB);let r=Nt(t,"server",7,""),n=Nt(t,"token",7,""),i=Nt(t,"kind",7,"query"),a=Nt(t,"path",7,""),o=Nt(t,"render",7,"table"),s=Nt(t,"mode",7,"bar"),l=Nt(t,"height",7,"400px"),u=Et(null),f=Et(null),h=Et(Hr([])),v=Et(Hr([])),c=Et(null),d=Et(!1);Ga(()=>{const C=r().trim(),D=a().trim(),k=n().trim(),M=i().trim()||"query",I=(o()||"").trim().toLowerCase();if(M!=="query"){X(u,null),X(f,null),X(c,null);return}if(!D){X(u,null),X(f,null),X(c,null);return}let E=!1;X(d,!0),X(c,null);const N=I==="matrix";return qN(C,D,k||void 0,N?"matrix":"records").then(z=>{E||(N?(X(f,z.matrix??[],!0),X(h,z.metadata?.rows??[],!0),X(v,z.metadata?.columns??[],!0),X(u,null)):(X(u,z.data??[],!0),X(f,null)))}).catch(z=>{E||(X(c,m(z),!0),X(u,null),X(f,null))}).finally(()=>{E||X(d,!1)}),()=>{E=!0}});function m(C){return C instanceof vl?C.status===401?"This embed is unavailable.":C.body.error??`Embed failed (${C.status}).`:"Embed failed to load."}var p={get server(){return r()},set server(C=""){r(C),Pt()},get token(){return n()},set token(C=""){n(C),Pt()},get kind(){return i()},set kind(C="query"){i(C),Pt()},get path(){return a()},set path(C=""){a(C),Pt()},get render(){return o()},set render(C="table"){o(C),Pt()},get mode(){return s()},set mode(C="bar"){s(C),Pt()},get height(){return l()},set height(C="400px"){l(C),Pt()}},g=FB(),y=vt(g);{var _=C=>{mx(C,{get server(){return r()},get token(){return n()},get path(){return a()}})},b=C=>{_x(C,{get server(){return r()},get token(){return n()},get cubeId(){return a()}})},S=C=>{var D=OB();j(C,D)},w=C=>{var D=NB(),k=vt(D,!0);st(D),Gt(()=>jt(k,R(c))),j(C,D)},T=C=>{yx(C,{get rows(){return R(f)},get rowCaptions(){return R(h)},get columnCaptions(){return R(v)}})},x=C=>{var D=$a(),k=Pi(D);{var M=E=>{eg(E,{get rows(){return R(u)},get mode(){return s()}})},I=E=>{_m(E,{get rows(){return R(u)}})};Te(k,E=>{o()==="chart"?E(M):E(I,-1)})}j(C,D)},A=C=>{var D=BB();j(C,D)};Te(y,C=>{i()==="dashboard"?C(_):i()==="ai"?C(b,1):R(d)?C(S,2):R(c)?C(w,3):R(f)!==null?C(T,4):R(u)!==null?C(x,5):C(A,-1)})}return st(g),Gt(()=>$h(g,`min-height: ${l()??""};`)),j(e,g),zn(p)}return customElements.define("saiku-embed",Fi(bx,{server:{attribute:"server",type:"String"},token:{attribute:"token",type:"String"},kind:{attribute:"kind",type:"String"},path:{attribute:"path",type:"String"},render:{attribute:"render",type:"String"},mode:{attribute:"mode",type:"String"},height:{attribute:"height",type:"String"}},[],[],{mode:"open"})),bx})();
|
|
82
84
|
//# sourceMappingURL=saiku-embed.js.map
|