@glycanage/web-components 1.212.0 → 1.213.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.
|
@@ -1 +1,87 @@
|
|
|
1
|
-
import{c as
|
|
1
|
+
import{c as BA,S as GA,i as FA,f as xm,s as HA,e as _m,b as WA,n as Zh,p as bm,g as wm,q as UA,u as jh,k as qh,o as YA,A as XA}from"./index2.js";import{g as ZA}from"./globals.js";import{s as jA}from"./helpers.js";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var $h=function(n,e){return $h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},$h(n,e)};function P(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");$h(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var qA=function(){function n(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return n}(),$A=function(){function n(){this.browser=new qA,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 n}(),uo=new $A;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(uo.wxa=!0,uo.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?uo.worker=!0:typeof navigator>"u"?(uo.node=!0,uo.svgSupported=!0):KA(navigator.userAgent,uo);function KA(n,e){var t=e.browser,i=n.match(/Firefox\/([\d.]+)/),o=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),r=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(t.firefox=!0,t.version=i[1]),o&&(t.ie=!0,t.version=o[1]),r&&(t.edge=!0,t.version=r[1],t.newEdge=+r[1].split(".")[0]>18),a&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const St=uo;var Kh=12,Sm="sans-serif",Ii=Kh+"px "+Sm,JA=20,QA=100,tk="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function ek(n){var e={};if(typeof JSON>"u")return e;for(var t=0;t<n.length;t++){var i=String.fromCharCode(t+32),o=(n.charCodeAt(t)-JA)/QA;e[i]=o}return e}var nk=ek(tk),Ci={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var n,e;return function(t,i){if(!n){var o=Ci.createCanvas();n=o&&o.getContext("2d")}if(n)return e!==i&&(e=n.font=i||Ii),n.measureText(t);t=t||"",i=i||Ii;var r=/(\d+)px/.exec(i),a=r&&+r[1]||Kh,s=0;if(i.indexOf("mono")>=0)s=a*t.length;else for(var l=0;l<t.length;l++){var u=nk[t[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(n,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=n,i}},Mm=Nn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,e){return n["[object "+e+"]"]=!0,n},{}),Im=Nn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,e){return n["[object "+e+"Array]"]=!0,n},{}),Cr=Object.prototype.toString,Vl=Array.prototype,ik=Vl.forEach,ok=Vl.filter,Jh=Vl.slice,rk=Vl.map,Cm=function(){}.constructor,Rl=Cm?Cm.prototype:null,Qh="__proto__",ak=2311;function Dm(){return ak++}function vn(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];typeof console<"u"&&console.error.apply(console,n)}function it(n){if(n==null||typeof n!="object")return n;var e=n,t=Cr.call(n);if(t==="[object Array]"){if(!Ga(n)){e=[];for(var i=0,o=n.length;i<o;i++)e[i]=it(n[i])}}else if(Im[t]){if(!Ga(n)){var r=n.constructor;if(r.from)e=r.from(n);else{e=new r(n.length);for(var i=0,o=n.length;i<o;i++)e[i]=n[i]}}}else if(!Mm[t]&&!Ga(n)&&!Dr(n)){e={};for(var a in n)n.hasOwnProperty(a)&&a!==Qh&&(e[a]=it(n[a]))}return e}function ht(n,e,t){if(!K(e)||!K(n))return t?it(e):n;for(var i in e)if(e.hasOwnProperty(i)&&i!==Qh){var o=n[i],r=e[i];K(r)&&K(o)&&!B(r)&&!B(o)&&!Dr(r)&&!Dr(o)&&!Tm(r)&&!Tm(o)&&!Ga(r)&&!Ga(o)?ht(o,r,t):(t||!(i in n))&&(n[i]=it(e[i]))}return n}function tp(n,e){for(var t=n[0],i=1,o=n.length;i<o;i++)t=ht(t,n[i],e);return t}function R(n,e){if(Object.assign)Object.assign(n,e);else for(var t in e)e.hasOwnProperty(t)&&t!==Qh&&(n[t]=e[t]);return n}function et(n,e,t){for(var i=xt(e),o=0;o<i.length;o++){var r=i[o];(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}return n}function dt(n,e){if(n){if(n.indexOf)return n.indexOf(e);for(var t=0,i=n.length;t<i;t++)if(n[t]===e)return t}return-1}function sk(n,e){var t=n.prototype;function i(){}i.prototype=e.prototype,n.prototype=new i;for(var o in t)t.hasOwnProperty(o)&&(n.prototype[o]=t[o]);n.prototype.constructor=n,n.superClass=e}function $t(n,e,t){if(n="prototype"in n?n.prototype:n,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];r!=="constructor"&&(t?e[r]!=null:n[r]==null)&&(n[r]=e[r])}else et(n,e,t)}function ye(n){return!n||typeof n=="string"?!1:typeof n.length=="number"}function C(n,e,t){if(n&&e)if(n.forEach&&n.forEach===ik)n.forEach(e,t);else if(n.length===+n.length)for(var i=0,o=n.length;i<o;i++)e.call(t,n[i],i,n);else for(var r in n)n.hasOwnProperty(r)&&e.call(t,n[r],r,n)}function G(n,e,t){if(!n)return[];if(!e)return ep(n);if(n.map&&n.map===rk)return n.map(e,t);for(var i=[],o=0,r=n.length;o<r;o++)i.push(e.call(t,n[o],o,n));return i}function Nn(n,e,t,i){if(n&&e){for(var o=0,r=n.length;o<r;o++)t=e.call(i,t,n[o],o,n);return t}}function Lt(n,e,t){if(!n)return[];if(!e)return ep(n);if(n.filter&&n.filter===ok)return n.filter(e,t);for(var i=[],o=0,r=n.length;o<r;o++)e.call(t,n[o],o,n)&&i.push(n[o]);return i}function lk(n,e,t){if(n&&e){for(var i=0,o=n.length;i<o;i++)if(e.call(t,n[i],i,n))return n[i]}}function xt(n){if(!n)return[];if(Object.keys)return Object.keys(n);var e=[];for(var t in n)n.hasOwnProperty(t)&&e.push(t);return e}function uk(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return n.apply(e,t.concat(Jh.call(arguments)))}}var X=Rl&&$(Rl.bind)?Rl.call.bind(Rl.bind):uk;function at(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return n.apply(this,e.concat(Jh.call(arguments)))}}function B(n){return Array.isArray?Array.isArray(n):Cr.call(n)==="[object Array]"}function $(n){return typeof n=="function"}function U(n){return typeof n=="string"}function zl(n){return Cr.call(n)==="[object String]"}function Ct(n){return typeof n=="number"}function K(n){var e=typeof n;return e==="function"||!!n&&e==="object"}function Tm(n){return!!Mm[Cr.call(n)]}function Ne(n){return!!Im[Cr.call(n)]}function Dr(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Bl(n){return n.colorStops!=null}function ck(n){return n.image!=null}function Am(n){return Cr.call(n)==="[object RegExp]"}function co(n){return n!==n}function Kt(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=0,i=n.length;t<i;t++)if(n[t]!=null)return n[t]}function ut(n,e){return n??e}function Ze(n,e,t){return n??e??t}function ep(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Jh.apply(n,e)}function np(n){if(typeof n=="number")return[n,n,n,n];var e=n.length;return e===2?[n[0],n[1],n[0],n[1]]:e===3?[n[0],n[1],n[2],n[1]]:n}function J(n,e){if(!n)throw new Error(e)}function yn(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var km="__ec_primitive__";function Gl(n){n[km]=!0}function Ga(n){return n[km]}var hk=function(){function n(){this.data={}}return n.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},n.prototype.has=function(e){return this.data.hasOwnProperty(e)},n.prototype.get=function(e){return this.data[e]},n.prototype.set=function(e,t){return this.data[e]=t,this},n.prototype.keys=function(){return xt(this.data)},n.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},n}(),Lm=typeof Map=="function";function pk(){return Lm?new Map:new hk}var dk=function(){function n(e){var t=B(e);this.data=pk();var i=this;e instanceof n?e.each(o):e&&C(e,o);function o(r,a){t?i.set(r,a):i.set(a,r)}}return n.prototype.hasKey=function(e){return this.data.has(e)},n.prototype.get=function(e){return this.data.get(e)},n.prototype.set=function(e,t){return this.data.set(e,t),t},n.prototype.each=function(e,t){this.data.forEach(function(i,o){e.call(t,i,o)})},n.prototype.keys=function(){var e=this.data.keys();return Lm?Array.from(e):e},n.prototype.removeKey=function(e){this.data.delete(e)},n}();function j(n){return new dk(n)}function Fl(n,e){for(var t=new n.constructor(n.length+e.length),i=0;i<n.length;i++)t[i]=n[i];for(var o=n.length,i=0;i<e.length;i++)t[i+o]=e[i];return t}function Hl(n,e){var t;if(Object.create)t=Object.create(n);else{var i=function(){};i.prototype=n,t=new i}return e&&R(t,e),t}function Nm(n){var e=n.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Y(n,e){return n.hasOwnProperty(e)}function jt(){}var Wl=180/Math.PI;/*! *****************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation.
|
|
16
|
+
|
|
17
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
+
purpose with or without fee is hereby granted.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
+
***************************************************************************** */var ip=function(n,e){return ip=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])},ip(n,e)};function zt(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ip(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ho(n,e){return n==null&&(n=0),e==null&&(e=0),[n,e]}function Se(n,e){return n[0]=e[0],n[1]=e[1],n}function ni(n){return[n[0],n[1]]}function fk(n,e,t){return n[0]=e,n[1]=t,n}function Em(n,e,t){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n}function op(n,e,t,i){return n[0]=e[0]+t[0]*i,n[1]=e[1]+t[1]*i,n}function po(n,e,t){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n}function rp(n){return Math.sqrt(gk(n))}function gk(n){return n[0]*n[0]+n[1]*n[1]}function Ul(n,e,t){return n[0]=e[0]*t,n[1]=e[1]*t,n}function Tr(n,e){var t=rp(e);return t===0?(n[0]=0,n[1]=0):(n[0]=e[0]/t,n[1]=e[1]/t),n}function ap(n,e){return Math.sqrt((n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1]))}var Di=ap;function vk(n,e){return(n[0]-e[0])*(n[0]-e[0])+(n[1]-e[1])*(n[1]-e[1])}var fo=vk;function Yl(n,e,t,i){return n[0]=e[0]+i*(t[0]-e[0]),n[1]=e[1]+i*(t[1]-e[1]),n}function ce(n,e,t){var i=e[0],o=e[1];return n[0]=t[0]*i+t[2]*o+t[4],n[1]=t[1]*i+t[3]*o+t[5],n}function Ti(n,e,t){return n[0]=Math.min(e[0],t[0]),n[1]=Math.min(e[1],t[1]),n}function Ai(n,e,t){return n[0]=Math.max(e[0],t[0]),n[1]=Math.max(e[1],t[1]),n}var Ar=function(){function n(e,t){this.target=e,this.topTarget=t&&t.topTarget}return n}(),yk=function(){function n(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return n.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Ar(t,e),"dragstart",e.event))},n.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,o=e.offsetY,r=i-this._x,a=o-this._y;this._x=i,this._y=o,t.drift(r,a,e),this.handler.dispatchToElement(new Ar(t,e),"drag",e.event);var s=this.handler.findHover(i,o,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Ar(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Ar(s,e),"dragenter",e.event))}},n.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Ar(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Ar(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},n}();const mk=yk;var xk=function(){function n(e){e&&(this._$eventProcessor=e)}return n.prototype.on=function(e,t,i,o){this._$handlers||(this._$handlers={});var r=this._$handlers;if(typeof t=="function"&&(o=i,i=t,t=null),!i||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),r[e]||(r[e]=[]);for(var s=0;s<r[e].length;s++)if(r[e][s].h===i)return this;var l={h:i,query:t,ctx:o||this,callAtLast:i.zrEventfulCallAtLast},u=r[e].length-1,c=r[e][u];return c&&c.callAtLast?r[e].splice(u,0,l):r[e].push(l),this},n.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},n.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var o=[],r=0,a=i[e].length;r<a;r++)i[e][r].h!==t&&o.push(i[e][r]);i[e]=o}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},n.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=o.length,l=0;l<s;l++){var u=o[l];if(!(r&&r.filter&&u.query!=null&&!r.filter(e,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},n.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var o=this._$handlers[e],r=this._$eventProcessor;if(o)for(var a=t.length,s=t[a-1],l=o.length,u=0;u<l;u++){var c=o[u];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,a-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},n}();const je=xk;var _k=Math.log(2);function sp(n,e,t,i,o,r){var a=i+"-"+o,s=n.length;if(r.hasOwnProperty(a))return r[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~o)/_k);return n[t][l]}for(var u=i|1<<t,c=t+1;i&1<<c;)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&o||(h+=(d%2?-1:1)*n[t][p]*sp(n,e-1,c,u,o|f,r),d++)}return r[a]=h,h}function Om(n,e){var t=[[n[0],n[1],1,0,0,0,-e[0]*n[0],-e[0]*n[1]],[0,0,0,n[0],n[1],1,-e[1]*n[0],-e[1]*n[1]],[n[2],n[3],1,0,0,0,-e[2]*n[2],-e[2]*n[3]],[0,0,0,n[2],n[3],1,-e[3]*n[2],-e[3]*n[3]],[n[4],n[5],1,0,0,0,-e[4]*n[4],-e[4]*n[5]],[0,0,0,n[4],n[5],1,-e[5]*n[4],-e[5]*n[5]],[n[6],n[7],1,0,0,0,-e[6]*n[6],-e[6]*n[7]],[0,0,0,n[6],n[7],1,-e[7]*n[6],-e[7]*n[7]]],i={},o=sp(t,8,0,0,0,i);if(o!==0){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)r[s]==null&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*sp(t,7,a===0?1:0,1<<a,1<<s,i)/o*e[a];return function(l,u,c){var h=u*r[6]+c*r[7]+1;l[0]=(u*r[0]+c*r[1]+r[2])/h,l[1]=(u*r[3]+c*r[4]+r[5])/h}}}var Pm="___zrEVENTSAVED",lp=[];function bk(n,e,t,i,o){return up(lp,e,i,o,!0)&&up(n,t,lp[0],lp[1])}function up(n,e,t,i,o){if(e.getBoundingClientRect&&St.domSupported&&!Vm(e)){var r=e[Pm]||(e[Pm]={}),a=wk(e,r),s=Sk(a,r,o);if(s)return s(n,t,i),!0}return!1}function wk(n,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),n.appendChild(a),t.push(a)}return t}function Sk(n,e,t){for(var i=t?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=n[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&r&&p===r[h]&&d===r[h+1],s.push(n[u].offsetLeft,n[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=t?Om(s,a):Om(a,s))}function Vm(n){return n.nodeName.toUpperCase()==="CANVAS"}var Mk=/([&<>"'])/g,Ik={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ee(n){return n==null?"":(n+"").replace(Mk,function(e,t){return Ik[t]})}var Ck=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cp=[],Dk=St.browser.firefox&&+St.browser.version.split(".")[0]<39;function hp(n,e,t,i){return t=t||{},i?Rm(n,e,t):Dk&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Rm(n,e,t),t}function Rm(n,e,t){if(St.domSupported&&n.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(Vm(n)){var r=n.getBoundingClientRect();t.zrX=i-r.left,t.zrY=o-r.top;return}else if(up(cp,n,i,o)){t.zrX=cp[0],t.zrY=cp[1];return}}t.zrX=t.zrY=0}function pp(n){return n||window.event}function qe(n,e,t){if(e=pp(e),e.zrX!=null)return e;var i=e.type,o=i&&i.indexOf("touch")>=0;if(o){var r=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];r&&hp(n,r,e,t)}else{hp(n,e,e,t);var a=Tk(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Ck.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function Tk(n){var e=n.wheelDelta;if(e)return e;var t=n.deltaX,i=n.deltaY;if(t==null||i==null)return e;var o=Math.abs(i!==0?i:t),r=i>0?-1:i<0?1:t>0?-1:1;return 3*o*r}function dp(n,e,t,i){n.addEventListener(e,t,i)}function Ak(n,e,t,i){n.removeEventListener(e,t,i)}var ii=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function zm(n){return n.which===2||n.which===3}var kk=function(){function n(){this._track=[]}return n.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(e,t,i){var o=e.touches;if(o){for(var r={points:[],touches:[],target:t,event:e},a=0,s=o.length;a<s;a++){var l=o[a],u=hp(i,l,{});r.points.push([u.zrX,u.zrY]),r.touches.push(l)}this._track.push(r)}},n.prototype._recognize=function(e){for(var t in fp)if(fp.hasOwnProperty(t)){var i=fp[t](this._track,e);if(i)return i}},n}();function Bm(n){var e=n[1][0]-n[0][0],t=n[1][1]-n[0][1];return Math.sqrt(e*e+t*t)}function Lk(n){return[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]}var fp={pinch:function(n,e){var t=n.length;if(t){var i=(n[t-1]||{}).points,o=(n[t-2]||{}).points||i;if(o&&o.length>1&&i&&i.length>1){var r=Bm(i)/Bm(o);!isFinite(r)&&(r=1),e.pinchScale=r;var a=Lk(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:n[0].target,event:e}}}}};function $e(){return[1,0,0,1,0,0]}function Xl(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function gp(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4],n[5]=e[5],n}function oi(n,e,t){var i=e[0]*t[0]+e[2]*t[1],o=e[1]*t[0]+e[3]*t[1],r=e[0]*t[2]+e[2]*t[3],a=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return n[0]=i,n[1]=o,n[2]=r,n[3]=a,n[4]=s,n[5]=l,n}function En(n,e,t){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n[4]=e[4]+t[0],n[5]=e[5]+t[1],n}function go(n,e,t){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(t),c=Math.cos(t);return n[0]=i*c+a*u,n[1]=-i*u+a*c,n[2]=o*c+s*u,n[3]=-o*u+c*s,n[4]=c*r+u*l,n[5]=c*l-u*r,n}function vp(n,e,t){var i=t[0],o=t[1];return n[0]=e[0]*i,n[1]=e[1]*o,n[2]=e[2]*i,n[3]=e[3]*o,n[4]=e[4]*i,n[5]=e[5]*o,n}function kr(n,e){var t=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],l=t*a-r*i;return l?(l=1/l,n[0]=a*l,n[1]=-r*l,n[2]=-i*l,n[3]=t*l,n[4]=(i*s-a*o)*l,n[5]=(r*o-t*s)*l,n):null}function Nk(n){var e=$e();return gp(e,n),e}var Ek=function(){function n(e,t){this.x=e||0,this.y=t||0}return n.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(e,t){return this.x=e,this.y=t,this},n.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},n.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},n.prototype.scale=function(e){this.x*=e,this.y*=e},n.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},n.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},n.prototype.dot=function(e){return this.x*e.x+this.y*e.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},n.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},n.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},n.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},n.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},n.set=function(e,t,i){e.x=t,e.y=i},n.copy=function(e,t){e.x=t.x,e.y=t.y},n.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},n.lenSquare=function(e){return e.x*e.x+e.y*e.y},n.dot=function(e,t){return e.x*t.x+e.y*t.y},n.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},n.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},n.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},n.scaleAndAdd=function(e,t,i,o){e.x=t.x+i.x*o,e.y=t.y+i.y*o},n.lerp=function(e,t,i,o){var r=1-o;e.x=r*t.x+o*i.x,e.y=r*t.y+o*i.y},n}();const ct=Ek;var Zl=Math.min,jl=Math.max,vo=new ct,yo=new ct,mo=new ct,xo=new ct,Fa=new ct,Ha=new ct,Ok=function(){function n(e,t,i,o){i<0&&(e=e+i,i=-i),o<0&&(t=t+o,o=-o),this.x=e,this.y=t,this.width=i,this.height=o}return n.prototype.union=function(e){var t=Zl(e.x,this.x),i=Zl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=jl(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=jl(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},n.prototype.applyTransform=function(e){n.applyTransform(this,this,e)},n.prototype.calculateTransform=function(e){var t=this,i=e.width/t.width,o=e.height/t.height,r=$e();return En(r,r,[-t.x,-t.y]),vp(r,r,[i,o]),En(r,r,[e.x,e.y]),r},n.prototype.intersect=function(e,t){if(!e)return!1;e instanceof n||(e=n.create(e));var i=this,o=i.x,r=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,p=!(r<l||u<o||s<c||h<a);if(t){var d=1/0,f=0,g=Math.abs(r-l),v=Math.abs(u-o),y=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,v),_=Math.min(y,m);r<l||u<o?x>f&&(f=x,g<v?ct.set(Ha,-g,0):ct.set(Ha,v,0)):x<d&&(d=x,g<v?ct.set(Fa,g,0):ct.set(Fa,-v,0)),s<c||h<a?_>f&&(f=_,y<m?ct.set(Ha,0,-y):ct.set(Ha,0,m)):x<d&&(d=x,y<m?ct.set(Fa,0,y):ct.set(Fa,0,-m))}return t&&ct.copy(t,p?Fa:Ha),p},n.prototype.contain=function(e,t){var i=this;return e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(e){n.copy(this,e)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(e){return new n(e.x,e.y,e.width,e.height)},n.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},n.applyTransform=function(e,t,i){if(!i){e!==t&&n.copy(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var o=i[0],r=i[3],a=i[4],s=i[5];e.x=t.x*o+a,e.y=t.y*r+s,e.width=t.width*o,e.height=t.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}vo.x=mo.x=t.x,vo.y=xo.y=t.y,yo.x=xo.x=t.x+t.width,yo.y=mo.y=t.y+t.height,vo.transform(i),xo.transform(i),yo.transform(i),mo.transform(i),e.x=Zl(vo.x,yo.x,mo.x,xo.x),e.y=Zl(vo.y,yo.y,mo.y,xo.y);var l=jl(vo.x,yo.x,mo.x,xo.x),u=jl(vo.y,yo.y,mo.y,xo.y);e.width=l-e.x,e.height=u-e.y},n}();const pt=Ok;var Gm="silent";function Pk(n,e,t){return{type:n,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Vk}}function Vk(){ii(this.event)}var Rk=function(n){zt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(je),Wa=function(){function n(e,t){this.x=e,this.y=t}return n}(),zk=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],yp=new pt(0,0,0,0),Fm=function(n){zt(e,n);function e(t,i,o,r,a){var s=n.call(this)||this;return s._hovered=new Wa(0,0),s.storage=t,s.painter=i,s.painterRoot=r,s._pointerSize=a,o=o||new Rk,s.proxy=null,s.setHandlerProxy(o),s._draggingMgr=new mk(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(C(zk,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,o=t.zrY,r=Wm(this,i,o),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=r?new Wa(i,o):this.findHover(i,o),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Wa(0,0)},e.prototype.dispatch=function(t,i){var o=this[t];o&&o.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,o){t=t||{};var r=t.target;if(!(r&&r.silent)){for(var a="on"+i,s=Pk(i,t,o);r&&(r[a]&&(s.cancelBubble=!!r[a].call(r,s)),r.trigger(i,s),r=r.__hostTarget?r.__hostTarget:r.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,o){var r=this.storage.getDisplayList(),a=new Wa(t,i);if(Hm(r,a,t,i,o),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new pt(t-u,i-u,l,l),h=r.length-1;h>=0;h--){var p=r[h];p!==o&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(yp.copy(p.getBoundingRect()),p.transform&&yp.applyTransform(p.transform),yp.intersect(c)&&s.push(p))}if(s.length)for(var d=4,f=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=d)for(var y=0;y<g;y+=f){var m=t+v*Math.cos(y),x=i+v*Math.sin(y);if(Hm(s,a,m,x,o),a.target)return a}}return a},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new kk);var o=this._gestureMgr;i==="start"&&o.clear();var r=o.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&o.clear(),r){var a=r.type;t.gestureEvent=a;var s=new Wa;s.target=r.target,this.dispatchToElement(s,a,r.event)}},e}(je);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Fm.prototype[n]=function(e){var t=e.zrX,i=e.zrY,o=Wm(this,t,i),r,a;if((n!=="mouseup"||!o)&&(r=this.findHover(t,i),a=r.target),n==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(n==="mouseup")this._upEl=a;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Di(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(r,n,e)}});function Bk(n,e,t){if(n[n.rectHover?"rectContain":"contain"](e,t)){for(var i=n,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,t))return!1;i.silent&&(o=!0)}var s=i.__hostTarget;i=s||i.parent}return o?Gm:!0}return!1}function Hm(n,e,t,i,o){for(var r=n.length-1;r>=0;r--){var a=n[r],s=void 0;if(a!==o&&!a.ignore&&(s=Bk(a,t,i))&&(!e.topTarget&&(e.topTarget=a),s!==Gm)){e.target=a;break}}}function Wm(n,e,t){var i=n.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}const Gk=Fm;var Um=32,Ua=7;function Fk(n){for(var e=0;n>=Um;)e|=n&1,n>>=1;return n+e}function Ym(n,e,t,i){var o=e+1;if(o===t)return 1;if(i(n[o++],n[e])<0){for(;o<t&&i(n[o],n[o-1])<0;)o++;Hk(n,e,o)}else for(;o<t&&i(n[o],n[o-1])>=0;)o++;return o-e}function Hk(n,e,t){for(t--;e<t;){var i=n[e];n[e++]=n[t],n[t--]=i}}function Xm(n,e,t,i,o){for(i===e&&i++;i<t;i++){for(var r=n[i],a=e,s=i,l;a<s;)l=a+s>>>1,o(r,n[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:n[a+3]=n[a+2];case 2:n[a+2]=n[a+1];case 1:n[a+1]=n[a];break;default:for(;u>0;)n[a+u]=n[a+u-1],u--}n[a]=r}}function mp(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])>0){for(s=i-o;l<s&&r(n,e[t+o+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(n,e[t+o-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}for(a++;a<l;){var c=a+(l-a>>>1);r(n,e[t+c])>0?a=c+1:l=c}return l}function xp(n,e,t,i,o,r){var a=0,s=0,l=1;if(r(n,e[t+o])<0){for(s=o+1;l<s&&r(n,e[t+o-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=o-l,l=o-u}else{for(s=i-o;l<s&&r(n,e[t+o+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;a<l;){var c=a+(l-a>>>1);r(n,e[t+c])<0?l=c:a=c+1}return l}function Wk(n,e){var t=Ua,i,o,r=0;n.length;var a=[];i=[],o=[];function s(d,f){i[r]=d,o[r]=f,r+=1}function l(){for(;r>1;){var d=r-2;if(d>=1&&o[d-1]<=o[d]+o[d+1]||d>=2&&o[d-2]<=o[d]+o[d-1])o[d-1]<o[d+1]&&d--;else if(o[d]>o[d+1])break;c(d)}}function u(){for(;r>1;){var d=r-2;d>0&&o[d-1]<o[d+1]&&d--,c(d)}}function c(d){var f=i[d],g=o[d],v=i[d+1],y=o[d+1];o[d]=g+y,d===r-3&&(i[d+1]=i[d+2],o[d+1]=o[d+2]),r--;var m=xp(n[v],n,f,g,0,e);f+=m,g-=m,g!==0&&(y=mp(n[f+g-1],n,v,y,y-1,e),y!==0&&(g<=y?h(f,g,v,y):p(f,g,v,y)))}function h(d,f,g,v){var y=0;for(y=0;y<f;y++)a[y]=n[d+y];var m=0,x=g,_=d;if(n[_++]=n[x++],--v===0){for(y=0;y<f;y++)n[_+y]=a[m+y];return}if(f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m];return}for(var w=t,b,S,M;;){b=0,S=0,M=!1;do if(e(n[x],a[m])<0){if(n[_++]=n[x++],S++,b=0,--v===0){M=!0;break}}else if(n[_++]=a[m++],b++,S=0,--f===1){M=!0;break}while((b|S)<w);if(M)break;do{if(b=xp(n[x],a,m,f,0,e),b!==0){for(y=0;y<b;y++)n[_+y]=a[m+y];if(_+=b,m+=b,f-=b,f<=1){M=!0;break}}if(n[_++]=n[x++],--v===0){M=!0;break}if(S=mp(a[m],n,x,v,0,e),S!==0){for(y=0;y<S;y++)n[_+y]=n[x+y];if(_+=S,x+=S,v-=S,v===0){M=!0;break}}if(n[_++]=a[m++],--f===1){M=!0;break}w--}while(b>=Ua||S>=Ua);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),f===1){for(y=0;y<v;y++)n[_+y]=n[x+y];n[_+v]=a[m]}else{if(f===0)throw new Error;for(y=0;y<f;y++)n[_+y]=a[m+y]}}function p(d,f,g,v){var y=0;for(y=0;y<v;y++)a[y]=n[g+y];var m=d+f-1,x=v-1,_=g+v-1,w=0,b=0;if(n[_--]=n[m--],--f===0){for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y];return}if(v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x];return}for(var S=t;;){var M=0,I=0,D=!1;do if(e(a[x],n[m])<0){if(n[_--]=n[m--],M++,I=0,--f===0){D=!0;break}}else if(n[_--]=a[x--],I++,M=0,--v===1){D=!0;break}while((M|I)<S);if(D)break;do{if(M=f-xp(a[x],n,d,f,f-1,e),M!==0){for(_-=M,m-=M,f-=M,b=_+1,w=m+1,y=M-1;y>=0;y--)n[b+y]=n[w+y];if(f===0){D=!0;break}}if(n[_--]=a[x--],--v===1){D=!0;break}if(I=v-mp(n[m],a,0,v,v-1,e),I!==0){for(_-=I,x-=I,v-=I,b=_+1,w=x+1,y=0;y<I;y++)n[b+y]=a[w+y];if(v<=1){D=!0;break}}if(n[_--]=n[m--],--f===0){D=!0;break}S--}while(M>=Ua||I>=Ua);if(D)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),v===1){for(_-=f,m-=f,b=_+1,w=m+1,y=f-1;y>=0;y--)n[b+y]=n[w+y];n[_]=a[x]}else{if(v===0)throw new Error;for(w=_-(v-1),y=0;y<v;y++)n[w+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ql(n,e,t,i){t||(t=0),i||(i=n.length);var o=i-t;if(!(o<2)){var r=0;if(o<Um){r=Ym(n,t,i,e),Xm(n,t,i,t+r,e);return}var a=Wk(n,e),s=Fk(o);do{if(r=Ym(n,t,i,e),r<s){var l=o;l>s&&(l=s),Xm(n,t,t+l,t+r,e),r=l}a.pushRun(t,r),a.mergeRuns(),o-=r,t+=r}while(o!==0);a.forceMergeRuns()}}var He=1,Ya=2,Lr=4,Zm=!1;function _p(){Zm||(Zm=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function jm(n,e){return n.zlevel===e.zlevel?n.z===e.z?n.z2-e.z2:n.z-e.z:n.zlevel-e.zlevel}var Uk=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=jm}return n.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},n.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},n.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,o=0,r=t.length;o<r;o++)this._updateAndAddDisplayable(t[o],null,e);i.length=this._displayListLen,ql(i,jm)},n.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var o=e.getClipPath();if(e.ignoreClip)t=null;else if(o){t?t=t.slice():t=[];for(var r=o,a=e;r;)r.parent=a,r.updateTransform(),t.push(r),a=r,r=r.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=He),this._updateAndAddDisplayable(u,t,i)}e.__dirty=0}else{var c=e;t&&t.length?c.__clipPaths=t:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(_p(),c.z=0),isNaN(c.z2)&&(_p(),c.z2=0),isNaN(c.zlevel)&&(_p(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,i);var p=e.getTextGuideLine();p&&this._updateAndAddDisplayable(p,t,i);var d=e.getTextContent();d&&this._updateAndAddDisplayable(d,t,i)}},n.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},n.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var o=dt(this._roots,e);o>=0&&this._roots.splice(o,1)},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const Yk=Uk;var qm;qm=St.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};const bp=qm;var $l={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(-Math.pow(2,-10*(n-1))+2)},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)))},elasticOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*n)*Math.sin((n-e)*(2*Math.PI)/i)+1)},elasticInOut:function(n){var e,t=.1,i=.4;return n===0?0:n===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(n*=2)<1?-.5*(t*Math.pow(2,10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(n-=1))*Math.sin((n-e)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var e=1.70158;return n*n*((e+1)*n-e)},backOut:function(n){var e=1.70158;return--n*n*((e+1)*n+e)+1},backInOut:function(n){var e=2.5949095;return(n*=2)<1?.5*(n*n*((e+1)*n-e)):.5*((n-=2)*n*((e+1)*n+e)+2)},bounceIn:function(n){return 1-$l.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?$l.bounceIn(n*2)*.5:$l.bounceOut(n*2-1)*.5+.5}};const $m=$l;var Kl=Math.pow,ki=Math.sqrt,Jl=1e-8,Km=1e-4,Jm=ki(3),Ql=1/3,On=ho(),Ke=ho(),Nr=ho();function Li(n){return n>-Jl&&n<Jl}function Qm(n){return n>Jl||n<-Jl}function oe(n,e,t,i,o){var r=1-o;return r*r*(r*n+3*o*e)+o*o*(o*i+3*r*t)}function t0(n,e,t,i,o){var r=1-o;return 3*(((e-n)*r+2*(t-e)*o)*r+(i-t)*o*o)}function tu(n,e,t,i,o,r){var a=i+3*(e-t)-n,s=3*(t-e*2+n),l=3*(e-n),u=n-o,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Li(c)&&Li(h))if(Li(s))r[0]=0;else{var f=-l/s;f>=0&&f<=1&&(r[d++]=f)}else{var g=h*h-4*c*p;if(Li(g)){var v=h/c,f=-s/a+v,y=-v/2;f>=0&&f<=1&&(r[d++]=f),y>=0&&y<=1&&(r[d++]=y)}else if(g>0){var m=ki(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);x<0?x=-Kl(-x,Ql):x=Kl(x,Ql),_<0?_=-Kl(-_,Ql):_=Kl(_,Ql);var f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(r[d++]=f)}else{var w=(2*c*s-3*a*h)/(2*ki(c*c*c)),b=Math.acos(w)/3,S=ki(c),M=Math.cos(b),f=(-s-2*S*M)/(3*a),y=(-s+S*(M+Jm*Math.sin(b)))/(3*a),I=(-s+S*(M-Jm*Math.sin(b)))/(3*a);f>=0&&f<=1&&(r[d++]=f),y>=0&&y<=1&&(r[d++]=y),I>=0&&I<=1&&(r[d++]=I)}}return d}function e0(n,e,t,i,o){var r=6*t-12*e+6*n,a=9*e+3*i-3*n-9*t,s=3*e-3*n,l=0;if(Li(a)){if(Qm(r)){var u=-s/r;u>=0&&u<=1&&(o[l++]=u)}}else{var c=r*r-4*a*s;if(Li(c))o[0]=-r/(2*a);else if(c>0){var h=ki(c),u=(-r+h)/(2*a),p=(-r-h)/(2*a);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function Ni(n,e,t,i,o,r){var a=(e-n)*o+n,s=(t-e)*o+e,l=(i-t)*o+t,u=(s-a)*o+a,c=(l-s)*o+s,h=(c-u)*o+u;r[0]=n,r[1]=a,r[2]=u,r[3]=h,r[4]=h,r[5]=c,r[6]=l,r[7]=i}function n0(n,e,t,i,o,r,a,s,l,u,c){var h,p=.005,d=1/0,f,g,v,y;On[0]=l,On[1]=u;for(var m=0;m<1;m+=.05)Ke[0]=oe(n,t,o,a,m),Ke[1]=oe(e,i,r,s,m),v=fo(On,Ke),v<d&&(h=m,d=v);d=1/0;for(var x=0;x<32&&!(p<Km);x++)f=h-p,g=h+p,Ke[0]=oe(n,t,o,a,f),Ke[1]=oe(e,i,r,s,f),v=fo(Ke,On),f>=0&&v<d?(h=f,d=v):(Nr[0]=oe(n,t,o,a,g),Nr[1]=oe(e,i,r,s,g),y=fo(Nr,On),g<=1&&y<d?(h=g,d=y):p*=.5);return c&&(c[0]=oe(n,t,o,a,h),c[1]=oe(e,i,r,s,h)),ki(d)}function Xk(n,e,t,i,o,r,a,s,l){for(var u=n,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=oe(n,t,o,a,f),v=oe(e,i,r,s,f),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function le(n,e,t,i){var o=1-i;return o*(o*n+2*i*e)+i*i*t}function wp(n,e,t,i){return 2*((1-i)*(e-n)+i*(t-e))}function Zk(n,e,t,i,o){var r=n-2*e+t,a=2*(e-n),s=n-i,l=0;if(Li(r)){if(Qm(a)){var u=-s/a;u>=0&&u<=1&&(o[l++]=u)}}else{var c=a*a-4*r*s;if(Li(c)){var u=-a/(2*r);u>=0&&u<=1&&(o[l++]=u)}else if(c>0){var h=ki(c),u=(-a+h)/(2*r),p=(-a-h)/(2*r);u>=0&&u<=1&&(o[l++]=u),p>=0&&p<=1&&(o[l++]=p)}}return l}function i0(n,e,t){var i=n+t-2*e;return i===0?.5:(n-e)/i}function Xa(n,e,t,i,o){var r=(e-n)*i+n,a=(t-e)*i+e,s=(a-r)*i+r;o[0]=n,o[1]=r,o[2]=s,o[3]=s,o[4]=a,o[5]=t}function o0(n,e,t,i,o,r,a,s,l){var u,c=.005,h=1/0;On[0]=a,On[1]=s;for(var p=0;p<1;p+=.05){Ke[0]=le(n,t,o,p),Ke[1]=le(e,i,r,p);var d=fo(On,Ke);d<h&&(u=p,h=d)}h=1/0;for(var f=0;f<32&&!(c<Km);f++){var g=u-c,v=u+c;Ke[0]=le(n,t,o,g),Ke[1]=le(e,i,r,g);var d=fo(Ke,On);if(g>=0&&d<h)u=g,h=d;else{Nr[0]=le(n,t,o,v),Nr[1]=le(e,i,r,v);var y=fo(Nr,On);v<=1&&y<h?(u=v,h=y):c*=.5}}return l&&(l[0]=le(n,t,o,u),l[1]=le(e,i,r,u)),ki(h)}function jk(n,e,t,i,o,r,a){for(var s=n,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=le(n,t,o,p),f=le(e,i,r,p),g=d-s,v=f-l;u+=Math.sqrt(g*g+v*v),s=d,l=f}return u}var qk=/cubic-bezier\(([0-9,\.e ]+)\)/;function Sp(n){var e=n&&qk.exec(n);if(e){var t=e[1].split(","),i=+yn(t[0]),o=+yn(t[1]),r=+yn(t[2]),a=+yn(t[3]);if(isNaN(i+o+r+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:tu(0,i,r,1,l,s)&&oe(0,o,a,1,s[0])}}}var $k=function(){function n(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||jt,this.ondestroy=e.ondestroy||jt,this.onrestart=e.onrestart||jt,e.easing&&this.setEasing(e.easing)}return n.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,o=e-this._startTime-this._pausedTime,r=o/i;r<0&&(r=0),r=Math.min(r,1);var a=this.easingFunc,s=a?a(r):r;if(this.onframe(s),r===1)if(this.loop){var l=o%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(e){this.easing=e,this.easingFunc=$(e)?e:$m[e]||Sp(e)},n}();const Kk=$k;var r0=function(){function n(e){this.value=e}return n}(),Jk=function(){function n(){this._len=0}return n.prototype.insert=function(e){var t=new r0(e);return this.insertEntry(t),t},n.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++},n.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),Qk=function(){function n(e){this._list=new Jk,this._maxSize=10,this._map={},this._maxSize=e}return n.prototype.put=function(e,t){var i=this._list,o=this._map,r=null;if(o[e]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete o[l.key],r=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r0(t),s.key=e,i.insertEntry(s),o[e]=s}return r},n.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const Za=Qk;var a0={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 mn(n){return n=Math.round(n),n<0?0:n>255?255:n}function tL(n){return n=Math.round(n),n<0?0:n>360?360:n}function ja(n){return n<0?0:n>1?1:n}function Mp(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?mn(parseFloat(e)/100*255):mn(parseInt(e,10))}function _o(n){var e=n;return e.length&&e.charAt(e.length-1)==="%"?ja(parseFloat(e)/100):ja(parseFloat(e))}function Ip(n,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?n+(e-n)*t*6:t*2<1?e:t*3<2?n+(e-n)*(2/3-t)*6:n}function Ei(n,e,t){return n+(e-n)*t}function Je(n,e,t,i,o){return n[0]=e,n[1]=t,n[2]=i,n[3]=o,n}function Cp(n,e){return n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=e[3],n}var s0=new Za(20),eu=null;function Er(n,e){eu&&Cp(eu,e),eu=s0.put(n,eu||e.slice())}function We(n,e){if(n){e=e||[];var t=s0.get(n);if(t)return Cp(e,t);n=n+"";var i=n.replace(/ /g,"").toLowerCase();if(i in a0)return Cp(e,a0[i]),Er(n,e),e;var o=i.length;if(i.charAt(0)==="#"){if(o===4||o===5){var r=parseInt(i.slice(1,4),16);if(!(r>=0&&r<=4095)){Je(e,0,0,0,1);return}return Je(e,(r&3840)>>4|(r&3840)>>8,r&240|(r&240)>>4,r&15|(r&15)<<4,o===5?parseInt(i.slice(4),16)/15:1),Er(n,e),e}else if(o===7||o===9){var r=parseInt(i.slice(1,7),16);if(!(r>=0&&r<=16777215)){Je(e,0,0,0,1);return}return Je(e,(r&16711680)>>16,(r&65280)>>8,r&255,o===9?parseInt(i.slice(7),16)/255:1),Er(n,e),e}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Je(e,+u[0],+u[1],+u[2],1):Je(e,0,0,0,1);c=_o(u.pop());case"rgb":if(u.length>=3)return Je(e,Mp(u[0]),Mp(u[1]),Mp(u[2]),u.length===3?c:_o(u[3])),Er(n,e),e;Je(e,0,0,0,1);return;case"hsla":if(u.length!==4){Je(e,0,0,0,1);return}return u[3]=_o(u[3]),Dp(u,e),Er(n,e),e;case"hsl":if(u.length!==3){Je(e,0,0,0,1);return}return Dp(u,e),Er(n,e),e;default:return}}Je(e,0,0,0,1)}}function Dp(n,e){var t=(parseFloat(n[0])%360+360)%360/360,i=_o(n[1]),o=_o(n[2]),r=o<=.5?o*(i+1):o+i-o*i,a=o*2-r;return e=e||[],Je(e,mn(Ip(a,r,t+1/3)*255),mn(Ip(a,r,t)*255),mn(Ip(a,r,t-1/3)*255),1),n.length===4&&(e[3]=n[3]),e}function eL(n){if(n){var e=n[0]/255,t=n[1]/255,i=n[2]/255,o=Math.min(e,t,i),r=Math.max(e,t,i),a=r-o,s=(r+o)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(r+o):u=a/(2-r-o);var c=((r-e)/6+a/2)/a,h=((r-t)/6+a/2)/a,p=((r-i)/6+a/2)/a;e===r?l=p-h:t===r?l=1/3+c-p:i===r&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var d=[l*360,u,s];return n[3]!=null&&d.push(n[3]),d}}function Tp(n,e){var t=We(n);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return ri(t,t.length===4?"rgba":"rgb")}}function Ap(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){t=t||[];var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=e[o],s=e[r],l=i-o;return t[0]=mn(Ei(a[0],s[0],l)),t[1]=mn(Ei(a[1],s[1],l)),t[2]=mn(Ei(a[2],s[2],l)),t[3]=ja(Ei(a[3],s[3],l)),t}}function nL(n,e,t){if(!(!(e&&e.length)||!(n>=0&&n<=1))){var i=n*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=We(e[o]),s=We(e[r]),l=i-o,u=ri([mn(Ei(a[0],s[0],l)),mn(Ei(a[1],s[1],l)),mn(Ei(a[2],s[2],l)),ja(Ei(a[3],s[3],l))],"rgba");return t?{color:u,leftIndex:o,rightIndex:r,value:i}:u}}function qa(n,e,t,i){var o=We(n);if(n)return o=eL(o),e!=null&&(o[0]=tL(e)),t!=null&&(o[1]=_o(t)),i!=null&&(o[2]=_o(i)),ri(Dp(o),"rgba")}function nu(n,e){var t=We(n);if(t&&e!=null)return t[3]=ja(e),ri(t,"rgba")}function ri(n,e){if(!(!n||!n.length)){var t=n[0]+","+n[1]+","+n[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+n[3]),e+"("+t+")"}}function iu(n,e){var t=We(n);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var ou=Math.round;function $a(n){var e;if(!n||n==="transparent")n="none";else if(typeof n=="string"&&n.indexOf("rgba")>-1){var t=We(n);t&&(n="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:n,opacity:e??1}}var l0=1e-4;function Oi(n){return n<l0&&n>-l0}function ru(n){return ou(n*1e3)/1e3}function kp(n){return ou(n*1e4)/1e4}function iL(n){return"matrix("+ru(n[0])+","+ru(n[1])+","+ru(n[2])+","+ru(n[3])+","+kp(n[4])+","+kp(n[5])+")"}var oL={left:"start",right:"end",center:"middle",middle:"middle"};function rL(n,e,t){return t==="top"?n+=e/2:t==="bottom"&&(n-=e/2),n}function aL(n){return n&&(n.shadowBlur||n.shadowOffsetX||n.shadowOffsetY)}function sL(n){var e=n.style,t=n.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function u0(n){return n&&!!n.image}function lL(n){return n&&!!n.svgElement}function Lp(n){return u0(n)||lL(n)}function c0(n){return n.type==="linear"}function h0(n){return n.type==="radial"}function p0(n){return n&&(n.type==="linear"||n.type==="radial")}function au(n){return"url(#"+n+")"}function d0(n){var e=n.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function f0(n){var e=n.x||0,t=n.y||0,i=(n.rotation||0)*Wl,o=ut(n.scaleX,1),r=ut(n.scaleY,1),a=n.skewX||0,s=n.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(o!==1||r!==1)&&l.push("scale("+o+","+r+")"),(a||s)&&l.push("skew("+ou(a*Wl)+"deg, "+ou(s*Wl)+"deg)"),l.join(" ")}var uL=function(){return St.hasGlobalWindow&&$(window.btoa)?function(n){return window.btoa(unescape(encodeURIComponent(n)))}:typeof Buffer<"u"?function(n){return Buffer.from(n).toString("base64")}:function(n){return process.env.NODE_ENV!=="production"&&vn("Base64 isn't natively supported in the current environment."),null}}(),Np=Array.prototype.slice;function ai(n,e,t){return(e-n)*t+n}function Ep(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=ai(e[r],t[r],i);return n}function cL(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=ai(e[a][s],t[a][s],i)}return n}function su(n,e,t,i){for(var o=e.length,r=0;r<o;r++)n[r]=e[r]+t[r]*i;return n}function g0(n,e,t,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){n[a]||(n[a]=[]);for(var s=0;s<r;s++)n[a][s]=e[a][s]+t[a][s]*i}return n}function hL(n,e){for(var t=n.length,i=e.length,o=t>i?e:n,r=Math.min(t,i),a=o[r-1]||{color:[0,0,0,0],offset:0},s=r;s<Math.max(t,i);s++)o.push({offset:a.offset,color:a.color.slice()})}function pL(n,e,t){var i=n,o=e;if(!(!i.push||!o.push)){var r=i.length,a=o.length;if(r!==a){var s=r>a;if(s)i.length=a;else for(var l=r;l<a;l++)i.push(t===1?o[l]:Np.call(o[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=o[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=o[l][c])}}function Ka(n){if(ye(n)){var e=n.length;if(ye(n[0])){for(var t=[],i=0;i<e;i++)t.push(Np.call(n[i]));return t}return Np.call(n)}return n}function lu(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function dL(n){return ye(n&&n[0])?2:1}var uu=0,cu=1,v0=2,Ja=3,Op=4,Pp=5,y0=6;function m0(n){return n===Op||n===Pp}function hu(n){return n===cu||n===v0}var Qa=[0,0,0,0],fL=function(){function n(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var o=this.keyframes,r=o.length,a=!1,s=y0,l=t;if(ye(t)){var u=dL(t);s=u,(u===1&&!Ct(t[0])||u===2&&!Ct(t[0][0]))&&(a=!0)}else if(Ct(t)&&!co(t))s=uu;else if(U(t))if(!isNaN(+t))s=uu;else{var c=We(t);c&&(l=c,s=Ja)}else if(Bl(t)){var h=R({},l);h.colorStops=G(t.colorStops,function(d){return{offset:d.offset,color:We(d.color)}}),c0(t)?s=Op:h0(t)&&(s=Pp),l=h}r===0?this.valType=s:(s!==this.valType||s===y0)&&(a=!0),this.discrete=this.discrete||a;var p={time:e,value:l,rawValue:t,percent:0};return i&&(p.easing=i,p.easingFunc=$(i)?i:$m[i]||Sp(i)),o.push(p),p},n.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var o=this.valType,r=i.length,a=i[r-1],s=this.discrete,l=hu(o),u=m0(o),c=0;c<r;c++){var h=i[c],p=h.value,d=a.value;h.percent=h.time/e,s||(l&&c!==r-1?pL(p,d,o):u&&hL(p.colorStops,d.colorStops))}if(!s&&o!==Pp&&t&&this.needsAnimate()&&t.needsAnimate()&&o===t.valType&&!t._finished){this._additiveTrack=t;for(var f=i[0].value,c=0;c<r;c++)o===uu?i[c].additiveValue=i[c].value-f:o===Ja?i[c].additiveValue=su([],i[c].value,f,-1):hu(o)&&(i[c].additiveValue=o===cu?su([],i[c].value,f,-1):g0([],i[c].value,f,-1))}},n.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,o=i?"additiveValue":"value",r=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=r===Ja,c,h=this._lastFr,p=Math.min,d,f;if(s===1)d=f=a[0];else{if(t<0)c=0;else if(t<this._lastFrP){var g=p(h+1,s-1);for(c=g;c>=0&&!(a[c].percent<=t);c--);c=p(c,s-2)}else{for(c=h;c<s&&!(a[c].percent>t);c++);c=p(c-1,s-2)}f=a[c+1],d=a[c]}if(d&&f){this._lastFr=c,this._lastFrP=t;var v=f.percent-d.percent,y=v===0?1:p((t-d.percent)/v,1);f.easingFunc&&(y=f.easingFunc(y));var m=i?this._additiveValue:u?Qa:e[l];if((hu(r)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?d.rawValue:f.rawValue;else if(hu(r))r===cu?Ep(m,d[o],f[o],y):cL(m,d[o],f[o],y);else if(m0(r)){var x=d[o],_=f[o],w=r===Op;e[l]={type:w?"linear":"radial",x:ai(x.x,_.x,y),y:ai(x.y,_.y,y),colorStops:G(x.colorStops,function(S,M){var I=_.colorStops[M];return{offset:ai(S.offset,I.offset,y),color:lu(Ep([],S.color,I.color,y))}}),global:_.global},w?(e[l].x2=ai(x.x2,_.x2,y),e[l].y2=ai(x.y2,_.y2,y)):e[l].r=ai(x.r,_.r,y)}else if(u)Ep(m,d[o],f[o],y),i||(e[l]=lu(m));else{var b=ai(d[o],f[o],y);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},n.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,o=this._additiveValue;t===uu?e[i]=e[i]+o:t===Ja?(We(e[i],Qa),su(Qa,Qa,o,1),e[i]=lu(Qa)):t===cu?su(e[i],e[i],o,1):t===v0&&g0(e[i],e[i],o,1)},n}(),Vp=function(){function n(e,t,i,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&o){vn("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=i}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(e){this._target=e},n.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,xt(t),i)},n.prototype.whenWithKeys=function(e,t,i,o){for(var r=this._tracks,a=0;a<i.length;a++){var s=i[a],l=r[s];if(!l){l=r[s]=new fL(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,p=h[h.length-1];u=p&&p.value,c.valType===Ja&&u&&(u=lu(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ka(u),o),this._trackKeys.push(s)}l.addKeyframe(e,Ka(t[s]),o)}return this._maxTime=Math.max(this._maxTime,e),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},n.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},n.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},n.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},n.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var o=0;o<i.length;o++){var r=i[o].getTrack(e);r&&(t=r)}return t},n.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],o=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var a=this._trackKeys[r],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(o,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Kk({life:o,loop:this._loop,delay:this._delay||0,onframe:function(d){t._started=2;var f=t._additiveAnimators;if(f){for(var g=!1,v=0;v<f.length;v++)if(f[v]._clip){g=!0;break}g||(t._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(t._target,d);var y=t._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](t._target,d)},ondestroy:function(){t._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},n.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},n.prototype.delay=function(e){return this._delay=e,this},n.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},n.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},n.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(e){return this._tracks[e]},n.prototype.getTracks=function(){var e=this;return G(this._trackKeys,function(t){return e._tracks[t]})},n.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,o=this._trackKeys,r=0;r<e.length;r++){var a=i[e[r]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,r=0;r<o.length;r++)if(!i[o[r]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var o=0;o<t.length;o++){var r=t[o],a=this._tracks[r];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(e[r]=Ka(l.rawValue))}}}},n.prototype.__changeFinalValue=function(e,t){t=t||xt(e);for(var i=0;i<t.length;i++){var o=t[i],r=this._tracks[o];if(r){var a=r.keyframes;if(a.length>1){var s=a.pop();r.addKeyframe(s.time,e[o]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},n}();function Or(){return new Date().getTime()}var gL=function(n){zt(e,n);function e(t){var i=n.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,o=t.next;i?i.next=o:this._head=o,o?o.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=Or()-this._pausedTime,o=i-this._time,r=this._head;r;){var a=r.next,s=r.step(i,o);s&&(r.ondestroy(),this.removeClip(r)),r=a}this._time=i,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(bp(i),!t._paused&&t.update())}bp(i)},e.prototype.start=function(){this._running||(this._time=Or(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Or(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Or()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var o=new Vp(t,i.loop);return this.addAnimator(o),o},e}(je);const vL=gL;var yL=300,Rp=St.domSupported,zp=function(){var n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=G(n,function(o){var r=o.replace("mouse","pointer");return t.hasOwnProperty(r)?r:o});return{mouse:n,touch:e,pointer:i}}(),x0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_0=!1;function Bp(n){var e=n.pointerType;return e==="pen"||e==="touch"}function mL(n){n.touching=!0,n.touchTimer!=null&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)}function Gp(n){n&&(n.zrByTouch=!0)}function xL(n,e){return qe(n.dom,new _L(n,e),!0)}function b0(n,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===n.painterRoot);)t=t.parentNode;return i}var _L=function(){function n(e,t){this.stopPropagation=jt,this.stopImmediatePropagation=jt,this.preventDefault=jt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return n}(),xn={mousedown:function(n){n=qe(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=qe(this.dom,n);var e=this.__mayPointerCapture;e&&(n.zrX!==e[0]||n.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=qe(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){n=qe(this.dom,n);var e=n.toElement||n.relatedTarget;b0(this,e)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){_0=!0,n=qe(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){_0||(n=qe(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){n=qe(this.dom,n),Gp(n),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),xn.mousemove.call(this,n),xn.mousedown.call(this,n)},touchmove:function(n){n=qe(this.dom,n),Gp(n),this.handler.processGesture(n,"change"),xn.mousemove.call(this,n)},touchend:function(n){n=qe(this.dom,n),Gp(n),this.handler.processGesture(n,"end"),xn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<yL&&xn.click.call(this,n)},pointerdown:function(n){xn.mousedown.call(this,n)},pointermove:function(n){Bp(n)||xn.mousemove.call(this,n)},pointerup:function(n){xn.mouseup.call(this,n)},pointerout:function(n){Bp(n)||xn.mouseout.call(this,n)}};C(["click","dblclick","contextmenu"],function(n){xn[n]=function(e){e=qe(this.dom,e),this.trigger(n,e)}});var Fp={pointermove:function(n){Bp(n)||Fp.mousemove.call(this,n)},pointerup:function(n){Fp.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),e&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function bL(n,e){var t=e.domHandlers;St.pointerEventsSupported?C(zp.pointer,function(i){pu(e,i,function(o){t[i].call(n,o)})}):(St.touchEventsSupported&&C(zp.touch,function(i){pu(e,i,function(o){t[i].call(n,o),mL(e)})}),C(zp.mouse,function(i){pu(e,i,function(o){o=pp(o),e.touching||t[i].call(n,o)})}))}function wL(n,e){St.pointerEventsSupported?C(x0.pointer,t):St.touchEventsSupported||C(x0.mouse,t);function t(i){function o(r){r=pp(r),b0(n,r.target)||(r=xL(n,r),e.domHandlers[i].call(n,r))}pu(e,i,o,{capture:!0})}}function pu(n,e,t,i){n.mounted[e]=t,n.listenerOpts[e]=i,dp(n.domTarget,e,t,i)}function Hp(n){var e=n.mounted;for(var t in e)e.hasOwnProperty(t)&&Ak(n.domTarget,t,e[t],n.listenerOpts[t]);n.mounted={}}var w0=function(){function n(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return n}(),SL=function(n){zt(e,n);function e(t,i){var o=n.call(this)||this;return o.__pointerCapturing=!1,o.dom=t,o.painterRoot=i,o._localHandlerScope=new w0(t,xn),Rp&&(o._globalHandlerScope=new w0(document,Fp)),bL(o,o._localHandlerScope),o}return e.prototype.dispose=function(){Hp(this._localHandlerScope),Rp&&Hp(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Rp&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?wL(this,i):Hp(i)}},e}(je);const ML=SL;var S0=1;St.hasGlobalWindow&&(S0=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var du=S0,Wp=.4,Up="#333",Yp="#ccc",IL="#eee",M0=Xl,I0=5e-5;function bo(n){return n>I0||n<-I0}var wo=[],Pr=[],Xp=$e(),Zp=Math.abs,CL=function(){function n(){}return n.prototype.getLocalTransform=function(e){return n.getLocalTransform(this,e)},n.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},n.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},n.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},n.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},n.prototype.needLocalTransform=function(){return bo(this.rotation)||bo(this.x)||bo(this.y)||bo(this.scaleX-1)||bo(this.scaleY-1)||bo(this.skewX)||bo(this.skewY)},n.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(M0(i),this.invTransform=null);return}i=i||$e(),t?this.getLocalTransform(i):M0(i),e&&(t?oi(i,e,i):gp(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i)},n.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(wo);var i=wo[0]<0?-1:1,o=wo[1]<0?-1:1,r=((wo[0]-i)*t+i)/wo[0]||0,a=((wo[1]-o)*t+o)/wo[1]||0;e[0]*=r,e[1]*=r,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||$e(),kr(this.invTransform,e)},n.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},n.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],o=Math.atan2(e[1],e[0]),r=Math.PI/2+o-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-o,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(oi(Pr,e.invTransform,t),t=Pr);var i=this.originX,o=this.originY;(i||o)&&(Xp[4]=i,Xp[5]=o,oi(Pr,t,Xp),Pr[4]-=i,Pr[5]-=o,t=Pr),this.setLocalTransform(t)}},n.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},n.prototype.transformCoordToLocal=function(e,t){var i=[e,t],o=this.invTransform;return o&&ce(i,i,o),i},n.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],o=this.transform;return o&&ce(i,i,o),i},n.prototype.getLineScale=function(){var e=this.transform;return e&&Zp(e[0]-1)>1e-10&&Zp(e[3]-1)>1e-10?Math.sqrt(Zp(e[0]*e[3]-e[2]*e[1])):1},n.prototype.copyTransform=function(e){C0(this,e)},n.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,o=e.originY||0,r=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,h=e.y,p=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(i||o||s||l){var f=i+s,g=o+l;t[4]=-f*r-p*g*a,t[5]=-g*a-d*f*r}else t[4]=t[5]=0;return t[0]=r,t[3]=a,t[1]=d*r,t[2]=p*a,u&&go(t,t,u),t[4]+=i+c,t[5]+=o+h,t},n.initDefaultProps=function(){var e=n.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}(),n}(),Pn=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function C0(n,e){for(var t=0;t<Pn.length;t++){var i=Pn[t];n[i]=e[i]}}const si=CL;var D0={};function Ue(n,e){e=e||Ii;var t=D0[e];t||(t=D0[e]=new Za(500));var i=t.get(n);return i==null&&(i=Ci.measureText(n,e).width,t.put(n,i)),i}function T0(n,e,t,i){var o=Ue(n,e),r=fu(e),a=es(0,o,t),s=Vr(0,r,i),l=new pt(a,s,o,r);return l}function ts(n,e,t,i){var o=((n||"")+"").split(`
|
|
28
|
+
`),r=o.length;if(r===1)return T0(o[0],e,t,i);for(var a=new pt(0,0,0,0),s=0;s<o.length;s++){var l=T0(o[s],e,t,i);s===0?a.copy(l):a.union(l)}return a}function es(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function Vr(n,e,t){return t==="middle"?n-=e/2:t==="bottom"&&(n-=e),n}function fu(n){return Ue("\u56FD",n)}function _n(n,e){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*e:parseFloat(n):n}function gu(n,e,t){var i=e.position||"inside",o=e.distance!=null?e.distance:5,r=t.height,a=t.width,s=r/2,l=t.x,u=t.y,c="left",h="top";if(i instanceof Array)l+=_n(i[0],t.width),u+=_n(i[1],t.height),c=null,h=null;else switch(i){case"left":l-=o,u+=s,c="right",h="middle";break;case"right":l+=o+a,u+=s,h="middle";break;case"top":l+=a/2,u-=o,c="center",h="bottom";break;case"bottom":l+=a/2,u+=r+o,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=o,u+=s,h="middle";break;case"insideRight":l+=a-o,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=o,c="center";break;case"insideBottom":l+=a/2,u+=r-o,c="center",h="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,c="right";break;case"insideBottomLeft":l+=o,u+=r-o,h="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,c="right",h="bottom";break}return n=n||{},n.x=l,n.y=u,n.align=c,n.verticalAlign=h,n}var jp="__zr_normal__",qp=Pn.concat(["ignore"]),DL=Nn(Pn,function(n,e){return n[e]=!0,n},{ignore:!1}),Rr={},TL=new pt(0,0,0,0),$p=function(){function n(e){this.id=Dm(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return n.prototype._init=function(e){this.attr(e)},n.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=e,o[5]+=t,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,o=i.local,r=t.innerTransformable,a=void 0,s=void 0,l=!1;r.parent=o?this:null;var u=!1;if(r.copyTransform(t),i.position!=null){var c=TL;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),o||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Rr,i,c):gu(Rr,i,c),r.x=Rr.x,r.y=Rr.y,a=Rr.align,s=Rr.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var p=void 0,d=void 0;h==="center"?(p=c.width*.5,d=c.height*.5):(p=_n(h[0],c.width),d=_n(h[1],c.height)),u=!0,r.originX=-r.x+p+(o?0:c.x),r.originY=-r.y+d+(o?0:c.y)}}i.rotation!=null&&(r.rotation=i.rotation);var f=i.offset;f&&(r.x+=f[0],r.y+=f[1],u||(r.originX=-f[0],r.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,v=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==v.fill||m!==v.stroke||x!==v.autoStroke||a!==v.align||s!==v.verticalAlign)&&(l=!0,v.fill=y,v.stroke=m,v.autoStroke=x,v.align=a,v.verticalAlign=s,t.setDefaultTextStyle(v)),t.__dirty|=He,l&&t.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(e){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Yp:Up},n.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&We(t);i||(i=[255,255,255,1]);for(var o=i[3],r=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*o+(r?0:255)*(1-o);return i[3]=1,ri(i,"rgba")},n.prototype.traverse=function(e,t){},n.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},R(this.extra,t)):this[e]=t},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(K(e))for(var i=e,o=xt(i),r=0;r<o.length;r++){var a=o[r];this.attrKV(a,e[a])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var o=this.animators[i],r=o.__fromStateTransition;if(!(o.getLoop()||r&&r!==jp)){var a=o.targetName,s=a?t[a]:t;o.saveTo(s)}}},n.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,qp)},n.prototype._savePrimaryToNormal=function(e,t,i){for(var o=0;o<i.length;o++){var r=i[o];e[r]!=null&&!(r in t)&&(t[r]=this[r])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(e){return this.states[e]},n.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},n.prototype.clearStates=function(e){this.useState(jp,!1,e)},n.prototype.useState=function(e,t,i,o){var r=e===jp,a=this.hasState();if(!(!a&&r)){var s=this.currentStates,l=this.stateTransition;if(!(dt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!r&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!r){vn("State "+e+" not exists.");return}r||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||o);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,p=this._textGuide;return h&&h.useState(e,t,i,c),p&&p.useState(e,t,i,c),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~He),u}}},n.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var o=[],r=this.currentStates,a=e.length,s=a===r.length;if(s){for(var l=0;l<a;l++)if(e[l]!==r[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&o.push(c)}var h=o[a-1],p=!!(h&&h.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(o),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(e.join(","),d,this._normalState,!1,!t&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,v=this._textGuide;g&&g.useStates(e,t,p),v&&v.useStates(e,t,p),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~He)}},n.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},n.prototype.removeState=function(e){var t=dt(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},n.prototype.replaceState=function(e,t,i){var o=this.currentStates.slice(),r=dt(o,e),a=dt(o,t)>=0;r>=0?a?o.splice(r,1):o[r]=t:i&&!a&&o.push(t),this.useStates(o)},n.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},n.prototype._mergeStates=function(e){for(var t={},i,o=0;o<e.length;o++){var r=e[o];R(t,r),r.textConfig&&(i=i||{},R(i,r.textConfig))}return i&&(t.textConfig=i),t},n.prototype._applyStateObj=function(e,t,i,o,r,a){var s=!(t&&o);t&&t.textConfig?(this.textConfig=R({},o?this.textConfig:i.textConfig),R(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<qp.length;c++){var h=qp[c],p=r&&DL[h];t&&t[h]!=null?p?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!r)for(var c=0;c<this.animators.length;c++){var d=this.animators[c],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(t||i)[f]:t||i)}u&&this._transitionState(e,l,a)},n.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 t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},n.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},n.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==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 si,this._attachComponent(e),this._textContent=e,this.markRedraw()}},n.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),R(this.textConfig,e),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=He;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,i=this._textGuide;t&&(t.__inHover=e),i&&(i.__inHover=e)},n.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},n.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},n.prototype.animate=function(e,t,i){var o=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!o){vn('Property "'+e+'" is not existed in element '+this.id);return}var r=new Vp(o,t,i);return e&&(r.targetName=e),this.addAnimator(r,e),r},n.prototype.addAnimator=function(e,t){var i=this.__zr,o=this;e.during(function(){o.updateDuringAnimation(t)}).done(function(){var r=o.animators,a=dt(r,e);a>=0&&r.splice(a,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(e){this.markRedraw()},n.prototype.stopAnimation=function(e,t){for(var i=this.animators,o=i.length,r=[],a=0;a<o;a++){var s=i[a];!e||e===s.scope?s.stop(t):r.push(s)}return this.animators=r,this},n.prototype.animateTo=function(e,t,i){Kp(this,e,t,i)},n.prototype.animateFrom=function(e,t,i){Kp(this,e,t,i,!0)},n.prototype._transitionState=function(e,t,i,o){for(var r=Kp(this,t,i,o),a=0;a<r.length;a++)r[a].__fromStateTransition=e},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var e=n.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=He;var t={};function i(r,a,s){t[r+a+s]||(console.warn("DEPRECATED: '"+r+"' has been deprecated. use '"+a+"', '"+s+"' instead"),t[r+a+s]=!0)}function o(r,a,s,l){Object.defineProperty(e,r,{get:function(){if(process.env.NODE_ENV!=="production"&&i(r,s,l),!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){process.env.NODE_ENV!=="production"&&i(r,s,l),this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,h){Object.defineProperty(h,0,{get:function(){return c[s]},set:function(p){c[s]=p}}),Object.defineProperty(h,1,{get:function(){return c[l]},set:function(p){c[l]=p}})}}Object.defineProperty&&(o("position","_legacyPos","x","y"),o("scale","_legacyScale","scaleX","scaleY"),o("origin","_legacyOrigin","originX","originY"))}(),n}();$t($p,je),$t($p,si);function Kp(n,e,t,i,o){t=t||{};var r=[];A0(n,"",n,e,t,i,r,o);var a=r.length,s=!1,l=t.done,u=t.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),r.length>0&&t.during&&r[0].during(function(f,g){t.during(g)});for(var p=0;p<r.length;p++){var d=r[p];c&&d.done(c),h&&d.aborted(h),t.force&&d.duration(t.duration),d.start(t.easing)}return r}function Jp(n,e,t){for(var i=0;i<t;i++)n[i]=e[i]}function AL(n){return ye(n[0])}function kL(n,e,t){if(ye(e[t]))if(ye(n[t])||(n[t]=[]),Ne(e[t])){var i=e[t].length;n[t].length!==i&&(n[t]=new e[t].constructor(i),Jp(n[t],e[t],i))}else{var o=e[t],r=n[t],a=o.length;if(AL(o))for(var s=o[0].length,l=0;l<a;l++)r[l]?Jp(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Jp(r,o,a);r.length=o.length}else n[t]=e[t]}function LL(n,e){return n===e||ye(n)&&ye(e)&&NL(n,e)}function NL(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(n[i]!==e[i])return!1;return!0}function A0(n,e,t,i,o,r,a,s){for(var l=xt(i),u=o.duration,c=o.delay,h=o.additive,p=o.setToFinal,d=!K(r),f=n.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(m!=null&&t[y]!=null&&(d||r[y]))if(K(m)&&!ye(m)&&!Bl(m)){if(e){s||(t[y]=m,n.updateDuringAnimation(e));continue}A0(n,y,t[y],m,o,r&&r[y],a,s)}else g.push(y);else s||(t[y]=m,n.updateDuringAnimation(e),g.push(y))}var x=g.length;if(!h&&x)for(var _=0;_<f.length;_++){var w=f[_];if(w.targetName===e){var b=w.stopTracks(g);if(b){var S=dt(f,w);f.splice(S,1)}}}if(o.force||(g=Lt(g,function(T){return!LL(i[T],t[T])}),x=g.length),x>0||o.force&&!a.length){var M=void 0,I=void 0,D=void 0;if(s){I={},p&&(M={});for(var _=0;_<x;_++){var y=g[_];I[y]=t[y],p?M[y]=i[y]:t[y]=i[y]}}else if(p){D={};for(var _=0;_<x;_++){var y=g[_];D[y]=Ka(t[y]),kL(t,i,y)}}var w=new Vp(t,!1,!1,h?Lt(f,function(A){return A.targetName===e}):null);w.targetName=e,o.scope&&(w.scope=o.scope),p&&M&&w.whenWithKeys(0,M,g),D&&w.whenWithKeys(0,D,g),w.whenWithKeys(u??500,s?I:i,g).delay(c||0),n.addAnimator(w,e),a.push(w)}}const k0=$p;var L0=function(n){zt(e,n);function e(t){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,o=0;o<i.length;o++)if(i[o].name===t)return i[o]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),process.env.NODE_ENV!=="production"&&t.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var o=this._children,r=o.indexOf(i);r>=0&&(o.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var o=dt(this._children,t);return o>=0&&this.replaceAt(i,o),this},e.prototype.replaceAt=function(t,i){var o=this._children,r=o[i];if(t&&t!==this&&t.parent!==this&&t!==r){o[i]=t,r.parent=null;var a=this.__zr;a&&r.removeSelfFromZr(a),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,o=this._children,r=dt(o,t);return r<0?this:(o.splice(r,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,o=0;o<t.length;o++){var r=t[o];i&&r.removeSelfFromZr(i),r.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var o=this._children,r=0;r<o.length;r++){var a=o[r];t.call(i,a,r)}return this},e.prototype.traverse=function(t,i){for(var o=0;o<this._children.length;o++){var r=this._children[o],a=t.call(i,r);r.isGroup&&!a&&r.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var o=this._children[i];o.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new pt(0,0,0,0),o=t||this._children,r=[],a=null,s=0;s<o.length;s++){var l=o[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(r);c?(pt.applyTransform(i,u,c),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},e}(k0);L0.prototype.type="group";const ot=L0;/*!
|
|
29
|
+
* ZRender, a high performance 2d drawing library.
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
32
|
+
* All rights reserved.
|
|
33
|
+
*
|
|
34
|
+
* LICENSE
|
|
35
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
36
|
+
*/var ns={},N0={};function EL(n){delete N0[n]}function OL(n){if(!n)return!1;if(typeof n=="string")return iu(n,1)<Wp;if(n.colorStops){for(var e=n.colorStops,t=0,i=e.length,o=0;o<i;o++)t+=iu(e[o].color,1);return t/=i,t<Wp}return!1}var PL=function(){function n(e,t,i){var o=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var r=new Yk,a=i.renderer||"canvas";if(ns[a]||(a=xt(ns)[0]),process.env.NODE_ENV!=="production"&&!ns[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ns[a](t,r,i,e),l=i.ssr||s.ssrOnly;this.storage=r,this.painter=s;var u=!St.node&&!St.worker&&!l?new ML(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,h=c==null||c==="auto"?St.touchEventsSupported:!!c,p=44,d;h&&(d=ut(i.pointerSize,p)),this.handler=new Gk(r,s,u,s.root,d),this.animation=new vL({stage:{update:l?null:function(){return o._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(e){e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},n.prototype.remove=function(e){e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(e,t){this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh()},n.prototype.setBackgroundColor=function(e){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=OL(e)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(e){this._darkMode=e},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(e){e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},n.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},n.prototype.flush=function(){this._flush(!1)},n.prototype._flush=function(e){var t,i=Or();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var o=Or();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},n.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},n.prototype.on=function(e,t,i){return this.handler.on(e,t,i),this},n.prototype.off=function(e,t){this.handler.off(e,t)},n.prototype.trigger=function(e,t){this.handler.trigger(e,t)},n.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ot&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},n.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,EL(this.id)},n}();function E0(n,e){var t=new PL(Dm(),n,e);return N0[t.id]=t,t}function VL(n,e){ns[n]=e}var O0=1e-4,P0=20;function RL(n){return n.replace(/^\s+|\s+$/g,"")}function kt(n,e,t,i){var o=e[0],r=e[1],a=t[0],s=t[1],l=r-o,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=o)return a;if(n>=r)return s}else{if(n>=o)return a;if(n<=r)return s}else{if(n===o)return a;if(n===r)return s}return(n-o)/l*u+a}function H(n,e){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%";break}return U(n)?RL(n).match(/%$/)?parseFloat(n)/100*e:parseFloat(n):n==null?NaN:+n}function Zt(n,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),P0),n=(+n).toFixed(e),t?n:+n}function Qe(n){return n.sort(function(e,t){return e-t}),n}function Vn(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(n*e)/e===n)return t}return Qp(n)}function Qp(n){var e=n.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,o=t>0?t:e.length,r=e.indexOf("."),a=r<0?0:o-1-r;return Math.max(0,a-i)}function V0(n,e){var t=Math.log,i=Math.LN10,o=Math.floor(t(n[1]-n[0])/i),r=Math.round(t(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-o+r,0),20);return isFinite(a)?a:20}function zL(n,e){var t=Nn(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(t===0)return[];for(var i=Math.pow(10,e),o=G(n,function(d){return(isNaN(d)?0:d)/t*i*100}),r=i*100,a=G(o,function(d){return Math.floor(d)}),s=Nn(a,function(d,f){return d+f},0),l=G(o,function(d,f){return d-a[f]});s<r;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return G(a,function(d){return d/i})}function BL(n,e){var t=Math.max(Vn(n),Vn(e)),i=n+e;return t>P0?i:Zt(i,t)}var R0=9007199254740991;function z0(n){var e=Math.PI*2;return(n%e+e)%e}function vu(n){return n>-O0&&n<O0}var GL=/^(?:(\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 Rn(n){if(n instanceof Date)return n;if(U(n)){var e=GL.exec(n);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(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(n==null)return new Date(NaN);return new Date(Math.round(n))}function FL(n){return Math.pow(10,yu(n))}function yu(n){if(n===0)return 0;var e=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,e)>=10&&e++,e}function B0(n,e){var t=yu(n),i=Math.pow(10,t),o=n/i,r;return e?o<1.5?r=1:o<2.5?r=2:o<4?r=3:o<7?r=5:r=10:o<1?r=1:o<2?r=2:o<3?r=3:o<5?r=5:r=10,n=r*i,t>=-20?+n.toFixed(t<0?-t:0):n}function td(n,e){var t=(n.length-1)*e+1,i=Math.floor(t),o=+n[i-1],r=t-i;return r?o+r*(n[i]-o):o}function G0(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<n.length;){for(var o=n[i].interval,r=n[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-t),e=o[a],t=r[a];o[0]===o[1]&&r[0]*r[1]!==1?n.splice(i,1):i++}return n;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function li(n){var e=parseFloat(n);return e==n&&(e!==0||!U(n)||n.indexOf("x")<=0)?e:NaN}function ed(n){return!isNaN(li(n))}function F0(){return Math.round(Math.random()*9)}function H0(n,e){return e===0?n:H0(e,n%e)}function W0(n,e){return n==null?e:e==null?n:n*e/H0(n,e)}var HL="[ECharts] ",U0={},WL=typeof console<"u"&&console.warn&&console.log;function mu(n,e,t){if(WL){if(t){if(U0[e])return;U0[e]=!0}console[n](HL+e)}}function UL(n,e){mu("log",n,e)}function Ht(n,e){mu("warn",n,e)}function me(n,e){mu("error",n,e)}function bn(n){process.env.NODE_ENV!=="production"&&mu("warn","DEPRECATED: "+n,!0)}function Jt(n,e,t){process.env.NODE_ENV!=="production"&&bn((t?"["+t+"]":"")+(n+" is deprecated, use "+e+" instead."))}function Me(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t="";if(process.env.NODE_ENV!=="production"){var i=function(o){return o===void 0?"undefined":o===1/0?"Infinity":o===-1/0?"-Infinity":co(o)?"NaN":o instanceof Date?"Date("+o.toISOString()+")":$(o)?"function () { ... }":Am(o)?o+"":null};t=G(n,function(o){if(U(o))return o;var r=i(o);if(r!=null)return r;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(o,function(a,s){var l=i(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return t}function At(n){throw new Error(n)}function Y0(n,e,t){return(e-n)*t+n}var X0="series\0",Z0="\0_ec_\0";function Nt(n){return n instanceof Array?n:n==null?[]:[n]}function So(n,e,t){if(n){n[e]=n[e]||{},n.emphasis=n.emphasis||{},n.emphasis[e]=n.emphasis[e]||{};for(var i=0,o=t.length;i<o;i++){var r=t[i];!n.emphasis[e].hasOwnProperty(r)&&n[e].hasOwnProperty(r)&&(n.emphasis[e][r]=n[e][r])}}}var j0=["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 zr(n){return K(n)&&!B(n)&&!(n instanceof Date)?n.value:n}function YL(n){return K(n)&&!(n instanceof Array)}function q0(n,e,t){var i=t==="normalMerge",o=t==="replaceMerge",r=t==="replaceAll";n=n||[],e=(e||[]).slice();var a=j();C(e,function(l,u){if(!K(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!J0(l.id)&&K0(l.id),l.name!=null&&!J0(l.name)&&K0(l.name))});var s=XL(n,a,t);return(i||o)&&ZL(s,n,a,e),i&&jL(s,e),i||o?qL(s,e,o):r&&$L(s,e),KL(s),s}function XL(n,e,t){var i=[];if(t==="replaceAll")return i;for(var o=0;o<n.length;o++){var r=n[o];r&&r.id!=null&&e.set(r.id,o),i.push({existing:t==="replaceMerge"||Br(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}function ZL(n,e,t,i){C(i,function(o,r){if(!(!o||o.id==null)){var a=is(o.id),s=t.get(a);if(s!=null){var l=n[s];J(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=o,l.existing=e[s],i[r]=null}}})}function jL(n,e){C(e,function(t,i){if(!(!t||t.name==null))for(var o=0;o<n.length;o++){var r=n[o].existing;if(!n[o].newOption&&r&&(r.id==null||t.id==null)&&!Br(t)&&!Br(r)&&$0("name",r,t)){n[o].newOption=t,e[i]=null;return}}})}function qL(n,e,t){C(e,function(i){if(i){for(var o,r=0;(o=n[r])&&(o.newOption||Br(o.existing)||o.existing&&i.id!=null&&!$0("id",i,o.existing));)r++;o?(o.newOption=i,o.brandNew=t):n.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),r++}})}function $L(n,e){C(e,function(t){n.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function KL(n){var e=j();C(n,function(t){var i=t.existing;i&&e.set(i.id,t)}),C(n,function(t){var i=t.newOption;J(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),C(n,function(t,i){var o=t.existing,r=t.newOption,a=t.keyInfo;if(K(r)){if(a.name=r.name!=null?is(r.name):o?o.name:X0+i,o)a.id=is(o.id);else if(r.id!=null)a.id=is(r.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,t)}})}function $0(n,e,t){var i=ne(e[n],null),o=ne(t[n],null);return i!=null&&o!=null&&i===o}function is(n){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;return ne(n,"")}function ne(n,e){return n==null?e:U(n)?n:Ct(n)||zl(n)?n+"":e}function K0(n){process.env.NODE_ENV!=="production"&&Ht("`"+n+"` is invalid id or name. Must be a string or number.")}function J0(n){return zl(n)||ed(n)}function nd(n){var e=n.name;return!!(e&&e.indexOf(X0))}function Br(n){return n&&n.id!=null&&is(n.id).indexOf(Z0)===0}function JL(n){return Z0+n}function QL(n,e,t){C(n,function(i){var o=i.newOption;K(o)&&(i.keyInfo.mainType=e,i.keyInfo.subType=tN(e,o,i.existing,t))})}function tN(n,e,t,i){var o=e.type?e.type:t?t.subType:i.determineSubType(n,e);return o}function eN(n,e){var t={},i={};return o(n||[],t),o(e||[],i,t),[r(t),r(i)];function o(a,s,l){for(var u=0,c=a.length;u<c;u++){var h=ne(a[u].seriesId,null);if(h==null)return;for(var p=Nt(a[u].dataIndex),d=l&&l[h],f=0,g=p.length;f<g;f++){var v=p[f];d&&d[v]?d[v]=null:(s[h]||(s[h]={}))[v]=1}}}function r(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var c=r(a[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function Mo(n,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return B(e.dataIndex)?G(e.dataIndex,function(t){return n.indexOfRawIndex(t)}):n.indexOfRawIndex(e.dataIndex);if(e.name!=null)return B(e.name)?G(e.name,function(t){return n.indexOfName(t)}):n.indexOfName(e.name)}function Mt(){var n="__ec_inner_"+nN++;return function(e){return e[n]||(e[n]={})}}var nN=F0();function os(n,e,t){var i=id(e,t),o=i.mainTypeSpecified,r=i.queryOptionMap,a=i.others,s=a,l=t?t.defaultMainType:null;return!o&&l&&r.set(l,{}),r.each(function(u,c){var h=rs(n,c,u,{useDefault:l===c,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function id(n,e){var t;if(U(n)){var i={};i[n+"Index"]=0,t=i}else t=n;var o=j(),r={},a=!1;return C(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){r[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||e&&e.includeMainTypes&&dt(e.includeMainTypes,c)<0)){a=a||!!c;var p=o.get(c)||o.set(c,{});p[h]=s}}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var Qt={useDefault:!0,enableAll:!1,enableNone:!1},iN={useDefault:!1,enableAll:!0,enableNone:!0};function rs(n,e,t,i){i=i||Qt;var o=t.index,r=t.id,a=t.name,s={models:null,specified:o!=null||r!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(e))?[l]:[],s}return o==="none"||o===!1?(J(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(o==="all"&&(J(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),s.models=n.queryComponents({mainType:e,index:o,id:r,name:a}),s)}function Q0(n,e,t){n.setAttribute?n.setAttribute(e,t):n[e]=t}function oN(n,e){return n.getAttribute?n.getAttribute(e):n[e]}function rN(n){return n==="auto"?St.domSupported?"html":"richText":n||"html"}function od(n,e){var t=j(),i=[];return C(n,function(o){var r=e(o);(t.get(r)||(i.push(r),t.set(r,[]))).push(o)}),{keys:i,buckets:t}}function t1(n,e,t,i,o){var r=e==null||e==="auto";if(i==null)return i;if(Ct(i)){var a=Y0(t||0,i,o);return Zt(a,r?Math.max(Vn(t||0),Vn(i)):e)}else{if(U(i))return o<1?t:i;for(var s=[],l=t,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var p=n.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(o<1&&l?l:u)[h];else{var d=l&&l[h]?l[h]:0,f=u[h],a=Y0(d,f,o);s[h]=Zt(a,r?Math.max(Vn(d),Vn(f)):e)}}return s}}var aN=".",Io="___EC__COMPONENT__CONTAINER___",e1="___EC__EXTENDED_CLASS___";function zn(n){var e={main:"",sub:""};if(n){var t=n.split(aN);e.main=t[0]||"",e.sub=t[1]||""}return e}function sN(n){J(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n),'componentType "'+n+'" illegal')}function lN(n){return!!(n&&n[e1])}function rd(n,e){n.$constructor=n,n.extend=function(t){process.env.NODE_ENV!=="production"&&C(e,function(r){t[r]||console.warn("Method `"+r+"` should be implemented"+(t.type?" in "+t.type:"")+".")});var i=this,o;return uN(i)?o=function(r){P(a,r);function a(){return r.apply(this,arguments)||this}return a}(i):(o=function(){(t.$constructor||i).apply(this,arguments)},sk(o,this)),R(o.prototype,t),o[e1]=!0,o.extend=this.extend,o.superCall=pN,o.superApply=dN,o.superClass=i,o}}function uN(n){return $(n)&&/^class\s/.test(Function.prototype.toString.call(n))}function n1(n,e){n.extend=e.extend}var cN=Math.round(Math.random()*10);function hN(n){var e=["__\0is_clz",cN++].join("_");n.prototype[e]=!0,process.env.NODE_ENV!=="production"&&J(!n.isInstance,'The method "is" can not be defined.'),n.isInstance=function(t){return!!(t&&t[e])}}function pN(n,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(n,t)}function dN(n,e,t){return this.superClass.prototype[e].apply(n,t)}function xu(n){var e={};n.registerClass=function(i){var o=i.type||i.prototype.type;if(o){sN(o),i.prototype.type=o;var r=zn(o);if(!r.sub)process.env.NODE_ENV!=="production"&&e[r.main]&&console.warn(r.main+" exists."),e[r.main]=i;else if(r.sub!==Io){var a=t(r);a[r.sub]=i}}return i},n.getClass=function(i,o,r){var a=e[i];if(a&&a[Io]&&(a=o?a[o]:null),r&&!a)throw new Error(o?"Component "+i+"."+(o||"")+" is used but not imported.":i+".type should be specified.");return a},n.getClassesByMainType=function(i){var o=zn(i),r=[],a=e[o.main];return a&&a[Io]?C(a,function(s,l){l!==Io&&r.push(s)}):r.push(a),r},n.hasClass=function(i){var o=zn(i);return!!e[o.main]},n.getAllClassMainTypes=function(){var i=[];return C(e,function(o,r){i.push(r)}),i},n.hasSubTypes=function(i){var o=zn(i),r=e[o.main];return r&&r[Io]};function t(i){var o=e[i.main];return(!o||!o[Io])&&(o=e[i.main]={},o[Io]=!0),o}}function Co(n,e){for(var t=0;t<n.length;t++)n[t][1]||(n[t][1]=n[t][0]);return e=e||!1,function(i,o,r){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(o&&dt(o,l)>=0||r&&dt(r,l)<0)){var u=i.getShallow(l,e);u!=null&&(a[n[s][0]]=u)}}return a}}var fN=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],gN=Co(fN),vN=function(){function n(){}return n.prototype.getAreaStyle=function(e,t){return gN(this,e,t)},n}(),ad=new Za(50);function yN(n){if(typeof n=="string"){var e=ad.get(n);return e&&e.image}else return n}function sd(n,e,t,i,o){if(n)if(typeof n=="string"){if(e&&e.__zrImageSrc===n||!t)return e;var r=ad.get(n),a={hostEl:t,cb:i,cbPayload:o};return r?(e=r.image,!_u(e)&&r.pending.push(a)):(e=Ci.loadImage(n,i1,i1),e.__zrImageSrc=n,ad.put(n,e.__cachedImgObj={image:e,pending:[a]})),e}else return n;else return e}function i1(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<n.pending.length;e++){var t=n.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}n.pending.length=0}function _u(n){return n&&n.width&&n.height}var ld=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function mN(n,e,t,i,o){if(!e)return"";var r=(n+"").split(`
|
|
37
|
+
`);o=o1(e,t,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=r1(r[a],o);return r.join(`
|
|
38
|
+
`)}function o1(n,e,t,i){i=i||{};var o=R({},i);o.font=e,t=ut(t,"..."),o.maxIterations=ut(i.maxIterations,2);var r=o.minChar=ut(i.minChar,0);o.cnCharWidth=Ue("\u56FD",e);var a=o.ascCharWidth=Ue("a",e);o.placeholder=ut(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<r&&s>=a;l++)s-=a;var u=Ue(t,e);return u>s&&(t="",u=0),s=n-u,o.ellipsis=t,o.ellipsisWidth=u,o.contentWidth=s,o.containerWidth=n,o}function r1(n,e){var t=e.containerWidth,i=e.font,o=e.contentWidth;if(!t)return"";var r=Ue(n,i);if(r<=t)return n;for(var a=0;;a++){if(r<=o||a>=e.maxIterations){n+=e.ellipsis;break}var s=a===0?xN(n,o,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(n.length*o/r):0;n=n.substr(0,s),r=Ue(n,i)}return n===""&&(n=e.placeholder),n}function xN(n,e,t,i){for(var o=0,r=0,a=n.length;r<a&&o<e;r++){var s=n.charCodeAt(r);o+=0<=s&&s<=127?t:i}return r}function _N(n,e){n!=null&&(n+="");var t=e.overflow,i=e.padding,o=e.font,r=t==="truncate",a=fu(o),s=ut(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,h;c!=null&&(t==="break"||t==="breakAll")?h=n?s1(n,e.font,c,t==="breakAll",0).lines:[]:h=n?n.split(`
|
|
39
|
+
`):[];var p=h.length*s,d=ut(e.height,p);if(p>d&&u){var f=Math.floor(d/s);h=h.slice(0,f)}if(n&&r&&c!=null)for(var g=o1(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v<h.length;v++)h[v]=r1(h[v],g);for(var y=d,m=0,v=0;v<h.length;v++)m=Math.max(Ue(h[v],o),m);c==null&&(c=m);var x=m;return i&&(y+=i[0]+i[2],x+=i[1]+i[3],c+=i[1]+i[3]),l&&(x=c),{lines:h,height:d,outerWidth:x,outerHeight:y,lineHeight:s,calculatedLineHeight:a,contentWidth:m,contentHeight:p,width:c}}var bN=function(){function n(){}return n}(),a1=function(){function n(e){this.tokens=[],e&&(this.tokens=e)}return n}(),wN=function(){function n(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return n}();function SN(n,e){var t=new wN;if(n!=null&&(n+=""),!n)return t;for(var i=e.width,o=e.height,r=e.overflow,a=(r==="break"||r==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:r==="breakAll"}:null,s=ld.lastIndex=0,l;(l=ld.exec(n))!=null;){var u=l.index;u>s&&ud(t,n.substring(s,u),e,a),ud(t,l[2],e,a,l[1]),s=ld.lastIndex}s<n.length&&ud(t,n.substring(s,n.length),e,a);var c=[],h=0,p=0,d=e.padding,f=r==="truncate",g=e.lineOverflow==="truncate";function v(O,z,F){O.width=z,O.lineHeight=F,h+=F,p=Math.max(p,z)}t:for(var y=0;y<t.lines.length;y++){for(var m=t.lines[y],x=0,_=0,w=0;w<m.tokens.length;w++){var b=m.tokens[w],S=b.styleName&&e.rich[b.styleName]||{},M=b.textPadding=S.padding,I=M?M[1]+M[3]:0,D=b.font=S.font||e.font;b.contentHeight=fu(D);var T=ut(S.height,b.contentHeight);if(b.innerHeight=T,M&&(T+=M[0]+M[2]),b.height=T,b.lineHeight=Ze(S.lineHeight,e.lineHeight,T),b.align=S&&S.align||e.align,b.verticalAlign=S&&S.verticalAlign||"middle",g&&o!=null&&h+b.lineHeight>o){w>0?(m.tokens=m.tokens.slice(0,w),v(m,_,x),t.lines=t.lines.slice(0,y+1)):t.lines=t.lines.slice(0,y);break t}var A=S.width,k=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")b.percentWidth=A,c.push(b),b.contentWidth=Ue(b.text,D);else{if(k){var L=S.backgroundColor,N=L&&L.image;N&&(N=yN(N),_u(N)&&(b.width=Math.max(b.width,N.width*T/N.height)))}var E=f&&i!=null?i-_:null;E!=null&&E<b.width?!k||E<I?(b.text="",b.width=b.contentWidth=0):(b.text=mN(b.text,E-I,D,e.ellipsis,{minChar:e.truncateMinChar}),b.width=b.contentWidth=Ue(b.text,D)):b.contentWidth=Ue(b.text,D)}b.width+=I,_+=b.width,S&&(x=Math.max(x,b.lineHeight))}v(m,_,x)}t.outerWidth=t.width=ut(i,p),t.outerHeight=t.height=ut(o,h),t.contentHeight=h,t.contentWidth=p,d&&(t.outerWidth+=d[1]+d[3],t.outerHeight+=d[0]+d[2]);for(var y=0;y<c.length;y++){var b=c[y],V=b.percentWidth;b.width=parseInt(V,10)/100*t.width}return t}function ud(n,e,t,i,o){var r=e==="",a=o&&t.rich[o]||{},s=n.lines,l=a.font||t.font,u=!1,c,h;if(i){var p=a.padding,d=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var f=_n(a.width,i.width)+d;s.length>0&&f+i.accumWidth>i.width&&(c=e.split(`
|
|
40
|
+
`),u=!0),i.accumWidth=f}else{var g=s1(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,h=g.linesWidths,c=g.lines}}else c=e.split(`
|
|
41
|
+
`);for(var v=0;v<c.length;v++){var y=c[v],m=new bN;if(m.styleName=o,m.text=y,m.isLineHolder=!y&&!r,typeof a.width=="number"?m.width=a.width:m.width=h?h[v]:Ue(y,l),!v&&!u){var x=(s[s.length-1]||(s[0]=new a1)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=m:(y||!_||r)&&x.push(m)}else s.push(new a1([m]))}}function MN(n){var e=n.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var IN=Nn(",&?/;] ".split(""),function(n,e){return n[e]=!0,n},{});function CN(n){return MN(n)?!!IN[n]:!0}function s1(n,e,t,i,o){for(var r=[],a=[],s="",l="",u=0,c=0,h=0;h<n.length;h++){var p=n.charAt(h);if(p===`
|
|
42
|
+
`){l&&(s+=l,c+=u),r.push(s),a.push(c),s="",l="",u=0,c=0;continue}var d=Ue(p,e),f=i?!1:!CN(p);if(r.length?c+d>t:o+c+d>t){c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),r.push(s),a.push(c-u),l+=p,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),r.push(s),a.push(c),s=p,c=d)):f?(r.push(l),a.push(u),l=p,u=d):(r.push(p),a.push(d));continue}c+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p)}return!r.length&&!s&&(s=n,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(c)),r.length===1&&(c+=o),{accumWidth:c,lines:r,linesWidths:a}}var cd="__zr_style_"+Math.round(Math.random()*10),Do={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},bu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Do[cd]=!0;var l1=["z","z2","invisible"],DN=["invisible"],TN=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype._init=function(t){for(var i=xt(t),o=0;o<i.length;o++){var r=i[o];r==="style"?this.useStyle(t[r]):n.prototype.attrKV.call(this,r,t[r])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,o,r){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&AN(this,t,i)||a&&!a[0]&&!a[3])return!1;if(o&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(r&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();return r.contain(o[0],o[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,o=this.getBoundingRect(),r=this.style,a=r.shadowBlur||0,s=r.shadowOffsetX||0,l=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new pt(0,0,0,0)),i?pt.applyTransform(t,o,i):t.copy(o),(a||s||l)&&(t.width+=a*2+Math.abs(s),t.height+=a*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-a),t.y=Math.min(t.y,t.y+l-a));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new pt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?n.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:R(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ya,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ya)},e.prototype.styleUpdated=function(){this.__dirty&=~Ya},e.prototype.createStyle=function(t){return Hl(Do,t)},e.prototype.useStyle=function(t){t[cd]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[cd]},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,l1)},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.style?a?r?u=i.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),r?this.style:o.style),this._mergeStyle(u,i.style)):l&&(u=o.style),u)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=xt(c),p=0;p<h.length;p++){var d=h[p];d in u&&(u[d]=u[d],this.style[d]=c[d])}for(var f=xt(u),p=0;p<f.length;p++){var d=f[p];this.style[d]=this.style[d]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?DN:l1,p=0;p<g.length;p++){var d=g[p];i&&i[d]!=null?this[d]=i[d]:l&&o[d]!=null&&(this[d]=o[d])}},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.style&&(o=o||{},this._mergeStyle(o,a.style))}return o&&(i.style=o),i},e.prototype._mergeStyle=function(t,i){return R(t,i),t},e.prototype.getAnimationStyleProps=function(){return bu},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=He|Ya}(),e}(k0),hd=new pt(0,0,0,0),pd=new pt(0,0,0,0);function AN(n,e,t){return hd.copy(n.getBoundingRect()),n.transform&&hd.applyTransform(n.transform),pd.width=e,pd.height=t,!hd.intersect(pd)}const tn=TN;var Oe=Math.min,Pe=Math.max,dd=Math.sin,fd=Math.cos,To=Math.PI*2,wu=ho(),Su=ho(),Mu=ho();function Iu(n,e,t){if(n.length!==0){for(var i=n[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<n.length;l++)i=n[l],o=Oe(o,i[0]),r=Pe(r,i[0]),a=Oe(a,i[1]),s=Pe(s,i[1]);e[0]=o,e[1]=a,t[0]=r,t[1]=s}}function u1(n,e,t,i,o,r){o[0]=Oe(n,t),o[1]=Oe(e,i),r[0]=Pe(n,t),r[1]=Pe(e,i)}var c1=[],h1=[];function kN(n,e,t,i,o,r,a,s,l,u){var c=e0,h=oe,p=c(n,t,o,a,c1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=h(n,t,o,a,c1[d]);l[0]=Oe(f,l[0]),u[0]=Pe(f,u[0])}p=c(e,i,r,s,h1);for(var d=0;d<p;d++){var g=h(e,i,r,s,h1[d]);l[1]=Oe(g,l[1]),u[1]=Pe(g,u[1])}l[0]=Oe(n,l[0]),u[0]=Pe(n,u[0]),l[0]=Oe(a,l[0]),u[0]=Pe(a,u[0]),l[1]=Oe(e,l[1]),u[1]=Pe(e,u[1]),l[1]=Oe(s,l[1]),u[1]=Pe(s,u[1])}function LN(n,e,t,i,o,r,a,s){var l=i0,u=le,c=Pe(Oe(l(n,t,o),1),0),h=Pe(Oe(l(e,i,r),1),0),p=u(n,t,o,c),d=u(e,i,r,h);a[0]=Oe(n,o,p),a[1]=Oe(e,r,d),s[0]=Pe(n,o,p),s[1]=Pe(e,r,d)}function NN(n,e,t,i,o,r,a,s,l){var u=Ti,c=Ai,h=Math.abs(o-r);if(h%To<1e-4&&h>1e-4){s[0]=n-t,s[1]=e-i,l[0]=n+t,l[1]=e+i;return}if(wu[0]=fd(o)*t+n,wu[1]=dd(o)*i+e,Su[0]=fd(r)*t+n,Su[1]=dd(r)*i+e,u(s,wu,Su),c(l,wu,Su),o=o%To,o<0&&(o=o+To),r=r%To,r<0&&(r=r+To),o>r&&!a?r+=To:o<r&&a&&(o+=To),a){var p=r;r=o,o=p}for(var d=0;d<r;d+=Math.PI/2)d>o&&(Mu[0]=fd(d)*t+n,Mu[1]=dd(d)*i+e,u(s,Mu,s),c(l,Mu,l))}var Et={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ao=[],ko=[],Bn=[],Pi=[],Gn=[],Fn=[],gd=Math.min,vd=Math.max,Lo=Math.cos,No=Math.sin,ui=Math.abs,yd=Math.PI,Vi=yd*2,md=typeof Float32Array<"u",as=[];function xd(n){var e=Math.round(n/yd*1e8)/1e8;return e%2*yd}function p1(n,e){var t=xd(n[0]);t<0&&(t+=Vi);var i=t-n[0],o=n[1];o+=i,!e&&o-t>=Vi?o=t+Vi:e&&t-o>=Vi?o=t-Vi:!e&&t>o?o=t+(Vi-xd(t-o)):e&&t<o&&(o=t-(Vi-xd(o-t))),n[0]=t,n[1]=o}var Hn=function(){function n(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 n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=ui(i/du/e)||0,this._uy=ui(i/du/t)||0)},n.prototype.setDPR=function(e){this.dpr=e},n.prototype.setContext=function(e){this._ctx=e},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Et.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},n.prototype.lineTo=function(e,t){var i=ui(e-this._xi),o=ui(t-this._yi),r=i>this._ux||o>this._uy;if(this.addData(Et.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=i*i+o*o;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){return this._drawPendingPt(),this.addData(Et.C,e,t,i,o,r,a),this._ctx&&this._ctx.bezierCurveTo(e,t,i,o,r,a),this._xi=r,this._yi=a,this},n.prototype.quadraticCurveTo=function(e,t,i,o){return this._drawPendingPt(),this.addData(Et.Q,e,t,i,o),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,o),this._xi=i,this._yi=o,this},n.prototype.arc=function(e,t,i,o,r,a){this._drawPendingPt(),as[0]=o,as[1]=r,p1(as,a),o=as[0],r=as[1];var s=r-o;return this.addData(Et.A,e,t,i,i,o,s,0,a?0:1),this._ctx&&this._ctx.arc(e,t,i,o,r,a),this._xi=Lo(r)*i+e,this._yi=No(r)*i+t,this},n.prototype.arcTo=function(e,t,i,o,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,o,r),this},n.prototype.rect=function(e,t,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,o),this.addData(Et.R,e,t,i,o),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Et.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},n.prototype.fill=function(e){e&&e.fill(),this.toStatic()},n.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(e){var t=e.length;!(this.data&&this.data.length===t)&&md&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t},n.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,i=0,o=this._len,r=0;r<t;r++)i+=e[r].len();md&&this.data instanceof Float32Array&&(this.data=new Float32Array(o+i));for(var r=0;r<t;r++)for(var a=e[r].data,s=0;s<a.length;s++)this.data[o++]=a[s];this._len=o},n.prototype.addData=function(e,t,i,o,r,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,md&&this._len>11&&(this.data=new Float32Array(e)))}},n.prototype.getBoundingRect=function(){Bn[0]=Bn[1]=Gn[0]=Gn[1]=Number.MAX_VALUE,Pi[0]=Pi[1]=Fn[0]=Fn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,o=0,r=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(t=e[a],i=e[a+1],o=t,r=i),s){case Et.M:t=o=e[a++],i=r=e[a++],Gn[0]=o,Gn[1]=r,Fn[0]=o,Fn[1]=r;break;case Et.L:u1(t,i,e[a],e[a+1],Gn,Fn),t=e[a++],i=e[a++];break;case Et.C:kN(t,i,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Gn,Fn),t=e[a++],i=e[a++];break;case Et.Q:LN(t,i,e[a++],e[a++],e[a],e[a+1],Gn,Fn),t=e[a++],i=e[a++];break;case Et.A:var u=e[a++],c=e[a++],h=e[a++],p=e[a++],d=e[a++],f=e[a++]+d;a+=1;var g=!e[a++];l&&(o=Lo(d)*h+u,r=No(d)*p+c),NN(u,c,h,p,d,f,g,Gn,Fn),t=Lo(f)*h+u,i=No(f)*p+c;break;case Et.R:o=t=e[a++],r=i=e[a++];var v=e[a++],y=e[a++];u1(o,r,o+v,r+y,Gn,Fn);break;case Et.Z:t=o,i=r;break}Ti(Bn,Bn,Gn),Ai(Pi,Pi,Fn)}return a===0&&(Bn[0]=Bn[1]=Pi[0]=Pi[1]=0),new pt(Bn[0],Bn[1],Pi[0]-Bn[0],Pi[1]-Bn[1])},n.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,o=this._uy,r=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,p=0;p<t;){var d=e[p++],f=p===1;f&&(r=e[p],a=e[p+1],s=r,l=a);var g=-1;switch(d){case Et.M:r=s=e[p++],a=l=e[p++];break;case Et.L:{var v=e[p++],y=e[p++],m=v-r,x=y-a;(ui(m)>i||ui(x)>o||p===t-1)&&(g=Math.sqrt(m*m+x*x),r=v,a=y);break}case Et.C:{var _=e[p++],w=e[p++],v=e[p++],y=e[p++],b=e[p++],S=e[p++];g=Xk(r,a,_,w,v,y,b,S,10),r=b,a=S;break}case Et.Q:{var _=e[p++],w=e[p++],v=e[p++],y=e[p++];g=jk(r,a,_,w,v,y,10),r=v,a=y;break}case Et.A:var M=e[p++],I=e[p++],D=e[p++],T=e[p++],A=e[p++],k=e[p++],L=k+A;p+=1,e[p++],f&&(s=Lo(A)*D+M,l=No(A)*T+I),g=vd(D,T)*gd(Vi,Math.abs(k)),r=Lo(L)*D+M,a=No(L)*T+I;break;case Et.R:{s=r=e[p++],l=a=e[p++];var N=e[p++],E=e[p++];g=N*2+E*2;break}case Et.Z:{var m=s-r,x=l-a;g=Math.sqrt(m*m+x*x),r=s,a=l;break}}g>=0&&(u[h++]=g,c+=g)}return this._pathLen=c,c},n.prototype.rebuildPath=function(e,t){var i=this.data,o=this._ux,r=this._uy,a=this._len,s,l,u,c,h,p,d=t<1,f,g,v=0,y=0,m,x=0,_,w;if(!(d&&(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,g=this._pathLen,m=t*g,!m)))t:for(var b=0;b<a;){var S=i[b++],M=b===1;switch(M&&(u=i[b],c=i[b+1],s=u,l=c),S!==Et.L&&x>0&&(e.lineTo(_,w),x=0),S){case Et.M:s=u=i[b++],l=c=i[b++],e.moveTo(u,c);break;case Et.L:{h=i[b++],p=i[b++];var I=ui(h-u),D=ui(p-c);if(I>o||D>r){if(d){var T=f[y++];if(v+T>m){var A=(m-v)/T;e.lineTo(u*(1-A)+h*A,c*(1-A)+p*A);break t}v+=T}e.lineTo(h,p),u=h,c=p,x=0}else{var k=I*I+D*D;k>x&&(_=h,w=p,x=k)}break}case Et.C:{var L=i[b++],N=i[b++],E=i[b++],V=i[b++],O=i[b++],z=i[b++];if(d){var T=f[y++];if(v+T>m){var A=(m-v)/T;Ni(u,L,E,O,A,Ao),Ni(c,N,V,z,A,ko),e.bezierCurveTo(Ao[1],ko[1],Ao[2],ko[2],Ao[3],ko[3]);break t}v+=T}e.bezierCurveTo(L,N,E,V,O,z),u=O,c=z;break}case Et.Q:{var L=i[b++],N=i[b++],E=i[b++],V=i[b++];if(d){var T=f[y++];if(v+T>m){var A=(m-v)/T;Xa(u,L,E,A,Ao),Xa(c,N,V,A,ko),e.quadraticCurveTo(Ao[1],ko[1],Ao[2],ko[2]);break t}v+=T}e.quadraticCurveTo(L,N,E,V),u=E,c=V;break}case Et.A:var F=i[b++],W=i[b++],Z=i[b++],Q=i[b++],tt=i[b++],ft=i[b++],_t=i[b++],gt=!i[b++],nt=Z>Q?Z:Q,vt=ui(Z-Q)>.001,st=tt+ft,q=!1;if(d){var T=f[y++];v+T>m&&(st=tt+ft*(m-v)/T,q=!0),v+=T}if(vt&&e.ellipse?e.ellipse(F,W,Z,Q,_t,tt,st,gt):e.arc(F,W,nt,tt,st,gt),q)break t;M&&(s=Lo(tt)*Z+F,l=No(tt)*Q+W),u=Lo(st)*Z+F,c=No(st)*Q+W;break;case Et.R:s=u=i[b],l=c=i[b+1],h=i[b++],p=i[b++];var lt=i[b++],Gt=i[b++];if(d){var T=f[y++];if(v+T>m){var wt=m-v;e.moveTo(h,p),e.lineTo(h+gd(wt,lt),p),wt-=lt,wt>0&&e.lineTo(h+lt,p+gd(wt,Gt)),wt-=Gt,wt>0&&e.lineTo(h+vd(lt-wt,0),p+Gt),wt-=lt,wt>0&&e.lineTo(h,p+vd(Gt-wt,0));break t}v+=T}e.rect(h,p,lt,Gt);break;case Et.Z:if(d){var T=f[y++];if(v+T>m){var A=(m-v)/T;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break t}v+=T}e.closePath(),u=s,c=l}}},n.prototype.clone=function(){var e=new n,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},n.CMD=Et,n.initDefaultProps=function(){var e=n.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),n}();function Ri(n,e,t,i,o,r,a){if(o===0)return!1;var s=o,l=0,u=n;if(a>e+s&&a>i+s||a<e-s&&a<i-s||r>n+s&&r>t+s||r<n-s&&r<t-s)return!1;if(n!==t)l=(e-i)/(n-t),u=(n*i-t*e)/(n-t);else return Math.abs(r-n)<=s/2;var c=l*r-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function EN(n,e,t,i,o,r,a,s,l,u,c){if(l===0)return!1;var h=l;if(c>e+h&&c>i+h&&c>r+h&&c>s+h||c<e-h&&c<i-h&&c<r-h&&c<s-h||u>n+h&&u>t+h&&u>o+h&&u>a+h||u<n-h&&u<t-h&&u<o-h&&u<a-h)return!1;var p=n0(n,e,t,i,o,r,a,s,u,c,null);return p<=h/2}function d1(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>i+u&&l>r+u||l<e-u&&l<i-u&&l<r-u||s>n+u&&s>t+u&&s>o+u||s<n-u&&s<t-u&&s<o-u)return!1;var c=o0(n,e,t,i,o,r,s,l,null);return c<=u/2}var f1=Math.PI*2;function wn(n){return n%=f1,n<0&&(n+=f1),n}var ss=Math.PI*2;function ON(n,e,t,i,o,r,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>t||c+u<t)return!1;if(Math.abs(i-o)%ss<1e-4)return!0;if(r){var h=i;i=wn(o),o=wn(h)}else i=wn(i),o=wn(o);i>o&&(o+=ss);var p=Math.atan2(l,s);return p<0&&(p+=ss),p>=i&&p<=o||p+ss>=i&&p+ss<=o}function ci(n,e,t,i,o,r){if(r>e&&r>i||r<e&&r<i||i===e)return 0;var a=(r-e)/(i-e),s=i<e?1:-1;(a===1||a===0)&&(s=i<e?.5:-.5);var l=a*(t-n)+n;return l===o?1/0:l>o?s:0}var zi=Hn.CMD,Eo=Math.PI*2,PN=1e-4;function VN(n,e){return Math.abs(n-e)<PN}var Ie=[-1,-1,-1],en=[-1,-1];function RN(){var n=en[0];en[0]=en[1],en[1]=n}function zN(n,e,t,i,o,r,a,s,l,u){if(u>e&&u>i&&u>r&&u>s||u<e&&u<i&&u<r&&u<s)return 0;var c=tu(e,i,r,s,u,Ie);if(c===0)return 0;for(var h=0,p=-1,d=void 0,f=void 0,g=0;g<c;g++){var v=Ie[g],y=v===0||v===1?.5:1,m=oe(n,t,o,a,v);m<l||(p<0&&(p=e0(e,i,r,s,en),en[1]<en[0]&&p>1&&RN(),d=oe(e,i,r,s,en[0]),p>1&&(f=oe(e,i,r,s,en[1]))),p===2?v<en[0]?h+=d<e?y:-y:v<en[1]?h+=f<d?y:-y:h+=s<f?y:-y:v<en[0]?h+=d<e?y:-y:h+=s<d?y:-y)}return h}function BN(n,e,t,i,o,r,a,s){if(s>e&&s>i&&s>r||s<e&&s<i&&s<r)return 0;var l=Zk(e,i,r,s,Ie);if(l===0)return 0;var u=i0(e,i,r);if(u>=0&&u<=1){for(var c=0,h=le(e,i,r,u),p=0;p<l;p++){var d=Ie[p]===0||Ie[p]===1?.5:1,f=le(n,t,o,Ie[p]);f<a||(Ie[p]<u?c+=h<e?d:-d:c+=r<h?d:-d)}return c}else{var d=Ie[0]===0||Ie[0]===1?.5:1,f=le(n,t,o,Ie[0]);return f<a?0:r<e?d:-d}}function GN(n,e,t,i,o,r,a,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Ie[0]=-l,Ie[1]=l;var u=Math.abs(i-o);if(u<1e-4)return 0;if(u>=Eo-1e-4){i=0,o=Eo;var c=r?1:-1;return a>=Ie[0]+n&&a<=Ie[1]+n?c:0}if(i>o){var h=i;i=o,o=h}i<0&&(i+=Eo,o+=Eo);for(var p=0,d=0;d<2;d++){var f=Ie[d];if(f+n>a){var g=Math.atan2(s,f),c=r?1:-1;g<0&&(g=Eo+g),(g>=i&&g<=o||g+Eo>=i&&g+Eo<=o)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),p+=c)}}return p}function g1(n,e,t,i,o){for(var r=n.data,a=n.len(),s=0,l=0,u=0,c=0,h=0,p,d,f=0;f<a;){var g=r[f++],v=f===1;switch(g===zi.M&&f>1&&(t||(s+=ci(l,u,c,h,i,o))),v&&(l=r[f],u=r[f+1],c=l,h=u),g){case zi.M:c=r[f++],h=r[f++],l=c,u=h;break;case zi.L:if(t){if(Ri(l,u,r[f],r[f+1],e,i,o))return!0}else s+=ci(l,u,r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case zi.C:if(t){if(EN(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=zN(l,u,r[f++],r[f++],r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case zi.Q:if(t){if(d1(l,u,r[f++],r[f++],r[f],r[f+1],e,i,o))return!0}else s+=BN(l,u,r[f++],r[f++],r[f],r[f+1],i,o)||0;l=r[f++],u=r[f++];break;case zi.A:var y=r[f++],m=r[f++],x=r[f++],_=r[f++],w=r[f++],b=r[f++];f+=1;var S=!!(1-r[f++]);p=Math.cos(w)*x+y,d=Math.sin(w)*_+m,v?(c=p,h=d):s+=ci(l,u,p,d,i,o);var M=(i-y)*_/x+y;if(t){if(ON(y,m,_,w,w+b,S,e,M,o))return!0}else s+=GN(y,m,_,w,w+b,S,M,o);l=Math.cos(w+b)*x+y,u=Math.sin(w+b)*_+m;break;case zi.R:c=l=r[f++],h=u=r[f++];var I=r[f++],D=r[f++];if(p=c+I,d=h+D,t){if(Ri(c,h,p,h,e,i,o)||Ri(p,h,p,d,e,i,o)||Ri(p,d,c,d,e,i,o)||Ri(c,d,c,h,e,i,o))return!0}else s+=ci(p,h,p,d,i,o),s+=ci(c,d,c,h,i,o);break;case zi.Z:if(t){if(Ri(l,u,c,h,e,i,o))return!0}else s+=ci(l,u,c,h,i,o);l=c,u=h;break}}return!t&&!VN(u,h)&&(s+=ci(l,u,c,h,i,o)||0),s!==0}function FN(n,e,t){return g1(n,0,!1,e,t)}function HN(n,e,t,i){return g1(n,e,!0,t,i)}var Cu=et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Do),WN={style:et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},bu.style)},_d=Pn.concat(["invisible","culling","z","z2","zlevel","parent"]),UN=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.update=function(){var t=this;n.prototype.update.call(this);var i=this.style;if(i.decal){var o=this._decalEl=this._decalEl||new e;o.buildPath===e.prototype.buildPath&&(o.buildPath=function(l){t.buildPath(l,t.shape)}),o.silent=!0;var r=o.style;for(var a in i)r[a]!==i[a]&&(r[a]=i[a]);r.fill=i.fill?i.decal:null,r.decal=null,r.shadowColor=null,i.strokeFirst&&(r.stroke=null);for(var s=0;s<_d.length;++s)o[_d[s]]=this[_d[s]];o.__dirty|=He}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=xt(t);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var r=0;r<i.length;r++){var a=i[r],s=t[a];a==="style"?this.style?R(this.style,s):this.useStyle(s):a==="shape"?R(this.shape,s):n.prototype.attrKV.call(this,a,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 t=this.style.fill;if(t!=="none"){if(U(t)){var i=iu(t,0);return i>.5?Up:i>.2?IL:Yp}else if(t)return Yp}return Up},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(U(i)){var o=this.__zr,r=!!(o&&o.isDarkMode()),a=iu(t,0)<Wp;if(r===a)return i}},e.prototype.buildPath=function(t,i,o){},e.prototype.pathUpdated=function(){this.__dirty&=~Lr},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new Hn(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,o=!t;if(o){var r=!1;this.path||(r=!0,this.createPathProxy());var a=this.path;(r||this.__dirty&Lr)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),t=a.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect(),a=this.style;if(t=o[0],i=o[1],r.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),HN(s,l/u,t,i)))return!0}if(this.hasFill())return FN(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Lr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):n.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var o=this.shape;return o||(o=this.shape={}),typeof t=="string"?o[t]=i:R(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Lr)},e.prototype.createStyle=function(t){return Hl(Cu,t)},e.prototype._innerSaveToNormal=function(t){n.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=R({},this.shape))},e.prototype._applyStateObj=function(t,i,o,r,a,s){n.prototype._applyStateObj.call(this,t,i,o,r,a,s);var l=!(i&&r),u;if(i&&i.shape?a?r?u=i.shape:(u=R({},o.shape),R(u,i.shape)):(u=R({},r?this.shape:o.shape),R(u,i.shape)):l&&(u=o.shape),u)if(a){this.shape=R({},this.shape);for(var c={},h=xt(u),p=0;p<h.length;p++){var d=h[p];typeof u[d]=="object"?this.shape[d]=u[d]:c[d]=u[d]}this._transitionState(t,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var i=n.prototype._mergeStates.call(this,t),o,r=0;r<t.length;r++){var a=t[r];a.shape&&(o=o||{},this._mergeStyle(o,a.shape))}return o&&(i.shape=o),i},e.prototype.getAnimationStyleProps=function(){return WN},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=function(r){zt(a,r);function a(s){var l=r.call(this,s)||this;return t.init&&t.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return it(t.style)},a.prototype.getDefaultShape=function(){return it(t.shape)},a}(e);for(var o in t)typeof t[o]=="function"&&(i.prototype[o]=t[o]);return i},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=He|Ya|Lr}(),e}(tn);const mt=UN;var YN=et({strokeFirst:!0,font:Ii,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Cu),v1=function(n){zt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return i!=null&&i!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return Hl(YN,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var i=t.text;i!=null?i+="":i="";var o=ts(i,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;o.x-=r/2,o.y-=r/2,o.width+=r,o.height+=r}this._rect=o}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(tn);v1.prototype.type="tspan";const ls=v1;var XN=et({x:0,y:0},Do),ZN={style:et({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},bu.style)};function jN(n){return!!(n&&typeof n!="string"&&n.width&&n.height)}var y1=function(n){zt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Hl(XN,t)},e.prototype._getSize=function(t){var i=this.style,o=i[t];if(o!=null)return o;var r=jN(i.image)?i.image:this.__image;if(!r)return 0;var a=t==="width"?"height":"width",s=i[a];return s==null?r[t]:r[t]/r[a]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return ZN},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new pt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(tn);y1.prototype.type="image";const he=y1;function qN(n,e){var t=e.x,i=e.y,o=e.width,r=e.height,a=e.r,s,l,u,c;o<0&&(t=t+o,o=-o),r<0&&(i=i+r,r=-r),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var h;s+l>o&&(h=s+l,s*=o/h,l*=o/h),u+c>o&&(h=u+c,u*=o/h,c*=o/h),l+u>r&&(h=l+u,l*=r/h,u*=r/h),s+c>r&&(h=s+c,s*=r/h,c*=r/h),n.moveTo(t+s,i),n.lineTo(t+o-l,i),l!==0&&n.arc(t+o-l,i+l,l,-Math.PI/2,0),n.lineTo(t+o,i+r-u),u!==0&&n.arc(t+o-u,i+r-u,u,0,Math.PI/2),n.lineTo(t+c,i+r),c!==0&&n.arc(t+c,i+r-c,c,Math.PI/2,Math.PI),n.lineTo(t,i+s),s!==0&&n.arc(t+s,i+s,s,Math.PI,Math.PI*1.5)}var Gr=Math.round;function m1(n,e,t){if(e){var i=e.x1,o=e.x2,r=e.y1,a=e.y2;n.x1=i,n.x2=o,n.y1=r,n.y2=a;var s=t&&t.lineWidth;return s&&(Gr(i*2)===Gr(o*2)&&(n.x1=n.x2=Oo(i,s,!0)),Gr(r*2)===Gr(a*2)&&(n.y1=n.y2=Oo(r,s,!0))),n}}function x1(n,e,t){if(e){var i=e.x,o=e.y,r=e.width,a=e.height;n.x=i,n.y=o,n.width=r,n.height=a;var s=t&&t.lineWidth;return s&&(n.x=Oo(i,s,!0),n.y=Oo(o,s,!0),n.width=Math.max(Oo(i+r,s,!1)-n.x,r===0?0:1),n.height=Math.max(Oo(o+a,s,!1)-n.y,a===0?0:1)),n}}function Oo(n,e,t){if(!e)return n;var i=Gr(n*2);return(i+Gr(e))%2===0?i/2:(i+(t?1:-1))/2}var $N=function(){function n(){this.x=0,this.y=0,this.width=0,this.height=0}return n}(),KN={},_1=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $N},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=x1(KN,i,this.style);o=l.x,r=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else o=i.x,r=i.y,a=i.width,s=i.height;i.r?qN(t,i):t.rect(o,r,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(mt);_1.prototype.type="rect";const It=_1;var b1={fill:"#000"},w1=2,JN={style:et({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},bu.style)},S1=function(n){zt(e,n);function e(t){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=b1,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){n.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):n.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):n.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,eE(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){n.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){n.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new pt(0,0,0,0),i=this._children,o=[],r=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(o);u?(t.copy(l),t.applyTransform(u),r=r||t.clone(),r.union(t)):(r=r||l.clone(),r.union(l))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||b1},e.prototype.setTextContent=function(t){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(t,i){if(!i)return t;var o=i.rich,r=t.rich||o&&{};return R(t,i),o&&r?(this._mergeRich(r,o),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,i){for(var o=xt(i),r=0;r<o.length;r++){var a=o[r];t[a]=t[a]||{},R(t[a],i[a])}},e.prototype.getAnimationStyleProps=function(){return JN},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||Ii,o=t.padding,r=N1(t),a=_N(r,t),s=bd(t),l=!!t.backgroundColor,u=a.outerHeight,c=a.outerWidth,h=a.contentWidth,p=a.lines,d=a.lineHeight,f=this._defaultStyle,g=t.x||0,v=t.y||0,y=t.align||f.align||"left",m=t.verticalAlign||f.verticalAlign||"top",x=g,_=Vr(v,a.contentHeight,m);if(s||o){var w=es(g,c,y),b=Vr(v,u,m);s&&this._renderBackground(t,t,w,b,c,u)}_+=d/2,o&&(x=L1(g,y,o),m==="top"?_+=o[0]:m==="bottom"&&(_-=o[2]));for(var S=0,M=!1,I=k1("fill"in t?t.fill:(M=!0,f.fill)),D=A1("stroke"in t?t.stroke:!l&&(!f.autoStroke||M)?(S=w1,f.stroke):null),T=t.textShadowBlur>0,A=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),k=a.calculatedLineHeight,L=0;L<p.length;L++){var N=this._getOrCreateChild(ls),E=N.createStyle();N.useStyle(E),E.text=p[L],E.x=x,E.y=_,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=t.opacity,E.strokeFirst=!0,T&&(E.shadowBlur=t.textShadowBlur||0,E.shadowColor=t.textShadowColor||"transparent",E.shadowOffsetX=t.textShadowOffsetX||0,E.shadowOffsetY=t.textShadowOffsetY||0),E.stroke=D,E.fill=I,D&&(E.lineWidth=t.lineWidth||S,E.lineDash=t.lineDash,E.lineDashOffset=t.lineDashOffset||0),E.font=i,C1(E,t),_+=d,A&&N.setBoundingRect(new pt(es(E.x,t.width,E.textAlign),Vr(E.y,k,E.textBaseline),h,k))}},e.prototype._updateRichTexts=function(){var t=this.style,i=N1(t),o=SN(i,t),r=o.width,a=o.outerWidth,s=o.outerHeight,l=t.padding,u=t.x||0,c=t.y||0,h=this._defaultStyle,p=t.align||h.align,d=t.verticalAlign||h.verticalAlign,f=es(u,a,p),g=Vr(c,s,d),v=f,y=g;l&&(v+=l[3],y+=l[0]);var m=v+r;bd(t)&&this._renderBackground(t,t,f,g,a,s);for(var x=!!t.backgroundColor,_=0;_<o.lines.length;_++){for(var w=o.lines[_],b=w.tokens,S=b.length,M=w.lineHeight,I=w.width,D=0,T=v,A=m,k=S-1,L=void 0;D<S&&(L=b[D],!L.align||L.align==="left");)this._placeToken(L,t,M,y,T,"left",x),I-=L.width,T+=L.width,D++;for(;k>=0&&(L=b[k],L.align==="right");)this._placeToken(L,t,M,y,A,"right",x),I-=L.width,A-=L.width,k--;for(T+=(r-(T-v)-(m-A)-I)/2;D<=k;)L=b[D],this._placeToken(L,t,M,y,T+L.width/2,"center",x),T+=L.width,D++;y+=M}},e.prototype._placeToken=function(t,i,o,r,a,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var c=t.verticalAlign,h=r+o/2;c==="top"?h=r+t.height/2:c==="bottom"&&(h=r+o-t.height/2);var p=!t.isLineHolder&&bd(u);p&&this._renderBackground(u,i,s==="right"?a-t.width:s==="center"?a-t.width/2:a,h-t.height/2,t.width,t.height);var d=!!u.backgroundColor,f=t.textPadding;f&&(a=L1(a,s,f),h-=t.height/2-f[0]-t.innerHeight/2);var g=this._getOrCreateChild(ls),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,m=!1,x=0,_=k1("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=A1("stroke"in u?u.stroke:"stroke"in i?i.stroke:!d&&!l&&(!y.autoStroke||m)?(x=w1,y.stroke):null),b=u.textShadowBlur>0||i.textShadowBlur>0;v.text=t.text,v.x=a,v.y=h,b&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=t.font||Ii,v.opacity=Ze(u.opacity,i.opacity,1),C1(v,u),w&&(v.lineWidth=Ze(u.lineWidth,i.lineWidth,x),v.lineDash=ut(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),_&&(v.fill=_);var S=t.contentWidth,M=t.contentHeight;g.setBoundingRect(new pt(es(v.x,S,v.textAlign),Vr(v.y,M,v.textBaseline),S,M))},e.prototype._renderBackground=function(t,i,o,r,a,s){var l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,p=l&&!h,d=t.borderRadius,f=this,g,v;if(p||t.lineHeight||u&&c){g=this._getOrCreateChild(It),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=o,y.y=r,y.width=a,y.height=s,y.r=d,g.dirtyShape()}if(p){var m=g.style;m.fill=l||null,m.fillOpacity=ut(t.fillOpacity,1)}else if(h){v=this._getOrCreateChild(he),v.onload=function(){f.dirtyStyle()};var x=v.style;x.image=l.image,x.x=o,x.y=r,x.width=a,x.height=s}if(u&&c){var m=g.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=ut(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var _=(g||v).style;_.shadowBlur=t.shadowBlur||0,_.shadowColor=t.shadowColor||"transparent",_.shadowOffsetX=t.shadowOffsetX||0,_.shadowOffsetY=t.shadowOffsetY||0,_.opacity=Ze(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return D1(t)&&(i=[t.fontStyle,t.fontWeight,I1(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&yn(i)||t.textFont||t.font},e}(tn),QN={left:!0,right:1,center:1},tE={top:1,bottom:1,middle:1},M1=["fontStyle","fontWeight","fontSize","fontFamily"];function I1(n){return typeof n=="string"&&(n.indexOf("px")!==-1||n.indexOf("rem")!==-1||n.indexOf("em")!==-1)?n:isNaN(+n)?Kh+"px":n+"px"}function C1(n,e){for(var t=0;t<M1.length;t++){var i=M1[t],o=e[i];o!=null&&(n[i]=o)}}function D1(n){return n.fontSize!=null||n.fontFamily||n.fontWeight}function eE(n){return T1(n),C(n.rich,T1),n}function T1(n){if(n){n.font=S1.makeFont(n);var e=n.align;e==="middle"&&(e="center"),n.align=e==null||QN[e]?e:"left";var t=n.verticalAlign;t==="center"&&(t="middle"),n.verticalAlign=t==null||tE[t]?t:"top";var i=n.padding;i&&(n.padding=np(n.padding))}}function A1(n,e){return n==null||e<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function k1(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function L1(n,e,t){return e==="right"?n-t[1]:e==="center"?n+t[3]/2-t[1]/2:n+t[3]}function N1(n){var e=n.text;return e!=null&&(e+=""),e}function bd(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const Dt=S1;var rt=Mt(),wd=function(n,e,t,i){if(i){var o=rt(i);o.dataIndex=t,o.dataType=e,o.seriesIndex=n,i.type==="group"&&i.traverse(function(r){var a=rt(r);a.seriesIndex=n,a.dataIndex=t,a.dataType=e})}},E1=1,O1={},P1=Mt(),Sd=Mt(),Md=0,us=1,Du=2,Ce=["emphasis","blur","select"],cs=["normal","emphasis","blur","select"],Fr=10,nE=9,Po="highlight",Tu="downplay",hs="select",Au="unselect",ps="toggleSelect";function Hr(n){return n!=null&&n!=="none"}var V1=new Za(100);function R1(n){if(U(n)){var e=V1.get(n);return e||(e=Tp(n,-.1),V1.put(n,e)),e}else if(Bl(n)){var t=R({},n);return t.colorStops=G(n.colorStops,function(i){return{offset:i.offset,color:Tp(i.color,-.1)}}),t}return n}function ku(n,e,t){n.onHoverStateChange&&(n.hoverState||0)!==t&&n.onHoverStateChange(e),n.hoverState=t}function z1(n){ku(n,"emphasis",Du)}function B1(n){n.hoverState===Du&&ku(n,"normal",Md)}function Id(n){ku(n,"blur",us)}function G1(n){n.hoverState===us&&ku(n,"normal",Md)}function iE(n){n.selected=!0}function oE(n){n.selected=!1}function F1(n,e,t){e(n,t)}function hi(n,e,t){F1(n,e,t),n.isGroup&&n.traverse(function(i){F1(i,e,t)})}function Lu(n,e){switch(e){case"emphasis":n.hoverState=Du;break;case"normal":n.hoverState=Md;break;case"blur":n.hoverState=us;break;case"select":n.selected=!0}}function rE(n,e,t,i){for(var o=n.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=l??(i&&i[s])}for(var a=0;a<n.animators.length;a++){var u=n.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(r,e)}return r}function aE(n,e,t,i){var o=t&&dt(t,"select")>=0,r=!1;if(n instanceof mt){var a=P1(n),s=o&&a.selectFill||a.normalFill,l=o&&a.selectStroke||a.normalStroke;if(Hr(s)||Hr(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(r=!0,i=R({},i),u=R({},u),u.fill=s):!Hr(u.fill)&&Hr(s)?(r=!0,i=R({},i),u=R({},u),u.fill=R1(s)):!Hr(u.stroke)&&Hr(l)&&(r||(i=R({},i),u=R({},u)),u.stroke=R1(l)),i.style=u}}if(i&&i.z2==null){r||(i=R({},i));var c=n.z2EmphasisLift;i.z2=n.z2+(c??Fr)}return i}function sE(n,e,t){if(t&&t.z2==null){t=R({},t);var i=n.z2SelectLift;t.z2=n.z2+(i??nE)}return t}function lE(n,e,t){var i=dt(n.currentStates,e)>=0,o=n.style.opacity,r=i?null:rE(n,["opacity"],e,{opacity:1});t=t||{};var a=t.style||{};return a.opacity==null&&(t=R({},t),a=R({opacity:i?o:r.opacity*.1},a),t.style=a),t}function Cd(n,e){var t=this.states[n];if(this.style){if(n==="emphasis")return aE(this,n,e,t);if(n==="blur")return lE(this,n,t);if(n==="select")return sE(this,n,t)}return t}function Vo(n){n.stateProxy=Cd;var e=n.getTextContent(),t=n.getTextGuideLine();e&&(e.stateProxy=Cd),t&&(t.stateProxy=Cd)}function H1(n,e){!Z1(n,e)&&!n.__highByOuter&&hi(n,z1)}function W1(n,e){!Z1(n,e)&&!n.__highByOuter&&hi(n,B1)}function pi(n,e){n.__highByOuter|=1<<(e||0),hi(n,z1)}function di(n,e){!(n.__highByOuter&=~(1<<(e||0)))&&hi(n,B1)}function U1(n){hi(n,Id)}function Dd(n){hi(n,G1)}function Y1(n){hi(n,iE)}function X1(n){hi(n,oE)}function Z1(n,e){return n.__highDownSilentOnTouch&&e.zrByTouch}function j1(n){var e=n.getModel(),t=[],i=[];e.eachComponent(function(o,r){var a=Sd(r),s=o==="series",l=s?n.getViewOfSeriesModel(r):n.getViewOfComponentModel(r);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){G1(u)}),s&&t.push(r)),a.isBlured=!1}),C(i,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(t,!1,e)})}function Td(n,e,t,i){var o=i.getModel();t=t||"coordinateSystem";function r(u,c){for(var h=0;h<c.length;h++){var p=u.getItemGraphicEl(c[h]);p&&Dd(p)}}if(n!=null&&!(!e||e==="none")){var a=o.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];o.eachSeries(function(u){var c=a===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:c;if(!(t==="series"&&!c||t==="coordinateSystem"&&!p||e==="series"&&c)){var d=i.getViewOfSeriesModel(u);if(d.group.traverse(function(v){v.__highByOuter&&c&&e==="self"||Id(v)}),ye(e))r(u.getData(),e);else if(K(e))for(var f=xt(e),g=0;g<f.length;g++)r(u.getData(f[g]),e[f[g]]);l.push(u),Sd(u).isBlured=!0}}),o.eachComponent(function(u,c){if(u!=="series"){var h=i.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,o)}})}}function Ad(n,e,t){if(!(n==null||e==null)){var i=t.getModel().getComponent(n,e);if(i){Sd(i).isBlured=!0;var o=t.getViewOfComponentModel(i);!o||!o.focusBlurEnabled||o.group.traverse(function(r){Id(r)})}}}function uE(n,e,t){var i=n.seriesIndex,o=n.getData(e.dataType);if(!o){process.env.NODE_ENV!=="production"&&me("Unknown dataType "+e.dataType);return}var r=Mo(o,e);r=(B(r)?r[0]:r)||0;var a=o.getItemGraphicEl(r);if(!a)for(var s=o.count(),l=0;!a&&l<s;)a=o.getItemGraphicEl(l++);if(a){var u=rt(a);Td(i,u.focus,u.blurScope,t)}else{var c=n.get(["emphasis","focus"]),h=n.get(["emphasis","blurScope"]);c!=null&&Td(i,c,h,t)}}function kd(n,e,t,i){var o={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||e==null||t==null)return o;var r=i.getModel().getComponent(n,e);if(!r)return o;var a=i.getViewOfComponentModel(r);if(!a||!a.findHighDownDispatchers)return o;for(var s=a.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Bi(s[u])&&me("param should be highDownDispatcher"),rt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function cE(n,e,t){process.env.NODE_ENV!=="production"&&!Bi(n)&&me("param should be highDownDispatcher");var i=rt(n),o=kd(i.componentMainType,i.componentIndex,i.componentHighDownName,t),r=o.dispatchers,a=o.focusSelf;r?(a&&Ad(i.componentMainType,i.componentIndex,t),C(r,function(s){return H1(s,e)})):(Td(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&Ad(i.componentMainType,i.componentIndex,t),H1(n,e))}function hE(n,e,t){process.env.NODE_ENV!=="production"&&!Bi(n)&&me("param should be highDownDispatcher"),j1(t);var i=rt(n),o=kd(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;o?C(o,function(r){return W1(r,e)}):W1(n,e)}function pE(n,e,t){if(Nd(e)){var i=e.dataType,o=n.getData(i),r=Mo(o,e);B(r)||(r=[r]),n[e.type===ps?"toggleSelect":e.type===hs?"select":"unselect"](r,i)}}function q1(n){var e=n.getAllData();C(e,function(t){var i=t.data,o=t.type;i.eachItemGraphicEl(function(r,a){n.isSelected(a,o)?Y1(r):X1(r)})})}function dE(n){var e=[];return n.eachSeries(function(t){var i=t.getAllData();C(i,function(o){o.data;var r=o.type,a=t.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:t.seriesIndex};r!=null&&(s.dataType=r),e.push(s)}})}),e}function Ro(n,e,t){zo(n,!0),hi(n,Vo),Ld(n,e,t)}function fE(n){zo(n,!1)}function Ut(n,e,t,i){i?fE(n):Ro(n,e,t)}function Ld(n,e,t){var i=rt(n);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var $1=["emphasis","blur","select"],gE={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function pe(n,e,t,i){t=t||"itemStyle";for(var o=0;o<$1.length;o++){var r=$1[o],a=e.getModel([r,t]),s=n.ensureState(r);s.style=i?i(a):a[gE[t]]()}}function zo(n,e){var t=e===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function Bi(n){return!!(n&&n.__highDownDispatcher)}function vE(n,e,t){var i=rt(n);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function yE(n){var e=O1[n];return e==null&&E1<=32&&(e=O1[n]=E1++),e}function Nd(n){var e=n.type;return e===hs||e===Au||e===ps}function K1(n){var e=n.type;return e===Po||e===Tu}function mE(n){var e=P1(n);e.normalFill=n.style.fill,e.normalStroke=n.style.stroke;var t=n.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Wr=Hn.CMD,xE=[[],[],[]],J1=Math.sqrt,_E=Math.atan2;function Q1(n,e){if(e){var t=n.data,i=n.len(),o,r,a,s,l,u,c=Wr.M,h=Wr.C,p=Wr.L,d=Wr.R,f=Wr.A,g=Wr.Q;for(a=0,s=0;a<i;){switch(o=t[a++],s=a,r=0,o){case c:r=1;break;case p:r=1;break;case h:r=3;break;case g:r=2;break;case f:var v=e[4],y=e[5],m=J1(e[0]*e[0]+e[1]*e[1]),x=J1(e[2]*e[2]+e[3]*e[3]),_=_E(-e[1]/x,e[0]/m);t[a]*=m,t[a++]+=v,t[a]*=x,t[a++]+=y,t[a++]*=m,t[a++]*=x,t[a++]+=_,t[a++]+=_,a+=2,s=a;break;case d:u[0]=t[a++],u[1]=t[a++],ce(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[a++],u[1]+=t[a++],ce(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<r;l++){var w=xE[l];w[0]=t[a++],w[1]=t[a++],ce(w,w,e),t[s++]=w[0],t[s++]=w[1]}}n.increaseVersion()}}var Ed=Math.sqrt,Nu=Math.sin,Eu=Math.cos,ds=Math.PI;function tx(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Od(n,e){return(n[0]*e[0]+n[1]*e[1])/(tx(n)*tx(e))}function ex(n,e){return(n[0]*e[1]<n[1]*e[0]?-1:1)*Math.acos(Od(n,e))}function nx(n,e,t,i,o,r,a,s,l,u,c){var h=l*(ds/180),p=Eu(h)*(n-t)/2+Nu(h)*(e-i)/2,d=-1*Nu(h)*(n-t)/2+Eu(h)*(e-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=Ed(f),s*=Ed(f));var g=(o===r?-1:1)*Ed((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,v=g*a*d/s,y=g*-s*p/a,m=(n+t)/2+Eu(h)*v-Nu(h)*y,x=(e+i)/2+Nu(h)*v+Eu(h)*y,_=ex([1,0],[(p-v)/a,(d-y)/s]),w=[(p-v)/a,(d-y)/s],b=[(-1*p-v)/a,(-1*d-y)/s],S=ex(w,b);if(Od(w,b)<=-1&&(S=ds),Od(w,b)>=1&&(S=0),S<0){var M=Math.round(S/ds*1e6)/1e6;S=ds*2+M%2*ds}c.addData(u,m,x,a,s,_,S,h,r)}var bE=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,wE=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function SE(n){var e=new Hn;if(!n)return e;var t=0,i=0,o=t,r=i,a,s=Hn.CMD,l=n.match(bE);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,d=c.match(wE)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var v=0;v<f;){var y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,M=t,I=i,D=void 0,T=void 0;switch(h){case"l":t+=d[v++],i+=d[v++],p=s.L,e.addData(p,t,i);break;case"L":t=d[v++],i=d[v++],p=s.L,e.addData(p,t,i);break;case"m":t+=d[v++],i+=d[v++],p=s.M,e.addData(p,t,i),o=t,r=i,h="l";break;case"M":t=d[v++],i=d[v++],p=s.M,e.addData(p,t,i),o=t,r=i,h="L";break;case"h":t+=d[v++],p=s.L,e.addData(p,t,i);break;case"H":t=d[v++],p=s.L,e.addData(p,t,i);break;case"v":i+=d[v++],p=s.L,e.addData(p,t,i);break;case"V":i=d[v++],p=s.L,e.addData(p,t,i);break;case"C":p=s.C,e.addData(p,d[v++],d[v++],d[v++],d[v++],d[v++],d[v++]),t=d[v-2],i=d[v-1];break;case"c":p=s.C,e.addData(p,d[v++]+t,d[v++]+i,d[v++]+t,d[v++]+i,d[v++]+t,d[v++]+i),t+=d[v-2],i+=d[v-1];break;case"S":y=t,m=i,D=e.len(),T=e.data,a===s.C&&(y+=t-T[D-4],m+=i-T[D-3]),p=s.C,M=d[v++],I=d[v++],t=d[v++],i=d[v++],e.addData(p,y,m,M,I,t,i);break;case"s":y=t,m=i,D=e.len(),T=e.data,a===s.C&&(y+=t-T[D-4],m+=i-T[D-3]),p=s.C,M=t+d[v++],I=i+d[v++],t+=d[v++],i+=d[v++],e.addData(p,y,m,M,I,t,i);break;case"Q":M=d[v++],I=d[v++],t=d[v++],i=d[v++],p=s.Q,e.addData(p,M,I,t,i);break;case"q":M=d[v++]+t,I=d[v++]+i,t+=d[v++],i+=d[v++],p=s.Q,e.addData(p,M,I,t,i);break;case"T":y=t,m=i,D=e.len(),T=e.data,a===s.Q&&(y+=t-T[D-4],m+=i-T[D-3]),t=d[v++],i=d[v++],p=s.Q,e.addData(p,y,m,t,i);break;case"t":y=t,m=i,D=e.len(),T=e.data,a===s.Q&&(y+=t-T[D-4],m+=i-T[D-3]),t+=d[v++],i+=d[v++],p=s.Q,e.addData(p,y,m,t,i);break;case"A":x=d[v++],_=d[v++],w=d[v++],b=d[v++],S=d[v++],M=t,I=i,t=d[v++],i=d[v++],p=s.A,nx(M,I,t,i,b,S,x,_,w,p,e);break;case"a":x=d[v++],_=d[v++],w=d[v++],b=d[v++],S=d[v++],M=t,I=i,t+=d[v++],i+=d[v++],p=s.A,nx(M,I,t,i,b,S,x,_,w,p,e);break}}(h==="z"||h==="Z")&&(p=s.Z,e.addData(p),t=o,i=r),a=p}return e.toStatic(),e}var ix=function(n){zt(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(mt);function ox(n){return n.setData!=null}function rx(n,e){var t=SE(n),i=R({},e);return i.buildPath=function(o){if(ox(o)){o.setData(t.data);var r=o.getContext();r&&o.rebuildPath(r,1)}else{var r=o;t.rebuildPath(r,1)}},i.applyTransform=function(o){Q1(t,o),this.dirtyShape()},i}function ax(n,e){return new ix(rx(n,e))}function ME(n,e){var t=rx(n,e),i=function(o){zt(r,o);function r(a){var s=o.call(this,a)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return r}(ix);return i}function IE(n,e){for(var t=[],i=n.length,o=0;o<i;o++){var r=n[o];t.push(r.getUpdatedPathProxy(!0))}var a=new mt(e);return a.createPathProxy(),a.buildPath=function(s){if(ox(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function Pd(n,e){e=e||{};var t=new mt;return n.shape&&t.setShape(n.shape),t.setStyle(n.style),e.bakeTransform?Q1(t.path,n.getComputedTransform()):e.toLocal?t.setLocalTransform(n.getComputedTransform()):t.copyTransform(n),t.buildPath=n.buildPath,t.applyTransform=t.applyTransform,t.z=n.z,t.z2=n.z2,t.zlevel=n.zlevel,t}var CE=function(){function n(){this.cx=0,this.cy=0,this.r=0}return n}(),sx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new CE},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e}(mt);sx.prototype.type="circle";const Wn=sx;var DE=function(){function n(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return n}(),lx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new DE},e.prototype.buildPath=function(t,i){var o=.5522848,r=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*o,c=l*o;t.moveTo(r-s,a),t.bezierCurveTo(r-s,a-c,r-u,a-l,r,a-l),t.bezierCurveTo(r+u,a-l,r+s,a-c,r+s,a),t.bezierCurveTo(r+s,a+c,r+u,a+l,r,a+l),t.bezierCurveTo(r-u,a+l,r-s,a+c,r-s,a),t.closePath()},e}(mt);lx.prototype.type="ellipse";const Vd=lx;var ux=Math.PI,Rd=ux*2,Bo=Math.sin,Ur=Math.cos,TE=Math.acos,xe=Math.atan2,cx=Math.abs,fs=Math.sqrt,gs=Math.max,Un=Math.min,Sn=1e-4;function AE(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=h*l-c*u;if(!(p*p<Sn))return p=(c*(e-r)-h*(n-o))/p,[n+p*l,e+p*u]}function Ou(n,e,t,i,o,r,a){var s=n-t,l=e-i,u=(a?r:-r)/fs(s*s+l*l),c=u*l,h=-u*s,p=n+c,d=e+h,f=t+c,g=i+h,v=(p+f)/2,y=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,w=o-r,b=p*g-f*d,S=(x<0?-1:1)*fs(gs(0,w*w*_-b*b)),M=(b*x-m*S)/_,I=(-b*m-x*S)/_,D=(b*x+m*S)/_,T=(-b*m+x*S)/_,A=M-v,k=I-y,L=D-v,N=T-y;return A*A+k*k>L*L+N*N&&(M=D,I=T),{cx:M,cy:I,x0:-c,y0:-h,x1:M*(o/w-1),y1:I*(o/w-1)}}function kE(n){var e;if(B(n)){var t=n.length;if(!t)return n;t===1?e=[n[0],n[0],0,0]:t===2?e=[n[0],n[0],n[1],n[1]]:t===3?e=n.concat(n[2]):e=n}else e=[n,n,n,n];return e}function LE(n,e){var t,i=gs(e.r,0),o=gs(e.r0||0,0),r=i>0,a=o>0;if(!(!r&&!a)){if(r||(i=o,o=0),o>i){var s=i;i=o,o=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,h=e.cy,p=!!e.clockwise,d=cx(u-l),f=d>Rd&&d%Rd;if(f>Sn&&(d=f),!(i>Sn))n.moveTo(c,h);else if(d>Rd-Sn)n.moveTo(c+i*Ur(l),h+i*Bo(l)),n.arc(c,h,i,l,u,!p),o>Sn&&(n.moveTo(c+o*Ur(u),h+o*Bo(u)),n.arc(c,h,o,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0,S=void 0,M=void 0,I=void 0,D=void 0,T=void 0,A=void 0,k=void 0,L=void 0,N=i*Ur(l),E=i*Bo(l),V=o*Ur(u),O=o*Bo(u),z=d>Sn;if(z){var F=e.cornerRadius;F&&(t=kE(F),g=t[0],v=t[1],y=t[2],m=t[3]);var W=cx(i-o)/2;if(x=Un(W,y),_=Un(W,m),w=Un(W,g),b=Un(W,v),I=S=gs(x,_),D=M=gs(w,b),(S>Sn||M>Sn)&&(T=i*Ur(u),A=i*Bo(u),k=o*Ur(l),L=o*Bo(l),d<ux)){var Z=AE(N,E,k,L,T,A,V,O);if(Z){var Q=N-Z[0],tt=E-Z[1],ft=T-Z[0],_t=A-Z[1],gt=1/Bo(TE((Q*ft+tt*_t)/(fs(Q*Q+tt*tt)*fs(ft*ft+_t*_t)))/2),nt=fs(Z[0]*Z[0]+Z[1]*Z[1]);I=Un(S,(i-nt)/(gt+1)),D=Un(M,(o-nt)/(gt-1))}}}if(!z)n.moveTo(c+N,h+E);else if(I>Sn){var vt=Un(y,I),st=Un(m,I),q=Ou(k,L,N,E,i,vt,p),lt=Ou(T,A,V,O,i,st,p);n.moveTo(c+q.cx+q.x0,h+q.cy+q.y0),I<S&&vt===st?n.arc(c+q.cx,h+q.cy,I,xe(q.y0,q.x0),xe(lt.y0,lt.x0),!p):(vt>0&&n.arc(c+q.cx,h+q.cy,vt,xe(q.y0,q.x0),xe(q.y1,q.x1),!p),n.arc(c,h,i,xe(q.cy+q.y1,q.cx+q.x1),xe(lt.cy+lt.y1,lt.cx+lt.x1),!p),st>0&&n.arc(c+lt.cx,h+lt.cy,st,xe(lt.y1,lt.x1),xe(lt.y0,lt.x0),!p))}else n.moveTo(c+N,h+E),n.arc(c,h,i,l,u,!p);if(!(o>Sn)||!z)n.lineTo(c+V,h+O);else if(D>Sn){var vt=Un(g,D),st=Un(v,D),q=Ou(V,O,T,A,o,-st,p),lt=Ou(N,E,k,L,o,-vt,p);n.lineTo(c+q.cx+q.x0,h+q.cy+q.y0),D<M&&vt===st?n.arc(c+q.cx,h+q.cy,D,xe(q.y0,q.x0),xe(lt.y0,lt.x0),!p):(st>0&&n.arc(c+q.cx,h+q.cy,st,xe(q.y0,q.x0),xe(q.y1,q.x1),!p),n.arc(c,h,o,xe(q.cy+q.y1,q.cx+q.x1),xe(lt.cy+lt.y1,lt.cx+lt.x1),p),vt>0&&n.arc(c+lt.cx,h+lt.cy,vt,xe(lt.y1,lt.x1),xe(lt.y0,lt.x0),!p))}else n.lineTo(c+V,h+O),n.arc(c,h,o,u,l,p)}n.closePath()}}}var NE=function(){function n(){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 n}(),hx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new NE},e.prototype.buildPath=function(t,i){LE(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(mt);hx.prototype.type="sector";const Ve=hx;var EE=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return n}(),px=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new EE},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.PI*2;t.moveTo(o+i.r,r),t.arc(o,r,i.r,0,a,!1),t.moveTo(o+i.r0,r),t.arc(o,r,i.r0,0,a,!0)},e}(mt);px.prototype.type="ring";const Pu=px;function OE(n,e,t,i){var o=[],r=[],a=[],s=[],l,u,c,h;if(i){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,d=n.length;p<d;p++)Ti(c,c,n[p]),Ai(h,h,n[p]);Ti(c,c,i[0]),Ai(h,h,i[1])}for(var p=0,d=n.length;p<d;p++){var f=n[p];if(t)l=n[p?p-1:d-1],u=n[(p+1)%d];else if(p===0||p===d-1){o.push(ni(n[p]));continue}else l=n[p-1],u=n[p+1];po(r,u,l),Ul(r,r,e);var g=ap(f,l),v=ap(f,u),y=g+v;y!==0&&(g/=y,v/=y),Ul(a,r,-g),Ul(s,r,v);var m=Em([],f,a),x=Em([],f,s);i&&(Ai(m,m,c),Ti(m,m,h),Ai(x,x,c),Ti(x,x,h)),o.push(m),o.push(x)}return t&&o.push(o.shift()),o}function dx(n,e,t){var i=e.smooth,o=e.points;if(o&&o.length>=2){if(i){var r=OE(o,i,t,e.smoothConstraint);n.moveTo(o[0][0],o[0][1]);for(var a=o.length,s=0;s<(t?a:a-1);s++){var l=r[s*2],u=r[s*2+1],c=o[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{n.moveTo(o[0][0],o[0][1]);for(var s=1,h=o.length;s<h;s++)n.lineTo(o[s][0],o[s][1])}t&&n.closePath()}}var PE=function(){function n(){this.points=null,this.smooth=0,this.smoothConstraint=null}return n}(),fx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new PE},e.prototype.buildPath=function(t,i){dx(t,i,!0)},e}(mt);fx.prototype.type="polygon";const Re=fx;var VE=function(){function n(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return n}(),gx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VE},e.prototype.buildPath=function(t,i){dx(t,i,!1)},e}(mt);gx.prototype.type="polyline";const ze=gx;var RE={},zE=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}(),vx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(t,i){var o,r,a,s;if(this.subPixelOptimize){var l=m1(RE,i,this.style);o=l.x1,r=l.y1,a=l.x2,s=l.y2}else o=i.x1,r=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(o,r),u<1&&(a=o*(1-u)+a*u,s=r*(1-u)+s*u),t.lineTo(a,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e}(mt);vx.prototype.type="line";const ue=vx;var Be=[],BE=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return n}();function yx(n,e,t){var i=n.cpx2,o=n.cpy2;return i!=null||o!=null?[(t?t0:oe)(n.x1,n.cpx1,n.cpx2,n.x2,e),(t?t0:oe)(n.y1,n.cpy1,n.cpy2,n.y2,e)]:[(t?wp:le)(n.x1,n.cpx1,n.x2,e),(t?wp:le)(n.y1,n.cpy1,n.y2,e)]}var mx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new BE},e.prototype.buildPath=function(t,i){var o=i.x1,r=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,c=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(t.moveTo(o,r),c==null||h==null?(p<1&&(Xa(o,l,a,p,Be),l=Be[1],a=Be[2],Xa(r,u,s,p,Be),u=Be[1],s=Be[2]),t.quadraticCurveTo(l,u,a,s)):(p<1&&(Ni(o,l,c,a,p,Be),l=Be[1],c=Be[2],a=Be[3],Ni(r,u,h,s,p,Be),u=Be[1],h=Be[2],s=Be[3]),t.bezierCurveTo(l,u,c,h,a,s)))},e.prototype.pointAt=function(t){return yx(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=yx(this.shape,t,!0);return Tr(i,i)},e}(mt);mx.prototype.type="bezier-curve";const Vu=mx;var GE=function(){function n(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),xx=function(n){zt(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new GE},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,c=Math.cos(s),h=Math.sin(s);t.moveTo(c*a+o,h*a+r),t.arc(o,r,a,s,l,!u)},e}(mt);xx.prototype.type="arc";const zd=xx;var FE=function(n){zt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),o=0;o<t.length;o++)i=i||t[o].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),o=0;o<t.length;o++)t[o].path||t[o].createPathProxy(),t[o].path.setScale(i[0],i[1],t[o].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var o=i.paths||[],r=0;r<o.length;r++)o[r].buildPath(t,o[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),mt.prototype.getBoundingRect.call(this)},e}(mt);const Bd=FE;var HE=function(){function n(e){this.colorStops=e||[]}return n.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},n}();const _x=HE;var WE=function(n){zt(e,n);function e(t,i,o,r,a,s){var l=n.call(this,a)||this;return l.x=t??0,l.y=i??0,l.x2=o??1,l.y2=r??0,l.type="linear",l.global=s||!1,l}return e}(_x);const vs=WE;var UE=function(n){zt(e,n);function e(t,i,o,r,a){var s=n.call(this,r)||this;return s.x=t??.5,s.y=i??.5,s.r=o??.5,s.type="radial",s.global=a||!1,s}return e}(_x);const bx=UE;var Go=[0,0],Fo=[0,0],Ru=new ct,zu=new ct,YE=function(){function n(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new ct;for(var i=0;i<2;i++)this._axes[i]=new ct;e&&this.fromBoundingRect(e,t)}return n.prototype.fromBoundingRect=function(e,t){var i=this._corners,o=this._axes,r=e.x,a=e.y,s=r+e.width,l=a+e.height;if(i[0].set(r,a),i[1].set(s,a),i[2].set(s,l),i[3].set(r,l),t)for(var u=0;u<4;u++)i[u].transform(t);ct.sub(o[0],i[1],i[0]),ct.sub(o[1],i[3],i[0]),o[0].normalize(),o[1].normalize();for(var u=0;u<2;u++)this._origin[u]=o[u].dot(i[0])},n.prototype.intersect=function(e,t){var i=!0,o=!t;return Ru.set(1/0,1/0),zu.set(0,0),!this._intersectCheckOneSide(this,e,Ru,zu,o,1)&&(i=!1,o)||!this._intersectCheckOneSide(e,this,Ru,zu,o,-1)&&(i=!1,o)||o||ct.copy(t,i?Ru:zu),i},n.prototype._intersectCheckOneSide=function(e,t,i,o,r,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Go),this._getProjMinMaxOnAxis(l,t._corners,Fo),Go[1]<Fo[0]||Go[0]>Fo[1]){if(s=!1,r)return s;var c=Math.abs(Fo[0]-Go[1]),h=Math.abs(Go[0]-Fo[1]);Math.min(c,h)>o.len()&&(c<h?ct.scale(o,u,-c*a):ct.scale(o,u,h*a))}else if(i){var c=Math.abs(Fo[0]-Go[1]),h=Math.abs(Go[0]-Fo[1]);Math.min(c,h)<i.len()&&(c<h?ct.scale(i,u,c*a):ct.scale(i,u,-h*a))}}return s},n.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var o=this._axes[e],r=this._origin,a=t[0].dot(o)+r[e],s=a,l=a,u=1;u<t.length;u++){var c=t[u].dot(o)+r[e];s=Math.min(c,s),l=Math.max(c,l)}i[0]=s,i[1]=l},n}();const Bu=YE;var XE=[],ZE=function(n){zt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,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(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var o=0;o<t.length;o++)this.addDisplayable(t[o],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new pt(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var o=this._displayables[i],r=o.getBoundingRect().clone();o.needLocalTransform()&&r.applyTransform(o.getLocalTransform(XE)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(r.contain(o[0],o[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(t,i))return!0}return!1},e}(tn);const jE=ZE;var Sx=Mt();function Yr(n,e,t,i,o){var r;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();r=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=n==="update";if(s){var u=void 0,c=void 0,h=void 0;i?(u=ut(i.duration,200),c=ut(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),r&&(r.duration!=null&&(u=r.duration),r.easing!=null&&(c=r.easing),r.delay!=null&&(h=r.delay)),$(h)&&(h=h(t,o)),$(u)&&(u=u(t));var p={duration:u||0,delay:h,easing:c};return p}else return null}function Gd(n,e,t,i,o,r,a){var s=!1,l;$(o)?(a=r,r=o,o=null):K(o)&&(r=o.cb,a=o.during,s=o.isFrom,l=o.removeOpt,o=o.dataIndex);var u=n==="leave";u||e.stopAnimation("leave");var c=Yr(n,i,o,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(c&&c.duration>0){var h=c.duration,p=c.delay,d=c.easing,f={duration:h,delay:p||0,easing:d,done:r,force:!!r||!!a,setToFinal:!u,scope:n,during:a};s?e.animateFrom(t,f):e.animateTo(t,f)}else e.stopAnimation(),!s&&e.attr(t),a&&a(1),r&&r()}function Tt(n,e,t,i,o,r){Gd("update",n,e,t,i,o,r)}function Bt(n,e,t,i,o,r){Gd("enter",n,e,t,i,o,r)}function Xr(n){if(!n.__zr)return!0;for(var e=0;e<n.animators.length;e++){var t=n.animators[e];if(t.scope==="leave")return!0}return!1}function Gi(n,e,t,i,o,r){Xr(n)||Gd("leave",n,e,t,i,o,r)}function Mx(n,e,t,i){n.removeTextContent(),n.removeTextGuideLine(),Gi(n,{style:{opacity:0}},e,t,i)}function ys(n,e,t){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(o){o.isGroup||Mx(o,e,t,i)}):Mx(n,e,t,i)}function Mn(n){Sx(n).oldStyle=n.style}function qE(n){return Sx(n).oldStyle}var Gu=Math.max,Fu=Math.min,Fd={};function $E(n){return mt.extend(n)}var KE=ME;function JE(n,e){return KE(n,e)}function In(n,e){Fd[n]=e}function Hd(n){if(Fd.hasOwnProperty(n))return Fd[n]}function Hu(n,e,t,i){var o=ax(n,e);return t&&(i==="center"&&(t=Cx(t,o.getBoundingRect())),Dx(o,t)),o}function Ix(n,e,t){var i=new he({style:{image:n,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(o){if(t==="center"){var r={width:o.width,height:o.height};i.setStyle(Cx(e,r))}}});return i}function Cx(n,e){var t=e.width/e.height,i=n.height*t,o;i<=n.width?o=n.height:(i=n.width,o=i/t);var r=n.x+n.width/2,a=n.y+n.height/2;return{x:r-i/2,y:a-o/2,width:i,height:o}}var nn=IE;function Dx(n,e){if(n.applyTransform){var t=n.getBoundingRect(),i=t.calculateTransform(e);n.applyTransform(i)}}function Zr(n,e){return m1(n,n,{lineWidth:e}),n}function QE(n){return x1(n.shape,n.shape,n.style),n}var Wu=Oo;function Ho(n,e){for(var t=Xl([]);n&&n!==e;)oi(t,n.getLocalTransform(),t),n=n.parent;return t}function Cn(n,e,t){return e&&!ye(e)&&(e=si.getLocalTransform(e)),t&&(e=kr([],e)),ce([],n,e)}function Uu(n,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),o=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),r=[n==="left"?-i:n==="right"?i:0,n==="top"?-o:n==="bottom"?o:0];return r=Cn(r,e,t),Math.abs(r[0])>Math.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Tx(n){return!n.isGroup}function tO(n){return n.shape!=null}function ms(n,e,t){if(!n||!e)return;function i(a){var s={};return a.traverse(function(l){Tx(l)&&l.anid&&(s[l.anid]=l)}),s}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return tO(a)&&(s.shape=R({},a.shape)),s}var r=i(n);e.traverse(function(a){if(Tx(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),Tt(a,l,t,rt(a).dataIndex)}}})}function Ax(n,e){return G(n,function(t){var i=t[0];i=Gu(i,e.x),i=Fu(i,e.x+e.width);var o=t[1];return o=Gu(o,e.y),o=Fu(o,e.y+e.height),[i,o]})}function eO(n,e){var t=Gu(n.x,e.x),i=Fu(n.x+n.width,e.x+e.width),o=Gu(n.y,e.y),r=Fu(n.y+n.height,e.y+e.height);if(i>=t&&r>=o)return{x:t,y:o,width:i-t,height:r-o}}function xs(n,e,t){var i=R({rectHover:!0},e),o=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(o.image=n.slice(8),et(o,t),new he(i)):Hu(n.replace("path://",""),i,t,"center")}function _s(n,e,t,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(kx(n,e,t,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function kx(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=Wd(c,h,l,u);if(nO(p))return!1;var d=n-o,f=e-r,g=Wd(d,f,l,u)/p;if(g<0||g>1)return!1;var v=Wd(d,f,c,h)/p;return!(v<0||v>1)}function Wd(n,e,t,i){return n*i-t*e}function nO(n){return n<=1e-6&&n>=-1e-6}function jr(n){var e=n.itemTooltipOption,t=n.componentModel,i=n.itemName,o=U(e)?{formatter:e}:e,r=t.mainType,a=t.componentIndex,s={componentType:r,name:i,$vars:["name"]};s[r+"Index"]=a;var l=n.formatterParamsExtra;l&&C(xt(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=rt(n.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:i,option:et({content:i,formatterParams:s},o)}}function Lx(n,e){var t;n.isGroup&&(t=e(n)),t||n.traverse(e)}function Fi(n,e){if(n)if(B(n))for(var t=0;t<n.length;t++)Lx(n[t],e);else Lx(n,e)}In("circle",Wn),In("ellipse",Vd),In("sector",Ve),In("ring",Pu),In("polygon",Re),In("polyline",ze),In("rect",It),In("line",ue),In("bezierCurve",Vu),In("arc",zd);const bs=Object.freeze(Object.defineProperty({__proto__:null,Arc:zd,BezierCurve:Vu,BoundingRect:pt,Circle:Wn,CompoundPath:Bd,Ellipse:Vd,Group:ot,Image:he,IncrementalDisplayable:jE,Line:ue,LinearGradient:vs,OrientedBoundingRect:Bu,Path:mt,Point:ct,Polygon:Re,Polyline:ze,RadialGradient:bx,Rect:It,Ring:Pu,Sector:Ve,Text:Dt,applyTransform:Cn,clipPointsByRect:Ax,clipRectByRect:eO,createIcon:xs,extendPath:JE,extendShape:$E,getShapeClass:Hd,getTransform:Ho,groupTransition:ms,initProps:Bt,isElementRemoved:Xr,lineLineIntersect:kx,linePolygonIntersect:_s,makeImage:Ix,makePath:Hu,mergePath:nn,registerShape:In,removeElement:Gi,removeElementWithFadeOut:ys,resizePath:Dx,setTooltipConfig:jr,subPixelOptimize:Wu,subPixelOptimizeLine:Zr,subPixelOptimizeRect:QE,transformDirection:Uu,traverseElements:Fi,updateProps:Tt},Symbol.toStringTag,{value:"Module"}));var Yu={};function Nx(n,e){for(var t=0;t<Ce.length;t++){var i=Ce[t],o=e[i],r=n.ensureState(i);r.style=r.style||{},r.style.text=o}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:e.normal}),n.useStates(a,!0)}function Ud(n,e,t){var i=n.labelFetcher,o=n.labelDataIndex,r=n.labelDimIndex,a=e.normal,s;i&&(s=i.getFormattedLabel(o,"normal",null,r,a&&a.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=$(n.defaultText)?n.defaultText(o,n,t):n.defaultText);for(var l={normal:s},u=0;u<Ce.length;u++){var c=Ce[u],h=e[c];l[c]=ut(i?i.getFormattedLabel(o,c,null,r,h&&h.get("formatter")):null,s)}return l}function de(n,e,t,i){t=t||Yu;for(var o=n instanceof Dt,r=!1,a=0;a<cs.length;a++){var s=e[cs[a]];if(s&&s.getShallow("show")){r=!0;break}}var l=o?n:n.getTextContent();if(r){o||(l||(l=new Dt,n.setTextContent(l)),n.stateProxy&&(l.stateProxy=n.stateProxy));var u=Ud(t,e),c=e.normal,h=!!c.getShallow("show"),p=Ot(c,i&&i.normal,t,!1,!o);p.text=u.normal,o||n.setTextConfig(Xu(c,t,!1));for(var a=0;a<Ce.length;a++){var d=Ce[a],s=e[d];if(s){var f=l.ensureState(d),g=!!ut(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=Ot(s,i&&i[d],t,!0,!o),f.style.text=u[d],!o){var v=n.ensureState(d);v.textConfig=Xu(s,t,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),t.enableTextSetter&&(qr(l).setLabelText=function(y){var m=Ud(t,e,y);Nx(l,m)})}else l&&(l.ignore=!0);n.dirty()}function re(n,e){e=e||"label";for(var t={normal:n.getModel(e)},i=0;i<Ce.length;i++){var o=Ce[i];t[o]=n.getModel([o,e])}return t}function Ot(n,e,t,i,o){var r={};return iO(r,n,t,i,o),e&&R(r,e),r}function Xu(n,e,t){e=e||{};var i={},o,r=n.getShallow("rotate"),a=ut(n.getShallow("distance"),t?null:5),s=n.getShallow("offset");return o=n.getShallow("position")||(t?null:"inside"),o==="outside"&&(o=e.defaultOutsidePosition||"top"),o!=null&&(i.position=o),s!=null&&(i.offset=s),r!=null&&(r*=Math.PI/180,i.rotation=r),a!=null&&(i.distance=a),i.outsideFill=n.get("color")==="inherit"?e.inheritColor||null:"auto",i}function iO(n,e,t,i,o){t=t||Yu;var r=e.ecModel,a=r&&r.option.textStyle,s=oO(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);Vx(l[u]={},c,a,t,i,o,!1,!0)}}l&&(n.rich=l);var h=e.get("overflow");h&&(n.overflow=h);var p=e.get("minMargin");p!=null&&(n.margin=p),Vx(n,e,a,t,i,o,!0,!1)}function oO(n){for(var e;n&&n!==n.ecModel;){var t=(n.option||Yu).rich;if(t){e=e||{};for(var i=xt(t),o=0;o<i.length;o++){var r=i[o];e[r]=1}}n=n.parentModel}return e}var Ex=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Ox=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Px=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Vx(n,e,t,i,o,r,a,s){t=!o&&t||Yu;var l=i&&i.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=ut(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Jt("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Jt("color: 'auto'","color: 'inherit'"),l?c=l:c=null),r||(u=u||t.color,c=c||t.textBorderColor),u!=null&&(n.fill=u),c!=null&&(n.stroke=c);var p=ut(e.getShallow("textBorderWidth"),t.textBorderWidth);p!=null&&(n.lineWidth=p);var d=ut(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(n.lineDash=d);var f=ut(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);f!=null&&(n.lineDashOffset=f),!o&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(n.opacity=h),!o&&!r&&n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var g=0;g<Ex.length;g++){var v=Ex[g],y=ut(e.getShallow(v),t[v]);y!=null&&(n[v]=y)}for(var g=0;g<Ox.length;g++){var v=Ox[g],y=e.getShallow(v);y!=null&&(n[v]=y)}if(n.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(n.verticalAlign=m)}if(!a||!i.disableBox){for(var g=0;g<Px.length;g++){var v=Px[g],y=e.getShallow(v);y!=null&&(n[v]=y)}var x=e.getShallow("borderType");x!=null&&(n.borderDash=x),(n.backgroundColor==="auto"||n.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.backgroundColor==="auto"&&Jt("backgroundColor: 'auto'","backgroundColor: 'inherit'"),n.backgroundColor=l),(n.borderColor==="auto"||n.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&n.borderColor==="auto"&&Jt("borderColor: 'auto'","borderColor: 'inherit'"),n.borderColor=l)}}function Rx(n,e){var t=e&&e.getModel("textStyle");return yn([n.fontStyle||t&&t.getShallow("fontStyle")||"",n.fontWeight||t&&t.getShallow("fontWeight")||"",(n.fontSize||t&&t.getShallow("fontSize")||12)+"px",n.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var qr=Mt();function zx(n,e,t,i){if(n){var o=qr(n);o.prevValue=o.value,o.value=t;var r=e.normal;o.valueAnimation=r.get("valueAnimation"),o.valueAnimation&&(o.precision=r.get("precision"),o.defaultInterpolatedText=i,o.statesModels=e)}}function Bx(n,e,t,i,o){var r=qr(n);if(!r.valueAnimation||r.prevValue===r.value)return;var a=r.defaultInterpolatedText,s=ut(r.interpolatedValue,r.prevValue),l=r.value;function u(c){var h=t1(t,r.precision,s,l,c);r.interpolatedValue=c===1?null:h;var p=Ud({labelDataIndex:e,labelFetcher:o,defaultText:a?a(h):h+""},r.statesModels,h);Nx(n,p)}n.percent=0,(r.prevValue==null?Bt:Tt)(n,{percent:1},i,e,null,u)}var rO=["textStyle","color"],Yd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Xd=new Dt,aO=function(){function n(){}return n.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(rO):null)},n.prototype.getFont=function(){return Rx({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},n.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Yd.length;i++)t[Yd[i]]=this.getShallow(Yd[i]);return Xd.useStyle(t),Xd.update(),Xd.getBoundingRect()},n}();const sO=aO;var Gx=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],lO=Co(Gx),uO=function(){function n(){}return n.prototype.getLineStyle=function(e){return lO(this,e)},n}(),Fx=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],cO=Co(Fx),hO=function(){function n(){}return n.prototype.getItemStyle=function(e,t){return cO(this,e,t)},n}(),Wo=function(){function n(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return n.prototype.init=function(e,t,i){},n.prototype.mergeOption=function(e,t){ht(this.option,e,!0)},n.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},n.prototype.getShallow=function(e,t){var i=this.option,o=i==null?i:i[e];if(o==null&&!t){var r=this.parentModel;r&&(o=r.getShallow(e))}return o},n.prototype.getModel=function(e,t){var i=e!=null,o=i?this.parsePath(e):null,r=i?this._doGet(o):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(o)),new n(r,t,this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){var e=this.constructor;return new e(it(this.option))},n.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},n.prototype.resolveParentPath=function(e){return e},n.prototype.isAnimationEnabled=function(){if(!St.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var o=0;o<e.length&&!(e[o]&&(i=i&&typeof i=="object"?i[e[o]]:null,i==null));o++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},n}();rd(Wo),hN(Wo),$t(Wo,uO),$t(Wo,hO),$t(Wo,vN),$t(Wo,sO);const Pt=Wo;var pO=Math.round(Math.random()*10);function $r(n){return[n||"",pO++].join("_")}function dO(n){var e={};n.registerSubTypeDefaulter=function(t,i){var o=zn(t);e[o.main]=i},n.determineSubType=function(t,i){var o=i.type;if(!o){var r=zn(t).main;n.hasSubTypes(t)&&e[r]&&(o=e[r](i))}return o}}function fO(n,e){n.topologicalTravel=function(r,a,s,l){if(!r.length)return;var u=t(a),c=u.graph,h=u.noEntryList,p={};for(C(r,function(m){p[m]=!0});h.length;){var d=h.pop(),f=c[d],g=!!p[d];g&&(s.call(l,d,f.originalDeps.slice()),delete p[d]),C(f.successor,g?y:v)}C(p,function(){var m="";throw process.env.NODE_ENV!=="production"&&(m=Me("Circular dependency may exists: ",p,r,a)),new Error(m)});function v(m){c[m].entryCount--,c[m].entryCount===0&&h.push(m)}function y(m){p[m]=!0,v(m)}};function t(r){var a={},s=[];return C(r,function(l){var u=i(a,l),c=u.originalDeps=e(l),h=o(c,r);u.entryCount=h.length,u.entryCount===0&&s.push(l),C(h,function(p){dt(u.predecessor,p)<0&&u.predecessor.push(p);var d=i(a,p);dt(d.successor,p)<0&&d.successor.push(l)})}),{graph:a,noEntryList:s}}function i(r,a){return r[a]||(r[a]={predecessor:[],successor:[]}),r[a]}function o(r,a){var s=[];return C(r,function(l){dt(a,l)>=0&&s.push(l)}),s}}function Hi(n,e){return ht(ht({},n,!0),e,!0)}const gO={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},vO={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Zu="ZH",Zd="EN",ws=Zd,ju={},jd={},Hx=St.domSupported?function(){var n=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return n.indexOf(Zu)>-1?Zu:ws}():ws;function Wx(n,e){n=n.toUpperCase(),jd[n]=new Pt(e),ju[n]=e}function yO(n){if(U(n)){var e=ju[n.toUpperCase()]||{};return n===Zu||n===Zd?it(e):ht(it(e),it(ju[ws]),!1)}else return ht(it(n),it(ju[ws]),!1)}function qd(n){return jd[n]}function mO(){return jd[ws]}Wx(Zd,gO),Wx(Zu,vO);var $d=1e3,Kd=$d*60,Ss=Kd*60,on=Ss*24,Ux=on*365,Ms={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},qu="{yyyy}-{MM}-{dd}",Yx={year:"{yyyy}",month:"{yyyy}-{MM}",day:qu,hour:qu+" "+Ms.hour,minute:qu+" "+Ms.minute,second:qu+" "+Ms.second,millisecond:Ms.none},Jd=["year","month","day","hour","minute","second","millisecond"],Xx=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Wi(n,e){return n+="","0000".substr(0,e-n.length)+n}function Kr(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function xO(n){return n===Kr(n)}function _O(n){switch(n){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function $u(n,e,t,i){var o=Rn(n),r=o[Qd(t)](),a=o[Jr(t)]()+1,s=Math.floor((a-1)/3)+1,l=o[Ku(t)](),u=o["get"+(t?"UTC":"")+"Day"](),c=o[Is(t)](),h=(c-1)%12+1,p=o[Ju(t)](),d=o[Qu(t)](),f=o[tc(t)](),g=i instanceof Pt?i:qd(i||Hx)||mO(),v=g.getModel("time"),y=v.get("month"),m=v.get("monthAbbr"),x=v.get("dayOfWeek"),_=v.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,Wi(r%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,Wi(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Wi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Wi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Wi(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Wi(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Wi(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,Wi(f,3)).replace(/{S}/g,f+"")}function bO(n,e,t,i,o){var r=null;if(U(t))r=t;else if($(t))r=t(n.value,e,{level:n.level});else{var a=R({},Ms);if(n.level>0)for(var s=0;s<Jd.length;++s)a[Jd[s]]="{primary|"+a[Jd[s]]+"}";var l=t?t.inherit===!1?t:et(t,a):a,u=Zx(n.value,o);if(l[u])r=l[u];else if(l.inherit){for(var c=Xx.indexOf(u),s=c-1;s>=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(B(r)){var h=n.level==null?0:n.level>=0?n.level:r.length+n.level;h=Math.min(h,r.length-1),r=r[h]}}return $u(new Date(n.value),r,o,i)}function Zx(n,e){var t=Rn(n),i=t[Jr(e)]()+1,o=t[Ku(e)](),r=t[Is(e)](),a=t[Ju(e)](),s=t[Qu(e)](),l=t[tc(e)](),u=l===0,c=u&&s===0,h=c&&a===0,p=h&&r===0,d=p&&o===1,f=d&&i===1;return f?"year":d?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function jx(n,e,t){var i=Ct(n)?Rn(n):n;switch(e=e||Zx(n,t),e){case"year":return i[Qd(t)]();case"half-year":return i[Jr(t)]()>=6?1:0;case"quarter":return Math.floor((i[Jr(t)]()+1)/4);case"month":return i[Jr(t)]();case"day":return i[Ku(t)]();case"half-day":return i[Is(t)]()/24;case"hour":return i[Is(t)]();case"minute":return i[Ju(t)]();case"second":return i[Qu(t)]();case"millisecond":return i[tc(t)]()}}function Qd(n){return n?"getUTCFullYear":"getFullYear"}function Jr(n){return n?"getUTCMonth":"getMonth"}function Ku(n){return n?"getUTCDate":"getDate"}function Is(n){return n?"getUTCHours":"getHours"}function Ju(n){return n?"getUTCMinutes":"getMinutes"}function Qu(n){return n?"getUTCSeconds":"getSeconds"}function tc(n){return n?"getUTCMilliseconds":"getMilliseconds"}function wO(n){return n?"setUTCFullYear":"setFullYear"}function qx(n){return n?"setUTCMonth":"setMonth"}function $x(n){return n?"setUTCDate":"setDate"}function Kx(n){return n?"setUTCHours":"setHours"}function Jx(n){return n?"setUTCMinutes":"setMinutes"}function Qx(n){return n?"setUTCSeconds":"setSeconds"}function t_(n){return n?"setUTCMilliseconds":"setMilliseconds"}function e_(n){if(!ed(n))return U(n)?n:"-";var e=(n+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function n_(n,e){return n=(n||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var Qr=np;function tf(n,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(c){return c&&yn(c)?c:"-"}function r(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=n instanceof Date;if(a||s){var l=a?Rn(n):n;if(isNaN(+l)){if(s)return"-"}else return $u(l,i,t)}if(e==="ordinal")return zl(n)?o(n):Ct(n)&&r(n)?n+"":"-";var u=li(n);return r(u)?e_(u):zl(n)?o(n):typeof n=="boolean"?n+"":"-"}var i_=["a","b","c","d","e","f","g"],ef=function(n,e){return"{"+n+(e??"")+"}"};function o_(n,e,t){B(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=i_[r];n=n.replace(ef(a),ef(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];n=n.replace(ef(i_[l],s),t?Ee(u):u)}return n}function SO(n,e,t){return C(e,function(i,o){n=n.replace("{"+o+"}",t?Ee(i):i)}),n}function MO(n,e){var t=U(n)?{color:n,extraCssText:e}:n||{},i=t.color,o=t.type;e=t.extraCssText;var r=t.renderMode||"html";if(!i)return"";if(r==="html")return o==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ee(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ee(i)+";"+(e||"")+'"></span>';var a=t.markerId||"markerX";return{renderMode:r,content:"{"+a+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Uo(n,e){return e=e||"transparent",U(n)?n:K(n)&&n.colorStops&&(n.colorStops[0]||{}).color||e}function ec(n,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=n}else window.open(n,e)}var nc=C,r_=["left","right","top","bottom","width","height"],Yo=[["width","left","right"],["height","top","bottom"]];function nf(n,e,t,i,o){var r=0,a=0;i==null&&(i=1/0),o==null&&(o=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),h=e.childAt(u+1),p=h&&h.getBoundingRect(),d,f;if(n==="horizontal"){var g=c.width+(p?-p.x+c.x:0);d=r+g,d>i||l.newline?(r=0,d=g,a+=s+t,s=c.height):s=Math.max(s,c.height)}else{var v=c.height+(p?-p.y+c.y:0);f=a+v,f>o||l.newline?(r+=s+t,a=0,f=v,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),n==="horizontal"?r=d+t:a=f+t)})}var Xo=nf;at(nf,"vertical"),at(nf,"horizontal");function IO(n,e,t){var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o);return(isNaN(r)||isNaN(parseFloat(n.left)))&&(r=0),(isNaN(s)||isNaN(parseFloat(n.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(n.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(n.bottom)))&&(l=o),t=Qr(t||0),{width:Math.max(s-r-t[1]-t[3],0),height:Math.max(l-a-t[0]-t[2],0)}}function ie(n,e,t){t=Qr(t||0);var i=e.width,o=e.height,r=H(n.left,i),a=H(n.top,o),s=H(n.right,i),l=H(n.bottom,o),u=H(n.width,i),c=H(n.height,o),h=t[2]+t[0],p=t[1]+t[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(c)&&(c=o-l-h-a),d!=null&&(isNaN(u)&&isNaN(c)&&(d>i/o?u=i*.8:c=o*.8),isNaN(u)&&(u=d*c),isNaN(c)&&(c=u/d)),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-c-h),n.left||n.right){case"center":r=i/2-u/2-t[3];break;case"right":r=i-u-p;break}switch(n.top||n.bottom){case"middle":case"center":a=o/2-c/2-t[0];break;case"bottom":a=o-c-h;break}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(c)&&(c=o-h-a-(l||0));var f=new pt(r+t[3],a+t[0],u,c);return f.margin=t,f}function ic(n,e,t,i,o,r){var a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";if(r=r||n,r.x=n.x,r.y=n.y,!a&&!s)return!1;var u;if(l==="raw")u=n.type==="group"?new pt(0,0,+e.width||0,+e.height||0):n.getBoundingRect();else if(u=n.getBoundingRect(),n.needLocalTransform()){var c=n.getLocalTransform();u=u.clone(),u.applyTransform(c)}var h=ie(et({width:u.width,height:u.height},e),t,i),p=a?h.x-u.x:0,d=s?h.y-u.y:0;return l==="raw"?(r.x=p,r.y=d):(r.x+=p,r.y+=d),r===n&&n.markRedraw(),!0}function CO(n,e){return n[Yo[e][0]]!=null||n[Yo[e][1]]!=null&&n[Yo[e][2]]!=null}function Cs(n){var e=n.layoutMode||n.constructor.layoutMode;return K(e)?e:e?{type:e}:null}function Ui(n,e,t){var i=t&&t.ignoreSize;!B(i)&&(i=[i,i]);var o=a(Yo[0],0),r=a(Yo[1],1);u(Yo[0],n,o),u(Yo[1],n,r);function a(c,h){var p={},d=0,f={},g=0,v=2;if(nc(c,function(x){f[x]=n[x]}),nc(c,function(x){s(e,x)&&(p[x]=f[x]=e[x]),l(p,x)&&d++,l(f,x)&&g++}),i[h])return l(e,c[1])?f[c[2]]=null:l(e,c[2])&&(f[c[1]]=null),f;if(g===v||!d)return f;if(d>=v)return p;for(var y=0;y<c.length;y++){var m=c[y];if(!s(p,m)&&s(n,m)){p[m]=n[m];break}}return p}function s(c,h){return c.hasOwnProperty(h)}function l(c,h){return c[h]!=null&&c[h]!=="auto"}function u(c,h,p){nc(c,function(d){h[d]=p[d]})}}function ta(n){return a_({},n)}function a_(n,e){return e&&n&&nc(r_,function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var DO=Mt(),ea=function(n){P(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.uid=$r("ec_cpt_model"),r}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=Cs(this),r=o?ta(t):{},a=i.getTheme();ht(t,a.get(this.mainType)),ht(t,this.getDefaultOption()),o&&Ui(t,r,o)},e.prototype.mergeOption=function(t,i){ht(this.option,t,!0);var o=Cs(this);o&&Ui(this.option,t,o)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!lN(t))return t.defaultOption;var i=DO(this);if(!i.defaultOption){for(var o=[],r=t;r;){var a=r.prototype.defaultOption;a&&o.push(a),r=r.superClass}for(var s={},l=o.length-1;l>=0;l--)s=ht(s,o[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var o=t+"Index",r=t+"Id";return rs(this.ecModel,t,{index:this.get(o,!0),id:this.get(r,!0)},i)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Pt);n1(ea,Pt),xu(ea),dO(ea),fO(ea,TO);function TO(n){var e=[];return C(ea.getClassesByMainType(n),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=G(e,function(t){return zn(t).main}),n!=="dataset"&&dt(e,"dataset")<=0&&e.unshift("dataset"),e}const bt=ea;var s_="";typeof navigator<"u"&&(s_=navigator.platform||"");var na="rgba(0, 0, 0, 0.2)";const AO={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:na,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:na,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:na,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:na,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:na,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:na,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:s_.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 of=j(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),rn="original",_e="arrayRows",an="objectRows",Yn="keyedColumns",fi="typedArray",l_="unknown",Xn="column",ia="row",fe={Must:1,Might:2,Not:3},u_=Mt();function kO(n){u_(n).datasetMap=j()}function c_(n,e,t){var i={},o=af(e);if(!o||!n)return i;var r=[],a=[],s=e.ecModel,l=u_(s).datasetMap,u=o.uid+"_"+t.seriesLayoutBy,c,h;n=n.slice(),C(n,function(g,v){var y=K(g)?g:n[v]={name:g};y.type==="ordinal"&&c==null&&(c=v,h=f(y)),i[y.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(n,function(g,v){var y=g.name,m=f(g);if(c==null){var x=p.valueWayDim;d(i[y],x,m),d(a,x,m),p.valueWayDim+=m}else if(c===v)d(i[y],0,m),d(r,0,m);else{var x=p.categoryWayDim;d(i[y],x,m),d(a,x,m),p.categoryWayDim+=m}});function d(g,v,y){for(var m=0;m<y;m++)g.push(v+m)}function f(g){var v=g.dimsDef;return v?v.length:1}return r.length&&(i.itemName=r),a.length&&(i.seriesName=a),i}function rf(n,e,t){var i={},o=af(n);if(!o)return i;var r=e.sourceFormat,a=e.dimensionsDefine,s;(r===an||r===Yn)&&C(a,function(c,h){(K(c)?c.name:c)==="name"&&(s=h)});var l=function(){for(var c={},h={},p=[],d=0,f=Math.min(5,t);d<f;d++){var g=p_(e.data,r,e.seriesLayoutBy,a,e.startIndex,d);p.push(g);var v=g===fe.Not;if(v&&c.v==null&&d!==s&&(c.v=d),(c.n==null||c.n===c.v||!v&&p[c.n]===fe.Not)&&(c.n=d),y(c)&&p[c.n]!==fe.Not)return c;v||(g===fe.Might&&h.v==null&&d!==s&&(h.v=d),(h.n==null||h.n===h.v)&&(h.n=d))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(h)?h:null}();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function af(n){var e=n.get("data",!0);if(!e)return rs(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},Qt).models[0]}function LO(n){return!n.get("transform",!0)&&!n.get("fromTransformResult",!0)?[]:rs(n.ecModel,"dataset",{index:n.get("fromDatasetIndex",!0),id:n.get("fromDatasetId",!0)},Qt).models}function h_(n,e){return p_(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,e)}function p_(n,e,t,i,o,r){var a,s=5;if(Ne(n))return fe.Not;var l,u;if(i){var c=i[r];K(c)?(l=c.name,u=c.type):U(c)&&(l=c)}if(u!=null)return u==="ordinal"?fe.Must:fe.Not;if(e===_e){var h=n;if(t===ia){for(var p=h[r],d=0;d<(p||[]).length&&d<s;d++)if((a=_(p[o+d]))!=null)return a}else for(var d=0;d<h.length&&d<s;d++){var f=h[o+d];if(f&&(a=_(f[r]))!=null)return a}}else if(e===an){var g=n;if(!l)return fe.Not;for(var d=0;d<g.length&&d<s;d++){var v=g[d];if(v&&(a=_(v[l]))!=null)return a}}else if(e===Yn){var y=n;if(!l)return fe.Not;var p=y[l];if(!p||Ne(p))return fe.Not;for(var d=0;d<p.length&&d<s;d++)if((a=_(p[d]))!=null)return a}else if(e===rn)for(var m=n,d=0;d<m.length&&d<s;d++){var v=m[d],x=zr(v);if(!B(x))return fe.Not;if((a=_(x[r]))!=null)return a}function _(w){var b=U(w);if(w!=null&&isFinite(w)&&w!=="")return b?fe.Might:fe.Not;if(b&&w!=="-")return fe.Must}return fe.Not}var sf=j();function NO(n,e){J(sf.get(n)==null&&e),sf.set(n,e)}function EO(n,e,t){var i=sf.get(e);if(!i)return t;var o=i(n);if(!o)return t;if(process.env.NODE_ENV!=="production")for(var r=0;r<o.length;r++)J(Br(o[r]));return t.concat(o)}var d_=Mt(),OO=Mt(),lf=function(){function n(){}return n.prototype.getColorFromPalette=function(e,t,i){var o=Nt(this.get("color",!0)),r=this.get("colorLayer",!0);return f_(this,d_,o,r,e,t,i)},n.prototype.clearColorPalette=function(){VO(this,d_)},n}();function uf(n,e,t,i){var o=Nt(n.get(["aria","decal","decals"]));return f_(n,OO,o,null,e,t,i)}function PO(n,e){for(var t=n.length,i=0;i<t;i++)if(n[i].length>e)return n[i];return n[t-1]}function f_(n,e,t,i,o,r,a){r=r||n;var s=e(r),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(o))return u[o];var c=a==null||!i?t:PO(i,a);if(c=c||t,!(!c||!c.length)){var h=c[l];return o&&(u[o]=h),s.paletteIdx=(l+1)%c.length,h}}function VO(n,e){e(n).paletteIdx=0,e(n).paletteNameMap={}}var oc,Ds,g_,cf="\0_ec_inner",v_=1,RO={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",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"},zO={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",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"},rc={};function BO(n){C(n,function(e,t){if(!bt.hasClass(t)){var i=RO[t];i&&!rc[i]&&(me("Component "+t+` is used but not imported.
|
|
43
|
+
import { `+i+` } from 'echarts/components';
|
|
44
|
+
echarts.use([`+i+"]);"),rc[i]=!0)}})}var y_=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t,i,o,r,a,s){r=r||{},this.option=null,this._theme=new Pt(r),this._locale=new Pt(a),this._optionManager=s},e.prototype.setOption=function(t,i,o){process.env.NODE_ENV!=="production"&&(J(t!=null,"option is null/undefined"),J(t[cf]!==v_,"please use chart.getOption()"));var r=__(i);this._optionManager.setOption(t,o,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,i){return this._resetOption(t,__(i))},e.prototype._resetOption=function(t,i){var o=!1,r=this._optionManager;if(!t||t==="recreate"){var a=r.mountOption(t==="recreate");process.env.NODE_ENV!=="production"&&BO(a),!this.option||t==="recreate"?g_(this,a):(this.restoreData(),this._mergeOption(a,i)),o=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=r.getTimelineOption(this);s&&(o=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=r.getMediaOption(this);l.length&&C(l,function(u){o=!0,this._mergeOption(u,i)},this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var o=this.option,r=this._componentsMap,a=this._componentsCount,s=[],l=j(),u=i&&i.replaceMergeMainTypeMap;kO(this),C(t,function(h,p){h!=null&&(bt.hasClass(p)?p&&(s.push(p),l.set(p,!0)):o[p]=o[p]==null?it(h):ht(o[p],h,!0))}),u&&u.each(function(h,p){bt.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),bt.topologicalTravel(s,bt.getAllClassMainTypes(),c,this);function c(h){var p=EO(this,h,Nt(t[h])),d=r.get(h),f=d?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=q0(d,p,f);QL(g,h,bt),o[h]=null,r.set(h,null),a.set(h,0);var v=[],y=[],m=0,x,_;C(g,function(w,b){var S=w.existing,M=w.newOption;if(!M)S&&(S.mergeOption({},this),S.optionUpdated({},!1));else{var I=h==="series",D=bt.getClass(h,w.keyInfo.subType,!I);if(!D){if(process.env.NODE_ENV!=="production"){var T=w.keyInfo.subType,A=zO[T];rc[T]||(rc[T]=!0,me(A?"Series "+T+` is used but not imported.
|
|
45
|
+
import { `+A+` } from 'echarts/charts';
|
|
46
|
+
echarts.use([`+A+"]);":"Unknown series "+T))}return}if(h==="tooltip"){if(x){process.env.NODE_ENV!=="production"&&(_||(Ht("Currently only one tooltip component is allowed."),_=!0));return}x=!0}if(S&&S.constructor===D)S.name=w.keyInfo.name,S.mergeOption(M,this),S.optionUpdated(M,!1);else{var k=R({componentIndex:b},w.keyInfo);S=new D(M,this,this,k),R(S,k),w.brandNew&&(S.__requireNewView=!0),S.init(M,this,this),S.optionUpdated(null,!0)}}S?(v.push(S.option),y.push(S),m++):(v.push(void 0),y.push(void 0))},this),o[h]=v,r.set(h,y),a.set(h,m),h==="series"&&oc(this)}this._seriesIndices||oc(this)},e.prototype.getOption=function(){var t=it(this.option);return C(t,function(i,o){if(bt.hasClass(o)){for(var r=Nt(i),a=r.length,s=!1,l=a-1;l>=0;l--)r[l]&&!Br(r[l])?s=!0:(r[l]=null,!s&&a--);r.length=a,t[o]=r}}),delete t[cf],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var o=this._componentsMap.get(t);if(o){var r=o[i||0];if(r)return r;if(i==null){for(var a=0;a<o.length;a++)if(o[a])return o[a]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var o=t.index,r=t.id,a=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return o!=null?(l=[],C(Nt(o),function(u){s[u]&&l.push(s[u])})):r!=null?l=m_("id",r,s):a!=null?l=m_("name",a,s):l=Lt(s,function(u){return!!u}),x_(l,t)},e.prototype.findComponents=function(t){var i=t.query,o=t.mainType,r=s(i),a=r?this.queryComponents(r):Lt(this._componentsMap.get(o),function(u){return!!u});return l(x_(a,t));function s(u){var c=o+"Index",h=o+"Id",p=o+"Name";return u&&(u[c]!=null||u[h]!=null||u[p]!=null)?{mainType:o,index:u[c],id:u[h],name:u[p]}:null}function l(u){return t.filter?Lt(u,t.filter):u}},e.prototype.eachComponent=function(t,i,o){var r=this._componentsMap;if($(t)){var a=i,s=t;r.each(function(h,p){for(var d=0;h&&d<h.length;d++){var f=h[d];f&&s.call(a,p,f,f.componentIndex)}})}else for(var l=U(t)?r.get(t):K(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(o,c,c.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=ne(t,null);return Lt(this._componentsMap.get("series"),function(o){return!!o&&i!=null&&o.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Lt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Lt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Ds(this),C(this._seriesIndices,function(o){var r=this._componentsMap.get("series")[o];t.call(i,r,o)},this)},e.prototype.eachRawSeries=function(t,i){C(this._componentsMap.get("series"),function(o){o&&t.call(i,o,o.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,o){Ds(this),C(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];a.subType===t&&i.call(o,a,r)},this)},e.prototype.eachRawSeriesByType=function(t,i,o){return C(this.getSeriesByType(t),i,o)},e.prototype.isSeriesFiltered=function(t){return Ds(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Ds(this);var o=[];C(this._seriesIndices,function(r){var a=this._componentsMap.get("series")[r];t.call(i,a,r)&&o.push(r)},this),this._seriesIndices=o,this._seriesIndicesMap=j(o)},e.prototype.restoreData=function(t){oc(this);var i=this._componentsMap,o=[];i.each(function(r,a){bt.hasClass(a)&&o.push(a)}),bt.topologicalTravel(o,bt.getAllClassMainTypes(),function(r){C(i.get(r),function(a){a&&(r!=="series"||!GO(a,t))&&a.restoreData()})})},e.internalField=function(){oc=function(t){var i=t._seriesIndices=[];C(t._componentsMap.get("series"),function(o){o&&i.push(o.componentIndex)}),t._seriesIndicesMap=j(i)},Ds=function(t){if(process.env.NODE_ENV!=="production"&&!t._seriesIndices)throw new Error("Option should contains series.")},g_=function(t,i){t.option={},t.option[cf]=v_,t._componentsMap=j({series:[]}),t._componentsCount=j();var o=i.aria;K(o)&&o.enabled==null&&(o.enabled=!0),FO(i,t._theme.option),ht(i,AO,!1),t._mergeOption(i,null)}}(),e}(Pt);function GO(n,e){if(e){var t=e.seriesIndex,i=e.seriesId,o=e.seriesName;return t!=null&&n.componentIndex!==t||i!=null&&n.id!==i||o!=null&&n.name!==o}}function FO(n,e){var t=n.color&&!n.colorLayer;C(e,function(i,o){o==="colorLayer"&&t||bt.hasClass(o)||(typeof i=="object"?n[o]=n[o]?ht(n[o],i,!1):it(i):n[o]==null&&(n[o]=i))})}function m_(n,e,t){if(B(e)){var i=j();return C(e,function(r){if(r!=null){var a=ne(r,null);a!=null&&i.set(r,!0)}}),Lt(t,function(r){return r&&i.get(r[n])})}else{var o=ne(e,null);return Lt(t,function(r){return r&&o!=null&&r[n]===o})}}function x_(n,e){return e.hasOwnProperty("subType")?Lt(n,function(t){return t&&t.subType===e.subType}):n}function __(n){var e=j();return n&&C(Nt(n.replaceMerge),function(t){process.env.NODE_ENV!=="production"&&J(bt.hasClass(t),'"'+t+'" is not valid component main type in "replaceMerge"'),e.set(t,!0)}),{replaceMergeMainTypeMap:e}}$t(y_,lf);const b_=y_;var HO=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],WO=function(){function n(e){C(HO,function(t){this[t]=X(e[t],e)},this)}return n}();const w_=WO;var hf={},UO=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(e,t){var i=[];C(hf,function(o,r){var a=o.create(e,t);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(e,t){C(this._coordinateSystems,function(i){i.update&&i.update(e,t)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(e,t){hf[e]=t},n.get=function(e){return hf[e]},n}();const oa=UO;var YO=/^(min|max)?(.+)$/,XO=function(){function n(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return n.prototype.setOption=function(e,t,i){e&&(C(Nt(e.series),function(a){a&&a.data&&Ne(a.data)&&Gl(a.data)}),C(Nt(e.dataset),function(a){a&&a.source&&Ne(a.source)&&Gl(a.source)})),e=it(e);var o=this._optionBackup,r=ZO(e,t,!o);this._newBaseOption=r.baseOption,o?(r.timelineOptions.length&&(o.timelineOptions=r.timelineOptions),r.mediaList.length&&(o.mediaList=r.mediaList),r.mediaDefault&&(o.mediaDefault=r.mediaDefault)):this._optionBackup=r},n.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],it(e?t.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var o=e.getComponent("timeline");o&&(t=it(i[o.getCurrentIndex()]))}return t},n.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),o=this._mediaList,r=this._mediaDefault,a=[],s=[];if(!o.length&&!r)return s;for(var l=0,u=o.length;l<u;l++)jO(o[l].query,t,i)&&a.push(l);return!a.length&&r&&(a=[-1]),a.length&&!$O(a,this._currentMediaIndices)&&(s=G(a,function(c){return it(c===-1?r.option:o[c].option)})),this._currentMediaIndices=a,s},n}();function ZO(n,e,t){var i=[],o,r,a=n.baseOption,s=n.timeline,l=n.options,u=n.media,c=!!n.media,h=!!(l||s||a&&a.timeline);a?(r=a,r.timeline||(r.timeline=s)):((h||c)&&(n.options=n.media=null),r=n),c&&(B(u)?C(u,function(d){process.env.NODE_ENV!=="production"&&d&&!d.option&&K(d.query)&&K(d.query.option)&&me("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),d&&d.option&&(d.query?i.push(d):o||(o=d))}):process.env.NODE_ENV!=="production"&&me("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),p(r),C(l,function(d){return p(d)}),C(i,function(d){return p(d.option)});function p(d){C(e,function(f){f(d,t)})}return{baseOption:r,timelineOptions:l||[],mediaDefault:o,mediaList:i}}function jO(n,e,t){var i={width:e,height:t,aspectratio:e/t},o=!0;return C(n,function(r,a){var s=a.match(YO);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();qO(i[u],r,l)||(o=!1)}}),o}function qO(n,e,t){return t==="min"?n>=e:t==="max"?n<=e:n===e}function $O(n,e){return n.join(",")===e.join(",")}const KO=XO;var sn=C,Ts=K,S_=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function pf(n){var e=n&&n.itemStyle;if(e)for(var t=0,i=S_.length;t<i;t++){var o=S_[t],r=e.normal,a=e.emphasis;r&&r[o]&&(process.env.NODE_ENV!=="production"&&Jt("itemStyle.normal."+o,o),n[o]=n[o]||{},n[o].normal?ht(n[o].normal,r[o]):n[o].normal=r[o],r[o]=null),a&&a[o]&&(process.env.NODE_ENV!=="production"&&Jt("itemStyle.emphasis."+o,"emphasis."+o),n[o]=n[o]||{},n[o].emphasis?ht(n[o].emphasis,a[o]):n[o].emphasis=a[o],a[o]=null)}}function be(n,e,t){if(n&&n[e]&&(n[e].normal||n[e].emphasis)){var i=n[e].normal,o=n[e].emphasis;i&&(process.env.NODE_ENV!=="production"&&bn("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),t?(n[e].normal=n[e].emphasis=null,et(n[e],i)):n[e]=i),o&&(process.env.NODE_ENV!=="production"&&bn(e+".emphasis has been changed to emphasis."+e+" since 4.0"),n.emphasis=n.emphasis||{},n.emphasis[e]=o,o.focus&&(n.emphasis.focus=o.focus),o.blurScope&&(n.emphasis.blurScope=o.blurScope))}}function As(n){be(n,"itemStyle"),be(n,"lineStyle"),be(n,"areaStyle"),be(n,"label"),be(n,"labelLine"),be(n,"upperLabel"),be(n,"edgeLabel")}function te(n,e){var t=Ts(n)&&n[e],i=Ts(t)&&t.textStyle;if(i){process.env.NODE_ENV!=="production"&&bn("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var o=0,r=j0.length;o<r;o++){var a=j0[o];i.hasOwnProperty(a)&&(t[a]=i[a])}}}function ln(n){n&&(As(n),te(n,"label"),n.emphasis&&te(n.emphasis,"label"))}function JO(n){if(Ts(n)){pf(n),As(n),te(n,"label"),te(n,"upperLabel"),te(n,"edgeLabel"),n.emphasis&&(te(n.emphasis,"label"),te(n.emphasis,"upperLabel"),te(n.emphasis,"edgeLabel"));var e=n.markPoint;e&&(pf(e),ln(e));var t=n.markLine;t&&(pf(t),ln(t));var i=n.markArea;i&&ln(i);var o=n.data;if(n.type==="graph"){o=o||n.nodes;var r=n.links||n.edges;if(r&&!Ne(r))for(var a=0;a<r.length;a++)ln(r[a]);C(n.categories,function(u){As(u)})}if(o&&!Ne(o))for(var a=0;a<o.length;a++)ln(o[a]);if(e=n.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)ln(s[a]);if(t=n.markLine,t&&t.data)for(var l=t.data,a=0;a<l.length;a++)B(l[a])?(ln(l[a][0]),ln(l[a][1])):ln(l[a]);n.type==="gauge"?(te(n,"axisLabel"),te(n,"title"),te(n,"detail")):n.type==="treemap"?(be(n.breadcrumb,"itemStyle"),C(n.levels,function(u){As(u)})):n.type==="tree"&&As(n.leaves)}}function gi(n){return B(n)?n:n?[n]:[]}function M_(n){return(B(n)?n[0]:n)||{}}function QO(n,e){sn(gi(n.series),function(i){Ts(i)&&JO(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),sn(t,function(i){sn(gi(n[i]),function(o){o&&(te(o,"axisLabel"),te(o.axisPointer,"label"))})}),sn(gi(n.parallel),function(i){var o=i&&i.parallelAxisDefault;te(o,"axisLabel"),te(o&&o.axisPointer,"label")}),sn(gi(n.calendar),function(i){be(i,"itemStyle"),te(i,"dayLabel"),te(i,"monthLabel"),te(i,"yearLabel")}),sn(gi(n.radar),function(i){te(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,process.env.NODE_ENV!=="production"&&bn("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,process.env.NODE_ENV!=="production"&&bn("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&sn(i.indicator,function(o){o.text&&Jt("text","name","radar.indicator")})}),sn(gi(n.geo),function(i){Ts(i)&&(ln(i),sn(gi(i.regions),function(o){ln(o)}))}),sn(gi(n.timeline),function(i){ln(i),be(i,"label"),be(i,"itemStyle"),be(i,"controlStyle",!0);var o=i.data;B(o)&&C(o,function(r){K(r)&&(be(r,"label"),be(r,"itemStyle"))})}),sn(gi(n.toolbox),function(i){be(i,"iconStyle"),sn(i.feature,function(o){be(o,"iconStyle")})}),te(M_(n.axisPointer),"label"),te(M_(n.tooltip).axisPointer,"label")}function tP(n,e){for(var t=e.split(","),i=n,o=0;o<t.length&&(i=i&&i[t[o]],i!=null);o++);return i}function eP(n,e,t,i){for(var o=e.split(","),r=n,a,s=0;s<o.length-1;s++)a=o[s],r[a]==null&&(r[a]={}),r=r[a];(i||r[o[s]]==null)&&(r[o[s]]=t)}function I_(n){n&&C(nP,function(e){e[0]in n&&!(e[1]in n)&&(n[e[1]]=n[e[0]])})}var nP=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],iP=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],df=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ks(n){var e=n&&n.itemStyle;if(e)for(var t=0;t<df.length;t++){var i=df[t][1],o=df[t][0];e[i]!=null&&(e[o]=e[i],process.env.NODE_ENV!=="production"&&Jt(i,o))}}function C_(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Jt("label.margin","label.edgeDistance","pie"),n.edgeDistance=n.margin)}function D_(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay,process.env.NODE_ENV!=="production"&&Jt("downplay","blur","sunburst"))}function oP(n){n&&n.focusNodeAdjacency!=null&&(n.emphasis=n.emphasis||{},n.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Jt("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),n.emphasis.focus="adjacency"))}function T_(n,e){if(n)for(var t=0;t<n.length;t++)e(n[t]),n[t]&&T_(n[t].children,e)}function A_(n,e){QO(n,e),n.series=Nt(n.series),C(n.series,function(t){if(K(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow,process.env.NODE_ENV!=="production"&&Jt("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise,process.env.NODE_ENV!=="production"&&Jt("clockWise","clockwise")),C_(t.label);var o=t.data;if(o&&!Ne(o))for(var r=0;r<o.length;r++)C_(o[r]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Jt("hoverOffset","emphasis.scaleSize"),t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var a=tP(t,"pointer.color");a!=null&&eP(t,"itemStyle.color",a)}else if(i==="bar"){ks(t),ks(t.backgroundStyle),ks(t.emphasis);var o=t.data;if(o&&!Ne(o))for(var r=0;r<o.length;r++)typeof o[r]=="object"&&(ks(o[r]),ks(o[r]&&o[r].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s,process.env.NODE_ENV!=="production"&&Jt("highlightPolicy","emphasis.focus","sunburst"))),D_(t),T_(t.data,D_)}else i==="graph"||i==="sankey"?oP(t):i==="map"&&(t.mapType&&!t.map&&(process.env.NODE_ENV!=="production"&&Jt("mapType","map","map"),t.map=t.mapType),t.mapLocation&&(process.env.NODE_ENV!=="production"&&bn("`mapLocation` is not used anymore."),et(t,t.mapLocation)));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Jt("hoverAnimation","emphasis.scale"),t.emphasis.scale=t.hoverAnimation)),I_(t)}}),n.dataRange&&(n.visualMap=n.dataRange),C(iP,function(t){var i=n[t];i&&(B(i)||(i=[i]),C(i,function(o){I_(o)}))})}function rP(n){var e=j();n.eachSeries(function(t){var i=t.get("stack");if(i){var o=e.get(i)||e.set(i,[]),r=t.getData(),a={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;o.length&&r.setCalculationInfo("stackedOnSeries",o[o.length-1].seriesModel),o.push(a)}}),e.each(aP)}function aP(n){C(n,function(e,t){var i=[],o=[NaN,NaN],r=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(r,function(u,c,h){var p=a.get(e.stackedDimension,h);if(isNaN(p))return o;var d,f;s?f=a.getRawIndex(h):d=a.get(e.stackedByDimension,h);for(var g=NaN,v=t-1;v>=0;v--){var y=n[v];if(s||(f=y.data.rawIndexOf(y.stackedByDimension,d)),f>=0){var m=y.data.getByRawIndex(y.stackResultDimension,f);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&p>=0&&m>0||l==="samesign"&&p<=0&&m<0){p=BL(p,m),g=m;break}}}return i[0]=p,i[1]=g,i})})}var ac=function(){function n(e){this.data=e.data||(e.sourceFormat===Yn?{}:[]),this.sourceFormat=e.sourceFormat||l_,this.seriesLayoutBy=e.seriesLayoutBy||Xn,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var o=t[i];o.type==null&&h_(this,i)===fe.Must&&(o.type="ordinal")}}return n}();function ff(n){return n instanceof ac}function gf(n,e,t){t=t||k_(n);var i=e.seriesLayoutBy,o=lP(n,t,i,e.sourceHeader,e.dimensions),r=new ac({data:n,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:it(e)});return r}function vf(n){return new ac({data:n,sourceFormat:Ne(n)?fi:rn})}function sP(n){return new ac({data:n.data,sourceFormat:n.sourceFormat,seriesLayoutBy:n.seriesLayoutBy,dimensionsDefine:it(n.dimensionsDefine),startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount})}function k_(n){var e=l_;if(Ne(n))e=fi;else if(B(n)){n.length===0&&(e=_e);for(var t=0,i=n.length;t<i;t++){var o=n[t];if(o!=null){if(B(o)){e=_e;break}else if(K(o)){e=an;break}}}}else if(K(n)){for(var r in n)if(Y(n,r)&&ye(n[r])){e=Yn;break}}return e}function lP(n,e,t,i,o){var r,a;if(!n)return{dimensionsDefine:L_(o),startIndex:a,dimensionsDetectedCount:r};if(e===_e){var s=n;i==="auto"||i==null?N_(function(u){u!=null&&u!=="-"&&(U(u)?a==null&&(a=1):a=0)},t,s,10):a=Ct(i)?i:i?1:0,!o&&a===1&&(o=[],N_(function(u,c){o[c]=u!=null?u+"":""},t,s,1/0)),r=o?o.length:t===ia?s.length:s[0]?s[0].length:null}else if(e===an)o||(o=uP(n));else if(e===Yn)o||(o=[],C(n,function(u,c){o.push(c)}));else if(e===rn){var l=zr(n[0]);r=B(l)&&l.length||1}else e===fi&&process.env.NODE_ENV!=="production"&&J(!!o,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:L_(o),dimensionsDetectedCount:r}}function uP(n){for(var e=0,t;e<n.length&&!(t=n[e++]););if(t)return xt(t)}function L_(n){if(n){var e=j();return G(n,function(t,i){t=K(t)?t:{name:t};var o={name:t.name,displayName:t.displayName,type:t.type};if(o.name==null)return o;o.name+="",o.displayName==null&&(o.displayName=o.name);var r=e.get(o.name);return r?o.name+="-"+r.count++:e.set(o.name,{count:1}),o})}}function N_(n,e,t,i){if(e===ia)for(var o=0;o<t.length&&o<i;o++)n(t[o]?t[o][0]:null,o);else for(var r=t[0]||[],o=0;o<r.length&&o<i;o++)n(r[o],o)}function E_(n){var e=n.sourceFormat;return e===an||e===Yn}var Zo,jo,qo,O_,P_,V_=function(){function n(e,t){var i=ff(e)?e:vf(e);this._source=i;var o=this._data=i.data;if(i.sourceFormat===fi){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=t,this._data=o}P_(this,o,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(e,t){},n.prototype.appendData=function(e){},n.prototype.clean=function(){},n.protoInitialize=function(){var e=n.prototype;e.pure=!1,e.persistent=!0}(),n.internalField=function(){var e;P_=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,d=O_[mf(u,c)];if(process.env.NODE_ENV!=="production"&&J(d,"Invalide sourceFormat: "+u),R(a,d),u===fi)a.getItem=t,a.count=o,a.fillStorage=i;else{var f=z_(u,c);a.getItem=X(f,null,s,h,p);var g=G_(u,c);a.count=X(g,null,s,h,p)}};var t=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,h=0;h<u;h++)s[h]=l[c+h];return s},i=function(a,s,l,u){for(var c=this._data,h=this._dimSize,p=0;p<h;p++){for(var d=u[p],f=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],v=s-a,y=l[p],m=0;m<v;m++){var x=c[m*h+p];y[a+m]=x,x<f&&(f=x),x>g&&(g=x)}d[0]=f,d[1]=g}},o=function(){return this._data?this._data.length/this._dimSize:0};O_=(e={},e[_e+"_"+Xn]={pure:!0,appendData:r},e[_e+"_"+ia]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[an]={pure:!0,appendData:r},e[Yn]={pure:!0,appendData:function(a){var s=this._data;C(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},e[rn]={appendData:r},e[fi]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&J(Ne(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function r(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),n}(),R_=function(n,e,t,i){return n[i]},cP=(Zo={},Zo[_e+"_"+Xn]=function(n,e,t,i){return n[i+e]},Zo[_e+"_"+ia]=function(n,e,t,i,o){i+=e;for(var r=o||[],a=n,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},Zo[an]=R_,Zo[Yn]=function(n,e,t,i,o){for(var r=o||[],a=0;a<t.length;a++){var s=t[a].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=n[s];r[a]=l?l[i]:null}return r},Zo[rn]=R_,Zo);function z_(n,e){var t=cP[mf(n,e)];return process.env.NODE_ENV!=="production"&&J(t,'Do not support get item on "'+n+'", "'+e+'".'),t}var B_=function(n,e,t){return n.length},hP=(jo={},jo[_e+"_"+Xn]=function(n,e,t){return Math.max(0,n.length-e)},jo[_e+"_"+ia]=function(n,e,t){var i=n[0];return i?Math.max(0,i.length-e):0},jo[an]=B_,jo[Yn]=function(n,e,t){var i=t[0].name;if(process.env.NODE_ENV!=="production"&&i==null)throw new Error;var o=n[i];return o?o.length:0},jo[rn]=B_,jo);function G_(n,e){var t=hP[mf(n,e)];return process.env.NODE_ENV!=="production"&&J(t,'Do not support count on "'+n+'", "'+e+'".'),t}var yf=function(n,e,t){return n[e]},pP=(qo={},qo[_e]=yf,qo[an]=function(n,e,t){return n[t]},qo[Yn]=yf,qo[rn]=function(n,e,t){var i=zr(n);return i instanceof Array?i[e]:i},qo[fi]=yf,qo);function F_(n){var e=pP[n];return process.env.NODE_ENV!=="production"&&J(e,'Do not support get value on "'+n+'".'),e}function mf(n,e){return n===_e?n+"_"+e:n}function ra(n,e,t){if(n){var i=n.getRawDataItem(e);if(i!=null){var o=n.getStore(),r=o.getSource().sourceFormat;if(t!=null){var a=n.getDimensionIndex(t),s=o.getDimensionProperty(a);return F_(r)(i,a,s)}else{var l=i;return r===rn&&(l=zr(i)),l}}}}var dP=/\{@(.+?)\}/g,xf=function(){function n(){}return n.prototype.getDataParams=function(e,t){var i=this.getData(t),o=this.getRawValue(e,t),r=i.getRawIndex(e),a=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,p=h==="series",d=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:r,data:s,dataType:t,value:o,color:u,borderColor:c,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(e,t,i,o,r,a){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(a&&(l.value=a.interpolatedValue),o!=null&&B(l.value)&&(l.value=l.value[o]),!r){var u=s.getItemModel(e);r=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if($(r))return l.status=t,l.dimensionIndex=o,r(l);if(U(r)){var c=o_(r,l);return c.replace(dP,function(h,p){var d=p.length,f=p;f.charAt(0)==="["&&f.charAt(d-1)==="]"&&(f=+f.slice(1,d-1),process.env.NODE_ENV!=="production"&&isNaN(f)&&me("Invalide label formatter: @"+p+", only support @[0], @[1], @[2], ..."));var g=ra(s,e,f);if(a&&B(a.interpolatedValue)){var v=s.getDimensionIndex(f);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},n.prototype.getRawValue=function(e,t){return ra(this.getData(t),e)},n.prototype.formatTooltip=function(e,t,i){},n}();function H_(n){var e,t;return K(n)?n.type?t=n:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Me(n)):e=n,{text:e,frag:t}}function Ls(n){return new fP(n)}var fP=function(){function n(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return n.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var o=this.context;o.data=o.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var r;this._plan&&!i&&(r=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(a!==l||s!==u)&&(r="reset");function c(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||r==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(t?(process.env.NODE_ENV!=="production"&&J(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!=="production"&&J(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(h||d<f)){var g=this._progress;if(B(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],d,f,l,u);else this._doProgress(g,d,f,l,u)}this._dueIndex=f;var y=this._settedOutputEnd!=null?this._settedOutputEnd:f;process.env.NODE_ENV!=="production"&&J(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(e,t,i,o,r){W_.reset(t,i,o,r),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:W_.next},this.context)},n.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var o=this._downstream;return o&&o.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&J(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},n}(),W_=function(){var n,e,t,i,o,r={reset:function(l,u,c,h){e=l,n=u,t=c,i=h,o=Math.ceil(i/t),r.next=t>1&&i>0?s:a}};return r;function a(){return e<n?e++:null}function s(){var l=e%o*t+Math.ceil(e/o),u=e>=n?null:l<i?l:e;return e++,u}}();function Yi(n,e){var t=e&&e.type;return t==="ordinal"?n:(t==="time"&&!Ct(n)&&n!=null&&n!=="-"&&(n=+Rn(n)),n==null||n===""?NaN:+n)}var gP=j({number:function(n){return parseFloat(n)},time:function(n){return+Rn(n)},trim:function(n){return U(n)?yn(n):n}});function U_(n){return gP.get(n)}var Y_={lt:function(n,e){return n<e},lte:function(n,e){return n<=e},gt:function(n,e){return n>e},gte:function(n,e){return n>=e}},vP=function(){function n(e,t){if(!Ct(t)){var i="";process.env.NODE_ENV!=="production"&&(i='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),At(i)}this._opFn=Y_[e],this._rvalFloat=li(t)}return n.prototype.evaluate=function(e){return Ct(e)?this._opFn(e,this._rvalFloat):this._opFn(li(e),this._rvalFloat)},n}(),X_=function(){function n(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return n.prototype.evaluate=function(e,t){var i=Ct(e)?e:li(e),o=Ct(t)?t:li(t),r=isNaN(i),a=isNaN(o);if(r&&(i=this._incomparable),a&&(o=this._incomparable),r&&a){var s=U(e),l=U(t);s&&(i=l?e:0),l&&(o=s?t:0)}return i<o?this._resultLT:i>o?-this._resultLT:0},n}(),yP=function(){function n(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=li(t)}return n.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=li(e)===this._rvalFloat)}return this._isEQ?t:!t},n}();function mP(n,e){return n==="eq"||n==="ne"?new yP(n==="eq",e):Y(Y_,n)?new vP(n,e):null}var xP=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(e){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(e){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(e,t){},n.prototype.retrieveValueFromItem=function(e,t){},n.prototype.convertValue=function(e,t){return Yi(e,t)},n}();function _P(n,e){var t=new xP,i=n.data,o=t.sourceFormat=n.sourceFormat,r=n.startIndex,a="";n.seriesLayoutBy!==Xn&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),At(a));var s=[],l={},u=n.dimensionsDefine;if(u)C(u,function(g,v){var y=g.name,m={index:v,name:y,displayName:g.displayName};if(s.push(m),y!=null){var x="";Y(l,y)&&(process.env.NODE_ENV!=="production"&&(x='dimension name "'+y+'" duplicated.'),At(x)),l[y]=m}});else for(var c=0;c<n.dimensionsDetectedCount;c++)s.push({index:c});var h=z_(o,Xn);e.__isBuiltIn&&(t.getRawDataItem=function(g){return h(i,r,s,g)},t.getRawData=X(bP,null,n)),t.cloneRawData=X(wP,null,n);var p=G_(o,Xn);t.count=X(p,null,i,r,s);var d=F_(o);t.retrieveValue=function(g,v){var y=h(i,r,s,g);return f(y,v)};var f=t.retrieveValueFromItem=function(g,v){if(g!=null){var y=s[v];if(y)return d(g,v,y.name)}};return t.getDimensionInfo=X(SP,null,s,l),t.cloneAllDimensionInfo=X(MP,null,s),t}function bP(n){var e=n.sourceFormat;if(!_f(e)){var t="";process.env.NODE_ENV!=="production"&&(t="`getRawData` is not supported in source format "+e),At(t)}return n.data}function wP(n){var e=n.sourceFormat,t=n.data;if(!_f(e)){var i="";process.env.NODE_ENV!=="production"&&(i="`cloneRawData` is not supported in source format "+e),At(i)}if(e===_e){for(var o=[],r=0,a=t.length;r<a;r++)o.push(t[r].slice());return o}else if(e===an){for(var o=[],r=0,a=t.length;r<a;r++)o.push(R({},t[r]));return o}}function SP(n,e,t){if(t!=null){if(Ct(t)||!isNaN(t)&&!Y(e,t))return n[t];if(Y(e,t))return e[t]}}function MP(n){return it(n)}var Z_=j();function IP(n){n=it(n);var e=n.type,t="";e||(process.env.NODE_ENV!=="production"&&(t="Must have a `type` when `registerTransform`."),At(t));var i=e.split(":");i.length!==2&&(process.env.NODE_ENV!=="production"&&(t='Name must include namespace like "ns:regression".'),At(t));var o=!1;i[0]==="echarts"&&(e=i[1],o=!0),n.__isBuiltIn=o,Z_.set(e,n)}function CP(n,e,t){var i=Nt(n),o=i.length,r="";o||(process.env.NODE_ENV!=="production"&&(r="If `transform` declared, it should at least contain one transform."),At(r));for(var a=0,s=o;a<s;a++){var l=i[a];e=DP(l,e,t,o===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function DP(n,e,t,i){var o="";e.length||(process.env.NODE_ENV!=="production"&&(o="Must have at least one upstream dataset."),At(o)),K(n)||(process.env.NODE_ENV!=="production"&&(o="transform declaration must be an object rather than "+typeof n+"."),At(o));var r=n.type,a=Z_.get(r);a||(process.env.NODE_ENV!=="production"&&(o='Can not find transform on type "'+r+'".'),At(o));var s=G(e,function(c){return _P(c,a)}),l=Nt(a.transform({upstream:s[0],upstreamList:s,config:it(n.config)}));if(process.env.NODE_ENV!=="production"&&n.print){var u=G(l,function(c){var h=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+t.datasetIndex+h+" ===","- transform result data:",Me(c.data),"- transform result dimensions:",Me(c.dimensions)].join(`
|
|
47
|
+
`)}).join(`
|
|
48
|
+
`);UL(u)}return G(l,function(c,h){var p="";K(c)||(process.env.NODE_ENV!=="production"&&(p="A transform should not return some empty results."),At(p)),c.data||(process.env.NODE_ENV!=="production"&&(p="Transform result data should be not be null or undefined"),At(p));var d=k_(c.data);_f(d)||(process.env.NODE_ENV!=="production"&&(p="Transform result data should be array rows or object rows."),At(p));var f,g=e[0];if(g&&h===0&&!c.dimensions){var v=g.startIndex;v&&(c.data=g.data.slice(0,v).concat(c.data)),f={seriesLayoutBy:Xn,sourceHeader:v,dimensions:g.metaRawOption.dimensions}}else f={seriesLayoutBy:Xn,sourceHeader:0,dimensions:c.dimensions};return gf(c.data,f,null)})}function _f(n){return n===_e||n===an}var sc="undefined",TP=typeof Uint32Array===sc?Array:Uint32Array,AP=typeof Uint16Array===sc?Array:Uint16Array,j_=typeof Int32Array===sc?Array:Int32Array,q_=typeof Float64Array===sc?Array:Float64Array,$_={float:q_,int:j_,ordinal:Array,number:Array,time:q_},bf;function Ns(n){return n>65535?TP:AP}function aa(){return[1/0,-1/0]}function kP(n){var e=n.constructor;return e===Array?n.slice():new e(n)}function K_(n,e,t,i,o){var r=$_[t||"float"];if(o){var a=n[e],s=a&&a.length;if(s!==i){for(var l=new r(i),u=0;u<s;u++)l[u]=a[u];n[e]=l}}else n[e]=new r(i)}var wf=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return n.prototype.initData=function(e,t,i){process.env.NODE_ENV!=="production"&&J($(e.getItem)&&$(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var o=e.getSource(),r=this.defaultDimValueGetter=bf[o.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[];var a=E_(o);this._dimensions=G(t,function(s){return process.env.NODE_ENV!=="production"&&a&&J(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,o=this._dimensions,r=i.get(e);if(r!=null){if(o[r].type===t)return r}else r=o.length;return o[r]={type:t},i.set(e,r),this._chunks[r]=new $_[t||"float"](this._rawCount),this._rawExtent[r]=aa(),r},n.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],o=this._dimensions[e],r=this._rawExtent,a=o.ordinalOffset||0,s=i.length;a===0&&(r[e]=aa());for(var l=r[e],u=a;u<s;u++){var c=i[u]=t.parseAndCollect(i[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}o.ordinalMeta=t,o.ordinalOffset=s,o.type="ordinal"},n.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},n.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},n.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&J(!this._indices,"appendData can only be called on raw data.");var t=this._provider,i=this.count();t.appendData(e);var o=t.count();return t.persistent||(o+=i),i<o&&this._initDataFromProvider(i,o,!0),[i,o]},n.prototype.appendValues=function(e,t){for(var i=this._chunks,o=this._dimensions,r=o.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<r;u++){var c=o[u];K_(i,u,c.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var d=p-s,f=0;f<r;f++){var c=o[f],g=bf.arrayRows.call(this,e[d]||h,c.property,d,f);i[f][p]=g;var v=a[f];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(e,t,i){for(var o=this._provider,r=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=G(a,function(m){return m.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=aa()),K_(r,c,h.type,t,i)}if(o.fillStorage)o.fillStorage(e,t,r,l);else for(var p=[],d=e;d<t;d++){p=o.getItem(d,p);for(var f=0;f<s;f++){var g=r[f],v=this._dimValueGetter(p,u[f],d,f);g[d]=v;var y=l[f];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=t,this._extent=[]},n.prototype.count=function(){return this._count},n.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},n.prototype.getValues=function(e,t){var i=[],o=[];if(t==null){t=e,e=[];for(var r=0;r<this._dimensions.length;r++)o.push(r)}else o=e;for(var r=0,a=o.length;r<a;r++)i.push(this.get(o[r],t));return i},n.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},n.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var o=0,r=this.count();o<r;o++){var a=this.get(e,o);isNaN(a)||(i+=a)}return i},n.prototype.getMedian=function(e){var t=[];this.each([e],function(r){isNaN(r)||t.push(r)});var i=t.sort(function(r,a){return r-a}),o=this.count();return o===0?0:o%2===1?i[(o-1)/2]:(i[o/2]+i[o/2-1])/2},n.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var o=0,r=this._count-1;o<=r;){var a=(o+r)/2|0;if(t[a]<e)o=a+1;else if(t[a]>e)r=a-1;else return a}return-1},n.prototype.indicesOfNearest=function(e,t,i){var o=this._chunks,r=o[e],a=[];if(!r)return a;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,c=0,h=this.count();c<h;c++){var p=this.getRawIndex(c),d=t-r[p],f=Math.abs(d);f<=i&&((f<s||f===s&&d>=0&&l<0)&&(s=f,l=d,u=0),d===l&&(a[u++]=c))}return a.length=u,a},n.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,o=this._count;if(i===Array){e=new i(o);for(var r=0;r<o;r++)e[r]=t[r]}else e=new i(t.buffer,0,o)}else{var i=Ns(this._rawCount);e=new i(this.count());for(var r=0;r<e.length;r++)e[r]=r}return e},n.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),o=i.count(),r=Ns(i._rawCount),a=new r(o),s=[],l=e.length,u=0,c=e[0],h=i._chunks,p=0;p<o;p++){var d=void 0,f=i.getRawIndex(p);if(l===0)d=t(p);else if(l===1){var g=h[c][f];d=t(g,p)}else{for(var v=0;v<l;v++)s[v]=h[e[v]][f];s[v]=p,d=t.apply(null,s)}d&&(a[u++]=f)}return u<o&&(i._indices=a),i._count=u,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var o=xt(e),r=o.length;if(!r)return this;var a=t.count(),s=Ns(t._rawCount),l=new s(a),u=0,c=o[0],h=e[c][0],p=e[c][1],d=t._chunks,f=!1;if(!t._indices){var g=0;if(r===1){for(var v=d[o[0]],y=0;y<i;y++){var m=v[y];(m>=h&&m<=p||isNaN(m))&&(l[u++]=g),g++}f=!0}else if(r===2){for(var v=d[o[0]],x=d[o[1]],_=e[o[1]][0],w=e[o[1]][1],y=0;y<i;y++){var m=v[y],b=x[y];(m>=h&&m<=p||isNaN(m))&&(b>=_&&b<=w||isNaN(b))&&(l[u++]=g),g++}f=!0}}if(!f)if(r===1)for(var y=0;y<a;y++){var S=t.getRawIndex(y),m=d[o[0]][S];(m>=h&&m<=p||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<a;y++){for(var M=!0,S=t.getRawIndex(y),I=0;I<r;I++){var D=o[I],m=d[D][S];(m<e[D][0]||m>e[D][1])&&(M=!1)}M&&(l[u++]=t.getRawIndex(y))}return u<a&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},n.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},n.prototype.modify=function(e,t){this._updateDims(this,e,t)},n.prototype._updateDims=function(e,t,i){for(var o=e._chunks,r=[],a=t.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<t.length;c++)u[t[c]]=aa();for(var h=0;h<s;h++){for(var p=e.getRawIndex(h),d=0;d<a;d++)l[d]=o[t[d]][p];l[a]=h;var f=i&&i.apply(null,l);if(f!=null){typeof f!="object"&&(r[0]=f,f=r);for(var c=0;c<f.length;c++){var g=t[c],v=f[c],y=u[g],m=o[g];m&&(m[p]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},n.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),o=i._chunks,r=o[e],a=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),c,h,p,d=new(Ns(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));d[s++]=u;for(var f=1;f<a-1;f+=l){for(var g=Math.min(f+l,a-1),v=Math.min(f+l*2,a),y=(v+g)/2,m=0,x=g;x<v;x++){var _=this.getRawIndex(x),w=r[_];isNaN(w)||(m+=w)}m/=v-g;var b=f,S=Math.min(f+l,a),M=f-1,I=r[u];c=-1,p=b;for(var D=-1,T=0,x=b;x<S;x++){var _=this.getRawIndex(x),w=r[_];if(isNaN(w)){T++,D<0&&(D=_);continue}h=Math.abs((M-y)*(w-I)-(M-x)*(m-I)),h>c&&(c=h,p=_)}T>0&&T<S-b&&(d[s++]=Math.min(D,p),p=Math.max(D,p)),d[s++]=p,u=p}return d[s++]=this.getRawIndex(a-1),i._count=s,i._indices=d,i.getRawIndex=this._getRawIdx,i},n.prototype.downSample=function(e,t,i,o){for(var r=this.clone([e],!0),a=r._chunks,s=[],l=Math.floor(1/t),u=a[e],c=this.count(),h=r._rawExtent[e]=aa(),p=new(Ns(this._rawCount))(Math.ceil(c/l)),d=0,f=0;f<c;f+=l){l>c-f&&(l=c-f,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(f+g);s[g]=u[v]}var y=i(s),m=this.getRawIndex(Math.min(f+o(s,y)||0,c-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),p[d++]=m}return r._count=d,r._indices=p,r._updateGetRawIdx(),r},n.prototype.each=function(e,t){if(this._count)for(var i=e.length,o=this._chunks,r=0,a=this.count();r<a;r++){var s=this.getRawIndex(r);switch(i){case 0:t(r);break;case 1:t(o[e[0]][s],r);break;case 2:t(o[e[0]][s],o[e[1]][s],r);break;default:for(var l=0,u=[];l<i;l++)u[l]=o[e[l]][s];u[l]=r,t.apply(null,u)}}},n.prototype.getDataExtent=function(e){var t=this._chunks[e],i=aa();if(!t)return i;var o=this.count(),r=!this._indices,a;if(r)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=i;for(var s=a[0],l=a[1],u=0;u<o;u++){var c=this.getRawIndex(u),h=t[c];h<s&&(s=h),h>l&&(l=h)}return a=[s,l],this._extent[e]=a,a},n.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],o=this._chunks,r=0;r<o.length;r++)i.push(o[r][t]);return i},n.prototype.clone=function(e,t){var i=new n,o=this._chunks,r=e&&Nn(e,function(s,l){return s[l]=!0,s},{});if(r)for(var a=0;a<o.length;a++)i._chunks[a]=r[a]?kP(o[a]):o[a];else i._chunks=o;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},n.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=it(this._extent),e._rawExtent=it(this._rawExtent)},n.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var o=0;o<i;o++)t[o]=this._indices[o]}else t=new e(this._indices);return t}return null},n.prototype._getRawIdxIdentity=function(e){return e},n.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function e(t,i,o,r){return Yi(t[r],this._dimensions[r])}bf={arrayRows:e,objectRows:function(t,i,o,r){return Yi(t[i],this._dimensions[r])},keyedColumns:e,original:function(t,i,o,r){var a=t&&(t.value==null?t:t.value);return Yi(a instanceof Array?a[r]:a,this._dimensions[r])},typedArray:function(t,i,o,r){return t[r]}}}(),n}(),J_=function(){function n(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,o,r;if(Es(e)){var a=e,s=void 0,l=void 0,u=void 0;if(i){var c=t[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,r=[c._getVersionSign()]}else s=a.get("data",!0),l=Ne(s)?fi:rn,r=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=ut(h.seriesLayoutBy,p.seriesLayoutBy)||null,f=ut(h.sourceHeader,p.sourceHeader),g=ut(h.dimensions,p.dimensions),v=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g;o=v?[gf(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var y=e;if(i){var m=this._applyTransform(t);o=m.sourceList,r=m.upstreamSignList}else{var x=y.get("source",!0);o=[gf(x,this._getSourceMetaRawOption(),null)],r=[]}}process.env.NODE_ENV!=="production"&&J(o&&r),this._setLocalSource(o,r)},n.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),o=t.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&J(o!=null||i!=null),o!=null){var r="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(r="When using `fromTransformResult`, there should be only one upstream dataset"),tb(r))}var a,s=[],l=[];return C(e,function(u){u.prepareSource();var c=u.getSource(o||0),h="";o!=null&&!c&&(process.env.NODE_ENV!=="production"&&(h="Can not retrieve result by `fromTransformResult`: "+o),tb(h)),s.push(c),l.push(u._getVersionSign())}),i?a=CP(i,s,{datasetIndex:t.componentIndex}):o!=null&&(a=[sP(s[0])]),{sourceList:a,upstreamSignList:l}},n.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},n.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},n.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&J(Es(this._sourceHost),"Can only call getDataStore on series source manager.");var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},n.prototype._innerGetDataStore=function(e,t,i){var o=0,r=this._storeList,a=r[o];a||(a=r[o]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Es(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new wf,s.initData(new V_(t,e.length),e)),a[i]=s}return s},n.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Es(e)){var t=af(e);return t?[t.getSourceManager()]:[]}else return G(LO(e),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,o;if(Es(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),o=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var r=e;t=r.get("seriesLayoutBy",!0),i=r.get("sourceHeader",!0),o=r.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:o}},n}();function Q_(n){var e=n.option.transform;e&&Gl(n.option.transform)}function Es(n){return n.mainType==="series"}function tb(n){throw new Error(n)}var eb="line-height:1";function nb(n,e){var t=n.color||"#6e7079",i=n.fontSize||12,o=n.fontWeight||"400",r=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ee(i+"")+"px;color:"+Ee(t)+";font-weight:"+Ee(o+""),valueStyle:"font-size:"+Ee(a+"")+"px;color:"+Ee(r)+";font-weight:"+Ee(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:s}}}var LP=[0,10,20,30],NP=["",`
|
|
49
|
+
`,`
|
|
50
|
+
|
|
51
|
+
`,`
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
`];function ae(n,e){return e.type=n,e}function Sf(n){return n.type==="section"}function ib(n){return Sf(n)?EP:OP}function ob(n){if(Sf(n)){var e=0,t=n.blocks.length,i=t>1||t>0&&!n.noHeader;return C(n.blocks,function(o){var r=ob(o);r>=e&&(e=r+ +(i&&(!r||Sf(o)&&!o.noHeader)))}),e}return 0}function EP(n,e,t,i){var o=e.noHeader,r=PP(ob(e)),a=[],s=e.blocks||[];J(!s||B(s)),s=s||[];var l=n.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Y(u,l)){var c=new X_(u[l],null);s.sort(function(f,g){return c.evaluate(f.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(f,g){var v=e.valueFormatter,y=ib(f)(v?R(R({},n),{valueFormatter:v}):n,f,g>0?r.html:0,i);y!=null&&a.push(y)});var h=n.renderMode==="richText"?a.join(r.richText):Mf(a.join(""),o?t:r.html);if(o)return h;var p=tf(e.header,"ordinal",n.useUTC),d=nb(i,n.renderMode).nameStyle;return n.renderMode==="richText"?ab(n,p,d)+r.richText+h:Mf('<div style="'+d+";"+eb+';">'+Ee(p)+"</div>"+h,t)}function OP(n,e,t,i){var o=n.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=n.useUTC,c=e.valueFormatter||n.valueFormatter||function(_){return _=B(_)?_:[_],G(_,function(w,b){return tf(w,B(d)?d[b]:d,u)})};if(!(r&&a)){var h=s?"":n.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",o),p=r?"":tf(l,"ordinal",u),d=e.valueType,f=a?[]:c(e.value),g=!s||!r,v=!s&&r,y=nb(i,o),m=y.nameStyle,x=y.valueStyle;return o==="richText"?(s?"":h)+(r?"":ab(n,p,m))+(a?"":zP(n,f,g,v,x)):Mf((s?"":h)+(r?"":VP(p,!s,m))+(a?"":RP(f,g,v,x)),t)}}function rb(n,e,t,i,o,r){if(n){var a=ib(n),s={useUTC:o,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:n.valueFormatter};return a(s,n,0,r)}}function PP(n){return{html:LP[n],richText:NP[n]}}function Mf(n,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+eb+';">'+n+t+"</div>"}function VP(n,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Ee(n)+"</span>"}function RP(n,e,t,i){var o=t?"10px":"20px",r=e?"float:right;margin-left:"+o:"";return n=B(n)?n:[n],'<span style="'+r+";"+i+'">'+G(n,function(a){return Ee(a)}).join(" ")+"</span>"}function ab(n,e,t){return n.markupStyleCreator.wrapRichTextStyle(e,t)}function zP(n,e,t,i,o){var r=[o],a=i?10:20;return t&&r.push({padding:[0,0,0,a],align:"right"}),n.markupStyleCreator.wrapRichTextStyle(B(e)?e.join(" "):e,r)}function sb(n,e){var t=n.getData().getItemVisual(e,"style"),i=t[n.visualDrawType];return Uo(i)}function lb(n,e){var t=n.get("padding");return t??(e==="richText"?[8,10]:10)}var If=function(){function n(){this.richTextStyles={},this._nextStyleNameId=F0()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(e,t,i){var o=i==="richText"?this._generateStyleName():null,r=MO({color:t,type:e,renderMode:i,markerId:o});return U(r)?r:(process.env.NODE_ENV!=="production"&&J(o),this.richTextStyles[o]=r.style,r.content)},n.prototype.wrapRichTextStyle=function(e,t){var i={};B(t)?C(t,function(r){return R(i,r)}):R(i,t);var o=this._generateStyleName();return this.richTextStyles[o]=i,"{"+o+"|"+e+"}"},n}();function ub(n){var e=n.series,t=n.dataIndex,i=n.multipleSeries,o=e.getData(),r=o.mapDimensionsAll("defaultedTooltip"),a=r.length,s=e.getRawValue(t),l=B(s),u=sb(e,t),c,h,p,d;if(a>1||l&&!a){var f=BP(s,e,t,r,u);c=f.inlineValues,h=f.inlineValueTypes,p=f.blocks,d=f.inlineValues[0]}else if(a){var g=o.getDimensionInfo(r[0]);d=c=ra(o,t,r[0]),h=g.type}else d=c=l?s[0]:s;var v=nd(e),y=v&&e.name||"",m=o.getName(t),x=i?y:m;return ae("section",{header:y,noHeader:i||!v,sortParam:d,blocks:[ae("nameValue",{markerType:"item",markerColor:u,name:x,noName:!yn(x),value:c,valueType:h})].concat(p||[])})}function BP(n,e,t,i,o){var r=e.getData(),a=Nn(n,function(h,p,d){var f=r.getDimensionInfo(d);return h=h||f&&f.tooltip!==!1&&f.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(h){c(ra(r,t,h),h)}):C(n,c);function c(h,p){var d=r.getDimensionInfo(p);!d||d.otherDims.tooltip===!1||(a?u.push(ae("nameValue",{markerType:"subItem",markerColor:o,name:d.displayName,value:h,valueType:d.type})):(s.push(h),l.push(d.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Xi=Mt();function lc(n,e){return n.getName(e)||n.getId(e)}var uc="__universalTransitionEnabled",cc=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,o){this.seriesIndex=this.componentIndex,this.dataTask=Ls({count:FP,reset:HP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o);var r=Xi(this).sourceManager=new J_(this);r.prepareSource();var a=this.getInitialData(t,o);hb(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&J(a,"getInitialData returned invalid data."),Xi(this).dataBeforeProcessed=a,cb(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(t,i){var o=Cs(this),r=o?ta(t):{},a=this.subType;bt.hasClass(a)&&(a+="Series"),ht(t,i.getTheme().get(this.subType)),ht(t,this.getDefaultOption()),So(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&Ui(t,r,o)},e.prototype.mergeOption=function(t,i){t=ht(this.option,t,!0),this.fillDataTextStyle(t.data);var o=Cs(this);o&&Ui(this.option,t,o);var r=Xi(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(t,i);hb(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Xi(this).dataBeforeProcessed=a,cb(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(t){if(t&&!Ne(t))for(var i=["show"],o=0;o<t.length;o++)t[o]&&t[o].label&&So(t[o],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=Cf(this);if(i){var o=i.context.data;return t==null?o:o.getLinkedData(t)}else return Xi(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=Cf(this);if(i){var o=i.context;o.outputData=t,i!==this.dataTask&&(o.data=t)}Xi(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return j(t)},e.prototype.getSourceManager=function(){return Xi(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Xi(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.formatTooltip=function(t,i,o){return ub({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(St.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,o){var r=this.ecModel,a=lf.prototype.getColorFromPalette.call(this,t,i,o);return a||(a=r.getColorFromPalette(t,i,o)),a},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var o=this.option.selectedMap;if(o){var r=this.option.selectedMode,a=this.getData(i);if(r==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=lc(a,l);o[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var o=[],r=0;r<t.length;r++)o[0]=t[r],this.isSelected(t[r],i)?this.unselect(o,i):this.select(o,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=xt(t),o=[],r=0;r<i.length;r++){var a=t[i[r]];a>=0&&o.push(a)}return o},e.prototype.isSelected=function(t,i){var o=this.option.selectedMap;if(!o)return!1;var r=this.getData(i);return(o==="all"||o[lc(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[uc])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var o,r,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){K(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var h=i[c],p=lc(t,h);u[p]=!0,this._selectedDataIndicesMap[p]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var d=i[l-1],p=lc(t,d);a.selectedMap=(o={},o[p]=!0,o),this._selectedDataIndicesMap=(r={},r[p]=t.getRawIndex(d),r)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(o){var r=t.getRawDataItem(o);r&&r.selected&&i.push(o)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return bt.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(bt);$t(cc,xf),$t(cc,lf),n1(cc,bt);function cb(n){var e=n.name;nd(n)||(n.name=GP(n)||e)}function GP(n){var e=n.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return C(t,function(o){var r=e.getDimensionInfo(o);r.displayName&&i.push(r.displayName)}),i.join(" ")}function FP(n){return n.model.getRawData().count()}function HP(n){var e=n.model;return e.setData(e.getRawData().cloneShallow()),WP}function WP(n,e){e.outputData&&n.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function hb(n,e){C(Fl(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(t){n.wrapMethod(t,at(UP,e))})}function UP(n,e){var t=Cf(n);return t&&t.setOutputEnd((e||this).count()),e}function Cf(n){var e=(n.ecModel||{}).scheduler,t=e&&e.getPipeline(n.uid);if(t){var i=t.currentTask;if(i){var o=i.agentStubMap;o&&(i=o.get(n.uid))}return i}}const Ft=cc;var Df=function(){function n(){this.group=new ot,this.uid=$r("viewComponent")}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){},n.prototype.updateLayout=function(e,t,i,o){},n.prototype.updateVisual=function(e,t,i,o){},n.prototype.toggleBlurSeries=function(e,t,i){},n.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},n}();rd(Df),xu(Df);const Yt=Df;function sa(){var n=Mt();return function(e){var t=n(e),i=e.pipelineContext,o=!!t.large,r=!!t.progressiveRender,a=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(o!==a||r!==s)&&"reset"}}var pb=Mt(),YP=sa(),Tf=function(){function n(){this.group=new ot,this.uid=$r("viewChart"),this.renderTask=Ls({plan:XP,reset:ZP}),this.renderTask.context={view:this}}return n.prototype.init=function(e,t){},n.prototype.render=function(e,t,i,o){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},n.prototype.highlight=function(e,t,i,o){var r=e.getData(o&&o.dataType);if(!r){process.env.NODE_ENV!=="production"&&me("Unknown dataType "+o.dataType);return}fb(r,o,"emphasis")},n.prototype.downplay=function(e,t,i,o){var r=e.getData(o&&o.dataType);if(!r){process.env.NODE_ENV!=="production"&&me("Unknown dataType "+o.dataType);return}fb(r,o,"normal")},n.prototype.remove=function(e,t){this.group.removeAll()},n.prototype.dispose=function(e,t){},n.prototype.updateView=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateLayout=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.updateVisual=function(e,t,i,o){this.render(e,t,i,o)},n.prototype.eachRendered=function(e){Fi(this.group,e)},n.markUpdateMethod=function(e,t){pb(e).updateMethod=t},n.protoInitialize=function(){var e=n.prototype;e.type="chart"}(),n}();function db(n,e,t){n&&Bi(n)&&(e==="emphasis"?pi:di)(n,t)}function fb(n,e,t){var i=Mo(n,e),o=e&&e.highlightKey!=null?yE(e.highlightKey):null;i!=null?C(Nt(i),function(r){db(n.getItemGraphicEl(r),t,o)}):n.eachItemGraphicEl(function(r){db(r,t,o)})}rd(Tf,["dispose"]),xu(Tf);function XP(n){return YP(n.model)}function ZP(n){var e=n.model,t=n.ecModel,i=n.api,o=n.payload,r=e.pipelineContext.progressiveRender,a=n.view,s=o&&pb(o).updateMethod,l=r?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,t,i,o),jP[l]}var jP={incrementalPrepareRender:{progress:function(n,e){e.view.incrementalRender(n,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(n,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Vt=Tf;var hc="\0__throttleOriginMethod",gb="\0__throttleRate",vb="\0__throttleType";function Af(n,e,t){var i,o=0,r=0,a=null,s,l,u,c;e=e||0;function h(){r=new Date().getTime(),a=null,n.apply(l,u||[])}var p=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];i=new Date().getTime(),l=this,u=d;var g=c||e,v=c||t;c=null,s=i-(v?o:r)-g,clearTimeout(a),v?a=setTimeout(h,g):s>=0?h():a=setTimeout(h,-s),o=i};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(d){c=d},p}function la(n,e,t,i){var o=n[e];if(o){var r=o[hc]||o,a=o[vb],s=o[gb];if(s!==t||a!==i){if(t==null||!i)return n[e]=r;o=n[e]=Af(r,t,i==="debounce"),o[hc]=r,o[vb]=i,o[gb]=t}return o}}function Os(n,e){var t=n[e];t&&t[hc]&&(t.clear&&t.clear(),n[e]=t[hc])}var yb=Mt(),mb={itemStyle:Co(Fx,!0),lineStyle:Co(Gx,!0)},qP={lineStyle:"stroke",itemStyle:"fill"};function xb(n,e){var t=n.visualStyleMapper||mb[e];return t||(console.warn("Unknown style type '"+e+"'."),mb.itemStyle)}function _b(n,e){var t=n.visualDrawType||qP[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var $P={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=n.getModel(i),r=xb(n,i),a=r(o),s=o.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=_b(n,i),u=a[l],c=$(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=n.getColorFromPalette(n.name,null,e.getSeriesCount());a[l]||(a[l]=p,t.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||$(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||$(a.stroke)?p:a.stroke}if(t.setVisual("style",a),t.setVisual("drawType",l),!e.isSeriesFiltered(n)&&c)return t.setVisual("colorFromPalette",!1),{dataEach:function(d,f){var g=n.getDataParams(f),v=R({},a);v[l]=c(g),d.setItemVisual(f,"style",v)}}}},Ps=new Pt,KP={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!(n.ignoreStyleOnData||e.isSeriesFiltered(n))){var t=n.getData(),i=n.visualStyleAccessPath||"itemStyle",o=xb(n,i),r=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Ps.option=l[i];var u=o(Ps),c=a.ensureUniqueItemVisual(s,"style");R(c,u),Ps.option.decal&&(a.setItemVisual(s,"decal",Ps.option.decal),Ps.option.decal.dirty=!0),r in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},JP={performRawSeries:!0,overallReset:function(n){var e=j();n.eachSeries(function(t){var i=t.getColorBy();if(!t.isColorBySeries()){var o=t.type+"-"+i,r=e.get(o);r||(r={},e.set(o,r)),yb(t).scope=r}}),n.eachSeries(function(t){if(!(t.isColorBySeries()||n.isSeriesFiltered(t))){var i=t.getRawData(),o={},r=t.getData(),a=yb(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=_b(t,s);r.each(function(u){var c=r.getRawIndex(u);o[c]=u}),i.each(function(u){var c=o[u],h=r.getItemVisual(c,"colorFromPalette");if(h){var p=r.ensureUniqueItemVisual(c,"style"),d=i.getName(u)||u+"",f=i.count();p[l]=t.getColorFromPalette(d,a,f)}})}})}},pc=Math.PI;function QP(n,e){e=e||{},et(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ot,i=new It({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var o=new Dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),r=new It({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(r);var a;return e.showSpinner&&(a=new zd({shape:{startAngle:-pc/2,endAngle:-pc/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:pc*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:pc*3/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var s=o.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(n.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),c=n.getHeight()/2;e.showSpinner&&a.setShape({cx:u,cy:c}),r.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},t.resize(),t}var tV=function(){function n(e,t,i,o){this._stageTaskMap=j(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=i.concat(o)}return n.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var o=i.overallTask;o&&o.dirty()})},n.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),o=i.context,r=!t&&i.progressiveEnabled&&(!o||o.progressiveRender)&&e.__idxInPipeline>i.blockIndex,a=r?i.step:null,s=o&&o.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},n.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},n.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),o=e.getData(),r=o.count(),a=i.progressiveEnabled&&t.incrementalPrepareRender&&r>=i.threshold,s=e.get("large")&&r>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?r:null;e.pipelineContext=i.context={progressiveRender:a,modDataCount:l,large:s}},n.prototype.restorePipelines=function(e){var t=this,i=t._pipelineMap=j();e.eachSeries(function(o){var r=o.getProgressive(),a=o.uid;i.set(a,{id:a,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:r&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(o,o.dataTask)})},n.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;C(this._allHandlers,function(o){var r=e.get(o.uid)||e.set(o.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),J(!(o.reset&&o.overallReset),a),o.reset&&this._createSeriesStageTask(o,r,t,i),o.overallReset&&this._createOverallStageTask(o,r,t,i)},this)},n.prototype.prepareView=function(e,t,i,o){var r=e.renderTask,a=r.context;a.model=t,a.ecModel=i,a.api=o,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},n.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},n.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},n.prototype._performStageTasks=function(e,t,i,o){o=o||{};var r=!1,a=this;C(e,function(l,u){if(!(o.visualType&&o.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(v){s(o,v)&&(v.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,o.block);f.each(function(v){v.perform(g)}),p.perform(g)&&(r=!0)}else h&&h.each(function(v,y){s(o,v)&&v.dirty();var m=a.getPerformArgs(v,o.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(r=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=r||this.unfinished},n.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},n.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},n.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},n.prototype._createSeriesStageTask=function(e,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=j(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,o).each(c);function c(h){var p=h.uid,d=s.set(p,a&&a.get(p)||Ls({plan:rV,reset:aV,count:lV}));d.context={model:h,ecModel:i,api:o,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(h,d)}},n.prototype._createOverallStageTask=function(e,t,i,o){var r=this,a=t.overallTask=t.overallTask||Ls({reset:eV});a.context={ecModel:i,api:o,overallReset:e.overallReset,scheduler:r};var s=a.agentStubMap,l=a.agentStubMap=j(),u=e.seriesType,c=e.getTargetSeries,h=!0,p=!1,d="";process.env.NODE_ENV!=="production"&&(d='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),J(!e.createOnAllSeries,d),u?i.eachRawSeriesByType(u,f):c?c(i,o).each(f):(h=!1,C(i.getSeries(),f));function f(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(p=!0,Ls({reset:nV,onDirty:oV})));y.context={model:g,overallProgress:h},y.agent=a,y.__block=h,r._pipe(g,y)}p&&a.dirty()},n.prototype._pipe=function(e,t){var i=e.uid,o=this._pipelineMap.get(i);!o.head&&(o.head=t),o.tail&&o.tail.pipe(t),o.tail=t,t.__idxInPipeline=o.count++,t.__pipeline=o},n.wrapStageHandler=function(e,t){return $(e)&&(e={overallReset:e,seriesType:uV(e)}),e.uid=$r("stageHandler"),t&&(e.visualType=t),e},n}();function eV(n){n.overallReset(n.ecModel,n.api,n.payload)}function nV(n){return n.overallProgress&&iV}function iV(){this.agent.dirty(),this.getDownstream().dirty()}function oV(){this.agent&&this.agent.dirty()}function rV(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function aV(n){n.useClearVisual&&n.data.clearAllVisual();var e=n.resetDefines=Nt(n.reset(n.model,n.ecModel,n.api,n.payload));return e.length>1?G(e,function(t,i){return bb(i)}):sV}var sV=bb(0);function bb(n){return function(e,t){var i=t.data,o=t.resetDefines[n];if(o&&o.dataEach)for(var r=e.start;r<e.end;r++)o.dataEach(i,r);else o&&o.progress&&o.progress(e,i)}}function lV(n){return n.data.count()}function uV(n){dc=null;try{n(Vs,wb)}catch{}return dc}var Vs={},wb={},dc;Sb(Vs,b_),Sb(wb,w_),Vs.eachSeriesByType=Vs.eachRawSeriesByType=function(n){dc=n},Vs.eachComponent=function(n){n.mainType==="series"&&n.subType&&(dc=n.subType)};function Sb(n,e){for(var t in e.prototype)n[t]=jt}const Mb=tV;var Ib=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const cV={color:Ib,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Ib]};var De="#B9B8CE",Cb="#100C2A",fc=function(){return{axisLine:{lineStyle:{color:De}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Db=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Tb={darkMode:!0,color:Db,backgroundColor:Cb,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:De}},textStyle:{color:De},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:De}},dataZoom:{borderColor:"#71708A",textStyle:{color:De},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:De}},timeline:{lineStyle:{color:De},label:{color:De},controlStyle:{color:De,borderColor:De}},calendar:{itemStyle:{color:Cb},dayLabel:{color:De},monthLabel:{color:De},yearLabel:{color:De}},timeAxis:fc(),logAxis:fc(),valueAxis:fc(),categoryAxis:fc(),line:{symbol:"circle"},graph:{color:Db},gauge:{title:{color:De},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:De},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Tb.categoryAxis.splitLine.show=!1;const hV=Tb;var pV=function(){function n(){}return n.prototype.normalizeQuery=function(e){var t={},i={},o={};if(U(e)){var r=zn(e);t.mainType=r.main||null,t.subType=r.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(e,function(l,u){for(var c=!1,h=0;h<a.length;h++){var p=a[h],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(t.mainType=f,t[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(o[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:o}},n.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var o=i.targetEl,r=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,r,"name")&&c(u,r,"dataIndex")&&c(u,r,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,o,r));function c(h,p,d,f){return h[d]==null||p[f||d]===h[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),kf=["symbol","symbolSize","symbolRotate","symbolOffset"],Ab=kf.concat(["symbolKeepAspect"]),dV={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){var t=n.getData();if(n.legendIcon&&t.setVisual("legendIcon",n.legendIcon),!n.hasSymbolVisual)return;for(var i={},o={},r=!1,a=0;a<kf.length;a++){var s=kf[a],l=n.get(s);$(l)?(r=!0,o[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,t.setVisual(R({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),e.isSeriesFiltered(n))return;var u=xt(o);function c(h,p){for(var d=n.getRawValue(p),f=n.getDataParams(p),g=0;g<u.length;g++){var v=u[g];h.setItemVisual(p,v,o[v](d,f))}}return{dataEach:r?c:null}}},fV={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,e){if(!n.hasSymbolVisual||e.isSeriesFiltered(n))return;var t=n.getData();function i(o,r){for(var a=o.getItemModel(r),s=0;s<Ab.length;s++){var l=Ab[s],u=a.getShallow(l,!0);u!=null&&o.setItemVisual(r,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Lf(n,e,t){switch(t){case"color":var i=n.getItemVisual(e,"style");return i[n.getVisual("drawType")];case"opacity":return n.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(e,t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Rs(n,e){switch(e){case"color":var t=n.getVisual("style");return t[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function kb(n,e,t,i){switch(t){case"color":var o=n.ensureUniqueItemVisual(e,"style");o[n.getVisual("drawType")]=i,n.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(e,t,i);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function Lb(n,e){function t(i,o){var r=[];return i.eachComponent({mainType:"series",subType:n,query:o},function(a){r.push(a.seriesIndex)}),r}C([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){e(i[0],function(o,r,a){o=R({},o),process.env.NODE_ENV!=="production"&&Jt(o.type,i[1]),a.dispatchAction(R(o,{type:i[1],seriesIndex:t(r,o)}))})})}function ua(n,e,t,i,o){var r=n+e;t.isSilent(r)||(process.env.NODE_ENV!=="production"&&bn("event "+r+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=o.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=a.getData(),p=Mo(h,o.fromActionPayload);t.trigger(r,{type:r,seriesId:a.id,name:B(p)?h.getName(p[0]):h.getName(p),selected:U(l)?l:R({},l)})}}))}function gV(n,e,t){n.on("selectchanged",function(i){var o=t.getModel();i.isFromClick?(ua("map","selectchanged",e,o,i),ua("pie","selectchanged",e,o,i)):i.fromAction==="select"?(ua("map","selected",e,o,i),ua("pie","selected",e,o,i)):i.fromAction==="unselect"&&(ua("map","unselected",e,o,i),ua("pie","unselected",e,o,i))})}function $o(n,e,t){for(var i;n&&!(e(n)&&(i=n,t));)n=n.__hostTarget||n.parent;return i}var vV=Math.round(Math.random()*9),yV=typeof Object.defineProperty=="function",mV=function(){function n(){this._id="__ec_inner_"+vV++}return n.prototype.get=function(e){return this._guard(e)[this._id]},n.prototype.set=function(e,t){var i=this._guard(e);return yV?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},n.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},n.prototype.has=function(e){return!!this._guard(e)[this._id]},n.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},n}();const xV=mV;var _V=mt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i+r),n.lineTo(t-o,i+r),n.closePath()}}),bV=mt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,e){var t=e.cx,i=e.cy,o=e.width/2,r=e.height/2;n.moveTo(t,i-r),n.lineTo(t+o,i),n.lineTo(t,i+r),n.lineTo(t-o,i),n.closePath()}}),wV=mt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.x,i=e.y,o=e.width/5*3,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),d=a*.6,f=a*.7;n.moveTo(t-c,l+s),n.arc(t,l,a,Math.PI-u,Math.PI*2+u),n.bezierCurveTo(t+c-h*d,l+s+p*d,t,i-f,t,i),n.bezierCurveTo(t,i-f,t-c+h*d,l+s+p*d,t-c,l+s),n.closePath()}}),SV=mt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,e){var t=e.height,i=e.width,o=e.x,r=e.y,a=i/3*2;n.moveTo(o,r),n.lineTo(o+a,r+t),n.lineTo(o,r+t/4*3),n.lineTo(o-a,r+t),n.lineTo(o,r),n.closePath()}}),MV={line:ue,rect:It,roundRect:It,square:It,circle:Wn,diamond:bV,pin:wV,arrow:SV,triangle:_V},IV={line:function(n,e,t,i,o){o.x1=n,o.y1=e+i/2,o.x2=n+t,o.y2=e+i/2},rect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i},roundRect:function(n,e,t,i,o){o.x=n,o.y=e,o.width=t,o.height=i,o.r=Math.min(t,i)/4},square:function(n,e,t,i,o){var r=Math.min(t,i);o.x=n,o.y=e,o.width=r,o.height=r},circle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.r=Math.min(t,i)/2},diamond:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i},pin:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},arrow:function(n,e,t,i,o){o.x=n+t/2,o.y=e+i/2,o.width=t,o.height=i},triangle:function(n,e,t,i,o){o.cx=n+t/2,o.cy=e+i/2,o.width=t,o.height=i}},gc={};C(MV,function(n,e){gc[e]=new n});var CV=mt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,e,t){var i=gu(n,e,t),o=this.shape;return o&&o.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(n,e,t){var i=e.symbolType;if(i!=="none"){var o=gc[i];o||(i="rect",o=gc[i]),IV[i](e.x,e.y,e.width,e.height,o.shape),o.buildPath(n,o.shape,t)}}});function DV(n,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=n,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=n:t.fill=n,this.markRedraw()}}function ee(n,e,t,i,o,r,a){var s=n.indexOf("empty")===0;s&&(n=n.substr(5,1).toLowerCase()+n.substr(6));var l;return n.indexOf("image://")===0?l=Ix(n.slice(8),new pt(e,t,i,o),a?"center":"cover"):n.indexOf("path://")===0?l=Hu(n.slice(7),{},new pt(e,t,i,o),a?"center":"cover"):l=new CV({shape:{symbolType:n,x:e,y:t,width:i,height:o}}),l.__isEmptyBrush=s,l.setColor=DV,r&&l.setColor(r),l}function ca(n){return B(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Ko(n,e){if(n!=null)return B(n)||(n=[n,n]),[H(n[0],e[0])||0,H(ut(n[1],n[0]),e[1])||0]}function Jo(n){return isFinite(n)}function TV(n,e,t){var i=e.x==null?0:e.x,o=e.x2==null?1:e.x2,r=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,o=o*t.width+t.x,r=r*t.height+t.y,a=a*t.height+t.y),i=Jo(i)?i:0,o=Jo(o)?o:1,r=Jo(r)?r:0,a=Jo(a)?a:0;var s=n.createLinearGradient(i,r,o,a);return s}function AV(n,e,t){var i=t.width,o=t.height,r=Math.min(i,o),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*i+t.x,s=s*o+t.y,l=l*r),a=Jo(a)?a:.5,s=Jo(s)?s:.5,l=l>=0&&Jo(l)?l:.5;var u=n.createRadialGradient(a,s,0,a,s,l);return u}function Nf(n,e,t){for(var i=e.type==="radial"?AV(n,e,t):TV(n,e,t),o=e.colorStops,r=0;r<o.length;r++)i.addColorStop(o[r].offset,o[r].color);return i}function kV(n,e){if(n===e||!n&&!e)return!1;if(!n||!e||n.length!==e.length)return!0;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!0;return!1}function vc(n){return parseInt(n,10)}function ha(n,e,t){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(n);return(n[o]||vc(s[i])||vc(n.style[i]))-(vc(s[r])||0)-(vc(s[a])||0)|0}function LV(n,e){return!n||n==="solid"||!(e>0)?null:n==="dashed"?[4*e,2*e]:n==="dotted"?[e]:Ct(n)?[n]:B(n)?n:null}function Ef(n){var e=n.style,t=e.lineDash&&e.lineWidth>0&&LV(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var o=e.strokeNoScale&&n.getLineScale?n.getLineScale():1;o&&o!==1&&(t=G(t,function(r){return r/o}),i/=o)}return[t,i]}var NV=new Hn(!0);function yc(n){var e=n.stroke;return!(e==null||e==="none"||!(n.lineWidth>0))}function Nb(n){return typeof n=="string"&&n!=="none"}function mc(n){var e=n.fill;return e!=null&&e!=="none"}function Eb(n,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.fillOpacity*e.opacity,n.fill(),n.globalAlpha=t}else n.fill()}function Ob(n,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=n.globalAlpha;n.globalAlpha=e.strokeOpacity*e.opacity,n.stroke(),n.globalAlpha=t}else n.stroke()}function Of(n,e,t){var i=sd(e.image,e.__image,t);if(_u(i)){var o=n.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Wl),r.scaleSelf(e.scaleX||1,e.scaleY||1),o.setTransform(r)}return o}}function EV(n,e,t,i){var o,r=yc(t),a=mc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||NV,h=e.__dirty;if(!i){var p=t.fill,d=t.stroke,f=a&&!!p.colorStops,g=r&&!!d.colorStops,v=a&&!!p.image,y=r&&!!d.image,m=void 0,x=void 0,_=void 0,w=void 0,b=void 0;(f||g)&&(b=e.getBoundingRect()),f&&(m=h?Nf(n,p,b):e.__canvasFillGradient,e.__canvasFillGradient=m),g&&(x=h?Nf(n,d,b):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),v&&(_=h||!e.__canvasFillPattern?Of(n,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),y&&(w=h||!e.__canvasStrokePattern?Of(n,d,e):e.__canvasStrokePattern,e.__canvasStrokePattern=_),f?n.fillStyle=m:v&&(_?n.fillStyle=_:a=!1),g?n.strokeStyle=x:y&&(w?n.strokeStyle=w:r=!1)}var S=e.getGlobalScale();c.setScale(S[0],S[1],e.segmentIgnoreThreshold);var M,I;n.setLineDash&&t.lineDash&&(o=Ef(e),M=o[0],I=o[1]);var D=!0;(u||h&Lr)&&(c.setDPR(n.dpr),l?c.setContext(null):(c.setContext(n),D=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),D&&c.rebuildPath(n,l?s:1),M&&(n.setLineDash(M),n.lineDashOffset=I),i||(t.strokeFirst?(r&&Ob(n,t),a&&Eb(n,t)):(a&&Eb(n,t),r&&Ob(n,t))),M&&n.setLineDash([])}function OV(n,e,t){var i=e.__image=sd(t.image,e.__image,e,e.onload);if(!(!i||!_u(i))){var o=t.x||0,r=t.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,c=t.sy||0;n.drawImage(i,u,c,t.sWidth,t.sHeight,o,r,a,s)}else if(t.sx&&t.sy){var u=t.sx,c=t.sy,h=a-u,p=s-c;n.drawImage(i,u,c,h,p,o,r,a,s)}else n.drawImage(i,o,r,a,s)}}function PV(n,e,t){var i,o=t.text;if(o!=null&&(o+=""),o){n.font=t.font||Ii,n.textAlign=t.textAlign,n.textBaseline=t.textBaseline;var r=void 0,a=void 0;n.setLineDash&&t.lineDash&&(i=Ef(e),r=i[0],a=i[1]),r&&(n.setLineDash(r),n.lineDashOffset=a),t.strokeFirst?(yc(t)&&n.strokeText(o,t.x,t.y),mc(t)&&n.fillText(o,t.x,t.y)):(mc(t)&&n.fillText(o,t.x,t.y),yc(t)&&n.strokeText(o,t.x,t.y)),r&&n.setLineDash([])}}var Pb=["shadowBlur","shadowOffsetX","shadowOffsetY"],Vb=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Rb(n,e,t,i,o){var r=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){Ge(n,o),r=!0;var a=Math.max(Math.min(e.opacity,1),0);n.globalAlpha=isNaN(a)?Do.opacity:a}(i||e.blend!==t.blend)&&(r||(Ge(n,o),r=!0),n.globalCompositeOperation=e.blend||Do.blend);for(var s=0;s<Pb.length;s++){var l=Pb[s];(i||e[l]!==t[l])&&(r||(Ge(n,o),r=!0),n[l]=n.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(r||(Ge(n,o),r=!0),n.shadowColor=e.shadowColor||Do.shadowColor),r}function zb(n,e,t,i,o){var r=zs(e,o.inHover),a=i?null:t&&zs(t,o.inHover)||{};if(r===a)return!1;var s=Rb(n,r,a,i,o);if((i||r.fill!==a.fill)&&(s||(Ge(n,o),s=!0),Nb(r.fill)&&(n.fillStyle=r.fill)),(i||r.stroke!==a.stroke)&&(s||(Ge(n,o),s=!0),Nb(r.stroke)&&(n.strokeStyle=r.stroke)),(i||r.opacity!==a.opacity)&&(s||(Ge(n,o),s=!0),n.globalAlpha=r.opacity==null?1:r.opacity),e.hasStroke()){var l=r.lineWidth,u=l/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1);n.lineWidth!==u&&(s||(Ge(n,o),s=!0),n.lineWidth=u)}for(var c=0;c<Vb.length;c++){var h=Vb[c],p=h[0];(i||r[p]!==a[p])&&(s||(Ge(n,o),s=!0),n[p]=r[p]||h[1])}return s}function VV(n,e,t,i,o){return Rb(n,zs(e,o.inHover),t&&zs(t,o.inHover),i,o)}function Bb(n,e){var t=e.transform,i=n.dpr||1;t?n.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):n.setTransform(i,0,0,i,0,0)}function RV(n,e,t){for(var i=!1,o=0;o<n.length;o++){var r=n[o];i=i||r.isZeroArea(),Bb(e,r),e.beginPath(),r.buildPath(e,r.shape),e.clip()}t.allClipped=i}function zV(n,e){return n&&e?n[0]!==e[0]||n[1]!==e[1]||n[2]!==e[2]||n[3]!==e[3]||n[4]!==e[4]||n[5]!==e[5]:!(!n&&!e)}var Gb=1,Fb=2,Hb=3,Wb=4;function BV(n){var e=mc(n),t=yc(n);return!(n.lineDash||!(+e^+t)||e&&typeof n.fill!="string"||t&&typeof n.stroke!="string"||n.strokePercent<1||n.strokeOpacity<1||n.fillOpacity<1)}function Ge(n,e){e.batchFill&&n.fill(),e.batchStroke&&n.stroke(),e.batchFill="",e.batchStroke=""}function zs(n,e){return e&&n.__hoverStyle||n.style}function Ub(n,e){Qo(n,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Qo(n,e,t,i){var o=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~He,e.__isRendered=!1;return}var r=e.__clipPaths,a=t.prevElClipPaths,s=!1,l=!1;if((!a||kV(r,a))&&(a&&a.length&&(Ge(n,t),n.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),r&&r.length&&(Ge(n,t),n.save(),RV(r,n,t),s=!0),t.prevElClipPaths=r),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var c=e instanceof mt&&e.autoBatch&&BV(e.style);s||zV(o,u.transform)?(Ge(n,t),Bb(n,e)):c||Ge(n,t);var h=zs(e,t.inHover);e instanceof mt?(t.lastDrawType!==Gb&&(l=!0,t.lastDrawType=Gb),zb(n,e,u,l,t),(!c||!t.batchFill&&!t.batchStroke)&&n.beginPath(),EV(n,e,h,c),c&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof ls?(t.lastDrawType!==Hb&&(l=!0,t.lastDrawType=Hb),zb(n,e,u,l,t),PV(n,e,h)):e instanceof he?(t.lastDrawType!==Fb&&(l=!0,t.lastDrawType=Fb),VV(n,e,u,l,t),OV(n,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==Wb&&(l=!0,t.lastDrawType=Wb),GV(n,e,t)),c&&i&&Ge(n,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function GV(n,e,t){var i=e.getDisplayables(),o=e.getTemporalDisplayables();n.save();var r={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},a,s;for(a=e.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qo(n,l,r,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}for(var u=0,c=o.length;u<c;u++){var l=o[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qo(n,l,r,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),r.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,n.restore()}var Pf=new xV,Yb=new Za(100),Xb=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function pa(n,e){if(n==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),o=i.painter.type==="svg";n.dirty&&Pf.delete(n);var r=Pf.get(n);if(r)return r;var a=et(n,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=o?1:1/t,Pf.set(n,s),n.dirty=!1,s;function l(u){for(var c=[t],h=!0,p=0;p<Xb.length;++p){var d=a[Xb[p]];if(d!=null&&!B(d)&&!U(d)&&!Ct(d)&&typeof d!="boolean"){h=!1;break}c.push(d)}var f;if(h){f=c.join(",")+(o?"-svg":"");var g=Yb.get(f);g&&(o?u.svgElement=g:u.image=g)}var v=jb(a.dashArrayX),y=FV(a.dashArrayY),m=Zb(a.symbol),x=HV(v),_=qb(y),w=!o&&Ci.createCanvas(),b=o&&{tag:"g",attrs:{},key:"dcl",children:[]},S=I(),M;w&&(w.width=S.width*t,w.height=S.height*t,M=w.getContext("2d")),D(),h&&Yb.put(f,w||b),u.image=w,u.svgElement=b,u.svgWidth=S.width,u.svgHeight=S.height;function I(){for(var T=1,A=0,k=x.length;A<k;++A)T=W0(T,x[A]);for(var L=1,A=0,k=m.length;A<k;++A)L=W0(L,m[A].length);T*=L;var N=_*x.length*m.length;if(process.env.NODE_ENV!=="production"){var E=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};T>a.maxTileWidth&&E("maxTileWidth"),N>a.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(T,a.maxTileWidth)),height:Math.max(1,Math.min(N,a.maxTileHeight))}}function D(){M&&(M.clearRect(0,0,w.width,w.height),a.backgroundColor&&(M.fillStyle=a.backgroundColor,M.fillRect(0,0,w.width,w.height)));for(var T=0,A=0;A<y.length;++A)T+=y[A];if(T<=0)return;for(var k=-_,L=0,N=0,E=0;k<S.height;){if(L%2===0){for(var V=N/2%m.length,O=0,z=0,F=0;O<S.width*2;){for(var W=0,A=0;A<v[E].length;++A)W+=v[E][A];if(W<=0)break;if(z%2===0){var Z=(1-a.symbolSize)*.5,Q=O+v[E][z]*Z,tt=k+y[L]*Z,ft=v[E][z]*a.symbolSize,_t=y[L]*a.symbolSize,gt=F/2%m[V].length;nt(Q,tt,ft,_t,m[V][gt])}O+=v[E][z],++F,++z,z===v[E].length&&(z=0)}++E,E===v.length&&(E=0)}k+=y[L],++N,++L,L===y.length&&(L=0)}function nt(vt,st,q,lt,Gt){var wt=o?1:t,Xt=ee(Gt,vt*wt,st*wt,q*wt,lt*wt,a.color,a.symbolKeepAspect);if(o){var Wt=i.painter.renderOneToVNode(Xt);Wt&&b.children.push(Wt)}else Ub(M,Xt)}}}}function Zb(n){if(!n||n.length===0)return[["rect"]];if(U(n))return[[n]];for(var e=!0,t=0;t<n.length;++t)if(!U(n[t])){e=!1;break}if(e)return Zb([n]);for(var i=[],t=0;t<n.length;++t)U(n[t])?i.push([n[t]]):i.push(n[t]);return i}function jb(n){if(!n||n.length===0)return[[0,0]];if(Ct(n)){var e=Math.ceil(n);return[[e,e]]}for(var t=!0,i=0;i<n.length;++i)if(!Ct(n[i])){t=!1;break}if(t)return jb([n]);for(var o=[],i=0;i<n.length;++i)if(Ct(n[i])){var e=Math.ceil(n[i]);o.push([e,e])}else{var e=G(n[i],function(s){return Math.ceil(s)});e.length%2===1?o.push(e.concat(e)):o.push(e)}return o}function FV(n){if(!n||typeof n=="object"&&n.length===0)return[0,0];if(Ct(n)){var e=Math.ceil(n);return[e,e]}var t=G(n,function(i){return Math.ceil(i)});return n.length%2?t.concat(t):t}function HV(n){return G(n,function(e){return qb(e)})}function qb(n){for(var e=0,t=0;t<n.length;++t)e+=n[t];return n.length%2===1?e*2:e}function WV(n,e){n.eachRawSeries(function(t){if(!n.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=pa(s,e)}});var o=i.getVisual("decal");if(o){var r=i.getVisual("style");r.decal=pa(o,e)}}})}var UV=new je;const Dn=UV;var xc={};function YV(n,e){process.env.NODE_ENV!=="production"&&xc[n]&&me("Already has an implementation of "+n+"."),xc[n]=e}function XV(n){return process.env.NODE_ENV!=="production"&&(xc[n]||me("Implementation of "+n+" doesn't exists.")),xc[n]}var ZV=1,jV=800,qV=900,$V=1e3,KV=2e3,JV=5e3,$b=1e3,QV=1100,Vf=2e3,Kb=3e3,tR=4e3,_c=4500,eR=4600,nR=5e3,iR=6e3,Jb=7e3,oR={PROCESSOR:{FILTER:$V,SERIES_FILTER:jV,STATISTIC:JV},VISUAL:{LAYOUT:$b,PROGRESSIVE_LAYOUT:QV,GLOBAL:Vf,CHART:Kb,POST_CHART_LAYOUT:eR,COMPONENT:tR,BRUSH:nR,CHART_ITEM:_c,ARIA:iR,DECAL:Jb}},we="__flagInMainProcess",Fe="__pendingUpdate",Rf="__needsUpdateStatus",Qb=/^[a-zA-Z0-9_]+$/,zf="__connectUpdateStatus",tw=0,rR=1,aR=2;function ew(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){Ye(this.id);return}return iw(this,n,e)}}function nw(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return iw(this,n,e)}}function iw(n,e,t){return t[0]=t[0]&&t[0].toLowerCase(),je.prototype[e].apply(n,t)}var ow=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(je),rw=ow.prototype;rw.on=nw("on"),rw.off=nw("off");var da,Bf,bc,Zi,Gf,Ff,Hf,Bs,Gs,aw,sw,Wf,lw,wc,uw,cw,un,hw,pw=function(n){P(e,n);function e(t,i,o){var r=n.call(this,new pV)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],o=o||{},U(i)&&(i=dw[i]),r._dom=t;var a="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=St.hasGlobalWindow?window:global;a=u.__ECHARTS__DEFAULT__RENDERER__||a,s=ut(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var c=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=c??l}var h=r._zr=E0(t,{renderer:o.renderer||a,devicePixelRatio:o.devicePixelRatio,width:o.width,height:o.height,ssr:o.ssr,useDirtyRect:ut(o.useDirtyRect,l),useCoarsePointer:ut(o.useCoarsePointer,s),pointerSize:o.pointerSize});r._ssr=o.ssr,r._throttledZrFlush=Af(X(h.flush,h),17),i=it(i),i&&A_(i,!0),r._theme=i,r._locale=yO(o.locale||Hx),r._coordSysMgr=new oa;var p=r._api=uw(r);function d(f,g){return f.__prio-g.__prio}return ql(Mc,d),ql(Yf,d),r._scheduler=new Mb(r,p,Yf,Mc),r._messageCenter=new ow,r._initEvents(),r.resize=X(r.resize,r),h.animation.on("frame",r._onframe,r),aw(h,r),sw(h,r),Gl(r),r}return e.prototype._onframe=function(){if(!this._disposed){hw(this);var t=this._scheduler;if(this[Fe]){var i=this[Fe].silent;this[we]=!0;try{da(this),Zi.update.call(this,null,this[Fe].updateParams)}catch(l){throw this[we]=!1,this[Fe]=null,l}this._zr.flush(),this[we]=!1,this[Fe]=null,Bs.call(this,i),Gs.call(this,i)}else if(t.unfinished){var o=ZV,r=this._model,a=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(r),t.performDataProcessorTasks(r),Ff(this,r),t.performVisualTasks(r),wc(this,this._model,a,"remain",{}),o-=+new Date-s}while(o>0&&t.unfinished);t.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(t,i,o){if(this[we]){process.env.NODE_ENV!=="production"&&me("`setOption` should not be called during main process.");return}if(this._disposed){Ye(this.id);return}var r,a,s;if(K(i)&&(o=i.lazyUpdate,r=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[we]=!0,!this._model||i){var l=new KO(this._api),u=this._theme,c=this._model=new b_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:a},Xf);var h={seriesTransition:s,optionChanged:!0};if(o)this[Fe]={silent:r,updateParams:h},this[we]=!1,this.getZr().wakeUp();else{try{da(this),Zi.update.call(this,null,h)}catch(p){throw this[Fe]=null,this[we]=!1,p}this._ssr||this._zr.flush(),this[Fe]=null,this[we]=!1,Bs.call(this,r),Gs.call(this,r)}},e.prototype.setTheme=function(){bn("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||St.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return process.env.NODE_ENV!=="production"&&Jt("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;if(process.env.NODE_ENV!=="production"&&i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(St.svgSupported){var t=this._zr,i=t.storage.getDisplayList();return C(i,function(o){o.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){Ye(this.id);return}t=t||{};var i=t.excludeComponents,o=this._model,r=[],a=this;C(i,function(l){o.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(r.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return C(r,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){Ye(this.id);return}var i=t.type==="svg",o=this.group,r=Math.min,a=Math.max,s=1/0;if(fw[o]){var l=s,u=s,c=-s,h=-s,p=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();C(Hs,function(x,_){if(x.group===o){var w=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(it(t)),b=x.getDom().getBoundingClientRect();l=r(b.left,l),u=r(b.top,u),c=a(b.right,c),h=a(b.bottom,h),p.push({dom:w,left:b.left,top:b.top})}}),l*=d,u*=d,c*=d,h*=d;var f=c-l,g=h-u,v=Ci.createCanvas(),y=E0(v,{renderer:i?"svg":"canvas"});if(y.resize({width:f,height:g}),i){var m="";return C(p,function(x){var _=x.left-l,w=x.top-u;m+='<g transform="translate('+_+","+w+')">'+x.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new It({shape:{x:0,y:0,width:f,height:g},style:{fill:t.connectedBackgroundColor}})),C(p,function(x){var _=new he({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});y.add(_)}),y.refreshImmediately(),v.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i){return Gf(this,"convertToPixel",t,i)},e.prototype.convertFromPixel=function(t,i){return Gf(this,"convertFromPixel",t,i)},e.prototype.containPixel=function(t,i){if(this._disposed){Ye(this.id);return}var o=this._model,r,a=os(o,t);return C(a,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)r=r||!!c.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint?r=r||h.containPoint(i,u):process.env.NODE_ENV!=="production"&&Ht(l+": "+(h?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Ht(l+": containPoint is not supported")},this)},this),!!r},e.prototype.getVisual=function(t,i){var o=this._model,r=os(o,t,{defaultMainType:"series"}),a=r.seriesModel;process.env.NODE_ENV!=="production"&&(a||Ht("There is no specified series model"));var s=a.getData(),l=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?s.indexOfRawIndex(r.dataIndex):null;return l!=null?Lf(s,l,i):Rs(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;C(sR,function(i){var o=function(r){var a=t.getModel(),s=r.target,l,u=i==="globalout";if(u?l={}:s&&$o(s,function(f){var g=rt(f);if(g&&g.dataIndex!=null){var v=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=v&&v.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=R({},g.eventData),!0},!0),l){var c=l.componentType,h=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=l.seriesIndex);var p=c&&h!=null&&a.getComponent(c,h),d=p&&t[p.mainType==="series"?"_chartsMap":"_componentsMap"][p.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(p&&d)&&Ht("model or view can not be found by params"),l.event=r,l.type=i,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:p,view:d},t.trigger(i,l)}};o.zrEventfulCallAtLast=!0,t._zr.on(i,o,t)}),C(Fs,function(i,o){t._messageCenter.on(o,function(r){this.trigger(o,r)},t)}),C(["selectchanged"],function(i){t._messageCenter.on(i,function(o){this.trigger(i,o)},t)}),gV(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){Ye(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){Ye(this.id);return}this._disposed=!0;var t=this.getDom();t&&Q0(this.getDom(),jf,"");var i=this,o=i._api,r=i._model;C(i._componentsViews,function(a){a.dispose(r,o)}),C(i._chartsViews,function(a){a.dispose(r,o)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Hs[i.id]},e.prototype.resize=function(t){if(this[we]){process.env.NODE_ENV!=="production"&&me("`resize` should not be called during main process.");return}if(this._disposed){Ye(this.id);return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var o=i.resetOption("media"),r=t&&t.silent;this[Fe]&&(r==null&&(r=this[Fe].silent),o=!0,this[Fe]=null),this[we]=!0;try{o&&da(this),Zi.update.call(this,{type:"resize",animation:R({duration:0},t&&t.animation)})}catch(a){throw this[we]=!1,a}this[we]=!1,Bs.call(this,r),Gs.call(this,r)}},e.prototype.showLoading=function(t,i){if(this._disposed){Ye(this.id);return}if(K(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!Zf[t]){process.env.NODE_ENV!=="production"&&Ht("Loading effects "+t+" not exists.");return}var o=Zf[t](this._api,i),r=this._zr;this._loadingFX=o,r.add(o)},e.prototype.hideLoading=function(){if(this._disposed){Ye(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=R({},t);return i.type=Fs[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){Ye(this.id);return}if(K(i)||(i={silent:!!i}),!!Sc[t.type]&&this._model){if(this[we]){this._pendingActions.push(t);return}var o=i.silent;Hf.call(this,t,o);var r=i.flush;r?this._zr.flush():r!==!1&&St.browser.weChat&&this._throttledZrFlush(),Bs.call(this,o),Gs.call(this,o)}},e.prototype.updateLabelLayout=function(){Dn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){Ye(this.id);return}var i=t.seriesIndex,o=this.getModel(),r=o.getSeriesByIndex(i);process.env.NODE_ENV!=="production"&&J(t.data&&r),r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){da=function(h){var p=h._scheduler;p.restorePipelines(h._model),p.prepareStageTasks(),Bf(h,!0),Bf(h,!1),p.plan()},Bf=function(h,p){for(var d=h._model,f=h._scheduler,g=p?h._componentsViews:h._chartsViews,v=p?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,x=0;x<g.length;x++)g[x].__alive=!1;p?d.eachComponent(function(b,S){b!=="series"&&_(S)}):d.eachSeries(_);function _(b){var S=b.__requireNewView;b.__requireNewView=!1;var M="_ec_"+b.id+"_"+b.type,I=!S&&v[M];if(!I){var D=zn(b.type),T=p?Yt.getClass(D.main,D.sub):Vt.getClass(D.sub);process.env.NODE_ENV!=="production"&&J(T,D.sub+" does not exist."),I=new T,I.init(d,m),v[M]=I,g.push(I),y.add(I.group)}b.__viewId=I.__id=M,I.__alive=!0,I.__model=b,I.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!p&&f.prepareView(I,b,d,m)}for(var x=0;x<g.length;){var w=g[x];w.__alive?x++:(!p&&w.renderTask.dispose(),y.remove(w.group),w.dispose(d,m),g.splice(x,1),v[w.__id]===w&&delete v[w.__id],w.__id=w.group.__ecComponentInfo=null)}},bc=function(h,p,d,f,g){var v=h._model;if(v.setUpdatePayload(d),!f){C([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[f+"Id"]=d[f+"Id"],y[f+"Index"]=d[f+"Index"],y[f+"Name"]=d[f+"Name"];var m={mainType:f,query:y};g&&(m.subType=g);var x=d.excludeSeriesId,_;x!=null&&(_=j(),C(Nt(x),function(b){var S=ne(b,null);S!=null&&_.set(S,!0)})),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;if(!S)if(K1(d))if(b instanceof Ft)d.type===Po&&!d.notBlur&&!b.get(["emphasis","disabled"])&&uE(b,d,h._api);else{var M=kd(b.mainType,b.componentIndex,d.name,h._api),I=M.focusSelf,D=M.dispatchers;d.type===Po&&I&&!d.notBlur&&Ad(b.mainType,b.componentIndex,h._api),D&&C(D,function(T){d.type===Po?pi(T):di(T)})}else Nd(d)&&b instanceof Ft&&(pE(b,d,h._api),q1(b),un(h))},h),v&&v.eachComponent(m,function(b){var S=_&&_.get(b.id)!=null;S||w(h[f==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function w(b){b&&b.__alive&&b[p]&&b[p](b.__model,v,h._api,d)}},Zi={prepareAndUpdate:function(h){da(this),Zi.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,p){var d=this._model,f=this._api,g=this._zr,v=this._coordSysMgr,y=this._scheduler;if(d){d.setUpdatePayload(h),y.restoreData(d,h),y.performSeriesTasks(d),v.create(d,f),y.performDataProcessorTasks(d,h),Ff(this,d),v.update(d,f),t(d),y.performVisualTasks(d,h),Wf(this,d,f,h,p);var m=d.get("backgroundColor")||"transparent",x=d.get("darkMode");g.setBackgroundColor(m),x!=null&&x!=="auto"&&g.setDarkMode(x),Dn.trigger("afterupdate",d,f)}},updateTransform:function(h){var p=this,d=this._model,f=this._api;if(d){d.setUpdatePayload(h);var g=[];d.eachComponent(function(y,m){if(y!=="series"){var x=p.getViewOfComponentModel(m);if(x&&x.__alive)if(x.updateTransform){var _=x.updateTransform(m,d,f,h);_&&_.update&&g.push(x)}else g.push(x)}});var v=j();d.eachSeries(function(y){var m=p._chartsMap[y.__viewId];if(m.updateTransform){var x=m.updateTransform(y,d,f,h);x&&x.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),t(d),this._scheduler.performVisualTasks(d,h,{setDirty:!0,dirtyMap:v}),wc(this,d,f,h,{},v),Dn.trigger("afterupdate",d,f)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),Vt.markUpdateMethod(h,"updateView"),t(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),Wf(this,p,this._api,h,{}),Dn.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,d=this._model;d&&(d.setUpdatePayload(h),d.eachSeries(function(f){f.getData().clearAllVisual()}),Vt.markUpdateMethod(h,"updateVisual"),t(d),this._scheduler.performVisualTasks(d,h,{visualType:"visual",setDirty:!0}),d.eachComponent(function(f,g){if(f!=="series"){var v=p.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,d,p._api,h)}}),d.eachSeries(function(f){var g=p._chartsMap[f.__viewId];g.updateVisual(f,d,p._api,h)}),Dn.trigger("afterupdate",d,this._api))},updateLayout:function(h){Zi.update.call(this,h)}},Gf=function(h,p,d,f){if(h._disposed){Ye(h.id);return}for(var g=h._model,v=h._coordSysMgr.getCoordinateSystems(),y,m=os(g,d),x=0;x<v.length;x++){var _=v[x];if(_[p]&&(y=_[p](g,m,f))!=null)return y}process.env.NODE_ENV!=="production"&&Ht("No coordinate system that supports "+p+" found by the given finder.")},Ff=function(h,p){var d=h._chartsMap,f=h._scheduler;p.eachSeries(function(g){f.updateStreamModes(g,d[g.__viewId])})},Hf=function(h,p){var d=this,f=this.getModel(),g=h.type,v=h.escapeConnect,y=Sc[g],m=y.actionInfo,x=(m.update||"update").split(":"),_=x.pop(),w=x[0]!=null&&zn(x[0]);this[we]=!0;var b=[h],S=!1;h.batch&&(S=!0,b=G(h.batch,function(L){return L=et(R({},L),h),L.batch=null,L}));var M=[],I,D=Nd(h),T=K1(h);if(T&&j1(this._api),C(b,function(L){if(I=y.action(L,d._model,d._api),I=I||R({},L),I.type=m.event||I.type,M.push(I),T){var N=id(h),E=N.queryOptionMap,V=N.mainTypeSpecified,O=V?E.keys()[0]:"series";bc(d,_,L,O),un(d)}else D?(bc(d,_,L,"series"),un(d)):w&&bc(d,_,L,w.main,w.sub)}),_!=="none"&&!T&&!D&&!w)try{this[Fe]?(da(this),Zi.update.call(this,h),this[Fe]=null):Zi[_].call(this,h)}catch(L){throw this[we]=!1,L}if(S?I={type:m.event||g,escapeConnect:v,batch:M}:I=M[0],this[we]=!1,!p){var A=this._messageCenter;if(A.trigger(I.type,I),D){var k={type:"selectchanged",escapeConnect:v,selected:dE(f),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};A.trigger(k.type,k)}}},Bs=function(h){for(var p=this._pendingActions;p.length;){var d=p.shift();Hf.call(this,d,h)}},Gs=function(h){!h&&this.trigger("updated")},aw=function(h,p){h.on("rendered",function(d){p.trigger("rendered",d),h.animation.isFinished()&&!p[Fe]&&!p._scheduler.unfinished&&!p._pendingActions.length&&p.trigger("finished")})},sw=function(h,p){h.on("mouseover",function(d){var f=d.target,g=$o(f,Bi);g&&(cE(g,d,p._api),un(p))}).on("mouseout",function(d){var f=d.target,g=$o(f,Bi);g&&(hE(g,d,p._api),un(p))}).on("click",function(d){var f=d.target,g=$o(f,function(m){return rt(m).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",y=rt(g);p._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function i(h){var p=[],d=[],f=!1;if(h.eachComponent(function(m,x){var _=x.get("zlevel")||0,w=x.get("z")||0,b=x.getZLevelKey();f=f||!!b,(m==="series"?d:p).push({zlevel:_,z:w,idx:x.componentIndex,type:m,key:b})}),f){var g=p.concat(d),v,y;ql(g,function(m,x){return m.zlevel===x.zlevel?m.z-x.z:m.zlevel-x.zlevel}),C(g,function(m){var x=h.getComponent(m.type,m.idx),_=m.zlevel,w=m.key;v!=null&&(_=Math.max(v,_)),w?(_===v&&w!==y&&_++,y=w):y&&(_===v&&_++,y=""),v=_,x.setZLevel(_)})}}Wf=function(h,p,d,f,g){i(p),lw(h,p,d,f,g),C(h._chartsViews,function(v){v.__alive=!1}),wc(h,p,d,f,g),C(h._chartsViews,function(v){v.__alive||v.remove(p,d)})},lw=function(h,p,d,f,g,v){C(v||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,p,d,f),s(m,y),c(m,y)})},wc=function(h,p,d,f,g,v){var y=h._scheduler;g=R(g||{},{updatedSeries:p.getSeries()}),Dn.trigger("series:beforeupdate",p,d,g);var m=!1;p.eachSeries(function(x){var _=h._chartsMap[x.__viewId];_.__alive=!0;var w=_.renderTask;y.updatePayload(w,f),u(x,_),v&&v.get(x.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),_.group.silent=!!x.get("silent"),a(x,_),q1(x)}),y.unfinished=m||y.unfinished,Dn.trigger("series:layoutlabels",p,d,g),Dn.trigger("series:transition",p,d,g),p.eachSeries(function(x){var _=h._chartsMap[x.__viewId];s(x,_),c(x,_)}),r(h,p),Dn.trigger("series:afterupdate",p,d,g)},un=function(h){h[Rf]=!0,h.getZr().wakeUp()},hw=function(h){h[Rf]&&(h.getZr().storage.traverse(function(p){Xr(p)||o(p)}),h[Rf]=!1)};function o(h){for(var p=[],d=h.currentStates,f=0;f<d.length;f++){var g=d[f];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}h.selected&&h.states.select&&p.push("select"),h.hoverState===Du&&h.states.emphasis?p.push("emphasis"):h.hoverState===us&&h.states.blur&&p.push("blur"),h.useStates(p)}function r(h,p){var d=h._zr,f=d.storage,g=0;f.traverse(function(v){v.isGroup||g++}),g>p.get("hoverLayerThreshold")&&!St.node&&!St.worker&&p.eachSeries(function(v){if(!v.preventUsingHoverLayer){var y=h._chartsMap[v.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function a(h,p){var d=h.get("blendMode")||null;p.eachRendered(function(f){f.isGroup||(f.style.blend=d)})}function s(h,p){if(!h.preventAutoZ){var d=h.get("z")||0,f=h.get("zlevel")||0;p.eachRendered(function(g){return l(g,d,f,-1/0),!0})}}function l(h,p,d,f){var g=h.getTextContent(),v=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),x=0;x<m.length;x++)f=Math.max(l(m[x],p,d,f),f);else h.z=p,h.zlevel=d,f=Math.max(h.z2,f);if(g&&(g.z=p,g.zlevel=d,isFinite(f)&&(g.z2=f+2)),v){var _=h.textGuideLineConfig;v.z=p,v.zlevel=d,isFinite(f)&&(v.z2=f+(_&&_.showAbove?1:-1))}return f}function u(h,p){p.eachRendered(function(d){if(!Xr(d)){var f=d.getTextContent(),g=d.getTextGuideLine();d.stateTransition&&(d.stateTransition=null),f&&f.stateTransition&&(f.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),d.hasState()?(d.prevStates=d.currentStates,d.clearStates()):d.prevStates&&(d.prevStates=null)}})}function c(h,p){var d=h.getModel("stateAnimation"),f=h.isAnimationEnabled(),g=d.get("duration"),v=g>0?{duration:g,delay:d.get("delay"),easing:d.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Xr(y))return;if(y instanceof mt&&mE(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(f){y.stateTransition=v;var x=y.getTextContent(),_=y.getTextGuideLine();x&&(x.stateTransition=v),_&&(_.stateTransition=v)}y.__dirty&&o(y)}})}uw=function(h){return new(function(p){P(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},d.prototype.getComponentByElement=function(f){for(;f;){var g=f.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);f=f.parent}},d.prototype.enterEmphasis=function(f,g){pi(f,g),un(h)},d.prototype.leaveEmphasis=function(f,g){di(f,g),un(h)},d.prototype.enterBlur=function(f){U1(f),un(h)},d.prototype.leaveBlur=function(f){Dd(f),un(h)},d.prototype.enterSelect=function(f){Y1(f),un(h)},d.prototype.leaveSelect=function(f){X1(f),un(h)},d.prototype.getModel=function(){return h.getModel()},d.prototype.getViewOfComponentModel=function(f){return h.getViewOfComponentModel(f)},d.prototype.getViewOfSeriesModel=function(f){return h.getViewOfSeriesModel(f)},d}(w_))(h)},cw=function(h){function p(d,f){for(var g=0;g<d.length;g++){var v=d[g];v[zf]=f}}C(Fs,function(d,f){h._messageCenter.on(f,function(g){if(fw[h.group]&&h[zf]!==tw){if(g&&g.escapeConnect)return;var v=h.makeActionFromEvent(g),y=[];C(Hs,function(m){m!==h&&m.group===h.group&&y.push(m)}),p(y,tw),C(y,function(m){m[zf]!==rR&&m.dispatchAction(v)}),p(y,aR)}})})}}(),e}(je),Uf=pw.prototype;Uf.on=ew("on"),Uf.off=ew("off"),Uf.one=function(n,e,t){var i=this;bn("ECharts#one is deprecated.");function o(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];e&&e.apply&&e.apply(this,r),i.off(n,o)}this.on.call(this,n,o,t)};var sR=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ye(n){process.env.NODE_ENV!=="production"&&Ht("Instance "+n+" has been disposed")}var Sc={},Fs={},Yf=[],Xf=[],Mc=[],dw={},Zf={},Hs={},fw={},lR=+new Date-0,jf="_echarts_instance_";function uR(n,e,t){var i=!(t&&t.ssr);if(i){if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Initialize failed: invalid dom.");var o=cR(n);if(o)return process.env.NODE_ENV!=="production"&&Ht("There is a chart instance already initialized on the dom."),o;process.env.NODE_ENV!=="production"&&Dr(n)&&n.nodeName.toUpperCase()!=="CANVAS"&&(!n.clientWidth&&(!t||t.width==null)||!n.clientHeight&&(!t||t.height==null))&&Ht("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 r=new pw(n,e,t);return r.id="ec_"+lR++,Hs[r.id]=r,i&&Q0(n,jf,r.id),cw(r),Dn.trigger("afterinit",r),r}function cR(n){return Hs[oN(n,jf)]}function gw(n,e){dw[n]=e}function vw(n){dt(Xf,n)<0&&Xf.push(n)}function yw(n,e){$f(Yf,n,e,KV)}function hR(n){qf("afterinit",n)}function pR(n){qf("afterupdate",n)}function qf(n,e){Dn.on(n,e)}function Zn(n,e,t){$(e)&&(t=e,e="");var i=K(n)?n.type:[n,n={event:e}][0];n.event=(n.event||i).toLowerCase(),e=n.event,!Fs[e]&&(J(Qb.test(i)&&Qb.test(e)),Sc[i]||(Sc[i]={action:t,actionInfo:n}),Fs[e]=i)}function dR(n,e){oa.register(n,e)}function fR(n,e){$f(Mc,n,e,$b,"layout")}function tr(n,e){$f(Mc,n,e,Kb,"visual")}var mw=[];function $f(n,e,t,i,o){if(($(e)||K(e))&&(t=e,e=i),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");C(n,function(a){J(a.__raw!==t)})}if(!(dt(mw,t)>=0)){mw.push(t);var r=Mb.wrapStageHandler(t,o);r.__prio=e,r.__raw=t,n.push(r)}}function xw(n,e){Zf[n]=e}function gR(n,e,t){var i=XV("registerMap");i&&i(n,e,t)}var vR=IP;tr(Vf,$P),tr(_c,KP),tr(_c,JP),tr(Vf,dV),tr(_c,fV),tr(Jb,WV),vw(A_),yw(qV,rP),xw("default",QP),Zn({type:Po,event:Po,update:Po},jt),Zn({type:Tu,event:Tu,update:Tu},jt),Zn({type:hs,event:hs,update:hs},jt),Zn({type:Au,event:Au,update:Au},jt),Zn({type:ps,event:ps,update:ps},jt),gw("light",cV),gw("dark",hV);var _w=[],yR={registerPreprocessor:vw,registerProcessor:yw,registerPostInit:hR,registerPostUpdate:pR,registerUpdateLifecycle:qf,registerAction:Zn,registerCoordinateSystem:dR,registerLayout:fR,registerVisual:tr,registerTransform:vR,registerLoading:xw,registerMap:gR,registerImpl:YV,PRIORITY:oR,ComponentModel:bt,ComponentView:Yt,SeriesModel:Ft,ChartView:Vt,registerComponentModel:function(n){bt.registerClass(n)},registerComponentView:function(n){Yt.registerClass(n)},registerSeriesModel:function(n){Ft.registerClass(n)},registerChartView:function(n){Vt.registerClass(n)},registerSubTypeDefaulter:function(n,e){bt.registerSubTypeDefaulter(n,e)},registerPainter:function(n,e){VL(n,e)}};function yt(n){if(B(n)){C(n,function(e){yt(e)});return}dt(_w,n)>=0||(_w.push(n),$(n)&&(n={install:n}),n.install(yR))}function Ws(n){return n==null?0:n.length||1}function bw(n){return n}var mR=function(){function n(e,t,i,o,r,a){this._old=e,this._new=t,this._oldKeyGetter=i||bw,this._newKeyGetter=o||bw,this.context=r,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(e){return this._add=e,this},n.prototype.update=function(e){return this._update=e,this},n.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},n.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},n.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},n.prototype.remove=function(e){return this._remove=e,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},o=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,o,"_oldKeyGetter"),this._initIndexMap(t,i,r,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=o[a],l=i[s],u=Ws(l);if(u>1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(r,i)},n.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},o={},r=[],a=[];this._initIndexMap(e,i,r,"_oldKeyGetter"),this._initIndexMap(t,o,a,"_newKeyGetter");for(var s=0;s<r.length;s++){var l=r[s],u=i[l],c=o[l],h=Ws(u),p=Ws(c);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),o[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),o[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),o[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),o[l]=null;else if(h>1)for(var d=0;d<h;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,o)},n.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var o=e[i],r=t[o],a=Ws(r);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(r[s]);else a===1&&this._add&&this._add(r);t[o]=null}},n.prototype._initIndexMap=function(e,t,i,o){for(var r=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[o](e[a],a);if(r||(i[a]=s),!!t){var l=t[s],u=Ws(l);u===0?(t[s]=a,r&&i.push(s)):u===1?t[s]=[l,a]:l.push(a)}}},n}();const vi=mR;var xR=function(){function n(e,t){this._encode=e,this._schema=t}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function _R(n,e){var t={},i=t.encode={},o=j(),r=[],a=[],s={};C(n.dimensions,function(p){var d=n.getDimensionInfo(p),f=d.coordDim;if(f){process.env.NODE_ENV!=="production"&&J(of.get(f)==null);var g=d.coordDimIndex;Kf(i,f)[g]=p,d.isExtraCoord||(o.set(f,1),bR(d.type)&&(r[0]=p),Kf(s,f)[g]=n.getDimensionIndex(d.name)),d.defaultTooltip&&a.push(p)}of.each(function(v,y){var m=Kf(i,y),x=d.otherDims[y];x!=null&&x!==!1&&(m[x]=d.name)})});var l=[],u={};o.each(function(p,d){var f=i[d];u[d]=f[0],l=l.concat(f)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=G(l,function(p){return n.getDimensionInfo(p).storeDimIndex}),t.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(r=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=r.slice()),i.defaultedLabel=r,i.defaultedTooltip=a,t.userOutput=new xR(s,e),t}function Kf(n,e){return n.hasOwnProperty(e)||(n[e]=[]),n[e]}function Ic(n){return n==="category"?"ordinal":n==="time"?"time":"float"}function bR(n){return!(n==="ordinal"||n==="time")}var wR=function(){function n(e){this.otherDims={},e!=null&&R(this,e)}return n}();const Cc=wR;var SR=Mt(),MR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ww=function(){function n(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Iw(this.source)))},n.prototype.getSourceDimensionIndex=function(e){return ut(this._dimNameMap.get(e),-1)},n.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},n.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=E_(this.source),i=!Cw(e),o="",r=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===a)l=t?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=t?p.name:null,u=p.type)}r.push({property:l,type:u,ordinalMeta:c}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(o+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),o+="$",o+=MR[u]||"f",c&&(o+=c.uid),o+="$"}var d=this.source,f=[d.seriesLayoutBy,d.startIndex,o].join("$$");return{dimensions:r,hash:f}},n.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var o=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===t)r.isCalculationCoord||(o=r.name),i++;else{var a=this.getSourceDimension(t);a&&(o=a.name)}e.push(o)}return e},n.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function Sw(n){return n instanceof ww}function Mw(n){for(var e=j(),t=0;t<(n||[]).length;t++){var i=n[t],o=K(i)?i.name:i;o!=null&&e.get(o)==null&&e.set(o,t)}return e}function Iw(n){var e=SR(n);return e.dimNameMap||(e.dimNameMap=Mw(n.dimensionsDefine))}function Cw(n){return n>30}var Us=K,ji=G,IR=typeof Int32Array>"u"?Array:Int32Array,CR="e\0\0",Dw=-1,DR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],TR=["_approximateExtent"],Tw,Dc,Ys,fa,Jf,Tc,Qf,AR=function(){function n(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i,o=!1;Sw(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(o=!0,i=e),i=i||["x","y"];for(var r={},a=[],s={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],p=U(h)?new Cc({name:h}):h instanceof Cc?h:new Cc(h),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var f=p.otherDims=p.otherDims||{};a.push(d),r[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]),f.itemName===0&&(this._nameDimIdx=c),f.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&J(o||p.storeDimIndex>=0),o&&(p.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=j();C(a,function(v){g.set(r[v].storeDimIndex,v)})}}return n.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var o=this._schema.getSourceDimension(t);if(o)return o.name},n.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},n.prototype._recognizeDimIndex=function(e){if(Ct(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},n.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&t==null)throw new Error("Unknown dimension "+e);return t},n.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},n.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var o=i.encode[e];return o?o[t]:null},n.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(e,t,i){var o=this,r;if(e instanceof wf&&(r=e),!r){var a=this.dimensions,s=ff(e)||ye(e)?new V_(e,a.length):e;r=new wf;var l=ji(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=_R(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},n.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t.length),o=i.start,r=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=o;s<r;s++){var l=s-o;this._nameList[s]=t[l],a&&Qf(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var o=this._dimInfos[t[i]];o.ordinalMeta&&e.collectOrdinalMeta(o.storeDimIndex,o.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==fi&&!e.fillStorage},n.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,o=i.getProvider();this._updateOrdinalMeta();var r=this._nameList,a=this._idList,s=o.getSource().sourceFormat,l=s===rn;if(l&&!o.pure)for(var u=[],c=e;c<t;c++){var h=o.getItem(c,u);if(!this.hasItemOption&&YL(h)&&(this.hasItemOption=!0),h){var p=h.name;r[c]==null&&p!=null&&(r[c]=ne(p,null));var d=h.id;a[c]==null&&d!=null&&(a[c]=ne(d,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<t;c++)Qf(this,c);Tw(this)}},n.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},n.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},n.prototype.setCalculationInfo=function(e,t){Us(e)?R(this._calculationInfo,e):this._calculationInfo[e]=t},n.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Ys(this,this._nameDimIdx,t)),i==null&&(i=""),i},n.prototype._getCategory=function(e,t){var i=this._store.get(e,t),o=this._store.getOrdinalMeta(e);return o?o.categories[i]:i},n.prototype.getId=function(e){return Dc(this,this.getRawIndex(e))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.get(o.storeDimIndex,t)},n.prototype.getByRawIndex=function(e,t){var i=this._store,o=this._dimInfos[e];if(o)return i.getByRawIndex(o.storeDimIndex,t)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},n.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},n.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},n.prototype.getValues=function(e,t){var i=this,o=this._store;return B(e)?o.getValues(ji(e,function(r){return i._getStoreDimIndex(r)}),t):o.getValues(e)},n.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,o=t.length;i<o;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},n.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},n.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},n.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},n.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("Do not supported yet");var o=i[t];return o==null||isNaN(o)?Dw:o},n.prototype.indicesOfNearest=function(e,t,i){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,i)},n.prototype.each=function(e,t,i){$(e)&&(i=t,t=e,e=[]);var o=i||this,r=ji(fa(e),this._getStoreDimIndex,this);this._store.each(r,o?X(t,o):t)},n.prototype.filterSelf=function(e,t,i){$(e)&&(i=t,t=e,e=[]);var o=i||this,r=ji(fa(e),this._getStoreDimIndex,this);return this._store=this._store.filter(r,o?X(t,o):t),this},n.prototype.selectRange=function(e){var t=this,i={},o=xt(e);return C(o,function(r){var a=t._getStoreDimIndex(r);i[a]=e[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(e,t,i){$(e)&&(i=t,t=e,e=[]),i=i||this;var o=[];return this.each(e,function(){o.push(t&&t.apply(this,arguments))},i),o},n.prototype.map=function(e,t,i,o){var r=i||o||this,a=ji(fa(e),this._getStoreDimIndex,this),s=Tc(this);return s._store=this._store.map(a,r?X(t,r):t),s},n.prototype.modify=function(e,t,i,o){var r=this,a=i||o||this;process.env.NODE_ENV!=="production"&&C(fa(e),function(l){var u=r.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=ji(fa(e),this._getStoreDimIndex,this);this._store.modify(s,a?X(t,a):t)},n.prototype.downSample=function(e,t,i,o){var r=Tc(this);return r._store=this._store.downSample(this._getStoreDimIndex(e),t,i,o),r},n.prototype.lttbDownSample=function(e,t){var i=Tc(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},n.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},n.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Pt(i,t,t&&t.ecModel)},n.prototype.diff=function(e){var t=this;return new vi(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Dc(e,i)},function(i){return Dc(t,i)})},n.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},n.prototype.setVisual=function(e,t){this._visual=this._visual||{},Us(e)?R(this._visual,e):this._visual[e]=t},n.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],o=i&&i[t];return o??this.getVisual(t)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,o=i[e];o||(o=i[e]={});var r=o[t];return r==null&&(r=this.getVisual(t),B(r)?r=r.slice():Us(r)&&(r=R({},r)),o[t]=r),r},n.prototype.setItemVisual=function(e,t,i){var o=this._itemVisuals[e]||{};this._itemVisuals[e]=o,Us(t)?R(o,t):o[t]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(e,t){Us(e)?R(this._layout,e):this._layout[e]=t},n.prototype.getLayout=function(e){return this._layout[e]},n.prototype.getItemLayout=function(e){return this._itemLayouts[e]},n.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?R(this._itemLayouts[e]||{},t):t},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;wd(i,this.dataType,e,t),this._graphicEls[e]=t},n.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},n.prototype.eachItemGraphicEl=function(e,t){C(this._graphicEls,function(i,o){i&&e&&e.call(t,i,o)})},n.prototype.cloneShallow=function(e){return e||(e=new n(this._schema?this._schema:ji(this.dimensions,this._getDimInfo,this),this.hostModel)),Jf(e,this),e._store=this._store,e},n.prototype.wrapMethod=function(e,t){var i=this[e];$(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var o=i.apply(this,arguments);return t.apply(this,[o].concat(ep(arguments)))})},n.internalField=function(){Tw=function(e){var t=e._invertedIndicesMap;C(t,function(i,o){var r=e._dimInfos[o],a=r.ordinalMeta,s=e._store;if(a){i=t[o]=new IR(a.categories.length);for(var l=0;l<i.length;l++)i[l]=Dw;for(var l=0;l<s.count();l++)i[s.get(r.storeDimIndex,l)]=l}})},Ys=function(e,t,i){return ne(e._getCategory(t,i),null)},Dc=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Ys(e,e._idDimIdx,t)),i==null&&(i=CR+t),i},fa=function(e){return B(e)||(e=e!=null?[e]:[]),e},Tc=function(e){var t=new n(e._schema?e._schema:ji(e.dimensions,e._getDimInfo,e),e.hostModel);return Jf(t,e),t},Jf=function(e,t){C(DR.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,C(TR,function(i){e[i]=it(t[i])}),e._calculationInfo=R({},t._calculationInfo)},Qf=function(e,t){var i=e._nameList,o=e._idList,r=e._nameDimIdx,a=e._idDimIdx,s=i[t],l=o[t];if(s==null&&r!=null&&(i[t]=s=Ys(e,r,t)),l==null&&a!=null&&(o[t]=l=Ys(e,a,t)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),o[t]=l}}}(),n}();const Te=AR;function Xs(n,e){ff(n)||(n=vf(n)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||n.dimensionsDefine||[],o=j(),r=[],a=LR(n,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Cw(a),l=i===n.dimensionsDefine,u=l?Iw(n):Mw(i),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(n,a));for(var h=j(c),p=new j_(a),d=0;d<p.length;d++)p[d]=-1;function f(I){var D=p[I];if(D<0){var T=i[I],A=K(T)?T:{name:T},k=new Cc,L=A.name;L!=null&&u.get(L)!=null&&(k.name=k.displayName=L),A.type!=null&&(k.type=A.type),A.displayName!=null&&(k.displayName=A.displayName);var N=r.length;return p[I]=N,k.storeDimIndex=I,r.push(k),k}return r[D]}if(!s)for(var d=0;d<a;d++)f(d);h.each(function(I,D){var T=Nt(I).slice();if(T.length===1&&!U(T[0])&&T[0]<0){h.set(D,!1);return}var A=h.set(D,[]);C(T,function(k,L){var N=U(k)?u.get(k):k;N!=null&&N<a&&(A[L]=N,v(f(N),D,L))})});var g=0;C(t,function(I){var D,T,A,k;if(U(I))D=I,k={};else{k=I,D=k.name;var L=k.ordinalMeta;k.ordinalMeta=null,k=R({},k),k.ordinalMeta=L,T=k.dimsDef,A=k.otherDims,k.name=k.coordDim=k.coordDimIndex=k.dimsDef=k.otherDims=null}var N=h.get(D);if(N!==!1){if(N=Nt(N),!N.length)for(var E=0;E<(T&&T.length||1);E++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&N.push(g++)}C(N,function(V,O){var z=f(V);if(l&&k.type!=null&&(z.type=k.type),v(et(z,k),D,O),z.name==null&&T){var F=T[O];!K(F)&&(F={name:F}),z.name=z.displayName=F.name,z.defaultTooltip=F.defaultTooltip}A&&et(z.otherDims,A)})}});function v(I,D,T){of.get(D)!=null?I.otherDims[D]=T:(I.coordDim=D,I.coordDimIndex=T,o.set(D,!0))}var y=e.generateCoord,m=e.generateCoordCount,x=m!=null;m=y?m||1:0;var _=y||"value";function w(I){I.name==null&&(I.name=I.coordDim)}if(s)C(r,function(I){w(I)}),r.sort(function(I,D){return I.storeDimIndex-D.storeDimIndex});else for(var b=0;b<a;b++){var S=f(b),M=S.coordDim;M==null&&(S.coordDim=NR(_,o,x),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),w(S),S.type==null&&(h_(n,b)===fe.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return kR(r),new ww({source:n,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function kR(n){for(var e=j(),t=0;t<n.length;t++){var i=n[t],o=i.name,r=e.get(o)||0;r>0&&(i.name=o+(r-1)),r++,e.set(o,r)}}function LR(n,e,t,i){var o=Math.max(n.dimensionsDetectedCount||1,e.length,t.length,i||0);return C(e,function(r){var a;K(r)&&(a=r.dimsDef)&&(o=Math.max(o,a.length))}),o}function NR(n,e,t){if(t||e.hasKey(n)){for(var i=0;e.hasKey(n+i);)i++;n+=i}return e.set(n,!0),n}var ER=function(){function n(e){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=e}return n}();function OR(n){var e=n.get("coordinateSystem"),t=new ER(e),i=PR[e];if(i)return i(n,t,t.axisMap,t.categoryAxisMap),t}var PR={cartesian2d:function(n,e,t,i){var o=n.getReferringComponents("xAxis",Qt).models[0],r=n.getReferringComponents("yAxis",Qt).models[0];if(process.env.NODE_ENV!=="production"){if(!o)throw new Error('xAxis "'+Kt(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!r)throw new Error('yAxis "'+Kt(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],t.set("x",o),t.set("y",r),ga(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),ga(r)&&(i.set("y",r),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(n,e,t,i){var o=n.getReferringComponents("singleAxis",Qt).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],t.set("single",o),ga(o)&&(i.set("single",o),e.firstCategoryDimIndex=0)},polar:function(n,e,t,i){var o=n.getReferringComponents("polar",Qt).models[0],r=o.findAxisModel("radiusAxis"),a=o.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!r)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],t.set("radius",r),t.set("angle",a),ga(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),ga(a)&&(i.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(n,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(n,e,t,i){var o=n.ecModel,r=o.getComponent("parallel",n.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();C(r.parallelAxisIndex,function(s,l){var u=o.getComponent("parallelAxis",s),c=a[l];t.set(c,u),ga(u)&&(i.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function ga(n){return n.get("type")==="category"}function VR(n,e,t){t=t||{};var i=t.byIndex,o=t.stackedCoordDimension,r,a,s;RR(e)?r=e:(a=e.schema,r=a.dimensions,s=e.store);var l=!!(n&&n.get("stack")),u,c,h,p;if(C(r,function(m,x){U(m)&&(r[x]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!c&&m.type!=="ordinal"&&m.type!=="time"&&(!o||o===m.coordDim)&&(c=m))}),c&&!i&&!u&&(i=!0),c){h="__\0ecstackresult_"+n.id,p="__\0ecstackedover_"+n.id,u&&(u.createInvertedIndices=!0);var d=c.coordDim,f=c.type,g=0;C(r,function(m){m.coordDim===d&&g++});var v={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};a?(s&&(v.storeDimIndex=s.ensureCalculationDimension(p,f),y.storeDimIndex=s.ensureCalculationDimension(h,f)),a.appendCalculationDimension(v),a.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function RR(n){return!Sw(n.schema)}function qi(n,e){return!!e&&e===n.getCalculationInfo("stackedDimension")}function Aw(n,e){return qi(n,e)?n.getCalculationInfo("stackResultDimension"):e}function zR(n,e){var t=n.get("coordinateSystem"),i=oa.get(t),o;return e&&e.coordSysDims&&(o=G(e.coordSysDims,function(r){var a={name:r},s=e.axisMap.get(r);if(s){var l=s.get("type");a.type=Ic(l)}return a})),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}function BR(n,e,t){var i,o;return t&&C(n,function(r,a){var s=r.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=a),r.ordinalMeta=l.getOrdinalMeta(),e&&(r.createInvertedIndices=!0)),r.otherDims.itemName!=null&&(o=!0)}),!o&&i!=null&&(n[i].otherDims.itemName=0),i}function yi(n,e,t){t=t||{};var i=e.getSourceManager(),o,r=!1;n?(r=!0,o=vf(n)):(o=i.getSource(),r=o.sourceFormat===rn);var a=OR(e),s=zR(e,a),l=t.useEncodeDefaulter,u=$(l)?l:l?at(c_,s,e):null,c={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r},h=Xs(o,c),p=BR(h.dimensions,t.createInvertedIndices,a),d=r?null:i.getSharedDataStore(h),f=VR(e,{schema:h,store:d}),g=new Te(h,e);g.setCalculationInfo(f);var v=p!=null&&GR(o)?function(y,m,x,_){return _===p?x:this.defaultDimValueGetter(y,m,x,_)}:null;return g.hasItemOption=!1,g.initData(r?o:d,null,v),g}function GR(n){if(n.sourceFormat===rn){var e=FR(n.data||[]);return!B(zr(e))}}function FR(n){for(var e=0;e<n.length&&n[e]==null;)e++;return n[e]}var kw=function(){function n(e){this._setting=e||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(e){return this._setting[e]},n.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},n.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(e,t){var i=this._extent;isNaN(e)||(i[0]=e),isNaN(t)||(i[1]=t)},n.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(e){this._isBlank=e},n}();xu(kw);const mi=kw;var HR=0,WR=function(){function n(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++HR}return n.createByAxisModel=function(e){var t=e.option,i=t.data,o=i&&G(i,UR);return new n({categories:o,needCollect:!o,deduplication:t.dedplication!==!1})},n.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},n.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!U(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var o=this._getOrCreateMap();return t=o.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,o.set(e,t)):t=NaN),t},n.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},n}();function UR(n){return K(n)&&n.value!=null?n.value:n+""}const tg=WR;function YR(n){var e=Math.pow(10,yu(Math.abs(n))),t=Math.abs(n/e);return t===0||t===1||t===2||t===3||t===5}function eg(n){return n.type==="interval"||n.type==="log"}function XR(n,e,t,i){var o={},r=n[1]-n[0],a=o.interval=B0(r/e,!0);t!=null&&a<t&&(a=o.interval=t),i!=null&&a>i&&(a=o.interval=i);var s=o.intervalPrecision=Lw(a),l=o.niceTickExtent=[Zt(Math.ceil(n[0]/a)*a,s),Zt(Math.floor(n[1]/a)*a,s)];return ZR(l,n),o}function ng(n){var e=Math.pow(10,yu(n)),t=n/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Zt(t*e)}function Lw(n){return Vn(n)+2}function Nw(n,e,t){n[e]=Math.max(Math.min(n[e],t[1]),t[0])}function ZR(n,e){!isFinite(n[0])&&(n[0]=e[0]),!isFinite(n[1])&&(n[1]=e[1]),Nw(n,0,e),Nw(n,1,e),n[0]>n[1]&&(n[0]=n[1])}function Ac(n,e){return n>=e[0]&&n<=e[1]}function kc(n,e){return e[1]===e[0]?.5:(n-e[0])/(e[1]-e[0])}function Lc(n,e){return n*(e[1]-e[0])+e[0]}var Ew=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;i.type="ordinal";var o=i.getSetting("ordinalMeta");return o||(o=new tg({})),B(o)&&(o=new tg({categories:G(o,function(r){return K(r)?r.value:r})})),i._ordinalMeta=o,i._extent=i.getSetting("extent")||[0,o.categories.length-1],i}return e.prototype.parse=function(t){return t==null?NaN:U(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),Ac(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),kc(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Lc(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],i=this._extent,o=i[0];o<=i[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var u=i[a];o[a]=u,r[u]=a}for(var c=0;a<s;++a){for(;r[c]!=null;)c++;o.push(c),r[c]=a}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),o=this._ordinalMeta.categories[i];return o==null?"":o+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(mi);mi.registerClass(Ew);const ig=Ew;var er=Zt,Ow=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ac(t,this._extent)},e.prototype.normalize=function(t){return kc(t,this._extent)},e.prototype.scale=function(t){return Lc(t,this._extent)},e.prototype.setExtent=function(t,i){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(i)||(o[1]=parseFloat(i))},e.prototype.unionExtent=function(t){var i=this._extent;t[0]<i[0]&&(i[0]=t[0]),t[1]>i[1]&&(i[1]=t[1]),this.setExtent(i[0],i[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Lw(t)},e.prototype.getTicks=function(t){var i=this._interval,o=this._extent,r=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;o[0]<r[0]&&(t?s.push({value:er(r[0]-i,a)}):s.push({value:o[0]}));for(var u=r[0];u<=r[1]&&(s.push({value:u}),u=er(u+i,a),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:r[1];return o[1]>c&&(t?s.push({value:er(c+i,a)}):s.push({value:o[1]})),s},e.prototype.getMinorTicks=function(t){for(var i=this.getTicks(!0),o=[],r=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],u=0,c=[],h=s.value-l.value,p=h/t;u<t-1;){var d=er(l.value+(u+1)*p);d>r[0]&&d<r[1]&&c.push(d),u++}o.push(c)}return o},e.prototype.getLabel=function(t,i){if(t==null)return"";var o=i&&i.precision;o==null?o=Vn(t.value)||0:o==="auto"&&(o=this._intervalPrecision);var r=er(t.value,o,!0);return e_(r)},e.prototype.calcNiceTicks=function(t,i,o){t=t||5;var r=this._extent,a=r[1]-r[0];if(isFinite(a)){a<0&&(a=-a,r.reverse());var s=XR(r,t,i,o);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var o=Math.abs(i[0]);t.fixMax||(i[1]+=o/2),i[0]-=o/2}else i[1]=1;var r=i[1]-i[0];isFinite(r)||(i[0]=0,i[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var a=this._interval;t.fixMin||(i[0]=er(Math.floor(i[0]/a)*a)),t.fixMax||(i[1]=er(Math.ceil(i[1]/a)*a))},e.prototype.setNiceExtent=function(t,i){this._niceExtent=[t,i]},e.type="interval",e}(mi);mi.registerClass(Ow);const $i=Ow;var Pw=typeof Float32Array<"u",jR=Pw?Float32Array:Array;function jn(n){return B(n)?Pw?new Float32Array(n):n:new jR(n)}var og="__ec_stack_";function rg(n){return n.get("stack")||og+n.seriesIndex}function ag(n){return n.dim+n.index}function qR(n){var e=[],t=n.axis,i="axis0";if(t.type==="category"){for(var o=t.getBandWidth(),r=0;r<n.count;r++)e.push(et({bandWidth:o,axisKey:i,stackId:og+r},n));for(var a=zw(e),s=[],r=0;r<n.count;r++){var l=a[i][og+r];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Vw(n,e){var t=[];return e.eachSeriesByType(n,function(i){Fw(i)&&t.push(i)}),t}function $R(n){var e={};C(n,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var h=l.getData(),p=c.dim+"_"+c.index,d=h.getDimensionIndex(h.mapDimension(c.dim)),f=h.getStore(),g=0,v=f.count();g<v;++g){var y=f.get(d,g);e[p]?e[p].push(y):e[p]=[y]}});var t={};for(var i in e)if(e.hasOwnProperty(i)){var o=e[i];if(o){o.sort(function(l,u){return l-u});for(var r=null,a=1;a<o.length;++a){var s=o[a]-o[a-1];s>0&&(r=r===null?s:Math.min(r,s))}t[i]=r}}return t}function Rw(n){var e=$R(n),t=[];return C(n,function(i){var o=i.coordinateSystem,r=o.getBaseAxis(),a=r.getExtent(),s;if(r.type==="category")s=r.getBandWidth();else if(r.type==="value"||r.type==="time"){var l=r.dim+"_"+r.index,u=e[l],c=Math.abs(a[1]-a[0]),h=r.scale.getExtent(),p=Math.abs(h[1]-h[0]);s=u?c/p*u:c}else{var d=i.getData();s=Math.abs(a[1]-a[0])/d.count()}var f=H(i.get("barWidth"),s),g=H(i.get("barMaxWidth"),s),v=H(i.get("barMinWidth")||(Hw(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");t.push({bandWidth:s,barWidth:f,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:m,axisKey:ag(r),stackId:rg(i)})}),zw(t)}function zw(n){var e={};C(n,function(i,o){var r=i.axisKey,a=i.bandWidth,s=e[r]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[r]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=i.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var p=i.barMinWidth;p&&(l[u].minWidth=p);var d=i.barGap;d!=null&&(s.gap=d);var f=i.barCategoryGap;f!=null&&(s.categoryGap=f)});var t={};return C(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=i.categoryGap;if(s==null){var l=xt(r).length;s=Math.max(35-l*4,15)+"%"}var u=H(s,a),c=H(i.gap,1),h=i.remainedWidth,p=i.autoWidthCount,d=(h-u)/(p+(p-1)*c);d=Math.max(d,0),C(r,function(y){var m=y.maxWidth,x=y.minWidth;if(y.width){var _=y.width;m&&(_=Math.min(_,m)),x&&(_=Math.max(_,x)),y.width=_,h-=_+c*_,p--}else{var _=d;m&&m<_&&(_=Math.min(m,h)),x&&x>_&&(_=x),_!==d&&(y.width=_,h-=_+c*_,p--)}}),d=(h-u)/(p+(p-1)*c),d=Math.max(d,0);var f=0,g;C(r,function(y,m){y.width||(y.width=d),g=y,f+=y.width*(1+c)}),g&&(f-=g.width*c);var v=-f/2;C(r,function(y,m){t[o][m]=t[o][m]||{bandWidth:a,offset:v,width:y.width},v+=y.width*(1+c)})}),t}function KR(n,e,t){if(n&&e){var i=n[ag(e)];return i!=null&&t!=null?i[rg(t)]:i}}function Bw(n,e){var t=Vw(n,e),i=Rw(t);C(t,function(o){var r=o.getData(),a=o.coordinateSystem,s=a.getBaseAxis(),l=rg(o),u=i[ag(s)][l],c=u.offset,h=u.width;r.setLayout({bandWidth:u.bandWidth,offset:c,size:h})})}function Gw(n){return{seriesType:n,plan:sa(),reset:function(e){if(Fw(e)){var t=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),r=i.getOtherAxis(o),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=t.getDimensionIndex(t.mapDimension(o.dim)),l=e.get("showBackground",!0),u=t.mapDimension(r.dim),c=t.getCalculationInfo("stackResultDimension"),h=qi(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),p=r.isHorizontal(),d=JR(o,r),f=Hw(e),g=e.get("barMinHeight")||0,v=c&&t.getDimensionIndex(c),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(x,_){for(var w=x.count,b=f&&jn(w*3),S=f&&l&&jn(w*3),M=f&&jn(w),I=i.master.getRect(),D=p?I.width:I.height,T,A=_.getStore(),k=0;(T=x.next())!=null;){var L=A.get(h?v:a,T),N=A.get(s,T),E=d,V=void 0;h&&(V=+L-A.get(a,T));var O=void 0,z=void 0,F=void 0,W=void 0;if(p){var Z=i.dataToPoint([L,N]);if(h){var Q=i.dataToPoint([V,N]);E=Q[0]}O=E,z=Z[1]+m,F=Z[0]-E,W=y,Math.abs(F)<g&&(F=(F<0?-1:1)*g)}else{var Z=i.dataToPoint([N,L]);if(h){var Q=i.dataToPoint([N,V]);E=Q[1]}O=Z[0]+m,z=E,F=y,W=Z[1]-E,Math.abs(W)<g&&(W=(W<=0?-1:1)*g)}f?(b[k]=O,b[k+1]=z,b[k+2]=p?F:W,S&&(S[k]=p?I.x:O,S[k+1]=p?z:I.y,S[k+2]=D),M[T]=T):_.setItemLayout(T,{x:O,y:z,width:F,height:W}),k+=3}f&&_.setLayout({largePoints:b,largeDataIndices:M,largeBackgroundPoints:S,valueAxisHorizontal:p})}}}}}}function Fw(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function Hw(n){return n.pipelineContext&&n.pipelineContext.large}function JR(n,e){return e.toGlobalCoord(e.dataToCoord(e.type==="log"?1:0))}var QR=function(n,e,t,i){for(;t<i;){var o=t+i>>>1;n[o][1]<e?t=o+1:i=o}return t},Ww=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="time",i}return e.prototype.getLabel=function(t){var i=this.getSetting("useUTC");return $u(t.value,Yx[_O(Kr(this._minLevelUnit))]||Yx.second,i,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,i,o){var r=this.getSetting("useUTC"),a=this.getSetting("locale");return bO(t,i,o,a,r)},e.prototype.getTicks=function(){var t=this._interval,i=this._extent,o=[];if(!t)return o;o.push({value:i[0],level:0});var r=this.getSetting("useUTC"),a=az(this._minLevelUnit,this._approxInterval,r,i);return o=o.concat(a),o.push({value:i[1],level:0}),o},e.prototype.calcNiceExtent=function(t){var i=this._extent;if(i[0]===i[1]&&(i[0]-=on,i[1]+=on),i[1]===-1/0&&i[0]===1/0){var o=new Date;i[1]=+new Date(o.getFullYear(),o.getMonth(),o.getDate()),i[0]=i[1]-on}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,i,o){t=t||10;var r=this._extent,a=r[1]-r[0];this._approxInterval=a/t,i!=null&&this._approxInterval<i&&(this._approxInterval=i),o!=null&&this._approxInterval>o&&(this._approxInterval=o);var s=Nc.length,l=Math.min(QR(Nc,this._approxInterval,0,s),s-1);this._interval=Nc[l][1],this._minLevelUnit=Nc[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return Ct(t)?t:+Rn(t)},e.prototype.contain=function(t){return Ac(this.parse(t),this._extent)},e.prototype.normalize=function(t){return kc(this.parse(t),this._extent)},e.prototype.scale=function(t){return Lc(t,this._extent)},e.type="time",e}($i),Nc=[["second",$d],["minute",Kd],["hour",Ss],["quarter-day",Ss*6],["half-day",Ss*12],["day",on*1.2],["half-week",on*3.5],["week",on*7],["month",on*31],["quarter",on*95],["half-year",Ux/2],["year",Ux]];function tz(n,e,t,i){var o=Rn(e),r=Rn(t),a=function(f){return jx(o,f,i)===jx(r,f,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},h=function(){return c()&&a("minute")},p=function(){return h()&&a("second")},d=function(){return p()&&a("millisecond")};switch(n){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return h();case"second":return p();case"millisecond":return d()}}function ez(n,e){return n/=on,n>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function nz(n){var e=30*on;return n/=e,n>6?6:n>3?3:n>2?2:1}function iz(n){return n/=Ss,n>12?12:n>6?6:n>3.5?4:n>2?2:1}function Uw(n,e){return n/=e?Kd:$d,n>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function oz(n){return B0(n,!0)}function rz(n,e,t){var i=new Date(n);switch(Kr(e)){case"year":case"month":i[qx(t)](0);case"day":i[$x(t)](1);case"hour":i[Kx(t)](0);case"minute":i[Jx(t)](0);case"second":i[Qx(t)](0),i[t_(t)](0)}return i.getTime()}function az(n,e,t,i){var o=1e4,r=Xx,a=0;function s(D,T,A,k,L,N,E){for(var V=new Date(T),O=T,z=V[k]();O<A&&O<=i[1];)E.push({value:O}),z+=D,V[L](z),O=V.getTime();E.push({value:O,notAdd:!0})}function l(D,T,A){var k=[],L=!T.length;if(!tz(Kr(D),i[0],i[1],t)){L&&(T=[{value:rz(new Date(i[0]),D,t)},{value:i[1]}]);for(var N=0;N<T.length-1;N++){var E=T[N].value,V=T[N+1].value;if(E!==V){var O=void 0,z=void 0,F=void 0,W=!1;switch(D){case"year":O=Math.max(1,Math.round(e/on/365)),z=Qd(t),F=wO(t);break;case"half-year":case"quarter":case"month":O=nz(e),z=Jr(t),F=qx(t);break;case"week":case"half-week":case"day":O=ez(e),z=Ku(t),F=$x(t),W=!0;break;case"half-day":case"quarter-day":case"hour":O=iz(e),z=Is(t),F=Kx(t);break;case"minute":O=Uw(e,!0),z=Ju(t),F=Jx(t);break;case"second":O=Uw(e,!1),z=Qu(t),F=Qx(t);break;case"millisecond":O=oz(e),z=tc(t),F=t_(t);break}s(O,E,V,z,F,W,k),D==="year"&&A.length>1&&N===0&&A.unshift({value:A[0].value-O})}}for(var N=0;N<k.length;N++)A.push(k[N]);return k}}for(var u=[],c=[],h=0,p=0,d=0;d<r.length&&a++<o;++d){var f=Kr(r[d]);if(xO(r[d])){l(r[d],u[u.length-1]||[],c);var g=r[d+1]?Kr(r[d+1]):null;if(f!==g){if(c.length){p=h,c.sort(function(D,T){return D.value-T.value});for(var v=[],y=0;y<c.length;++y){var m=c[y].value;(y===0||c[y-1].value!==m)&&(v.push(c[y]),m>=i[0]&&m<=i[1]&&h++)}var x=(i[1]-i[0])/e;if(h>x*1.5&&p>x/1.5||(u.push(v),h>x||n===r[d]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=o&&Ht("Exceed safe limit.");for(var _=Lt(G(u,function(T){return Lt(T,function(A){return A.value>=i[0]&&A.value<=i[1]&&!A.notAdd})}),function(T){return T.length>0}),w=[],b=_.length-1,d=0;d<_.length;++d)for(var S=_[d],M=0;M<S.length;++M)w.push({value:S[M].value,level:b-d});w.sort(function(D,T){return D.value-T.value});for(var I=[],d=0;d<w.length;++d)(d===0||w[d].value!==w[d-1].value)&&I.push(w[d]);return I}mi.registerClass(Ww);const Yw=Ww;var Xw=mi.prototype,Zs=$i.prototype,sz=Zt,lz=Math.floor,uz=Math.ceil,Ec=Math.pow,Tn=Math.log,sg=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new $i,t._interval=0,t}return e.prototype.getTicks=function(t){var i=this._originalScale,o=this._extent,r=i.getExtent(),a=Zs.getTicks.call(this,t);return G(a,function(s){var l=s.value,u=Zt(Ec(this.base,l));return u=l===o[0]&&this._fixMin?Oc(u,r[0]):u,u=l===o[1]&&this._fixMax?Oc(u,r[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,i){var o=Tn(this.base);t=Tn(Math.max(0,t))/o,i=Tn(Math.max(0,i))/o,Zs.setExtent.call(this,t,i)},e.prototype.getExtent=function(){var t=this.base,i=Xw.getExtent.call(this);i[0]=Ec(t,i[0]),i[1]=Ec(t,i[1]);var o=this._originalScale,r=o.getExtent();return this._fixMin&&(i[0]=Oc(i[0],r[0])),this._fixMax&&(i[1]=Oc(i[1],r[1])),i},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var i=this.base;t[0]=Tn(t[0])/Tn(i),t[1]=Tn(t[1])/Tn(i),Xw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,i){this.unionExtent(t.getApproximateExtent(i))},e.prototype.calcNiceTicks=function(t){t=t||10;var i=this._extent,o=i[1]-i[0];if(!(o===1/0||o<=0)){var r=FL(o),a=t/o*r;for(a<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var s=[Zt(uz(i[0]/r)*r),Zt(lz(i[1]/r)*r)];this._interval=r,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){Zs.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Tn(t)/Tn(this.base),Ac(t,this._extent)},e.prototype.normalize=function(t){return t=Tn(t)/Tn(this.base),kc(t,this._extent)},e.prototype.scale=function(t){return t=Lc(t,this._extent),Ec(this.base,t)},e.type="log",e}(mi),Zw=sg.prototype;Zw.getMinorTicks=Zs.getMinorTicks,Zw.getLabel=Zs.getLabel;function Oc(n,e){return sz(n,Vn(e))}mi.registerClass(sg);const cz=sg;var hz=function(){function n(e,t,i){this._prepareParams(e,t,i)}return n.prototype._prepareParams=function(e,t,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var o=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var r=this._modelMinRaw=t.get("min",!0);$(r)?this._modelMinNum=Pc(e,r({min:i[0],max:i[1]})):r!=="dataMin"&&(this._modelMinNum=Pc(e,r));var a=this._modelMaxRaw=t.get("max",!0);if($(a)?this._modelMaxNum=Pc(e,a({min:i[0],max:i[1]})):a!=="dataMax"&&(this._modelMaxNum=Pc(e,a)),o)this._axisDataLen=t.getCategories().length;else{var s=t.get("boundaryGap"),l=B(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[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=[_n(l[0],1),_n(l[1],1)]}},n.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,i=this._dataMax,o=this._axisDataLen,r=this._boundaryGapInner,a=e?null:i-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=e?o?0:NaN:t-r[0]*a),l==null&&(l=e?o?o-1:NaN:i+r[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=co(s)||co(l)||e&&!o;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},n.prototype.modifyDataMinMax=function(e,t){process.env.NODE_ENV!=="production"&&J(!this.frozen),this[dz[e]]=t},n.prototype.setDeterminedMinMax=function(e,t){var i=pz[e];process.env.NODE_ENV!=="production"&&J(!this.frozen&&this[i]==null),this[i]=t},n.prototype.freeze=function(){this.frozen=!0},n}(),pz={min:"_determinedMin",max:"_determinedMax"},dz={min:"_dataMin",max:"_dataMax"};function jw(n,e,t){var i=n.rawExtentInfo;return i||(i=new hz(n,e,t),n.rawExtentInfo=i,i)}function Pc(n,e){return e==null?null:co(e)?NaN:n.parse(e)}function qw(n,e){var t=n.type,i=jw(n,e,n.getExtent()).calculate();n.setBlank(i.isBlank);var o=i.min,r=i.max,a=e.ecModel;if(a&&t==="time"){var s=Vw("bar",a),l=!1;if(C(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=Rw(s),c=fz(o,r,e,u);o=c.min,r=c.max}}return{extent:[o,r],fixMin:i.minFixed,fixMax:i.maxFixed}}function fz(n,e,t,i){var o=t.axis.getExtent(),r=o[1]-o[0],a=KR(i,t.axis);if(a===void 0)return{min:n,max:e};var s=1/0;C(a,function(d){s=Math.min(d.offset,s)});var l=-1/0;C(a,function(d){l=Math.max(d.offset+d.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-n,h=1-(s+l)/r,p=c/h-c;return e+=p*(l/u),n-=p*(s/u),{min:n,max:e}}function va(n,e){var t=e,i=qw(n,t),o=i.extent,r=t.get("splitNumber");n instanceof cz&&(n.base=t.get("logBase"));var a=n.type,s=t.get("interval"),l=a==="interval"||a==="time";n.setExtent(o[0],o[1]),n.calcNiceExtent({splitNumber:r,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Vc(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new ig({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Yw({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(mi.getClass(e)||$i)}}function gz(n){var e=n.scale.getExtent(),t=e[0],i=e[1];return!(t>0&&i>0||t<0&&i<0)}function js(n){var e=n.getLabelModel().get("formatter"),t=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?function(i){return function(o,r){return n.scale.getFormattedLabel(o,r,i)}}(e):U(e)?function(i){return function(o){var r=n.scale.getLabel(o),a=i.replace("{value}",r??"");return a}}(e):$(e)?function(i){return function(o,r){return t!=null&&(r=o.value-t),i(lg(n,o),r,o.level!=null?{level:o.level}:null)}}(e):function(i){return n.scale.getLabel(i)}}function lg(n,e){return n.type==="category"?n.scale.getLabel(e):e.value}function vz(n){var e=n.model,t=n.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var i,o,r=t.getExtent();t instanceof ig?o=t.count():(i=t.getTicks(),o=i.length);var a=n.getLabelModel(),s=js(n),l,u=1;o>40&&(u=Math.ceil(o/40));for(var c=0;c<o;c+=u){var h=i?i[c]:{value:r[0]+c},p=s(h,c),d=a.getTextRect(p),f=yz(d,a.get("rotate")||0);l?l.union(f):l=f}return l}}function yz(n,e){var t=e*Math.PI/180,i=n.width,o=n.height,r=i*Math.abs(Math.cos(t))+Math.abs(o*Math.sin(t)),a=i*Math.abs(Math.sin(t))+Math.abs(o*Math.cos(t)),s=new pt(n.x,n.y,r,a);return s}function ug(n){var e=n.get("interval");return e??"auto"}function $w(n){return n.type==="category"&&ug(n.getLabelModel())===0}function Rc(n,e){var t={};return C(n.mapDimensionsAll(e),function(i){t[Aw(n,i)]=!0}),xt(t)}function mz(n,e,t){e&&C(Rc(e,t),function(i){var o=e.getApproximateExtent(i);o[0]<n[0]&&(n[0]=o[0]),o[1]>n[1]&&(n[1]=o[1])})}var qs=function(){function n(){}return n.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},n.prototype.getCoordSysModel=function(){},n}(),xz=1e-8;function Kw(n,e){return Math.abs(n-e)<xz}function nr(n,e,t){var i=0,o=n[0];if(!o)return!1;for(var r=1;r<n.length;r++){var a=n[r];i+=ci(o[0],o[1],a[0],a[1],e,t),o=a}var s=n[0];return(!Kw(o[0],s[0])||!Kw(o[1],s[1]))&&(i+=ci(o[0],o[1],s[0],s[1],e,t)),i!==0}var _z=[];function cg(n,e){for(var t=0;t<n.length;t++)ce(n[t],n[t],e)}function Jw(n,e,t,i){for(var o=0;o<n.length;o++){var r=n[o];i&&(r=i.project(r)),r&&isFinite(r[0])&&isFinite(r[1])&&(Ti(e,e,r),Ai(t,t,r))}}function bz(n){for(var e=0,t=0,i=0,o=n.length,r=n[o-1][0],a=n[o-1][1],s=0;s<o;s++){var l=n[s][0],u=n[s][1],c=r*u-l*a;e+=c,t+=(r+l)*c,i+=(a+u)*c,r=l,a=u}return e?[t/e/3,i/e/3,e]:[n[0][0]||0,n[0][1]||0]}var Qw=function(){function n(e){this.name=e}return n.prototype.setCenter=function(e){this._center=e},n.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},n}(),tS=function(){function n(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return n}(),eS=function(){function n(e){this.type="linestring",this.points=e}return n}(),nS=function(n){P(e,n);function e(t,i,o){var r=n.call(this,t)||this;return r.type="geoJSON",r.geometries=i,r._center=o&&[o[0],o[1]],r}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,o=0,r=0;r<t.length;r++){var a=t[r],s=a.exterior,l=s&&s.length;l>o&&(i=a,o=l)}if(i)return bz(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var o=[1/0,1/0],r=[-1/0,-1/0],a=this.geometries;return C(a,function(s){s.type==="polygon"?Jw(s.exterior,o,r,t):C(s.points,function(l){Jw(l,o,r,t)})}),isFinite(o[0])&&isFinite(o[1])&&isFinite(r[0])&&isFinite(r[1])||(o[0]=o[1]=r[0]=r[1]=0),i=new pt(o[0],o[1],r[0]-o[0],r[1]-o[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),o=this.geometries;if(!i.contain(t[0],t[1]))return!1;t:for(var r=0,a=o.length;r<a;r++){var s=o[r];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(nr(l,t[0],t[1])){for(var c=0;c<(u?u.length:0);c++)if(nr(u[c],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=a.width/a.height;o?r||(r=o/s):o=s*r;for(var l=new pt(t,i,o,r),u=a.calculateTransform(l),c=this.geometries,h=0;h<c.length;h++){var p=c[h];p.type==="polygon"?(cg(p.exterior,u),C(p.interiors,function(d){cg(d,u)})):C(p.points,function(d){cg(d,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e}(Qw),wz=function(n){P(e,n);function e(t,i){var o=n.call(this,t)||this;return o.type="geoSVG",o._elOnlyForCalculate=i,o}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),o=[i.x+i.width/2,i.y+i.height/2],r=Xl(_z),a=t;a&&!a.isGeoSVGGraphicRoot;)oi(r,a.getLocalTransform(),r),a=a.parent;return kr(r,r),ce(o,o,r),o},e}(Qw);function Sz(n){if(!n.UTF8Encoding)return n;var e=n,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return C(i,function(o){var r=o.geometry,a=r.encodeOffsets,s=r.coordinates;if(a)switch(r.type){case"LineString":r.coordinates=iS(s,a,t);break;case"Polygon":hg(s,a,t);break;case"MultiLineString":hg(s,a,t);break;case"MultiPolygon":C(s,function(l,u){return hg(l,a[u],t)})}}),e.UTF8Encoding=!1,e}function hg(n,e,t){for(var i=0;i<n.length;i++)n[i]=iS(n[i],e[i],t)}function iS(n,e,t){for(var i=[],o=e[0],r=e[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=o,l+=r,o=s,r=l,i.push([s/t,l/t])}return i}function Mz(n,e){return n=Sz(n),G(Lt(n.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,o=t.geometry,r=[];switch(o.type){case"Polygon":var a=o.coordinates;r.push(new tS(a[0],a.slice(1)));break;case"MultiPolygon":C(o.coordinates,function(l){l[0]&&r.push(new tS(l[0],l.slice(1)))});break;case"LineString":r.push(new eS([o.coordinates]));break;case"MultiLineString":r.push(new eS(o.coordinates))}var s=new nS(i[e||"name"],r,i.cp);return s.properties=i,s})}var $s=Mt();function Iz(n){return n.type==="category"?Dz(n):Az(n)}function Cz(n,e){return n.type==="category"?Tz(n,e):{ticks:G(n.scale.getTicks(),function(t){return t.value})}}function Dz(n){var e=n.getLabelModel(),t=oS(n,e);return!e.get("show")||n.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function oS(n,e){var t=rS(n,"labels"),i=ug(e),o=aS(t,i);if(o)return o;var r,a;return $(i)?r=uS(n,i):(a=i==="auto"?kz(n):i,r=lS(n,a)),sS(t,i,{labels:r,labelCategoryInterval:a})}function Tz(n,e){var t=rS(n,"ticks"),i=ug(e),o=aS(t,i);if(o)return o;var r,a;if((!e.get("show")||n.scale.isBlank())&&(r=[]),$(i))r=uS(n,i,!0);else if(i==="auto"){var s=oS(n,n.getLabelModel());a=s.labelCategoryInterval,r=G(s.labels,function(l){return l.tickValue})}else a=i,r=lS(n,a,!0);return sS(t,i,{ticks:r,tickCategoryInterval:a})}function Az(n){var e=n.scale.getTicks(),t=js(n);return{labels:G(e,function(i,o){return{level:i.level,formattedLabel:t(i,o),rawLabel:n.scale.getLabel(i),tickValue:i.value}})}}function rS(n,e){return $s(n)[e]||($s(n)[e]=[])}function aS(n,e){for(var t=0;t<n.length;t++)if(n[t].key===e)return n[t].value}function sS(n,e,t){return n.push({key:e,value:t}),t}function kz(n){var e=$s(n).autoInterval;return e??($s(n).autoInterval=n.calculateCategoryInterval())}function Lz(n){var e=Nz(n),t=js(n),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=n.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=n.dataToCoord(l+1)-n.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),p=0,d=0;l<=r[1];l+=s){var f=0,g=0,v=ts(t({value:l}),e.font,"center","top");f=v.width*1.3,g=v.height*1.3,p=Math.max(p,f,7),d=Math.max(d,g,7)}var y=p/c,m=d/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(y,m))),_=$s(n.model),w=n.getExtent(),b=_.lastAutoInterval,S=_.lastTickCount;return b!=null&&S!=null&&Math.abs(b-x)<=1&&Math.abs(S-a)<=1&&b>x&&_.axisExtent0===w[0]&&_.axisExtent1===w[1]?x=b:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=w[0],_.axisExtent1=w[1]),x}function Nz(n){var e=n.getLabelModel();return{axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function lS(n,e,t){var i=js(n),o=n.scale,r=o.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],c=o.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=$w(n),p=a.get("showMinLabel")||h,d=a.get("showMaxLabel")||h;p&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);d&&f-l!==r[1]&&g(r[1]);function g(v){var y={value:v};s.push(t?v:{formattedLabel:i(y),rawLabel:o.getLabel(y),tickValue:v})}return s}function uS(n,e,t){var i=n.scale,o=js(n),r=[];return C(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;e(a.value,s)&&r.push(t?l:{formattedLabel:o(a),rawLabel:s,tickValue:l})}),r}var cS=[0,1],Ez=function(){function n(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return n.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),o=Math.max(t[0],t[1]);return e>=i&&e<=o},n.prototype.containData=function(e){return this.scale.contain(e)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(e){return V0(e||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},n.prototype.dataToCoord=function(e,t){var i=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&o.type==="ordinal"&&(i=i.slice(),hS(i,o.count())),kt(e,cS,i,t)},n.prototype.coordToData=function(e,t){var i=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(i=i.slice(),hS(i,o.count()));var r=kt(e,i,cS,t);return this.scale.scale(r)},n.prototype.pointToData=function(e,t){},n.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=Cz(this,t),o=i.ticks,r=G(o,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=t.get("alignWithLabel");return Oz(this,r,a,e.clamp),r},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),o=G(i,function(r){return G(r,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return o},n.prototype.getViewLabels=function(){return Iz(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),i=t[1]-t[0]+(this.onBand?1:0);i===0&&(i=1);var o=Math.abs(e[1]-e[0]);return Math.abs(o)/i},n.prototype.calculateCategoryInterval=function(){return Lz(this)},n}();function hS(n,e){var t=n[1]-n[0],i=e,o=t/i/2;n[0]+=o,n[1]-=o}function Oz(n,e,t,i){var o=e.length;if(!n.onBand||t||!o)return;var r=n.getExtent(),a,s;if(o===1)e[0].coord=r[0],a=e[1]={coord:r[1]};else{var l=e[o-1].tickValue-e[0].tickValue,u=(e[o-1].coord-e[0].coord)/l;C(e,function(d){d.coord-=u/2});var c=n.scale.getExtent();s=1+c[1]-e[o-1].tickValue,a={coord:e[o-1].coord+u*s},e.push(a)}var h=r[0]>r[1];p(e[0].coord,r[0])&&(i?e[0].coord=r[0]:e.shift()),i&&p(r[0],e[0].coord)&&e.unshift({coord:r[0]}),p(r[1],a.coord)&&(i?a.coord=r[1]:e.pop()),i&&p(a.coord,r[1])&&e.push({coord:r[1]});function p(d,f){return d=Zt(d),f=Zt(f),h?d>f:d<f}}const An=Ez;var Ks=Math.PI*2,ir=Hn.CMD,Pz=["top","right","bottom","left"];function Vz(n,e,t,i,o){var r=t.width,a=t.height;switch(n){case"top":i.set(t.x+r/2,t.y-e),o.set(0,-1);break;case"bottom":i.set(t.x+r/2,t.y+a+e),o.set(0,1);break;case"left":i.set(t.x-e,t.y+a/2),o.set(-1,0);break;case"right":i.set(t.x+r+e,t.y+a/2),o.set(1,0);break}}function Rz(n,e,t,i,o,r,a,s,l){a-=n,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*t+n,h=s*t+e;if(Math.abs(i-o)%Ks<1e-4)return l[0]=c,l[1]=h,u-t;if(r){var p=i;i=wn(o),o=wn(p)}else i=wn(i),o=wn(o);i>o&&(o+=Ks);var d=Math.atan2(s,a);if(d<0&&(d+=Ks),d>=i&&d<=o||d+Ks>=i&&d+Ks<=o)return l[0]=c,l[1]=h,u-t;var f=t*Math.cos(i)+n,g=t*Math.sin(i)+e,v=t*Math.cos(o)+n,y=t*Math.sin(o)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(v-a)*(v-a)+(y-s)*(y-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=v,l[1]=y,Math.sqrt(x))}function zc(n,e,t,i,o,r,a,s){var l=o-n,u=r-e,c=t-n,h=i-e,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var d=l*c+u*h,f=d/p;s&&(f=Math.min(Math.max(f,0),1)),f*=p;var g=a[0]=n+f*c,v=a[1]=e+f*h;return Math.sqrt((g-o)*(g-o)+(v-r)*(v-r))}function pS(n,e,t,i,o,r,a){t<0&&(n=n+t,t=-t),i<0&&(e=e+i,i=-i);var s=n+t,l=e+i,u=a[0]=Math.min(Math.max(o,n),s),c=a[1]=Math.min(Math.max(r,e),l);return Math.sqrt((u-o)*(u-o)+(c-r)*(c-r))}var kn=[];function zz(n,e,t){var i=pS(e.x,e.y,e.width,e.height,n.x,n.y,kn);return t.set(kn[0],kn[1]),i}function Bz(n,e,t){for(var i=0,o=0,r=0,a=0,s,l,u=1/0,c=e.data,h=n.x,p=n.y,d=0;d<c.length;){var f=c[d++];d===1&&(i=c[d],o=c[d+1],r=i,a=o);var g=u;switch(f){case ir.M:r=c[d++],a=c[d++],i=r,o=a;break;case ir.L:g=zc(i,o,c[d],c[d+1],h,p,kn,!0),i=c[d++],o=c[d++];break;case ir.C:g=n0(i,o,c[d++],c[d++],c[d++],c[d++],c[d],c[d+1],h,p,kn),i=c[d++],o=c[d++];break;case ir.Q:g=o0(i,o,c[d++],c[d++],c[d],c[d+1],h,p,kn),i=c[d++],o=c[d++];break;case ir.A:var v=c[d++],y=c[d++],m=c[d++],x=c[d++],_=c[d++],w=c[d++];d+=1;var b=!!(1-c[d++]);s=Math.cos(_)*m+v,l=Math.sin(_)*x+y,d<=1&&(r=s,a=l);var S=(h-v)*x/m+v;g=Rz(v,y,x,_,_+w,b,S,p,kn),i=Math.cos(_+w)*m+v,o=Math.sin(_+w)*x+y;break;case ir.R:r=i=c[d++],a=o=c[d++];var M=c[d++],I=c[d++];g=pS(r,a,M,I,h,p,kn);break;case ir.Z:g=zc(i,o,r,a,h,p,kn,!0),i=r,o=a;break}g<u&&(u=g,t.set(kn[0],kn[1]))}return u}var Ln=new ct,Rt=new ct,qt=new ct,qn=new ct,$n=new ct;function dS(n,e){if(n){var t=n.getTextGuideLine(),i=n.getTextContent();if(i&&t){var o=n.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||Pz,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,c=n.getComputedTransform(),h=c&&kr([],c),p=e.get("length2")||0;u&&qt.copy(u);for(var d=0;d<a.length;d++){var f=a[d];Vz(f,0,s,Ln,qn),ct.scaleAndAdd(Rt,Ln,qn,p),Rt.transform(h);var g=n.getBoundingRect(),v=u?u.distance(Rt):n instanceof mt?Bz(Rt,n.path,qt):zz(Rt,g,qt);v<l&&(l=v,Rt.transform(c),qt.transform(c),qt.toArray(r[0]),Rt.toArray(r[1]),Ln.toArray(r[2]))}fS(r,e.get("minTurnAngle")),t.setShape({points:r})}}}var Bc=[],Ae=new ct;function fS(n,e){if(e<=180&&e>0){e=e/180*Math.PI,Ln.fromArray(n[0]),Rt.fromArray(n[1]),qt.fromArray(n[2]),ct.sub(qn,Ln,Rt),ct.sub($n,qt,Rt);var t=qn.len(),i=$n.len();if(!(t<.001||i<.001)){qn.scale(1/t),$n.scale(1/i);var o=qn.dot($n),r=Math.cos(e);if(r<o){var a=zc(Rt.x,Rt.y,qt.x,qt.y,Ln.x,Ln.y,Bc,!1);Ae.fromArray(Bc),Ae.scaleAndAdd($n,a/Math.tan(Math.PI-e));var s=qt.x!==Rt.x?(Ae.x-Rt.x)/(qt.x-Rt.x):(Ae.y-Rt.y)/(qt.y-Rt.y);if(isNaN(s))return;s<0?ct.copy(Ae,Rt):s>1&&ct.copy(Ae,qt),Ae.toArray(n[1])}}}}function Gz(n,e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ln.fromArray(n[0]),Rt.fromArray(n[1]),qt.fromArray(n[2]),ct.sub(qn,Rt,Ln),ct.sub($n,qt,Rt);var i=qn.len(),o=$n.len();if(!(i<.001||o<.001)){qn.scale(1/i),$n.scale(1/o);var r=qn.dot(e),a=Math.cos(t);if(r<a){var s=zc(Rt.x,Rt.y,qt.x,qt.y,Ln.x,Ln.y,Bc,!1);Ae.fromArray(Bc);var l=Math.PI/2,u=Math.acos($n.dot(e)),c=l+u-t;if(c>=l)ct.copy(Ae,qt);else{Ae.scaleAndAdd($n,s/Math.tan(Math.PI/2-c));var h=qt.x!==Rt.x?(Ae.x-Rt.x)/(qt.x-Rt.x):(Ae.y-Rt.y)/(qt.y-Rt.y);if(isNaN(h))return;h<0?ct.copy(Ae,Rt):h>1&&ct.copy(Ae,qt)}Ae.toArray(n[1])}}}}function gS(n,e,t,i){var o=t==="normal",r=o?n:n.ensureState(t);r.ignore=e;var a=i.get("smooth");a&&a===!0&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();o?n.useStyle(s):r.style=s}function Fz(n,e){var t=e.smooth,i=e.points;if(i)if(n.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var o=Di(i[0],i[1]),r=Di(i[1],i[2]);if(!o||!r){n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]);return}var a=Math.min(o,r)*t,s=Yl([],i[1],i[0],a/o),l=Yl([],i[1],i[2],a/r),u=Yl([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)n.lineTo(i[c][0],i[c][1])}function pg(n,e,t){var i=n.getTextGuideLine(),o=n.getTextContent();if(!o){i&&n.removeTextGuideLine();return}for(var r=e.normal,a=r.get("show"),s=o.ignore,l=0;l<cs.length;l++){var u=cs[l],c=e[u],h=u==="normal";if(c){var p=c.get("show"),d=h?s:ut(o.states[u]&&o.states[u].ignore,s);if(d||!ut(p,a)){var f=h?i:i&&i.states[u];f&&(f.ignore=!0);continue}i||(i=new ze,n.setTextGuideLine(i),!h&&(s||!a)&&gS(i,!0,"normal",e.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),gS(i,!1,u,c)}}if(i){et(i.style,t),i.style.fill=null;var g=r.get("showAbove"),v=n.textGuideLineConfig=n.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=Fz}}function dg(n,e){e=e||"labelLine";for(var t={normal:n.getModel(e)},i=0;i<Ce.length;i++){var o=Ce[i];t[o]=n.getModel([o,e])}return t}function vS(n){for(var e=[],t=0;t<n.length;t++){var i=n[t];if(!i.defaultAttr.ignore){var o=i.label,r=o.getComputedTransform(),a=o.getBoundingRect(),s=!r||r[1]<1e-5&&r[2]<1e-5,l=o.style.margin||0,u=a.clone();u.applyTransform(r),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Bu(a,r):null;e.push({label:o,labelLine:i.labelLine,rect:u,localRect:a,obb:c,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:r})}}return e}function yS(n,e,t,i,o,r){var a=n.length;if(a<2)return;n.sort(function(M,I){return M.rect[e]-I.rect[e]});for(var s=0,l,u=!1,c=0,h=0;h<a;h++){var p=n[h],d=p.rect;l=d[e]-s,l<0&&(d[e]-=l,p.label[e]-=l,u=!0);var f=Math.max(-l,0);c+=f,s=d[e]+d[t]}c>0&&r&&w(-c/a,0,a);var g=n[0],v=n[a-1],y,m;x(),y<0&&b(-y,.8),m<0&&b(m,.8),x(),_(y,m,1),_(m,y,-1),x(),y<0&&S(-y),m<0&&S(m);function x(){y=g.rect[e]-i,m=o-v.rect[e]-v.rect[t]}function _(M,I,D){if(M<0){var T=Math.min(I,-M);if(T>0){w(T*D,0,a);var A=T+M;A<0&&b(-A*D,1)}else b(-M*D,1)}}function w(M,I,D){M!==0&&(u=!0);for(var T=I;T<D;T++){var A=n[T],k=A.rect;k[e]+=M,A.label[e]+=M}}function b(M,I){for(var D=[],T=0,A=1;A<a;A++){var k=n[A-1].rect,L=Math.max(n[A].rect[e]-k[e]-k[t],0);D.push(L),T+=L}if(T){var N=Math.min(Math.abs(M)/T,I);if(M>0)for(var A=0;A<a-1;A++){var E=D[A]*N;w(E,0,A+1)}else for(var A=a-1;A>0;A--){var E=D[A-1]*N;w(-E,A,a)}}}function S(M){var I=M<0?-1:1;M=Math.abs(M);for(var D=Math.ceil(M/(a-1)),T=0;T<a-1;T++)if(I>0?w(D,0,T+1):w(-D,a-T-1,a),M-=D,M<=0)return}return u}function Hz(n,e,t,i){return yS(n,"x","width",e,t,i)}function mS(n,e,t,i){return yS(n,"y","height",e,t,i)}function xS(n){var e=[];n.sort(function(g,v){return v.priority-g.priority});var t=new pt(0,0,0,0);function i(g){if(!g.ignore){var v=g.ensureState("emphasis");v.ignore==null&&(v.ignore=!1)}g.ignore=!0}for(var o=0;o<n.length;o++){var r=n[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,c=r.labelLine;t.copy(r.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=r.obb,p=!1,d=0;d<e.length;d++){var f=e[d];if(t.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Bu(f.localRect,f.transform)),h||(h=new Bu(s,l)),h.intersect(f.obb)){p=!0;break}}}p?(i(u),c&&i(c)):(u.attr("ignore",r.defaultAttr.ignore),c&&c.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function Wz(n){if(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].slice());return e}}function Uz(n,e){var t=n.label,i=e&&e.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:Wz(i&&i.shape.points)}}var _S=["align","verticalAlign","width","height","fontSize"],ke=new si,fg=Mt(),Yz=Mt();function Gc(n,e,t){for(var i=0;i<t.length;i++){var o=t[i];e[o]!=null&&(n[o]=e[o])}}var Fc=["x","y","rotation"],Xz=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(e,t,i,o,r){var a=o.style,s=o.__hostTarget,l=s.textConfig||{},u=o.getComputedTransform(),c=o.getBoundingRect().plain();pt.applyTransform(c,c,u),u?ke.setLocalTransform(u):(ke.x=ke.y=ke.rotation=ke.originX=ke.originY=0,ke.scaleX=ke.scaleY=1),ke.rotation=wn(ke.rotation);var h=o.__hostTarget,p;if(h){p=h.getBoundingRect().plain();var d=h.getComputedTransform();pt.applyTransform(p,p,d)}var f=p&&h.getTextGuideLine();this._labelList.push({label:o,labelLine:f,seriesModel:i,dataIndex:e,dataType:t,layoutOption:r,computedLayoutOption:null,rect:c,hostRect:p,priority:p?p.width*p.height:0,defaultAttr:{ignore:o.ignore,labelGuideIgnore:f&&f.ignore,x:ke.x,y:ke.y,scaleX:ke.scaleX,scaleY:ke.scaleY,rotation:ke.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:o.cursor,attachedPos:l.position,attachedRot:l.rotation}})},n.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,o=i.get("labelLayout");($(o)||xt(o).length)&&e.group.traverse(function(r){if(r.ignore)return!0;var a=r.getTextContent(),s=rt(r);a&&!a.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,a,o)})},n.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function o(x,_){return function(){dS(x,_)}}for(var r=0;r<this._labelList.length;r++){var a=this._labelList[r],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;$(a.layoutOption)?c=a.layoutOption(Uz(a,l)):c=a.layoutOption,c=c||{},a.computedLayoutOption=c;var h=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*h:u.attachedRot,offset:[c.dx||0,c.dy||0]});var p=!1;if(c.x!=null?(s.x=H(c.x,t),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=H(c.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:c.labelLinePoints}),p=!1)}var f=fg(s);f.needsUpdateLabelLine=p,s.rotation=c.rotate!=null?c.rotate*h:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<_S.length;g++){var v=_S[g];s.setStyle(v,c[v]!=null?c[v]:u.style[v])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var m=a.seriesModel.getData(a.dataType);y=m.getItemModel(a.dataIndex)}s.on("drag",o(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),o=vS(this._labelList),r=Lt(o,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Lt(o,function(l){return l.layoutOption.moveOverlap==="shiftY"});Hz(r,0,t),mS(a,0,i);var s=Lt(o,function(l){return l.layoutOption.hideOverlap});xS(s)},n.prototype.processLabelsOverall=function(){var e=this;C(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!o,l=a.getTextContent();!s&&l&&(s=fg(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,i),r&&e._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),o=rt(e),r=o.dataIndex;if(i&&r!=null){var a=t.getData(o.dataType),s=a.getItemModel(r),l={},u=a.getItemVisual(r,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var h=s.getModel("labelLine");pg(e,dg(s),l),dS(e,h)}},n.prototype._animateLabels=function(e,t){var i=e.getTextContent(),o=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!Xr(e))){var r=fg(i),a=r.oldLayout,s=rt(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},c=t.getData(s.dataType);if(a){i.attr(a);var h=e.prevStates;h&&(dt(h,"select")>=0&&i.attr(r.oldLayoutSelect),dt(h,"emphasis")>=0&&i.attr(r.oldLayoutEmphasis)),Tt(i,u,t,l)}else if(i.attr(u),!qr(i).valueAnimation){var p=ut(i.style.opacity,1);i.style.opacity=0,Bt(i,{style:{opacity:p}},t,l)}if(r.oldLayout=u,i.states.select){var d=r.oldLayoutSelect={};Gc(d,u,Fc),Gc(d,i.states.select,Fc)}if(i.states.emphasis){var f=r.oldLayoutEmphasis={};Gc(f,u,Fc),Gc(f,i.states.emphasis,Fc)}Bx(i,l,c,t,t)}if(o&&!o.ignore&&!o.invisible){var r=Yz(o),a=r.oldLayout,g={points:o.shape.points};a?(o.attr({shape:a}),Tt(o,{shape:g},t)):(o.setShape(g),o.style.strokePercent=0,Bt(o,{style:{strokePercent:1}},t)),r.oldLayout=g}},n}();const Zz=Xz;var gg=Mt();function jz(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var o=gg(t).labelManager;o||(o=gg(t).labelManager=new Zz),o.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var o=gg(t).labelManager;i.updatedSeries.forEach(function(r){o.addLabelsOfSeries(t.getViewOfSeriesModel(r))}),o.updateLayoutConfig(t),o.layout(t),o.processLabelsOverall()})}var vg=Math.sin,yg=Math.cos,bS=Math.PI,or=Math.PI*2,qz=180/bS,$z=function(){function n(){}return n.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},n.prototype.moveTo=function(e,t){this._add("M",e,t)},n.prototype.lineTo=function(e,t){this._add("L",e,t)},n.prototype.bezierCurveTo=function(e,t,i,o,r,a){this._add("C",e,t,i,o,r,a)},n.prototype.quadraticCurveTo=function(e,t,i,o){this._add("Q",e,t,i,o)},n.prototype.arc=function(e,t,i,o,r,a){this.ellipse(e,t,i,i,0,o,r,a)},n.prototype.ellipse=function(e,t,i,o,r,a,s,l){var u=s-a,c=!l,h=Math.abs(u),p=Oi(h-or)||(c?u>=or:-u>=or),d=u>0?u%or:u%or+or,f=!1;p?f=!0:Oi(h)?f=!1:f=d>=bS==!!c;var g=e+i*yg(a),v=t+o*vg(a);this._start&&this._add("M",g,v);var y=Math.round(r*qz);if(p){var m=1/this._p,x=(c?1:-1)*(or-m);this._add("A",i,o,y,1,+c,e+i*yg(a+x),t+o*vg(a+x)),m>.01&&this._add("A",i,o,y,0,+c,g,v)}else{var _=e+i*yg(s),w=t+o*vg(s);this._add("A",i,o,y,+f,+c,_,w)}},n.prototype.rect=function(e,t,i,o){this._add("M",e,t),this._add("l",i,0),this._add("l",0,o),this._add("l",-i,0),this._add("Z")},n.prototype.closePath=function(){this._d.length>0&&this._add("Z")},n.prototype._add=function(e,t,i,o,r,a,s,l,u){for(var c=[],h=this._p,p=1;p<arguments.length;p++){var d=arguments[p];if(isNaN(d)){this._invalid=!0;return}c.push(Math.round(d*h)/h)}this._d.push(e+c.join(" ")),this._start=e==="Z"},n.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},n.prototype.getStr=function(){return this._str},n}();const wS=$z;var Js="none",Kz=Math.round;function Jz(n){var e=n.fill;return e!=null&&e!==Js}function Qz(n){var e=n.stroke;return e!=null&&e!==Js}var mg=["lineCap","miterLimit","lineJoin"],t5=G(mg,function(n){return"stroke-"+n.toLowerCase()});function e5(n,e,t,i){var o=e.opacity==null?1:e.opacity;if(t instanceof he){n("opacity",o);return}if(Jz(e)){var r=$a(e.fill);n("fill",r.color);var a=e.fillOpacity!=null?e.fillOpacity*r.opacity*o:r.opacity*o;(i||a<1)&&n("fill-opacity",a)}else n("fill",Js);if(Qz(e)){var s=$a(e.stroke);n("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*o:s.opacity*o,h=e.strokeFirst;if((i||u!==1)&&n("stroke-width",u),(i||h)&&n("paint-order",h?"stroke":"fill"),(i||c<1)&&n("stroke-opacity",c),e.lineDash){var p=Ef(t),d=p[0],f=p[1];d&&(f=Kz(f||0),n("stroke-dasharray",d.join(",")),(f||i)&&n("stroke-dashoffset",f))}else i&&n("stroke-dasharray",Js);for(var g=0;g<mg.length;g++){var v=mg[g];if(i||e[v]!==Cu[v]){var y=e[v]||Cu[v];y&&n(t5[g],y)}}}else i&&n("stroke",Js)}var SS="http://www.w3.org/2000/svg",MS="http://www.w3.org/1999/xlink",n5="http://www.w3.org/2000/xmlns/",i5="http://www.w3.org/XML/1998/namespace";function IS(n){return document.createElementNS(SS,n)}function se(n,e,t,i,o){return{tag:n,attrs:t||{},children:i,text:o,key:e}}function o5(n,e){var t=[];if(e)for(var i in e){var o=e[i],r=i;o!==!1&&(o!==!0&&o!=null&&(r+='="'+o+'"'),t.push(r))}return"<"+n+" "+t.join(" ")+">"}function r5(n){return"</"+n+">"}function xg(n,e){e=e||{};var t=e.newline?`
|
|
55
|
+
`:"";function i(o){var r=o.children,a=o.tag,s=o.attrs,l=o.text;return o5(a,s)+(a!=="style"?Ee(l):l||"")+(r?""+t+G(r,function(u){return i(u)}).join(t)+t:"")+r5(a)}return i(n)}function a5(n,e,t){t=t||{};var i=t.newline?`
|
|
56
|
+
`:"",o=" {"+i,r=i+"}",a=G(xt(n),function(l){return l+o+G(xt(n[l]),function(u){return u+":"+n[l][u]+";"}).join(i)+r}).join(i),s=G(xt(e),function(l){return"@keyframes "+l+o+G(xt(e[l]),function(u){return u+o+G(xt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(i)+r}).join(i)+r}).join(i);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(i)}function _g(n){return{zrId:n,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function CS(n,e,t,i){return se("svg","root",{width:n,height:e,xmlns:SS,"xmlns:xlink":MS,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+n+" "+e:!1},t)}var DS={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},rr="transform-origin";function s5(n,e,t){var i=R({},n.shape);R(i,e),n.buildPath(t,i);var o=new wS;return o.reset(d0(n)),t.rebuildPath(o,1),o.generateStr(),o.getStr()}function l5(n,e){var t=e.originX,i=e.originY;(t||i)&&(n[rr]=t+"px "+i+"px")}var u5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function TS(n,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=n,t}function c5(n,e,t){var i=n.shape.paths,o={},r,a;if(C(i,function(l){var u=_g(t.zrId);u.animation=!0,Hc(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,p=xt(c),d=p.length;if(d){a=p[d-1];var f=c[a];for(var g in f){var v=f[g];o[g]=o[g]||{d:""},o[g].d+=v.d||""}for(var y in h){var m=h[y].animation;m.indexOf(a)>=0&&(r=m)}}}),!!r){e.d=!1;var s=TS(o,t);return r.replace(a,s)}}function AS(n){return U(n)?DS[n]?"cubic-bezier("+DS[n]+")":Sp(n)?n:"":""}function Hc(n,e,t,i){var o=n.animators,r=o.length,a=[];if(n instanceof Bd){var s=c5(n,e,t);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u<r;u++){var c=o[u],h=[c.getMaxTime()/1e3+"s"],p=AS(c.getClip().easing),d=c.getDelay();p?h.push(p):h.push("linear"),d&&h.push(d/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(m){var x=m[1],_=x.length,w={},b={},S={},M="animation-timing-function";function I(nt,vt,st){for(var q=nt.getTracks(),lt=nt.getMaxTime(),Gt=0;Gt<q.length;Gt++){var wt=q[Gt];if(wt.needsAnimate()){var Xt=wt.keyframes,Wt=wt.propName;if(st&&(Wt=st(Wt)),Wt)for(var ve=0;ve<Xt.length;ve++){var ei=Xt[ve],Le=Math.round(ei.time/lt*100)+"%",Pl=AS(ei.easing),Ir=ei.rawValue;(U(Ir)||Ct(Ir))&&(vt[Le]=vt[Le]||{},vt[Le][Wt]=ei.rawValue,Pl&&(vt[Le][M]=Pl))}}}}for(var D=0;D<_;D++){var T=x[D],A=T.targetName;A?A==="shape"&&I(T,b):!i&&I(T,w)}for(var k in w){var L={};C0(L,n),R(L,w[k]);var N=f0(L),E=w[k][M];S[k]=N?{transform:N}:{},l5(S[k],L),E&&(S[k][M]=E)}var V,O=!0;for(var k in b){S[k]=S[k]||{};var z=!V,E=b[k][M];z&&(V=new Hn);var F=V.len();V.reset(),S[k].d=s5(n,b[k],V);var W=V.len();if(!z&&F!==W){O=!1;break}E&&(S[k][M]=E)}if(!O)for(var k in S)delete S[k].d;if(!i)for(var D=0;D<_;D++){var T=x[D],A=T.targetName;A==="style"&&I(T,S,function(q){return u5[q]})}for(var Z=xt(S),Q=!0,tt,D=1;D<Z.length;D++){var ft=Z[D-1],_t=Z[D];if(S[ft][rr]!==S[_t][rr]){Q=!1;break}tt=S[ft][rr]}if(Q&&tt){for(var k in S)S[k][rr]&&delete S[k][rr];e[rr]=tt}if(Lt(Z,function(nt){return xt(S[nt]).length>0}).length){var gt=TS(S,t);return gt+" "+m[0]+" both"}}for(var v in l){var s=g(l[v]);s&&a.push(s)}if(a.length){var y=t.zrId+"-cls-"+t.cssClassIdx++;t.cssNodes["."+y]={animation:a.join(",")},e.class=y}}var Qs=Math.round;function kS(n){return n&&U(n.src)}function LS(n){return n&&$(n.toDataURL)}function bg(n,e,t,i){e5(function(o,r){var a=o==="fill"||o==="stroke";a&&p0(r)?RS(e,n,o,i):a&&Lp(r)?zS(t,n,o,i):n[o]=r},e,t,!1),y5(t,n,i)}function NS(n){return Oi(n[0]-1)&&Oi(n[1])&&Oi(n[2])&&Oi(n[3]-1)}function h5(n){return Oi(n[4])&&Oi(n[5])}function wg(n,e,t){if(e&&!(h5(e)&&NS(e))){var i=t?10:1e4;n.transform=NS(e)?"translate("+Qs(e[4]*i)/i+" "+Qs(e[5]*i)/i+")":iL(e)}}function ES(n,e,t){for(var i=n.points,o=[],r=0;r<i.length;r++)o.push(Qs(i[r][0]*t)/t),o.push(Qs(i[r][1]*t)/t);e.points=o.join(" ")}function OS(n){return!n.smooth}function p5(n){var e=G(n,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,o){for(var r=0;r<e.length;r++){var a=e[r],s=t[a[0]];s!=null&&(i[a[1]]=Qs(s*o)/o)}}}var d5={circle:[p5(["cx","cy","r"])],polyline:[ES,OS],polygon:[ES,OS]};function f5(n){for(var e=n.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function PS(n,e){var t=n.style,i=n.shape,o=d5[n.type],r={},a=e.animation,s="path",l=n.style.strokePercent,u=e.compress&&d0(n)||4;if(o&&!e.willUpdate&&!(o[1]&&!o[1](i))&&!(a&&f5(n))&&!(l<1)){s=n.type;var c=Math.pow(10,u);o[0](i,r,c)}else{var h=!n.path||n.shapeChanged();n.path||n.createPathProxy();var p=n.path;h&&(p.beginPath(),n.buildPath(p,n.shape),n.pathUpdated());var d=p.getVersion(),f=n,g=f.__svgPathBuilder;(f.__svgPathVersion!==d||!g||l!==f.__svgPathStrokePercent)&&(g||(g=f.__svgPathBuilder=new wS),g.reset(u),p.rebuildPath(g,l),g.generateStr(),f.__svgPathVersion=d,f.__svgPathStrokePercent=l),r.d=g.getStr()}return wg(r,n.transform),bg(r,t,n,e),e.animation&&Hc(n,r,e),se(s,n.id+"",r)}function g5(n,e){var t=n.style,i=t.image;if(i&&!U(i)&&(kS(i)?i=i.src:LS(i)&&(i=i.toDataURL())),!!i){var o=t.x||0,r=t.y||0,a=t.width,s=t.height,l={href:i,width:a,height:s};return o&&(l.x=o),r&&(l.y=r),wg(l,n.transform),bg(l,t,n,e),e.animation&&Hc(n,l,e),se("image",n.id+"",l)}}function v5(n,e){var t=n.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var o=t.font||Ii,r=t.x||0,a=rL(t.y||0,fu(o),t.textBaseline),s=oL[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(D1(t)){var u="",c=t.fontStyle,h=I1(t.fontSize);if(!parseFloat(h))return;var p=t.fontFamily||Sm,d=t.fontWeight;u+="font-size:"+h+";font-family:"+p+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),d&&d!=="normal"&&(u+="font-weight:"+d+";"),l.style=u}else l.style="font: "+o;return i.match(/\s/)&&(l["xml:space"]="preserve"),r&&(l.x=r),a&&(l.y=a),wg(l,n.transform),bg(l,t,n,e),e.animation&&Hc(n,l,e),se("text",n.id+"",l,void 0,i)}}function VS(n,e){if(n instanceof mt)return PS(n,e);if(n instanceof he)return g5(n,e);if(n instanceof ls)return v5(n,e)}function y5(n,e,t){var i=n.style;if(aL(i)){var o=sL(n),r=t.shadowCache,a=r[o];if(!a){var s=n.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=i.shadowOffsetX||0,h=i.shadowOffsetY||0,p=i.shadowBlur,d=$a(i.shadowColor),f=d.opacity,g=d.color,v=p/2/l,y=p/2/u,m=v+" "+y;a=t.zrId+"-s"+t.shadowIdx++,t.defs[a]=se("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[se("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),r[o]=a}e.filter=au(a)}}function RS(n,e,t,i){var o=n[t],r,a={gradientUnits:o.global?"userSpaceOnUse":"objectBoundingBox"};if(c0(o))r="linearGradient",a.x1=o.x,a.y1=o.y,a.x2=o.x2,a.y2=o.y2;else if(h0(o))r="radialGradient",a.cx=ut(o.x,.5),a.cy=ut(o.y,.5),a.r=ut(o.r,.5);else{process.env.NODE_ENV!=="production"&&vn("Illegal gradient type.");return}for(var s=o.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=kp(s[u].offset)*100+"%",p=s[u].color,d=$a(p),f=d.color,g=d.opacity,v={offset:h};v["stop-color"]=f,g<1&&(v["stop-opacity"]=g),l.push(se("stop",u+"",v))}var y=se(r,"",a,l),m=xg(y),x=i.gradientCache,_=x[m];_||(_=i.zrId+"-g"+i.gradientIdx++,x[m]=_,a.id=_,i.defs[_]=se(r,_,a,l)),e[t]=au(_)}function zS(n,e,t,i){var o=n.style[t],r=n.getBoundingRect(),a={},s=o.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",h;if(u0(o)){var p=o.imageWidth,d=o.imageHeight,f=void 0,g=o.image;if(U(g)?f=g:kS(g)?f=g.src:LS(g)&&(f=g.toDataURL()),typeof Image>"u"){var v="Image width/height must been given explictly in svg-ssr renderer.";J(p,v),J(d,v)}else if(p==null||d==null){var y=function(D,T){if(D){var A=D.elm,k=p||T.width,L=d||T.height;D.tag==="pattern"&&(u?(L=1,k/=r.width):c&&(k=1,L/=r.height)),D.attrs.width=k,D.attrs.height=L,A&&(A.setAttribute("width",k),A.setAttribute("height",L))}},m=sd(f,null,n,function(D){l||y(b,D),y(h,D)});m&&m.width&&m.height&&(p=p||m.width,d=d||m.height)}h=se("image","img",{href:f,width:p,height:d}),a.width=p,a.height=d}else o.svgElement&&(h=it(o.svgElement),a.width=o.svgWidth,a.height=o.svgHeight);if(h){var x,_;l?x=_=1:u?(_=1,x=a.width/r.width):c?(x=1,_=a.height/r.height):a.patternUnits="userSpaceOnUse",x!=null&&!isNaN(x)&&(a.width=x),_!=null&&!isNaN(_)&&(a.height=_);var w=f0(o);w&&(a.patternTransform=w);var b=se("pattern","",a,[h]),S=xg(b),M=i.patternCache,I=M[S];I||(I=i.zrId+"-p"+i.patternIdx++,M[S]=I,a.id=I,b=i.defs[I]=se("pattern",I,a,[h])),e[t]=au(I)}}function m5(n,e,t){var i=t.clipPathCache,o=t.defs,r=i[n.id];if(!r){r=t.zrId+"-c"+t.clipPathIdx++;var a={id:r};i[n.id]=r,o[r]=se("clipPath",r,a,[PS(n,t)])}e["clip-path"]=au(r)}function BS(n){return document.createTextNode(n)}function ar(n,e,t){n.insertBefore(e,t)}function GS(n,e){n.removeChild(e)}function FS(n,e){n.appendChild(e)}function HS(n){return n.parentNode}function WS(n){return n.nextSibling}function Sg(n,e){n.textContent=e}var US=58,x5=120,_5=se("","");function Mg(n){return n===void 0}function Kn(n){return n!==void 0}function b5(n,e,t){for(var i={},o=e;o<=t;++o){var r=n[o].key;r!==void 0&&(process.env.NODE_ENV!=="production"&&i[r]!=null&&console.error("Duplicate key "+r),i[r]=o)}return i}function tl(n,e){var t=n.key===e.key,i=n.tag===e.tag;return i&&t}function el(n){var e,t=n.children,i=n.tag;if(Kn(i)){var o=n.elm=IS(i);if(Ig(_5,n),B(t))for(e=0;e<t.length;++e){var r=t[e];r!=null&&FS(o,el(r))}else Kn(n.text)&&!K(n.text)&&FS(o,BS(n.text))}else n.elm=BS(n.text);return n.elm}function YS(n,e,t,i,o){for(;i<=o;++i){var r=t[i];r!=null&&ar(n,el(r),e)}}function Wc(n,e,t,i){for(;t<=i;++t){var o=e[t];if(o!=null)if(Kn(o.tag)){var r=HS(o.elm);GS(r,o.elm)}else GS(n,o.elm)}}function Ig(n,e){var t,i=e.elm,o=n&&n.attrs||{},r=e.attrs||{};if(o!==r){for(t in r){var a=r[t],s=o[t];s!==a&&(a===!0?i.setAttribute(t,""):a===!1?i.removeAttribute(t):t.charCodeAt(0)!==x5?i.setAttribute(t,a):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(n5,t,a):t.charCodeAt(3)===US?i.setAttributeNS(i5,t,a):t.charCodeAt(5)===US?i.setAttributeNS(MS,t,a):i.setAttribute(t,a))}for(t in o)t in r||i.removeAttribute(t)}}function w5(n,e,t){for(var i=0,o=0,r=e.length-1,a=e[0],s=e[r],l=t.length-1,u=t[0],c=t[l],h,p,d,f;i<=r&&o<=l;)a==null?a=e[++i]:s==null?s=e[--r]:u==null?u=t[++o]:c==null?c=t[--l]:tl(a,u)?(ya(a,u),a=e[++i],u=t[++o]):tl(s,c)?(ya(s,c),s=e[--r],c=t[--l]):tl(a,c)?(ya(a,c),ar(n,a.elm,WS(s.elm)),a=e[++i],c=t[--l]):tl(s,u)?(ya(s,u),ar(n,s.elm,a.elm),s=e[--r],u=t[++o]):(Mg(h)&&(h=b5(e,i,r)),p=h[u.key],Mg(p)?ar(n,el(u),a.elm):(d=e[p],d.tag!==u.tag?ar(n,el(u),a.elm):(ya(d,u),e[p]=void 0,ar(n,d.elm,a.elm))),u=t[++o]);(i<=r||o<=l)&&(i>r?(f=t[l+1]==null?null:t[l+1].elm,YS(n,f,t,o,l)):Wc(n,e,i,r))}function ya(n,e){var t=e.elm=n.elm,i=n.children,o=e.children;n!==e&&(Ig(n,e),Mg(e.text)?Kn(i)&&Kn(o)?i!==o&&w5(t,i,o):Kn(o)?(Kn(n.text)&&Sg(t,""),YS(t,null,o,0,o.length-1)):Kn(i)?Wc(t,i,0,i.length-1):Kn(n.text)&&Sg(t,""):n.text!==e.text&&(Kn(i)&&Wc(t,i,0,i.length-1),Sg(t,e.text)))}function S5(n,e){if(tl(n,e))ya(n,e);else{var t=n.elm,i=HS(t);el(e),i!==null&&(ar(i,e.elm,WS(t)),Wc(i,[n],0,0))}return e}var M5=0,I5=function(){function n(e,t,i){if(this.type="svg",this.refreshHover=XS("refreshHover"),this.configLayer=XS("configLayer"),this.storage=t,this._opts=i=R({},i),this.root=e,this._id="zr"+M5++,this._oldVNode=CS(i.width,i.height),e&&!i.ssr){var o=this._viewport=document.createElement("div");o.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=IS("svg");Ig(null,this._oldVNode),o.appendChild(r),e.appendChild(o)}this.resize(i.width,i.height)}return n.prototype.getType=function(){return this.type},n.prototype.getViewportRoot=function(){return this._viewport},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.getSvgDom=function(){return this._svgDom},n.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",S5(this._oldVNode,e),this._oldVNode=e}},n.prototype.renderOneToVNode=function(e){return VS(e,_g(this._id))},n.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,o=this._height,r=_g(this._id);r.animation=e.animation,r.willUpdate=e.willUpdate,r.compress=e.compress;var a=[],s=this._bgVNode=C5(i,o,this._backgroundColor,r);s&&a.push(s);var l=e.compress?null:this._mainVNode=se("g","main",{},[]);this._paintList(t,r,l?l.children:a),l&&a.push(l);var u=G(xt(r.defs),function(p){return r.defs[p]});if(u.length&&a.push(se("defs","defs",{},u)),e.animation){var c=a5(r.cssNodes,r.cssAnims,{newline:!0});if(c){var h=se("style","stl",{},[],c);a.push(h)}}return CS(i,o,a,e.useViewBox)},n.prototype.renderToString=function(e){return e=e||{},xg(this.renderToVNode({animation:ut(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:ut(e.useViewBox,!0)}),{newline:!0})},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e},n.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},n.prototype._paintList=function(e,t,i){for(var o=e.length,r=[],a=0,s,l,u=0,c=0;c<o;c++){var h=e[c];if(!h.invisible){var p=h.__clipPaths,d=p&&p.length||0,f=l&&l.length||0,g=void 0;for(g=Math.max(d-1,f-1);g>=0&&!(p&&l&&p[g]===l[g]);g--);for(var v=f-1;v>g;v--)a--,s=r[a-1];for(var y=g+1;y<d;y++){var m={};m5(p[y],m,t);var x=se("g","clip-g-"+u++,m,[]);(s?s.children:i).push(x),r[a++]=x,s=x}l=p;var _=VS(h,t);_&&(s?s.children:i).push(_)}}},n.prototype.resize=function(e,t){var i=this._opts,o=this.root,r=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),o&&r&&(r.style.display="none",e=ha(o,0,i),t=ha(o,1,i),r.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,r){var a=r.style;a.width=e+"px",a.height=t+"px"}if(Lp(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},n.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},n.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=uL(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},n}();function XS(n){return function(){process.env.NODE_ENV!=="production"&&vn('In SVG mode painter not support method "'+n+'"')}}function C5(n,e,t,i){var o;if(t&&t!=="none")if(o=se("rect","bg",{width:n,height:e,x:"0",y:"0",id:"0"}),p0(t))RS({fill:t},o.attrs,"fill",i);else if(Lp(t))zS({style:{fill:t},dirty:jt,getBoundingRect:function(){return{width:n,height:e}}},o.attrs,"fill",i);else{var r=$a(t),a=r.color,s=r.opacity;o.attrs.fill=a,s<1&&(o.attrs["fill-opacity"]=s)}return o}const D5=I5;function T5(n){n.registerPainter("svg",D5)}function ZS(n,e,t){var i=Ci.createCanvas(),o=e.getWidth(),r=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=o+"px",a.height=r+"px",i.setAttribute("data-zr-dom-id",n)),i.width=o*t,i.height=r*t,i}var A5=function(n){zt(e,n);function e(t,i,o){var r=n.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null;var a;o=o||du,typeof t=="string"?a=ZS(t,i,o):K(t)&&(a=t,t=a.id),r.id=t,r.dom=a;var s=a.style;return s&&(Nm(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),r.painter=i,r.dpr=o,r}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 t=this.dpr;this.domBack=ZS("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,o,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new pt(0,0,0,0);function c(m){if(!(!m.isFinite()||m.isZero()))if(a.length===0){var x=new pt(0,0,0,0);x.copy(m),a.push(x)}else{for(var _=!1,w=1/0,b=0,S=0;S<a.length;++S){var M=a[S];if(M.intersect(m)){var I=new pt(0,0,0,0);I.copy(M),I.union(m),a[S]=I,_=!0;break}else if(l){u.copy(m),u.union(M);var D=m.width*m.height,T=M.width*M.height,A=u.width*u.height,k=A-D-T;k<w&&(w=k,b=S)}}if(l&&(a[b].union(m),_=!0),!_){var x=new pt(0,0,0,0);x.copy(m),a.push(x)}l||(l=a.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var p=t[h];if(p){var d=p.shouldBePainted(o,r,!0,!0),f=p.__isRendered&&(p.__dirty&He||!d)?p.getPrevPaintRect():null;f&&c(f);var g=d&&(p.__dirty&He||!p.__isRendered)?p.getPaintRect():null;g&&c(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var p=i[h],d=p.shouldBePainted(o,r,!0,!0);if(p&&(!d||!p.__zr)&&p.__isRendered){var f=p.getPrevPaintRect();f&&c(f)}}var v;do{v=!1;for(var h=0;h<a.length;){if(a[h].isZero()){a.splice(h,1);continue}for(var y=h+1;y<a.length;)a[h].intersect(a[y])?(v=!0,a[h].union(a[y]),a.splice(y,1)):y++;h++}}while(v);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var o=this.dpr,r=this.dom,a=r.style,s=this.domBack;a&&(a.width=t+"px",a.height=i+"px"),r.width=t*o,r.height=i*o,s&&(s.width=t*o,s.height=i*o,o!==1&&this.ctxBack.scale(o,o))},e.prototype.clear=function(t,i,o){var r=this.dom,a=this.ctx,s=r.width,l=r.height;i=i||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,s/h,l/h));var d=this.domBack;function f(g,v,y,m){if(a.clearRect(g,v,y,m),i&&i!=="transparent"){var x=void 0;if(Bl(i)){var _=i.global||i.__width===y&&i.__height===m;x=_&&i.__canvasGradient||Nf(a,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=x,i.__width=y,i.__height=m}else ck(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,x=Of(a,i,{dirty:function(){p.setUnpainted(),p.__painter.refresh()}}));a.save(),a.fillStyle=x||i,a.fillRect(g,v,y,m),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(d,g,v,y,m),a.restore())}!o||u?f(0,0,s,l):o.length&&C(o,function(g){f(g.x*h,g.y*h,g.width*h,g.height*h)})},e}(je);const Cg=A5;var jS=1e5,sr=314159,Uc=.01,k5=.001;function L5(n){return n?n.__builtin__?!0:!(typeof n.resize!="function"||typeof n.refresh!="function"):!1}function N5(n,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+n+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var E5=function(){function n(e,t,i,o){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||du,this._singleCanvas=r,this.root=e;var a=e.style;a&&(Nm(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(r){var u=e,c=u.width,h=u.height;i.width!=null&&(c=i.width),i.height!=null&&(h=i.height),this.dpr=i.devicePixelRatio||1,u.width=c*this.dpr,u.height=h*this.dpr,this._width=c,this._height=h;var p=new Cg(u,this,this.dpr);p.__builtin__=!0,p.initContext(),l[sr]=p,p.zlevel=sr,s.push(sr),this._domRoot=e}else{this._width=ha(e,0,i),this._height=ha(e,1,i);var d=this._domRoot=N5(this._width,this._height);e.appendChild(d)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},n.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),i=this._prevDisplayList,o=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,i,e,this._redrawId);for(var r=0;r<o.length;r++){var a=o[r],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=r===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(e){var t=e.length,i=this._hoverlayer;if(i&&i.clear(),!!t){for(var o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r,a=0;a<t;a++){var s=e[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(jS)),r||(r=i.ctx,r.save()),Qo(r,s,o,a===t-1))}r&&r.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(jS)},n.prototype.paintOne=function(e,t){Ub(e,t)},n.prototype._paintList=function(e,t,i,o){if(this._redrawId===o){i=i||!1,this._updateLayerStatus(e);var r=this._doPaintList(e,t,i),a=r.finished,s=r.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;bp(function(){l._paintList(e,t,i,o)})}}},n.prototype._compositeManually=function(){var e=this.getLayer(sr).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),this.eachBuiltinLayer(function(o){o.virtual&&e.drawImage(o.dom,0,0,t,i)})},n.prototype._doPaintList=function(e,t,i){for(var o=this,r=[],a=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||i)&&r.push(u)}for(var c=!0,h=!1,p=function(g){var v=r[g],y=v.ctx,m=a&&v.createRepaintRects(e,t,d._width,d._height),x=i?v.__startIndex:v.__drawIndex,_=!i&&v.incremental&&Date.now,w=_&&Date.now(),b=v.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,b,m);else if(x===v.__startIndex){var S=e[x];(!S.incremental||!S.notClear||i)&&v.clear(!1,b,m)}x===-1&&(console.error("For some unknown reason. drawIndex is -1"),x=v.__startIndex);var M,I=function(k){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:o._width,viewHeight:o._height};for(M=x;M<v.__endIndex;M++){var N=e[M];if(N.__inHover&&(h=!0),o._doPaintEl(N,v,a,k,L,M===v.__endIndex-1),_){var E=Date.now()-w;if(E>15)break}}L.prevElClipPaths&&y.restore()};if(m)if(m.length===0)M=v.__endIndex;else for(var D=d.dpr,T=0;T<m.length;++T){var A=m[T];y.save(),y.beginPath(),y.rect(A.x*D,A.y*D,A.width*D,A.height*D),y.clip(),I(A),y.restore()}else y.save(),I(),y.restore();v.__drawIndex=M,v.__drawIndex<v.__endIndex&&(c=!1)},d=this,f=0;f<r.length;f++)p(f);return St.wxa&&C(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:h}},n.prototype._doPaintEl=function(e,t,i,o,r,a){var s=t.ctx;if(i){var l=e.getPaintRect();(!o||l&&l.intersect(o))&&(Qo(s,e,r,a),e.setPrevPaintRect(l))}else Qo(s,e,r,a)},n.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=sr);var i=this._layers[e];return i||(i=new Cg("zr_"+e,this,this.dpr),i.zlevel=e,i.__builtin__=!0,this._layerConfig[e]?ht(i,this._layerConfig[e],!0):this._layerConfig[e-Uc]&&ht(i,this._layerConfig[e-Uc],!0),t&&(i.virtual=t),this.insertLayer(e,i),i.initContext()),i},n.prototype.insertLayer=function(e,t){var i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(i[e]){process.env.NODE_ENV!=="production"&&vn("ZLevel "+e+" has been used already");return}if(!L5(t)){process.env.NODE_ENV!=="production"&&vn("Layer of zlevel "+e+" is not valid");return}if(r>0&&e>o[0]){for(l=0;l<r-1&&!(o[l]<e&&o[l+1]>e);l++);s=i[o[l]]}if(o.splice(l+1,0,e),i[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(t.dom,u.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.__painter=this},n.prototype.eachLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o];e.call(t,this._layers[r],r)}},n.prototype.eachBuiltinLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o],a=this._layers[r];a.__builtin__&&e.call(t,a,r)}},n.prototype.eachOtherLayer=function(e,t){for(var i=this._zlevelList,o=0;o<i.length;o++){var r=i[o],a=this._layers[r];a.__builtin__||e.call(t,a,r)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(h,p){h.__dirty=h.__used=!1});function t(h){r&&(r.__endIndex!==h&&(r.__dirty=!0),r.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<e.length;i++){var o=e[i];if(o.zlevel!==e[i-1].zlevel||o.incremental){this._needsManuallyCompositing=!0;break}}var r=null,a=0,s,l;for(l=0;l<e.length;l++){var o=e[l],u=o.zlevel,c=void 0;s!==u&&(s=u,a=0),o.incremental?(c=this.getLayer(u+k5,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?Uc:0),this._needsManuallyCompositing),c.__builtin__||vn("ZLevel "+u+" has been used by unkown layer "+c.id),c!==r&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,t(l),r=c),o.__dirty&He&&!o.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(h,p){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(e){e.clear()},n.prototype.setBackgroundColor=function(e){this._backgroundColor=e,C(this._layers,function(t){t.setUnpainted()})},n.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?ht(i[e],t,!0):i[e]=t;for(var o=0;o<this._zlevelList.length;o++){var r=this._zlevelList[o];if(r===e||r===e+Uc){var a=this._layers[r];ht(a,i[e],!0)}}}},n.prototype.delLayer=function(e){var t=this._layers,i=this._zlevelList,o=t[e];o&&(o.dom.parentNode.removeChild(o.dom),delete t[e],i.splice(dt(i,e),1))},n.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var o=this._opts,r=this.root;if(e!=null&&(o.width=e),t!=null&&(o.height=t),e=ha(r,0,o),t=ha(r,1,o),i.style.display="",this._width!==e||t!==this._height){i.style.width=e+"px",i.style.height=t+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(sr).resize(e,t)}return this},n.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[sr].dom;var t=new Cg("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var o=t.dom.width,r=t.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,o,r):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Qo(i,c,a,l===u-1)}return t.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();const O5=E5;function P5(n){n.registerPainter("canvas",O5)}var V5=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(process.env.NODE_ENV!=="production"){var i=t.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return yi(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new ot,o=ee("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(o),o.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=r==="none"?"circle":r,l=t.itemHeight*.8,u=ee(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var c=t.iconRotate==="inherit"?a:t.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Ft);const R5=V5;function ma(n,e){var t=n.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var o=ra(n,e,t[0]);return o!=null?o+"":null}else if(i){for(var r=[],a=0;a<t.length;a++)r.push(ra(n,e,t[a]));return r.join(" ")}}function qS(n,e){var t=n.mapDimensionsAll("defaultedLabel");if(!B(e))return e+"";for(var i=[],o=0;o<t.length;o++){var r=n.getDimensionIndex(t[o]);r>=0&&i.push(e[r])}return i.join(" ")}var z5=function(n){P(e,n);function e(t,i,o,r){var a=n.call(this)||this;return a.updateData(t,i,o,r),a}return e.prototype._createSymbol=function(t,i,o,r,a){this.removeAll();var s=ee(t,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),s.drift=B5,this._symbolType=t,this.add(s)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){pi(this.childAt(0))},e.prototype.downplay=function(){di(this.childAt(0))},e.prototype.setZ=function(t,i){var o=this.childAt(0);o.zlevel=t,o.z=i},e.prototype.setDraggable=function(t,i){var o=this.childAt(0);o.draggable=t,o.cursor=!i&&t?"move":o.cursor},e.prototype.updateData=function(t,i,o,r){this.silent=!1;var a=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=a!==this._symbolType,c=r&&r.disableAnimation;if(u){var h=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,t,i,l,h)}else{var p=this.childAt(0);p.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?p.attr(d):Tt(p,d,s,i),Mn(p)}if(this._updateCommon(t,i,l,o,r),u){var p=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,Bt(p,d,s,i)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,o,r,a){var s=this.childAt(0),l=t.hostModel,u,c,h,p,d,f,g,v,y;if(r&&(u=r.emphasisItemStyle,c=r.blurItemStyle,h=r.selectItemStyle,p=r.focus,d=r.blurScope,g=r.labelStatesModels,v=r.hoverScale,y=r.cursorStyle,f=r.emphasisDisabled),!r||t.hasItemOption){var m=r&&r.itemModel?r.itemModel:t.getItemModel(i),x=m.getModel("emphasis");u=x.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),p=x.get("focus"),d=x.get("blurScope"),f=x.get("disabled"),g=re(m),v=x.getShallow("scale"),y=m.getShallow("cursor")}var _=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var w=Ko(t.getItemVisual(i,"symbolOffset"),o);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var b=t.getItemVisual(i,"style"),S=b.fill;if(s instanceof he){var M=s.style;s.useStyle(R({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},b))}else s.__isEmptyBrush?s.useStyle(R({},b)):s.useStyle(b),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var I=t.getItemVisual(i,"liftZ"),D=this._z2;I!=null?D==null&&(this._z2=s.z2,s.z2+=I):D!=null&&(s.z2=D,this._z2=null);var T=a&&a.useNameLabel;de(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:A,inheritColor:S,defaultOpacity:b.opacity});function A(N){return T?t.getName(N):ma(t,N)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var k=s.ensureState("emphasis");k.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var L=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;k.scaleX=this._sizeX*L,k.scaleY=this._sizeY*L,this.setSymbolScale(1),Ut(this,p,d,f)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,o){var r=this.childAt(0),a=rt(this).dataIndex,s=o&&o.animation;if(this.silent=r.silent=!0,o&&o.fadeLabel){var l=r.getTextContent();l&&Gi(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Gi(r,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return ca(t.getItemVisual(i,"symbolSize"))},e}(ot);function B5(n,e){this.parent.drift(n,e)}const nl=z5;function Dg(n,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(t))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&n.getItemVisual(t,"symbol")!=="none"}function $S(n){return n!=null&&!K(n)&&(n={isIgnore:n}),n||{}}function KS(n){var e=n.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:re(e),cursorStyle:e.get("cursor")}}var G5=function(){function n(e){this.group=new ot,this._SymbolCtor=e||nl}return n.prototype.updateData=function(e,t){this._progressiveEls=null,t=$S(t);var i=this.group,o=e.hostModel,r=this._data,a=this._SymbolCtor,s=t.disableAnimation,l=KS(e),u={disableAnimation:s},c=t.getSymbolPoint||function(h){return e.getItemLayout(h)};r||i.removeAll(),e.diff(r).add(function(h){var p=c(h);if(Dg(e,p,h,t)){var d=new a(e,h,l,u);d.setPosition(p),e.setItemGraphicEl(h,d),i.add(d)}}).update(function(h,p){var d=r.getItemGraphicEl(p),f=c(h);if(!Dg(e,f,h,t)){i.remove(d);return}var g=e.getItemVisual(h,"symbol")||"circle",v=d&&d.getSymbolType&&d.getSymbolType();if(!d||v&&v!==g)i.remove(d),d=new a(e,h,l,u),d.setPosition(f);else{d.updateData(e,h,l,u);var y={x:f[0],y:f[1]};s?d.attr(y):Tt(d,y,o)}i.add(d),e.setItemGraphicEl(h,d)}).remove(function(h){var p=r.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},o)}).execute(),this._getSymbolPoint=c,this._data=e},n.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(i,o){var r=e._getSymbolPoint(o);i.setPosition(r),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=KS(e),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[],i=$S(i);function o(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var r=e.start;r<e.end;r++){var a=t.getItemLayout(r);if(Dg(t,a,r,i)){var s=new this._SymbolCtor(t,r,this._seriesScope);s.traverse(o),s.setPosition(a),this.group.add(s),t.setItemGraphicEl(r,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(e){Fi(this._progressiveEls||this.group,e)},n.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(o){o.fadeOut(function(){t.remove(o)},i.hostModel)}):t.removeAll()},n}();const il=G5;function JS(n,e,t){var i=n.getBaseAxis(),o=n.getOtherAxis(i),r=F5(o,t),a=i.dim,s=o.dim,l=e.mapDimension(s),u=e.mapDimension(a),c=s==="x"||s==="radius"?1:0,h=G(n.dimensions,function(f){return e.mapDimension(f)}),p=!1,d=e.getCalculationInfo("stackResultDimension");return qi(e,h[0])&&(p=!0,h[0]=d),qi(e,h[1])&&(p=!0,h[1]=d),{dataDimsForPoint:h,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function F5(n,e){var t=0,i=n.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:Ct(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function QS(n,e,t,i){var o=NaN;n.stacked&&(o=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=n.valueStart);var r=n.baseDataOffset,a=[];return a[r]=t.get(n.baseDim,i),a[1-r]=o,e.dataToPoint(a)}function H5(n,e){var t=[];return e.diff(n).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,o){t.push({cmd:"=",idx:o,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function W5(n,e,t,i,o,r,a,s){for(var l=H5(n,e),u=[],c=[],h=[],p=[],d=[],f=[],g=[],v=JS(o,e,a),y=n.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var _=l[x],w=!0,b=void 0,S=void 0;switch(_.cmd){case"=":b=_.idx*2,S=_.idx1*2;var M=y[b],I=y[b+1],D=m[S],T=m[S+1];(isNaN(M)||isNaN(I))&&(M=D,I=T),u.push(M,I),c.push(D,T),h.push(t[b],t[b+1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(_.idx1));break;case"+":var A=_.idx,k=v.dataDimsForPoint,L=o.dataToPoint([e.get(k[0],A),e.get(k[1],A)]);S=A*2,u.push(L[0],L[1]),c.push(m[S],m[S+1]);var N=QS(v,o,e,A);h.push(N[0],N[1]),p.push(i[S],i[S+1]),g.push(e.getRawIndex(A));break;case"-":w=!1}w&&(d.push(_),f.push(f.length))}f.sort(function(ft,_t){return g[ft]-g[_t]});for(var E=u.length,V=jn(E),O=jn(E),z=jn(E),F=jn(E),W=[],x=0;x<f.length;x++){var Z=f[x],Q=x*2,tt=Z*2;V[Q]=u[tt],V[Q+1]=u[tt+1],O[Q]=c[tt],O[Q+1]=c[tt+1],z[Q]=h[tt],z[Q+1]=h[tt+1],F[Q]=p[tt],F[Q+1]=p[tt+1],W[x]=d[Z]}return{current:V,next:O,stackedOnCurrent:z,stackedOnNext:F,status:W}}var Ki=Math.min,Ji=Math.max;function lr(n,e){return isNaN(n)||isNaN(e)}function Tg(n,e,t,i,o,r,a,s,l){for(var u,c,h,p,d,f,g=t,v=0;v<i;v++){var y=e[g*2],m=e[g*2+1];if(g>=o||g<0)break;if(lr(y,m)){if(l){g+=r;continue}break}if(g===t)n[r>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var x=y-u,_=m-c;if(x*x+_*_<.5){g+=r;continue}if(a>0){for(var w=g+r,b=e[w*2],S=e[w*2+1];b===y&&S===m&&v<i;)v++,w+=r,g+=r,b=e[w*2],S=e[w*2+1],y=e[g*2],m=e[g*2+1],x=y-u,_=m-c;var M=v+1;if(l)for(;lr(b,S)&&M<i;)M++,w+=r,b=e[w*2],S=e[w*2+1];var I=.5,D=0,T=0,A=void 0,k=void 0;if(M>=i||lr(b,S))d=y,f=m;else{D=b-u,T=S-c;var L=y-u,N=b-y,E=m-c,V=S-m,O=void 0,z=void 0;if(s==="x"){O=Math.abs(L),z=Math.abs(N);var F=D>0?1:-1;d=y-F*O*a,f=m,A=y+F*z*a,k=m}else if(s==="y"){O=Math.abs(E),z=Math.abs(V);var W=T>0?1:-1;d=y,f=m-W*O*a,A=y,k=m+W*z*a}else O=Math.sqrt(L*L+E*E),z=Math.sqrt(N*N+V*V),I=z/(z+O),d=y-D*a*(1-I),f=m-T*a*(1-I),A=y+D*a*I,k=m+T*a*I,A=Ki(A,Ji(b,y)),k=Ki(k,Ji(S,m)),A=Ji(A,Ki(b,y)),k=Ji(k,Ki(S,m)),D=A-y,T=k-m,d=y-D*O/z,f=m-T*O/z,d=Ki(d,Ji(u,y)),f=Ki(f,Ji(c,m)),d=Ji(d,Ki(u,y)),f=Ji(f,Ki(c,m)),D=y-d,T=m-f,A=y+D*z/O,k=m+T*z/O}n.bezierCurveTo(h,p,d,f,y,m),h=A,p=k}else n.lineTo(y,m)}u=y,c=m,g+=r}return v}var tM=function(){function n(){this.smooth=0,this.smoothConstraint=!0}return n}(),U5=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tM},e.prototype.buildPath=function(t,i){var o=i.points,r=0,a=o.length/2;if(i.connectNulls){for(;a>0&&lr(o[a*2-2],o[a*2-1]);a--);for(;r<a&&lr(o[r*2],o[r*2+1]);r++);}for(;r<a;)r+=Tg(t,o,r,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var o=this.path,r=o.data,a=Hn.CMD,s,l,u=i==="x",c=[],h=0;h<r.length;){var p=r[h++],d=void 0,f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,x=void 0;switch(p){case a.M:s=r[h++],l=r[h++];break;case a.L:if(d=r[h++],f=r[h++],x=u?(t-s)/(d-s):(t-l)/(f-l),x<=1&&x>=0){var _=u?(f-l)*x+l:(d-s)*x+s;return u?[t,_]:[_,t]}s=d,l=f;break;case a.C:d=r[h++],f=r[h++],g=r[h++],v=r[h++],y=r[h++],m=r[h++];var w=u?tu(s,d,g,y,t,c):tu(l,f,v,m,t,c);if(w>0)for(var b=0;b<w;b++){var S=c[b];if(S<=1&&S>=0){var _=u?oe(l,f,v,m,S):oe(s,d,g,y,S);return u?[t,_]:[_,t]}}s=y,l=m;break}}},e}(mt),Y5=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e}(tM),eM=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new Y5},e.prototype.buildPath=function(t,i){var o=i.points,r=i.stackedOnPoints,a=0,s=o.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&lr(o[s*2-2],o[s*2-1]);s--);for(;a<s&&lr(o[a*2],o[a*2+1]);a++);}for(;a<s;){var u=Tg(t,o,a,s,s,1,i.smooth,l,i.connectNulls);Tg(t,r,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,t.closePath()}},e}(mt);function nM(n,e,t,i,o){var r=n.getArea(),a=r.x,s=r.y,l=r.width,u=r.height,c=t.get(["lineStyle","width"])||2;a-=c/2,s-=c/2,l+=c,u+=c,a=Math.floor(a),l=Math.round(l);var h=new It({shape:{x:a,y:s,width:l,height:u}});if(e){var p=n.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(h.shape.x+=l),h.shape.width=0):(f||(h.shape.y+=u),h.shape.height=0);var g=$(o)?function(v){o(v,h)}:null;Bt(h,{shape:{width:l,height:u,x:a,y:s}},t,null,i,g)}return h}function iM(n,e,t){var i=n.getArea(),o=Zt(i.r0,1),r=Zt(i.r,1),a=new Ve({shape:{cx:Zt(n.cx,1),cy:Zt(n.cy,1),r0:o,r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=n.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=o,Bt(a,{shape:{endAngle:i.endAngle,r}},t)}return a}function Yc(n,e,t,i,o){if(n){if(n.type==="polar")return iM(n,e,t);if(n.type==="cartesian2d")return nM(n,e,t,i,o)}else return null;return null}function ur(n,e){return n.type===e}function oM(n,e){if(n.length===e.length){for(var t=0;t<n.length;t++)if(n[t]!==e[t])return;return!0}}function rM(n){for(var e=1/0,t=1/0,i=-1/0,o=-1/0,r=0;r<n.length;){var a=n[r++],s=n[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(t=Math.min(s,t),o=Math.max(s,o))}return[[e,t],[i,o]]}function aM(n,e){var t=rM(n),i=t[0],o=t[1],r=rM(e),a=r[0],s=r[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(o[0]-s[0]),Math.abs(o[1]-s[1]))}function sM(n){return Ct(n)?n:n?.5:0}function X5(n,e,t){if(!t.valueDim)return[];for(var i=e.count(),o=jn(i*2),r=0;r<i;r++){var a=QS(t,n,e,r);o[r*2]=a[0],o[r*2+1]=a[1]}return o}function Qi(n,e,t,i){var o=e.getBaseAxis(),r=o.dim==="x"||o.dim==="radius"?0:1,a=[],s=0,l=[],u=[],c=[],h=[];if(i){for(s=0;s<n.length;s+=2)!isNaN(n[s])&&!isNaN(n[s+1])&&h.push(n[s],n[s+1]);n=h}for(s=0;s<n.length-2;s+=2)switch(c[0]=n[s+2],c[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],a.push(u[0],u[1]),t){case"end":l[r]=c[r],l[1-r]=u[1-r],a.push(l[0],l[1]);break;case"middle":var p=(u[r]+c[r])/2,d=[];l[r]=d[r]=p,l[1-r]=u[1-r],d[1-r]=c[1-r],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[r]=u[r],l[1-r]=c[1-r],a.push(l[0],l[1])}return a.push(n[s++],n[s++]),a}function Z5(n,e){var t=[],i=n.length,o,r;function a(c,h,p){var d=c.coord,f=(p-d)/(h.coord-d),g=nL(f,[c.color,h.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=n[s],u=l.coord;if(u<0)o=l;else if(u>e){r?t.push(a(r,l,e)):o&&t.push(a(o,l,0),a(o,l,e));break}else o&&(t.push(a(o,l,0)),o=null),t.push(l),r=l}return t}function j5(n,e,t){var i=n.getVisual("visualMeta");if(!(!i||!i.length||!n.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 o,r,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if(o=s&&s.coordDim,o==="x"||o==="y"){r=i[a];break}}if(!r){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(o),u=G(r.stops,function(x){return{coord:l.toGlobalCoord(l.dataToCoord(x.value)),color:x.color}}),c=u.length,h=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=Z5(u,o==="x"?t.getWidth():t.getHeight()),d=p.length;if(!d&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=p[0].coord-f,v=p[d-1].coord+f,y=v-g;if(y<.001)return"transparent";C(p,function(x){x.offset=(x.coord-g)/y}),p.push({offset:d?p[d-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:h[0]||"transparent"});var m=new vs(0,0,0,0,p,!0);return m[o]=g,m[o+"2"]=v,m}}function q5(n,e,t){var i=n.get("showAllSymbol"),o=i==="auto";if(!(i&&!o)){var r=t.getAxesByScale("ordinal")[0];if(r&&!(o&&$5(r,e))){var a=e.mapDimension(r.dim),s={};return C(r.getViewLabels(),function(l){var u=r.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function $5(n,e){var t=n.getExtent(),i=Math.abs(t[1]-t[0])/n.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(nl.getSymbolSize(e,a)[n.isHorizontal()?1:0]*1.5>i)return!1;return!0}function K5(n,e){return isNaN(n)||isNaN(e)}function J5(n){for(var e=n.length/2;e>0&&K5(n[e*2-2],n[e*2-1]);e--);return e-1}function lM(n,e){return[n[e*2],n[e*2+1]]}function Q5(n,e,t){for(var i=n.length/2,o=t==="x"?0:1,r,a,s=0,l=-1,u=0;u<i;u++)if(a=n[u*2+o],!(isNaN(a)||isNaN(n[u*2+1-o]))){if(u===0){r=a;continue}if(r<=e&&a>=e||r>=e&&a<=e){l=u;break}s=u,r=a}return{range:[s,l],t:(e-r)/(a-r)}}function uM(n){if(n.get(["endLabel","show"]))return!0;for(var e=0;e<Ce.length;e++)if(n.get([Ce[e],"endLabel","show"]))return!0;return!1}function Ag(n,e,t,i){if(ur(e,"cartesian2d")){var o=i.getModel("endLabel"),r=o.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=uM(i)?function(d,f){n._endLabelOnDuring(d,f,a,s,r,o,e)}:null,u=e.getBaseAxis().isHorizontal(),c=nM(e,t,i,function(){var d=n._endLabel;d&&t&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),iM(e,t,i)}function t3(n,e){var t=e.getBaseAxis(),i=t.isHorizontal(),o=t.inverse,r=i?o?"right":"left":"center",a=i?"middle":o?"top":"bottom";return{normal:{align:n.get("align")||r,verticalAlign:n.get("verticalAlign")||a}}}var e3=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ot,i=new il;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),c=t.getModel("areaStyle"),h=l.getLayout("points")||[],p=a.type==="polar",d=this._coordSys,f=this._symbolDraw,g=this._polyline,v=this._polygon,y=this._lineGroup,m=!i.ssr&&t.isAnimationEnabled(),x=!c.isEmpty(),_=c.get("origin"),w=JS(a,l,_),b=x&&X5(a,l,w),S=t.get("showSymbol"),M=t.get("connectNulls"),I=S&&!p&&q5(t,l,a),D=this._data;D&&D.eachItemGraphicEl(function(_t,gt){_t.__temp&&(s.remove(_t),D.setItemGraphicEl(gt,null))}),S||f.remove(),s.add(y);var T=p?!1:t.get("step"),A;a&&a.getArea&&t.get("clip",!0)&&(A=a.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var k=j5(l,a,o)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&d.type===a.type&&T===this._step))S&&f.updateData(l,{isIgnore:I,clipShape:A,disableAnimation:!0,getSymbolPoint:function(_t){return[h[_t*2],h[_t*2+1]]}}),m&&this._initSymbolLabelAnimation(l,a,A),T&&(h=Qi(h,a,T,M),b&&(b=Qi(b,a,T,M))),g=this._newPolyline(h),x?v=this._newPolygon(h,b):v&&(y.remove(v),v=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Uo(k)),y.setClipPath(Ag(this,a,!0,t));else{x&&!v?v=this._newPolygon(h,b):v&&!x&&(y.remove(v),v=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Uo(k));var L=y.getClipPath();if(L){var N=Ag(this,a,!1,t);Bt(L,{shape:N.shape},t)}else y.setClipPath(Ag(this,a,!0,t));S&&f.updateData(l,{isIgnore:I,clipShape:A,disableAnimation:!0,getSymbolPoint:function(_t){return[h[_t*2],h[_t*2+1]]}}),(!oM(this._stackedOnPoints,b)||!oM(this._points,h))&&(m?this._doUpdateAnimation(l,b,a,o,T,_,M):(T&&(h=Qi(h,a,T,M),b&&(b=Qi(b,a,T,M))),g.setShape({points:h}),v&&v.setShape({points:h,stackedOnPoints:b})))}var E=t.getModel("emphasis"),V=E.get("focus"),O=E.get("blurScope"),z=E.get("disabled");if(g.useStyle(et(u.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),pe(g,t,"lineStyle"),g.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=g.getState("emphasis").style;F.lineWidth=+g.style.lineWidth+1}rt(g).seriesIndex=t.seriesIndex,Ut(g,V,O,z);var W=sM(t.get("smooth")),Z=t.get("smoothMonotone");if(g.setShape({smooth:W,smoothMonotone:Z,connectNulls:M}),v){var Q=l.getCalculationInfo("stackedOnSeries"),tt=0;v.useStyle(et(c.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),Q&&(tt=sM(Q.get("smooth"))),v.setShape({smooth:W,stackedOnSmooth:tt,smoothMonotone:Z,connectNulls:M}),pe(v,t,"areaStyle"),rt(v).seriesIndex=t.seriesIndex,Ut(v,V,O,z)}var ft=function(_t){r._changePolyState(_t)};l.eachItemGraphicEl(function(_t){_t&&(_t.onHoverStateChange=ft)}),this._polyline.onHoverStateChange=ft,this._data=l,this._coordSys=a,this._stackedOnPoints=b,this._points=h,this._step=T,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),v&&this.packEventData(t,v))},e.prototype.packEventData=function(t,i){rt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,i,o,r){var a=t.getData(),s=Mo(a,r);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(isNaN(c)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=t.get("zlevel")||0,d=t.get("z")||0;u=new nl(a,s),u.x=c,u.y=h,u.setZ(p,d);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=p,f.z=d,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Vt.prototype.highlight.call(this,t,i,o,r)},e.prototype.downplay=function(t,i,o,r){var a=t.getData(),s=Mo(a,r);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Vt.prototype.downplay.call(this,t,i,o,r)},e.prototype._changePolyState=function(t){var i=this._polygon;Lu(this._polyline,t),i&&Lu(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new U5({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new eM({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,i,o){var r,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(r=s.isHorizontal(),a=!1):i.type==="polar"&&(r=s.dim==="angle",a=!0);var u=t.hostModel,c=u.get("animationDuration");$(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=$(h)?h(null):h;t.eachItemGraphicEl(function(d,f){var g=d;if(g){var v=[d.x,d.y],y=void 0,m=void 0,x=void 0;if(o)if(a){var _=o,w=i.pointToCoord(v);r?(y=_.startAngle,m=_.endAngle,x=-w[1]/180*Math.PI):(y=_.r0,m=_.r,x=w[0])}else{var b=o;r?(y=b.x,m=b.x+b.width,x=d.x):(y=b.y+b.height,m=b.y,x=d.y)}var S=m===y?0:(x-y)/(m-y);l&&(S=1-S);var M=$(h)?h(f):c*S+p,I=g.getSymbolPath(),D=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),D&&D.animateFrom({style:{opacity:0}},{duration:300,delay:M}),I.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,o){var r=t.getModel("endLabel");if(uM(t)){var a=t.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=J5(l);c>=0&&(de(s,re(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:c,defaultText:function(h,p,d){return d!=null?qS(a,d):ma(a,h)},enableTextSetter:!0},t3(r,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,o,r,a,s,l){var u=this._endLabel,c=this._polyline;if(u){t<1&&r.originalX==null&&(r.originalX=u.x,r.originalY=u.y);var h=o.getLayout("points"),p=o.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,x=i.shape,_=m?y?x.x:x.y+x.height:y?x.x+x.width:x.y,w=(y?g:0)*(m?-1:1),b=(y?0:-g)*(m?-1:1),S=y?"x":"y",M=Q5(h,_,S),I=M.range,D=I[1]-I[0],T=void 0;if(D>=1){if(D>1&&!d){var A=lM(h,I[0]);u.attr({x:A[0]+w,y:A[1]+b}),a&&(T=p.getRawValue(I[0]))}else{var A=c.getPointOn(_,S);A&&u.attr({x:A[0]+w,y:A[1]+b});var k=p.getRawValue(I[0]),L=p.getRawValue(I[1]);a&&(T=t1(o,f,k,L,M.t))}r.lastFrameIndex=I[0]}else{var N=t===1||r.lastFrameIndex>0?I[0]:0,A=lM(h,N);a&&(T=p.getRawValue(N)),u.attr({x:A[0]+w,y:A[1]+b})}if(a){var E=qr(u);typeof E.setLabelText=="function"&&E.setLabelText(T)}}},e.prototype._doUpdateAnimation=function(t,i,o,r,a,s,l){var u=this._polyline,c=this._polygon,h=t.hostModel,p=W5(this._data,t,this._stackedOnPoints,i,this._coordSys,o,this._valueOrigin),d=p.current,f=p.stackedOnCurrent,g=p.next,v=p.stackedOnNext;if(a&&(d=Qi(p.current,o,a,l),f=Qi(p.stackedOnCurrent,o,a,l),g=Qi(p.next,o,a,l),v=Qi(p.stackedOnNext,o,a,l)),aM(d,g)>3e3||c&&aM(f,v)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=p.current,u.shape.points=d;var y={shape:{points:g}};p.current!==d&&(y.shape.__points=p.next),u.stopAnimation(),Tt(u,y,h),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Tt(c,{shape:{stackedOnPoints:v}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_<x.length;_++){var w=x[_].cmd;if(w==="="){var b=t.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var S=u.shape.__points,M=0;M<m.length;M++){var I=m[M].el,D=m[M].ptIdx*2;I.x=S[D],I.y=S[D+1],I.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,o=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),o&&o.eachItemGraphicEl(function(r,a){r.__temp&&(i.remove(r),o.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Vt);const n3=e3;function ol(n,e){return{seriesType:n,plan:sa(),reset:function(t){var i=t.getData(),o=t.coordinateSystem,r=t.pipelineContext,a=e||r.large;if(o){var s=G(o.dimensions,function(d){return i.mapDimension(d)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");qi(i,s[0])&&(s[0]=u),qi(i,s[1])&&(s[1]=u);var c=i.getStore(),h=i.getDimensionIndex(s[0]),p=i.getDimensionIndex(s[1]);return l&&{progress:function(d,f){for(var g=d.end-d.start,v=a&&jn(g*l),y=[],m=[],x=d.start,_=0;x<d.end;x++){var w=void 0;if(l===1){var b=c.get(h,x);w=o.dataToPoint(b,null,m)}else y[0]=c.get(h,x),y[1]=c.get(p,x),w=o.dataToPoint(y,null,m);a?(v[_++]=w[0],v[_++]=w[1]):f.setItemLayout(x,w.slice())}a&&f.setLayout("points",v)}}}}}}var i3={average:function(n){for(var e=0,t=0,i=0;i<n.length;i++)isNaN(n[i])||(e+=n[i],t++);return t===0?NaN:e/t},sum:function(n){for(var e=0,t=0;t<n.length;t++)e+=n[t]||0;return e},max:function(n){for(var e=-1/0,t=0;t<n.length;t++)n[t]>e&&(e=n[t]);return isFinite(e)?e:NaN},min:function(n){for(var e=1/0,t=0;t<n.length;t++)n[t]<e&&(e=n[t]);return isFinite(e)?e:NaN},nearest:function(n){return n[0]}},o3=function(n){return Math.round(n.length/2)};function cM(n){return{seriesType:n,reset:function(e,t,i){var o=e.getData(),r=e.get("sampling"),a=e.coordinateSystem,s=o.count();if(s>10&&a.type==="cartesian2d"&&r){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),d=Math.round(s/p);if(isFinite(d)&&d>1){r==="lttb"&&e.setData(o.lttbDownSample(o.mapDimension(u.dim),1/d));var f=void 0;U(r)?f=i3[r]:$(r)&&(f=r),f&&e.setData(o.downSample(o.mapDimension(u.dim),1/d,f,o3))}}}}}function r3(n){n.registerChartView(n3),n.registerSeriesModel(R5),n.registerLayout(ol("line",!0)),n.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,cM("line"))}var hM=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return yi(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,o){var r=this.coordinateSystem;if(r&&r.clampData){var a=r.clampData(t),s=r.dataToPoint(a);if(o)C(r.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=a[d],v=i[d]==="x1"||i[d]==="y1";if(v&&(g+=1),f.length<2)return;if(f.length===2){s[d]=p.toGlobalCoord(p.getExtent()[v?1:0]);return}for(var y=void 0,m=void 0,x=1,_=0;_<f.length;_++){var w=f[_].coord,b=_===f.length-1?f[_-1].tickValue+x:f[_].tickValue;if(b===g){m=w;break}else if(b<g)y=w;else if(y!=null&&b>g){m=(w+y)/2;break}_===1&&(x=b-f[0].tickValue)}m==null&&(y?y&&(m=f[f.length-1].coord):m=f[0].coord),s[d]=p.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=r.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/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"},e}(Ft);Ft.registerClass(hM);const Xc=hM;var a3=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return yi(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 t=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>t&&(t=i),t},e.prototype.brushSelector=function(t,i,o){return o.rect(i.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Hi(Xc.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Xc);const s3=a3;var l3=function(){function n(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return n}(),u3=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new l3},e.prototype.buildPath=function(t,i){var o=i.cx,r=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,c=i.startAngle,h=i.endAngle,p=i.clockwise,d=Math.PI*2,f=p?h-c<d:c-h<d;f||(c=h-(p?d:-d));var g=Math.cos(c),v=Math.sin(c),y=Math.cos(h),m=Math.sin(h);f?(t.moveTo(g*a+o,v*a+r),t.arc(g*u+o,v*u+r,l,-Math.PI+c,c,!p)):t.moveTo(g*s+o,v*s+r),t.arc(o,r,s,c,h,!p),t.arc(y*u+o,m*u+r,l,h-Math.PI*2,h-Math.PI,!p),a!==0&&t.arc(o,r,a,h,c,p)},e}(mt);const Zc=u3;function c3(n,e){e=e||{};var t=e.isRoundCap;return function(i,o,r){var a=o.position;if(!a||a instanceof Array)return gu(i,o,r);var s=n(a),l=o.distance!=null?o.distance:5,u=this.shape,c=u.cx,h=u.cy,p=u.r,d=u.r0,f=(p+d)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,m=t?Math.abs(p-d)/2:0,x=Math.cos,_=Math.sin,w=c+p*x(g),b=h+p*_(g),S="left",M="top";switch(s){case"startArc":w=c+(d-l)*x(y),b=h+(d-l)*_(y),S="center",M="top";break;case"insideStartArc":w=c+(d+l)*x(y),b=h+(d+l)*_(y),S="center",M="bottom";break;case"startAngle":w=c+f*x(g)+jc(g,l+m,!1),b=h+f*_(g)+qc(g,l+m,!1),S="right",M="middle";break;case"insideStartAngle":w=c+f*x(g)+jc(g,-l+m,!1),b=h+f*_(g)+qc(g,-l+m,!1),S="left",M="middle";break;case"middle":w=c+f*x(y),b=h+f*_(y),S="center",M="middle";break;case"endArc":w=c+(p+l)*x(y),b=h+(p+l)*_(y),S="center",M="bottom";break;case"insideEndArc":w=c+(p-l)*x(y),b=h+(p-l)*_(y),S="center",M="top";break;case"endAngle":w=c+f*x(v)+jc(v,l+m,!0),b=h+f*_(v)+qc(v,l+m,!0),S="left",M="middle";break;case"insideEndAngle":w=c+f*x(v)+jc(v,-l+m,!0),b=h+f*_(v)+qc(v,-l+m,!0),S="right",M="middle";break;default:return gu(i,o,r)}return i=i||{},i.x=w,i.y=b,i.align=S,i.verticalAlign=M,i}}function h3(n,e,t,i){if(Ct(i)){n.setTextConfig({rotation:i});return}else if(B(e)){n.setTextConfig({rotation:0});return}var o=n.shape,r=o.clockwise?o.startAngle:o.endAngle,a=o.clockwise?o.endAngle:o.startAngle,s=(r+a)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=r;break;case"endAngle":case"insideEndAngle":l=a;break;default:n.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),n.setTextConfig({rotation:c})}function jc(n,e,t){return e*Math.sin(n)*(t?-1:1)}function qc(n,e,t){return e*Math.cos(n)*(t?1:-1)}function cr(n,e,t){var i=n.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;B(i)||(i=[i,i,i,i]);var o=Math.abs(e.r||0-e.r0||0);return{cornerRadius:G(i,function(r){return _n(r,o)})}}var kg=Math.max,Lg=Math.min;function p3(n,e){var t=n.getArea&&n.getArea();if(ur(n,"cartesian2d")){var i=n.getBaseAxis();if(i.type!=="category"||!i.onBand){var o=e.getLayout("bandWidth");i.isHorizontal()?(t.x-=o,t.width+=o*2):(t.y-=o,t.height+=o*2)}}return t}var d3=function(n){P(e,n);function e(){var t=n.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,o,r){this._model=t,this._removeOnRenderedListener(o),this._updateDrawMode(t);var a=t.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,o):this._renderNormal(t,i,o,r)):process.env.NODE_ENV!=="production"&&Ht("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Fi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,o,r){var a=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var p=t.isAnimationEnabled()?t:null,d=f3(t,u);d&&this._enableRealtimeSort(d,s,o);var f=t.get("clip",!0)||d,g=p3(u,s);a.removeClipPath();var v=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],w=this._backgroundEls,b=r&&r.isInitSort,S=r&&r.type==="changeAxisOrder";function M(T){var A=$c[u.type](s,T),k=b3(u,h,A);return k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",x):k.setShape("cornerRadius",x),_[T]=k,k}s.diff(l).add(function(T){var A=s.getItemModel(T),k=$c[u.type](s,T,A);if(y&&M(T),!(!s.hasValue(T)||!vM[u.type](k))){var L=!1;f&&(L=pM[u.type](g,k));var N=dM[u.type](t,s,T,k,h,p,c.model,!1,v);d&&(N.forceLabelAnimation=!0),mM(N,s,T,A,k,t,h,u.type==="polar"),b?N.attr({shape:k}):d?fM(d,p,N,k,T,h,!1,!1):Bt(N,{shape:k},t,T),s.setItemGraphicEl(T,N),a.add(N),N.ignore=L}}).update(function(T,A){var k=s.getItemModel(T),L=$c[u.type](s,T,k);if(y){var N=void 0;w.length===0?N=M(A):(N=w[A],N.useStyle(m.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",x):N.setShape("cornerRadius",x),_[T]=N);var E=$c[u.type](s,T),V=wM(h,E,u);Tt(N,{shape:V},p,T)}var O=l.getItemGraphicEl(A);if(!s.hasValue(T)||!vM[u.type](L)){a.remove(O);return}var z=!1;if(f&&(z=pM[u.type](g,L),z&&a.remove(O)),O?Mn(O):O=dM[u.type](t,s,T,L,h,p,c.model,!!O,v),d&&(O.forceLabelAnimation=!0),S){var F=O.getTextContent();if(F){var W=qr(F);W.prevValue!=null&&(W.prevValue=W.value)}}else mM(O,s,T,k,L,t,h,u.type==="polar");b?O.attr({shape:L}):d?fM(d,p,O,L,T,h,!0,S):Tt(O,{shape:L},t,T,null),s.setItemGraphicEl(T,O),O.ignore=z,a.add(O)}).remove(function(T){var A=l.getItemGraphicEl(T);A&&ys(A,t,T)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new ot);I.removeAll();for(var D=0;D<_.length;++D)I.add(_[D]);a.add(I),this._backgroundEls=_,this._data=s},e.prototype._renderLarge=function(t,i,o){this._clear(),_M(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),_M(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Yc(t.coordinateSystem,!1,t),o=this.group;i?o.setClipPath(i):o.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,o){var r=this;if(i.count()){var a=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,o),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){r._updateSortWithinSameData(i,s,a,o)},o.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,o){var r=[];return t.each(t.mapDimension(i.dim),function(a,s){var l=o(s);l=l??NaN,r.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),r.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:G(r,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,o){for(var r=o.scale,a=t.mapDimension(o.dim),s=Number.MAX_VALUE,l=0,u=r.getOrdinalMeta().categories.length;l<u;++l){var c=t.rawIndexOf(a,r.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:i(t.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var o=i.scale,r=o.getExtent(),a=Math.max(0,r[0]),s=Math.min(r[1],o.getOrdinalMeta().categories.length-1);a<=s;++a)if(t.ordinalNumbers[a]!==o.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(t,i,o,r){if(this._isOrderChangedWithinSameData(t,i,o)){var a=this._dataSort(t,o,i);this._isOrderDifferentInView(a,o)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(t,i,o){var r=i.baseAxis,a=this._dataSort(t,r,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:a})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(r){ys(r,t,rt(r).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Vt),pM={cartesian2d:function(n,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=n.x+n.width,r=n.y+n.height,a=kg(e.x,n.x),s=Lg(e.x+e.width,o),l=kg(e.y,n.y),u=Lg(e.y+e.height,r),c=s<a,h=u<l;return e.x=c&&a>o?s:a,e.y=h&&l>r?u:l,e.width=c?0:s-a,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(n,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var o=Lg(e.r,n.r),r=kg(e.r0,n.r0);e.r=o,e.r0=r;var a=o-r<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return a}},dM={cartesian2d:function(n,e,t,i,o,r,a,s,l){var u=new It({shape:R({},i),z2:1});if(u.__dataIndex=t,u.name="item",r){var c=u.shape,h=o?"height":"width";c[h]=0}return u},polar:function(n,e,t,i,o,r,a,s,l){var u=!o&&l?Zc:Ve,c=new u({shape:i,z2:1});c.name="item";var h=yM(o);if(c.calculateTextPosition=c3(h,{isRoundCap:u===Zc}),r){var p=c.shape,d=o?"r":"endAngle",f={};p[d]=o?i.r0:i.startAngle,f[d]=i[d],(s?Tt:Bt)(c,{shape:f},r)}return c}};function f3(n,e){var t=n.get("realtimeSort",!0),i=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&t&&(i.type!=="category"&&Ht("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Ht("`realtimeSort` will not work because this bar series is not on cartesian2d.")),t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function fM(n,e,t,i,o,r,a,s){var l,u;r?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Tt:Bt)(t,{shape:l},e,o,null);var c=e?n.baseAxis.model:null;(a?Tt:Bt)(t,{shape:u},c,o)}function gM(n,e){for(var t=0;t<e.length;t++)if(!isFinite(n[e[t]]))return!0;return!1}var g3=["x","y","width","height"],v3=["cx","cy","r","startAngle","endAngle"],vM={cartesian2d:function(n){return!gM(n,g3)},polar:function(n){return!gM(n,v3)}},$c={cartesian2d:function(n,e,t){var i=n.getItemLayout(e),o=t?m3(t,i):0,r=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+r*o/2,y:i.y+a*o/2,width:i.width-r*o,height:i.height-a*o}},polar:function(n,e,t){var i=n.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function y3(n){return n.startAngle!=null&&n.endAngle!=null&&n.startAngle===n.endAngle}function yM(n){return function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}}(n)}function mM(n,e,t,i,o,r,a,s){var l=e.getItemVisual(t,"style");if(s){if(!r.get("roundCap")){var u=n.shape,c=cr(i.getModel("itemStyle"),u,!0);R(u,c),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var p=i.getShallow("cursor");p&&n.attr("cursor",p);var d=s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?o.height>=0?"bottom":"top":o.width>=0?"right":"left",f=re(i);de(n,f,{labelFetcher:r,labelDataIndex:t,defaultText:ma(r.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var g=n.getTextContent();if(s&&g){var v=i.get(["label","position"]);n.textConfig.inside=v==="middle"?!0:null,h3(n,v==="outside"?d:v,yM(a),i.get(["label","rotate"]))}zx(g,f,r.getRawValue(t),function(m){return qS(e,m)});var y=i.getModel(["emphasis"]);Ut(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),pe(n,i),y3(o)&&(n.style.fill="none",n.style.stroke="none",C(n.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function m3(n,e){var t=n.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=n.get(["itemStyle","borderWidth"])||0,o=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),r=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,o,r)}var x3=function(){function n(){}return n}(),xM=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new x3},e.prototype.buildPath=function(t,i){for(var o=i.points,r=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<o.length;c+=3)l[r]=u,l[a]=o[c+2],s[r]=o[c+r],s[a]=o[c+a],t.rect(s[0],s[1],l[0],l[1])},e}(mt);function _M(n,e,t,i){var o=n.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=n.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints");if(u){var c=new xM({shape:{points:u},incremental:!!i,silent:!0,z2:0});c.baseDimIdx=r,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),t&&t.push(c)}var h=new xM({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=r,h.largeDataIndices=a,h.barWidth=s,e.add(h),h.useStyle(o.getVisual("style")),rt(h).seriesIndex=n.seriesIndex,n.get("silent")||(h.on("mousedown",bM),h.on("mousemove",bM)),t&&t.push(h)}var bM=Af(function(n){var e=this,t=_3(e,n.offsetX,n.offsetY);rt(e).dataIndex=t>=0?t:null},30,!1);function _3(n,e,t){for(var i=n.baseDimIdx,o=1-i,r=n.shape.points,a=n.largeDataIndices,s=[],l=[],u=n.barWidth,c=0,h=r.length/3;c<h;c++){var p=c*3;if(l[i]=u,l[o]=r[p+2],s[i]=r[p+i],s[o]=r[p+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return a[c]}return-1}function wM(n,e,t){if(ur(t,"cartesian2d")){var i=e,o=t.getArea();return{x:n?i.x:o.x,y:n?o.y:i.y,width:n?i.width:o.width,height:n?o.height:i.height}}else{var o=t.getArea(),r=e;return{cx:o.cx,cy:o.cy,r0:n?o.r0:r.r0,r:n?o.r:r.r,startAngle:n?r.startAngle:0,endAngle:n?r.endAngle:Math.PI*2}}}function b3(n,e,t){var i=n.type==="polar"?Ve:It;return new i({shape:wM(e,t,n),silent:!0,z2:0})}const w3=d3;function S3(n){n.registerChartView(w3),n.registerSeriesModel(s3),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,at(Bw,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Gw("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,cM("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(o){e.sortInfo&&o.axis.setCategorySortInfo(e.sortInfo)})})}var Kc=Math.PI*2,SM=Math.PI/180;function MM(n,e){return ie(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function IM(n,e){var t=MM(n,e),i=n.get("center"),o=n.get("radius");B(o)||(o=[0,o]);var r=H(t.width,e.getWidth()),a=H(t.height,e.getHeight()),s=Math.min(r,a),l=H(o[0],s/2),u=H(o[1],s/2),c,h,p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);c=d[0]||0,h=d[1]||0}else B(i)||(i=[i,i]),c=H(i[0],r)+t.x,h=H(i[1],a)+t.y;return{cx:c,cy:h,r0:l,r:u}}function M3(n,e,t){e.eachSeriesByType(n,function(i){var o=i.getData(),r=o.mapDimension("value"),a=MM(i,t),s=IM(i,t),l=s.cx,u=s.cy,c=s.r,h=s.r0,p=-i.get("startAngle")*SM,d=i.get("minAngle")*SM,f=0;o.each(r,function(D){!isNaN(D)&&f++});var g=o.getSum(r),v=Math.PI/(g||f)*2,y=i.get("clockwise"),m=i.get("roseType"),x=i.get("stillShowZeroSum"),_=o.getDataExtent(r);_[0]=0;var w=Kc,b=0,S=p,M=y?1:-1;if(o.setLayout({viewRect:a,r:c}),o.each(r,function(D,T){var A;if(isNaN(D)){o.setItemLayout(T,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:l,cy:u,r0:h,r:m?NaN:c});return}m!=="area"?A=g===0&&x?v:D*v:A=Kc/f,A<d?(A=d,w-=d):b+=D;var k=S+M*A;o.setItemLayout(T,{angle:A,startAngle:S,endAngle:k,clockwise:y,cx:l,cy:u,r0:h,r:m?kt(D,_,[h,c]):c}),S=k}),w<Kc&&f)if(w<=.001){var I=Kc/f;o.each(r,function(D,T){if(!isNaN(D)){var A=o.getItemLayout(T);A.angle=I,A.startAngle=p+M*T*I,A.endAngle=p+M*(T+1)*I}})}else v=w/b,S=p,o.each(r,function(D,T){if(!isNaN(D)){var A=o.getItemLayout(T),k=A.angle===d?d:D*v;A.startAngle=S,A.endAngle=S+M*k,S+=M*k}})})}function rl(n){return{seriesType:n,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var o=e.getData();o.filterSelf(function(r){for(var a=o.getName(r),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var I3=Math.PI/180;function CM(n,e,t,i,o,r,a,s,l,u){if(n.length<2)return;function c(g){for(var v=g.rB,y=v*v,m=0;m<g.list.length;m++){var x=g.list[m],_=Math.abs(x.label.y-t),w=i+x.len,b=w*w,S=Math.sqrt((1-Math.abs(_*_/y))*b),M=e+(S+x.len2)*o,I=M-x.label.x,D=x.targetTextWidth-I*o;DM(x,D,!0),x.label.x=M}}function h(g){for(var v={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var x=g[m],_=x.label.y>t?y:v,w=Math.abs(x.label.y-t);if(w>=_.maxY){var b=x.label.x-e-x.len2*o,S=i+x.len,M=Math.abs(b)<S?Math.sqrt(w*w/(1-b*b/S/S)):S;_.rB=M,_.maxY=w}_.list.push(x)}c(v),c(y)}for(var p=n.length,d=0;d<p;d++)if(n[d].position==="outer"&&n[d].labelAlignTo==="labelLine"){var f=n[d].label.x-u;n[d].linePoints[1][0]+=f,n[d].label.x=u}mS(n,l,l+a)&&h(n)}function C3(n,e,t,i,o,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<n.length;p++){var d=n[p].label;Ng(n[p])||(d.x<e?(c=Math.min(c,d.x),l.push(n[p])):(h=Math.max(h,d.x),u.push(n[p])))}for(var p=0;p<n.length;p++){var f=n[p];if(!Ng(f)&&f.linePoints){if(f.labelStyleWidth!=null)continue;var d=f.label,g=f.linePoints,v=void 0;f.labelAlignTo==="edge"?d.x<e?v=g[2][0]-f.labelDistance-a-f.edgeDistance:v=a+o-f.edgeDistance-g[2][0]-f.labelDistance:f.labelAlignTo==="labelLine"?d.x<e?v=c-a-f.bleedMargin:v=a+o-h-f.bleedMargin:d.x<e?v=d.x-a-f.bleedMargin:v=a+o-d.x-f.bleedMargin,f.targetTextWidth=v,DM(f,v)}}CM(u,e,t,i,1,o,r,a,s,h),CM(l,e,t,i,-1,o,r,a,s,c);for(var p=0;p<n.length;p++){var f=n[p];if(!Ng(f)&&f.linePoints){var d=f.label,g=f.linePoints,y=f.labelAlignTo==="edge",m=d.style.padding,x=m?m[1]+m[3]:0,_=d.style.backgroundColor?0:x,w=f.rect.width+_,b=g[1][0]-g[2][0];y?d.x<e?g[2][0]=a+f.edgeDistance+w+f.labelDistance:g[2][0]=a+o-f.edgeDistance-w-f.labelDistance:(d.x<e?g[2][0]=d.x+f.labelDistance:g[2][0]=d.x-f.labelDistance,g[1][0]=g[2][0]+b),g[1][1]=g[2][1]=d.y}}}function DM(n,e,t){if(t===void 0&&(t=!1),n.labelStyleWidth==null){var i=n.label,o=i.style,r=n.rect,a=o.backgroundColor,s=o.padding,l=s?s[1]+s[3]:0,u=o.overflow,c=r.width+(a?0:l);if(e<c||t){var h=r.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=e-l,f=e<c?d:t?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();r.width=g.width;var v=(i.style.margin||0)+2.1;r.height=g.height+v,r.y-=(r.height-h)/2}}}function Ng(n){return n.position==="center"}function D3(n){var e=n.getData(),t=[],i,o,r=!1,a=(n.get("minShowLabelAngle")||0)*I3,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function d(b){b.ignore=!0}function f(b){if(!b.ignore)return!0;for(var S in b.states)if(b.states[S].ignore===!1)return!0;return!1}e.each(function(b){var S=e.getItemGraphicEl(b),M=S.shape,I=S.getTextContent(),D=S.getTextGuideLine(),T=e.getItemModel(b),A=T.getModel("label"),k=A.get("position")||T.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),N=A.get("alignTo"),E=H(A.get("edgeDistance"),u),V=A.get("bleedMargin"),O=T.getModel("labelLine"),z=O.get("length");z=H(z,u);var F=O.get("length2");if(F=H(F,u),Math.abs(M.endAngle-M.startAngle)<a){C(I.states,d),I.ignore=!0,D&&(C(D.states,d),D.ignore=!0);return}if(f(I)){var W=(M.startAngle+M.endAngle)/2,Z=Math.cos(W),Q=Math.sin(W),tt,ft,_t,gt;i=M.cx,o=M.cy;var nt=k==="inside"||k==="inner";if(k==="center")tt=M.cx,ft=M.cy,gt="center";else{var vt=(nt?(M.r+M.r0)/2*Z:M.r*Z)+i,st=(nt?(M.r+M.r0)/2*Q:M.r*Q)+o;if(tt=vt+Z*3,ft=st+Q*3,!nt){var q=vt+Z*(z+l-M.r),lt=st+Q*(z+l-M.r),Gt=q+(Z<0?-1:1)*F,wt=lt;N==="edge"?tt=Z<0?c+E:c+u-E:tt=Gt+(Z<0?-L:L),ft=wt,_t=[[vt,st],[q,lt],[Gt,wt]]}gt=nt?"center":N==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Xt=Math.PI,Wt=0,ve=A.get("rotate");if(Ct(ve))Wt=ve*(Xt/180);else if(k==="center")Wt=0;else if(ve==="radial"||ve===!0){var ei=Z<0?-W+Xt:-W;Wt=ei}else if(ve==="tangential"&&k!=="outside"&&k!=="outer"){var Le=Math.atan2(Z,Q);Le<0&&(Le=Xt*2+Le);var Pl=Q>0;Pl&&(Le=Xt+Le),Wt=Le-Xt}if(r=!!Wt,I.x=tt,I.y=ft,I.rotation=Wt,I.setStyle({verticalAlign:"middle"}),nt){I.setStyle({align:gt});var Ir=I.states.select;Ir&&(Ir.x+=I.x,Ir.y+=I.y)}else{var Ba=I.getBoundingRect().clone();Ba.applyTransform(I.getComputedTransform());var mm=(I.style.margin||0)+2.1;Ba.y-=mm/2,Ba.height+=mm,t.push({label:I,labelLine:D,position:k,len:z,len2:F,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new ct(Z,Q),linePoints:_t,textAlign:gt,labelDistance:L,labelAlignTo:N,edgeDistance:E,bleedMargin:V,rect:Ba,unconstrainedWidth:Ba.width,labelStyleWidth:I.style.width})}S.setTextConfig({inside:nt})}}),!r&&n.get("avoidLabelOverlap")&&C3(t,i,o,l,u,p,c,h);for(var g=0;g<t.length;g++){var v=t[g],y=v.label,m=v.labelLine,x=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),x&&(C(y.states,d),y.ignore=!0);var _=y.states.select;_&&(_.x+=y.x,_.y+=y.y)}if(m){var w=v.linePoints;x||!w?(C(m.states,d),m.ignore=!0):(fS(w,v.minTurnAngle),Gz(w,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new ct(w[0][0],w[0][1])})}}}var T3=function(n){P(e,n);function e(t,i,o){var r=n.call(this)||this;r.z2=2;var a=new Dt;return r.setTextContent(a),r.updateData(t,i,o,!0),r}return e.prototype.updateData=function(t,i,o,r){var a=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),c=t.getItemLayout(i),h=R(cr(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){a.setShape(h);return}if(r){a.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(Bt(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):p==="scale"?(a.shape.r=c.r0,Bt(a,{shape:{r:c.r}},s,i)):o!=null?(a.setShape({startAngle:o,endAngle:o}),Bt(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(a.shape.endAngle=c.startAngle,Tt(a,{shape:{endAngle:c.endAngle}},s,i))}else Mn(a),Tt(a,{shape:h},s,i);a.useStyle(t.getItemVisual(i,"style")),pe(a,l);var d=(c.startAngle+c.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(d)*f,v=Math.sin(d)*f,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,t,i),a.ensureState("emphasis").shape=R({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},cr(u.getModel("itemStyle"),c)),R(a.ensureState("select"),{x:g,y:v,shape:cr(l.getModel(["select","itemStyle"]),c)}),R(a.ensureState("blur"),{shape:cr(l.getModel(["blur","itemStyle"]),c)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&R(m.ensureState("select"),{x:g,y:v}),R(x.ensureState("select"),{x:g,y:v}),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,o){var r=this,a=i.getItemModel(o),s=a.getModel("labelLine"),l=i.getItemVisual(o,"style"),u=l&&l.fill,c=l&&l.opacity;de(r,re(a),{labelFetcher:i.hostModel,labelDataIndex:o,inheritColor:u,defaultOpacity:c,defaultText:t.getFormattedLabel(o,"normal")||i.getName(o)});var h=r.getTextContent();r.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=t.get(["label","position"]);if(p!=="outside"&&p!=="outer")r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new ze,this.setTextGuideLine(d)),pg(this,dg(a),{stroke:u,opacity:Ze(s.get(["lineStyle","opacity"]),c,1)})}},e}(Ve),A3=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o,r){var a=t.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<a.count();++h)c=a.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&t.get("showEmptyCircle")){var p=new Ve({shape:IM(t,o)});p.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}a.diff(s).add(function(d){var f=new T3(a,d,u);a.setItemGraphicEl(d,f),l.add(f)}).update(function(d,f){var g=s.getItemGraphicEl(f);g.updateData(a,d,u),g.off("click"),l.add(g),a.setItemGraphicEl(d,g)}).remove(function(d){var f=s.getItemGraphicEl(d);ys(f,t,d)}).execute(),D3(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="pie",e}(Vt);const k3=A3;function xa(n,e,t){e=B(e)&&{coordDimensions:e}||R({encodeDefine:n.getEncode()},e);var i=n.getSource(),o=Xs(i,e).dimensions,r=new Te(o,n);return r.initData(i,t),r}var L3=function(){function n(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return n.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},n.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},n.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},n.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},n}();const al=L3;var N3=Mt(),E3=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new al(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xa(this,{coordDimensions:["value"],encodeDefaulter:at(rf,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),o=N3(i),r=o.seats;if(!r){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),r=o.seats=zL(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,t);return s.percent=r[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){So(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Ft);const O3=E3;function P3(n){return{seriesType:n,reset:function(e,t){var i=e.getData();i.filterSelf(function(o){var r=i.mapDimension("value"),a=i.get(r,o);return!(Ct(a)&&!isNaN(a)&&a<0)})}}}function V3(n){n.registerChartView(k3),n.registerSeriesModel(O3),Lb("pie",n.registerAction),n.registerLayout(at(M3,"pie")),n.registerProcessor(rl("pie")),n.registerProcessor(P3("pie"))}var R3=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return yi(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(Ft);const z3=R3;var TM=4,B3=function(){function n(){}return n}(),G3=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new B3},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,i){var o=i.points,r=i.size,a=this.symbolProxy,s=a.shape,l=t.getContext?t.getContext():t,u=l&&r[0]<TM,c=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<o.length;){var p=o[h++],d=o[h++];isNaN(p)||isNaN(d)||c&&!c.contain(p,d)||(s.x=p-r[0]/2,s.y=d-r[1]/2,s.width=r[0],s.height=r[1],a.buildPath(t,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,o=t.size,r=this._ctx,a=this.softClipShape,s;if(r){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||r.fillRect(l-o[0]/2,u-o[1]/2,o[0],o[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var o=this.shape,r=o.points,a=o.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=r.length/2-1;u>=0;u--){var c=u*2,h=r[c]-s/2,p=r[c+1]-l/2;if(t>=h&&i>=p&&t<=h+s&&i<=p+l)return u}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.points,r=i.size,a=r[0],s=r[1],l=1/0,u=1/0,c=-1/0,h=-1/0,p=0;p<o.length;){var d=o[p++],f=o[p++];l=Math.min(d,l),c=Math.max(d,c),u=Math.min(f,u),h=Math.max(f,h)}t=this._rect=new pt(l-a/2,u-s/2,c-l+a,h-u+s)}return t},e}(mt),F3=function(){function n(){this.group=new ot}return n.prototype.updateData=function(e,t){this._clear();var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},n.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var o=(i.endIndex-i.startIndex)*2,r=i.startIndex*4*2;t=new Float32Array(t.buffer,r,o)}i.setShape("points",t),i.reset()})},n.prototype.incrementalPrepareUpdate=function(e){this._clear()},n.prototype.incrementalUpdate=function(e,t,i){var o=this._newAdded[0],r=t.getLayout("points"),a=o&&o.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+r.length);l.set(a),l.set(r,s),o.endIndex=e.end,o.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:r}),this._setCommon(u,t,i)}},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new G3({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},n.prototype._setCommon=function(e,t,i){var o=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=ee(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<TM;e.useStyle(o.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=rt(e);u.seriesIndex=o.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var h=e.hoverDataIdx;h>=0&&(u.dataIndex=h+(e.startIndex||0))})},n.prototype.remove=function(){this._clear()},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const H3=F3;var W3=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.updateData(r,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateSymbolDraw(r,t);a.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._symbolDraw.incrementalUpdate(t,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,o){var r=t.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var a=ol("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,o=i&&i.getArea&&i.getArea();return t.get("clip",!0)?o:null},e.prototype._updateSymbolDraw=function(t,i){var o=this._symbolDraw,r=i.pipelineContext,a=r.large;return(!o||a!==this._isLargeDraw)&&(o&&o.remove(),o=this._symbolDraw=a?new H3:new il,this._isLargeDraw=a,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Vt);const U3=W3;var Y3=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(bt);const X3=Y3;var Eg=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Qt).models[0]},e.type="cartesian2dAxis",e}(bt);$t(Eg,qs);var AM={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Z3=ht({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},AM),Og=ht({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},AM),j3=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Og),q3=et({logBase:10},Og);const kM={category:Z3,value:Og,time:j3,log:q3};var $3={value:1,category:1,time:1,log:1};function _a(n,e,t,i){C($3,function(o,r){var a=ht(ht({},kM[r],!0),i,!0),s=function(l){P(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+r,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var p=Cs(this),d=p?ta(c):{},f=h.getTheme();ht(c,f.get(r+"Axis")),ht(c,this.getDefaultOption()),c.type=LM(c),p&&Ui(c,d,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=tg.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+r,u.defaultOption=a,u}(t);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(e+"Axis",LM)}function LM(n){return n.type||(n.data?"category":"value")}var K3=function(){function n(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return n.prototype.getAxis=function(e){return this._axes[e]},n.prototype.getAxes=function(){return G(this._dimList,function(e){return this._axes[e]},this)},n.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Lt(this.getAxes(),function(t){return t.scale.type===e})},n.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},n}();const J3=K3;var Pg=["x","y"];function NM(n){return n.type==="interval"||n.type==="time"}var Q3=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Pg,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!NM(t)||!NM(i))){var o=t.getExtent(),r=i.getExtent(),a=this.dataToPoint([o[0],r[0]]),s=this.dataToPoint([o[1],r[1]]),l=o[1]-o[0],u=r[1]-r[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,h=(s[1]-a[1])/u,p=a[0]-o[0]*c,d=a[1]-r[0]*h,f=this._transform=[c,0,0,h,p,d];this._invTransform=kr([],f)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),o=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var o=this.dataToPoint(t),r=this.dataToPoint(i),a=this.getArea(),s=new pt(o[0],o[1],r[0]-o[0],r[1]-o[1]);return a.intersect(s)},e.prototype.dataToPoint=function(t,i,o){o=o||[];var r=t[0],a=t[1];if(this._transform&&r!=null&&isFinite(r)&&a!=null&&isFinite(a))return ce(o,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return o[0]=s.toGlobalCoord(s.dataToCoord(r,i)),o[1]=l.toGlobalCoord(l.dataToCoord(a,i)),o},e.prototype.clampData=function(t,i){var o=this.getAxis("x").scale,r=this.getAxis("y").scale,a=o.getExtent(),s=r.getExtent(),l=o.parse(t[0]),u=r.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i){var o=[];if(this._invTransform)return ce(o,t,this._invTransform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.coordToData(r.toLocalCoord(t[0]),i),o[1]=a.coordToData(a.toLocalCoord(t[1]),i),o},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(t[0],t[1]),r=Math.min(i[0],i[1]),a=Math.max(t[0],t[1])-o,s=Math.max(i[0],i[1])-r;return new pt(o,r,a,s)},e}(J3),tB=function(n){P(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.index=0,s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(An);const eB=tB;function Vg(n,e,t){t=t||{};var i=n.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,f=u==="x"?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=[u==="y"?f[p[l]]:h[0],u==="x"?f[p[l]]:h[3]],r.rotation=Math.PI/2*(u==="x"?0:1);var v={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=v[s],r.labelOffset=a?f[p[s]]-f[p.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),Kt(t.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var y=e.get(["axisLabel","rotate"]);return r.labelRotate=l==="top"?-y:y,r.z2=1,r}function EM(n){return n.get("coordinateSystem")==="cartesian2d"}function OM(n){var e={xAxisModel:null,yAxisModel:null};return C(e,function(t,i){var o=i.replace(/Model$/,""),r=n.getReferringComponents(o,Qt).models[0];if(process.env.NODE_ENV!=="production"&&!r)throw new Error(o+' "'+Ze(n.get(o+"Index"),n.get(o+"Id"),0)+'" not found');e[i]=r}),e}var Rg=Math.log;function PM(n,e,t){var i=$i.prototype,o=i.getTicks.call(t),r=i.getTicks.call(t,!0),a=o.length-1,s=i.getInterval.call(t),l=qw(n,e),u=l.extent,c=l.fixMin,h=l.fixMax;if(n.type==="log"){var p=Rg(n.base);u=[Rg(u[0])/p,Rg(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:h});var d=i.getExtent.call(n);c&&(u[0]=d[0]),h&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],v=u[1];if(c&&h)f=(v-g)/a;else if(c)for(v=u[0]+f*a;v<u[1]&&isFinite(v)&&isFinite(u[1]);)f=ng(f),v=u[0]+f*a;else if(h)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=ng(f),g=u[1]-f*a;else{var y=n.getTicks().length-1;y>a&&(f=ng(f));var m=f*a;v=Math.ceil(u[1]/f)*f,g=Zt(v-m),g<0&&u[0]>=0?(g=0,v=Zt(m)):v>0&&u[1]<=0&&(v=0,g=-Zt(m))}var x=(o[0].value-r[0].value)/s,_=(o[a].value-r[a].value)/s;if(i.setExtent.call(n,g+f*x,v+f*_),i.setInterval.call(n,f),(x||_)&&i.setNiceExtent.call(n,g+f,v-f),process.env.NODE_ENV!=="production"){var w=i.getTicks.call(n);w[1]&&(!YR(f)||Qp(w[1].value)>Qp(f))&&Ht("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var nB=function(){function n(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Pg,this._initCartesian(e,t,i),this.model=e}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(e,t){var i=this._axesMap;this._updateScale(e,this.model);function o(a){var s,l=xt(a),u=l.length;if(u){for(var c=[],h=u-1;h>=0;h--){var p=+l[h],d=a[p],f=d.model,g=d.scale;eg(g)&&f.get("alignTicks")&&f.get("interval")==null?c.push(d):(va(g,f),eg(g)&&(s=d))}c.length&&(s||(s=c.pop(),va(s.scale,s.model)),C(c,function(v){PM(v.scale,v.model,s.scale)}))}}o(i.x),o(i.y);var r={};C(i.x,function(a){VM(i,"y",a,r)}),C(i.y,function(a){VM(i,"x",a,r)}),this.resize(this.model,t)},n.prototype.resize=function(e,t,i){var o=e.getBoxLayoutParams(),r=!i&&e.get("containLabel"),a=ie(o,{width:t.getWidth(),height:t.getHeight()});this._rect=a;var s=this._axesList;l(),r&&(C(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=vz(u);if(c){var h=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[h]-=c[h]+p,u.position==="top"?a.y+=c.height+p:u.position==="left"&&(a.x+=c.width+p)}}}),l()),C(this._coordsList,function(u){u.calcAffineTransform()});function l(){C(s,function(u){var c=u.isHorizontal(),h=c?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(h[p],h[1-p]),iB(u,c?a.x:a.y)})}},n.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}K(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var o=0,r=this._coordsList;o<r.length;o++)if(r[o].getAxis("x").index===e||r[o].getAxis("y").index===t)return r[o]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.dataToPoint(i):o.axis?o.axis.toGlobalCoord(o.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(e,t,i){var o=this._findConvertTarget(t);return o.cartesian?o.cartesian.pointToData(i):o.axis?o.axis.coordToData(o.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",Qt).models[0],o=e.yAxisModel||t&&t.getReferringComponents("yAxis",Qt).models[0],r=e.gridModel,a=this._coordsList,s,l;if(t)s=t.coordinateSystem,dt(a,s)<0&&(s=null);else if(i&&o)s=this.getCartesian(i.componentIndex,o.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(o)l=this.getAxis("y",o.componentIndex);else if(r){var u=r.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},n.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},n.prototype._initCartesian=function(e,t,i){var o=this,r=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,h){C(s.y,function(p,d){var f="x"+h+"y"+d,g=new Q3(f);g.master=o,g.model=e,o._coordsMap[f]=g,o._coordsList.push(g),g.addAxis(c),g.addAxis(p)})});function u(c){return function(h,p){if(zg(h,e)){var d=h.get("position");c==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var f=new eB(c,Vc(h),[0,0],h.get("type"),d),g=f.type==="category";f.onBand=g&&h.get("boundaryGap"),f.inverse=h.get("inverse"),h.axis=f,f.model=h,f.grid=r,f.index=p,r._axesList.push(f),s[c][p]=f,l[c]++}}}},n.prototype._updateScale=function(e,t){C(this._axesList,function(o){if(o.scale.setExtent(1/0,-1/0),o.type==="category"){var r=o.model.get("categorySortInfo");o.scale.setSortInfo(r)}}),e.eachSeries(function(o){if(EM(o)){var r=OM(o),a=r.xAxisModel,s=r.yAxisModel;if(!zg(a,t)||!zg(s,t))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=o.getData(),c=l.getAxis("x"),h=l.getAxis("y");i(u,c),i(u,h)}},this);function i(o,r){C(Rc(o,r.dim),function(a){r.scale.unionExtentFromData(o,a)})}},n.prototype.getTooltipAxes=function(e){var t=[],i=[];return C(this.getCartesians(),function(o){var r=e!=null&&e!=="auto"?o.getAxis(e):o.getBaseAxis(),a=o.getOtherAxis(r);dt(t,r)<0&&t.push(r),dt(i,a)<0&&i.push(a)}),{baseAxes:t,otherAxes:i}},n.create=function(e,t){var i=[];return e.eachComponent("grid",function(o,r){var a=new n(o,e,t);a.name="grid_"+r,a.resize(o,t,!0),o.coordinateSystem=a,i.push(a)}),e.eachSeries(function(o){if(EM(o)){var r=OM(o),a=r.xAxisModel,s=r.yAxisModel,l=a.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ze(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;o.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=Pg,n}();function zg(n,e){return n.getCoordSysModel()===e}function VM(n,e,t,i){t.getAxesOnZeroOf=function(){return r?[r]:[]};var o=n[e],r,a=t.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)RM(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&RM(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0);function c(h){return h.dim+"_"+h.index}}function RM(n){return n&&n.type!=="category"&&n.type!=="time"&&gz(n)}function iB(n,e){var t=n.getExtent(),i=t[0]+t[1];n.toGlobalCoord=n.dim==="x"?function(o){return o+e}:function(o){return i-o+e},n.toLocalCoord=n.dim==="x"?function(o){return o-e}:function(o){return i-o+e}}const oB=nB;var to=Math.PI,hr=function(){function n(e,t){this.group=new ot,this.opt=t,this.axisModel=e,et(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new ot({x:t.position[0],y:t.position[1],rotation:t.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(e){return!!zM[e]},n.prototype.add=function(e){zM[e](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(e,t,i){var o=z0(t-e),r,a;return vu(o)?(a=i>0?"top":"bottom",r="center"):vu(o-to)?(a=i>0?"bottom":"top",r="center"):(a="middle",o>0&&o<to?r=i>0?"right":"left":r=i>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:a}},n.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},n.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},n}(),zM={axisLine:function(n,e,t,i){var o=e.get(["axisLine","show"]);if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisLine")),!!o){var r=e.axis.getExtent(),a=i.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(ce(s,s,a),ce(l,l,a));var c=R({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ue({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});Zr(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var p=e.get(["axisLine","symbol"]);if(p!=null){var d=e.get(["axisLine","symbolSize"]);U(p)&&(p=[p,p]),(U(d)||Ct(d))&&(d=[d,d]);var f=Ko(e.get(["axisLine","symbolOffset"])||0,d),g=d[0],v=d[1];C([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(p[m]!=="none"&&p[m]!=null){var x=ee(p[m],-g/2,-v/2,g,v,c.stroke,!0),_=y.r+y.offset,w=u?l:s;x.attr({rotation:y.rotate,x:w[0]+_*Math.cos(n.rotation),y:w[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),t.add(x)}})}}},axisTickLabel:function(n,e,t,i){var o=sB(t,i,e,n),r=uB(t,i,e,n);if(aB(e,r,o),lB(t,i,e,n.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=vS(G(r,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));xS(a)}},axisName:function(n,e,t,i){var o=Kt(n.axisName,e.get("name"));if(o){var r=e.get("nameLocation"),a=n.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,h=[r==="start"?u[0]-c*l:r==="end"?u[1]+c*l:(u[0]+u[1])/2,GM(r)?n.labelOffset+a*l:0],p,d=e.get("nameRotate");d!=null&&(d=d*to/180);var f;GM(r)?p=hr.innerTextLayout(n.rotation,d??n.rotation,a):(p=rB(n.rotation,r,d||0,u),f=n.axisNameAvailableWidth,f!=null&&(f=Math.abs(f/Math.sin(p.rotation)),!isFinite(f)&&(f=null)));var g=s.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=Kt(n.nameTruncateMaxWidth,v.maxWidth,f),x=new Dt({x:h[0],y:h[1],rotation:p.rotation,silent:hr.isLabelSilent(e),style:Ot(s,{text:o,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||p.textAlign,verticalAlign:s.get("verticalAlign")||p.textVerticalAlign}),z2:1});if(jr({el:x,componentModel:e,itemName:o}),x.__fullText=o,x.anid="name",e.get("triggerEvent")){var _=hr.makeAxisEventDataBase(e);_.targetType="axisName",_.name=o,rt(x).eventData=_}i.add(x),x.updateTransform(),t.add(x),x.decomposeTransform()}}};function rB(n,e,t,i){var o=z0(t-n),r,a,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return vu(o-to/2)?(a=l?"bottom":"top",r="center"):vu(o-to*1.5)?(a=l?"top":"bottom",r="center"):(a="middle",o<to*1.5&&o>to/2?r=l?"left":"right":r=l?"right":"left"),{rotation:o,textAlign:r,textVerticalAlign:a}}function aB(n,e,t){if(!$w(n.axis)){var i=n.get(["axisLabel","showMinLabel"]),o=n.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var r=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],c=t[1],h=t[t.length-1],p=t[t.length-2];i===!1?(cn(r),cn(u)):BM(r,a)&&(i?(cn(a),cn(c)):(cn(r),cn(u))),o===!1?(cn(s),cn(h)):BM(l,s)&&(o?(cn(l),cn(p)):(cn(s),cn(h)))}}function cn(n){n&&(n.ignore=!0)}function BM(n,e){var t=n&&n.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(!(!t||!i)){var o=Xl([]);return go(o,o,-n.rotation),t.applyTransform(oi([],o,n.getLocalTransform())),i.applyTransform(oi([],o,e.getLocalTransform())),t.intersect(i)}}function GM(n){return n==="middle"||n==="center"}function FM(n,e,t,i,o){for(var r=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=t,e&&(ce(a,a,e),ce(s,s,e));var c=new ue({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Zr(c.shape,c.style.lineWidth),c.anid=o+"_"+n[l].tickValue,r.push(c)}return r}function sB(n,e,t,i){var o=t.axis,r=t.getModel("axisTick"),a=r.get("show");if(a==="auto"&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),!(!a||o.scale.isBlank())){for(var s=r.getModel("lineStyle"),l=i.tickDirection*r.get("length"),u=o.getTicksCoords(),c=FM(u,e.transform,l,et(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)n.add(c[h]);return c}}function lB(n,e,t,i){var o=t.axis,r=t.getModel("minorTick");if(!(!r.get("show")||o.scale.isBlank())){var a=o.getMinorTicksCoords();if(a.length)for(var s=r.getModel("lineStyle"),l=i*r.get("length"),u=et(s.getLineStyle(),et(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var h=FM(a[c],e.transform,l,u,"minorticks_"+c),p=0;p<h.length;p++)n.add(h[p])}}function uB(n,e,t,i){var o=t.axis,r=Kt(i.axisLabelShow,t.get(["axisLabel","show"]));if(!(!r||o.scale.isBlank())){var a=t.getModel("axisLabel"),s=a.get("margin"),l=o.getViewLabels(),u=(Kt(i.labelRotate,a.get("rotate"))||0)*to/180,c=hr.innerTextLayout(i.rotation,u,i.labelDirection),h=t.getCategories&&t.getCategories(!0),p=[],d=hr.isLabelSilent(t),f=t.get("triggerEvent");return C(l,function(g,v){var y=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,x=g.rawLabel,_=a;if(h&&h[y]){var w=h[y];K(w)&&w.textStyle&&(_=new Pt(w.textStyle,a,t.ecModel))}var b=_.getTextColor()||t.get(["axisLine","lineStyle","color"]),S=o.dataToCoord(y),M=new Dt({x:S,y:i.labelOffset+i.labelDirection*s,rotation:c.rotation,silent:d,z2:10+(g.level||0),style:Ot(_,{text:m,align:_.getShallow("align",!0)||c.textAlign,verticalAlign:_.getShallow("verticalAlign",!0)||_.getShallow("baseline",!0)||c.textVerticalAlign,fill:$(b)?b(o.type==="category"?x:o.type==="value"?y+"":y,v):b})});if(M.anid="label_"+y,f){var I=hr.makeAxisEventDataBase(t);I.targetType="axisLabel",I.value=x,I.tickIndex=v,o.type==="category"&&(I.dataIndex=y),rt(M).eventData=I}e.add(M),M.updateTransform(),p.push(M),n.add(M),M.decomposeTransform()}),p}}const xi=hr;function cB(n,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return hB(t,n,e),t.seriesInvolved&&dB(t,n),t}function hB(n,e,t){var i=e.getComponent("tooltip"),o=e.getComponent("axisPointer"),r=o.get("link",!0)||[],a=[];C(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=sl(s.model),u=n.coordSysAxesInfo[l]={};n.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",i);if(C(s.getAxes(),at(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",d=h.get(["axisPointer","type"])==="cross",f=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||d)&&C(f.baseAxes,at(g,d?"cross":!0,p)),d&&C(f.otherAxes,at(g,"cross",!1))}function g(v,y,m){var x=m.model.getModel("axisPointer",o),_=x.get("show");if(!(!_||_==="auto"&&!v&&!Fg(x))){y==null&&(y=x.get("triggerTooltip")),x=v?pB(m,h,o,e,v,y):x;var w=x.get("snap"),b=x.get("triggerEmphasis"),S=sl(m.model),M=y||w||m.type==="category",I=n.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:x,triggerTooltip:y,triggerEmphasis:b,involveSeries:M,snap:w,useHandle:Fg(x),seriesModels:[],linkGroup:null};u[S]=I,n.seriesInvolved=n.seriesInvolved||M;var D=fB(r,m);if(D!=null){var T=a[D]||(a[D]={axesInfo:{}});T.axesInfo[S]=I,T.mapper=r[D].mapper,I.linkGroup=T}}}})}function pB(n,e,t,i,o,r){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(p){l[p]=it(a.get(p))}),l.snap=n.type!=="category"&&!!r,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),o==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!r){var h=l.lineStyle=a.get("crossStyle");h&&et(u,h.textStyle)}}return n.model.getModel("axisPointer",new Pt(l,t,i))}function dB(n,e){e.eachSeries(function(t){var i=t.coordinateSystem,o=t.get(["tooltip","trigger"],!0),r=t.get(["tooltip","show"],!0);!i||o==="none"||o===!1||o==="item"||r===!1||t.get(["axisPointer","show"],!0)===!1||C(n.coordSysAxesInfo[sl(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(t),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=t.getData().count())})})}function fB(n,e){for(var t=e.model,i=e.dim,o=0;o<n.length;o++){var r=n[o]||{};if(Bg(r[i+"AxisId"],t.id)||Bg(r[i+"AxisIndex"],t.componentIndex)||Bg(r[i+"AxisName"],t.name))return o}}function Bg(n,e){return n==="all"||B(n)&&dt(n,e)>=0||n===e}function gB(n){var e=Gg(n);if(e){var t=e.axisPointerModel,i=e.axis.scale,o=t.option,r=t.get("status"),a=t.get("value");a!=null&&(a=i.parse(a));var s=Fg(t);r==null&&(o.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),o.value=a,s&&(o.status=e.axis.scale.isBlank()?"hide":"show")}}function Gg(n){var e=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[sl(n)]}function vB(n){var e=Gg(n);return e&&e.axisPointerModel}function Fg(n){return!!n.get(["handle","show"])}function sl(n){return n.type+"||"+n.id}var Hg={},yB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.axisPointerClass&&gB(t),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,o,!0)},e.prototype.updateAxisPointer=function(t,i,o,r){this._doUpdateAxisPointerClass(t,o,!1)},e.prototype.remove=function(t,i){var o=this._axisPointer;o&&o.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,o){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var a=vB(t);a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,i,o):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){if(process.env.NODE_ENV!=="production"&&Hg[t])throw new Error("axisPointer "+t+" exists");Hg[t]=i},e.getAxisPointerClass=function(t){return t&&Hg[t]},e.type="axis",e}(Yt);const pr=yB;var Wg=Mt();function HM(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitArea"),a=r.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:r,clamp:!0});if(u.length){var c=s.length,h=Wg(n).splitAreaColors,p=j(),d=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(g!=null){d=(g+(c-1)*f)%c;break}}var v=o.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=B(s)?s:[s];for(var f=1;f<u.length;f++){var m=o.toGlobalCoord(u[f].coord),x=void 0,_=void 0,w=void 0,b=void 0;o.isHorizontal()?(x=v,_=l.y,w=m-x,b=l.height,v=x+w):(x=l.x,_=v,w=l.width,b=m-_,v=_+b);var S=u[f-1].tickValue;S!=null&&p.set(S,d),e.add(new It({anid:S!=null?"area_"+S:null,shape:{x,y:_,width:w,height:b},style:et({fill:s[d]},y),autoBatch:!0,silent:!0})),d=(d+1)%c}Wg(n).splitAreaColors=p}}}function WM(n){Wg(n).splitAreaColors=null}var mB=["axisLine","axisTickLabel","axisName"],xB=["splitArea","splitLine","minorSplitLine"],UM=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,o,r){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Vg(s,t),u=new xi(t,R({handleAutoShown:function(h){for(var p=s.coordinateSystem.getCartesians(),d=0;d<p.length;d++)if(eg(p[d].getOtherAxis(t.axis).scale))return!0;return!1}},l));C(mB,u.add,u),this._axisGroup.add(u.getGroup()),C(xB,function(h){t.get([h,"show"])&&_B[h](this,this._axisGroup,t,s)},this);var c=r&&r.type==="changeAxisOrder"&&r.isInitSort;c||ms(a,this._axisGroup,t),n.prototype.render.call(this,t,i,o,r)}},e.prototype.remove=function(){WM(this)},e.type="cartesianAxis",e}(pr),_B={splitLine:function(n,e,t,i){var o=t.axis;if(!o.scale.isBlank()){var r=t.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=B(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=o.isHorizontal(),c=0,h=o.getTicksCoords({tickModel:r}),p=[],d=[],f=a.getLineStyle(),g=0;g<h.length;g++){var v=o.toGlobalCoord(h[g].coord);u?(p[0]=v,p[1]=l.y,d[0]=v,d[1]=l.y+l.height):(p[0]=l.x,p[1]=v,d[0]=l.x+l.width,d[1]=v);var y=c++%s.length,m=h[g].tickValue,x=new ue({anid:m!=null?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:et({stroke:s[y]},f),silent:!0});Zr(x.shape,f.lineWidth),e.add(x)}}},minorSplitLine:function(n,e,t,i){var o=t.axis,r=t.getModel("minorSplitLine"),a=r.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=o.getMinorTicksCoords();if(u.length)for(var c=[],h=[],p=a.getLineStyle(),d=0;d<u.length;d++)for(var f=0;f<u[d].length;f++){var g=o.toGlobalCoord(u[d][f].coord);l?(c[0]=g,c[1]=s.y,h[0]=g,h[1]=s.y+s.height):(c[0]=s.x,c[1]=g,h[0]=s.x+s.width,h[1]=g);var v=new ue({anid:"minor_line_"+u[d][f].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:p,silent:!0});Zr(v.shape,p.lineWidth),e.add(v)}},splitArea:function(n,e,t,i){HM(n,e,t,i)}},YM=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(UM),bB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=YM.type,t}return e.type="yAxis",e}(UM),wB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new It({shape:t.coordinateSystem.getRect(),style:et({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(Yt),XM={offset:0};function ZM(n){n.registerComponentView(wB),n.registerComponentModel(X3),n.registerCoordinateSystem("cartesian2d",oB),_a(n,"x",Eg,XM),_a(n,"y",Eg,XM),n.registerComponentView(YM),n.registerComponentView(bB),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function SB(n){yt(ZM),n.registerSeriesModel(z3),n.registerChartView(U3),n.registerLayout(ol("scatter"))}function MB(n){n.eachSeriesByType("radar",function(e){var t=e.getData(),i=[],o=e.coordinateSystem;if(o){var r=o.getIndicatorAxes();C(r,function(a,s){t.each(t.mapDimension(r[s].dim),function(l,u){i[u]=i[u]||[];var c=o.dataToPoint(l,s);i[u][s]=jM(c)?c:qM(o)})}),t.each(function(a){var s=lk(i[a],function(l){return jM(l)})||qM(o);i[a].push(s.slice()),t.setItemLayout(a,i[a])})}})}function jM(n){return!isNaN(n[0])&&!isNaN(n[1])}function qM(n){return[n.cx,n.cy]}function IB(n){var e=n.polar;if(e){B(e)||(e=[e]);var t=[];C(e,function(i,o){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],B(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):t.push(i)}),n.polar=t}C(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var CB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.coordinateSystem,a=this.group,s=t.getData(),l=this._data;function u(p,d){var f=p.getItemVisual(d,"symbol")||"circle";if(f!=="none"){var g=ca(p.getItemVisual(d,"symbolSize")),v=ee(f,-1,-1,2,2),y=p.getItemVisual(d,"symbolRotate")||0;return v.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),v}}function c(p,d,f,g,v,y){f.removeAll();for(var m=0;m<d.length-1;m++){var x=u(g,v);x&&(x.__dimIdx=m,p[m]?(x.setPosition(p[m]),bs[y?"initProps":"updateProps"](x,{x:d[m][0],y:d[m][1]},t,v)):x.setPosition(d[m]),f.add(x))}}function h(p){return G(p,function(d){return[r.cx,r.cy]})}s.diff(l).add(function(p){var d=s.getItemLayout(p);if(d){var f=new Re,g=new ze,v={shape:{points:d}};f.shape.points=h(d),g.shape.points=h(d),Bt(f,v,t,p),Bt(g,v,t,p);var y=new ot,m=new ot;y.add(g),y.add(f),y.add(m),c(g.shape.points,d,m,s,p,!0),s.setItemGraphicEl(p,y)}}).update(function(p,d){var f=l.getItemGraphicEl(d),g=f.childAt(0),v=f.childAt(1),y=f.childAt(2),m={shape:{points:s.getItemLayout(p)}};m.shape.points&&(c(g.shape.points,m.shape.points,y,s,p,!1),Mn(v),Mn(g),Tt(g,m,t),Tt(v,m,t),s.setItemGraphicEl(p,f))}).remove(function(p){a.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,d){var f=s.getItemModel(d),g=p.childAt(0),v=p.childAt(1),y=p.childAt(2),m=s.getItemVisual(d,"style"),x=m.fill;a.add(p),g.useStyle(et(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),pe(g,f,"lineStyle"),pe(v,f,"areaStyle");var _=f.getModel("areaStyle"),w=_.isEmpty()&&_.parentModel.isEmpty();v.ignore=w,C(["emphasis","select","blur"],function(M){var I=f.getModel([M,"areaStyle"]),D=I.isEmpty()&&I.parentModel.isEmpty();v.ensureState(M).ignore=D&&w}),v.useStyle(et(_.getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var b=f.getModel("emphasis"),S=b.getModel("itemStyle").getItemStyle();y.eachChild(function(M){if(M instanceof he){var I=M.style;M.useStyle(R({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},m))}else M.useStyle(m),M.setColor(x),M.style.strokeNoScale=!0;var D=M.ensureState("emphasis");D.style=it(S);var T=s.getStore().get(s.getDimensionIndex(M.__dimIdx),d);(T==null||isNaN(T))&&(T=""),de(M,re(f),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:M.__dimIdx,defaultText:T,inheritColor:x,defaultOpacity:m.opacity})}),Ut(p,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Vt);const DB=CB;var TB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new al(X(this.getData,this),X(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return xa(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,c=sb(this,t);return ae("section",{header:u,sortBlocks:!0,blocks:G(s,function(h){var p=r.get(r.mapDimension(h.dim),t);return ae("nameValue",{markerType:"subItem",markerColor:c,name:h.name,value:p,sortParam:p})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),o=this.coordinateSystem,r=i.getValues(G(o.dimensions,function(u){return i.mapDimension(u)}),t),a=0,s=r.length;a<s;a++)if(!isNaN(r[a])){var l=o.getIndicatorAxes();return o.coordToPoint(l[a].dataToCoord(r[a]),a)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(Ft);const AB=TB;var ll=kM.value;function Jc(n,e){return et({show:e},n)}var kB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),p=this.get("triggerEvent"),d=G(this.get("indicator")||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=et({color:f.color},l));var v=ht(it(f),{boundaryGap:t,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:g,triggerEvent:p},!1);if(U(c)){var y=v.name;v.name=c.replace("{value}",y??"")}else $(c)&&(v.name=c(v.name,v));var m=new Pt(v,null,this.ecModel);return $t(m,qs.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ht({lineStyle:{color:"#bbb"}},ll.axisLine),axisLabel:Jc(ll.axisLabel,!1),axisTick:Jc(ll.axisTick,!1),splitLine:Jc(ll.splitLine,!0),splitArea:Jc(ll.splitArea,!0),indicator:[]},e}(bt);const LB=kB;var NB=["axisLine","axisTickLabel","axisName"],EB=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes(),r=G(o,function(a){var s=a.model.get("showName")?a.name:"",l=new xi(a.model,{axisName:s,position:[i.cx,i.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});C(r,function(a){C(NB,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,o=i.getIndicatorAxes();if(!o.length)return;var r=t.get("shape"),a=t.getModel("splitLine"),s=t.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),h=s.get("show"),p=l.get("color"),d=u.get("color"),f=B(p)?p:[p],g=B(d)?d:[d],v=[],y=[];function m(N,E,V){var O=V%E.length;return N[O]=N[O]||[],O}if(r==="circle")for(var x=o[0].getTicksCoords(),_=i.cx,w=i.cy,b=0;b<x.length;b++){if(c){var S=m(v,f,b);v[S].push(new Wn({shape:{cx:_,cy:w,r:x[b].coord}}))}if(h&&b<x.length-1){var S=m(y,g,b);y[S].push(new Pu({shape:{cx:_,cy:w,r0:x[b].coord,r:x[b+1].coord}}))}}else for(var M,I=G(o,function(E,V){var O=E.getTicksCoords();return M=M==null?O.length-1:Math.min(O.length-1,M),G(O,function(z){return i.coordToPoint(z.coord,V)})}),D=[],b=0;b<=M;b++){for(var T=[],A=0;A<o.length;A++)T.push(I[A][b]);if(T[0]?T.push(T[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+b),c){var S=m(v,f,b);v[S].push(new ze({shape:{points:T}}))}if(h&&D){var S=m(y,g,b-1);y[S].push(new Re({shape:{points:T.concat(D)}}))}D=T.slice().reverse()}var k=l.getLineStyle(),L=u.getAreaStyle();C(y,function(N,E){this.group.add(nn(N,{style:et({stroke:"none",fill:g[E%g.length]},L),silent:!0}))},this),C(v,function(N,E){this.group.add(nn(N,{style:et({fill:"none",stroke:f[E%f.length]},k),silent:!0}))},this)},e.type="radar",e}(Yt);const OB=EB;var PB=function(n){P(e,n);function e(t,i,o){var r=n.call(this,t,i,o)||this;return r.type="value",r.angle=0,r.name="",r}return e}(An);const VB=PB;var RB=function(){function n(e,t,i){this.dimensions=[],this._model=e,this._indicatorAxes=G(e.getIndicatorModels(),function(o,r){var a="indicator_"+r,s=new VB(a,new $i);return s.name=o.get("name"),s.model=o,o.axis=s,this.dimensions.push(a),s},this),this.resize(e,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},n.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],o=i.angle,r=this.cx+e*Math.cos(o),a=this.cy-e*Math.sin(o);return[r,a]},n.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=Math.sqrt(t*t+i*i);t/=o,i/=o;for(var r=Math.atan2(-i,t),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],h=Math.abs(r-c.angle);h<a&&(s=c,l=u,a=h)}return[l,+(s&&s.coordToData(o))]},n.prototype.resize=function(e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight(),a=Math.min(o,r)/2;this.cx=H(i[0],o),this.cy=H(i[1],r),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(U(s)||Ct(s))&&(s=[0,s]),this.r0=H(s[0],a),this.r=H(s[1],a),C(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},n.prototype.update=function(e,t){var i=this._indicatorAxes,o=this._model;C(i,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==o)){var u=s.getData();C(i,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var r=o.get("splitNumber"),a=new $i;a.setExtent(0,r),a.setInterval(1),C(i,function(s,l){PM(s.scale,s.model,a)})},n.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.create=function(e,t){var i=[];return e.eachComponent("radar",function(o){var r=new n(o,e,t);i.push(r),o.coordinateSystem=r}),e.eachSeriesByType("radar",function(o){o.get("coordinateSystem")==="radar"&&(o.coordinateSystem=i[o.get("radarIndex")||0])}),i},n.dimensions=[],n}();const zB=RB;function BB(n){n.registerCoordinateSystem("radar",zB),n.registerComponentModel(LB),n.registerComponentView(OB),n.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function GB(n){yt(BB),n.registerChartView(DB),n.registerSeriesModel(AB),n.registerLayout(MB),n.registerProcessor(rl("radar")),n.registerPreprocessor(IB)}var $M="\0_ec_interaction_mutex";function FB(n,e,t){var i=Ug(n);i[e]=t}function HB(n,e,t){var i=Ug(n),o=i[e];o===t&&(i[e]=null)}function KM(n,e){return!!Ug(n)[e]}function Ug(n){return n[$M]||(n[$M]={})}Zn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},jt);var WB=function(n){P(e,n);function e(t){var i=n.call(this)||this;i._zr=t;var o=X(i._mousedownHandler,i),r=X(i._mousemoveHandler,i),a=X(i._mouseupHandler,i),s=X(i._mousewheelHandler,i),l=X(i._pinchHandler,i);return i.enable=function(u,c){this.disable(),this._opt=et(it(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",o),t.on("mousemove",r),t.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},i.disable=function(){t.off("mousedown",o),t.off("mousemove",r),t.off("mouseup",a),t.off("mousewheel",s),t.off("pinch",l)},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!zm(t)){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var o=t.offsetX,r=t.offsetY;this.pointerChecker&&this.pointerChecker(t,o,r)&&(this._x=o,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!Qc("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||KM(this._zr,"globalPan"))){var i=t.offsetX,o=t.offsetY,r=this._x,a=this._y,s=i-r,l=o-a;this._x=i,this._y=o,this._opt.preventDefaultMouseMove&&ii(t.event),JM(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:r,oldY:a,newX:i,newY:o,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){zm(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var i=Qc("zoomOnMouseWheel",t,this._opt),o=Qc("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,a=Math.abs(r),s=t.offsetX,l=t.offsetY;if(!(r===0||!i&&!o)){if(i){var u=a>3?1.4:a>1?1.2:1.1,c=r>0?u:1/u;Yg(this,"zoom","zoomOnMouseWheel",t,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(o){var h=Math.abs(r),p=(r>0?1:-1)*(h>3?.4:h>1?.15:.05);Yg(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:p,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!KM(this._zr,"globalPan")){var i=t.pinchScale>1?1.1:.9090909090909091;Yg(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(je);function Yg(n,e,t,i,o){n.pointerChecker&&n.pointerChecker(i,o.originX,o.originY)&&(ii(i.event),JM(n,e,t,i,o))}function JM(n,e,t,i,o){o.isAvailableBehavior=X(Qc,null,t,i),n.trigger(e,o)}function Qc(n,e,t){var i=t[n];return!n||i&&(!U(i)||e.event[i+"Key"])}const ul=WB;function Xg(n,e,t){var i=n.target;i.x+=e,i.y+=t,i.dirty()}function Zg(n,e,t,i){var o=n.target,r=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,o.x-=(t-o.x)*(u-1),o.y-=(i-o.y)*(u-1),o.scaleX*=u,o.scaleY*=u,o.dirty()}var UB={axisPointer:1,tooltip:1,brush:1};function th(n,e,t){var i=e.getComponentByElement(n.topTarget),o=i&&i.coordinateSystem;return i&&i!==t&&!UB.hasOwnProperty(i.mainType)&&o&&o.model!==t}function QM(n){if(U(n)){var e=new DOMParser;n=e.parseFromString(n,"text/xml")}var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var jg,eh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},tI=xt(eh),nh={"alignment-baseline":"textBaseline","stop-color":"stopColor"},eI=xt(nh),YB=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(e,t){t=t||{};var i=QM(e);if(process.env.NODE_ENV!=="production"&&!i)throw new Error("Illegal svg");this._defsUsePending=[];var o=new ot;this._root=o;var r=[],a=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Xe(i,o,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,o,r,null,!1,!1),u=u.nextSibling;jB(this._defs,this._defsUsePending),this._defsUsePending=[];var c,h;if(a){var p=ih(a);p.length>=4&&(c={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(c&&s!=null&&l!=null&&(h=uI(c,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var d=o;o=new ot,o.add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&o.setClipPath(new It({shape:{x:0,y:0,width:s,height:l}})),{root:o,width:s,height:l,viewBoxRect:c,viewBoxTransform:h,named:r}},n.prototype._parseNode=function(e,t,i,o,r,a){var s=e.nodeName.toLowerCase(),l,u=o;if(s==="defs"&&(r=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=t;else{if(!r){var c=jg[s];if(c&&Y(jg,s)){l=c.call(this,e,t);var h=e.getAttribute("name");if(h){var p={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(p),s==="g"&&(u=p)}else o&&i.push({name:o.name,namedFrom:o,svgNodeTagLower:s,el:l});t.add(l)}}var d=nI[s];if(d&&Y(nI,s)){var f=d.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=f)}}if(l&&l.isGroup)for(var v=e.firstChild;v;)v.nodeType===1?this._parseNode(v,l,i,u,r,a):v.nodeType===3&&a&&this._parseText(v,l),v=v.nextSibling},n.prototype._parseText=function(e,t){var i=new ls({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),XB(i,t);var o=i.style,r=o.fontSize;r&&r<9&&(o.fontSize=9,i.scaleX*=r/9,i.scaleY*=r/9);var a=(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ");o.font=a;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},n.internalField=function(){jg={g:function(e,t){var i=new ot;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new It;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Wn;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new ue;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new Vd;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),o;i&&(o=rI(i));var r=new Re({shape:{points:o||[]},silent:!0});return hn(t,r),Xe(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var i=e.getAttribute("points"),o;i&&(o=rI(i));var r=new ze({shape:{points:o||[]},silent:!0});return hn(t,r),Xe(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var i=new he;return hn(t,i),Xe(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",o=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(r),this._textY=parseFloat(o)+parseFloat(a);var s=new ot;return hn(t,s),Xe(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),o=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),o!=null&&(this._textY=parseFloat(o));var r=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new ot;return hn(t,s),Xe(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(a),s},path:function(e,t){var i=e.getAttribute("d")||"",o=ax(i);return hn(t,o),Xe(e,o,this._defsUsePending,!1,!1),o.silent=!0,o}}}(),n}(),nI={lineargradient:function(n){var e=parseInt(n.getAttribute("x1")||"0",10),t=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),o=parseInt(n.getAttribute("y2")||"0",10),r=new vs(e,t,i,o);return iI(n,r),oI(n,r),r},radialgradient:function(n){var e=parseInt(n.getAttribute("cx")||"0",10),t=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),o=new bx(e,t,i);return iI(n,o),oI(n,o),o}};function iI(n,e){var t=n.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function oI(n,e){for(var t=n.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),o=void 0;i&&i.indexOf("%")>0?o=parseInt(i,10)/100:i?o=parseFloat(i):o=0;var r={};lI(t,r,r);var a=r.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:o,color:a})}t=t.nextSibling}}function hn(n,e){n&&n.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),et(e.__inheritedStyle,n.__inheritedStyle))}function rI(n){for(var e=ih(n),t=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);t.push([o,r])}return t}function Xe(n,e,t,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};n.nodeType===1&&(KB(n,e),lI(n,a,s),i||JB(n,a,s)),r.style=r.style||{},a.fill!=null&&(r.style.fill=aI(r,"fill",a.fill,t)),a.stroke!=null&&(r.style.stroke=aI(r,"stroke",a.stroke,t)),C(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(r.style[l]=parseFloat(a[l]))}),C(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(r.style[l]=a[l])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=G(ih(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(r.invisible=!0),a.display==="none"&&(r.ignore=!0)}function XB(n,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,o=i;!i||i==="auto"||i==="baseline"?o="alphabetic":i==="before-edge"||i==="text-before-edge"?o="top":i==="after-edge"||i==="text-after-edge"?o="bottom":(i==="central"||i==="mathematical")&&(o="middle"),n.style.textBaseline=o}var r=e.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&(a==="middle"&&(s="center"),n.style.textAlign=s)}}var ZB=/^url\(\s*#(.*?)\)/;function aI(n,e,t,i){var o=t&&t.match(ZB);if(o){var r=yn(o[1]);i.push([n,e,r]);return}return t==="none"&&(t=null),t}function jB(n,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=n[i[2]]}}var qB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ih(n){return n.match(qB)||[]}var $B=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,qg=Math.PI/180;function KB(n,e){var t=n.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],o=null;t.replace($B,function(h,p,d){return i.push(p,d),""});for(var r=i.length-1;r>0;r-=2){var a=i[r],s=i[r-1],l=ih(a);switch(o=o||$e(),s){case"translate":En(o,o,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":vp(o,o,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":go(o,o,-parseFloat(l[0])*qg);break;case"skewX":var u=Math.tan(parseFloat(l[0])*qg);oi(o,[1,0,u,1,0,0],o);break;case"skewY":var c=Math.tan(parseFloat(l[0])*qg);oi(o,[1,c,0,1,0,0],o);break;case"matrix":o[0]=parseFloat(l[0]),o[1]=parseFloat(l[1]),o[2]=parseFloat(l[2]),o[3]=parseFloat(l[3]),o[4]=parseFloat(l[4]),o[5]=parseFloat(l[5]);break}}e.setLocalTransform(o)}}var sI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function lI(n,e,t){var i=n.getAttribute("style");if(i){sI.lastIndex=0;for(var o;(o=sI.exec(i))!=null;){var r=o[1],a=Y(eh,r)?eh[r]:null;a&&(e[a]=o[2]);var s=Y(nh,r)?nh[r]:null;s&&(t[s]=o[2])}}}function JB(n,e,t){for(var i=0;i<tI.length;i++){var o=tI[i],r=n.getAttribute(o);r!=null&&(e[eh[o]]=r)}for(var i=0;i<eI.length;i++){var o=eI[i],r=n.getAttribute(o);r!=null&&(t[nh[o]]=r)}}function uI(n,e){var t=e.width/n.width,i=e.height/n.height,o=Math.min(t,i);return{scale:o,x:-(n.x+n.width/2)*o+(e.x+e.width/2),y:-(n.y+n.height/2)*o+(e.y+e.height/2)}}function QB(n,e){var t=new YB;return t.parse(n,e)}var tG=j(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),eG=function(){function n(e,t){this.type="geoSVG",this._usedGraphicMap=j(),this._freedGraphics=[],this._mapName=e,this._parsedXML=QM(t)}return n.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=iG(e.named),i=t.regions,o=t.regionsMap;this._regions=i,this._regionsMap=o}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(e){var t,i;try{t=e&&QB(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,J(i!=null)}catch(v){throw new Error(`Invalid svg format
|
|
57
|
+
`+v.message)}var o=new ot;o.add(i),o.isGeoSVGGraphicRoot=!0;var r=t.width,a=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,p=void 0;if(r!=null?(u=0,h=r):s&&(u=s.x,h=s.width),a!=null?(c=0,p=a):s&&(c=s.y,p=s.height),u==null||c==null){var d=i.getBoundingRect();u==null&&(u=d.x,h=d.width),c==null&&(c=d.y,p=d.height)}l=this._boundingRect=new pt(u,c,h,p)}if(s){var f=uI(s,l);i.scaleX=i.scaleY=f.scale,i.x=f.x,i.y=f.y}o.setClipPath(new It({shape:l.plain()}));var g=[];return C(t.named,function(v){tG.get(v.svgNodeTagLower)!=null&&(g.push(v),nG(v.el))}),{root:o,boundingRect:l,named:g}},n.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},n.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},n}();function nG(n){n.silent=!1,n.isGroup&&n.traverse(function(e){e.silent=!1})}function iG(n){var e=[],t=j();return C(n,function(i){if(i.namedFrom==null){var o=new wz(i.name,i.el);e.push(o),t.set(i.name,o)}}),{regions:e,regionsMap:t}}for(var $g=[126,25],cI="\u5357\u6D77\u8BF8\u5C9B",dr=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],fr=0;fr<dr.length;fr++)for(var ba=0;ba<dr[fr].length;ba++)dr[fr][ba][0]/=10.5,dr[fr][ba][1]/=-10.5/.75,dr[fr][ba][0]+=$g[0],dr[fr][ba][1]+=$g[1];function oG(n,e){if(n==="china"){for(var t=0;t<e.length;t++)if(e[t].name===cI)return;e.push(new nS(cI,G(dr,function(i){return{type:"polygon",exterior:i}}),$g))}}var rG={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function aG(n,e){if(n==="china"){var t=rG[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var sG=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function lG(n,e){n==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:sG[0]})}var uG="name",cG=function(){function n(e,t,i){this.type="geoJSON",this._parsedMap=j(),this._mapName=e,this._specialAreas=i,this._geoJSON=pG(t)}return n.prototype.load=function(e,t){t=t||uG;var i=this._parsedMap.get(t);if(!i){var o=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:o,boundingRect:hG(o)})}var r=j(),a=[];return C(i.regions,function(s){var l=s.name;e&&Y(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),r.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new pt(0,0,0,0),regionsMap:r}},n.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,o;try{o=i?Mz(i,e):[]}catch(r){throw new Error(`Invalid geoJson format
|
|
58
|
+
`+r.message)}return oG(t,o),C(o,function(r){var a=r.name;aG(t,r),lG(t,r);var s=this._specialAreas&&this._specialAreas[a];s&&r.transformTo(s.left,s.top,s.width,s.height)},this),o},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function hG(n){for(var e,t=0;t<n.length;t++){var i=n[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function pG(n){return U(n)?typeof JSON<"u"&&JSON.parse?JSON.parse(n):new Function("return ("+n+");")():n}var cl=j();const _i={registerMap:function(n,e,t){if(e.svg){var i=new eG(n,e.svg);cl.set(n,i)}else{var o=e.geoJson||e.geoJSON;o&&!e.features?t=e.specialAreas:o=e;var i=new cG(n,o,t);cl.set(n,i)}},getGeoResource:function(n){return cl.get(n)},getMapForUser:function(n){var e=cl.get(n);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(n,e,t){var i=cl.get(n);if(!i){process.env.NODE_ENV!=="production"&&console.error("Map "+n+" not exists. The GeoJSON of the map must be provided.");return}return i.load(e,t)}};var Kg=["rect","circle","line","ellipse","polygon","polyline","path"],dG=j(Kg),fG=j(Kg.concat(["g"])),gG=j(Kg.concat(["g"])),hI=Mt();function oh(n){var e=n.getItemStyle(),t=n.get("areaColor");return t!=null&&(e.fill=t),e}function pI(n){var e=n.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var vG=function(){function n(e){var t=new ot;this.uid=$r("ec_map_draw"),this._controller=new ul(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new ot),t.add(this._svgGroup=new ot)}return n.prototype.draw=function(e,t,i,o,r){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),p=h.raw,d=h.roam,f=!u.childAt(0)||r;f?(c.x=d.x,c.y=d.y,c.scaleX=d.scaleX,c.scaleY=d.scaleY,c.dirty()):Tt(c,d,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,v={api:i,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(v):l.resourceType==="geoSVG"&&this._buildSVG(v),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,o)},n.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=j(),i=j(),o=this._regionsGroup,r=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(d,f){return f&&(d=f(d)),d&&[d[0]*r.scaleX+r.x,d[1]*r.scaleY+r.y]}function h(d){for(var f=[],g=!u&&l&&l.project,v=0;v<d.length;++v){var y=c(d[v],g);y&&f.push(y)}return f}function p(d){return{shape:{points:h(d)}}}o.removeAll(),C(e.geo.regions,function(d){var f=d.name,g=t.get(f),v=i.get(f)||{},y=v.dataIdx,m=v.regionModel;g||(g=t.set(f,new ot),o.add(g),y=s?s.indexOfName(f):null,m=e.isGeo?a.getRegionModel(f):s?s.getItemModel(y):null,i.set(f,{dataIdx:y,regionModel:m}));var x=[],_=[];C(d.geometries,function(S){if(S.type==="polygon"){var M=[S.exterior].concat(S.interiors||[]);u&&(M=mI(M,u)),C(M,function(D){x.push(new Re(p(D)))})}else{var I=S.points;u&&(I=mI(I,u,!0)),C(I,function(D){_.push(new ze(p(D)))})}});var w=c(d.getCenter(),l&&l.project);function b(S,M){if(S.length){var I=new Bd({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});g.add(I),dI(e,I,y,m),fI(e,I,f,m,a,y,w),M&&(pI(I),C(I.states,pI))}}b(x),b(_,!0)}),t.each(function(d,f){var g=i.get(f),v=g.dataIdx,y=g.regionModel;gI(e,d,f,y,a,v),vI(e,d,f,y,a),yI(e,d,f,y,a)},this)},n.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var o=this._svgDispatcherMap=j(),r=!1;C(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,c=a.svgNodeTagLower,h=a.el,p=u?u.indexOfName(s):null,d=l.getRegionModel(s);if(dG.get(c)!=null&&h instanceof tn&&dI(e,h,p,d),h instanceof tn&&(h.culling=!0),h.z2EmphasisLift=0,!a.namedFrom&&(gG.get(c)!=null&&fI(e,h,s,d,l,p,null),gI(e,h,s,d,l,p),vI(e,h,s,d,l),fG.get(c)!=null)){var f=yI(e,h,s,d,l);f==="self"&&(r=!0);var g=o.get(s)||o.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(r,e)},n.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var i=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),o=i.opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){Vo(r);var a=r.ensureState("blur").style||{};a.opacity==null&&o!=null&&(a.opacity=o),r.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var o=this._regionsGroupByName;if(o){var r=o.get(e);return r?[r]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},n.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},n.prototype._useSVG=function(e){var t=_i.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},n.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=_i.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(e,t,i){var o=e.coordinateSystem,r=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=o.getZoom(),r.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}r.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Xg(a,u.dx,u.dy),i.dispatchAction(R(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),r.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Zg(a,u.scale,u.originX,u.originY),i.dispatchAction(R(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),r.setPointerChecker(function(u,c,h){return o.containPoint([c,h])&&!th(u,i,e)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=hI(t).ignore)})},n.prototype._updateMapSelectHandler=function(e,t,i,o){var r=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){r._mouseDownFlag=!0}),t.on("click",function(a){r._mouseDownFlag&&(r._mouseDownFlag=!1)}))},n}();function dI(n,e,t,i){var o=i.getModel("itemStyle"),r=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=oh(o),u=oh(r),c=oh(s),h=oh(a),p=n.data;if(p){var d=p.getItemVisual(t,"style"),f=p.getItemVisual(t,"decal");n.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=pa(f,n.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,Vo(e)}function fI(n,e,t,i,o,r,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),r)),c=s&&s.getItemLayout(r);if(l||u||c&&c.showLabel){var h=l?t:r,p=void 0;(!s||r>=0)&&(p=o);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;de(e,re(i),{labelFetcher:p,labelDataIndex:h,defaultText:t},d);var f=e.getTextContent();if(f&&(hI(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function gI(n,e,t,i,o,r){n.data?n.data.setItemGraphicEl(r,e):rt(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:t,region:i&&i.option||{}}}function vI(n,e,t,i,o){n.data||jr({el:e,componentModel:o,itemName:t,itemTooltipOption:i.get("tooltip")})}function yI(n,e,t,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var r=i.getModel("emphasis"),a=r.get("focus");return Ut(e,a,r.get("blurScope"),r.get("disabled")),n.isGeo&&vE(e,o,t),a}function mI(n,e,t){var i=[],o;function r(){o=[]}function a(){o.length&&(i.push(o),o=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&o.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),C(n,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}const xI=vG;var yG=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){if(!(r&&r.type==="mapToggleSelect"&&r.from===this.uid)){var a=this.group;if(a.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&r&&r.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),r&&r.type==="geoRoam"&&r.componentType==="series"&&r.seriesId===t.id){var s=this._mapDraw;s&&a.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new xI(o);a.add(s.group),s.draw(t,i,o,this,r),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t,i,o)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,i,o){var r=t.originalData,a=this.group;r.each(r.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=r.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,h=u.offset,p=new Wn({style:{fill:t.getData().getVisual("style").fill},shape:{cx:c[0]+h*9,cy:c[1],r:3},silent:!0,z2:8+(h?0:Fr+1)});if(!h){var d=t.mainSeries.getData(),f=r.getName(l),g=d.indexOfName(f),v=r.getItemModel(l),y=v.getModel("label"),m=d.getItemGraphicEl(g);de(p,re(v),{labelFetcher:{getFormattedLabel:function(x,_){return t.getFormattedLabel(g,_)}},defaultText:f}),p.disableLabelAnimation=!0,y.get("position")||p.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(x){Lu(p,x)}}a.add(p)}}})},e.type="map",e}(Vt);const mG=yG;var xG=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(i){if(i!=null){var o=this.getData().getName(i),r=this.coordinateSystem,a=r.getRegion(o);return a&&r.dataToPoint(a.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=xa(this,{coordDimensions:["value"],encodeDefaulter:at(rf,this)}),o=j(),r=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);o.set(l,!0)}var u=_i.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return C(u.regions,function(c){var h=c.name;o.get(h)||r.push(h)}),i.appendValues([],r),i},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData(),a=this.getRawValue(t),s=r.getName(t),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var h=l[c].originalData.indexOfName(s),p=r.mapDimension("value");isNaN(l[c].originalData.get(p,h))||u.push(l[c].name)}return ae("section",{header:u.join(", "),noHeader:!u.length,blocks:[ae("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",o=ee(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return o.setStyle(t.itemStyle),o.style.stroke="none",i.indexOf("empty")>-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Ft);const _G=xG;function bG(n,e){var t={};return C(n,function(i){i.each(i.mapDimension("value"),function(o,r){var a="ec-"+i.getName(r);t[a]=t[a]||[],isNaN(o)||t[a].push(o)})}),n[0].map(n[0].mapDimension("value"),function(i,o){for(var r="ec-"+n[0].getName(o),a=0,s=1/0,l=-1/0,u=t[r].length,c=0;c<u;c++)s=Math.min(s,t[r][c]),l=Math.max(l,t[r][c]),a+=t[r][c];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=a/u:h=a,u===0?NaN:h})}function wG(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getHostGeoModel(),o=i?"o"+i.id:"i"+t.getMapType();(e[o]=e[o]||[]).push(t)}),C(e,function(t,i){for(var o=bG(G(t,function(a){return a.getData()}),t[0].get("mapValueCalculation")),r=0;r<t.length;r++)t[r].originalData=t[r].getData();for(var r=0;r<t.length;r++)t[r].seriesGroup=t,t[r].needsDrawMap=r===0&&!t[r].getHostGeoModel(),t[r].setData(o.cloneShallow()),t[r].mainSeries=t[0]})}function SG(n){var e={};n.eachSeriesByType("map",function(t){var i=t.getMapType();if(!(t.getHostGeoModel()||e[i])){var o={};C(t.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var h=l.getName(c),p=s.getRegion(h);if(!(!p||isNaN(u))){var d=o[h]||0,f=s.dataToPoint(p.getCenter());o[h]=d+1,l.setItemLayout(c,{point:f,offset:d})}})});var r=t.getData();r.each(function(a){var s=r.getName(a),l=r.getItemLayout(a)||{};l.showLabel=!o[s],r.setItemLayout(a,l)}),e[i]=!0}})}var _I=ce,MG=function(n){P(e,n);function e(t){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new si,i._rawTransformable=new si,i.name=t,i}return e.prototype.setBoundingRect=function(t,i,o,r){return this._rect=new pt(t,i,o,r),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,i,o,r){this._transformTo(t,i,o,r),this._viewRect=new pt(t,i,o,r)},e.prototype._transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new pt(t,i,o,r));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,i){t&&(this._center=[H(t[0],i.getWidth()),H(t[1],i.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var i=this.zoomLimit;i&&(i.max!=null&&(t=Math.min(i.max,t)),i.min!=null&&(t=Math.max(i.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),i=t.x+t.width/2,o=t.y+t.height/2;return[i,o]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),r=this.getCenter(),a=this.getZoom();r=ce([],r,t),o=ce([],o,t),i.originX=r[0],i.originY=r[1],i.x=o[0]-r[0],i.y=o[1]-r[1],i.scaleX=i.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,i=this._rawTransformable;i.parent=t,t.updateTransform(),i.updateTransform(),gp(this.transform||(this.transform=[]),i.transform||$e()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],kr(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,i=this._roamTransformable,o=new si;return o.transform=i.transform,o.decomposeTransform(),{roam:{x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,i,o){var r=i?this._rawTransform:this.transform;return o=o||[],r?_I(o,t,r):Se(o,t)},e.prototype.pointToData=function(t){var i=this.invTransform;return i?_I([],t,i):[t[0],t[1]]},e.prototype.convertToPixel=function(t,i,o){var r=bI(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=bI(i);return r===this?r.pointToData(o):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(si);function bI(n){var e=n.seriesModel;return e?e.coordinateSystem:null}const hl=MG;var IG={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},wI=["lng","lat"],SI=function(n){P(e,n);function e(t,i,o){var r=n.call(this,t)||this;r.dimensions=wI,r.type="geo",r._nameCoordMap=j(),r.map=i;var a=o.projection,s=_i.load(i,o.nameMap,o.nameProperty),l=_i.getGeoResource(i),u=r.resourceType=l?l.type:null,c=r.regions=s.regions,h=IG[l.type];r._regionsMap=s.regionsMap,r.regions=s.regions,process.env.NODE_ENV!=="production"&&a&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Ht("Map "+i+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(process.env.NODE_ENV!=="production"&&Ht("project and unproject must be both provided in the projeciton."),a=null)),r.projection=a;var p;if(a)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(a);p=p||f.clone(),p.union(f)}else p=s.boundingRect;return r.setBoundingRect(p.x,p.y,p.width,p.height),r.aspectScale=a?1:ut(o.aspectScale,h.aspectScale),r._invertLongitute=a?!1:h.invertLongitute,r}return e.prototype._transformTo=function(t,i,o,r){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new pt(t,i,o,r));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,o=0;o<i.length;o++){var r=i[o];if(r.type==="geoJSON"&&r.contain(t))return i[o]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,o){if(U(t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.projectedToPoint(t,i,o)}},e.prototype.pointToData=function(t){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return n.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,i,o){return n.prototype.dataToPoint.call(this,t,i,o)},e.prototype.convertToPixel=function(t,i,o){var r=MI(i);return r===this?r.dataToPoint(o):null},e.prototype.convertFromPixel=function(t,i,o){var r=MI(i);return r===this?r.pointToData(o):null},e}(hl);$t(SI,hl);function MI(n){var e=n.geoModel,t=n.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Qt).models[0]||{}).coordinateSystem:null}const II=SI;function CI(n,e){var t=n.get("boundingCoords");if(t!=null){var i=t[0],o=t[1];if(!(isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var r=this.projection;if(r){var a=i[0],s=i[1],l=o[0],u=o[1];i=[1/0,1/0],o=[-1/0,-1/0];var c=function(b,S,M,I){for(var D=M-b,T=I-S,A=0;A<=100;A++){var k=A/100,L=r.project([b+D*k,S+T*k]);Ti(i,i,L),Ai(o,o,L)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1])}}var h=this.getBoundingRect(),p=n.get("layoutCenter"),d=n.get("layoutSize"),f=e.getWidth(),g=e.getHeight(),v=h.width/h.height*this.aspectScale,y=!1,m,x;p&&d&&(m=[H(p[0],f),H(p[1],g)],x=H(d,Math.min(f,g)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(x)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var _;if(y)_={},v>1?(_.width=x,_.height=x/v):(_.height=x,_.width=x*v),_.y=m[1]-_.height/2,_.x=m[0]-_.width/2;else{var w=n.getBoxLayoutParams();w.aspect=v,_=ie(w,{width:f,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(n.get("center"),e),this.setZoom(n.get("zoom"))}function CG(n,e){C(e.get("geoCoord"),function(t,i){n.addGeoCoord(i,t)})}var DG=function(){function n(){this.dimensions=wI}return n.prototype.create=function(e,t){var i=[];function o(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new II(l+s,l,R({nameMap:a.get("nameMap")},o(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=CI,u.resize(a,t)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=i[l]}});var r={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();r[s]=r[s]||[],r[s].push(a)}}),C(r,function(a,s){var l=G(a,function(c){return c.get("nameMap")}),u=new II(s,s,R({nameMap:tp(l)},o(a[0])));u.zoomLimit=Kt.apply(null,G(a,function(c){return c.get("scaleLimit")})),i.push(u),u.resize=CI,u.resize(a[0],t),C(a,function(c){c.coordinateSystem=u,CG(u,c)})}),i},n.prototype.getFilledRegions=function(e,t,i,o){for(var r=(e||[]).slice(),a=j(),s=0;s<r.length;s++)a.set(r[s].name,r[s]);var l=_i.load(t,i,o);return C(l.regions,function(u){var c=u.name;!a.get(c)&&r.push({name:c})}),r},n}(),TG=new DG;const DI=TG;var AG=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=_i.getGeoResource(t.map);if(r&&r.type==="geoJSON"){var a=t.itemStyle=t.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(t,o),So(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=DI.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var o={};this._optionModelMap=Nn(i.regions||[],function(r,a){var s=a.name;return s&&(r.set(s,new Pt(a,t,t.ecModel)),a.selected&&(o[s]=!0)),r},j()),i.selectedMap||(i.selectedMap=o)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Pt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var o=this.getRegionModel(t),r=i==="normal"?o.get(["label","formatter"]):o.get(["emphasis","label","formatter"]),a={name:t};if($(r))return a.status=i,r(a);if(U(r))return r.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var i=this.option,o=i.selectedMode;if(o){o!=="multiple"&&(i.selectedMap=null);var r=i.selectedMap||(i.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(bt);const kG=AG;function TI(n,e){return n.pointToProjected?n.pointToProjected(e):n.pointToData(e)}function Jg(n,e,t,i){var o=n.getZoom(),r=n.getCenter(),a=e.zoom,s=n.projectedToPoint?n.projectedToPoint(r):n.dataToPoint(r);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,n.setCenter(TI(n,s),i)),a!=null){if(t){var l=t.min||0,u=t.max||1/0;a=Math.max(Math.min(o*a,u),l)/o}n.scaleX*=a,n.scaleY*=a;var c=(e.originX-n.x)*(a-1),h=(e.originY-n.y)*(a-1);n.x-=c,n.y-=h,n.updateTransform(),n.setCenter(TI(n,s),i),n.setZoom(a*o)}return{center:n.getCenter(),zoom:n.getZoom()}}var LG=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,o,r){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new xI(o));var a=this._mapDraw;a.draw(t,i,o,this,r),a.group.on("click",this._handleRegionClick,this),a.group.silent=t.get("silent"),this.group.add(a.group),this.updateSelectStatus(t,i,o)},e.prototype._handleRegionClick=function(t){var i;$o(t.target,function(o){return(i=rt(o).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,o){var r=this;this._mapDraw.group.traverse(function(a){var s=rt(a).eventData;if(s)return r._model.isSelected(s.name)?o.enterSelect(a):o.leaveSelect(a),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(Yt);const NG=LG;function EG(n,e,t){_i.registerMap(n,e,t)}function AI(n){n.registerCoordinateSystem("geo",DI),n.registerComponentModel(kG),n.registerComponentView(NG),n.registerImpl("registerMap",EG),n.registerImpl("getMap",function(t){return _i.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(o,r){var a={},s=[];return r.eachComponent({mainType:"geo",query:o},function(l){l[t](o.name);var u=l.coordinateSystem;C(u.regions,function(h){a[h.name]=l.isSelected(h.name)||!1});var c=[];C(a,function(h,p){a[p]&&c.push(p)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:a,allSelected:s,name:o.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,o){var r=t.componentType||"series";i.eachComponent({mainType:r,query:t},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=Jg(s,t,a.get("scaleLimit"),o);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),r==="series"&&C(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function OG(n){yt(AI),n.registerChartView(mG),n.registerSeriesModel(_G),n.registerLayout(SG),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,wG),Lb("map",n.registerAction)}function PG(n){var e=n;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,o;i=t.pop();)if(o=i.children,i.isExpand&&o.length)for(var r=o.length,a=r-1;a>=0;a--){var s=o[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},t.push(s)}}function VG(n,e){var t=n.isExpand?n.children:[],i=n.parentNode.children,o=n.hierNode.i?i[n.hierNode.i-1]:null;if(t.length){BG(n);var r=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;o?(n.hierNode.prelim=o.hierNode.prelim+e(n,o),n.hierNode.modifier=n.hierNode.prelim-r):n.hierNode.prelim=r}else o&&(n.hierNode.prelim=o.hierNode.prelim+e(n,o));n.parentNode.hierNode.defaultAncestor=GG(n,o,n.parentNode.hierNode.defaultAncestor||i[0],e)}function RG(n){var e=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:e},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function kI(n){return arguments.length?n:WG}function pl(n,e){return n-=Math.PI/2,{x:e*Math.cos(n),y:e*Math.sin(n)}}function zG(n,e){return ie(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function BG(n){for(var e=n.children,t=e.length,i=0,o=0;--t>=0;){var r=e[t];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}function GG(n,e,t,i){if(e){for(var o=n,r=n,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=Qg(s),r=tv(r),s&&r;){o=Qg(o),a=tv(a),o.hierNode.ancestor=n;var p=s.hierNode.prelim+h-r.hierNode.prelim-u+i(s,r);p>0&&(HG(FG(s,n,t),n,p),u+=p,l+=p),h+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,c+=a.hierNode.modifier}s&&!Qg(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=h-l),r&&!tv(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,t=n)}return t}function Qg(n){var e=n.children;return e.length&&n.isExpand?e[e.length-1]:n.hierNode.thread}function tv(n){var e=n.children;return e.length&&n.isExpand?e[0]:n.hierNode.thread}function FG(n,e,t){return n.hierNode.ancestor.parentNode===e.parentNode?n.hierNode.ancestor:t}function HG(n,e,t){var i=t/(e.hierNode.i-n.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,n.hierNode.change+=i}function WG(n,e){return n.parentNode===e.parentNode?1:2}var UG=function(){function n(){this.parentPoint=[],this.childPoints=[]}return n}(),YG=function(n){P(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new UG},e.prototype.buildPath=function(t,i){var o=i.childPoints,r=o.length,a=i.parentPoint,s=o[0],l=o[r-1];if(r===1){t.moveTo(a[0],a[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,c=u==="TB"||u==="BT"?0:1,h=1-c,p=H(i.forkPosition,1),d=[];d[c]=a[c],d[h]=a[h]+(l[h]-a[h])*p,t.moveTo(a[0],a[1]),t.lineTo(d[0],d[1]),t.moveTo(s[0],s[1]),d[c]=s[c],t.lineTo(d[0],d[1]),d[c]=l[c],t.lineTo(d[0],d[1]),t.lineTo(l[0],l[1]);for(var f=1;f<r-1;f++){var g=o[f];t.moveTo(g[0],g[1]),d[c]=g[c],t.lineTo(d[0],d[1])}},e}(mt),XG=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ot,t}return e.prototype.init=function(t,i){this._controller=new ul(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,i,o){var r=t.getData(),a=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(t,o),this._updateController(t,i,o);var u=this._data;r.diff(u).add(function(c){LI(r,c)&&NI(r,c,null,s,t)}).update(function(c,h){var p=u.getItemGraphicEl(h);if(!LI(r,c)){p&&PI(u,h,p,s,t);return}NI(r,c,p,s,t)}).remove(function(c){var h=u.getItemGraphicEl(c);h&&PI(u,c,h,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&r.eachItemGraphicEl(function(c,h){c.off("click").on("click",function(){o.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:h})})}),this._data=r},e.prototype._updateViewCoordSys=function(t,i){var o=t.getData(),r=[];o.each(function(h){var p=o.getItemLayout(h);p&&!isNaN(p.x)&&!isNaN(p.y)&&r.push([+p.x,+p.y])});var a=[],s=[];Iu(r,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=t.coordinateSystem=new hl;c.zoomLimit=t.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(t.get("center"),i),c.setZoom(t.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},e.prototype._updateController=function(t,i,o){var r=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,c,h){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,h)&&!th(u,o,t)}),a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Xg(s,u.dx,u.dy),o.dispatchAction({seriesId:t.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zg(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:t.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),r._updateNodeAndLinkScale(t),o.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),o=this._getNodeGlobalScale(t);i.eachItemGraphicEl(function(r,a){r.setSymbolScale(o)})},e.prototype._getNodeGlobalScale=function(t){var i=t.coordinateSystem;if(i.type!=="view")return 1;var o=this._nodeScaleRatio,r=i.scaleX||1,a=i.getZoom(),s=(a-1)*o+1;return s/r},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Vt);function LI(n,e){var t=n.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function NI(n,e,t,i,o){var r=!t,a=n.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",c=n.tree.root,h=a.parentNode===c?a:a.parentNode||a,p=n.getItemGraphicEl(h.dataIndex),d=h.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();r?(t=new nl(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=f.x,t.y=f.y):t.updateData(n,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=g.rawX,t.__radialRawY=g.rawY,i.add(t),n.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Tt(t,{x:g.x,y:g.y},o);var v=t.getSymbolPath();if(o.get("layout")==="radial"){var y=c.children[0],m=y.getLayout(),x=y.children.length,_=void 0,w=void 0;if(g.x===m.x&&a.isExpand===!0&&y.children.length){var b={x:(y.children[0].getLayout().x+y.children[x-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[x-1].getLayout().y)/2};_=Math.atan2(b.y-m.y,b.x-m.x),_<0&&(_=Math.PI*2+_),w=b.x<m.x,w&&(_=_-Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=Math.PI*2+_),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(w=g.x<m.x,w&&(_=_-Math.PI)):(w=g.x>m.x,w||(_=_-Math.PI));var S=w?"left":"right",M=s.getModel("label"),I=M.get("rotate"),D=I*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:M.get("position")||S,rotation:I==null?-_:D,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),k=A==="relative"?Fl(a.getAncestorsIndices(),a.getDescendantIndices()):A==="ancestor"?a.getAncestorsIndices():A==="descendant"?a.getDescendantIndices():null;k&&(rt(t).focus=k),ZG(o,a,c,t,f,d,g,i),t.__edge&&(t.onHoverStateChange=function(L){if(L!=="blur"){var N=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);N&&N.hoverState===us||Lu(t.__edge,L)}})}function ZG(n,e,t,i,o,r,a,s){var l=e.getModel(),u=n.get("edgeShape"),c=n.get("layout"),h=n.getOrient(),p=n.get(["lineStyle","curveness"]),d=n.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(g||(g=i.__edge=new Vu({shape:ev(c,h,p,o,o)})),Tt(g,{shape:ev(c,h,p,r,a)},n));else if(u==="polyline"){if(c==="orthogonal"){if(e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var v=e.children,y=[],m=0;m<v.length;m++){var x=v[m].getLayout();y.push([x.x,x.y])}g||(g=i.__edge=new YG({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:h,forkPosition:d}})),Tt(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},n)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(et({strokeNoScale:!0,fill:null},f)),pe(g,l,"lineStyle"),Vo(g),s.add(g))}function EI(n,e,t,i,o){var r=e.tree.root,a=OI(r,n),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(n.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,p=u.__edge||(s.isExpand===!1||s.children.length===1?h:void 0),d=i.get("edgeShape"),f=i.get("layout"),g=i.get("orient"),v=i.get(["lineStyle","curveness"]);p&&(d==="curve"?Gi(p,{shape:ev(f,g,v,l,l),style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:o}):d==="polyline"&&i.get("layout")==="orthogonal"&&Gi(p,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(p)},removeOpt:o}))}}function OI(n,e){for(var t=e.parentNode===n?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===n?t:t.parentNode||t;return{source:t,sourceLayout:i}}function PI(n,e,t,i,o){var r=n.tree.getNodeByDataIndex(e),a=n.tree.root,s=OI(a,r).sourceLayout,l={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Gi(t,{x:s.x+1,y:s.y+1},o,{cb:function(){i.remove(t),n.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:l}),r.children.forEach(function(u){EI(u,n,i,o,l)}),EI(r,n,i,o,l)}function ev(n,e,t,i,o){var r,a,s,l,u,c,h,p;if(n==="radial"){u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY;var d=pl(u,h),f=pl(u,h+(p-h)*t),g=pl(c,p+(h-p)*t),v=pl(c,p);return{x1:d.x||0,y1:d.y||0,x2:v.x||0,y2:v.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=i.x,h=i.y,c=o.x,p=o.y,(e==="LR"||e==="RL")&&(r=u+(c-u)*t,a=h,s=c+(u-c)*t,l=p),(e==="TB"||e==="BT")&&(r=u,a=h+(p-h)*t,s=c,l=p+(h-p)*t);return{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l}}const jG=XG;var pn=Mt();function VI(n){var e=n.mainData,t=n.datas;t||(t={main:e},n.datasAttr={main:"data"}),n.datas=n.mainData=null,RI(e,t,n),C(t,function(i){C(e.TRANSFERABLE_METHODS,function(o){i.wrapMethod(o,at(qG,n))})}),e.wrapMethod("cloneShallow",at(KG,n)),C(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,at($G,n))}),J(t[e.dataType]===e)}function qG(n,e){if(tF(this)){var t=R({},pn(this).datas);t[this.dataType]=e,RI(e,t,n)}else nv(e,this.dataType,pn(this).mainData,n);return e}function $G(n,e){return n.struct&&n.struct.update(),e}function KG(n,e){return C(pn(e).datas,function(t,i){t!==e&&nv(t.cloneShallow(),i,e,n)}),e}function JG(n){var e=pn(this).mainData;return n==null||e==null?e:pn(e).datas[n]}function QG(){var n=pn(this).mainData;return n==null?[{data:n}]:G(xt(pn(n).datas),function(e){return{type:e,data:pn(n).datas[e]}})}function tF(n){return pn(n).mainData===n}function RI(n,e,t){pn(n).datas={},C(e,function(i,o){nv(i,o,n,t)})}function nv(n,e,t,i){pn(t).datas[e]=n,pn(n).mainData=t,n.dataType=e,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=n),n.getLinkedData=JG,n.getLinkedDataAll=QG}var eF=function(){function n(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(e,t,i){$(e)&&(i=t,t=e,e=null),e=e||{},U(e)&&(e={order:e});var o=e.order||"preorder",r=this[e.attr||"children"],a;o==="preorder"&&(a=t.call(i,this));for(var s=0;!a&&s<r.length;s++)r[s].eachNode(e,t,i);o==="postorder"&&t.call(i,this)},n.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var o=this.children[i];o.updateDepthAndHeight(e+1),o.height>t&&(t=o.height)}this.height=t+1},n.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,o=i.length;t<o;t++){var r=i[t].getNodeById(e);if(r)return r}},n.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,o=i.length;t<o;t++){var r=i[t].contains(e);if(r)return r}},n.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},n.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},n.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},n.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},n.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},n.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},n.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},n.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},n}(),nF=function(){function n(e){this.type="tree",this._nodes=[],this.hostModel=e}return n.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},n.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},n.prototype.getNodeById=function(e){return this.root.getNodeById(e)},n.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,o=t.length;i<o;i++)t[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)t[e.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(e,t,i){var o=new n(t),r=[],a=1;s(e);function s(c,h){var p=c.value;a=Math.max(a,B(p)?p.length:1),r.push(c);var d=new eF(ne(c.name,""),o);h?iF(d,h):o.root=d,o._nodes.push(d);var f=c.children;if(f)for(var g=0;g<f.length;g++)s(f[g],d)}o.root.updateDepthAndHeight(0);var l=Xs(r,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new Te(l,t);return u.initData(r),i&&i(u),VI({mainData:u,struct:o,structAttr:"tree"}),o.update(),o},n}();function iF(n,e){var t=e.children;n.parentNode!==e&&(t.push(n),n.parentNode=e)}const iv=nF;function dl(n,e,t){if(n&&dt(e,n.type)>=0){var i=t.getData().tree.root,o=n.targetNode;if(U(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var r=n.targetNodeId;if(r!=null&&(o=i.getNodeById(r)))return{node:o}}}function zI(n){for(var e=[];n;)n=n.parentNode,n&&e.push(n);return e.reverse()}function ov(n,e){var t=zI(n);return dt(t,e)>=0}function rh(n,e){for(var t=[];n;){var i=n.dataIndex;t.push({name:n.name,dataIndex:i,value:e.getRawValue(i)}),n=n.parentNode}return t.reverse(),t}var oF=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},o=t.leaves||{},r=new Pt(o,this,this.ecModel),a=iv.createTree(i,this,s);function s(h){h.wrapMethod("getItemModel",function(p,d){var f=a.getNodeByDataIndex(d);return f&&f.children.length&&f.isExpand||(p.parentModel=r),p})}var l=0;a.eachNode("preorder",function(h){h.depth>l&&(l=h.depth)});var u=t.expandAndCollapse,c=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return a.root.eachNode("preorder",function(h){var p=h.hostTree.data.getRawDataItem(h.dataIndex);h.isExpand=p&&p.collapsed!=null?!p.collapsed:h.depth<=c}),a.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,i,o){for(var r=this.getData().tree,a=r.root.children[0],s=r.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return ae("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rh(o,this),i.collapsed=!o.isExpand,i},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Ft);const rF=oF;function aF(n,e,t){for(var i=[n],o=[],r;r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s<a.length;s++)i.push(a[s])}for(;r=o.pop();)e(r,t)}function fl(n,e){for(var t=[n],i;i=t.pop();)if(e(i),i.isExpand){var o=i.children;if(o.length)for(var r=o.length-1;r>=0;r--)t.push(o[r])}}function sF(n,e){n.eachSeriesByType("tree",function(t){lF(t,e)})}function lF(n,e){var t=zG(n,e);n.layoutInfo=t;var i=n.get("layout"),o=0,r=0,a=null;i==="radial"?(o=2*Math.PI,r=Math.min(t.height,t.width)/2,a=kI(function(x,_){return(x.parentNode===_.parentNode?1:2)/x.depth})):(o=t.width,r=t.height,a=kI());var s=n.getData().tree.root,l=s.children[0];if(l){PG(s),aF(l,VG,a),s.hierNode.modifier=-l.hierNode.prelim,fl(l,RG);var u=l,c=l,h=l;fl(l,function(x){var _=x.getLayout().x;_<u.getLayout().x&&(u=x),_>c.getLayout().x&&(c=x),x.depth>h.depth&&(h=x)});var p=u===c?1:a(u,c)/2,d=p-u.getLayout().x,f=0,g=0,v=0,y=0;if(i==="radial")f=o/(c.getLayout().x+p+d),g=r/(h.depth-1||1),fl(l,function(x){v=(x.getLayout().x+d)*f,y=(x.depth-1)*g;var _=pl(v,y);x.setLayout({x:_.x,y:_.y,rawX:v,rawY:y},!0)});else{var m=n.getOrient();m==="RL"||m==="LR"?(g=r/(c.getLayout().x+p+d),f=o/(h.depth-1||1),fl(l,function(x){y=(x.getLayout().x+d)*g,v=m==="LR"?(x.depth-1)*f:o-(x.depth-1)*f,x.setLayout({x:v,y},!0)})):(m==="TB"||m==="BT")&&(f=o/(c.getLayout().x+p+d),g=r/(h.depth-1||1),fl(l,function(x){v=(x.getLayout().x+d)*f,y=m==="TB"?(x.depth-1)*g:r-(x.depth-1)*g,x.setLayout({x:v,y},!0)}))}}}function uF(n){n.eachSeriesByType("tree",function(e){var t=e.getData(),i=t.tree;i.eachNode(function(o){var r=o.getModel(),a=r.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(o.dataIndex,"style");R(s,a)})})}function cF(n){n.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=e.dataIndex,r=i.getData().tree,a=r.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),n.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,i){t.eachComponent({mainType:"series",subType:"tree",query:e},function(o){var r=o.coordinateSystem,a=Jg(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}function hF(n){n.registerChartView(jG),n.registerSeriesModel(rF),n.registerLayout(sF),n.registerVisual(uF),cF(n)}var BI=["treemapZoomToNode","treemapRender","treemapMove"];function pF(n){for(var e=0;e<BI.length;e++)n.registerAction({type:BI[e],update:"updateView"},jt);n.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},o);function o(r,a){var s=["treemapZoomToNode","treemapRootToNode"],l=dl(t,s,r);if(l){var u=r.getViewRoot();u&&(t.direction=ov(u,l.node)?"rollUp":"drillDown"),r.resetViewRoot(l.node)}}})}function GI(n){var e=n.getData(),t=e.tree,i={};t.eachNode(function(o){for(var r=o;r&&r.depth>1;)r=r.parentNode;var a=uf(n.ecModel,r.name||r.dataIndex+"",i);o.setVisual("decal",a)})}var dF=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};FI(o);var r=t.levels||[],a=this.designatedVisualItemStyle={},s=new Pt({itemStyle:a},this,i);r=t.levels=fF(r,i);var l=G(r||[],function(h){return new Pt(h,s,i)},this),u=iv.createTree(o,this,c);function c(h){h.wrapMethod("getItemModel",function(p,d){var f=u.getNodeByDataIndex(d),g=f?l[f.depth]:null;return p.parentModel=g||s,p})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.getRawValue(t),s=r.getName(t);return ae("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=rh(o,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},R(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=j(),this._idIndexMapCount=0);var o=i.get(t);return o==null&&i.set(t,o=this._idIndexMapCount++),o},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){GI(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Ft);function FI(n){var e=0;C(n.children,function(i){FI(i);var o=i.value;B(o)&&(o=o[0]),e+=o});var t=n.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(n.value)?n.value[0]=t:n.value=t}function fF(n,e){var t=Nt(e.get("color")),i=Nt(e.get(["aria","decal","decals"]));if(t){n=n||[];var o,r;C(n,function(s){var l=new Pt(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(o=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(r=!0)});var a=n[0]||(n[0]={});return o||(a.color=t.slice()),!r&&i&&(a.decal=i.slice()),n}}const gF=dF;var vF=8,HI=8,rv=5,yF=function(){function n(e){this.group=new ot,e.add(this.group)}return n.prototype.render=function(e,t,i,o){var r=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!r.get("show")||!i)){var s=r.getModel("itemStyle"),l=r.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,h,u),this._renderContent(e,h,s,l,u,c,o),ic(a,h.pos,h.box)}},n.prototype._prepare=function(e,t,i){for(var o=e;o;o=o.parentNode){var r=ne(o.getModel().get("name"),""),a=i.getTextRect(r),s=Math.max(a.width+vF*2,t.emptyItemWidth);t.totalWidth+=s+HI,t.renderList.push({node:o,text:r,width:s})}},n.prototype._renderContent=function(e,t,i,o,r,a,s){for(var l=0,u=t.emptyItemWidth,c=e.get(["breadcrumb","height"]),h=IO(t.pos,t.box),p=t.totalWidth,d=t.renderList,f=o.getModel("itemStyle").getItemStyle(),g=d.length-1;g>=0;g--){var v=d[g],y=v.node,m=v.width,x=v.text;p>h.width&&(p-=m-u,m=u,x=null);var _=new Re({shape:{points:mF(l,0,m,c,g===d.length-1,g===0)},style:et(i.getItemStyle(),{lineJoin:"bevel"}),textContent:new Dt({style:Ot(r,{text:x})}),textConfig:{position:"inside"},z2:Fr*1e4,onclick:at(s,y)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Ot(a,{text:x}),_.ensureState("emphasis").style=f,Ut(_,o.get("focus"),o.get("blurScope"),o.get("disabled")),this.group.add(_),xF(_,e,y),l+=m+HI}},n.prototype.remove=function(){this.group.removeAll()},n}();function mF(n,e,t,i,o,r){var a=[[o?n:n-rv,e],[n+t,e],[n+t,e+i],[o?n:n-rv,e+i]];return!r&&a.splice(2,0,[n+t+rv,e+i/2]),!o&&a.push([n,e+i/2]),a}function xF(n,e,t){rt(n).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&rh(t,e)}}const _F=yF;var bF=function(){function n(){this._storage=[],this._elExistsMap={}}return n.prototype.add=function(e,t,i,o,r){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:o,easing:r}),!0)},n.prototype.finished=function(e){return this._finishedCallback=e,this},n.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},o=0,r=this._storage.length;o<r;o++){var a=this._storage[o];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:i,aborted:i})}return this},n}();function wF(){return new bF}var av=ot,WI=It,UI=3,YI="label",XI="upperLabel",SF=Fr*10,MF=Fr*2,IF=Fr*3,gr=Co([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),ZI=function(n){var e=gr(n);return e.stroke=e.fill=e.lineWidth=null,e},ah=Mt(),CF=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=gl(),t}return e.prototype.render=function(t,i,o,r){var a=i.findComponents({mainType:"series",subType:"treemap",query:r});if(!(dt(a,t)<0)){this.seriesModel=t,this.api=o,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=dl(r,s,t),u=r&&r.type,c=t.layoutInfo,h=!this._oldTree,p=this._storage,d=u==="treemapRootToNode"&&l&&p?{rootNodeGroup:p.nodeGroup[l.node.getRawIndex()],direction:r.direction}:null,f=this._giveContainerGroup(c),g=t.get("animation"),v=this._doRender(f,t,d);g&&!h&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(f,v,t,d):v.renderFinally(),this._resetController(o),this._renderBreadcrumb(t,o,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new av,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,o){var r=i.getData().tree,a=this._oldTree,s=gl(),l=gl(),u=this._storage,c=[];function h(v,y,m,x){return DF(i,l,u,o,s,c,v,y,m,x)}d(r.root?[r.root]:[],a&&a.root?[a.root]:[],t,r===a||!a,0);var p=f(u);return this._oldTree=r,this._storage=l,{lastsForAnimation:s,willDeleteEls:p,renderFinally:g};function d(v,y,m,x,_){x?(y=v,C(v,function(S,M){!S.isRemoved()&&b(M,M)})):new vi(y,v,w,w).add(b).update(b).remove(at(b,null)).execute();function w(S){return S.getId()}function b(S,M){var I=S!=null?v[S]:null,D=M!=null?y[M]:null,T=h(I,D,m,_);T&&d(I&&I.viewChildren||[],D&&D.viewChildren||[],T,x,_+1)}}function f(v){var y=gl();return v&&C(v,function(m,x){var _=y[x];C(m,function(w){w&&(_.push(w),ah(w).willDelete=!0)})}),y}function g(){C(p,function(v){C(v,function(y){y.parent&&y.parent.remove(y)})}),C(c,function(v){v.invisible=!0,v.dirty()})}},e.prototype._doAnimation=function(t,i,o,r){var a=o.get("animationDurationUpdate"),s=o.get("animationEasing"),l=($(a)?0:a)||0,u=($(s)?null:s)||"cubicOut",c=wF();C(i.willDeleteEls,function(h,p){C(h,function(d,f){if(!d.invisible){var g=d.parent,v,y=ah(g);if(r&&r.direction==="drillDown")v=g===r.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,x=0;y.willDelete||(m=y.nodeWidth/2,x=y.nodeHeight/2),v=p==="nodeGroup"?{x:m,y:x,style:{opacity:0}}:{shape:{x:m,y:x,width:0,height:0},style:{opacity:0}}}v&&c.add(d,v,l,0,u)}})}),C(this._storage,function(h,p){C(h,function(d,f){var g=i.lastsForAnimation[p][f],v={};g&&(d instanceof ot?g.oldX!=null&&(v.x=d.x,v.y=d.y,d.x=g.oldX,d.y=g.oldY):(g.oldShape&&(v.shape=R({},d.shape),d.setShape(g.oldShape)),g.fadein?(d.setStyle("opacity",0),v.style={opacity:1}):d.style.opacity!==1&&(v.style={opacity:1})),c.add(d,v,l,0,u))})},this),this._state="animating",c.finished(X(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this._controller;i||(i=this._controller=new ul(t.getZr()),i.enable(this.seriesModel.get("roam")),i.on("pan",X(this._onPan,this)),i.on("zoom",X(this._onZoom,this)));var o=new pt(0,0,t.getWidth(),t.getHeight());i.setPointerChecker(function(r,a,s){return o.contain(a,s)})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>UI||Math.abs(t.dy)>UI)){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+t.dx,y:o.y+t.dy,width:o.width,height:o.height}})}},e.prototype._onZoom=function(t){var i=t.originX,o=t.originY;if(this._state!=="animating"){var r=this.seriesModel.getData().tree.root;if(!r)return;var a=r.getLayout();if(!a)return;var s=new pt(a.x,a.y,a.width,a.height),l=this.seriesModel.layoutInfo;i-=l.x,o-=l.y;var u=$e();En(u,u,[-i,-o]),vp(u,u,[t.scale,t.scale]),En(u,u,[i,o]),s.applyTransform(u),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(o){if(i._state==="ready"){var r=i.seriesModel.get("nodeClick",!0);if(r){var a=i.findTarget(o.offsetX,o.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)i._rootToNode(a);else if(r==="zoomToNode")i._zoomToNode(a);else if(r==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&ec(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,o){var r=this;o||(o=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),o||(o={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new _F(this.group))).render(t,i,o.node,function(a){r._state!=="animating"&&(ov(t.getViewRoot(),a)?r._rootToNode({node:a}):r._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=gl(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var o,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)o={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),o},e.type="treemap",e}(Vt);function gl(){return{nodeGroup:[],background:[],content:[]}}function DF(n,e,t,i,o,r,a,s,l,u){if(!a)return;var c=a.getLayout(),h=n.getData(),p=a.getModel();if(h.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var d=c.width,f=c.height,g=c.borderWidth,v=c.invisible,y=a.getRawIndex(),m=s&&s.getRawIndex(),x=a.viewChildren,_=c.upperHeight,w=x&&x.length,b=p.getModel("itemStyle"),S=p.getModel(["emphasis","itemStyle"]),M=p.getModel(["blur","itemStyle"]),I=p.getModel(["select","itemStyle"]),D=b.get("borderRadius")||0,T=tt("nodeGroup",av);if(!T)return;if(l.add(T),T.x=c.x||0,T.y=c.y||0,T.markRedraw(),ah(T).nodeWidth=d,ah(T).nodeHeight=f,c.isAboveViewRoot)return T;var A=tt("background",WI,u,MF);A&&z(T,A,w&&c.upperLabelHeight);var k=p.getModel("emphasis"),L=k.get("focus"),N=k.get("blurScope"),E=k.get("disabled"),V=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(w)Bi(T)&&zo(T,!1),A&&(zo(A,!E),h.setItemGraphicEl(a.dataIndex,A),Ld(A,V,N));else{var O=tt("content",WI,u,IF);O&&F(T,O),A.disableMorphing=!0,A&&Bi(A)&&zo(A,!1),zo(T,!E),h.setItemGraphicEl(a.dataIndex,T),Ld(T,V,N)}return T;function z(gt,nt,vt){var st=rt(nt);if(st.dataIndex=a.dataIndex,st.seriesIndex=n.seriesIndex,nt.setShape({x:0,y:0,width:d,height:f,r:D}),v)W(nt);else{nt.invisible=!1;var q=a.getVisual("style"),lt=q.stroke,Gt=ZI(b);Gt.fill=lt;var wt=gr(S);wt.fill=S.get("borderColor");var Xt=gr(M);Xt.fill=M.get("borderColor");var Wt=gr(I);if(Wt.fill=I.get("borderColor"),vt){var ve=d-2*g;Z(nt,lt,q.opacity,{x:g,y:0,width:ve,height:_})}else nt.removeTextContent();nt.setStyle(Gt),nt.ensureState("emphasis").style=wt,nt.ensureState("blur").style=Xt,nt.ensureState("select").style=Wt,Vo(nt)}gt.add(nt)}function F(gt,nt){var vt=rt(nt);vt.dataIndex=a.dataIndex,vt.seriesIndex=n.seriesIndex;var st=Math.max(d-2*g,0),q=Math.max(f-2*g,0);if(nt.culling=!0,nt.setShape({x:g,y:g,width:st,height:q,r:D}),v)W(nt);else{nt.invisible=!1;var lt=a.getVisual("style"),Gt=lt.fill,wt=ZI(b);wt.fill=Gt,wt.decal=lt.decal;var Xt=gr(S),Wt=gr(M),ve=gr(I);Z(nt,Gt,lt.opacity,null),nt.setStyle(wt),nt.ensureState("emphasis").style=Xt,nt.ensureState("blur").style=Wt,nt.ensureState("select").style=ve,Vo(nt)}gt.add(nt)}function W(gt){!gt.invisible&&r.push(gt)}function Z(gt,nt,vt,st){var q=p.getModel(st?XI:YI),lt=ne(p.get("name"),null),Gt=q.getShallow("show");de(gt,re(p,st?XI:YI),{defaultText:Gt?lt:null,inheritColor:nt,defaultOpacity:vt,labelFetcher:n,labelDataIndex:a.dataIndex});var wt=gt.getTextContent();if(wt){var Xt=wt.style,Wt=np(Xt.padding||0);st&&(gt.setTextConfig({layoutRect:st}),wt.disableLabelLayout=!0),wt.beforeUpdate=function(){var ei=Math.max((st?st.width:gt.shape.width)-Wt[1]-Wt[3],0),Le=Math.max((st?st.height:gt.shape.height)-Wt[0]-Wt[2],0);(Xt.width!==ei||Xt.height!==Le)&&wt.setStyle({width:ei,height:Le})},Xt.truncateMinChar=2,Xt.lineOverflow="truncate",Q(Xt,st,c);var ve=wt.getState("emphasis");Q(ve?ve.style:null,st,c)}}function Q(gt,nt,vt){var st=gt?gt.text:null;if(!nt&&vt.isLeafRoot&&st!=null){var q=n.get("drillDownIcon",!0);gt.text=q?q+" "+st:st}}function tt(gt,nt,vt,st){var q=m!=null&&t[gt][m],lt=o[gt];return q?(t[gt][m]=null,ft(lt,q)):v||(q=new nt,q instanceof tn&&(q.z2=TF(vt,st)),_t(lt,q)),e[gt][y]=q}function ft(gt,nt){var vt=gt[y]={};nt instanceof av?(vt.oldX=nt.x,vt.oldY=nt.y):vt.oldShape=R({},nt.shape)}function _t(gt,nt){var vt=gt[y]={},st=a.parentNode,q=nt instanceof ot;if(st&&(!i||i.direction==="drillDown")){var lt=0,Gt=0,wt=o.background[st.getRawIndex()];!i&&wt&&wt.oldShape&&(lt=wt.oldShape.width,Gt=wt.oldShape.height),q?(vt.oldX=0,vt.oldY=Gt):vt.oldShape={x:lt,y:Gt,width:0,height:0}}vt.fadein=!q}}function TF(n,e){return n*SF+e}const AF=CF;var vl=C,kF=K,sh=-1,sv=function(){function n(e){var t=e.mappingMethod,i=e.type,o=this.option=it(e);this.type=i,this.mappingMethod=t,this._normalizeData=EF[t];var r=n.visualHandlers[i];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[t],t==="piecewise"?(lv(o),LF(o)):t==="category"?o.categories?NF(o):lv(o,!0):(J(t!=="linear"||o.dataExtent),lv(o))}return n.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},n.prototype.getNormalizer=function(){return X(this._normalizeData,this)},n.listVisualTypes=function(){return xt(n.visualHandlers)},n.isValidType=function(e){return n.visualHandlers.hasOwnProperty(e)},n.eachVisual=function(e,t,i){K(e)?C(e,t,i):t.call(i,e)},n.mapVisual=function(e,t,i){var o,r=B(e)?[]:K(e)?{}:(o=!0,null);return n.eachVisual(e,function(a,s){var l=t.call(i,a,s);o?r=l:r[s]=l}),r},n.retrieveVisuals=function(e){var t={},i;return e&&vl(n.visualHandlers,function(o,r){e.hasOwnProperty(r)&&(t[r]=e[r],i=!0)}),i?t:null},n.prepareVisualTypes=function(e){if(B(e))e=e.slice();else if(kF(e)){var t=[];vl(e,function(i,o){t.push(o)}),e=t}else return[];return e.sort(function(i,o){return o==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},n.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},n.findPieceIndex=function(e,t,i){for(var o,r=1/0,a=0,s=t.length;a<s;a++){var l=t[a].value;if(l!=null){if(l===e||U(l)&&l===e+"")return a;i&&p(l,a)}}for(var a=0,s=t.length;a<s;a++){var u=t[a],c=u.interval,h=u.close;if(c){if(c[0]===-1/0){if(uh(h[1],e,c[1]))return a}else if(c[1]===1/0){if(uh(h[0],c[0],e))return a}else if(uh(h[0],c[0],e)&&uh(h[1],e,c[1]))return a;i&&p(c[0],a),i&&p(c[1],a)}}if(i)return e===1/0?t.length-1:e===-1/0?0:o;function p(d,f){var g=Math.abs(d-e);g<r&&(r=g,o=f)}},n.visualHandlers={color:{applyVisual:yl("color"),getColorMapper:function(){var e=this.option;return X(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),ml.call(this,t)}:function(t,i,o){var r=!!o;return!i&&(t=this._normalizeData(t)),o=Ap(t,e.parsedVisual,o),r?o:ri(o,"rgba")},this)},_normalizedToVisual:{linear:function(e){return ri(Ap(e,this.option.parsedVisual),"rgba")},category:ml,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=ri(Ap(e,this.option.parsedVisual),"rgba")),i},fixed:vr}},colorHue:lh(function(e,t){return qa(e,t)}),colorSaturation:lh(function(e,t){return qa(e,null,t)}),colorLightness:lh(function(e,t){return qa(e,null,null,t)}),colorAlpha:lh(function(e,t){return nu(e,t)}),decal:{applyVisual:yl("decal"),_normalizedToVisual:{linear:null,category:ml,piecewise:null,fixed:null}},opacity:{applyVisual:yl("opacity"),_normalizedToVisual:uv([0,1])},liftZ:{applyVisual:yl("liftZ"),_normalizedToVisual:{linear:vr,category:vr,piecewise:vr,fixed:vr}},symbol:{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("symbol",o)},_normalizedToVisual:{linear:jI,category:ml,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=jI.call(this,e)),i},fixed:vr}},symbolSize:{applyVisual:yl("symbolSize"),_normalizedToVisual:uv([0,1])}},n}();function LF(n){var e=n.pieceList;n.hasSpecialVisual=!1,C(e,function(t,i){t.originIndex=i,t.visual!=null&&(n.hasSpecialVisual=!0)})}function NF(n){var e=n.categories,t=n.categoryMap={},i=n.visual;if(vl(e,function(a,s){t[a]=s}),!B(i)){var o=[];K(i)?vl(i,function(a,s){var l=t[s];o[l??sh]=a}):o[sh]=i,i=qI(n,o)}for(var r=e.length-1;r>=0;r--)i[r]==null&&(delete t[e[r]],e.pop())}function lv(n,e){var t=n.visual,i=[];K(t)?vl(t,function(r){i.push(r)}):t!=null&&i.push(t);var o={color:1,symbol:1};!e&&i.length===1&&!o.hasOwnProperty(n.type)&&(i[1]=i[0]),qI(n,i)}function lh(n){return{applyVisual:function(e,t,i){var o=this.mapValueToVisual(e);i("color",n(t("color"),o))},_normalizedToVisual:uv([0,1])}}function jI(n){var e=this.option.visual;return e[Math.round(kt(n,[0,1],[0,e.length-1],!0))]||{}}function yl(n){return function(e,t,i){i(n,this.mapValueToVisual(e))}}function ml(n){var e=this.option.visual;return e[this.option.loop&&n!==sh?n%e.length:n]}function vr(){return this.option.visual[0]}function uv(n){return{linear:function(e){return kt(e,n,this.option.visual,!0)},category:ml,piecewise:function(e,t){var i=cv.call(this,t);return i==null&&(i=kt(e,n,this.option.visual,!0)),i},fixed:vr}}function cv(n){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=sv.findPieceIndex(n,t),o=t[i];if(o&&o.visual)return o.visual[this.type]}}function qI(n,e){return n.visual=e,n.type==="color"&&(n.parsedVisual=G(e,function(t){var i=We(t);return!i&&process.env.NODE_ENV!=="production"&&Ht("'"+t+"' is an illegal color, fallback to '#000000'",!0),i||[0,0,0,1]})),e}var EF={linear:function(n){return kt(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var e=this.option.pieceList,t=sv.findPieceIndex(n,e,!0);if(t!=null)return kt(t,[0,e.length-1],[0,1],!0)},category:function(n){var e=this.option.categories?this.option.categoryMap[n]:n;return e??sh},fixed:jt};function uh(n,e,t){return n?e<=t:e<t}const ge=sv;var OF="itemStyle",$I=Mt();const PF={seriesType:"treemap",reset:function(n){var e=n.getData().tree,t=e.root;t.isRemoved()||KI(t,{},n.getViewRoot().getAncestors(),n)}};function KI(n,e,t,i){var o=n.getModel(),r=n.getLayout(),a=n.hostTree.data;if(!(!r||r.invisible||!r.isInView)){var s=o.getModel(OF),l=VF(s,e,i),u=a.ensureUniqueItemVisual(n.dataIndex,"style"),c=s.get("borderColor"),h=s.get("borderColorSaturation"),p;h!=null&&(p=JI(l),c=RF(h,p)),u.stroke=c;var d=n.viewChildren;if(!d||!d.length)p=JI(l),u.fill=p;else{var f=zF(n,o,r,s,l,d);C(d,function(g,v){if(g.depth>=t.length||g===t[g.depth]){var y=BF(o,l,g,v,f,i);KI(g,y,t,i)}})}}}function VF(n,e,t){var i=R({},e),o=t.designatedVisualItemStyle;return C(["color","colorAlpha","colorSaturation"],function(r){o[r]=e[r];var a=n.get(r);o[r]=null,a!=null&&(i[r]=a)}),i}function JI(n){var e=hv(n,"color");if(e){var t=hv(n,"colorAlpha"),i=hv(n,"colorSaturation");return i&&(e=qa(e,null,null,i)),t&&(e=nu(e,t)),e}}function RF(n,e){return e!=null?qa(e,null,null,n):null}function hv(n,e){var t=n[e];if(t!=null&&t!=="none")return t}function zF(n,e,t,i,o,r){if(!(!r||!r.length)){var a=pv(e,"color")||o.color!=null&&o.color!=="none"&&(pv(e,"colorAlpha")||pv(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};h.type==="color"&&(c==="index"||c==="id")?(h.mappingMethod="category",h.loop=!0):h.mappingMethod="linear";var p=new ge(h);return $I(p).drColorMappingBy=c,p}}}function pv(n,e){var t=n.get(e);return B(t)&&t.length?{name:e,range:t}:null}function BF(n,e,t,i,o,r){var a=R({},e);if(o){var s=o.type,l=s==="color"&&$I(o).drColorMappingBy,u=l==="index"?i:l==="id"?r.mapIdToIndex(t.getId()):t.getValue(n.get("visualDimension"));a[s]=o.mapValueToVisual(u)}return a}var xl=Math.max,ch=Math.min,QI=Kt,dv=C,t2=["itemStyle","borderWidth"],GF=["itemStyle","gapWidth"],FF=["upperLabel","show"],HF=["upperLabel","height"];const WF={seriesType:"treemap",reset:function(n,e,t,i){var o=t.getWidth(),r=t.getHeight(),a=n.option,s=ie(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=a.size||[],u=H(QI(s.width,l[0]),o),c=H(QI(s.height,l[1]),r),h=i&&i.type,p=["treemapZoomToNode","treemapRootToNode"],d=dl(i,p,n),f=h==="treemapRender"||h==="treemapMove"?i.rootRect:null,g=n.getViewRoot(),v=zI(g);if(h!=="treemapMove"){var y=h==="treemapZoomToNode"?qF(n,d,g,u,c):f?[f.width,f.height]:[u,c],m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var x={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var _={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(_),e2(g,x,!1,0),_=g.getLayout(),dv(v,function(b,S){var M=(v[S+1]||g).getValue();b.setLayout(R({dataExtent:[M,M],borderWidth:0,upperHeight:0},_))})}var w=n.getData().tree.root;w.setLayout($F(s,f,d),!0),n.setLayoutInfo(s),i2(w,new pt(-s.x,-s.y,o,r),v,g,0)}};function e2(n,e,t,i){var o,r;if(!n.isRemoved()){var a=n.getLayout();o=a.width,r=a.height;var s=n.getModel(),l=s.get(t2),u=s.get(GF)/2,c=o2(s),h=Math.max(l,c),p=l-u,d=h-u;n.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),o=xl(o-2*p,0),r=xl(r-p-d,0);var f=o*r,g=UF(n,s,f,e,t,i);if(g.length){var v={x:p,y:d,width:o,height:r},y=ch(o,r),m=1/0,x=[];x.area=0;for(var _=0,w=g.length;_<w;){var b=g[_];x.push(b),x.area+=b.getLayout().area;var S=jF(x,y,e.squareRatio);S<=m?(_++,m=S):(x.area-=x.pop().getLayout().area,n2(x,y,v,u,!1),y=ch(v.width,v.height),x.length=x.area=0,m=1/0)}if(x.length&&n2(x,y,v,u,!0),!t){var M=s.get("childrenVisibleMin");M!=null&&f<M&&(t=!0)}for(var _=0,w=g.length;_<w;_++)e2(g[_],e,t,i+1)}}}function UF(n,e,t,i,o,r){var a=n.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=r;if(o&&!l)return n.viewChildren=[];a=Lt(a,function(d){return!d.isRemoved()}),XF(a,s);var u=ZF(e,a,s);if(u.sum===0)return n.viewChildren=[];if(u.sum=YF(e,t,u.sum,s,a),u.sum===0)return n.viewChildren=[];for(var c=0,h=a.length;c<h;c++){var p=a[c].getValue()/u.sum*t;a[c].setLayout({area:p})}return l&&(a.length&&n.setLayout({isLeafRoot:!0},!0),a.length=0),n.viewChildren=a,n.setLayout({dataExtent:u.dataExtent},!0),a}function YF(n,e,t,i,o){if(!i)return t;for(var r=n.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var u=o[i==="asc"?a-l-1:l].getValue();u/t*e<r&&(s=l,t-=u)}return i==="asc"?o.splice(0,a-s):o.splice(s,a-s),t}function XF(n,e){return e&&n.sort(function(t,i){var o=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return o===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:o}),n}function ZF(n,e,t){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a=n.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:a==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],dv(e,function(l){var u=l.getValue(a);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function jF(n,e,t){for(var i=0,o=1/0,r=0,a=void 0,s=n.length;r<s;r++)a=n[r].getLayout().area,a&&(a<o&&(o=a),a>i&&(i=a));var l=n.area*n.area,u=e*e*t;return l?xl(u*i/l,l/(u*o)):1/0}function n2(n,e,t,i,o){var r=e===t.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=t[s[r]],c=e?n.area/e:0;(o||c>t[l[a]])&&(c=t[l[a]]);for(var h=0,p=n.length;h<p;h++){var d=n[h],f={},g=c?d.getLayout().area/c:0,v=f[l[a]]=xl(c-2*i,0),y=t[s[r]]+t[l[r]]-u,m=h===p-1||y<g?y:g,x=f[l[r]]=xl(m-2*i,0);f[s[a]]=t[s[a]]+ch(i,v/2),f[s[r]]=u+ch(i,x/2),u+=m,d.setLayout(f,!0)}t[s[a]]+=c,t[l[a]]-=c}function qF(n,e,t,i,o){var r=(e||{}).node,a=[i,o];if(!r||r===t)return a;for(var s,l=i*o,u=l*n.option.zoomToNodeRatio;s=r.parentNode;){for(var c=0,h=s.children,p=0,d=h.length;p<d;p++)c+=h[p].getValue();var f=r.getValue();if(f===0)return a;u*=c/f;var g=s.getModel(),v=g.get(t2),y=Math.max(v,o2(g));u+=4*v*v+(3*v+y)*Math.pow(u,.5),u>R0&&(u=R0),r=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[i*m,o*m]}function $F(n,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var o=t.node,r=o.getLayout();if(!r)return i;for(var a=[r.width/2,r.height/2],s=o;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:n.width/2-a[0],y:n.height/2-a[1]}}function i2(n,e,t,i,o){var r=n.getLayout(),a=t[o],s=a&&a===n;if(!(a&&!s||o===t.length&&n!==i)){n.setLayout({isInView:!0,invisible:!s&&!e.intersect(r),isAboveViewRoot:s},!0);var l=new pt(e.x-r.x,e.y-r.y,e.width,e.height);dv(n.viewChildren||[],function(u){i2(u,l,t,i,o+1)})}}function o2(n){return n.get(FF)?n.get(HF):0}function KF(n){n.registerSeriesModel(gF),n.registerChartView(AF),n.registerVisual(PF),n.registerLayout(WF),pF(n)}function JF(n){var e=n.findComponents({mainType:"legend"});!e||!e.length||n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),o=t.getGraph(),r=o.data,a=i.mapArray(i.getName);r.filterSelf(function(s){var l=r.getItemModel(s),u=l.getShallow("category");if(u!=null){Ct(u)&&(u=a[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function QF(n){var e={};n.eachSeriesByType("graph",function(t){var i=t.getCategoriesData(),o=t.getData(),r={};i.each(function(a){var s=i.getName(a);r["ec-"+s]=a;var l=i.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],h=0;h<c.length;h++){var p=l.getShallow(c[h],!0);p!=null&&i.setItemVisual(a,c[h],p)}}),i.count()&&o.each(function(a){var s=o.getItemModel(a),l=s.getShallow("category");if(l!=null){U(l)&&(l=r["ec-"+l]);var u=i.getItemVisual(l,"style"),c=o.ensureUniqueItemVisual(a,"style");R(c,u);for(var h=["symbol","symbolSize","symbolKeepAspect"],p=0;p<h.length;p++)o.setItemVisual(a,h[p],i.getItemVisual(l,h[p]))}})})}function hh(n){return n instanceof Array||(n=[n,n]),n}function t4(n){n.eachSeriesByType("graph",function(e){var t=e.getGraph(),i=e.getEdgeData(),o=hh(e.get("edgeSymbol")),r=hh(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",o&&o[0]),i.setVisual("toSymbol",o&&o[1]),i.setVisual("fromSymbolSize",r&&r[0]),i.setVisual("toSymbolSize",r&&r[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(a){var s=i.getItemModel(a),l=t.getEdgeByIndex(a),u=hh(s.getShallow("symbol",!0)),c=hh(s.getShallow("symbolSize",!0)),h=s.getModel("lineStyle").getLineStyle(),p=i.ensureUniqueItemVisual(a,"style");switch(R(p,h),p.stroke){case"source":{var d=l.node1.getVisual("style");p.stroke=d&&d.fill;break}case"target":{var d=l.node2.getVisual("style");p.stroke=d&&d.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var fv="-->",ph=function(n){return n.get("autoCurveness")||null},r2=function(n,e){var t=ph(n),i=20,o=[];if(Ct(t))i=t;else if(B(t)){n.__curvenessList=t;return}e>i&&(i=e);var r=i%2?i+2:i+3;o=[];for(var a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));n.__curvenessList=o},_l=function(n,e,t){var i=[n.id,n.dataIndex].join("."),o=[e.id,e.dataIndex].join(".");return[t.uid,i,o].join(fv)},a2=function(n){var e=n.split(fv);return[e[0],e[2],e[1]].join(fv)},e4=function(n,e){var t=_l(n.node1,n.node2,e);return e.__edgeMap[t]},n4=function(n,e){var t=gv(_l(n.node1,n.node2,e),e),i=gv(_l(n.node2,n.node1,e),e);return t+i},gv=function(n,e){var t=e.__edgeMap;return t[n]?t[n].length:0};function i4(n){ph(n)&&(n.__curvenessList=[],n.__edgeMap={},r2(n))}function o4(n,e,t,i){if(ph(t)){var o=_l(n,e,t),r=t.__edgeMap,a=r[a2(o)];r[o]&&!a?r[o].isForward=!0:a&&r[o]&&(a.isForward=!0,r[o].isForward=!1),r[o]=r[o]||[],r[o].push(i)}}function vv(n,e,t,i){var o=ph(e),r=B(o);if(!o)return null;var a=e4(n,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===t){s=l;break}var u=n4(n,e);r2(e,u),n.lineStyle=n.lineStyle||{};var c=_l(n.node1,n.node2,e),h=e.__curvenessList,p=r||u%2?0:1;if(a.isForward)return h[p+s];var d=a2(c),f=gv(d,e),g=h[s+f+p];return i?r?o&&o[0]===0?(f+p)%2?g:-g:((f%2?0:1)+p)%2?g:-g:(f+p)%2?g:-g:h[s+f+p]}function s2(n){var e=n.coordinateSystem;if(!(e&&e.type!=="view")){var t=n.getGraph();t.eachNode(function(i){var o=i.getModel();i.setLayout([+o.get("x"),+o.get("y")])}),yv(t,n)}}function yv(n,e){n.eachEdge(function(t,i){var o=Ze(t.getModel().get(["lineStyle","curveness"]),-vv(t,e,i,!0),0),r=ni(t.node1.getLayout()),a=ni(t.node2.getLayout()),s=[r,a];+o&&s.push([(r[0]+a[0])/2-(r[1]-a[1])*o,(r[1]+a[1])/2-(a[0]-r[0])*o]),t.setLayout(s)})}function r4(n,e){n.eachSeriesByType("graph",function(t){var i=t.get("layout"),o=t.coordinateSystem;if(o&&o.type!=="view"){var r=t.getData(),a=[];C(o.dimensions,function(p){a=a.concat(r.mapDimensionsAll(p))});for(var s=0;s<r.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var h=r.get(a[c],s);isNaN(h)||(u=!0),l.push(h)}u?r.setItemLayout(s,o.dataToPoint(l)):r.setItemLayout(s,[NaN,NaN])}yv(r.graph,t)}else(!i||i==="none")&&s2(t)})}function bl(n){var e=n.coordinateSystem;if(e.type!=="view")return 1;var t=n.option.nodeScaleRatio,i=e.scaleX,o=e.getZoom(),r=(o-1)*t+1;return r/i}function wl(n){var e=n.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var l2=Math.PI,mv=[];function xv(n,e,t,i){var o=n.coordinateSystem;if(!(o&&o.type!=="view")){var r=o.getBoundingRect(),a=n.getData(),s=a.graph,l=r.width/2+r.x,u=r.height/2+r.y,c=Math.min(r.width,r.height)/2,h=a.count();if(a.setLayout({cx:l,cy:u}),!!h){if(t){var p=o.pointToData(i),d=p[0],f=p[1],g=[d-l,f-u];Tr(g,g),Ul(g,g,c),t.setLayout([l+g[0],u+g[1]],!0);var v=n.get(["circular","rotateLabel"]);u2(t,v,l,u)}a4[e](n,s,a,c,l,u,h),s.eachEdge(function(y,m){var x=Ze(y.getModel().get(["lineStyle","curveness"]),vv(y,n,m),0),_=ni(y.node1.getLayout()),w=ni(y.node2.getLayout()),b,S=(_[0]+w[0])/2,M=(_[1]+w[1])/2;+x&&(x*=3,b=[l*x+S*(1-x),u*x+M*(1-x)]),y.setLayout([_,w,b])})}}}var a4={value:function(n,e,t,i,o,r,a){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||a);e.eachNode(function(c){var h=c.getValue("value"),p=u*(l?h:1)/2;s+=p,c.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=p})},symbolSize:function(n,e,t,i,o,r,a){var s=0;mv.length=a;var l=bl(n);e.eachNode(function(h){var p=wl(h);isNaN(p)&&(p=2),p<0&&(p=0),p*=l;var d=Math.asin(p/2/i);isNaN(d)&&(d=l2/2),mv[h.dataIndex]=d,s+=d*2});var u=(2*l2-s)/a/2,c=0;e.eachNode(function(h){var p=u+mv[h.dataIndex];c+=p,(!h.getLayout()||!h.getLayout().fixed)&&h.setLayout([i*Math.cos(c)+o,i*Math.sin(c)+r]),c+=p})}};function u2(n,e,t,i){var o=n.getGraphicEl();if(o){var r=n.getModel(),a=r.get(["label","rotate"])||0,s=o.getSymbolPath();if(e){var l=n.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var c=l[0]<t;c&&(u=u-Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var p=s.ensureState("emphasis");R(p.textConfig||(p.textConfig={}),{position:h})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function s4(n){n.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&xv(e,"symbolSize")})}var wa=op;function l4(n,e,t){for(var i=n,o=e,r=t.rect,a=r.width,s=r.height,l=[r.x+a/2,r.y+s/2],u=t.gravity==null?.1:t.gravity,c=0;c<i.length;c++){var h=i[c];h.p||(h.p=ho(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=ni(h.p),h.edges=null}var p=t.friction==null?.6:t.friction,d=p,f,g;return{warmUp:function(){d=p*.8},setFixed:function(v){i[v].fixed=!0},setUnfixed:function(v){i[v].fixed=!1},beforeStep:function(v){f=v},afterStep:function(v){g=v},step:function(v){f&&f(i,o);for(var y=[],m=i.length,x=0;x<o.length;x++){var _=o[x];if(!_.ignoreForceLayout){var w=_.n1,b=_.n2;po(y,b.p,w.p);var S=rp(y)-_.d,M=b.w/(w.w+b.w);isNaN(M)&&(M=0),Tr(y,y),!w.fixed&&wa(w.p,w.p,y,M*S*d),!b.fixed&&wa(b.p,b.p,y,-(1-M)*S*d)}}for(var x=0;x<m;x++){var I=i[x];I.fixed||(po(y,l,I.p),wa(I.p,I.p,y,u*d))}for(var x=0;x<m;x++)for(var w=i[x],D=x+1;D<m;D++){var b=i[D];po(y,b.p,w.p);var S=rp(y);S===0&&(fk(y,Math.random()-.5,Math.random()-.5),S=1);var T=(w.rep+b.rep)/S/S;!w.fixed&&wa(w.pp,w.pp,y,T),!b.fixed&&wa(b.pp,b.pp,y,-T)}for(var A=[],x=0;x<m;x++){var I=i[x];I.fixed||(po(A,I.p,I.pp),wa(I.p,I.p,A,d),Se(I.pp,I.p))}d=d*.992;var k=d<.01;g&&g(i,o,k),v&&v(k)}}}function u4(n){n.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},o=e.getGraph(),r=o.data,a=o.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?r.each(function(x){var _=r.getId(x);r.setItemLayout(x,i[_]||[NaN,NaN])}):!l||l==="none"?s2(e):l==="circular"&&xv(e,"value");var u=r.getDataExtent("value"),c=a.getDataExtent("value"),h=s.get("repulsion"),p=s.get("edgeLength"),d=B(h)?h:[h,h],f=B(p)?p:[p,p];f=[f[1],f[0]];var g=r.mapArray("value",function(x,_){var w=r.getItemLayout(_),b=kt(x,u,d);return isNaN(b)&&(b=(d[0]+d[1])/2),{w:b,rep:b,fixed:r.getItemModel(_).get("fixed"),p:!w||isNaN(w[0])||isNaN(w[1])?null:w}}),v=a.mapArray("value",function(x,_){var w=o.getEdgeByIndex(_),b=kt(x,c,f);isNaN(b)&&(b=(f[0]+f[1])/2);var S=w.getModel(),M=Ze(w.getModel().get(["lineStyle","curveness"]),-vv(w,e,_,!0),0);return{n1:g[w.node1.dataIndex],n2:g[w.node2.dataIndex],d:b,curveness:M,ignoreForceLayout:S.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=l4(g,v,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(x,_){for(var w=0,b=x.length;w<b;w++)x[w].fixed&&Se(x[w].p,o.getNodeByIndex(w).getLayout())}),m.afterStep(function(x,_,w){for(var b=0,S=x.length;b<S;b++)x[b].fixed||o.getNodeByIndex(b).setLayout(x[b].p),i[r.getId(b)]=x[b].p;for(var b=0,S=_.length;b<S;b++){var M=_[b],I=o.getEdgeByIndex(b),D=M.n1.p,T=M.n2.p,A=I.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],Se(A[0],D),Se(A[1],T),+M.curveness&&(A[2]=[(D[0]+T[0])/2-(D[1]-T[1])*M.curveness,(D[1]+T[1])/2-(T[0]-D[0])*M.curveness]),I.setLayout(A)}}),e.forceLayout=m,e.preservedPoints=i,m.step()}else e.forceLayout=null})}function c4(n,e,t){var i=R(n.getBoxLayoutParams(),{aspect:t});return ie(i,{width:e.getWidth(),height:e.getHeight()})}function h4(n,e){var t=[];return n.eachSeriesByType("graph",function(i){var o=i.get("coordinateSystem");if(!o||o==="view"){var r=i.getData(),a=r.mapArray(function(v){var y=r.getItemModel(v);return[+y.get("x"),+y.get("y")]}),s=[],l=[];Iu(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=c4(i,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var h=l[0]-s[0],p=l[1]-s[1],d=c.width,f=c.height,g=i.coordinateSystem=new hl;g.zoomLimit=i.get("scaleLimit"),g.setBoundingRect(s[0],s[1],h,p),g.setViewRect(c.x,c.y,d,f),g.setCenter(i.get("center"),e),g.setZoom(i.get("zoom")),t.push(g)}}),t}var c2=ue.prototype,_v=Vu.prototype,h2=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return n}();(function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e})(h2);function bv(n){return isNaN(+n.cpx1)||isNaN(+n.cpy1)}var p4=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h2},e.prototype.buildPath=function(t,i){bv(i)?c2.buildPath.call(this,t,i):_v.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return bv(this.shape)?c2.pointAt.call(this,t):_v.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,o=bv(i)?[i.x2-i.x1,i.y2-i.y1]:_v.tangentAt.call(this,t);return Tr(o,o)},e}(mt);const d4=p4;var wv=["fromSymbol","toSymbol"];function p2(n){return"_"+n+"Type"}function d2(n,e,t){var i=e.getItemVisual(t,n);if(!i||i==="none")return i;var o=e.getItemVisual(t,n+"Size"),r=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=ca(o),u=Ko(a||0,l);return i+l+u+(r||"")+(s||"")}function f2(n,e,t){var i=e.getItemVisual(t,n);if(!(!i||i==="none")){var o=e.getItemVisual(t,n+"Size"),r=e.getItemVisual(t,n+"Rotate"),a=e.getItemVisual(t,n+"Offset"),s=e.getItemVisual(t,n+"KeepAspect"),l=ca(o),u=Ko(a||0,l),c=ee(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=r==null||isNaN(r)?void 0:+r*Math.PI/180||0,c.name=n,c}}function f4(n){var e=new d4({name:"line",subPixelOptimize:!0});return Sv(e.shape,n),e}function Sv(n,e){n.x1=e[0][0],n.y1=e[0][1],n.x2=e[1][0],n.y2=e[1][1],n.percent=1;var t=e[2];t?(n.cpx1=t[0],n.cpy1=t[1]):(n.cpx1=NaN,n.cpy1=NaN)}var g4=function(n){P(e,n);function e(t,i,o){var r=n.call(this)||this;return r._createLine(t,i,o),r}return e.prototype._createLine=function(t,i,o){var r=t.hostModel,a=t.getItemLayout(i),s=f4(a);s.shape.percent=0,Bt(s,{shape:{percent:1}},r,i),this.add(s),C(wv,function(l){var u=f2(l,t,i);this.add(u),this[p2(l)]=d2(l,t,i)},this),this._updateCommonStl(t,i,o)},e.prototype.updateData=function(t,i,o){var r=t.hostModel,a=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};Sv(l.shape,s),Tt(a,l,r,i),C(wv,function(u){var c=d2(u,t,i),h=p2(u);if(this[h]!==c){this.remove(this.childOfName(u));var p=f2(u,t,i);this.add(p)}this[h]=c},this),this._updateCommonStl(t,i,o)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,o){var r=t.hostModel,a=this.childOfName("line"),s=o&&o.emphasisLineStyle,l=o&&o.blurLineStyle,u=o&&o.selectLineStyle,c=o&&o.labelStatesModels,h=o&&o.emphasisDisabled,p=o&&o.focus,d=o&&o.blurScope;if(!o||t.hasItemOption){var f=t.getItemModel(i),g=f.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=f.getModel(["blur","lineStyle"]).getLineStyle(),u=f.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),p=g.get("focus"),d=g.get("blurScope"),c=re(f)}var v=t.getItemVisual(i,"style"),y=v.stroke;a.useStyle(v),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,C(wv,function(b){var S=this.childOfName(b);if(S){S.setColor(y),S.style.opacity=v.opacity;for(var M=0;M<Ce.length;M++){var I=Ce[M],D=a.getState(I);if(D){var T=D.style||{},A=S.ensureState(I),k=A.style||(A.style={});T.stroke!=null&&(k[S.__isEmptyBrush?"stroke":"fill"]=T.stroke),T.opacity!=null&&(k.opacity=T.opacity)}}S.markRedraw()}},this);var m=r.getRawValue(i);de(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,S){return r.getFormattedLabel(b,S,t.dataType)}},inheritColor:y||"#000",defaultOpacity:v.opacity,defaultText:(m==null?t.getName(i):isFinite(m)?Zt(m):m)+""});var x=this.getTextContent();if(x){var _=c.normal;x.__align=x.style.align,x.__verticalAlign=x.style.verticalAlign,x.__position=_.get("position")||"middle";var w=_.get("distance");B(w)||(w=[w,w]),x.__labelDistance=w}this.setTextConfig({position:null,local:!0,inside:!1}),Ut(this,p,d,h)},e.prototype.highlight=function(){pi(this)},e.prototype.downplay=function(){di(this)},e.prototype.updateLayout=function(t,i){this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");Sv(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),o=t.childOfName("toSymbol"),r=t.getTextContent();if(!i&&!o&&(!r||r.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),p=po([],h,c);Tr(p,p);function d(D,T){var A=D.__specifiedRotation;if(A==null){var k=l.tangentAt(T);D.attr("rotation",(T===1?-1:1)*Math.PI/2-Math.atan2(k[1],k[0]))}else D.attr("rotation",A)}if(i&&(i.setPosition(c),d(i,0),i.scaleX=i.scaleY=a*u,i.markRedraw()),o&&(o.setPosition(h),d(o,1),o.scaleX=o.scaleY=a*u,o.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var f=void 0,g=void 0,v=r.__labelDistance,y=v[0]*a,m=v[1]*a,x=u/2,_=l.tangentAt(x),w=[_[1],-_[0]],b=l.pointAt(x);w[1]>0&&(w[0]=-w[0],w[1]=-w[1]);var S=_[0]<0?-1:1;if(r.__position!=="start"&&r.__position!=="end"){var M=-Math.atan2(_[1],_[0]);h[0]<c[0]&&(M=Math.PI+M),r.rotation=M}var I=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-m,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=m,g="top";break;default:I=0,g="middle"}switch(r.__position){case"end":r.x=p[0]*y+h[0],r.y=p[1]*m+h[1],f=p[0]>.8?"left":p[0]<-.8?"right":"center",g=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":r.x=-p[0]*y+c[0],r.y=-p[1]*m+c[1],f=p[0]>.8?"right":p[0]<-.8?"left":"center",g=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=y*S+c[0],r.y=c[1]+I,f=_[0]<0?"right":"left",r.originX=-y*S,r.originY=-I;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=b[0],r.y=b[1]+I,f="center",r.originY=-I;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-y*S+h[0],r.y=h[1]+I,f=_[0]>=0?"right":"left",r.originX=y*S,r.originY=-I;break}r.scaleX=r.scaleY=a,r.setStyle({verticalAlign:r.__verticalAlign||g,align:r.__align||f})}},e}(ot);const Mv=g4;var v4=function(){function n(e){this.group=new ot,this._LineCtor=e||Mv}return n.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,o=i.group,r=i._lineData;i._lineData=e,r||o.removeAll();var a=g2(e);e.diff(r).add(function(s){t._doAdd(e,s,a)}).update(function(s,l){t._doUpdate(r,e,l,s,a)}).remove(function(s){o.remove(r.getItemGraphicEl(s))}).execute()},n.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},n.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=g2(e),this._lineData=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function i(s){!s.isGroup&&!y4(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var r=t.getItemLayout(o);if(Iv(r)){var a=new this._LineCtor(t,o,this._seriesScope);a.traverse(i),this.group.add(a),t.setItemGraphicEl(o,a),this._progressiveEls.push(a)}}},n.prototype.remove=function(){this.group.removeAll()},n.prototype.eachRendered=function(e){Fi(this._progressiveEls||this.group,e)},n.prototype._doAdd=function(e,t,i){var o=e.getItemLayout(t);if(Iv(o)){var r=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,r),this.group.add(r)}},n.prototype._doUpdate=function(e,t,i,o,r){var a=e.getItemGraphicEl(i);if(!Iv(t.getItemLayout(o))){this.group.remove(a);return}a?a.updateData(t,o,r):a=new this._LineCtor(t,o,r),t.setItemGraphicEl(o,a),this.group.add(a)},n}();function y4(n){return n.animators&&n.animators.length>0}function g2(n){var e=n.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:re(e)}}function v2(n){return isNaN(n[0])||isNaN(n[1])}function Iv(n){return n&&!v2(n[0])&&!v2(n[1])}const Cv=v4;var Dv=[],Tv=[],Av=[],Sa=le,kv=fo,y2=Math.abs;function m2(n,e,t){for(var i=n[0],o=n[1],r=n[2],a=1/0,s,l=t*t,u=.1,c=.1;c<=.9;c+=.1){Dv[0]=Sa(i[0],o[0],r[0],c),Dv[1]=Sa(i[1],o[1],r[1],c);var h=y2(kv(Dv,e)-l);h<a&&(a=h,s=c)}for(var p=0;p<32;p++){var d=s+u;Tv[0]=Sa(i[0],o[0],r[0],s),Tv[1]=Sa(i[1],o[1],r[1],s),Av[0]=Sa(i[0],o[0],r[0],d),Av[1]=Sa(i[1],o[1],r[1],d);var h=kv(Tv,e)-l;if(y2(h)<.01)break;var f=kv(Av,e)-l;u/=2,h<0?f>=0?s=s+u:s=s-u:f>=0?s=s-u:s=s+u}return s}function Lv(n,e){var t=[],i=Xa,o=[[],[],[]],r=[[],[]],a=[];e/=2,n.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),h=s.getVisual("toSymbol");u.__original||(u.__original=[ni(u[0]),ni(u[1])],u[2]&&u.__original.push(ni(u[2])));var p=u.__original;if(u[2]!=null){if(Se(o[0],p[0]),Se(o[1],p[2]),Se(o[2],p[1]),c&&c!=="none"){var d=wl(s.node1),f=m2(o,p[0],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[0][0]=t[3],o[1][0]=t[4],i(o[0][1],o[1][1],o[2][1],f,t),o[0][1]=t[3],o[1][1]=t[4]}if(h&&h!=="none"){var d=wl(s.node2),f=m2(o,p[1],d*e);i(o[0][0],o[1][0],o[2][0],f,t),o[1][0]=t[1],o[2][0]=t[2],i(o[0][1],o[1][1],o[2][1],f,t),o[1][1]=t[1],o[2][1]=t[2]}Se(u[0],o[0]),Se(u[1],o[2]),Se(u[2],o[1])}else{if(Se(r[0],p[0]),Se(r[1],p[1]),po(a,r[1],r[0]),Tr(a,a),c&&c!=="none"){var d=wl(s.node1);op(r[0],r[0],a,d*e)}if(h&&h!=="none"){var d=wl(s.node2);op(r[1],r[1],a,-d*e)}Se(u[0],r[0]),Se(u[1],r[1])}})}function x2(n){return n.type==="view"}var m4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){var o=new il,r=new Cv,a=this.group;this._controller=new ul(i.getZr()),this._controllerHost={target:a},a.add(o.group),a.add(r.group),this._symbolDraw=o,this._lineDraw=r,this._firstRender=!0},e.prototype.render=function(t,i,o){var r=this,a=t.coordinateSystem;this._model=t;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(x2(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):Tt(u,c,t)}Lv(t.getGraph(),bl(t));var h=t.getData();s.updateData(h);var p=t.getEdgeData();l.updateData(p),this._updateNodeAndLinkScale(),this._updateController(t,i,o),clearTimeout(this._layoutTimeout);var d=t.forceLayout,f=t.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var g=t.get("layout");h.graph.eachNode(function(x){var _=x.dataIndex,w=x.getGraphicEl(),b=x.getModel();if(w){w.off("drag").off("dragend");var S=b.get("draggable");S&&w.on("drag",function(I){switch(g){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(_),h.setItemLayout(_,[w.x,w.y]);break;case"circular":h.setItemLayout(_,[w.x,w.y]),x.setLayout({fixed:!0},!0),xv(t,"symbolSize",x,[I.offsetX,I.offsetY]),r.updateLayout(t);break;case"none":default:h.setItemLayout(_,[w.x,w.y]),yv(t.getGraph(),t),r.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(_)}),w.setDraggable(S,!!b.get("cursor"));var M=b.get(["emphasis","focus"]);M==="adjacency"&&(rt(w).focus=x.getAdjacentDataIndices())}}),h.graph.eachEdge(function(x){var _=x.getGraphicEl(),w=x.getModel().get(["emphasis","focus"]);_&&w==="adjacency"&&(rt(_).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var v=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=h.getLayout("cx"),m=h.getLayout("cy");h.graph.eachNode(function(x){u2(x,v,y,m)}),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,i){var o=this;(function r(){t.step(function(a){o.updateLayout(o._model),(o._layouting=!a)&&(i?o._layoutTimeout=setTimeout(r,16):r())})})()},e.prototype._updateController=function(t,i,o){var r=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,h){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(c,h)&&!th(u,o,t)}),!x2(t.coordinateSystem)){a.disable();return}a.enable(t.get("roam")),s.zoomLimit=t.get("scaleLimit"),s.zoom=t.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){Xg(s,u.dx,u.dy),o.dispatchAction({seriesId:t.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Zg(s,u.scale,u.originX,u.originY),o.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),r._updateNodeAndLinkScale(),Lv(t.getGraph(),bl(t)),r._lineDraw.updateLayout(),o.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),o=bl(t);i.eachItemGraphicEl(function(r,a){r&&r.setSymbolScale(o)})},e.prototype.updateLayout=function(t){Lv(t.getGraph(),bl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Vt);const x4=m4;function Ma(n){return"_EC_"+n}var _4=function(){function n(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return n.prototype.isDirected=function(){return this._directed},n.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(i[Ma(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var o=new yr(e,t);return o.hostGraph=this,this.nodes.push(o),i[Ma(e)]=o,o},n.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},n.prototype.getNodeById=function(e){return this._nodesMap[Ma(e)]},n.prototype.addEdge=function(e,t,i){var o=this._nodesMap,r=this._edgesMap;if(Ct(e)&&(e=this.nodes[e]),Ct(t)&&(t=this.nodes[t]),e instanceof yr||(e=o[Ma(e)]),t instanceof yr||(t=o[Ma(t)]),!(!e||!t)){var a=e.id+"-"+t.id,s=new _2(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),r[a]=s,s}},n.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},n.prototype.getEdge=function(e,t){e instanceof yr&&(e=e.id),t instanceof yr&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},n.prototype.eachNode=function(e,t){for(var i=this.nodes,o=i.length,r=0;r<o;r++)i[r].dataIndex>=0&&e.call(t,i[r],r)},n.prototype.eachEdge=function(e,t){for(var i=this.edges,o=i.length,r=0;r<o;r++)i[r].dataIndex>=0&&i[r].node1.dataIndex>=0&&i[r].node2.dataIndex>=0&&e.call(t,i[r],r)},n.prototype.breadthFirstTraverse=function(e,t,i,o){if(t instanceof yr||(t=this._nodesMap[Ma(t)]),!!t){for(var r=i==="out"?"outEdges":i==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(o,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[r],a=0;a<u.length;a++){var c=u[a],h=c.node1===l?c.node2:c.node1;if(!h.__visited){if(e.call(o,h,l))return;s.push(h),h.__visited=!0}}}},n.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,o=this.edges,r=0,a=i.length;r<a;r++)i[r].dataIndex=-1;for(var r=0,a=e.count();r<a;r++)i[e.getRawIndex(r)].dataIndex=r;t.filterSelf(function(s){var l=o[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var r=0,a=o.length;r<a;r++)o[r].dataIndex=-1;for(var r=0,a=t.count();r<a;r++)o[t.getRawIndex(r)].dataIndex=r},n.prototype.clone=function(){for(var e=new n(this._directed),t=this.nodes,i=this.edges,o=0;o<t.length;o++)e.addNode(t[o].id,t[o].dataIndex);for(var o=0;o<i.length;o++){var r=i[o];e.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return e},n}(),yr=function(){function n(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return n.prototype.degree=function(){return this.edges.length},n.prototype.inDegree=function(){return this.inEdges.length},n.prototype.outDegree=function(){return this.outEdges.length},n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},n.prototype.getTrajectoryDataIndices=function(){for(var e=j(),t=j(),i=0;i<this.edges.length;i++){var o=this.edges[i];if(!(o.dataIndex<0)){e.set(o.dataIndex,!0);for(var r=[o.node1],a=[o.node2],s=0;s<r.length;){var l=r[s];s++,t.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),r.push(l.inEdges[u].node1)}for(s=0;s<a.length;){var c=a[s];s++,t.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:t.keys()}},n}(),_2=function(){function n(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return n.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},n.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},n.prototype.getTrajectoryDataIndices=function(){var e=j(),t=j();e.set(this.dataIndex,!0);for(var i=[this.node1],o=[this.node2],r=0;r<i.length;){var a=i[r];r++,t.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)e.set(a.inEdges[s].dataIndex,!0),i.push(a.inEdges[s].node1)}for(r=0;r<o.length;){var l=o[r];r++,t.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),o.push(l.outEdges[s].node2)}return{edge:e.keys(),node:t.keys()}},n}();function b2(n,e){return{getValue:function(t){var i=this[n][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[n][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[n][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[n][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[n][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][e].getRawIndex(this.dataIndex)}}}$t(yr,b2("hostGraph","data")),$t(_2,b2("hostGraph","edgeData"));const b4=_4;function w2(n,e,t,i,o){for(var r=new b4(i),a=0;a<n.length;a++)r.addNode(Kt(n[a].id,n[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var c=e[a],h=c.source,p=c.target;r.addEdge(h,p,u)&&(l.push(c),s.push(Kt(ne(c.id,null),h+" > "+p)),u++)}var d=t.get("coordinateSystem"),f;if(d==="cartesian2d"||d==="polar")f=yi(n,t);else{var g=oa.get(d),v=g?g.dimensions||[]:[];dt(v,"value")<0&&v.concat(["value"]);var y=Xs(n,{coordDimensions:v,encodeDefine:t.getEncode()}).dimensions;f=new Te(y,t),f.initData(n)}var m=new Te(["value"],t);return m.initData(l,s),o&&o(f,m),VI({mainData:f,struct:r,structAttr:"graph",datas:{node:f,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var w4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments);var i=this;function o(){return i._categoriesData}this.legendVisualProvider=new al(o,o),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){n.prototype.mergeDefaultAndTheme.apply(this,arguments),So(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var o=t.edges||t.links||[],r=t.data||t.nodes||[],a=this;if(r&&o){i4(this);var s=w2(r,o,this,!0,l);return C(s.edges,function(u){o4(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(f){var g=a._categoriesModels,v=f.getShallow("category"),y=g[v];return y&&(y.parentModel=f.parentModel,f.parentModel=y),f});var h=Pt.prototype.getModel;function p(f,g){var v=h.call(this,f,g);return v.resolveParentPath=d,v}c.wrapMethod("getItemModel",function(f){return f.resolveParentPath=d,f.getModel=p,f});function d(f){if(f&&(f[0]==="label"||f[1]==="label")){var g=f.slice();return f[0]==="label"?g[0]="edgeLabel":f[1]==="label"&&(g[1]="edgeLabel"),g}return f}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,o){if(o==="edge"){var r=this.getData(),a=this.getDataParams(t,o),s=r.graph.getEdgeByIndex(t),l=r.getName(s.node1.dataIndex),u=r.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ae("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var h=ub({series:this,dataIndex:t,multipleSeries:i});return h},e.prototype._updateCategoriesData=function(){var t=G(this.option.categories||[],function(o){return o.value!=null?o:R({value:0},o)}),i=new Te(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(o){return i.getItemModel(o)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return n.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ft);const S4=w4;var M4={type:"graphRoam",event:"graphRoam",update:"none"};function I4(n){n.registerChartView(x4),n.registerSeriesModel(S4),n.registerProcessor(JF),n.registerVisual(QF),n.registerVisual(t4),n.registerLayout(r4),n.registerLayout(n.PRIORITY.VISUAL.POST_CHART_LAYOUT,s4),n.registerLayout(u4),n.registerCoordinateSystem("graphView",{dimensions:hl.dimensions,create:h4}),n.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},jt),n.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},jt),n.registerAction(M4,function(e,t,i){t.eachComponent({mainType:"series",query:e},function(o){var r=o.coordinateSystem,a=Jg(r,e,void 0,i);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}var C4=function(){function n(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return n}(),D4=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new C4},e.prototype.buildPath=function(t,i){var o=Math.cos,r=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-o(l)*s*(s>=a/3?1:2),c=i.y-r(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,c),t.lineTo(i.x+o(l)*s,i.y+r(l)*s),t.lineTo(i.x+o(i.angle)*a,i.y+r(i.angle)*a),t.lineTo(i.x-o(l)*s,i.y-r(l)*s),t.lineTo(u,c)},e}(mt);const T4=D4;function A4(n,e){var t=n.get("center"),i=e.getWidth(),o=e.getHeight(),r=Math.min(i,o),a=H(t[0],e.getWidth()),s=H(t[1],e.getHeight()),l=H(n.get("radius"),r/2);return{cx:a,cy:s,r:l}}function dh(n,e){var t=n==null?"":n+"";return e&&(U(e)?t=e.replace("{value}",t):$(e)&&(t=e(n))),t}var k4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),a=A4(t,o);this._renderMain(t,i,o,r,a),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,o,r,a){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,c=-t.get("endAngle")/180*Math.PI,h=t.getModel("axisLine"),p=h.get("roundCap"),d=p?Zc:Ve,f=h.get("show"),g=h.getModel("lineStyle"),v=g.get("width"),y=[u,c];p1(y,!l),u=y[0],c=y[1];for(var m=c-u,x=u,_=[],w=0;f&&w<r.length;w++){var b=Math.min(Math.max(r[w][0],0),1);c=u+m*b;var S=new d({shape:{startAngle:x,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-v,r:a.r},silent:!0});S.setStyle({fill:r[w][1]}),S.setStyle(g.getLineStyle(["color","width"])),_.push(S),x=c}_.reverse(),C(_,function(I){return s.add(I)});var M=function(I){if(I<=0)return r[0][1];var D;for(D=0;D<r.length;D++)if(r[D][0]>=I&&(D===0?0:r[D-1][0])<I)return r[D][1];return r[D-1][1]};this._renderTicks(t,i,o,M,a,u,c,l,v),this._renderTitleAndDetail(t,i,o,M,a),this._renderAnchor(t,a),this._renderPointer(t,i,o,M,a,u,c,l,v)},e.prototype._renderTicks=function(t,i,o,r,a,s,l,u,c){for(var h=this.group,p=a.cx,d=a.cy,f=a.r,g=+t.get("min"),v=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=m.get("splitNumber"),b=H(y.get("length"),f),S=H(m.get("length"),f),M=s,I=(l-s)/_,D=I/w,T=y.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),k=y.get("distance"),L,N,E=0;E<=_;E++){if(L=Math.cos(M),N=Math.sin(M),y.get("show")){var V=k?k+c:c,O=new ue({shape:{x1:L*(f-V)+p,y1:N*(f-V)+d,x2:L*(f-b-V)+p,y2:N*(f-b-V)+d},style:T,silent:!0});T.stroke==="auto"&&O.setStyle({stroke:r(E/_)}),h.add(O)}if(x.get("show")){var V=x.get("distance")+k,z=dh(Zt(E/_*(v-g)+g),x.get("formatter")),F=r(E/_),W=L*(f-b-V)+p,Z=N*(f-b-V)+d,Q=x.get("rotate"),tt=0;Q==="radial"?(tt=-M+2*Math.PI,tt>Math.PI/2&&(tt+=Math.PI)):Q==="tangential"?tt=-M-Math.PI/2:Ct(Q)&&(tt=Q*Math.PI/180),tt===0?h.add(new Dt({style:Ot(x,{text:z,x:W,y:Z,verticalAlign:N<-.8?"top":N>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:F}),silent:!0})):h.add(new Dt({style:Ot(x,{text:z,x:W,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:W,originY:Z,rotation:tt}))}if(m.get("show")&&E!==_){var V=m.get("distance");V=V?V+c:c;for(var ft=0;ft<=w;ft++){L=Math.cos(M),N=Math.sin(M);var _t=new ue({shape:{x1:L*(f-V)+p,y1:N*(f-V)+d,x2:L*(f-S-V)+p,y2:N*(f-S-V)+d},silent:!0,style:A});A.stroke==="auto"&&_t.setStyle({stroke:r((E+ft/w)/_)}),h.add(_t),M+=D}M-=D}else M+=I}},e.prototype._renderPointer=function(t,i,o,r,a,s,l,u,c){var h=this.group,p=this._data,d=this._progressEls,f=[],g=t.get(["pointer","show"]),v=t.getModel("progress"),y=v.get("show"),m=t.getData(),x=m.mapDimension("value"),_=+t.get("min"),w=+t.get("max"),b=[_,w],S=[s,l];function M(D,T){var A=m.getItemModel(D),k=A.getModel("pointer"),L=H(k.get("width"),a.r),N=H(k.get("length"),a.r),E=t.get(["pointer","icon"]),V=k.get("offsetCenter"),O=H(V[0],a.r),z=H(V[1],a.r),F=k.get("keepAspect"),W;return E?W=ee(E,O-L/2,z-N,L,N,null,F):W=new T4({shape:{angle:-Math.PI/2,width:L,r:N,x:O,y:z}}),W.rotation=-(T+Math.PI/2),W.x=a.cx,W.y=a.cy,W}function I(D,T){var A=v.get("roundCap"),k=A?Zc:Ve,L=v.get("overlap"),N=L?v.get("width"):c/m.count(),E=L?a.r-N:a.r-(D+1)*N,V=L?a.r:a.r-D*N,O=new k({shape:{startAngle:s,endAngle:T,cx:a.cx,cy:a.cy,clockwise:u,r0:E,r:V}});return L&&(O.z2=w-m.get(x,D)%w),O}(y||g)&&(m.diff(p).add(function(D){var T=m.get(x,D);if(g){var A=M(D,s);Bt(A,{rotation:-((isNaN(+T)?S[0]:kt(T,b,S,!0))+Math.PI/2)},t),h.add(A),m.setItemGraphicEl(D,A)}if(y){var k=I(D,s),L=v.get("clip");Bt(k,{shape:{endAngle:kt(T,b,S,L)}},t),h.add(k),wd(t.seriesIndex,m.dataType,D,k),f[D]=k}}).update(function(D,T){var A=m.get(x,D);if(g){var k=p.getItemGraphicEl(T),L=k?k.rotation:s,N=M(D,L);N.rotation=L,Tt(N,{rotation:-((isNaN(+A)?S[0]:kt(A,b,S,!0))+Math.PI/2)},t),h.add(N),m.setItemGraphicEl(D,N)}if(y){var E=d[T],V=E?E.shape.endAngle:s,O=I(D,V),z=v.get("clip");Tt(O,{shape:{endAngle:kt(A,b,S,z)}},t),h.add(O),wd(t.seriesIndex,m.dataType,D,O),f[D]=O}}).execute(),m.each(function(D){var T=m.getItemModel(D),A=T.getModel("emphasis"),k=A.get("focus"),L=A.get("blurScope"),N=A.get("disabled");if(g){var E=m.getItemGraphicEl(D),V=m.getItemVisual(D,"style"),O=V.fill;if(E instanceof he){var z=E.style;E.useStyle(R({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},V))}else E.useStyle(V),E.type!=="pointer"&&E.setColor(O);E.setStyle(T.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",r(kt(m.get(x,D),b,[0,1],!0))),E.z2EmphasisLift=0,pe(E,T),Ut(E,k,L,N)}if(y){var F=f[D];F.useStyle(m.getItemVisual(D,"style")),F.setStyle(T.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,pe(F,T),Ut(F,k,L,N)}}),this._progressEls=f)},e.prototype._renderAnchor=function(t,i){var o=t.getModel("anchor"),r=o.get("show");if(r){var a=o.get("size"),s=o.get("icon"),l=o.get("offsetCenter"),u=o.get("keepAspect"),c=ee(s,i.cx-a/2+H(l[0],i.r),i.cy-a/2+H(l[1],i.r),a,a,null,u);c.z2=o.get("showAbove")?1:0,c.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(t,i,o,r,a){var s=this,l=t.getData(),u=l.mapDimension("value"),c=+t.get("min"),h=+t.get("max"),p=new ot,d=[],f=[],g=t.isAnimationEnabled(),v=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){d[y]=new Dt({silent:!0}),f[y]=new Dt({silent:!0})}).update(function(y,m){d[y]=s._titleEls[m],f[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),x=l.get(u,y),_=new ot,w=r(kt(x,[c,h],[0,1],!0)),b=m.getModel("title");if(b.get("show")){var S=b.get("offsetCenter"),M=a.cx+H(S[0],a.r),I=a.cy+H(S[1],a.r),D=d[y];D.attr({z2:v?0:2,style:Ot(b,{x:M,y:I,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:w})}),_.add(D)}var T=m.getModel("detail");if(T.get("show")){var A=T.get("offsetCenter"),k=a.cx+H(A[0],a.r),L=a.cy+H(A[1],a.r),N=H(T.get("width"),a.r),E=H(T.get("height"),a.r),V=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:w,D=f[y],O=T.get("formatter");D.attr({z2:v?0:2,style:Ot(T,{x:k,y:L,text:dh(x,O),width:isNaN(N)?null:N,height:isNaN(E)?null:E,align:"center",verticalAlign:"middle"},{inheritColor:V})}),zx(D,{normal:T},x,function(F){return dh(F,O)}),g&&Bx(D,y,l,t,{getFormattedLabel:function(F,W,Z,Q,tt,ft){return dh(ft?ft.interpolatedValue:x,O)}}),_.add(D)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},e.type="gauge",e}(Vt);const L4=k4;var N4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return xa(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Ft);const E4=N4;function O4(n){n.registerChartView(L4),n.registerSeriesModel(E4)}var P4=["itemStyle","opacity"],V4=function(n){P(e,n);function e(t,i){var o=n.call(this)||this,r=o,a=new ze,s=new Dt;return r.setTextContent(s),o.setTextGuideLine(a),o.updateData(t,i,!0),o}return e.prototype.updateData=function(t,i,o){var r=this,a=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),c=s.get(P4);c=c??1,o||Mn(r),r.useStyle(t.getItemVisual(i,"style")),r.style.lineJoin="round",o?(r.setShape({points:l.points}),r.style.opacity=0,Bt(r,{style:{opacity:c}},a,i)):Tt(r,{style:{opacity:c},shape:{points:l.points}},a,i),pe(r,s),this._updateLabel(t,i),Ut(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var o=this,r=this.getTextGuideLine(),a=o.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),c=u.label,h=t.getItemVisual(i,"style"),p=h.fill;de(a,re(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:h.opacity,defaultText:t.getName(i)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),o.setTextConfig({local:!0,inside:!!c.inside,insideStroke:p,outsideFill:p});var d=c.linePoints;r.setShape({points:d}),o.textGuideLineConfig={anchor:d?new ct(d[0][0],d[0][1]):null},Tt(a,{style:{x:c.x,y:c.y}},s,i),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),pg(o,dg(l),{stroke:p})},e}(Re),R4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._data,s=this.group;r.diff(a).add(function(l){var u=new V4(r,l);r.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(r,l),s.add(c),r.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);ys(u,t,l)}).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Vt);const z4=R4;var B4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new al(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return xa(this,{coordDimensions:["value"],encodeDefaulter:at(rf,this)})},e.prototype._defaultLabelLine=function(t){So(t,"labelLine",["show"]);var i=t.labelLine,o=t.emphasis.labelLine;i.show=i.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),o=n.prototype.getDataParams.call(this,t),r=i.mapDimension("value"),a=i.getSum(r);return o.percent=a?+(i.get(r,t)/a*100).toFixed(2):0,o.$vars.push("percent"),o},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Ft);const G4=B4;function F4(n,e){return ie(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function H4(n,e){for(var t=n.mapDimension("value"),i=n.mapArray(t,function(l){return l}),o=[],r=e==="ascending",a=0,s=n.count();a<s;a++)o[a]=a;return $(e)?o.sort(e):e!=="none"&&o.sort(function(l,u){return r?i[l]-i[u]:i[u]-i[l]}),o}function W4(n){var e=n.hostModel,t=e.get("orient");n.each(function(i){var o=n.getItemModel(i),r=o.getModel("label"),a=r.get("position"),s=o.getModel("labelLine"),l=n.getItemLayout(i),u=l.points,c=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",h,p,d,f;if(c)a==="insideLeft"?(p=(u[0][0]+u[3][0])/2+5,d=(u[0][1]+u[3][1])/2,h="left"):a==="insideRight"?(p=(u[1][0]+u[2][0])/2-5,d=(u[1][1]+u[2][1])/2,h="right"):(p=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,d=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,h="center"),f=[[p,d],[p,d]];else{var g=void 0,v=void 0,y=void 0,m=void 0,x=s.get("length");process.env.NODE_ENV!=="production"&&(t==="vertical"&&["top","bottom"].indexOf(a)>-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),t==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,y=g-x,p=y-5,h="right"):a==="right"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,y=g+x,p=y+5,h="left"):a==="top"?(g=(u[3][0]+u[0][0])/2,v=(u[3][1]+u[0][1])/2,m=v-x,d=m-5,h="center"):a==="bottom"?(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,m=v+x,d=m+5,h="center"):a==="rightTop"?(g=t==="horizontal"?u[3][0]:u[1][0],v=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=v-x,d=m-5,h="center"):(y=g+x,p=y+5,h="top")):a==="rightBottom"?(g=u[2][0],v=u[2][1],t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g+x,p=y+5,h="bottom")):a==="leftTop"?(g=u[0][0],v=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=v-x,d=m-5,h="center"):(y=g-x,p=y-5,h="right")):a==="leftBottom"?(g=t==="horizontal"?u[1][0]:u[3][0],v=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g-x,p=y-5,h="right")):(g=(u[1][0]+u[2][0])/2,v=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=v+x,d=m+5,h="center"):(y=g+x,p=y+5,h="left")),t==="horizontal"?(y=g,p=y):(m=v,d=m),f=[[g,v],[y,m]]}l.label={linePoints:f,x:p,y:d,verticalAlign:"middle",textAlign:h,inside:c}})}function U4(n,e){n.eachSeriesByType("funnel",function(t){var i=t.getData(),o=i.mapDimension("value"),r=t.get("sort"),a=F4(t,e),s=t.get("orient"),l=a.width,u=a.height,c=H4(i,r),h=a.x,p=a.y,d=s==="horizontal"?[H(t.get("minSize"),u),H(t.get("maxSize"),u)]:[H(t.get("minSize"),l),H(t.get("maxSize"),l)],f=i.getDataExtent(o),g=t.get("min"),v=t.get("max");g==null&&(g=Math.min(f[0],0)),v==null&&(v=f[1]);var y=t.get("funnelAlign"),m=t.get("gap"),x=s==="horizontal"?l:u,_=(x-m*(i.count()-1))/i.count(),w=function(L,N){if(s==="horizontal"){var E=i.get(o,L)||0,V=kt(E,[g,v],d,!0),O=void 0;switch(y){case"top":O=p;break;case"center":O=p+(u-V)/2;break;case"bottom":O=p+(u-V);break}return[[N,O],[N,O+V]]}var z=i.get(o,L)||0,F=kt(z,[g,v],d,!0),W;switch(y){case"left":W=h;break;case"center":W=h+(l-F)/2;break;case"right":W=h+l-F;break}return[[W,N],[W+F,N]]};r==="ascending"&&(_=-_,m=-m,s==="horizontal"?h+=l:p+=u,c=c.reverse());for(var b=0;b<c.length;b++){var S=c[b],M=c[b+1],I=i.getItemModel(S);if(s==="horizontal"){var D=I.get(["itemStyle","width"]);D==null?D=_:(D=H(D,l),r==="ascending"&&(D=-D));var T=w(S,h),A=w(M,h+D);h+=D+m,i.setItemLayout(S,{points:T.concat(A.slice().reverse())})}else{var k=I.get(["itemStyle","height"]);k==null?k=_:(k=H(k,u),r==="ascending"&&(k=-k));var T=w(S,p),A=w(M,p+k);p+=k+m,i.setItemLayout(S,{points:T.concat(A.slice().reverse())})}}W4(i)})}function Y4(n){n.registerChartView(z4),n.registerSeriesModel(G4),n.registerLayout(U4),n.registerProcessor(rl("funnel"))}var X4=.3,Z4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ot,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,o,r){this._progressiveEls=null;var a=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,c=u.dimensions,h=I2(t);s.diff(l).add(p).update(d).remove(f).execute();function p(v){var y=M2(s,a,v,c,u);Nv(y,s,v,h)}function d(v,y){var m=l.getItemGraphicEl(y),x=S2(s,v,c,u);s.setItemGraphicEl(v,m),Tt(m,{shape:{points:x}},t,v),Mn(m),Nv(m,s,v,h)}function f(v){var y=l.getItemGraphicEl(v);a.remove(y)}if(!this._initialized){this._initialized=!0;var g=j4(u,t,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,o){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,o){for(var r=i.getData(),a=i.coordinateSystem,s=a.dimensions,l=I2(i),u=this._progressiveEls=[],c=t.start;c<t.end;c++){var h=M2(r,this._dataGroup,c,s,a);h.incremental=!0,Nv(h,r,c,l),u.push(h)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Vt);function j4(n,e,t){var i=n.model,o=n.getRect(),r=new It({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a=i.get("layout")==="horizontal"?"width":"height";return r.setShape(a,0),Bt(r,{shape:{width:o.width,height:o.height}},e,t),r}function S2(n,e,t,i){for(var o=[],r=0;r<t.length;r++){var a=t[r],s=n.get(n.mapDimension(a),e);q4(s,i.getAxis(a).type)||o.push(i.dataToPoint(s,a))}return o}function M2(n,e,t,i,o){var r=S2(n,t,i,o),a=new ze({shape:{points:r},z2:10});return e.add(a),n.setItemGraphicEl(t,a),a}function I2(n){var e=n.get("smooth",!0);return e===!0&&(e=X4),e=li(e),co(e)&&(e=0),{smooth:e}}function Nv(n,e,t,i){n.useStyle(e.getItemVisual(t,"style")),n.style.fill=null,n.setShape("smooth",i.smooth);var o=e.getItemModel(t),r=o.getModel("emphasis");pe(n,o,"lineStyle"),Ut(n,r.get("focus"),r.get("blurScope"),r.get("disabled"))}function q4(n,e){return e==="category"?n==null:n==null||isNaN(n)}const $4=Z4;var K4=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return yi(null,this,{useEncodeDefaulter:X(J4,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,o=this.getData(),r=[];return i.eachActiveState(o,function(a,s){t===a&&r.push(o.getRawIndex(s))}),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(Ft);function J4(n){var e=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(e){var t={};return C(e.dimensions,function(i){var o=Q4(i);t[i]=o}),t}}function Q4(n){return+n.replace("dim","")}const tH=K4;var eH=["lineStyle","opacity"],nH={seriesType:"parallel",reset:function(n,e){var t=n.coordinateSystem,i={normal:n.get(["lineStyle","opacity"]),active:n.get("activeOpacity"),inactive:n.get("inactiveOpacity")};return{progress:function(o,r){t.eachActiveState(r,function(a,s){var l=i[a];if(a==="normal"&&r.hasItemOption){var u=r.getItemModel(s).get(eH,!0);u!=null&&(l=u)}var c=r.ensureUniqueItemVisual(s,"style");c.opacity=l},o.start,o.end)}}}};const iH=nH;function oH(n){rH(n),aH(n)}function rH(n){if(!n.parallel){var e=!1;C(n.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(n.parallel=[{}])}}function aH(n){var e=Nt(n.parallelAxis);C(e,function(t){if(K(t)){var i=t.parallelIndex||0,o=Nt(n.parallel)[i];o&&o.parallelAxisDefault&&ht(t,o.parallelAxisDefault,!1)}})}var sH=5,lH=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this._model=t,this._api=o,this._handlers||(this._handlers={},C(uH,function(r,a){o.getZr().on(a,this._handlers[a]=X(r,this))},this)),la(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Os(this,"_throttledDispatchExpand"),C(this._handlers,function(o,r){i.getZr().off(r,o)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(R({type:"parallelAxisExpand"},t))},e.type="parallel",e}(Yt),uH={mousedown:function(n){Ev(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var e=this._mouseDownPoint;if(Ev(this,"click")&&e){var t=[n.offsetX,n.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>sH)return;var o=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);o.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:o.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!(this._mouseDownPoint||!Ev(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function Ev(n,e){var t=n._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const cH=lH;var hH=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&ht(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var o=t.get("parallelIndex");return o!=null&&i.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){C(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],o=Lt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this);C(o,function(r){t.push("dim"+r.get("dim")),i.push(r.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(bt);const pH=hH;var dH=function(n){P(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(An);const fH=dH;function mr(n,e,t,i,o,r){n=n||0;var a=t[1]-t[0];if(o!=null&&(o=Ia(o,[0,a])),r!=null&&(r=Math.max(r,o??0)),i==="all"){var s=Math.abs(e[1]-e[0]);s=Ia(s,[0,a]),o=r=Ia(s,[o,r]),i=0}e[0]=Ia(e[0],t),e[1]=Ia(e[1],t);var l=Ov(e,i);e[i]+=n;var u=o||0,c=t.slice();l.sign<0?c[0]+=u:c[1]-=u,e[i]=Ia(e[i],c);var h;return h=Ov(e,i),o!=null&&(h.sign!==l.sign||h.span<o)&&(e[1-i]=e[i]+l.sign*o),h=Ov(e,i),r!=null&&h.span>r&&(e[1-i]=e[i]+h.sign*r),e}function Ov(n,e){var t=n[e]-n[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Ia(n,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,n))}var Pv=C,C2=Math.min,D2=Math.max,T2=Math.floor,gH=Math.ceil,A2=Zt,vH=Math.PI,yH=function(){function n(e,t,i){this.type="parallel",this._axesMap=j(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=e.dimensions,r=e.parallelAxisIndex;Pv(o,function(a,s){var l=r[s],u=t.getComponent("parallelAxis",l),c=this._axesMap.set(a,new fH(a,Vc(u),[0,0],u.get("type"),l)),h=c.type==="category";c.onBand=h&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},n.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,o=t.layoutBase,r=t.pixelDimIndex,a=e[1-r],s=e[r];return a>=i&&a<=i+t.axisLength&&s>=o&&s<=o+t.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(i){if(e.contains(i,t)){var o=i.getData();Pv(this.dimensions,function(r){var a=this._axesMap.get(r);a.scale.unionExtentFromData(o,o.mapDimension(r)),va(a.scale,a.model)},this)}},this)},n.prototype.resize=function(e,t){this._rect=ie(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],o=["width","height"],r=e.get("layout"),a=r==="horizontal"?0:1,s=t[o[a]],l=[0,s],u=this.dimensions.length,c=fh(e.get("axisExpandWidth"),l),h=fh(e.get("axisExpandCount")||0,[0,u]),p=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,d=e.get("axisExpandWindow"),f;if(d)f=fh(d[1]-d[0],l),d[1]=d[0]+f;else{f=fh(c*(h-1),l);var g=e.get("axisExpandCenter")||T2(u/2);d=[c*g-f/2],d[1]=d[0]+f}var v=(s-f)/(u-h);v<3&&(v=0);var y=[T2(A2(d[0]/c,1))+1,gH(A2(d[1]/c,1))-1],m=v/c*d[0];return{layout:r,pixelDimIndex:a,layoutBase:t[i[a]],layoutLength:s,axisBase:t[i[1-a]],axisLength:t[o[1-a]],axisExpandable:p,axisExpandWidth:c,axisCollapseWidth:v,axisExpandWindow:d,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},n.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,o=this._makeLayoutInfo(),r=o.layout;t.each(function(a){var s=[0,o.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),Pv(i,function(a,s){var l=(o.axisExpandable?xH:mH)(s,o),u={horizontal:{x:l.position,y:o.axisLength},vertical:{x:0,y:l.position}},c={horizontal:vH/2,vertical:0},h=[u[r].x+e.x,u[r].y+e.y],p=c[r],d=$e();go(d,d,p),En(d,d,h),this._axesLayout[a]={position:h,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(e){return this._axesMap.get(e)},n.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},n.prototype.eachActiveState=function(e,t,i,o){i==null&&(i=0),o==null&&(o=e.count());var r=this._axesMap,a=this.dimensions,s=[],l=[];C(a,function(v){s.push(e.mapDimension(v)),l.push(r.get(v).model)});for(var u=this.hasAxisBrushed(),c=i;c<o;c++){var h=void 0;if(!u)h="normal";else{h="active";for(var p=e.getValues(s,c),d=0,f=a.length;d<f;d++){var g=l[d].getActiveState(p[d]);if(g==="inactive"){h="inactive";break}}}t(h,c)}},n.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,o=0,r=e.length;o<r;o++)t.get(e[o]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return Cn([e,0],i.transform)},n.prototype.getAxisLayout=function(e){return it(this._axesLayout[e])},n.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,o=t.axisExpandWindow.slice(),r=o[1]-o[0],a=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:o};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",c=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),p=h[0]!=null;if(c)p&&c&&s<r*h[0]?(u="jump",l=s-r*h[2]):p&&c&&s>r*(1-h[0])?(u="jump",l=s-r*(1-h[2])):(l=s-r*h[1])>=0&&(l=s-r*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/c,l?mr(l,o,a,"all"):u="none";else{var d=o[1]-o[0],f=a[1]*s/d;o=[D2(0,f-d/2)],o[1]=C2(a[1],o[0]+d),o[0]=o[1]-d}return{axisExpandWindow:o,behavior:u}},n}();function fh(n,e){return C2(D2(n,e[0]),e[1])}function mH(n,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*n,axisNameAvailableWidth:t,axisLabelShow:!0}}function xH(n,e){var t=e.layoutLength,i=e.axisExpandWidth,o=e.axisCount,r=e.axisCollapseWidth,a=e.winInnerIndices,s,l=r,u=!1,c;return n<a[0]?(s=n*r,c=r):n<=a[1]?(s=e.axisExpandWindow0Pos+n*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(o-1-n)*r,c=r),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}const _H=yH;function bH(n,e){var t=[];return n.eachComponent("parallel",function(i,o){var r=new _H(i,n,e);r.name="parallel_"+o,r.resize(i,e),i.coordinateSystem=r,r.model=i,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var o=i.getReferringComponents("parallel",Qt).models[0];i.coordinateSystem=o.coordinateSystem}}),t}var wH={create:bH};const SH=wH;var k2=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return Co([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=it(t);if(i)for(var o=i.length-1;o>=0;o--)Qe(i[o])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var o=i[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var r=0,a=i.length;r<a;r++)if(i[r][0]<=t&&t<=i[r][1])return"active";return"inactive"},e}(bt);$t(k2,qs);const L2=k2;var xr=!0,Sl=Math.min,Ca=Math.max,MH=Math.pow,IH=1e4,CH=6,DH=6,N2="globalPan",TH={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},AH={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},E2={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},kH=0,LH=function(n){P(e,n);function e(t){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},process.env.NODE_ENV!=="production"&&J(t),i._zr=t,i.group=new ot,i._uid="brushController_"+kH++,C(zH,function(o,r){this._handlers[r]=X(o,this)},i),i}return e.prototype.enableBrush=function(t){return process.env.NODE_ENV!=="production"&&J(this._mounted),this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||FB(i,N2,this._uid),C(this._handlers,function(o,r){i.on(r,o)}),this._brushType=t.brushType,this._brushOption=ht(it(E2),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;HB(t,N2,this._uid),C(this._handlers,function(i,o){t.off(o,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};C(t,function(o){i[o.panelId]=it(o)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){process.env.NODE_ENV!=="production"&&J(this._mounted),t=G(t,function(p){return ht(it(E2),p,!0)});var i="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new vi(o,t,u,l).add(c).update(c).remove(h).execute(),this;function l(p,d){return(p.id!=null?p.id:i+d)+"-"+p.brushType}function u(p,d){return l(p.__brushOption,d)}function c(p,d){var f=t[p];if(d!=null&&o[d]===s)r[p]=o[d];else{var g=r[p]=d!=null?(o[d].__brushOption=f,o[d]):P2(a,O2(a,f));Vv(a,g)}}function h(p){o[p]!==s&&a.group.remove(o[p])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Bv(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(je);function O2(n,e){var t=gh[e.brushType].createCover(n,e);return t.__brushOption=e,R2(t,e),n.group.add(t),t}function P2(n,e){var t=Rv(e);return t.endCreating&&(t.endCreating(n,e),R2(e,e.__brushOption)),e}function V2(n,e){var t=e.__brushOption;Rv(e).updateCoverShape(n,e,t.range,t)}function R2(n,e){var t=e.z;t==null&&(t=IH),n.traverse(function(i){i.z=t,i.z2=t})}function Vv(n,e){Rv(e).updateCommon(n,e),V2(n,e)}function Rv(n){return gh[n.__brushOption.brushType]}function zv(n,e,t){var i=n._panels;if(!i)return xr;var o,r=n._transform;return C(i,function(a){a.isTargetByCursor(e,t,r)&&(o=a)}),o}function z2(n,e){var t=n._panels;if(!t)return xr;var i=e.__brushOption.panelId;return i!=null?t[i]:xr}function Bv(n){var e=n._covers,t=e.length;return C(e,function(i){n.group.remove(i)},n),e.length=0,!!t}function _r(n,e){var t=G(n._covers,function(i){var o=i.__brushOption,r=it(o.range);return{brushType:o.brushType,panelId:o.panelId,range:r}});n.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function NH(n){var e=n._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],o=t[0]-i[0],r=t[1]-i[1],a=MH(o*o+r*r,.5);return a>CH}function B2(n){var e=n.length-1;return e<0&&(e=0),[n[0],n[e]]}function G2(n,e,t,i){var o=new ot;return o.add(new It({name:"main",style:Fv(t),silent:!0,draggable:!0,cursor:"move",drift:at(W2,n,e,o,["n","s","w","e"]),ondragend:at(_r,e,{isEnd:!0})})),C(i,function(r){o.add(new It({name:r.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:at(W2,n,e,o,r),ondragend:at(_r,e,{isEnd:!0})}))}),o}function F2(n,e,t,i){var o=i.brushStyle.lineWidth||0,r=Ca(o,DH),a=t[0][0],s=t[1][0],l=a-o/2,u=s-o/2,c=t[0][1],h=t[1][1],p=c-r+o/2,d=h-r+o/2,f=c-a,g=h-s,v=f+o,y=g+o;bi(n,e,"main",a,s,f,g),i.transformable&&(bi(n,e,"w",l,u,r,y),bi(n,e,"e",p,u,r,y),bi(n,e,"n",l,u,v,r),bi(n,e,"s",l,d,v,r),bi(n,e,"nw",l,u,r,r),bi(n,e,"ne",p,u,r,r),bi(n,e,"sw",l,d,r,r),bi(n,e,"se",p,d,r,r))}function Gv(n,e){var t=e.__brushOption,i=t.transformable,o=e.childAt(0);o.useStyle(Fv(t)),o.attr({silent:!i,cursor:i?"move":"default"}),C([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(r){var a=e.childOfName(r.join("")),s=r.length===1?Hv(n,r[0]):OH(n,r);a&&a.attr({silent:!i,invisible:!i,cursor:i?AH[s]+"-resize":null})})}function bi(n,e,t,i,o,r,a){var s=e.childOfName(t);s&&s.setShape(VH(Wv(n,e,[[i,o],[i+r,o+a]])))}function Fv(n){return et({strokeNoScale:!0},n.brushStyle)}function H2(n,e,t,i){var o=[Sl(n,t),Sl(e,i)],r=[Ca(n,t),Ca(e,i)];return[[o[0],r[0]],[o[1],r[1]]]}function EH(n){return Ho(n.group)}function Hv(n,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},o=Uu(t[e],EH(n));return i[o]}function OH(n,e){var t=[Hv(n,e[0]),Hv(n,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function W2(n,e,t,i,o,r){var a=t.__brushOption,s=n.toRectRange(a.range),l=U2(e,o,r);C(i,function(u){var c=TH[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=n.fromRectRange(H2(s[0][0],s[1][0],s[0][1],s[1][1])),Vv(e,t),_r(e,{isEnd:!1})}function PH(n,e,t,i){var o=e.__brushOption.range,r=U2(n,t,i);C(o,function(a){a[0]+=r[0],a[1]+=r[1]}),Vv(n,e),_r(n,{isEnd:!1})}function U2(n,e,t){var i=n.group,o=i.transformCoordToLocal(e,t),r=i.transformCoordToLocal(0,0);return[o[0]-r[0],o[1]-r[1]]}function Wv(n,e,t){var i=z2(n,e);return i&&i!==xr?i.clipPath(t,n._transform):it(t)}function VH(n){var e=Sl(n[0][0],n[1][0]),t=Sl(n[0][1],n[1][1]),i=Ca(n[0][0],n[1][0]),o=Ca(n[0][1],n[1][1]);return{x:e,y:t,width:i-e,height:o-t}}function RH(n,e,t){if(!(!n._brushType||BH(n,e.offsetX,e.offsetY))){var i=n._zr,o=n._covers,r=zv(n,e,t);if(!n._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===xr||s.panelId===r.panelId)&&gh[s.brushType].contain(o[a],t[0],t[1]))return}r&&i.setCursorStyle("crosshair")}}function Uv(n){var e=n.event;e.preventDefault&&e.preventDefault()}function Yv(n,e,t){return n.childOfName("main").contain(e,t)}function Y2(n,e,t,i){var o=n._creatingCover,r=n._creatingPanel,a=n._brushOption,s;if(n._track.push(t.slice()),NH(n)||o){if(r&&!o){a.brushMode==="single"&&Bv(n);var l=it(a);l.brushType=X2(l.brushType,r),l.panelId=r===xr?null:r.panelId,o=n._creatingCover=O2(n,l),n._covers.push(o)}if(o){var u=gh[X2(n._brushType,r)],c=o.__brushOption;c.range=u.getCreatingRange(Wv(n,o,n._track)),i&&(P2(n,o),u.updateCommon(n,o)),V2(n,o),s={isEnd:i}}}else i&&a.brushMode==="single"&&a.removeOnClick&&zv(n,e,t)&&Bv(n)&&(s={isEnd:i,removeOnClick:!0});return s}function X2(n,e){return n==="auto"?(process.env.NODE_ENV!=="production"&&J(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):n}var zH={mousedown:function(n){if(this._dragging)Z2(this,n);else if(!n.target||!n.target.draggable){Uv(n);var e=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null;var t=this._creatingPanel=zv(this,n,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(n){var e=n.offsetX,t=n.offsetY,i=this.group.transformCoordToLocal(e,t);if(RH(this,n,i),this._dragging){Uv(n);var o=Y2(this,n,i,!1);o&&_r(this,o)}},mouseup:function(n){Z2(this,n)}};function Z2(n,e){if(n._dragging){Uv(e);var t=e.offsetX,i=e.offsetY,o=n.group.transformCoordToLocal(t,i),r=Y2(n,e,o,!0);n._dragging=!1,n._track=[],n._creatingCover=null,r&&_r(n,r)}}function BH(n,e,t){var i=n._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var gh={lineX:j2(0),lineY:j2(1),rect:{createCover:function(n,e){function t(i){return i}return G2({toRectRange:t,fromRectRange:t},n,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var e=B2(n);return H2(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(n,e,t,i){F2(n,e,t,i)},updateCommon:Gv,contain:Yv},polygon:{createCover:function(n,e){var t=new ot;return t.add(new ze({name:"main",style:Fv(e),silent:!0})),t},getCreatingRange:function(n){return n},endCreating:function(n,e){e.remove(e.childAt(0)),e.add(new Re({name:"main",draggable:!0,drift:at(PH,n,e),ondragend:at(_r,n,{isEnd:!0})}))},updateCoverShape:function(n,e,t,i){e.childAt(0).setShape({points:Wv(n,e,t)})},updateCommon:Gv,contain:Yv}};function j2(n){return{createCover:function(e,t){return G2({toRectRange:function(i){var o=[i,[0,100]];return n&&o.reverse(),o},fromRectRange:function(i){return i[n]}},e,t,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(e){var t=B2(e),i=Sl(t[0][n],t[1][n]),o=Ca(t[0][n],t[1][n]);return[i,o]},updateCoverShape:function(e,t,i,o){var r,a=z2(e,t);if(a!==xr&&a.getLinearBrushOtherExtent)r=a.getLinearBrushOtherExtent(n);else{var s=e._zr;r=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,r];n&&l.reverse(),F2(e,t,l,o)},updateCommon:Gv,contain:Yv}}const Xv=LH;function q2(n){return n=Zv(n),function(e){return Ax(e,n)}}function $2(n,e){return n=Zv(n),function(t){var i=e??t,o=i?n.width:n.height,r=i?n.x:n.y;return[r,r+(o||0)]}}function K2(n,e,t){var i=Zv(n);return function(o,r){return i.contain(r[0],r[1])&&!th(o,e,t)}}function Zv(n){return pt.create(n)}var GH=["axisLine","axisTickLabel","axisName"],FH=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){n.prototype.init.apply(this,arguments),(this._brushController=new Xv(i.getZr())).on("brush",X(this._onBrush,this))},e.prototype.render=function(t,i,o,r){if(!HH(t,i,r)){this.axisModel=t,this.api=o,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new ot,this.group.add(this._axisGroup),!!t.get("show")){var s=UH(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),c=u.width,h=t.axis.dim,p=l.getAxisLayout(h),d=R({strokeContainThreshold:c},p),f=new xi(t,d);C(GH,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,u,t,s,c,o),ms(a,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,o,r,a,s){var l=o.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),h=pt.create({x:l[0],y:-a/2,width:u,height:a});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:q2(h),isTargetByCursor:K2(h,s,r),getLinearBrushOtherExtent:$2(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(WH(o))},e.prototype._onBrush=function(t){var i=t.areas,o=this.axisModel,r=o.axis,a=G(i,function(s){return[r.coordToData(s.range[0],!0),r.coordToData(s.range[1],!0)]});(!o.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:o.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(Yt);function HH(n,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===n}function WH(n){var e=n.axis;return G(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function UH(n,e){return e.getComponent("parallel",n.get("parallelIndex"))}const YH=FH;var XH={type:"axisAreaSelect",event:"axisAreaSelected"};function ZH(n){n.registerAction(XH,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),n.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var jH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function J2(n){n.registerComponentView(cH),n.registerComponentModel(pH),n.registerCoordinateSystem("parallel",SH),n.registerPreprocessor(oH),n.registerComponentModel(L2),n.registerComponentView(YH),_a(n,"parallel",L2,jH),ZH(n)}function qH(n){yt(J2),n.registerChartView($4),n.registerSeriesModel(tH),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,iH)}var $H=function(){function n(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return n}(),KH=function(n){P(e,n);function e(t){return n.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $H},e.prototype.buildPath=function(t,i){var o=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+o,i.y2),t.bezierCurveTo(i.cpx2+o,i.cpy2,i.cpx1+o,i.cpy1,i.x1+o,i.y1)):(t.lineTo(i.x2,i.y2+o),t.bezierCurveTo(i.cpx2,i.cpy2+o,i.cpx1,i.cpy1+o,i.x1,i.y1+o)),t.closePath()},e.prototype.highlight=function(){pi(this)},e.prototype.downplay=function(){di(this)},e}(mt),JH=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._focusAdjacencyDisabled=!1,t}return e.prototype.render=function(t,i,o){var r=this,a=t.getGraph(),s=this.group,l=t.layoutInfo,u=l.width,c=l.height,h=t.getData(),p=t.getData("edge"),d=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(f){var g=new KH,v=rt(g);v.dataIndex=f.dataIndex,v.seriesIndex=t.seriesIndex,v.dataType="edge";var y=f.getModel(),m=y.getModel("lineStyle"),x=m.get("curveness"),_=f.node1.getLayout(),w=f.node1.getModel(),b=w.get("localX"),S=w.get("localY"),M=f.node2.getLayout(),I=f.node2.getModel(),D=I.get("localX"),T=I.get("localY"),A=f.getLayout(),k,L,N,E,V,O,z,F;g.shape.extent=Math.max(1,A.dy),g.shape.orient=d,d==="vertical"?(k=(b!=null?b*u:_.x)+A.sy,L=(S!=null?S*c:_.y)+_.dy,N=(D!=null?D*u:M.x)+A.ty,E=T!=null?T*c:M.y,V=k,O=L*(1-x)+E*x,z=N,F=L*x+E*(1-x)):(k=(b!=null?b*u:_.x)+_.dx,L=(S!=null?S*c:_.y)+A.sy,N=D!=null?D*u:M.x,E=(T!=null?T*c:M.y)+A.ty,V=k*(1-x)+N*x,O=L,z=k*x+N*(1-x),F=E),g.setShape({x1:k,y1:L,x2:N,y2:E,cpx1:V,cpy1:O,cpx2:z,cpy2:F}),g.useStyle(m.getItemStyle()),Q2(g.style,d,f);var W=""+y.get("value"),Z=re(y,"edgeLabel");de(g,Z,{labelFetcher:{getFormattedLabel:function(ft,_t,gt,nt,vt,st){return t.getFormattedLabel(ft,_t,"edge",nt,Ze(vt,Z.normal&&Z.normal.get("formatter"),W),st)}},labelDataIndex:f.dataIndex,defaultText:W}),g.setTextConfig({position:"inside"});var Q=y.getModel("emphasis");pe(g,y,"lineStyle",function(ft){var _t=ft.getItemStyle();return Q2(_t,d,f),_t}),s.add(g),p.setItemGraphicEl(f.dataIndex,g);var tt=Q.get("focus");Ut(g,tt==="adjacency"?f.getAdjacentDataIndices():tt==="trajectory"?f.getTrajectoryDataIndices():tt,Q.get("blurScope"),Q.get("disabled"))}),a.eachNode(function(f){var g=f.getLayout(),v=f.getModel(),y=v.get("localX"),m=v.get("localY"),x=v.getModel("emphasis"),_=new It({shape:{x:y!=null?y*u:g.x,y:m!=null?m*c:g.y,width:g.dx,height:g.dy},style:v.getModel("itemStyle").getItemStyle(),z2:10});de(_,re(v),{labelFetcher:{getFormattedLabel:function(b,S){return t.getFormattedLabel(b,S,"node")}},labelDataIndex:f.dataIndex,defaultText:f.id}),_.disableLabelAnimation=!0,_.setStyle("fill",f.getVisual("color")),_.setStyle("decal",f.getVisual("style").decal),pe(_,v),s.add(_),h.setItemGraphicEl(f.dataIndex,_),rt(_).dataType="node";var w=x.get("focus");Ut(_,w==="adjacency"?f.getAdjacentDataIndices():w==="trajectory"?f.getTrajectoryDataIndices():w,x.get("blurScope"),x.get("disabled"))}),h.eachItemGraphicEl(function(f,g){var v=h.getItemModel(g);v.get("draggable")&&(f.drift=function(y,m){r._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),o.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:h.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},f.ondragend=function(){r._focusAdjacencyDisabled=!1},f.draggable=!0,f.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(QH(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Vt);function Q2(n,e,t){switch(n.fill){case"source":n.fill=t.node1.getVisual("color"),n.decal=t.node1.getVisual("style").decal;break;case"target":n.fill=t.node2.getVisual("color"),n.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),o=t.node2.getVisual("color");U(i)&&U(o)&&(n.fill=new vs(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:o,offset:1}]))}}function QH(n,e,t){var i=new It({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Bt(i,{shape:{width:n.width+20}},e,t),i}const tW=JH;var eW=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var o=t.edges||t.links,r=t.data||t.nodes,a=t.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)if(a[l].depth!=null&&a[l].depth>=0)s[a[l].depth]=new Pt(a[l],this,i);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(r&&o){var u=w2(r,o,this,!0,c);return u.data}function c(h,p){h.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,v=g.getData().getItemLayout(f);if(v){var y=v.depth,m=g.levelModels[y];m&&(d.parentModel=m)}return d}),p.wrapMethod("getItemModel",function(d,f){var g=d.parentModel,v=g.getGraph().getEdgeByIndex(f),y=v.node1.getLayout();if(y){var m=y.depth,x=g.levelModels[m];x&&(d.parentModel=x)}return d})}},e.prototype.setNodePosition=function(t,i){var o=this.option.data||this.option.nodes,r=o[t];r.localX=i[0],r.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,o){function r(d){return isNaN(d)||d==null}if(o==="edge"){var a=this.getDataParams(t,o),s=a.data,l=a.value,u=s.source+" -- "+s.target;return ae("nameValue",{name:u,value:l,noValue:r(l)})}else{var c=this.getGraph().getNodeByIndex(t),h=c.getLayout().value,p=this.getDataParams(t,o).data.name;return ae("nameValue",{name:p!=null?p+"":null,value:h,noValue:r(h)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var o=n.prototype.getDataParams.call(this,t,i);if(o.value==null&&i==="node"){var r=this.getGraph().getNodeByIndex(t),a=r.getLayout().value;o.value=a}return o},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Ft);const nW=eW;function iW(n,e){n.eachSeriesByType("sankey",function(t){var i=t.get("nodeWidth"),o=t.get("nodeGap"),r=oW(t,e);t.layoutInfo=r;var a=r.width,s=r.height,l=t.getGraph(),u=l.nodes,c=l.edges;aW(u);var h=Lt(u,function(g){return g.getLayout().value===0}),p=h.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),f=t.get("nodeAlign");rW(u,c,i,o,a,s,p,d,f)})}function oW(n,e){return ie(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function rW(n,e,t,i,o,r,a,s,l){sW(n,e,t,o,r,s,l),hW(n,e,r,o,i,a,s),_W(n,s)}function aW(n){C(n,function(e){var t=no(e.outEdges,vh),i=no(e.inEdges,vh),o=e.getValue()||0,r=Math.max(t,i,o);e.setLayout({value:r},!0)})}function sW(n,e,t,i,o,r,a){for(var s=[],l=[],u=[],c=[],h=0,p=0;p<e.length;p++)s[p]=1;for(var p=0;p<n.length;p++)l[p]=n[p].inEdges.length,l[p]===0&&u.push(n[p]);for(var d=-1;u.length;){for(var f=0;f<u.length;f++){var g=u[f],v=g.hostGraph.data.getRawDataItem(g.dataIndex),y=v.depth!=null&&v.depth>=0;y&&v.depth>d&&(d=v.depth),g.setLayout({depth:y?v.depth:h},!0),r==="vertical"?g.setLayout({dy:t},!0):g.setLayout({dx:t},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m],_=e.indexOf(x);s[_]=0;var w=x.node2,b=n.indexOf(w);--l[b]===0&&c.indexOf(w)<0&&c.push(w)}}++h,u=c,c=[]}for(var p=0;p<s.length;p++)if(s[p]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var S=d>h-1?d:h-1;a&&a!=="left"&&lW(n,a,r,S);var M=r==="vertical"?(o-t)/S:(i-t)/S;cW(n,M,r)}function tC(n){var e=n.hostGraph.data.getRawDataItem(n.dataIndex);return e.depth!=null&&e.depth>=0}function lW(n,e,t,i){if(e==="right"){for(var o=[],r=n,a=0;r.length;){for(var s=0;s<r.length;s++){var l=r[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];o.indexOf(c.node1)<0&&o.push(c.node1)}}r=o,o=[],++a}C(n,function(h){tC(h)||h.setLayout({depth:Math.max(0,i-h.getLayout().skNodeHeight)},!0)})}else e==="justify"&&uW(n,i)}function uW(n,e){C(n,function(t){!tC(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function cW(n,e,t){C(n,function(i){var o=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:o},!0):i.setLayout({x:o},!0)})}function hW(n,e,t,i,o,r,a){var s=pW(n,a);dW(s,e,t,i,o,a),jv(s,o,t,i,a);for(var l=1;r>0;r--)l*=.99,fW(s,l,a),jv(s,o,t,i,a),xW(s,l,a),jv(s,o,t,i,a)}function pW(n,e){var t=[],i=e==="vertical"?"y":"x",o=od(n,function(r){return r.getLayout()[i]});return o.keys.sort(function(r,a){return r-a}),C(o.keys,function(r){t.push(o.buckets.get(r))}),t}function dW(n,e,t,i,o,r){var a=1/0;C(n,function(s){var l=s.length,u=0;C(s,function(h){u+=h.getLayout().value});var c=r==="vertical"?(i-(l-1)*o)/u:(t-(l-1)*o)/u;c<a&&(a=c)}),C(n,function(s){C(s,function(l,u){var c=l.getLayout().value*a;r==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),C(e,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function jv(n,e,t,i,o){var r=o==="vertical"?"x":"y";C(n,function(a){a.sort(function(g,v){return g.getLayout()[r]-v.getLayout()[r]});for(var s,l,u,c=0,h=a.length,p=o==="vertical"?"dx":"dy",d=0;d<h;d++)l=a[d],u=c-l.getLayout()[r],u>0&&(s=l.getLayout()[r]+u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[r]+l.getLayout()[p]+e;var f=o==="vertical"?i:t;if(u=c-e-f,u>0){s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var d=h-2;d>=0;--d)l=a[d],u=l.getLayout()[r]+l.getLayout()[p]+e-c,u>0&&(s=l.getLayout()[r]-u,o==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[r]}})}function fW(n,e,t){C(n.slice().reverse(),function(i){C(i,function(o){if(o.outEdges.length){var r=no(o.outEdges,gW,t)/no(o.outEdges,vh);if(isNaN(r)){var a=o.outEdges.length;r=a?no(o.outEdges,vW,t)/a:0}if(t==="vertical"){var s=o.getLayout().x+(r-eo(o,t))*e;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(r-eo(o,t))*e;o.setLayout({y:l},!0)}}})})}function gW(n,e){return eo(n.node2,e)*n.getValue()}function vW(n,e){return eo(n.node2,e)}function yW(n,e){return eo(n.node1,e)*n.getValue()}function mW(n,e){return eo(n.node1,e)}function eo(n,e){return e==="vertical"?n.getLayout().x+n.getLayout().dx/2:n.getLayout().y+n.getLayout().dy/2}function vh(n){return n.getValue()}function no(n,e,t){for(var i=0,o=n.length,r=-1;++r<o;){var a=+e(n[r],t);isNaN(a)||(i+=a)}return i}function xW(n,e,t){C(n,function(i){C(i,function(o){if(o.inEdges.length){var r=no(o.inEdges,yW,t)/no(o.inEdges,vh);if(isNaN(r)){var a=o.inEdges.length;r=a?no(o.inEdges,mW,t)/a:0}if(t==="vertical"){var s=o.getLayout().x+(r-eo(o,t))*e;o.setLayout({x:s},!0)}else{var l=o.getLayout().y+(r-eo(o,t))*e;o.setLayout({y:l},!0)}}})})}function _W(n,e){var t=e==="vertical"?"x":"y";C(n,function(i){i.outEdges.sort(function(o,r){return o.node2.getLayout()[t]-r.node2.getLayout()[t]}),i.inEdges.sort(function(o,r){return o.node1.getLayout()[t]-r.node1.getLayout()[t]})}),C(n,function(i){var o=0,r=0;C(i.outEdges,function(a){a.setLayout({sy:o},!0),o+=a.getLayout().dy}),C(i.inEdges,function(a){a.setLayout({ty:r},!0),r+=a.getLayout().dy})})}function bW(n){n.eachSeriesByType("sankey",function(e){var t=e.getGraph(),i=t.nodes,o=t.edges;if(i.length){var r=1/0,a=-1/0;C(i,function(s){var l=s.getLayout().value;l<r&&(r=l),l>a&&(a=l)}),C(i,function(s){var l=new ge({type:"color",mappingMethod:"linear",dataExtent:[r,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}o.length&&C(o,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function wW(n){n.registerChartView(tW),n.registerSeriesModel(nW),n.registerLayout(iW),n.registerVisual(bW),n.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var eC=function(){function n(){}return n.prototype.getInitialData=function(e,t){var i,o=t.getComponent("xAxis",this.get("xAxisIndex")),r=t.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type"),l;a==="category"?(e.layout="horizontal",i=o.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",i=r.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,h=this._baseAxisDim=u[c],p=u[1-c],d=[o,r],f=d[c].get("type"),g=d[1-c].get("type"),v=e.data;if(v&&l){var y=[];C(v,function(_,w){var b;B(_)?(b=_.slice(),_.unshift(w)):B(_.value)?(b=R({},_),b.value=b.value.slice(),_.value.unshift(w)):b=_,y.push(b)}),e.data=y}var m=this.defaultValueDimensions,x=[{name:h,type:Ic(f),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Ic(g),dimsDef:m.slice()}];return xa(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:at(c_,x,this)})},n.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},n}(),nC=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Ft);$t(nC,eC,!0);const SW=nC;var MW=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=t.get("layout")==="horizontal"?1:0;r.diff(s).add(function(u){if(r.hasValue(u)){var c=r.getItemLayout(u),h=iC(c,r,u,l,!0);r.setItemGraphicEl(u,h),a.add(h)}}).update(function(u,c){var h=s.getItemGraphicEl(c);if(!r.hasValue(u)){a.remove(h);return}var p=r.getItemLayout(u);h?(Mn(h),oC(p,h,r,u)):h=iC(p,r,u,l),a.add(h),r.setItemGraphicEl(u,h)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=r},e.prototype.remove=function(t){var i=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl(function(r){r&&i.remove(r)})},e.type="boxplot",e}(Vt),IW=function(){function n(){}return n}(),CW=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new IW},e.prototype.buildPath=function(t,i){var o=i.points,r=0;for(t.moveTo(o[r][0],o[r][1]),r++;r<4;r++)t.lineTo(o[r][0],o[r][1]);for(t.closePath();r<o.length;r++)t.moveTo(o[r][0],o[r][1]),r++,t.lineTo(o[r][0],o[r][1])},e}(mt);function iC(n,e,t,i,o){var r=n.ends,a=new CW({shape:{points:o?DW(r,i,n):r}});return oC(n,a,e,t,o),a}function oC(n,e,t,i,o){var r=t.hostModel,a=bs[o?"initProps":"updateProps"];a(e,{shape:{points:n.ends}},r,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");pe(e,s),Ut(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function DW(n,e,t){return G(n,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}const TW=MW;var Ml=C;function AW(n){var e=kW(n);Ml(e,function(t){var i=t.seriesModels;i.length&&(LW(t),Ml(i,function(o,r){NW(o,t.boxOffsetList[r],t.boxWidthList[r])}))})}function kW(n){var e=[],t=[];return n.eachSeriesByType("boxplot",function(i){var o=i.getBaseAxis(),r=dt(t,o);r<0&&(r=t.length,t[r]=o,e[r]={axis:o,seriesModels:[]}),e[r].seriesModels.push(i)}),e}function LW(n){var e=n.axis,t=n.seriesModels,i=t.length,o=n.boxWidthList=[],r=n.boxOffsetList=[],a=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;Ml(t,function(f){l=Math.max(l,f.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}Ml(t,function(f){var g=f.get("boxWidth");B(g)||(g=[g,g]),a.push([H(g[0],s)||0,H(g[1],s)||0])});var c=s*.8-2,h=c/i*.3,p=(c-h*(i-1))/i,d=p/2-c/2;Ml(t,function(f,g){r.push(d),d+=h+p,o.push(Math.min(Math.max(p,a[g][0]),a[g][1]))})}function NW(n,e,t){var i=n.coordinateSystem,o=n.getData(),r=t/2,a=n.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],u=o.mapDimension(l[a]),c=o.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var h=0;h<o.count();h++){var p=o.get(u,h),d=x(p,c[2],h),f=x(p,c[0],h),g=x(p,c[1],h),v=x(p,c[3],h),y=x(p,c[4],h),m=[];_(m,g,!1),_(m,v,!0),m.push(f,g,y,v),w(m,f),w(m,y),w(m,d),o.setItemLayout(h,{initBaseline:d[s],ends:m})}function x(b,S,M){var I=o.get(S,M),D=[];D[a]=b,D[s]=I;var T;return isNaN(b)||isNaN(I)?T=[NaN,NaN]:(T=i.dataToPoint(D),T[a]+=e),T}function _(b,S,M){var I=S.slice(),D=S.slice();I[a]+=r,D[a]-=r,M?b.push(I,D):b.push(D,I)}function w(b,S){var M=S.slice(),I=S.slice();M[a]-=r,I[a]+=r,b.push(M,I)}}function EW(n,e){e=e||{};for(var t=[],i=[],o=e.boundIQR,r=o==="none"||o===0,a=0;a<n.length;a++){var s=Qe(n[a].slice()),l=td(s,.25),u=td(s,.5),c=td(s,.75),h=s[0],p=s[s.length-1],d=(o??1.5)*(c-l),f=r?h:Math.max(h,l-d),g=r?p:Math.min(p,c+d),v=e.itemNameFormatter,y=$(v)?v({value:a}):U(v)?v.replace("{value}",a+""):a+"";t.push([y,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[y,x];i.push(_)}}}return{boxData:t,outliers:i}}var OW={type:"echarts:boxplot",transform:function(n){var e=n.upstream;if(e.sourceFormat!==_e){var t="";process.env.NODE_ENV!=="production"&&(t=Me("source data is not applicable for this boxplot transform. Expect number[][].")),At(t)}var i=EW(e.getRawData(),n.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function PW(n){n.registerSeriesModel(SW),n.registerChartView(TW),n.registerLayout(AW),n.registerTransform(OW)}var VW=["color","borderColor"],RW=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,o){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,o,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Fi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),o=this._data,r=this.group,a=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||r.removeAll(),i.diff(o).add(function(c){if(i.hasValue(c)){var h=i.getItemLayout(c);if(s&&rC(u,h))return;var p=qv(h,c,!0);Bt(p,{shape:{points:h.ends}},t,c),$v(p,i,c,a),r.add(p),i.setItemGraphicEl(c,p)}}).update(function(c,h){var p=o.getItemGraphicEl(h);if(!i.hasValue(c)){r.remove(p);return}var d=i.getItemLayout(c);if(s&&rC(u,d)){r.remove(p);return}p?(Tt(p,{shape:{points:d.ends}},t,c),Mn(p)):p=qv(d),$v(p,i,c,a),r.add(p),i.setItemGraphicEl(c,p)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&r.remove(h)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),aC(t,this.group);var i=t.get("clip",!0)?Yc(t.coordinateSystem,!1,t):null;i?this.group.setClipPath(i):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,i){for(var o=i.getData(),r=o.getLayout("isSimpleBox"),a;(a=t.next())!=null;){var s=o.getItemLayout(a),l=qv(s);$v(l,o,a,r),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,i){aC(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Vt),zW=function(){function n(){}return n}(),BW=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new zW},e.prototype.buildPath=function(t,i){var o=i.points;this.__simpleBox?(t.moveTo(o[4][0],o[4][1]),t.lineTo(o[6][0],o[6][1])):(t.moveTo(o[0][0],o[0][1]),t.lineTo(o[1][0],o[1][1]),t.lineTo(o[2][0],o[2][1]),t.lineTo(o[3][0],o[3][1]),t.closePath(),t.moveTo(o[4][0],o[4][1]),t.lineTo(o[5][0],o[5][1]),t.moveTo(o[6][0],o[6][1]),t.lineTo(o[7][0],o[7][1]))},e}(mt);function qv(n,e,t){var i=n.ends;return new BW({shape:{points:t?GW(i,n):i},z2:100})}function rC(n,e){for(var t=!0,i=0;i<e.ends.length;i++)if(n.contain(e.ends[i][0],e.ends[i][1])){t=!1;break}return t}function $v(n,e,t,i){var o=e.getItemModel(t);n.useStyle(e.getItemVisual(t,"style")),n.style.strokeNoScale=!0,n.__simpleBox=i,pe(n,o)}function GW(n,e){return G(n,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var FW=function(){function n(){}return n}(),Kv=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new FW},e.prototype.buildPath=function(t,i){for(var o=i.points,r=0;r<o.length;)if(this.__sign===o[r++]){var a=o[r++];t.moveTo(a,o[r++]),t.lineTo(a,o[r++])}else r+=3},e}(mt);function aC(n,e,t,i){var o=n.getData(),r=o.getLayout("largePoints"),a=new Kv({shape:{points:r},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new Kv({shape:{points:r},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Kv({shape:{points:r},__sign:0,ignoreCoarsePointer:!0});e.add(l),Jv(1,a,n),Jv(-1,s,n),Jv(0,l,n),i&&(a.incremental=!0,s.incremental=!0),t&&t.push(a,s)}function Jv(n,e,t,i){var o=t.get(["itemStyle",n>0?"borderColor":"borderColor0"])||t.get(["itemStyle",n>0?"color":"color0"]);n===0&&(o=t.get(["itemStyle","borderColorDoji"]));var r=t.getModel("itemStyle").getItemStyle(VW);e.useStyle(r),e.style.fill=null,e.style.stroke=o}const HW=RW;var sC=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,o){var r=i.getItemLayout(t);return r&&o.rect(r.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Ft);$t(sC,eC,!0);const WW=sC;function UW(n){!n||!B(n.series)||C(n.series,function(e){K(e)&&e.type==="k"&&(e.type="candlestick")})}var YW=["itemStyle","borderColor"],XW=["itemStyle","borderColor0"],ZW=["itemStyle","borderColorDoji"],jW=["itemStyle","color"],qW=["itemStyle","color0"],$W={seriesType:"candlestick",plan:sa(),performRawSeries:!0,reset:function(n,e){function t(r,a){return a.get(r>0?jW:qW)}function i(r,a){return a.get(r===0?ZW:r>0?YW:XW)}if(!e.isSeriesFiltered(n)){var o=n.pipelineContext.large;return!o&&{progress:function(r,a){for(var s;(s=r.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=t(u,l),c.stroke=i(u,l)||c.fill;var h=a.ensureUniqueItemVisual(s,"style");R(h,c)}}}}}};const KW=$W;var JW={seriesType:"candlestick",plan:sa(),reset:function(n){var e=n.coordinateSystem,t=n.getData(),i=QW(n,t),o=0,r=1,a=["x","y"],s=t.getDimensionIndex(t.mapDimension(a[o])),l=G(t.mapDimensionsAll(a[r]),t.getDimensionIndex,t),u=l[0],c=l[1],h=l[2],p=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:n.pipelineContext.large?f:d};function d(g,v){for(var y,m=v.getStore();(y=g.next())!=null;){var x=m.get(s,y),_=m.get(u,y),w=m.get(c,y),b=m.get(h,y),S=m.get(p,y),M=Math.min(_,w),I=Math.max(_,w),D=V(M,x),T=V(I,x),A=V(b,x),k=V(S,x),L=[];O(L,T,0),O(L,D,1),L.push(F(k),F(T),F(A),F(D));var N=v.getItemModel(y),E=!!N.get(["itemStyle","borderColorDoji"]);v.setItemLayout(y,{sign:lC(m,y,_,w,c,E),initBaseline:_>w?T[r]:D[r],ends:L,brushRect:z(b,S,x)})}function V(W,Z){var Q=[];return Q[o]=Z,Q[r]=W,isNaN(Z)||isNaN(W)?[NaN,NaN]:e.dataToPoint(Q)}function O(W,Z,Q){var tt=Z.slice(),ft=Z.slice();tt[o]=Wu(tt[o]+i/2,1,!1),ft[o]=Wu(ft[o]-i/2,1,!0),Q?W.push(tt,ft):W.push(ft,tt)}function z(W,Z,Q){var tt=V(W,Q),ft=V(Z,Q);return tt[o]-=i/2,ft[o]-=i/2,{x:tt[0],y:tt[1],width:i,height:ft[1]-tt[1]}}function F(W){return W[o]=Wu(W[o],1),W}}function f(g,v){for(var y=jn(g.count*4),m=0,x,_=[],w=[],b,S=v.getStore(),M=!!n.get(["itemStyle","borderColorDoji"]);(b=g.next())!=null;){var I=S.get(s,b),D=S.get(u,b),T=S.get(c,b),A=S.get(h,b),k=S.get(p,b);if(isNaN(I)||isNaN(A)||isNaN(k)){y[m++]=NaN,m+=3;continue}y[m++]=lC(S,b,D,T,c,M),_[o]=I,_[r]=A,x=e.dataToPoint(_,null,w),y[m++]=x?x[0]:NaN,y[m++]=x?x[1]:NaN,_[r]=k,x=e.dataToPoint(_,null,w),y[m++]=x?x[1]:NaN}v.setLayout("largePoints",y)}}};function lC(n,e,t,i,o,r){var a;return t>i?a=-1:t<i?a=1:a=r?0:e>0?n.get(o,e-1)<=i?1:-1:1,a}function QW(n,e){var t=n.getBaseAxis(),i,o=t.type==="category"?t.getBandWidth():(i=t.getExtent(),Math.abs(i[1]-i[0])/e.count()),r=H(ut(n.get("barMaxWidth"),o),o),a=H(ut(n.get("barMinWidth"),1),o),s=n.get("barWidth");return s!=null?H(s,o):Math.max(Math.min(o/2,r),a)}const t6=JW;function e6(n){n.registerChartView(HW),n.registerSeriesModel(WW),n.registerPreprocessor(UW),n.registerVisual(KW),n.registerLayout(t6)}function uC(n,e){var t=e.rippleEffectColor||e.color;n.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var n6=function(n){P(e,n);function e(t,i){var o=n.call(this)||this,r=new nl(t,i),a=new ot;return o.add(r),o.add(a),o.updateData(t,i),o}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,o=t.color,r=t.rippleNumber,a=this.childAt(1),s=0;s<r;s++){var l=ee(i,-1,-1,2,2,o);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/r*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),a.add(l)}uC(a,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,o=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],a=0;a<r.length;a++){var s=r[a];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}uC(o,t)},e.prototype.highlight=function(){pi(this)},e.prototype.downplay=function(){di(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var o=this,r=t.hostModel;this.childAt(0).updateData(t,i);var a=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=ca(t.getItemVisual(i,"symbolSize")),c=t.getItemVisual(i,"style"),h=c&&c.fill,p=s.getModel("emphasis");a.setScale(u),a.traverse(function(v){v.setStyle("fill",h)});var d=Ko(t.getItemVisual(i,"symbolOffset"),u);d&&(a.x=d[0],a.y=d[1]);var f=t.getItemVisual(i,"symbolRotate");a.rotation=(f||0)*Math.PI/180||0;var g={};g.showEffectOn=r.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=i/t.count(),g.z=r.getShallow("z")||0,g.zlevel=r.getShallow("zlevel")||0,g.symbolType=l,g.color=h,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(v){v==="emphasis"?g.showEffectOn!=="render"&&o.startEffectAnimation(g):v==="normal"&&g.showEffectOn!=="render"&&o.stopEffectAnimation()}),this._effectCfg=g,Ut(this,p.get("focus"),p.get("blurScope"),p.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(ot);const i6=n6;var o6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new il(i6)},e.prototype.render=function(t,i,o){var r=t.getData(),a=this._symbolDraw;a.updateData(r,{clipShape:this._getClipShape(t)}),this.group.add(a.group)},e.prototype._getClipShape=function(t){var i=t.coordinateSystem,o=i&&i.getArea&&i.getArea();return t.get("clip",!0)?o:null},e.prototype.updateTransform=function(t,i,o){var r=t.getData();this.group.dirty();var a=ol("").reset(t,i,o);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=Nk(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Vt);const r6=o6;var a6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return yi(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,o){return o.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(Ft);const s6=a6;function l6(n){n.registerChartView(r6),n.registerSeriesModel(s6),n.registerLayout(ol("effectScatter"))}var u6=function(n){P(e,n);function e(t,i,o){var r=n.call(this)||this;return r.add(r.createLine(t,i,o)),r._updateEffectSymbol(t,i),r}return e.prototype.createLine=function(t,i,o){return new Mv(t,i,o)},e.prototype._updateEffectSymbol=function(t,i){var o=t.getItemModel(i),r=o.getModel("effect"),a=r.get("symbolSize"),s=r.get("symbol");B(a)||(a=[a,a]);var l=t.getItemVisual(i,"style"),u=r.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=ee(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(r.getItemStyle(["color"])),c.scaleX=a[0],c.scaleY=a[1],c.setColor(u),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(t,r,i))},e.prototype._updateEffectAnimation=function(t,i,o){var r=this.childAt(1);if(r){var a=t.getItemLayout(o),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),c=i.get("constantSpeed"),h=Kt(i.get("delay"),function(d){return d/t.count()*s/3});if(r.ignore=!0,this._updateAnimationPoints(r,a),c>0&&(s=this._getLineLength(r)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){r.stopAnimation();var p=void 0;$(h)?p=h(o):p=h,r.__t>0&&(p=-s*r.__t),this._animateSymbol(r,s,p,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,o,r,a){if(i>0){t.__t=0;var s=this,l=t.animate("",r).when(a?i*2:i,{__t:a?2:1}).delay(o).during(function(){s._updateSymbolPosition(t)});r||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Di(t.__p1,t.__cp1)+Di(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,o){this.childAt(0).updateData(t,i,o),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,o=t.__p2,r=t.__cp1,a=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=le,c=wp;s[0]=u(i[0],r[0],o[0],a),s[1]=u(i[1],r[1],o[1],a);var h=t.__t<1?c(i[0],r[0],o[0],a):c(o[0],r[0],i[0],1-a),p=t.__t<1?c(i[1],r[1],o[1],a):c(o[1],r[1],i[1],1-a);t.rotation=-Math.atan2(p,h)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Di(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Di(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var o=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,o,i)},e}(ot);const cC=u6;var c6=function(n){P(e,n);function e(t,i,o){var r=n.call(this)||this;return r._createPolyline(t,i,o),r}return e.prototype._createPolyline=function(t,i,o){var r=t.getItemLayout(i),a=new ze({shape:{points:r}});this.add(a),this._updateCommonStl(t,i,o)},e.prototype.updateData=function(t,i,o){var r=t.hostModel,a=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};Tt(a,s,r,i),this._updateCommonStl(t,i,o)},e.prototype._updateCommonStl=function(t,i,o){var r=this.childAt(0),a=t.getItemModel(i),s=o&&o.emphasisLineStyle,l=o&&o.focus,u=o&&o.blurScope,c=o&&o.emphasisDisabled;if(!o||t.hasItemOption){var h=a.getModel("emphasis");s=h.getModel("lineStyle").getLineStyle(),c=h.get("disabled"),l=h.get("focus"),u=h.get("blurScope")}r.useStyle(t.getItemVisual(i,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var p=r.ensureState("emphasis");p.style=s,Ut(this,l,u,c)},e.prototype.updateLayout=function(t,i){var o=this.childAt(0);o.setShape("points",t.getItemLayout(i))},e}(ot);const hC=c6;var h6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,o){return new hC(t,i,o)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var o=[0],r=0,a=1;a<i.length;a++){var s=i[a-1],l=i[a];r+=Di(s,l),o.push(r)}if(r===0){this._length=0;return}for(var a=0;a<o.length;a++)o[a]/=r;this._offsets=o,this._length=r},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<1?t.__t:2-t.__t,o=this._points,r=this._offsets,a=o.length;if(r){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,a-1);for(l=u;l>=0&&!(r[l]<=i);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(r[l]>i);l++);l=Math.min(l-1,a-2)}var c=(i-r[l])/(r[l+1]-r[l]),h=o[l],p=o[l+1];t.x=h[0]*(1-c)+c*p[0],t.y=h[1]*(1-c)+c*p[1];var d=t.__t<1?p[0]-h[0]:h[0]-p[0],f=t.__t<1?p[1]-h[1]:h[1]-p[1];t.rotation=-Math.atan2(f,d)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e}(cC);const p6=h6;var d6=function(){function n(){this.polyline=!1,this.curveness=0,this.segs=[]}return n}(),f6=function(n){P(e,n);function e(t){var i=n.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new d6},e.prototype.buildPath=function(t,i){var o=i.segs,r=i.curveness,a;if(i.polyline)for(a=this._off;a<o.length;){var s=o[a++];if(s>0){t.moveTo(o[a++],o[a++]);for(var l=1;l<s;l++)t.lineTo(o[a++],o[a++])}}else for(a=this._off;a<o.length;){var u=o[a++],c=o[a++],h=o[a++],p=o[a++];if(t.moveTo(u,c),r>0){var d=(u+h)/2-(c-p)*r,f=(c+p)/2-(h-u)*r;t.quadraticCurveTo(d,f,h,p)}else t.lineTo(h,p)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var o=this.shape,r=o.segs,a=o.curveness,s=this.style.lineWidth;if(o.polyline)for(var l=0,u=0;u<r.length;){var c=r[u++];if(c>0)for(var h=r[u++],p=r[u++],d=1;d<c;d++){var f=r[u++],g=r[u++];if(Ri(h,p,f,g,s,t,i))return l}l++}else for(var l=0,u=0;u<r.length;){var h=r[u++],p=r[u++],f=r[u++],g=r[u++];if(a>0){var v=(h+f)/2-(p-g)*a,y=(p+g)/2-(f-h)*a;if(d1(h,p,v,y,f,g,s,t,i))return l}else if(Ri(h,p,f,g,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var o=this.transformCoordToLocal(t,i),r=this.getBoundingRect();if(t=o[0],i=o[1],r.contain(t,i)){var a=this.hoverDataIdx=this.findDataIndex(t,i);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,o=i.segs,r=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u<o.length;){var c=o[u++],h=o[u++];r=Math.min(c,r),s=Math.max(c,s),a=Math.min(h,a),l=Math.max(h,l)}t=this._rect=new pt(r,a,s,l)}return t},e}(mt),g6=function(){function n(){this.group=new ot}return n.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},n.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},n.prototype.incrementalUpdate=function(e,t){var i=this._newAdded[0],o=t.getLayout("linesPoints"),r=i&&i.shape.segs;if(r&&r.length<2e4){var a=r.length,s=new Float32Array(a+o.length);s.set(r),s.set(o,a),i.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:o}),this._setCommon(l,t),l.__startIndex=e.start}},n.prototype.remove=function(){this._clear()},n.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},n.prototype._create=function(){var e=new f6({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},n.prototype._setCommon=function(e,t,i){var o=t.hostModel;e.setShape({polyline:o.get("polyline"),curveness:o.get(["lineStyle","curveness"])}),e.useStyle(o.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var r=t.getVisual("style");r&&r.stroke&&e.setStyle("stroke",r.stroke),e.setStyle("fill",null);var a=rt(e);a.seriesIndex=o.seriesIndex,e.on("mousemove",function(s){a.dataIndex=null;var l=e.hoverDataIdx;l>0&&(a.dataIndex=l+e.__startIndex)})},n.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},n}();const v6=g6;var y6={seriesType:"lines",plan:sa(),reset:function(n){var e=n.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&me("The lines series must have a coordinate system.");return}var t=n.get("polyline"),i=n.pipelineContext.large;return{progress:function(o,r){var a=[];if(i){var s=void 0,l=o.end-o.start;if(t){for(var u=0,c=o.start;c<o.end;c++)u+=n.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var h=0,p=[],c=o.start;c<o.end;c++){var d=n.getLineCoords(c,a);t&&(s[h++]=d);for(var f=0;f<d;f++)p=e.dataToPoint(a[f],!1,p),s[h++]=p[0],s[h++]=p[1]}r.setLayout("linesPoints",s)}else for(var c=o.start;c<o.end;c++){var g=r.getItemModel(c),d=n.getLineCoords(c,a),v=[];if(t)for(var y=0;y<d;y++)v.push(e.dataToPoint(a[y]));else{v[0]=e.dataToPoint(a[0]),v[1]=e.dataToPoint(a[1]);var m=g.get(["lineStyle","curveness"]);+m&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*m,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*m])}r.setItemLayout(c,v)}}}}};const pC=y6;var m6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this._updateLineDraw(r,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=o.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(r);var h=t.get("clip",!0)&&Yc(t.coordinateSystem,!1,t);h?this.group.setClipPath(h):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,o){var r=t.getData(),a=this._updateLineDraw(r,t);a.incrementalPrepareUpdate(r),this._clearLayer(o),this._finished=!1},e.prototype.incrementalRender=function(t,i,o){this._lineDraw.incrementalUpdate(t,i.getData()),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,o){var r=t.getData(),a=t.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=pC.reset(t,i,o);s.progress&&s.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(o)},e.prototype._updateLineDraw=function(t,i){var o=this._lineDraw,r=this._showEffect(i),a=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&r&&l&&console.warn("Large lines not support effect"),(!o||r!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(o&&o.remove(),o=this._lineDraw=l?new v6:new Cv(a?r?p6:hC:r?cC:Mv),this._hasEffet=r,this._isPolyline=a,this._isLargeDraw=l),this.group.add(o.group),o},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=t.getZr(),o=i.painter.getType()==="svg";!o&&this._lastZlevel!=null&&i.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e}(Vt);const x6=m6;var _6=typeof Uint32Array>"u"?Array:Uint32Array,b6=typeof Float64Array>"u"?Array:Float64Array;function dC(n){var e=n.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),n.data=G(e,function(t){var i=[t[0].coord,t[1].coord],o={coords:i};return t[0].name&&(o.fromName=t[0].name),t[1].name&&(o.toName=t[1].name),tp([o,t[0],t[1]])}))}var w6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],dC(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),n.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(dC(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}n.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=Fl(this._flatCoords,i.flatCoords),this._flatCoordsOffset=Fl(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),o=i.option instanceof Array?i.option:i.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(o instanceof Array&&o.length>0&&o[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(o)+". Lines must have 2d coords array in data item.");return o},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var o=this._flatCoordsOffset[t*2],r=this._flatCoordsOffset[t*2+1],a=0;a<r;a++)i[a]=i[a]||[],i[a][0]=this._flatCoords[o+a*2],i[a][1]=this._flatCoords[o+a*2+1];return r}else{for(var s=this._getCoordsFromItemModel(t),a=0;a<s.length;a++)i[a]=i[a]||[],i[a][0]=s[a][0],i[a][1]=s[a][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),Ct(t[0])){for(var o=t.length,r=new _6(o),a=new b6(o),s=0,l=0,u=0,c=0;c<o;){u++;var h=t[c++];r[l++]=s+i,r[l++]=h;for(var p=0;p<h;p++){var d=t[c++],f=t[c++];if(a[s++]=d,a[s++]=f,c>o&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(process.env.NODE_ENV!=="production"){var o=oa.get(t.coordinateSystem);if(!o)throw new Error("Unknown coordinate system "+t.coordinateSystem)}var r=new Te(["value"],this);return r.hasItemOption=!1,r.initData(t.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;r.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),r},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=r.getItemModel(t),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),ae("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Ft);const S6=w6;function yh(n){return n instanceof Array||(n=[n,n]),n}var M6={seriesType:"lines",reset:function(n){var e=yh(n.get("symbol")),t=yh(n.get("symbolSize")),i=n.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function o(r,a){var s=r.getItemModel(a),l=yh(s.getShallow("symbol",!0)),u=yh(s.getShallow("symbolSize",!0));l[0]&&r.setItemVisual(a,"fromSymbol",l[0]),l[1]&&r.setItemVisual(a,"toSymbol",l[1]),u[0]&&r.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&r.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?o:null}}};const I6=M6;function C6(n){n.registerChartView(x6),n.registerSeriesModel(S6),n.registerLayout(pC),n.registerVisual(I6)}var D6=256,T6=function(){function n(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Ci.createCanvas();this.canvas=e}return n.prototype.update=function(e,t,i,o,r,a){var s=this._getBrush(),l=this._getGradient(r,"inRange"),u=this._getGradient(r,"outOfRange"),c=this.pointSize+this.blurSize,h=this.canvas,p=h.getContext("2d"),d=e.length;h.width=t,h.height=i;for(var f=0;f<d;++f){var g=e[f],v=g[0],y=g[1],m=g[2],x=o(m);p.globalAlpha=x,p.drawImage(s,v-c,y-c)}if(!h.width||!h.height)return h;for(var _=p.getImageData(0,0,h.width,h.height),w=_.data,b=0,S=w.length,M=this.minOpacity,I=this.maxOpacity,D=I-M;b<S;){var x=w[b+3]/256,T=Math.floor(x*(D6-1))*4;if(x>0){var A=a(x)?l:u;x>0&&(x=x*D+M),w[b++]=A[T],w[b++]=A[T+1],w[b++]=A[T+2],w[b++]=A[T+3]*x*256}else b+=4}return p.putImageData(_,0,0),h},n.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Ci.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var o=e.getContext("2d");return o.clearRect(0,0,i,i),o.shadowOffsetX=i,o.shadowBlur=this.blurSize,o.shadowColor="#000",o.beginPath(),o.arc(-t,t,this.pointSize,0,Math.PI*2,!0),o.closePath(),o.fill(),e},n.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,o=i[t]||(i[t]=new Uint8ClampedArray(256*4)),r=[0,0,0,0],a=0,s=0;s<256;s++)e[t](s/255,!0,r),o[a++]=r[0],o[a++]=r[1],o[a++]=r[2],o[a++]=r[3];return o},n}();const A6=T6;function k6(n,e,t){var i=n[1]-n[0];e=G(e,function(a){return{interval:[(a.interval[0]-n[0])/i,(a.interval[1]-n[0])/i]}});var o=e.length,r=0;return function(a){var s;for(s=r;s<o;s++){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){r=s;break}}if(s===o)for(s=r-1;s>=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){r=s;break}}return s>=0&&s<o&&t[s]}}function L6(n,e){var t=n[1]-n[0];return e=[(e[0]-n[0])/t,(e[1]-n[0])/t],function(i){return i>=e[0]&&i<=e[1]}}function fC(n){var e=n.dimensions;return e[0]==="lng"&&e[1]==="lat"}var N6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r;if(i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(r=s)})}),process.env.NODE_ENV!=="production"&&!r)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=t.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(t,o,0,t.getData().count()):fC(a)&&this._renderOnGeo(a,t,r,o)},e.prototype.incrementalPrepareRender=function(t,i,o){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,o,r){var a=i.coordinateSystem;a&&(fC(a)?this.render(i,o,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(i,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Fi(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,i,o,r,a){var s=t.coordinateSystem,l=ur(s,"cartesian2d"),u,c,h,p;if(l){var d=s.getAxis("x"),f=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(d.type==="category"&&f.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(d.onBand&&f.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=d.getBandWidth()+.5,c=f.getBandWidth()+.5,h=d.scale.getExtent(),p=f.scale.getExtent()}for(var g=this.group,v=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),m=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),_=t.get(["itemStyle","borderRadius"]),w=re(t),b=t.getModel("emphasis"),S=b.get("focus"),M=b.get("blurScope"),I=b.get("disabled"),D=l?[v.mapDimension("x"),v.mapDimension("y"),v.mapDimension("value")]:[v.mapDimension("time"),v.mapDimension("value")],T=o;T<r;T++){var A=void 0,k=v.getItemVisual(T,"style");if(l){var L=v.get(D[0],T),N=v.get(D[1],T);if(isNaN(v.get(D[2],T))||isNaN(L)||isNaN(N)||L<h[0]||L>h[1]||N<p[0]||N>p[1])continue;var E=s.dataToPoint([L,N]);A=new It({shape:{x:E[0]-u/2,y:E[1]-c/2,width:u,height:c},style:k})}else{if(isNaN(v.get(D[1],T)))continue;A=new It({z2:1,shape:s.dataToRect([v.get(D[0],T)]).contentShape,style:k})}if(v.hasItemOption){var V=v.getItemModel(T),O=V.getModel("emphasis");y=O.getModel("itemStyle").getItemStyle(),m=V.getModel(["blur","itemStyle"]).getItemStyle(),x=V.getModel(["select","itemStyle"]).getItemStyle(),_=V.get(["itemStyle","borderRadius"]),S=O.get("focus"),M=O.get("blurScope"),I=O.get("disabled"),w=re(V)}A.shape.r=_;var z=t.getRawValue(T),F="-";z&&z[2]!=null&&(F=z[2]+""),de(A,w,{labelFetcher:t,labelDataIndex:T,defaultOpacity:k.opacity,defaultText:F}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=m,A.ensureState("select").style=x,Ut(A,S,M,I),A.incremental=a,a&&(A.states.emphasis.hoverLayer=!0),g.add(A),v.setItemGraphicEl(T,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(t,i,o,r){var a=o.targetVisuals.inRange,s=o.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new A6;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var c=t.getViewRect().clone(),h=t.getRoamTransform();c.applyTransform(h);var p=Math.max(c.x,0),d=Math.max(c.y,0),f=Math.min(c.width+c.x,r.getWidth()),g=Math.min(c.height+c.y,r.getHeight()),v=f-p,y=g-d,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],x=l.mapArray(m,function(S,M,I){var D=t.dataToPoint([S,M]);return D[0]-=p,D[1]-=d,D.push(I),D}),_=o.getExtent(),w=o.type==="visualMap.continuous"?L6(_,o.option.range):k6(_,o.getPieceList(),o.option.selected);u.update(x,v,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},w);var b=new he({style:{width:v,height:y,x:p,y:d,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(Vt);const E6=N6;var O6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return yi(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=oa.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(Ft);const P6=O6;function V6(n){n.registerChartView(E6),n.registerSeriesModel(P6)}var R6=["itemStyle","borderWidth"],gC=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Qv=new Wn,z6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),h=l.master.getRect(),p={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:c,valueDim:gC[+c],categoryDim:gC[1-+c]};return a.diff(s).add(function(d){if(a.hasValue(d)){var f=wC(a,d),g=vC(a,d,f,p),v=SC(a,p,g);a.setItemGraphicEl(d,v),r.add(v),CC(v,p,g)}}).update(function(d,f){var g=s.getItemGraphicEl(f);if(!a.hasValue(d)){r.remove(g);return}var v=wC(a,d),y=vC(a,d,v,p),m=IC(a,y);g&&m!==g.__pictorialShapeStr&&(r.remove(g),a.setItemGraphicEl(d,null),g=null),g?Y6(g,p,y):g=SC(a,p,y,!0),a.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=y,r.add(g),CC(g,p,y)}).remove(function(d){var f=s.getItemGraphicEl(d);f&&MC(s,d,f.__pictorialSymbolMeta.animationModel,f)}).execute(),this._data=a,this.group},e.prototype.remove=function(t,i){var o=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl(function(a){MC(r,rt(a).dataIndex,t,a)}):o.removeAll()},e.type="pictorialBar",e}(Vt);function vC(n,e,t,i){var o=n.getItemLayout(e),r=t.get("symbolRepeat"),a=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=t.get("symbolPatternSize")||2,h=t.isAnimationEnabled(),p={dataIndex:e,layout:o,itemModel:t,symbolType:n.getItemVisual(e,"symbol")||"circle",style:n.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};B6(t,r,o,i,p),G6(n,e,o,r,a,p.boundingLength,p.pxSign,c,i,p),F6(t,p.symbolScale,u,i,p);var d=p.symbolSize,f=Ko(t.get("symbolOffset"),d);return H6(t,d,o,r,a,f,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,i,p),p}function B6(n,e,t,i,o){var r=i.valueDim,a=n.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[r.wh]<=0),c;if(B(a)){var h=[ty(s,a[0])-l,ty(s,a[1])-l];h[1]<h[0]&&h.reverse(),c=h[u]}else a!=null?c=ty(s,a)-l:e?c=i.coordSysExtent[r.index][u]-l:c=t[r.wh];o.boundingLength=c,e&&(o.repeatCutLength=t[r.wh]),o.pxSign=c>0?1:-1}function ty(n,e){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(e)))}function G6(n,e,t,i,o,r,a,s,l,u){var c=l.valueDim,h=l.categoryDim,p=Math.abs(t[h.wh]),d=n.getItemVisual(e,"symbolSize"),f;B(d)?f=d.slice():d==null?f=["100%","100%"]:f=[d,d],f[h.index]=H(f[h.index],p),f[c.index]=H(f[c.index],i?p:Math.abs(r)),u.symbolSize=f;var g=u.symbolScale=[f[0]/s,f[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}function F6(n,e,t,i,o){var r=n.get(R6)||0;r&&(Qv.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Qv.updateTransform(),r/=Qv.getLineScale(),r*=e[i.valueDim.index]),o.valueLineWidth=r||0}function H6(n,e,t,i,o,r,a,s,l,u,c,h){var p=c.categoryDim,d=c.valueDim,f=h.pxSign,g=Math.max(e[d.index]+s,0),v=g;if(i){var y=Math.abs(l),m=Kt(n.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=H(m,e[d.index]),w=Math.max(g+_*2,0),b=x?0:_*2,S=ed(i),M=S?i:DC((y+b)/w),I=y-M*g;_=I/2/(x?M:Math.max(M-1,1)),w=g+_*2,b=x?0:_*2,!S&&i!=="fixed"&&(M=u?DC((Math.abs(u)+b)/w):0),v=M*w-b,h.repeatTimes=M,h.symbolMargin=_}var D=f*(v/2),T=h.pathPosition=[];T[p.index]=t[p.wh]/2,T[d.index]=a==="start"?D:a==="end"?l-D:l/2,r&&(T[0]+=r[0],T[1]+=r[1]);var A=h.bundlePosition=[];A[p.index]=t[p.xy],A[d.index]=t[d.xy];var k=h.barRectShape=R({},t);k[d.wh]=f*Math.max(Math.abs(t[d.wh]),Math.abs(T[d.index]+D)),k[p.wh]=t[p.wh];var L=h.clipShape={};L[p.xy]=-t[p.xy],L[p.wh]=c.ecSize[p.wh],L[d.xy]=0,L[d.wh]=t[d.wh]}function yC(n){var e=n.symbolPatternSize,t=ee(n.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function mC(n,e,t,i){var o=n.__pictorialBundle,r=t.symbolSize,a=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,c=0,h=r[e.valueDim.index]+a+t.symbolMargin*2;for(ey(n,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?Da(g,null,f(c),t,i):Da(g,null,{scaleX:0,scaleY:0},t,i,function(){o.remove(g)}),c++});c<u;c++){var p=yC(t);p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,o.add(p);var d=f(c);Da(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},t,i)}function f(g){var v=s.slice(),y=t.pxSign,m=g;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-g),v[l.index]=h*(m-u/2+.5)+s[l.index],{x:v[0],y:v[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function xC(n,e,t,i){var o=n.__pictorialBundle,r=n.__pictorialMainPath;r?Da(r,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(r=n.__pictorialMainPath=yC(t),o.add(r),Da(r,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function _C(n,e,t){var i=R({},e.barRectShape),o=n.__pictorialBarRect;o?Da(o,null,{shape:i},e,t):(o=n.__pictorialBarRect=new It({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),o.disableMorphing=!0,n.add(o))}function bC(n,e,t,i){if(t.symbolClip){var o=n.__pictorialClipPath,r=R({},t.clipShape),a=e.valueDim,s=t.animationModel,l=t.dataIndex;if(o)Tt(o,{shape:r},s,l);else{r[a.wh]=0,o=new It({shape:r}),n.__pictorialBundle.setClipPath(o),n.__pictorialClipPath=o;var u={};u[a.wh]=t.clipShape[a.wh],bs[i?"updateProps":"initProps"](o,{shape:u},s,l)}}}function wC(n,e){var t=n.getItemModel(e);return t.getAnimationDelayParams=W6,t.isAnimationEnabled=U6,t}function W6(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function U6(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function SC(n,e,t,i){var o=new ot,r=new ot;return o.add(r),o.__pictorialBundle=r,r.x=t.bundlePosition[0],r.y=t.bundlePosition[1],t.symbolRepeat?mC(o,e,t):xC(o,e,t),_C(o,t,i),bC(o,e,t,i),o.__pictorialShapeStr=IC(n,t),o.__pictorialSymbolMeta=t,o}function Y6(n,e,t){var i=t.animationModel,o=t.dataIndex,r=n.__pictorialBundle;Tt(r,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,o),t.symbolRepeat?mC(n,e,t,!0):xC(n,e,t,!0),_C(n,t,!0),bC(n,e,t,!0)}function MC(n,e,t,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];ey(i,function(a){r.push(a)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),C(r,function(a){Gi(a,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(e,null)}function IC(n,e){return[n.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function ey(n,e,t){C(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&e.call(t,i)})}function Da(n,e,t,i,o,r){e&&n.attr(e),i.symbolClip&&!o?t&&n.attr(t):t&&bs[o?"updateProps":"initProps"](n,t,i.animationModel,i.dataIndex,r)}function CC(n,e,t){var i=t.dataIndex,o=t.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),c=r.get("focus"),h=r.get("blurScope"),p=r.get("scale");ey(n,function(g){if(g instanceof he){var v=g.style;g.useStyle(R({image:v.image,x:v.x,y:v.y,width:v.width,height:v.height},t.style))}else g.useStyle(t.style);var y=g.ensureState("emphasis");y.style=a,p&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=t.z2});var d=e.valueDim.posDesc[+(t.boundingLength>0)],f=n.__pictorialBarRect;de(f,re(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:ma(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:d}),Ut(n,c,h,r.get("disabled"))}function DC(n){var e=Math.round(n);return Math.abs(n-e)<1e-4?e:Math.ceil(n)}const X6=z6;var Z6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,n.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Hi(Xc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Xc);const j6=Z6;function q6(n){n.registerChartView(X6),n.registerSeriesModel(j6),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,at(Bw,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Gw("pictorialBar"))}var $6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,i,o){var r=t.getData(),a=this,s=this.group,l=t.getLayerSeries(),u=r.getLayout("layoutInfo"),c=u.rect,h=u.boundaryGap;s.x=0,s.y=c.y+h[0];function p(v){return v.name}var d=new vi(this._layersSeries||[],l,p,p),f=[];d.add(X(g,this,"add")).update(X(g,this,"update")).remove(X(g,this,"remove")).execute();function g(v,y,m){var x=a._layers;if(v==="remove"){s.remove(x[y]);return}for(var _=[],w=[],b,S=l[y].indices,M=0;M<S.length;M++){var I=r.getItemLayout(S[M]),D=I.x,T=I.y0,A=I.y;_.push(D,T),w.push(D,T+A),b=r.getItemVisual(S[M],"style")}var k,L=r.getItemLayout(S[0]),N=t.getModel("label"),E=N.get("margin"),V=t.getModel("emphasis");if(v==="add"){var O=f[y]=new ot;k=new eM({shape:{points:_,stackedOnPoints:w,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),O.add(k),s.add(O),t.isAnimationEnabled()&&k.setClipPath(K6(k.getBoundingRect(),t,function(){k.removeClipPath()}))}else{var O=x[m];k=O.childAt(0),s.add(O),f[y]=O,Tt(k,{shape:{points:_,stackedOnPoints:w}},t),Mn(k)}de(k,re(t),{labelDataIndex:S[M-1],defaultText:r.getName(S[M-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),k.setTextConfig({position:null,local:!0});var z=k.getTextContent();z&&(z.x=L.x-E,z.y=L.y0+L.y/2),k.useStyle(b),r.setItemGraphicEl(y,k),pe(k,t),Ut(k,V.get("focus"),V.get("blurScope"),V.get("disabled"))}this._layersSeries=l,this._layers=f},e.type="themeRiver",e}(Vt);function K6(n,e,t){var i=new It({shape:{x:n.x-10,y:n.y-10,width:0,height:n.height+20}});return Bt(i,{shape:{x:n.x-50,width:n.width+100,height:n.height+20}},e,t),i}const J6=$6;var ny=2,Q6=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new al(X(this.getData,this),X(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,o={},r=od(t,function(p){return o.hasOwnProperty(p[0]+"")||(o[p[0]+""]=-1),p[2]}),a=[];r.buckets.each(function(p,d){a.push({name:d,dataList:p})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var h=a[l].dataList[c][0]+"";o[h]=l}for(var h in o)o.hasOwnProperty(h)&&o[h]!==l&&(o[h]=l,t[i]=[h,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var o=this.getReferringComponents("singleAxis",Qt).models[0],r=o.get("type"),a=Lt(t.data,function(f){return f[2]!==void 0}),s=this.fixData(a||[]),l=[],u=this.nameMap=j(),c=0,h=0;h<s.length;++h)l.push(s[h][ny]),u.get(s[h][ny])||(u.set(s[h][ny],c),c++);var p=Xs(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Ic(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,d=new Te(p,this);return d.initData(s),d},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),o=[],r=0;r<i;++r)o[r]=r;var a=t.mapDimension("single"),s=od(o,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(h,p){return t.get(a,h)-t.get(a,p)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,o){B(t)||(t=t?[t]:[]);for(var r=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u,c=0;c<l;++c){for(var h=Number.MAX_VALUE,p=-1,d=a[c].indices.length,f=0;f<d;++f){var g=r.get(t[0],a[c].indices[f]),v=Math.abs(g-i);v<=h&&(u=g,h=v,p=a[c].indices[f])}s.push(p)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=r.getName(t),s=r.get(r.mapDimension("value"),t);return ae("nameValue",{name:a,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(Ft);const t8=Q6;function e8(n,e){n.eachSeriesByType("themeRiver",function(t){var i=t.getData(),o=t.coordinateSystem,r={},a=o.getRect();r.rect=a;var s=t.get("boundaryGap"),l=o.getAxis();if(r.boundaryGap=s,l.orient==="horizontal"){s[0]=H(s[0],a.height),s[1]=H(s[1],a.height);var u=a.height-s[0]-s[1];TC(i,t,u)}else{s[0]=H(s[0],a.width),s[1]=H(s[1],a.width);var c=a.width-s[0]-s[1];TC(i,t,c)}i.setLayout("layoutInfo",r)})}function TC(n,e,t){if(n.count())for(var i=e.coordinateSystem,o=e.getLayerSeries(),r=n.mapDimension("single"),a=n.mapDimension("value"),s=G(o,function(v){return G(v.indices,function(y){var m=i.dataToPoint(n.get(r,y));return m[1]=n.get(a,y),m})}),l=n8(s),u=l.y0,c=t/l.max,h=o.length,p=o[0].indices.length,d,f=0;f<p;++f){d=u[f]*c,n.setItemLayout(o[0].indices[f],{layerIndex:0,x:s[0][f][0],y0:d,y:s[0][f][1]*c});for(var g=1;g<h;++g)d+=s[g-1][f][1]*c,n.setItemLayout(o[g].indices[f],{layerIndex:g,x:s[g][f][0],y0:d,y:s[g][f][1]*c})}}function n8(n){for(var e=n.length,t=n[0].length,i=[],o=[],r=0,a=0;a<t;++a){for(var s=0,l=0;l<e;++l)s+=n[l][a][1];s>r&&(r=s),i.push(s)}for(var u=0;u<t;++u)o[u]=(r-i[u])/2;r=0;for(var c=0;c<t;++c){var h=i[c]+o[c];h>r&&(r=h)}return{y0:o,max:r}}function i8(n){n.registerChartView(J6),n.registerSeriesModel(t8),n.registerLayout(e8),n.registerProcessor(rl("themeRiver"))}var o8=2,r8=4,a8=function(n){P(e,n);function e(t,i,o,r){var a=n.call(this)||this;a.z2=o8,a.textConfig={inside:!0},rt(a).seriesIndex=i.seriesIndex;var s=new Dt({z2:r8,silent:t.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,t,i,o,r),a}return e.prototype.updateData=function(t,i,o,r,a){this.node=i,i.piece=this,o=o||this._seriesModel,r=r||this._ecModel;var s=this;rt(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),c=i.getLayout(),h=R({},c);h.label=null;var p=i.getVisual("style");p.lineJoin="bevel";var d=i.getVisual("decal");d&&(p.decal=pa(d,a));var f=cr(l.getModel("itemStyle"),h,!0);R(h,f),C(Ce,function(m){var x=s.ensureState(m),_=l.getModel([m,"itemStyle"]);x.style=_.getItemStyle();var w=cr(_,h);w&&(x.shape=w)}),t?(s.setShape(h),s.shape.r=c.r0,Bt(s,{shape:{r:c.r}},o,i.dataIndex)):(Tt(s,{shape:h},o),Mn(s)),s.useStyle(p),this._updateLabel(o);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=o||this._seriesModel,this._ecModel=r||this._ecModel;var v=u.get("focus"),y=v==="ancestor"?i.getAncestorsIndices():v==="descendant"?i.getDescendantIndices():v;Ut(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,o=this.node.getModel(),r=o.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),h=this,p=h.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,g=r.get("show")&&!(f!=null&&Math.abs(s)<f);p.ignore=!g,C(cs,function(y){var m=y==="normal"?o.getModel("label"):o.getModel([y,"label"]),x=y==="normal",_=x?p:p.ensureState(y),w=t.getFormattedLabel(d,y);x&&(w=w||i.node.name),_.style=Ot(m,{},null,y!=="normal",!0),w&&(_.style.text=w);var b=m.get("show");b!=null&&!x&&(_.ignore=!b);var S=v(m,"position"),M=x?h:h.states[y],I=M.style.fill;M.textConfig={outsideFill:m.get("color")==="inherit"?I:null,inside:S!=="outside"};var D,T=v(m,"distance")||0,A=v(m,"align");S==="outside"?(D=a.r+T,A=l>Math.PI/2?"right":"left"):!A||A==="center"?(s===2*Math.PI&&a.r0===0?D=0:D=(a.r+a.r0)/2,A="center"):A==="left"?(D=a.r0+T,l>Math.PI/2&&(A="right")):A==="right"&&(D=a.r-T,l>Math.PI/2&&(A="left")),_.style.align=A,_.style.verticalAlign=v(m,"verticalAlign")||"middle",_.x=D*u+a.cx,_.y=D*c+a.cy;var k=v(m,"rotate"),L=0;k==="radial"?(L=wn(-l),L>Math.PI/2&&L<Math.PI*1.5&&(L+=Math.PI)):k==="tangential"?(L=Math.PI/2-l,L>Math.PI/2?L-=Math.PI:L<-Math.PI/2&&(L+=Math.PI)):Ct(k)&&(L=k*Math.PI/180),_.rotation=wn(L)});function v(y,m){var x=y.get(m);return x??r.get(m)}p.dirtyStyle()},e}(Ve);const AC=a8;var iy="sunburstRootToNode",kC="sunburstHighlight",s8="sunburstUnhighlight";function l8(n){n.registerAction({type:iy,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(o,r){var a=dl(e,[iy],o);if(a){var s=o.getViewRoot();s&&(e.direction=ov(s,a.node)?"rollUp":"drillDown"),o.resetViewRoot(a.node)}}}),n.registerAction({type:kC,update:"none"},function(e,t,i){e=R({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},o);function o(r){var a=dl(e,[kC],r);a&&(e.dataIndex=a.node.dataIndex)}process.env.NODE_ENV!=="production"&&Jt("sunburstHighlight","highlight"),i.dispatchAction(R(e,{type:"highlight"}))}),n.registerAction({type:s8,update:"updateView"},function(e,t,i){e=R({},e),process.env.NODE_ENV!=="production"&&Jt("sunburstUnhighlight","downplay"),i.dispatchAction(R(e,{type:"downplay"}))})}var u8=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){var a=this;this.seriesModel=t,this.api=o,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),c=this.group,h=t.get("renderLabelForZeroData"),p=[];u.eachNode(function(m){p.push(m)});var d=this._oldChildren||[];f(p,d),y(l,u),this._initEvents(),this._oldChildren=p;function f(m,x){if(m.length===0&&x.length===0)return;new vi(x,m,_,_).add(w).update(w).remove(at(w,null)).execute();function _(b){return b.getId()}function w(b,S){var M=b==null?null:m[b],I=S==null?null:x[S];g(M,I)}}function g(m,x){if(!h&&m&&!m.getValue()&&(m=null),m!==l&&x!==l){if(x&&x.piece)m?(x.piece.updateData(!1,m,t,i,o),s.setItemGraphicEl(m.dataIndex,x.piece)):v(x);else if(m){var _=new AC(m,t,i,o);c.add(_),s.setItemGraphicEl(m.dataIndex,_)}}}function v(m){m&&m.piece&&(c.remove(m.piece),m.piece=null)}function y(m,x){x.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,m,t,i,o):(a.virtualPiece=new AC(m,t,i,o),c.add(a.virtualPiece)),x.piece.off("click"),a.virtualPiece.on("click",function(_){a._rootToNode(x.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var o=!1,r=t.seriesModel.getViewRoot();r.eachNode(function(a){if(!o&&a.piece&&a.piece===i.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";ec(u,c)}}o=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:iy,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var o=i.getData(),r=o.getItemLayout(0);if(r){var a=t[0]-r.cx,s=t[1]-r.cy,l=Math.sqrt(a*a+s*s);return l<=r.r&&l>=r.r0}},e.type="sunburst",e}(Vt);const c8=u8;var h8=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var o={name:t.name,children:t.data};LC(o);var r=this._levelModels=G(t.levels||[],function(l){return new Pt(l,this,i)},this),a=iv.createTree(o,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var h=a.getNodeByDataIndex(c),p=r[h.depth];return p&&(u.parentModel=p),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=n.prototype.getDataParams.apply(this,arguments),o=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=rh(o,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){GI(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(Ft);function LC(n){var e=0;C(n.children,function(i){LC(i);var o=i.value;B(o)&&(o=o[0]),e+=o});var t=n.value;B(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),B(n.value)?n.value[0]=t:n.value=t}const p8=h8;var NC=Math.PI/180;function d8(n,e,t){e.eachSeriesByType(n,function(i){var o=i.get("center"),r=i.get("radius");B(r)||(r=[0,r]),B(o)||(o=[o,o]);var a=t.getWidth(),s=t.getHeight(),l=Math.min(a,s),u=H(o[0],a),c=H(o[1],s),h=H(r[0],l/2),p=H(r[1],l/2),d=-i.get("startAngle")*NC,f=i.get("minAngle")*NC,g=i.getData().tree.root,v=i.getViewRoot(),y=v.depth,m=i.get("sort");m!=null&&EC(v,m);var x=0;C(v.children,function(E){!isNaN(E.getValue())&&x++});var _=v.getValue(),w=Math.PI/(_||x)*2,b=v.depth>0,S=v.height-(b?-1:1),M=(p-h)/(S||1),I=i.get("clockwise"),D=i.get("stillShowZeroSum"),T=I?1:-1,A=function(E,V){if(E){var O=V;if(E!==g){var z=E.getValue(),F=_===0&&D?w:z*w;F<f&&(F=f),O=V+T*F;var W=E.depth-y-(b?-1:1),Z=h+M*W,Q=h+M*(W+1),tt=i.getLevelModel(E);if(tt){var ft=tt.get("r0",!0),_t=tt.get("r",!0),gt=tt.get("radius",!0);gt!=null&&(ft=gt[0],_t=gt[1]),ft!=null&&(Z=H(ft,l/2)),_t!=null&&(Q=H(_t,l/2))}E.setLayout({angle:F,startAngle:V,endAngle:O,clockwise:I,cx:u,cy:c,r0:Z,r:Q})}if(E.children&&E.children.length){var nt=0;C(E.children,function(vt){nt+=A(vt,V+nt)})}return O-V}};if(b){var k=h,L=h+M,N=Math.PI*2;g.setLayout({angle:N,startAngle:d,endAngle:d+N,clockwise:I,cx:u,cy:c,r0:k,r:L})}A(v,d)})}function EC(n,e){var t=n.children||[];n.children=f8(t,e),t.length&&C(n.children,function(i){EC(i,e)})}function f8(n,e){if($(e)){var t=G(n,function(o,r){var a=o.getValue();return{params:{depth:o.depth,height:o.height,dataIndex:o.dataIndex,getValue:function(){return a}},index:r}});return t.sort(function(o,r){return e(o.params,r.params)}),G(t,function(o){return n[o.index]})}else{var i=e==="asc";return n.sort(function(o,r){var a=(o.getValue()-r.getValue())*(i?1:-1);return a===0?(o.dataIndex-r.dataIndex)*(i?-1:1):a})}}function g8(n){var e={};function t(i,o,r){for(var a=i;a&&a.depth>1;)a=a.parentNode;var s=o.getColorFromPalette(a.name||a.dataIndex+"",e);return i.depth>1&&U(s)&&(s=Tp(s,(i.depth-1)/(r-1)*.5)),s}n.eachSeriesByType("sunburst",function(i){var o=i.getData(),r=o.tree;r.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(a,i,r.root.height));var u=o.ensureUniqueItemVisual(a.dataIndex,"style");R(u,l)})})}function v8(n){n.registerChartView(c8),n.registerSeriesModel(p8),n.registerLayout(at(d8,"sunburst")),n.registerProcessor(at(rl,"sunburst")),n.registerVisual(g8),l8(n)}var OC={color:"fill",borderColor:"stroke"},y8={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},wi=Mt(),m8=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return yi(null,this)},e.prototype.getDataParams=function(t,i,o){var r=n.prototype.getDataParams.call(this,t,i);return o&&(r.info=wi(o).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ft);const x8=m8;function _8(n,e){return e=e||[0,0],G(["x","y"],function(t,i){var o=this.getAxis(t),r=e[i],a=n[i]/2;return o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(r-a)-o.dataToCoord(r+a))},this)}function b8(n){var e=n.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:X(_8,n)}}}function w8(n,e){return e=e||[0,0],G([0,1],function(t){var i=e[t],o=n[t]/2,r=[],a=[];return r[t]=i-o,a[t]=i+o,r[1-t]=a[1-t]=e[1-t],Math.abs(this.dataToPoint(r)[t]-this.dataToPoint(a)[t])},this)}function S8(n){var e=n.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:n.getZoom()},api:{coord:function(t){return n.dataToPoint(t)},size:X(w8,n)}}}function M8(n,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,o=(n instanceof Array?n[0]:n)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(i-o)-t.dataToCoord(i+o))}function I8(n){var e=n.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return n.dataToPoint(t)},size:X(M8,n)}}}function C8(n,e){return e=e||[0,0],G(["Radius","Angle"],function(t,i){var o="get"+t+"Axis",r=this[o](),a=e[i],s=n[i]/2,l=r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(a-s)-r.dataToCoord(a+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function D8(n){var e=n.getRadiusAxis(),t=n.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:n.cx,cy:n.cy,r:i[1],r0:i[0]},api:{coord:function(o){var r=e.dataToRadius(o[0]),a=t.dataToAngle(o[1]),s=n.coordToPoint([r,a]);return s.push(r,a*Math.PI/180),s},size:X(C8,n)}}}function T8(n){var e=n.getRect(),t=n.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,o){return n.dataToPoint(i,o)}}}}var PC={};function VC(n,e,t,i){return n&&(n.legacy||n.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||Y(n,"text")))}function RC(n,e,t){var i=n,o,r,a;if(e==="text")a=i;else{a={},Y(i,"text")&&(a.text=i.text),Y(i,"rich")&&(a.rich=i.rich),Y(i,"textFill")&&(a.fill=i.textFill),Y(i,"textStroke")&&(a.stroke=i.textStroke),Y(i,"fontFamily")&&(a.fontFamily=i.fontFamily),Y(i,"fontSize")&&(a.fontSize=i.fontSize),Y(i,"fontStyle")&&(a.fontStyle=i.fontStyle),Y(i,"fontWeight")&&(a.fontWeight=i.fontWeight),r={type:"text",style:a,silent:!0},o={};var s=Y(i,"textPosition");t?o.position=s?i.textPosition:"inside":s&&(o.position=i.textPosition),Y(i,"textPosition")&&(o.position=i.textPosition),Y(i,"textOffset")&&(o.offset=i.textOffset),Y(i,"textRotation")&&(o.rotation=i.textRotation),Y(i,"textDistance")&&(o.distance=i.textDistance)}return zC(a,n),C(a.rich,function(l){zC(l,l)}),{textConfig:o,textContent:r}}function zC(n,e){e&&(e.font=e.textFont||e.font,Y(e,"textStrokeWidth")&&(n.lineWidth=e.textStrokeWidth),Y(e,"textAlign")&&(n.align=e.textAlign),Y(e,"textVerticalAlign")&&(n.verticalAlign=e.textVerticalAlign),Y(e,"textLineHeight")&&(n.lineHeight=e.textLineHeight),Y(e,"textWidth")&&(n.width=e.textWidth),Y(e,"textHeight")&&(n.height=e.textHeight),Y(e,"textBackgroundColor")&&(n.backgroundColor=e.textBackgroundColor),Y(e,"textPadding")&&(n.padding=e.textPadding),Y(e,"textBorderColor")&&(n.borderColor=e.textBorderColor),Y(e,"textBorderWidth")&&(n.borderWidth=e.textBorderWidth),Y(e,"textBorderRadius")&&(n.borderRadius=e.textBorderRadius),Y(e,"textBoxShadowColor")&&(n.shadowColor=e.textBoxShadowColor),Y(e,"textBoxShadowBlur")&&(n.shadowBlur=e.textBoxShadowBlur),Y(e,"textBoxShadowOffsetX")&&(n.shadowOffsetX=e.textBoxShadowOffsetX),Y(e,"textBoxShadowOffsetY")&&(n.shadowOffsetY=e.textBoxShadowOffsetY))}function BC(n,e,t){var i=n;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var o=i.textPosition.indexOf("inside")>=0,r=n.fill||"#000";GC(i,e);var a=i.textFill==null;return o?a&&(i.textFill=t.insideFill||"#fff",!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=r),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(a&&(i.textFill=n.fill||t.outsideFill||"#000"),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,C(e.rich,function(s){GC(s,s)}),i}function GC(n,e){e&&(Y(e,"fill")&&(n.textFill=e.fill),Y(e,"stroke")&&(n.textStroke=e.fill),Y(e,"lineWidth")&&(n.textStrokeWidth=e.lineWidth),Y(e,"font")&&(n.font=e.font),Y(e,"fontStyle")&&(n.fontStyle=e.fontStyle),Y(e,"fontWeight")&&(n.fontWeight=e.fontWeight),Y(e,"fontSize")&&(n.fontSize=e.fontSize),Y(e,"fontFamily")&&(n.fontFamily=e.fontFamily),Y(e,"align")&&(n.textAlign=e.align),Y(e,"verticalAlign")&&(n.textVerticalAlign=e.verticalAlign),Y(e,"lineHeight")&&(n.textLineHeight=e.lineHeight),Y(e,"width")&&(n.textWidth=e.width),Y(e,"height")&&(n.textHeight=e.height),Y(e,"backgroundColor")&&(n.textBackgroundColor=e.backgroundColor),Y(e,"padding")&&(n.textPadding=e.padding),Y(e,"borderColor")&&(n.textBorderColor=e.borderColor),Y(e,"borderWidth")&&(n.textBorderWidth=e.borderWidth),Y(e,"borderRadius")&&(n.textBorderRadius=e.borderRadius),Y(e,"shadowColor")&&(n.textBoxShadowColor=e.shadowColor),Y(e,"shadowBlur")&&(n.textBoxShadowBlur=e.shadowBlur),Y(e,"shadowOffsetX")&&(n.textBoxShadowOffsetX=e.shadowOffsetX),Y(e,"shadowOffsetY")&&(n.textBoxShadowOffsetY=e.shadowOffsetY),Y(e,"textShadowColor")&&(n.textShadowColor=e.textShadowColor),Y(e,"textShadowBlur")&&(n.textShadowBlur=e.textShadowBlur),Y(e,"textShadowOffsetX")&&(n.textShadowOffsetX=e.textShadowOffsetX),Y(e,"textShadowOffsetY")&&(n.textShadowOffsetY=e.textShadowOffsetY))}function FC(n,e){if(process.env.NODE_ENV!=="production"){var t=n+"^_^"+e;PC[t]||(console.warn('[ECharts] DEPRECATED: "'+n+'" has been deprecated. '+e),PC[t]=!0)}}var HC={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},WC=xt(HC),mh=Nn(Pn,function(n,e){return n[e]=1,n},{}),UC=Pn.join(", "),xh=["","style","shape","extra"],Ta=Mt();function oy(n,e,t,i,o){var r=n+"Animation",a=Yr(n,i,o)||{},s=Ta(e).userDuring;return a.duration>0&&(a.during=s?X(E8,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=n),R(a,t[r]),a}function _h(n,e,t,i){i=i||{};var o=i.dataIndex,r=i.isInit,a=i.clearStyle,s=t.isAnimationEnabled(),l=Ta(n),u=e.style;l.userDuring=e.during;var c={},h={};if(P8(n,e,h),ZC("shape",e,h),ZC("extra",e,h),!r&&s&&(O8(n,e,c),XC("shape",n,e,c),XC("extra",n,e,c),V8(n,e,u,c)),h.style=u,A8(n,h,a),L8(n,e),s)if(r){var p={};C(xh,function(f){var g=f?e[f]:e;g&&g.enterFrom&&(f&&(p[f]=p[f]||{}),R(f?p[f]:p,g.enterFrom))});var d=oy("enter",n,e,t,o);d.duration>0&&n.animateFrom(p,d)}else k8(n,e,o||0,t,c);YC(n,e),u?n.dirty():n.markRedraw()}function YC(n,e){for(var t=Ta(n).leaveToProps,i=0;i<xh.length;i++){var o=xh[i],r=o?e[o]:e;r&&r.leaveTo&&(t||(t=Ta(n).leaveToProps={}),o&&(t[o]=t[o]||{}),R(o?t[o]:t,r.leaveTo))}}function bh(n,e,t,i){if(n){var o=n.parent,r=Ta(n).leaveToProps;if(r){var a=oy("update",n,e,t,0);a.done=function(){o.remove(n),i&&i()},n.animateTo(r,a)}else o.remove(n),i&&i()}}function br(n){return n==="all"}function A8(n,e,t){var i=e.style;if(!n.isGroup&&i){if(t){n.useStyle({});for(var o=n.animators,r=0;r<o.length;r++){var a=o[r];a.targetName==="style"&&a.changeTarget(n.style)}}n.setStyle(i)}e&&(e.style=null,e&&n.attr(e),e.style=i)}function k8(n,e,t,i,o){if(o){var r=oy("update",n,e,i,t);r.duration>0&&n.animateFrom(o,r)}}function L8(n,e){Y(e,"silent")&&(n.silent=e.silent),Y(e,"ignore")&&(n.ignore=e.ignore),n instanceof tn&&Y(e,"invisible")&&(n.invisible=e.invisible),n instanceof mt&&Y(e,"autoBatch")&&(n.autoBatch=e.autoBatch)}var Jn={},N8={setTransform:function(n,e){return process.env.NODE_ENV!=="production"&&J(Y(mh,n),"Only "+UC+" available in `setTransform`."),Jn.el[n]=e,this},getTransform:function(n){return process.env.NODE_ENV!=="production"&&J(Y(mh,n),"Only "+UC+" available in `getTransform`."),Jn.el[n]},setShape:function(n,e){process.env.NODE_ENV!=="production"&&Aa(n);var t=Jn.el,i=t.shape||(t.shape={});return i[n]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(n){process.env.NODE_ENV!=="production"&&Aa(n);var e=Jn.el.shape;if(e)return e[n]},setStyle:function(n,e){process.env.NODE_ENV!=="production"&&Aa(n);var t=Jn.el,i=t.style;return i&&(process.env.NODE_ENV!=="production"&&co(e)&&Ht("style."+n+" must not be assigned with NaN."),i[n]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(n){process.env.NODE_ENV!=="production"&&Aa(n);var e=Jn.el.style;if(e)return e[n]},setExtra:function(n,e){process.env.NODE_ENV!=="production"&&Aa(n);var t=Jn.el.extra||(Jn.el.extra={});return t[n]=e,this},getExtra:function(n){process.env.NODE_ENV!=="production"&&Aa(n);var e=Jn.el.extra;if(e)return e[n]}};function Aa(n){if(process.env.NODE_ENV!=="production"&&(n==="transition"||n==="enterFrom"||n==="leaveTo"))throw new Error('key must not be "'+n+'"')}function E8(){var n=this,e=n.el;if(e){var t=Ta(e).userDuring,i=n.userDuring;if(t!==i){n.el=n.userDuring=null;return}Jn.el=e,i(N8)}}function XC(n,e,t,i){var o=t[n];if(o){var r=e[n],a;if(r){var s=t.transition,l=o.transition;if(l)if(!a&&(a=i[n]={}),br(l))R(a,r);else for(var u=Nt(l),c=0;c<u.length;c++){var h=u[c],p=r[h];a[h]=p}else if(br(s)||dt(s,n)>=0){!a&&(a=i[n]={});for(var d=xt(r),c=0;c<d.length;c++){var h=d[c],p=r[h];R8(o[h],p)&&(a[h]=p)}}}}}function ZC(n,e,t){var i=e[n];if(i)for(var o=t[n]={},r=xt(i),a=0;a<r.length;a++){var s=r[a];o[s]=Ka(i[s])}}function O8(n,e,t){for(var i=e.transition,o=br(i)?Pn:Nt(i||[]),r=0;r<o.length;r++){var a=o[r];if(!(a==="style"||a==="shape"||a==="extra")){var s=n[a];process.env.NODE_ENV!=="production"&&jC(a,"el.transition"),t[a]=s}}}function P8(n,e,t){for(var i=0;i<WC.length;i++){var o=WC[i],r=HC[o],a=e[o];a&&(t[r[0]]=a[0],t[r[1]]=a[1])}for(var i=0;i<Pn.length;i++){var s=Pn[i];e[s]!=null&&(t[s]=e[s])}}function V8(n,e,t,i){if(t){var o=n.style,r;if(o){var a=t.transition,s=e.transition;if(a&&!br(a)){var l=Nt(a);!r&&(r=i.style={});for(var u=0;u<l.length;u++){var c=l[u],h=o[c];r[c]=h}}else if(n.getAnimationStyleProps&&(br(s)||br(a)||dt(s,"style")>=0)){var p=n.getAnimationStyleProps(),d=p?p.style:null;if(d){!r&&(r=i.style={});for(var f=xt(t),u=0;u<f.length;u++){var c=f[u];if(d[c]){var h=o[c];r[c]=h}}}}}}}function R8(n,e){return ye(n)?n!==e:n!=null&&isFinite(n)}var jC;process.env.NODE_ENV!=="production"&&(jC=function(n,e){Y(mh,n)||Ht("Prop `"+n+"` is not a permitted in `"+e+"`. Only `"+xt(mh).join("`, `")+"` are permitted.")});var qC=Mt(),z8=["percent","easing","shape","style","extra"];function $C(n){n.stopAnimation("keyframe"),n.attr(qC(n))}function wh(n,e,t){if(!(!t.isAnimationEnabled()||!e)){if(B(e)){C(e,function(s){wh(n,s,t)});return}var i=e.keyframes,o=e.duration;if(t&&o==null){var r=Yr("enter",t,0);o=r&&r.duration}if(!(!i||!o)){var a=qC(n);C(xh,function(s){if(!(s&&!n[s])){var l,u=!1;i.sort(function(c,h){return c.percent-h.percent}),C(i,function(c){var h=n.animators,p=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!p){var d=xt(p);if(s||(d=Lt(d,function(v){return dt(z8,v)<0})),!!d.length){l||(l=n.animate(s,e.loop,!0),l.scope="keyframe");for(var f=0;f<h.length;f++)h[f]!==l&&h[f].targetName===l.targetName&&h[f].stopTracks(d);s&&(a[s]=a[s]||{});var g=s?a[s]:a;C(d,function(v){g[v]=((s?n[s]:n)||{})[v]}),l.whenWithKeys(o*c.percent,p,d,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Ht("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(o).start(e.easing))}})}}}var Si="emphasis",io="normal",ry="blur",ay="select",oo=[io,Si,ry,ay],sy={normal:["itemStyle"],emphasis:[Si,"itemStyle"],blur:[ry,"itemStyle"],select:[ay,"itemStyle"]},ly={normal:["label"],emphasis:[Si,"label"],blur:[ry,"label"],select:[ay,"label"]},B8=["x","y"],G8="e\0\0",dn={normal:{},emphasis:{},blur:{},select:{}},KC={cartesian2d:b8,geo:S8,single:I8,polar:D8,calendar:T8};function Sh(n){return n instanceof mt}function uy(n){return n instanceof tn}function F8(n,e){e.copyTransform(n),uy(e)&&uy(n)&&(e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel,e.invisible=n.invisible,e.ignore=n.ignore,Sh(e)&&Sh(n)&&e.setShape(n.shape))}var H8=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this._progressiveEls=null;var a=this._data,s=t.getData(),l=this.group,u=QC(t,s,i,o);a||l.removeAll(),s.diff(a).add(function(h){py(o,null,h,u(h,r),t,l,s)}).remove(function(h){var p=a.getItemGraphicEl(h);p&&bh(p,wi(p).option,t)}).update(function(h,p){var d=a.getItemGraphicEl(p);py(o,d,h,u(h,r),t,l,s)}).execute();var c=t.get("clip",!0)?Yc(t.coordinateSystem,!1,t):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,o){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,o,r,a){var s=i.getData(),l=QC(i,s,o,r),u=this._progressiveEls=[];function c(d){d.isGroup||(d.incremental=!0,d.ensureState("emphasis").hoverLayer=!0)}for(var h=t.start;h<t.end;h++){var p=py(null,null,h,l(h,a),i,this.group,s);p&&(p.traverse(c),u.push(p))}},e.prototype.eachRendered=function(t){Fi(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,o,r){var a=i.element;if(a==null||o.name===a)return!0;for(;(o=o.__hostTarget||o.parent)&&o!==this.group;)if(o.name===a)return!0;return!1},e.type="custom",e}(Vt);const W8=H8;function cy(n){var e=n.type,t;if(e==="path"){var i=n.shape,o=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,r=oD(i);t=Hu(r,null,o,i.layout||"center"),wi(t).customPathData=r}else if(e==="image")t=new he({}),wi(t).customImagePath=n.style.image;else if(e==="text")t=new Dt({});else if(e==="group")t=new ot;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=Hd(e);if(!a){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),At(s)}t=new a}return wi(t).customGraphicType=e,t.name=n.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function hy(n,e,t,i,o,r,a){$C(e);var s=o&&o.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=B8);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=Sh(e)?l.decal:null;n&&h&&(h.dirty=!0,c=pa(h,n)),l.__decalPattern=c}if(uy(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}_h(e,i,r,{dataIndex:t,isInit:a,clearStyle:!0}),wh(e,i.keyframeAnimation,r)}function JC(n,e,t,i,o){var r=e.isGroup?null:e,a=o&&o[n].cfg;if(r){var s=r.ensureState(n);if(i===!1){var l=r.getState(n);l&&(l.style=null)}else s.style=i||null;a&&(s.textConfig=a),Vo(r)}}function U8(n,e,t){if(!n.isGroup){var i=n,o=t.currentZ,r=t.currentZLevel;i.z=o,i.zlevel=r;var a=e.z2;a!=null&&(i.z2=a||0);for(var s=0;s<oo.length;s++)Y8(i,e,oo[s])}}function Y8(n,e,t){var i=t===io,o=i?e:Mh(e,t),r=o?o.z2:null,a;r!=null&&(a=i?n:n.ensureState(t),a.z2=r||0)}function QC(n,e,t,i){var o=n.get("renderItem"),r=n.coordinateSystem,a={};r&&(process.env.NODE_ENV!=="production"&&(J(o,"series.render is required."),J(r.prepareCustoms||KC[r.type],"This coordSys does not support custom series.")),a=r.prepareCustoms?r.prepareCustoms(r):KC[r.type](r));for(var s=et({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:_,style:b,ordinalRawValue:w,styleEmphasis:S,visual:D,barLayout:T,currentSeriesIndices:A,font:k},a.api||{}),l={context:{},seriesId:n.id,seriesName:n.name,seriesIndex:n.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:X8(n.getData())},u,c,h={},p={},d={},f={},g=0;g<oo.length;g++){var v=oo[g];d[v]=n.getModel(sy[v]),f[v]=n.getModel(ly[v])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function m(L,N){return e.hasItemOption?L===u?h[N]||(h[N]=y(L).getModel(sy[N])):y(L).getModel(sy[N]):d[N]}function x(L,N){return e.hasItemOption?L===u?p[N]||(p[N]=y(L).getModel(ly[N])):y(L).getModel(ly[N]):f[N]}return function(L,N){return u=L,c=null,h={},p={},o&&o(et({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:N?N.type:null},l),s)};function _(L,N){return N==null&&(N=u),e.getStore().get(e.getDimensionIndex(L||0),N)}function w(L,N){N==null&&(N=u),L=L||0;var E=e.getDimensionInfo(L);if(!E){var V=e.getDimensionIndex(L);return V>=0?e.getStore().get(V,N):void 0}var O=e.get(E.name,N),z=E&&E.ordinalMeta;return z?z.categories[O]:O}function b(L,N){process.env.NODE_ENV!=="production"&&FC("api.style","Please write literal style directly instead."),N==null&&(N=u);var E=e.getItemVisual(N,"style"),V=E&&E.fill,O=E&&E.opacity,z=m(N,io).getItemStyle();V!=null&&(z.fill=V),O!=null&&(z.opacity=O);var F={inheritColor:U(V)?V:"#000"},W=x(N,io),Z=Ot(W,null,F,!1,!0);Z.text=W.getShallow("show")?ut(n.getFormattedLabel(N,io),ma(e,N)):null;var Q=Xu(W,F,!1);return I(L,z),z=BC(z,Z,Q),L&&M(z,L),z.legacy=!0,z}function S(L,N){process.env.NODE_ENV!=="production"&&FC("api.styleEmphasis","Please write literal style directly instead."),N==null&&(N=u);var E=m(N,Si).getItemStyle(),V=x(N,Si),O=Ot(V,null,null,!0,!0);O.text=V.getShallow("show")?Ze(n.getFormattedLabel(N,Si),n.getFormattedLabel(N,io),ma(e,N)):null;var z=Xu(V,null,!0);return I(L,E),E=BC(E,O,z),L&&M(E,L),E.legacy=!0,E}function M(L,N){for(var E in N)Y(N,E)&&(L[E]=N[E])}function I(L,N){L&&(L.textFill&&(N.textFill=L.textFill),L.textPosition&&(N.textPosition=L.textPosition))}function D(L,N){if(N==null&&(N=u),Y(OC,L)){var E=e.getItemVisual(N,"style");return E?E[OC[L]]:null}if(Y(y8,L))return e.getItemVisual(N,L)}function T(L){if(r.type==="cartesian2d"){var N=r.getBaseAxis();return qR(et({axis:N},L))}}function A(){return t.getCurrentSeriesIndices()}function k(L){return Rx(L,t)}}function X8(n){var e={};return C(n.dimensions,function(t){var i=n.getDimensionInfo(t);if(!i.isExtraCoord){var o=i.coordDim,r=e[o]=e[o]||[];r[i.coordDimIndex]=n.getDimensionIndex(t)}}),e}function py(n,e,t,i,o,r,a){if(!i){r.remove(e);return}var s=dy(n,e,t,i,o,r);return s&&a.setItemGraphicEl(t,s),s&&Ut(s,i.focus,i.blurScope,i.emphasisDisabled),s}function dy(n,e,t,i,o,r){process.env.NODE_ENV!=="production"&&J(i,"should not have an null/undefined element setting");var a=-1,s=e;e&&tD(e,i,o)&&(a=dt(r.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=cy(i),s&&F8(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),dn.normal.cfg=dn.normal.conOpt=dn.emphasis.cfg=dn.emphasis.conOpt=dn.blur.cfg=dn.blur.conOpt=dn.select.cfg=dn.select.conOpt=null,dn.isLegacy=!1,j8(u,t,i,o,l,dn),Z8(u,t,i,o,l),hy(n,u,t,i,dn,o,l),Y(i,"info")&&(wi(u).info=i.info);for(var c=0;c<oo.length;c++){var h=oo[c];if(h!==io){var p=Mh(i,h),d=fy(i,p,h);JC(h,u,p,d,dn)}}return U8(u,i,o),i.type==="group"&&q8(n,u,t,i,o),a>=0?r.replaceAt(u,a):r.add(u),u}function tD(n,e,t){var i=wi(n),o=e.type,r=e.shape,a=e.style;return t.isUniversalTransitionEnabled()||o!=null&&o!==i.customGraphicType||o==="path"&&Q8(r)&&oD(r)!==i.customPathData||o==="image"&&Y(a,"image")&&a.image!==i.customImagePath}function Z8(n,e,t,i,o){var r=t.clipPath;if(r===!1)n&&n.getClipPath()&&n.removeClipPath();else if(r){var a=n.getClipPath();a&&tD(a,r,i)&&(a=null),a||(a=cy(r),process.env.NODE_ENV!=="production"&&J(Sh(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),n.setClipPath(a)),hy(null,a,e,r,null,i,o)}}function j8(n,e,t,i,o,r){if(!n.isGroup){eD(t,null,r),eD(t,Si,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,u=r.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=n.getTextContent();if(a===!1)c&&n.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=cy(a),n.setTextContent(c)),hy(null,c,e,a,null,i,o);for(var h=a&&a.style,p=0;p<oo.length;p++){var d=oo[p];if(d!==io){var f=r[d].conOpt;JC(d,c,f,fy(a,f,d),null)}}h?c.dirty():c.markRedraw()}}}}function eD(n,e,t){var i=e?Mh(n,e):n,o=e?fy(n,i,Si):n.style,r=n.type,a=i?i.textConfig:null,s=n.textContent,l=s?e?Mh(s,e):s:null;if(o&&(t.isLegacy||VC(o,r,!!a,!!l))){t.isLegacy=!0;var u=RC(o,r,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&J(c.type==="text",'textContent.type must be "text"')}var h=e?t[e]:t.normal;h.cfg=a,h.conOpt=l}function Mh(n,e){return e?n?n[e]:null:n}function fy(n,e,t){var i=e&&e.style;return i==null&&t===Si&&n&&(i=n.styleEmphasis),i}function q8(n,e,t,i,o){var r=i.children,a=r?r.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!a&&!l&&!u)){if(l){K8({api:n,oldChildren:e.children()||[],newChildren:r||[],dataIndex:t,seriesModel:o,group:e});return}u&&e.removeAll();for(var c=0;c<a;c++){var h=r[c],p=e.childAt(c);h?(h.ignore==null&&(h.ignore=!1),dy(n,p,t,h,o,e)):(process.env.NODE_ENV!=="production"&&J(p,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),p.ignore=!0)}for(var d=e.childCount()-1;d>=c;d--){var f=e.childAt(d);$8(e,f,o)}}}function $8(n,e,t){e&&bh(e,wi(n).option,t)}function K8(n){new vi(n.oldChildren,n.newChildren,nD,nD,n).add(iD).update(iD).remove(J8).execute()}function nD(n,e){var t=n&&n.name;return t??G8+e}function iD(n,e){var t=this.context,i=n!=null?t.newChildren[n]:null,o=e!=null?t.oldChildren[e]:null;dy(t.api,o,t.dataIndex,i,t.seriesModel,t.group)}function J8(n){var e=this.context,t=e.oldChildren[n];t&&bh(t,wi(t).option,e.seriesModel)}function oD(n){return n&&(n.pathData||n.d)}function Q8(n){return n&&(Y(n,"pathData")||Y(n,"d"))}function t7(n){n.registerChartView(W8),n.registerSeriesModel(x8)}var wr=Mt(),rD=it,gy=X,e7=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(e,t,i,o){var r=t.get("value"),a=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!o&&this._lastValue===r&&this._lastStatus===a)){this._lastValue=r,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,r,e,t,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ot,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var p=at(aD,t,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,t)}uD(s,t,!0),this._renderHandle(r)}},n.prototype.remove=function(e){this.clear(e)},n.prototype.dispose=function(e){this.clear(e)},n.prototype.determineAnimation=function(e,t){var i=t.get("animation"),o=e.axis,r=o.type==="category",a=t.get("snap");if(!a&&!r)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(r&&o.getBandWidth()>s)return!0;if(a){var l=Gg(e).seriesDataCount,u=o.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(e,t,i,o,r){},n.prototype.createPointerEl=function(e,t,i,o){var r=t.pointer;if(r){var a=wr(e).pointerEl=new bs[r.type](rD(t.pointer));e.add(a)}},n.prototype.createLabelEl=function(e,t,i,o){if(t.label){var r=wr(e).labelEl=new Dt(rD(t.label));e.add(r),lD(r,o)}},n.prototype.updatePointerEl=function(e,t,i){var o=wr(e).pointerEl;o&&t.pointer&&(o.setStyle(t.pointer.style),i(o,{shape:t.pointer.shape}))},n.prototype.updateLabelEl=function(e,t,i,o){var r=wr(e).labelEl;r&&(r.setStyle(t.label.style),i(r,{x:t.label.x,y:t.label.y}),lD(r,o))},n.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=t.getModel("handle"),a=t.get("status");if(!r.get("show")||!a||a==="hide"){o&&i.remove(o),this._handle=null;return}var s;this._handle||(s=!0,o=this._handle=xs(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ii(u.event)},onmousedown:gy(this._onHandleDragMove,this,0,0),drift:gy(this._onHandleDragMove,this),ondragend:gy(this._onHandleDragEnd,this)}),i.add(o)),uD(o,t,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=r.get("size");B(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,la(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},n.prototype._moveHandleToValue=function(e,t){aD(this._axisPointerModel,!t&&this._moveAnimation,this._handle,vy(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var o=this.updateHandleTransform(vy(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=o,i.stopAnimation(),i.attr(vy(o)),wr(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,o=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),o&&t.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),Os(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},n}();function aD(n,e,t,i){sD(wr(t).lastProp,i)||(wr(t).lastProp=i,e?Tt(t,i,n):(t.stopAnimation(),t.attr(i)))}function sD(n,e){if(K(n)&&K(e)){var t=!0;return C(e,function(i,o){t=t&&sD(n[o],i)}),!!t}else return n===e}function lD(n,e){n[e.get(["label","show"])?"show":"hide"]()}function vy(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function uD(n,e,t){var i=e.get("z"),o=e.get("zlevel");n&&n.traverse(function(r){r.type!=="group"&&(i!=null&&(r.z=i),o!=null&&(r.zlevel=o),r.silent=t)})}const yy=e7;function my(n){var e=n.get("type"),t=n.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function cD(n,e,t,i,o){var r=t.get("value"),a=hD(r,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Qr(s.get("padding")||0),u=s.getFont(),c=ts(a,u),h=o.position,p=c.width+l[1]+l[3],d=c.height+l[0]+l[2],f=o.align;f==="right"&&(h[0]-=p),f==="center"&&(h[0]-=p/2);var g=o.verticalAlign;g==="bottom"&&(h[1]-=d),g==="middle"&&(h[1]-=d/2),n7(h,p,d,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=e.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:Ot(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function n7(n,e,t,i){var o=i.getWidth(),r=i.getHeight();n[0]=Math.min(n[0]+e,o)-e,n[1]=Math.min(n[1]+t,r)-t,n[0]=Math.max(n[0],0),n[1]=Math.max(n[1],0)}function hD(n,e,t,i,o){n=e.scale.parse(n);var r=e.scale.getLabel({value:n},{precision:o.precision}),a=o.formatter;if(a){var s={value:lg(e,{value:n}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};C(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),U(a)?r=a.replace("{value}",r):$(a)&&(r=a(s))}return r}function xy(n,e,t){var i=$e();return go(i,i,t.rotation),En(i,i,t.position),Cn([n.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function pD(n,e,t,i,o,r){var a=xi.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=o.get(["label","margin"]),cD(e,i,o,r,{position:xy(i.axis,n,t),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function _y(n,e,t){return t=t||0,{x1:n[t],y1:n[1-t],x2:e[t],y2:e[1-t]}}function dD(n,e,t){return t=t||0,{x:n[t],y:n[1-t],width:e[t],height:e[1-t]}}function fD(n,e,t,i,o,r){return{cx:n,cy:e,r0:t,r:i,startAngle:o,endAngle:r,clockwise:!0}}var i7=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.grid,u=r.get("type"),c=gD(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=my(r),d=o7[u](s,h,c);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Vg(l.model,o);pD(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Vg(i.axis.grid.model,i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=xy(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.grid,l=a.getGlobalExtent(!0),u=gD(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[t.x,t.y];h[c]+=i[c],h[c]=Math.min(l[1],h[c]),h[c]=Math.max(l[0],h[c]);var p=(u[1]+u[0])/2,d=[p,p];d[c]=h[c];var f=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:f[c]}},e}(yy);function gD(n,e){var t={};return t[e.dim+"AxisIndex"]=e.index,n.getCartesian(t)}var o7={line:function(n,e,t){var i=_y([e,t[0]],[e,t[1]],vD(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=Math.max(1,n.getBandWidth()),o=t[1]-t[0];return{type:"Rect",shape:dD([e-i/2,t[0]],[i,o],vD(n))}}};function vD(n){return n.dim==="x"?0:1}const r7=i7;var a7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(bt);const s7=a7;var Mi=Mt(),l7=C;function yD(n,e,t){if(!St.node){var i=e.getZr();Mi(i).records||(Mi(i).records={}),u7(i,e);var o=Mi(i).records[n]||(Mi(i).records[n]={});o.handler=t}}function u7(n,e){if(Mi(n).initialized)return;Mi(n).initialized=!0,t("click",at(mD,"click")),t("mousemove",at(mD,"mousemove")),t("globalout",h7);function t(i,o){n.on(i,function(r){var a=p7(e);l7(Mi(n).records,function(s){s&&o(s,r,a.dispatchAction)}),c7(a.pendings,e)})}}function c7(n,e){var t=n.showTip.length,i=n.hideTip.length,o;t?o=n.showTip[t-1]:i&&(o=n.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}function h7(n,e,t){n.handler("leave",null,t)}function mD(n,e,t,i){e.handler(n,t,i)}function p7(n){var e={showTip:[],hideTip:[]},t=function(i){var o=e[i.type];o?o.push(i):(i.dispatchAction=t,n.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function by(n,e){if(!St.node){var t=e.getZr(),i=(Mi(t).records||{})[n];i&&(Mi(t).records[n]=null)}}var d7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=i.getComponent("tooltip"),a=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";yD("axisPointer",o,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){by("axisPointer",i)},e.prototype.dispose=function(t,i){by("axisPointer",i)},e.type="axisPointer",e}(Yt);const f7=d7;function xD(n,e){var t=[],i=n.seriesIndex,o;if(i==null||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=Mo(r,n);if(a==null||a<0||B(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)t=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,p=u.dim,d=h==="x"||h==="radius"?1:0,f=r.mapDimension(p),g=[];g[d]=r.get(f,a),g[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),t=l.dataToPoint(g)||[]}else t=l.dataToPoint(r.getValues(G(l.dimensions,function(y){return r.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),t=[v.x+v.width/2,v.y+v.height/2]}return{point:t,el:s}}var _D=Mt();function g7(n,e,t){var i=n.currTrigger,o=[n.x,n.y],r=n,a=n.dispatchAction||X(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Ih(o)&&(o=xD({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=Ih(o),u=r.axesInfo,c=s.axesInfo,h=i==="leave"||Ih(o),p={},d={},f={list:[],map:{}},g={showPointer:at(y7,d),showTooltip:at(m7,f)};C(s.coordSysMap,function(y,m){var x=l||y.containPoint(o);C(s.coordSysAxesInfo[m],function(_,w){var b=_.axis,S=w7(u,_);if(!h&&x&&(!u||S)){var M=S&&S.value;M==null&&!l&&(M=b.pointToData(o)),M!=null&&bD(_,M,g,!1,p)}})});var v={};return C(c,function(y,m){var x=y.linkGroup;x&&!d[m]&&C(x.axesInfo,function(_,w){var b=d[w];if(_!==y&&b){var S=b.value;x.mapper&&(S=y.axis.scale.parse(x.mapper(S,wD(_),wD(y)))),v[y.key]=S}})}),C(v,function(y,m){bD(c[m],y,g,!0,p)}),x7(d,c,p),_7(f,o,n,a),b7(c,a,t),p}}function bD(n,e,t,i,o){var r=n.axis;if(!(r.scale.isBlank()||!r.containData(e))){if(!n.involveSeries){t.showPointer(n,e);return}var a=v7(e,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&o.seriesIndex==null&&R(o,s[0]),!i&&n.snap&&r.containData(l)&&l!=null&&(e=l),t.showPointer(n,e,s),t.showTooltip(n,a,l)}}function v7(n,e){var t=e.axis,i=t.dim,o=n,r=[],a=Number.MAX_VALUE,s=-1;return C(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var d=l.getAxisTooltipData(c,n,t);p=d.dataIndices,h=d.nestestValue}else{if(p=l.getData().indicesOfNearest(c[0],n,t.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(!(h==null||!isFinite(h))){var f=n-h,g=Math.abs(f);g<=a&&((g<a||f>=0&&s<0)&&(a=g,s=f,o=h,r.length=0),C(p,function(v){r.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:r,snapToValue:o}}function y7(n,e,t,i){n[e.key]={value:t,payloadBatch:i}}function m7(n,e,t,i){var o=t.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!o.length)){var l=e.coordSys.model,u=sl(l),c=n.map[u];c||(c=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function x7(n,e,t){var i=t.axesInfo=[];C(e,function(o,r){var a=o.axisPointerModel.option,s=n[r];s?(!o.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!o.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:a.value})})}function _7(n,e,t,i){if(Ih(e)||!n.list.length){i({type:"hideTip"});return}var o=((n.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:n.list})}function b7(n,e,t){var i=t.getZr(),o="axisPointerLastHighlights",r=_D(i)[o]||{},a=_D(i)[o]={};C(n,function(u,c){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&C(h.seriesDataIndices,function(p){var d=p.seriesIndex+" | "+p.dataIndex;a[d]=p})});var s=[],l=[];C(r,function(u,c){!a[c]&&l.push(u)}),C(a,function(u,c){!r[c]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function w7(n,e){for(var t=0;t<(n||[]).length;t++){var i=n[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function wD(n){var e=n.axis.model,t={},i=t.axisDim=n.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function Ih(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Il(n){pr.registerAxisPointerClass("CartesianAxisPointer",r7),n.registerComponentModel(s7),n.registerComponentView(f7),n.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=cB(e,t)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},g7)}function S7(n){yt(ZM),yt(Il)}var M7=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),h=s.dataToCoord(i),p=r.get("type");if(p&&p!=="none"){var d=my(r),f=C7[p](s,l,h,c);f.style=d,t.graphicKey=f.type,t.pointer=f}var g=r.get(["label","margin"]),v=I7(i,o,r,l,g);cD(t,o,r,a,v)},e}(yy);function I7(n,e,t,i,o){var r=e.axis,a=r.dataToCoord(n),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,c,h;if(r.dim==="radius"){var p=$e();go(p,p,s),En(p,p,[i.cx,i.cy]),u=Cn([a,-o],p);var d=e.getModel("axisLabel").get("rotate")||0,f=xi.innerTextLayout(s,d*Math.PI/180,-1);c=f.textAlign,h=f.textVerticalAlign}else{var g=l[1];u=i.coordToPoint([g+o,a]);var v=i.cx,y=i.cy;c=Math.abs(u[0]-v)/g<.3?"center":u[0]>v?"left":"right",h=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:h}}var C7={line:function(n,e,t,i){return n.dim==="angle"?{type:"Line",shape:_y(e.coordToPoint([i[0],t]),e.coordToPoint([i[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(n,e,t,i){var o=Math.max(1,n.getBandWidth()),r=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:fD(e.cx,e.cy,i[0],i[1],(-t-o/2)*r,(-t+o/2)*r)}:{type:"Sector",shape:fD(e.cx,e.cy,t-o/2,t+o/2,0,Math.PI*2)}}};const D7=M7;var T7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,o=this.ecModel;return o.eachComponent(t,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(bt);const A7=T7;var wy=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Qt).models[0]},e.type="polarAxis",e}(bt);$t(wy,qs);var k7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(wy),L7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(wy),Sy=function(n){P(e,n);function e(t,i){return n.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e}(An);Sy.prototype.dataToRadius=An.prototype.dataToCoord,Sy.prototype.radiusToData=An.prototype.coordToData;const N7=Sy;var E7=Mt(),My=function(n){P(e,n);function e(t,i){return n.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),o=t.scale,r=o.getExtent(),a=o.count();if(r[1]-r[0]<1)return 0;var s=r[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),c=ts(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(c.height,7),p=h/u;isNaN(p)&&(p=1/0);var d=Math.max(0,Math.floor(p)),f=E7(t.model),g=f.lastAutoInterval,v=f.lastTickCount;return g!=null&&v!=null&&Math.abs(g-d)<=1&&Math.abs(v-a)<=1&&g>d?d=g:(f.lastTickCount=a,f.lastAutoInterval=d),d},e}(An);My.prototype.dataToAngle=An.prototype.dataToCoord,My.prototype.angleToData=An.prototype.coordToData;const O7=My;var SD=["radius","angle"],P7=function(){function n(e){this.dimensions=SD,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new N7,this._angleAxis=new O7,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},n.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},n.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,o=this._radiusAxis;return i.scale.type===e&&t.push(i),o.scale.type===e&&t.push(o),t},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},n.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},n.prototype.pointToData=function(e,t){var i=this.pointToCoord(e);return[this._radiusAxis.radiusToData(i[0],t),this._angleAxis.angleToData(i[1],t)]},n.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,o=this.getAngleAxis(),r=o.getExtent(),a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);o.inverse?a=s-360:s=a+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=c*360;return[l,u]},n.prototype.coordToPoint=function(e){var t=e[0],i=e[1]/180*Math.PI,o=Math.cos(i)*t+this.cx,r=-Math.sin(i)*t+this.cy;return[o,r]},n.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var o=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-o[0]*r,endAngle:-o[1]*r,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,h=this.r,p=this.r0;return c<=h*h&&c>=p*p}}},n.prototype.convertToPixel=function(e,t,i){var o=MD(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=MD(t);return o===this?this.pointToData(i):null},n}();function MD(n){var e=n.seriesModel,t=n.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const V7=P7;function R7(n,e,t){var i=e.get("center"),o=t.getWidth(),r=t.getHeight();n.cx=H(i[0],o),n.cy=H(i[1],r);var a=n.getRadiusAxis(),s=Math.min(o,r)/2,l=e.get("radius");l==null?l=[0,"100%"]:B(l)||(l=[0,l]);var u=[H(l[0],s),H(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function z7(n,e){var t=this,i=t.getAngleAxis(),o=t.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),o.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();C(Rc(l,"radius"),function(u){o.scale.unionExtentFromData(l,u)}),C(Rc(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),va(i.scale,i.model),va(o.scale,o.model),i.type==="category"&&!i.onBand){var r=i.getExtent(),a=360/i.scale.count();i.inverse?r[1]+=a:r[1]-=a,i.setExtent(r[0],r[1])}}function B7(n){return n.mainType==="angleAxis"}function ID(n,e){if(n.type=e.get("type"),n.scale=Vc(e),n.onBand=e.get("boundaryGap")&&n.type==="category",n.inverse=e.get("inverse"),B7(e)){n.inverse=n.inverse!==e.get("clockwise");var t=e.get("startAngle");n.setExtent(t,t+(n.inverse?-360:360))}e.axis=n,n.model=e}var G7={dimensions:SD,create:function(n,e){var t=[];return n.eachComponent("polar",function(i,o){var r=new V7(o+"");r.update=z7;var a=r.getRadiusAxis(),s=r.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");ID(a,l),ID(s,u),R7(r,i,e),t.push(r),i.coordinateSystem=r,r.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var o=i.getReferringComponents("polar",Qt).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error('Polar "'+Kt(i.get("polarIndex"),i.get("polarId"),0)+'" not found');i.coordinateSystem=o.coordinateSystem}}),t}};const F7=G7;var H7=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ch(n,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=n.coordToPoint([e[0],t]),o=n.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:o[0],y2:o[1]}}function Dh(n){var e=n.getRadiusAxis();return e.inverse?0:1}function CD(n){var e=n[0],t=n[n.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&n.pop()}var W7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=t.axis,r=o.polar,a=r.getRadiusAxis().getExtent(),s=o.getTicksCoords(),l=o.getMinorTicksCoords(),u=G(o.getViewLabels(),function(c){c=it(c);var h=o.scale,p=h.type==="ordinal"?h.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=o.dataToCoord(p),c});CD(u),CD(s),C(H7,function(c){t.get([c,"show"])&&(!o.scale.isBlank()||c==="axisLine")&&U7[c](this.group,t,r,s,l,a,u)},this)}},e.type="angleAxis",e}(pr),U7={axisLine:function(n,e,t,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=Dh(t),l=s?0:1,u;r[l]===0?u=new Wn({shape:{cx:t.cx,cy:t.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):u=new Pu({shape:{cx:t.cx,cy:t.cy,r:r[s],r0:r[l]},style:a.getLineStyle(),z2:1,silent:!0}),u.style.fill=null,n.add(u)},axisTick:function(n,e,t,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[Dh(t)],u=G(i,function(c){return new ue({shape:Ch(t,[l,l+s],c.coord)})});n.add(nn(u,{style:et(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[Dh(t)],c=[],h=0;h<o.length;h++)for(var p=0;p<o[h].length;p++)c.push(new ue({shape:Ch(t,[u,u+l],o[h][p].coord)}));n.add(nn(c,{style:et(s.getModel("lineStyle").getLineStyle(),et(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,e,t,i,o,r,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");C(a,function(h,p){var d=l,f=h.tickValue,g=r[Dh(t)],v=t.coordToPoint([g+u,h.coord]),y=t.cx,m=t.cy,x=Math.abs(v[0]-y)/g<.3?"center":v[0]>y?"left":"right",_=Math.abs(v[1]-m)/g<.3?"middle":v[1]>m?"top":"bottom";if(s&&s[f]){var w=s[f];K(w)&&w.textStyle&&(d=new Pt(w.textStyle,l,l.ecModel))}var b=new Dt({silent:xi.isLabelSilent(e),style:Ot(d,{x:v[0],y:v[1],fill:d.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:x,verticalAlign:_})});if(n.add(b),c){var S=xi.makeAxisEventDataBase(e);S.targetType="axisLabel",S.value=h.rawLabel,rt(b).eventData=S}},this)},splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<i.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new ue({shape:Ch(t,r,i[h].coord)}))}for(var h=0;h<c.length;h++)n.add(nn(c[h],{style:et({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(n,e,t,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<o.length;u++)for(var c=0;c<o[u].length;c++)l.push(new ue({shape:Ch(t,r,o[u][c].coord)}));n.add(nn(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(n,e,t,i,o,r){if(i.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,p=-i[0].coord*h,d=Math.min(r[0],r[1]),f=Math.max(r[0],r[1]),g=e.get("clockwise"),v=1,y=i.length;v<=y;v++){var m=v===y?i[0].coord:i[v].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new Ve({shape:{cx:t.cx,cy:t.cy,r0:d,r:f,startAngle:p,endAngle:-m*h,clockwise:g},silent:!0})),p=-m*h}for(var v=0;v<c.length;v++)n.add(nn(c[v],{style:et({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};const Y7=W7;var X7=["axisLine","axisTickLabel","axisName"],Z7=["splitLine","splitArea","minorSplitLine"],j7=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var o=this._axisGroup,r=this._axisGroup=new ot;this.group.add(r);var a=t.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),c=a.getMinorTicksCoords(),h=l.getExtent()[0],p=a.getExtent(),d=$7(s,t,h),f=new xi(t,d);C(X7,f.add,f),r.add(f.getGroup()),ms(o,r,t),C(Z7,function(g){t.get([g,"show"])&&!a.scale.isBlank()&&q7[g](this.group,t,s,h,p,u,c)},this)}},e.type="radiusAxis",e}(pr),q7={splitLine:function(n,e,t,i,o,r){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Wn({shape:{cx:t.cx,cy:t.cy,r:Math.max(r[h].coord,0)}}))}for(var h=0;h<c.length;h++)n.add(nn(c[h],{style:et({stroke:l[h%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(n,e,t,i,o,r,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var h=0;h<a[c].length;h++)u.push(new Wn({shape:{cx:t.cx,cy:t.cy,r:a[c][h].coord}}));n.add(nn(u,{style:et({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(n,e,t,i,o,r){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=r[0].coord,p=1;p<r.length;p++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Ve({shape:{cx:t.cx,cy:t.cy,r0:h,r:r[p].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=r[p].coord}for(var p=0;p<c.length;p++)n.add(nn(c[p],{style:et({fill:l[p%l.length]},s.getAreaStyle()),silent:!0}))}}};function $7(n,e,t){return{position:[n.cx,n.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const K7=j7;function DD(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function TD(n,e){return e.dim+n.model.componentIndex}function J7(n,e,t){var i={},o=Q7(Lt(e.getSeriesByType(n),function(r){return!e.isSeriesFiltered(r)&&r.coordinateSystem&&r.coordinateSystem.type==="polar"}));e.eachSeriesByType(n,function(r){if(r.coordinateSystem.type==="polar"){var a=r.getData(),s=r.coordinateSystem,l=s.getBaseAxis(),u=TD(s,l),c=DD(r),h=o[u][c],p=h.offset,d=h.width,f=s.getOtherAxis(l),g=r.coordinateSystem.cx,v=r.coordinateSystem.cy,y=r.get("barMinHeight")||0,m=r.get("barMinAngle")||0;i[c]=i[c]||[];for(var x=a.mapDimension(f.dim),_=a.mapDimension(l.dim),w=qi(a,x),b=l.dim!=="radius"||!r.get("roundCap",!0),S=f.dataToCoord(0),M=0,I=a.count();M<I;M++){var D=a.get(x,M),T=a.get(_,M),A=D>=0?"p":"n",k=S;w&&(i[c][T]||(i[c][T]={p:S,n:S}),k=i[c][T][A]);var L=void 0,N=void 0,E=void 0,V=void 0;if(f.dim==="radius"){var O=f.dataToCoord(D)-S,z=l.dataToCoord(T);Math.abs(O)<y&&(O=(O<0?-1:1)*y),L=k,N=k+O,E=z-p,V=E-d,w&&(i[c][T][A]=N)}else{var F=f.dataToCoord(D,b)-S,W=l.dataToCoord(T);Math.abs(F)<m&&(F=(F<0?-1:1)*m),L=W+p,N=L+d,E=k,V=k+F,w&&(i[c][T][A]=V)}a.setItemLayout(M,{cx:g,cy:v,r0:L,r:N,startAngle:-E*Math.PI/180,endAngle:-V*Math.PI/180,clockwise:E>=V})}}})}function Q7(n){var e={};C(n,function(i,o){var r=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=TD(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/r.count(),h=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},p=h.stacks;e[l]=h;var d=DD(i);p[d]||h.autoWidthCount++,p[d]=p[d]||{width:0,maxWidth:0};var f=H(i.get("barWidth"),c),g=H(i.get("barMaxWidth"),c),v=i.get("barGap"),y=i.get("barCategoryGap");f&&!p[d].width&&(f=Math.min(h.remainedWidth,f),p[d].width=f,h.remainedWidth-=f),g&&(p[d].maxWidth=g),v!=null&&(h.gap=v),y!=null&&(h.categoryGap=y)});var t={};return C(e,function(i,o){t[o]={};var r=i.stacks,a=i.bandWidth,s=H(i.categoryGap,a),l=H(i.gap,1),u=i.remainedWidth,c=i.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),C(r,function(g,v){var y=g.maxWidth;y&&y<h&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var p=0,d;C(r,function(g,v){g.width||(g.width=h),d=g,p+=g.width*(1+l)}),d&&(p-=d.width*l);var f=-p/2;C(r,function(g,v){t[o][v]=t[o][v]||{offset:f,width:g.width},f+=g.width*(1+l)})}),t}var t9={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},e9={splitNumber:5},n9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(Yt);function i9(n){yt(Il),pr.registerAxisPointerClass("PolarAxisPointer",D7),n.registerCoordinateSystem("polar",F7),n.registerComponentModel(A7),n.registerComponentView(n9),_a(n,"angle",k7,t9),_a(n,"radius",L7,e9),n.registerComponentView(Y7),n.registerComponentView(K7),n.registerLayout(at(J7,"bar"))}function Iy(n,e){e=e||{};var t=n.coordinateSystem,i=n.axis,o={},r=i.position,a=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};o.position=[a==="vertical"?u.vertical[r]:l[0],a==="horizontal"?u.horizontal[r]:l[3]];var c={horizontal:0,vertical:1};o.rotation=Math.PI/2*c[a];var h={top:-1,bottom:1,right:1,left:-1};o.labelDirection=o.tickDirection=o.nameDirection=h[r],n.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Kt(e.labelInside,n.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var p=e.rotate;return p==null&&(p=n.get(["axisLabel","rotate"])),o.labelRotation=r==="top"?-p:p,o.z2=1,o}var o9=["axisLine","axisTickLabel","axisName"],r9=["splitArea","splitLine"],a9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,o,r){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new ot;var l=Iy(t),u=new xi(t,l);C(o9,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),C(r9,function(c){t.get([c,"show"])&&s9[c](this,this.group,this._axisGroup,t)},this),ms(s,this._axisGroup,t),n.prototype.render.call(this,t,i,o,r)},e.prototype.remove=function(){WM(this)},e.type="singleAxis",e}(pr),s9={splitLine:function(n,e,t,i){var o=i.axis;if(!o.scale.isBlank()){var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),c=o.isHorizontal(),h=[],p=0,d=o.getTicksCoords({tickModel:r}),f=[],g=[],v=0;v<d.length;++v){var y=o.toGlobalCoord(d[v].coord);c?(f[0]=y,f[1]=u.y,g[0]=y,g[1]=u.y+u.height):(f[0]=u.x,f[1]=y,g[0]=u.x+u.width,g[1]=y);var m=new ue({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0});Zr(m.shape,l);var x=p++%s.length;h[x]=h[x]||[],h[x].push(m)}for(var _=a.getLineStyle(["color"]),v=0;v<h.length;++v)e.add(nn(h[v],{style:et({stroke:s[v%s.length]},_),silent:!0}))}},splitArea:function(n,e,t,i){HM(n,t,i,i)}};const l9=a9;var AD=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(bt);$t(AD,qs.prototype);const Cy=AD;var u9=function(n){P(e,n);function e(t,i,o,r,a){var s=n.call(this,t,i,o)||this;return s.type=r||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e}(An);const c9=u9;var kD=["single"],h9=function(){function n(e,t,i){this.type="single",this.dimension="single",this.dimensions=kD,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return n.prototype._init=function(e,t,i){var o=this.dimension,r=new c9(o,Vc(e),[0,0],e.get("type"),e.get("position")),a=r.type==="category";r.onBand=a&&e.get("boundaryGap"),r.inverse=e.get("inverse"),r.orient=e.get("orient"),e.axis=r,r.model=e,r.coordinateSystem=this,this._axis=r},n.prototype.update=function(e,t){e.eachSeries(function(i){if(i.coordinateSystem===this){var o=i.getData();C(o.mapDimensionsAll(this.dimension),function(r){this._axis.scale.unionExtentFromData(o,r)},this),va(this._axis.scale,this._axis.model)}},this)},n.prototype.resize=function(e,t){this._rect=ie({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},n.prototype.getRect=function(){return this._rect},n.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),o=i?[0,e.width]:[0,e.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),this._updateAxisTransform(t,i?e.x:e.y)},n.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),o=i[0]+i[1],r=e.isHorizontal();e.toGlobalCoord=r?function(a){return a+t}:function(a){return o-a+t},e.toLocalCoord=r?function(a){return a-t}:function(a){return o-a+t}},n.prototype.getAxis=function(){return this._axis},n.prototype.getBaseAxis=function(){return this._axis},n.prototype.getAxes=function(){return[this._axis]},n.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},n.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),o=i.orient;return o==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},n.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e[t.orient==="horizontal"?0:1]))]},n.prototype.dataToPoint=function(e){var t=this.getAxis(),i=this.getRect(),o=[],r=t.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),o[r]=t.toGlobalCoord(t.dataToCoord(+e)),o[1-r]=r===0?i.y+i.height/2:i.x+i.width/2,o},n.prototype.convertToPixel=function(e,t,i){var o=LD(t);return o===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=LD(t);return o===this?this.pointToData(i):null},n}();function LD(n){var e=n.seriesModel,t=n.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function p9(n,e){var t=[];return n.eachComponent("singleAxis",function(i,o){var r=new h9(i,n,e);r.name="single_"+o,r.resize(i,e),i.coordinateSystem=r,t.push(r)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="singleAxis"){var o=i.getReferringComponents("singleAxis",Qt).models[0];i.coordinateSystem=o&&o.coordinateSystem}}),t}var d9={create:p9,dimensions:kD};const f9=d9;var ND=["x","y"],g9=["width","height"],v9=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,o,r,a){var s=o.axis,l=s.coordinateSystem,u=Dy(l,1-Th(s)),c=l.dataToPoint(i)[0],h=r.get("type");if(h&&h!=="none"){var p=my(r),d=y9[h](s,c,u);d.style=p,t.graphicKey=d.type,t.pointer=d}var f=Iy(o);pD(i,t,f,o,r,a)},e.prototype.getHandleTransform=function(t,i,o){var r=Iy(i,{labelInside:!1});r.labelMargin=o.get(["handle","margin"]);var a=xy(i.axis,t,r);return{x:a[0],y:a[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,o,r){var a=o.axis,s=a.coordinateSystem,l=Th(a),u=Dy(s,l),c=[t.x,t.y];c[l]+=i[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var h=Dy(s,1-l),p=(h[1]+h[0])/2,d=[p,p];return d[l]=c[l],{x:c[0],y:c[1],rotation:t.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},e}(yy),y9={line:function(n,e,t){var i=_y([e,t[0]],[e,t[1]],Th(n));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(n,e,t){var i=n.getBandWidth(),o=t[1]-t[0];return{type:"Rect",shape:dD([e-i/2,t[0]],[i,o],Th(n))}}};function Th(n){return n.isHorizontal()?0:1}function Dy(n,e){var t=n.getRect();return[t[ND[e]],t[ND[e]]+t[g9[e]]]}const m9=v9;var x9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(Yt);function _9(n){yt(Il),pr.registerAxisPointerClass("SingleAxisPointer",m9),n.registerComponentView(x9),n.registerComponentView(l9),n.registerComponentModel(Cy),_a(n,"single",Cy,Cy.defaultOption),n.registerCoordinateSystem("single",f9)}var b9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,o){var r=ta(t);n.prototype.init.apply(this,arguments),ED(t,r)},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),ED(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(bt);function ED(n,e){var t=n.cellSize,i;B(t)?i=t:i=n.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var o=G([0,1],function(r){return CO(e,r)&&(i[r]="auto"),i[r]!=null&&i[r]!=="auto"});Ui(n,e,{type:"box",ignoreSize:o})}const w9=b9;var S9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){var r=this.group;r.removeAll();var a=t.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,r),this._renderLines(t,s,l,r),this._renderYearText(t,s,l,r),this._renderMonthText(t,u,l,r),this._renderWeekText(t,u,s,l,r)},e.prototype._renderDayRect=function(t,i,o){for(var r=t.coordinateSystem,a=t.getModel("itemStyle").getItemStyle(),s=r.getCellWidth(),l=r.getCellHeight(),u=i.start.time;u<=i.end.time;u=r.getNextNDay(u,1).time){var c=r.dataToRect([u],!1).tl,h=new It({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});o.add(h)}},e.prototype._renderLines=function(t,i,o,r){var a=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,p=0;h.time<=i.end.time;p++){f(h.formatedDate),p===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var d=h.date;d.setMonth(d.getMonth()+1),h=s.getDateInfo(d)}f(s.getNextNDay(i.end.time,1).formatedDate);function f(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToRect([g],!1).tl);var v=a._getLinePointsOfOneWeek(t,g,o);a._tlpoints.push(v[0]),a._blpoints.push(v[v.length-1]),u&&a._drawSplitline(v,l,r)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,o),l,r),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,o),l,r)},e.prototype._getEdgesPoints=function(t,i,o){var r=[t[0].slice(),t[t.length-1].slice()],a=o==="horizontal"?0:1;return r[0][a]=r[0][a]-i/2,r[1][a]=r[1][a]+i/2,r},e.prototype._drawSplitline=function(t,i,o){var r=new ze({z2:20,shape:{points:t},style:i});o.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,i,o){for(var r=t.coordinateSystem,a=r.getDateInfo(i),s=[],l=0;l<7;l++){var u=r.getNextNDay(a.time,l),c=r.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[o==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return U(t)&&t?SO(t,i):$(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,o,r,a){var s=i[0],l=i[1],u=["center","bottom"];r==="bottom"?(l+=a,u=["center","top"]):r==="left"?s-=a:r==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(r==="left"||r==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,o,r){var a=t.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=o!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,p=o==="horizontal"?0:1,d={top:[c,u[p][1]],bottom:[c,u[1-p][1]],left:[u[1-p][0],h],right:[u[p][0],h]},f=i.start.y;+i.end.y>+i.start.y&&(f=f+"-"+i.end.y);var g=a.get("formatter"),v={start:i.start.y,end:i.end.y,nameMap:f},y=this._formatterLabel(g,v),m=new Dt({z2:30,style:Ot(a,{text:y})});m.attr(this._yearTextPositionControl(m,d[l],o,l,s)),r.add(m)}},e.prototype._monthTextPositionControl=function(t,i,o,r,a){var s="left",l="top",u=t[0],c=t[1];return o==="horizontal"?(c=c+a,i&&(s="center"),r==="start"&&(l="bottom")):(u=u+a,i&&(l="middle"),r==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,o,r){var a=t.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),h=[this._tlpoints,this._blpoints];(!s||U(s))&&(s&&(i=qd(s)||i),s=i.get(["time","monthAbbr"])||[]);var p=u==="start"?0:1,d=o==="horizontal"?0:1;l=u==="start"?-l:l;for(var f=c==="center",g=0;g<h[p].length-1;g++){var v=h[p][g].slice(),y=this._firstDayOfMonth[g];if(f){var m=this._firstDayPoints[g];v[d]=(m[d]+h[0][g+1][d])/2}var x=a.get("formatter"),_=s[+y.m-1],w={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:_},b=this._formatterLabel(x,w),S=new Dt({z2:30,style:R(Ot(a,{text:b}),this._monthTextPositionControl(v,f,o,u,l))});r.add(S)}}},e.prototype._weekTextPositionControl=function(t,i,o,r,a){var s="center",l="middle",u=t[0],c=t[1],h=o==="start";return i==="horizontal"?(u=u+r+(h?1:-1)*a[0]/2,s=h?"right":"left"):(c=c+r+(h?1:-1)*a[1]/2,l=h?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,o,r,a){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),h=s.get("margin"),p=l.getFirstDayOfWeek();if(!c||U(c)){c&&(i=qd(c)||i);var d=i.get(["time","dayOfWeekShort"]);c=d||G(i.get(["time","dayOfWeekAbbr"]),function(w){return w[0]})}var f=l.getNextNDay(o.end.time,7-o.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];h=H(h,Math.min(g[1],g[0])),u==="start"&&(f=l.getNextNDay(o.start.time,-(7+o.fweek)).time,h=-h);for(var v=0;v<7;v++){var y=l.getNextNDay(f,v),m=l.dataToRect([y.time],!1).center,x=v;x=Math.abs((v+p)%7);var _=new Dt({z2:30,style:R(Ot(s,{text:c[x]}),this._weekTextPositionControl(m,r,u,h,g))});a.add(_)}}},e.type="calendar",e}(Yt);const M9=S9;var Ty=864e5,I9=function(){function n(e,t,i){this.type="calendar",this.dimensions=n.dimensions,this.getDimensionsInfo=n.getDimensionsInfo,this._model=e}return n.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},n.prototype.getRangeInfo=function(){return this._rangeInfo},n.prototype.getModel=function(){return this._model},n.prototype.getRect=function(){return this._rect},n.prototype.getCellWidth=function(){return this._sw},n.prototype.getCellHeight=function(){return this._sh},n.prototype.getOrient=function(){return this._orient},n.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},n.prototype.getDateInfo=function(e){e=Rn(e);var t=e.getFullYear(),i=e.getMonth()+1,o=i<10?"0"+i:""+i,r=e.getDate(),a=r<10?"0"+r:""+r,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:o,d:a,day:s,time:e.getTime(),formatedDate:t+"-"+o+"-"+a,date:e}},n.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},n.prototype.update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,o=["width","height"],r=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];C([0,1],function(h){c(r,h)&&(a[o[h]]=r[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ie(a,l);C([0,1],function(h){c(r,h)||(r[h]=u[o[h]]/s[h])});function c(h,p){return h[p]!=null&&h[p]!=="auto"}this._sw=r[0],this._sh=r[1]},n.prototype.dataToPoint=function(e,t){B(e)&&(e=e[0]),t==null&&(t=!0);var i=this.getDateInfo(e),o=this._rangeInfo,r=i.formatedDate;if(t&&!(i.time>=o.start.time&&i.time<o.end.time+Ty))return[NaN,NaN];var a=i.day,s=this._getRangeInfo([o.start.time,r]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},n.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},n.prototype.dataToRect=function(e,t){var i=this.dataToPoint(e,t);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},n.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,o=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,o):this._getDateByWeeksAndDay(t,i-1,o)},n.prototype.convertToPixel=function(e,t,i){var o=OD(t);return o===this?o.dataToPoint(i):null},n.prototype.convertFromPixel=function(e,t,i){var o=OD(t);return o===this?o.pointToData(i):null},n.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},n.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(B(e)&&e.length===1&&(e=e[0]),B(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var o=this.getDateInfo(i),r=o.date;r.setMonth(r.getMonth()+1);var a=this.getNextNDay(r,-1);t=[o.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return process.env.NODE_ENV!=="production"&&vn("Invalid date range."),e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},n.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var o=Math.floor(t[1].time/Ty)-Math.floor(t[0].time/Ty)+1,r=new Date(t[0].time),a=r.getDate(),s=t[1].date.getDate();r.setDate(a+o-1);var l=r.getDate();if(l!==s)for(var u=r.getTime()-t[1].time>0?1:-1;(l=r.getDate())!==s&&(r.getTime()-t[1].time)*u>0;)o-=u,r.setDate(l-u);var c=Math.floor((o+t[0].day+6)/7),h=i?-c+1:c-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:o,weeks:c,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},n.prototype._getDateByWeeksAndDay=function(e,t,i){var o=this._getRangeInfo(i);if(e>o.weeks||e===0&&t<o.fweek||e===o.weeks&&t>o.lweek)return null;var r=(e-1)*7-o.fweek+t,a=new Date(o.start.time);return a.setDate(+o.start.d+r),this.getDateInfo(a)},n.create=function(e,t){var i=[];return e.eachComponent("calendar",function(o){var r=new n(o);i.push(r),o.coordinateSystem=r}),e.eachSeries(function(o){o.get("coordinateSystem")==="calendar"&&(o.coordinateSystem=i[o.get("calendarIndex")||0])}),i},n.dimensions=["time","value"],n}();function OD(n){var e=n.calendarModel,t=n.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}const C9=I9;function D9(n){n.registerComponentModel(w9),n.registerComponentView(M9),n.registerCoordinateSystem("calendar",C9)}function T9(n,e){var t=n.existing;if(e.id=n.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function PD(n,e){var t;return C(e,function(i){n[i]!=null&&n[i]!=="auto"&&(t=!0)}),t}function A9(n,e,t){var i=R({},t),o=n[e],r=t.$action||"merge";if(r==="merge")if(o){if(process.env.NODE_ENV!=="production"){var a=t.type;J(!a||o.type===a,'Please set $action: "replace" to change `type`')}ht(o,i,!0),Ui(o,i,{ignoreSize:!0}),a_(t,o),Ah(t,o),Ah(t,o,"shape"),Ah(t,o,"style"),Ah(t,o,"extra"),t.clipPath=o.clipPath}else n[e]=i;else r==="replace"?n[e]=i:r==="remove"&&o&&(n[e]=null)}var VD=["transition","enterFrom","leaveTo"],k9=VD.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ah(n,e,t){if(t&&(!n[t]&&e[t]&&(n[t]={}),n=n[t],e=e[t]),!(!n||!e))for(var i=t?VD:k9,o=0;o<i.length;o++){var r=i[o];n[r]==null&&e[r]!=null&&(n[r]=e[r])}}function L9(n,e){if(n&&(n.hv=e.hv=[PD(e,["left","right"]),PD(e,["top","bottom"])],n.type==="group")){var t=n,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var N9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var o=this.option.elements;this.option.elements=null,n.prototype.mergeOption.call(this,t,i),this.option.elements=o},e.prototype.optionUpdated=function(t,i){var o=this.option,r=(i?o:t).elements,a=o.elements=i?[]:o.elements,s=[];this._flatten(r,s,null);var l=q0(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];C(l,function(c,h){var p=c.newOption;process.env.NODE_ENV!=="production"&&J(K(p)||c.existing,"Empty graphic option definition"),p&&(u.push(p),T9(c,p),A9(a,h,p),L9(a[h],p))},this),o.elements=Lt(a,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(t,i,o){C(t,function(r){if(r){o&&(r.parentOption=o),i.push(r);var a=r.children;a&&a.length&&this._flatten(a,i,r),delete r.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(bt),RD={path:null,compoundPath:null,group:ot,image:he,text:Dt},fn=Mt(),E9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=j()},e.prototype.render=function(t,i,o){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,o)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var o=this._elMap,r=this.group,a=t.get("z"),s=t.get("zlevel");C(i,function(l){var u=ne(l.id,null),c=u!=null?o.get(u):null,h=ne(l.parentId,null),p=h!=null?o.get(h):r,d=l.type,f=l.style;d==="text"&&f&&l.hv&&l.hv[1]&&(f.textVerticalAlign=f.textBaseline=f.verticalAlign=f.align=null);var g=l.textContent,v=l.textConfig;if(f&&VC(f,d,!!v,!!g)){var y=RC(f,d,!0);!v&&y.textConfig&&(v=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var m=O9(l);process.env.NODE_ENV!=="production"&&c&&J(p===c.parent,"Changing parent is not supported.");var x=l.$action||"merge",_=x==="merge",w=x==="replace";if(_){var b=!c,S=c;b?S=zD(u,p,l.type,o):(S&&(fn(S).isNew=!1),$C(S)),S&&(_h(S,m,t,{isInit:b}),BD(S,l,a,s))}else if(w){kh(c,l,o,t);var M=zD(u,p,l.type,o);M&&(_h(M,m,t,{isInit:!0}),BD(M,l,a,s))}else x==="remove"&&(YC(c,l),kh(c,l,o,t));var I=o.get(u);if(I&&g)if(_){var D=I.getTextContent();D?D.attr(g):I.setTextContent(new Dt(g))}else w&&I.setTextContent(new Dt(g));if(I){var T=l.clipPath;if(T){var A=T.type,k=void 0,b=!1;if(_){var L=I.getClipPath();b=!L||fn(L).type!==A,k=b?Ay(A):L}else w&&(b=!0,k=Ay(A));I.setClipPath(k),_h(k,T,t,{isInit:b}),wh(k,T.keyframeAnimation,t)}var N=fn(I);I.setTextConfig(v),N.option=l,P9(I,t,l),jr({el:I,componentModel:t,itemName:I.name,itemTooltipOption:l.tooltip}),wh(I,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var o=t.option.elements,r=this.group,a=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],c=0;c<o.length;c++){var h=o[c],p=ne(h.id,null),d=p!=null?a.get(p):null;if(!(!d||!d.isGroup)){var f=d.parent,g=f===r,v=fn(d),y=fn(f);v.width=H(v.option.width,g?s:y.width)||0,v.height=H(v.option.height,g?l:y.height)||0}}for(var c=o.length-1;c>=0;c--){var h=o[c],p=ne(h.id,null),d=p!=null?a.get(p):null;if(d){var f=d.parent,y=fn(f),m=f===r?{width:s,height:l}:{width:y.width,height:y.height},x={},_=ic(d,h,m,null,{hv:h.hv,boundingMode:h.bounding},x);if(!fn(d).isNew&&_){for(var w=h.transition,b={},S=0;S<u.length;S++){var M=u[S],I=x[M];w&&(br(w)||dt(w,M)>=0)?b[M]=I:d[M]=I}Tt(d,b,t,0)}else d.attr(x)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(o){kh(o,fn(o).option,i,t._lastGraphicModel)}),this._elMap=j()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Yt);function Ay(n){process.env.NODE_ENV!=="production"&&J(n,"graphic type MUST be set");var e=Y(RD,n)?RD[n]:Hd(n);process.env.NODE_ENV!=="production"&&J(e,"graphic type "+n+" can not be found");var t=new e({});return fn(t).type=n,t}function zD(n,e,t,i){var o=Ay(t);return e.add(o),i.set(n,o),fn(o).id=n,fn(o).isNew=!0,o}function kh(n,e,t,i){var o=n&&n.parent;o&&(n.type==="group"&&n.traverse(function(r){kh(r,e,t,i)}),bh(n,e,i),t.removeKey(fn(n).id))}function BD(n,e,t,i){n.isGroup||C([["cursor",tn.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(o){var r=o[0];Y(e,r)?n[r]=ut(e[r],o[1]):n[r]==null&&(n[r]=o[1])}),C(xt(e),function(o){if(o.indexOf("on")===0){var r=e[o];n[o]=$(r)?r:null}}),Y(e,"draggable")&&(n.draggable=e.draggable),e.name!=null&&(n.name=e.name),e.id!=null&&(n.id=e.id)}function O9(n){return n=R({},n),C(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(r_),function(e){delete n[e]}),n}function P9(n,e,t){var i=rt(n).eventData;!n.silent&&!n.ignore&&!i&&(i=rt(n).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:n.name}),i&&(i.info=t.info)}function V9(n){n.registerComponentModel(N9),n.registerComponentView(E9),n.registerPreprocessor(function(e){var t=e.graphic;B(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var GD=["x","y","radius","angle","single"],R9=["cartesian2d","polar","singleAxis"];function z9(n){var e=n.get("coordinateSystem");return dt(R9,e)>=0}function ro(n){return process.env.NODE_ENV!=="production"&&J(n),n+"Axis"}function B9(n,e){var t=j(),i=[],o=j();n.eachComponent({mainType:"dataZoom",query:e},function(c){o.get(c.uid)||s(c)});var r;do r=!1,n.eachComponent("dataZoom",a);while(r);function a(c){!o.get(c.uid)&&l(c)&&(s(c),r=!0)}function s(c){o.set(c.uid,!0),i.push(c),u(c)}function l(c){var h=!1;return c.eachTargetAxis(function(p,d){var f=t.get(p);f&&f[d]&&(h=!0)}),h}function u(c){c.eachTargetAxis(function(h,p){(t.get(h)||t.set(h,[]))[p]=!0})}return i}function FD(n){var e=n.ecModel,t={infoList:[],infoMap:j()};return n.eachTargetAxis(function(i,o){var r=e.getComponent(ro(i),o);if(r){var a=r.getCoordSysModel();if(a){var s=a.uid,l=t.infoMap.get(s);l||(l={model:a,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(r)}}}),t}var ky=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},n}(),G9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,o){var r=HD(t);this.settledOption=r,this.mergeDefaultAndTheme(t,o),this._doInit(r)},e.prototype.mergeOption=function(t){var i=HD(t);ht(this.option,t,!0),ht(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;C([["start","startValue"],["end","endValue"]],function(r,a){this._rangePropMode[a]==="value"&&(i[r[0]]=o[r[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=j(),o=this._fillSpecifiedTargetAxis(i);o?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return C(GD,function(o){var r=this.getReferringComponents(ro(o),iN);if(r.specified){i=!0;var a=new ky;C(r.models,function(s){a.add(s.componentIndex)}),t.set(o,a)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var o=this.ecModel,r=!0;if(r){var a=i==="vertical"?"y":"x",s=o.findComponents({mainType:a+"Axis"});l(s,a)}if(r){var s=o.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===i}});l(s,"single")}function l(u,c){var h=u[0];if(h){var p=new ky;if(p.add(h.componentIndex),t.set(c,p),r=!1,c==="x"||c==="y"){var d=h.getReferringComponents("grid",Qt).models[0];d&&C(u,function(f){h.componentIndex!==f.componentIndex&&d===f.getReferringComponents("grid",Qt).models[0]&&p.add(f.componentIndex)})}}}r&&C(GD,function(u){if(r){var c=o.findComponents({mainType:ro(u),filter:function(p){return p.get("type",!0)==="category"}});if(c[0]){var h=new ky;h.add(c[0].componentIndex),t.set(u,h),r=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,o=this.get("rangeMode");C([["start","startValue"],["end","endValue"]],function(r,a){var s=t[r[0]]!=null,l=t[r[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":o?i[a]=o[a]:s&&(i[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,o){t==null&&(t=this.ecModel.getComponent(ro(i),o))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(o,r){C(o.indexList,function(a){t.call(i,r,a)})})},e.prototype.getAxisProxy=function(t,i){var o=this.getAxisModel(t,i);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,i){process.env.NODE_ENV!=="production"&&J(t&&i!=null);var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[i])return this.ecModel.getComponent(ro(t),i)},e.prototype.setRawRange=function(t){var i=this.option,o=this.settledOption;C([["start","startValue"],["end","endValue"]],function(r){(t[r[0]]!=null||t[r[1]]!=null)&&(i[r[0]]=o[r[0]]=t[r[0]],i[r[1]]=o[r[1]]=t[r[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;C(["start","startValue","end","endValue"],function(o){i[o]=t[o]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var o=this.findRepresentativeAxisProxy();if(o)return o.getDataValueWindow()}else return this.getAxisProxy(t,i).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var i,o=this._targetAxisInfoMap.keys(),r=0;r<o.length;r++)for(var a=o[r],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&J(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(bt);function HD(n){var e={};return C(["start","end","startValue","endValue","throttle"],function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}const Cl=G9;var F9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Cl);const H9=F9;var W9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o,r){this.dataZoomModel=t,this.ecModel=i,this.api=o},e.type="dataZoom",e}(Yt);const Ly=W9;var U9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Ly);const Y9=U9;var ka=C,WD=Qe,X9=function(){function n(e,t,i,o){this._dimName=e,this._axisIndex=t,this.ecModel=o,this._dataZoomModel=i}return n.prototype.hostedBy=function(e){return this._dataZoomModel===e},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(z9(t)){var i=ro(this._dimName),o=t.getReferringComponents(i,Qt).models[0];o&&this._axisIndex===o.componentIndex&&e.push(t)}},this),e},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return it(this._minMaxSpan)},n.prototype.calculateDataWindow=function(e){var t=this._dataExtent,i=this.getAxisModel(),o=i.axis.scale,r=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;ka(["start","end"],function(p,d){var f=e[p],g=e[p+"Value"];r[d]==="percent"?(f==null&&(f=a[d]),g=o.parse(kt(f,a,t))):(u=!0,g=g==null?t[d]:o.parse(g),f=kt(g,t,a)),l[d]=g==null||isNaN(g)?t[d]:g,s[d]=f==null||isNaN(f)?a[d]:f}),WD(l),WD(s);var c=this._minMaxSpan;u?h(l,s,t,a,!1):h(s,l,a,t,!0);function h(p,d,f,g,v){var y=v?"Span":"ValueSpan";mr(0,p,f,"all",c["min"+y],c["max"+y]);for(var m=0;m<2;m++)d[m]=kt(p[m],f,g,!0),v&&(d[m]=o.parse(d[m]))}return{valueWindow:l,percentWindow:s}},n.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Z9(this,this._dimName,t),this._updateMinMaxSpan();var i=this.calculateDataWindow(e.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var i=this._dimName,o=this.getTargetSeriesModels(),r=e.get("filterMode"),a=this._valueWindow;if(r==="none")return;ka(o,function(l){var u=l.getData(),c=u.mapDimensionsAll(i);if(c.length){if(r==="weakFilter"){var h=u.getStore(),p=G(c,function(d){return u.getDimensionIndex(d)},u);u.filterSelf(function(d){for(var f,g,v,y=0;y<c.length;y++){var m=h.get(p[y],d),x=!isNaN(m),_=m<a[0],w=m>a[1];if(x&&!_&&!w)return!0;x&&(v=!0),_&&(f=!0),w&&(g=!0)}return v&&f&&g})}else ka(c,function(d){if(r==="empty")l.setData(u=u.map(d,function(g){return s(g)?g:NaN}));else{var f={};f[d]=a,u.selectRange(f)}});ka(c,function(d){u.setApproximateExtent(a,d)})}});function s(l){return l>=a[0]&&l<=a[1]}},n.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._dataExtent;ka(["min","max"],function(o){var r=t.get(o+"Span"),a=t.get(o+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?r=kt(i[0]+a,i,[0,100],!0):r!=null&&(a=kt(r,[0,100],i,!0)-i[0]),e[o+"Span"]=r,e[o+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,i=this._valueWindow;if(t){var o=V0(i,[0,500]);o=Math.min(o,20);var r=e.axis.scale.rawExtentInfo;t[0]!==0&&r.setDeterminedMinMax("min",+i[0].toFixed(o)),t[1]!==100&&r.setDeterminedMinMax("max",+i[1].toFixed(o)),r.freeze()}},n}();function Z9(n,e,t){var i=[1/0,-1/0];ka(t,function(a){mz(i,a.getData(),e)});var o=n.getAxisModel(),r=jw(o.axis.scale,o,i).calculate();return[r.min,r.max]}const j9=X9;var q9={getTargetSeries:function(n){function e(o){n.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(a,s){var l=n.getComponent(ro(a),s);o(a,s,l,r)})})}e(function(o,r,a,s){a.__dzAxisProxy=null});var t=[];e(function(o,r,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new j9(o,r,s,n),t.push(a.__dzAxisProxy))});var i=j();return C(t,function(o){C(o.getTargetSeriesModels(),function(r){i.set(r.uid,r)})}),i},overallReset:function(n,e){n.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).reset(t)}),t.eachTargetAxis(function(i,o){t.getAxisProxy(i,o).filterData(t,e)})}),n.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var o=i.getDataPercentWindow(),r=i.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:r[0],endValue:r[1]})}})}};const $9=q9;function K9(n){n.registerAction("dataZoom",function(e,t){var i=B9(t,e);C(i,function(o){o.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var UD=!1;function Ny(n){UD||(UD=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,$9),K9(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function J9(n){n.registerComponentModel(H9),n.registerComponentView(Y9),Ny(n)}var gn=function(){function n(){}return n}(),YD={};function La(n,e){YD[n]=e}function XD(n){return YD[n]}var Q9=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;C(this.option.feature,function(i,o){var r=XD(o);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),ht(i,r.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(bt);const tU=Q9;function eU(n,e,t){var i=e.getBoxLayoutParams(),o=e.get("padding"),r={width:t.getWidth(),height:t.getHeight()},a=ie(i,r,o);Xo(e.get("orient"),n,e.get("itemGap"),a.width,a.height),ic(n,i,r,o)}function ZD(n,e){var t=Qr(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),n=new It({shape:{x:n.x-t[3],y:n.y-t[0],width:n.width+t[1]+t[3],height:n.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1}),n}var nU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){var a=this.group;if(a.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},c=this._features||(this._features={}),h=[];C(u,function(f,g){h.push(g)}),new vi(this._featureNames||[],h).add(p).update(p).remove(at(p,null)).execute(),this._featureNames=h;function p(f,g){var v=h[f],y=h[g],m=u[v],x=new Pt(m,t,t.ecModel),_;if(r&&r.newTitle!=null&&r.featureName===v&&(m.title=r.newTitle),v&&!y){if(iU(v))_={onclick:x.option.onclick,featureName:v};else{var w=XD(v);if(!w)return;_=new w}c[v]=_}else if(_=c[y],!_)return;_.uid=$r("toolbox-feature"),_.model=x,_.ecModel=i,_.api=o;var b=_ instanceof gn;if(!v&&y){b&&_.dispose&&_.dispose(i,o);return}if(!x.get("show")||b&&_.unusable){b&&_.remove&&_.remove(i,o);return}d(x,_,v),x.setIconStatus=function(S,M){var I=this.option,D=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[S]=M,D[S]&&(M==="emphasis"?pi:di)(D[S])},_ instanceof gn&&_.render&&_.render(x,i,o,r)}function d(f,g,v){var y=f.getModel("iconStyle"),m=f.getModel(["emphasis","iconStyle"]),x=g instanceof gn&&g.getIcons?g.getIcons():f.get("icon"),_=f.get("title")||{},w,b;U(x)?(w={},w[v]=x):w=x,U(_)?(b={},b[v]=_):b=_;var S=f.iconPaths={};C(w,function(M,I){var D=xs(M,{},{x:-s/2,y:-s/2,width:s,height:s});D.setStyle(y.getItemStyle());var T=D.ensureState("emphasis");T.style=m.getItemStyle();var A=new Dt({style:{text:b[I],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null},ignore:!0});D.setTextContent(A),jr({el:D,componentModel:t,itemName:I,formatterParamsExtra:{title:b[I]}}),D.__title=b[I],D.on("mouseover",function(){var k=m.getItemStyle(),L=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:m.get("textFill")||k.fill||k.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),D.setTextConfig({position:m.get("textPosition")||L}),A.ignore=!t.get("showTitle"),o.enterEmphasis(this)}).on("mouseout",function(){f.get(["iconStatus",I])!=="emphasis"&&o.leaveEmphasis(this),A.hide()}),(f.get(["iconStatus",I])==="emphasis"?pi:di)(D),a.add(D),D.on("click",X(g.onclick,g,i,o,I)),S[I]=D})}eU(a,t,o),a.add(ZD(a.getBoundingRect(),t)),l||a.eachChild(function(f){var g=f.__title,v=f.ensureState("emphasis"),y=v.textConfig||(v.textConfig={}),m=f.getTextContent(),x=m&&m.ensureState("emphasis");if(x&&!$(x)&&g){var _=x.style||(x.style={}),w=ts(g,Dt.makeFont(_)),b=f.x+a.x,S=f.y+a.y+s,M=!1;S+w.height>o.getHeight()&&(y.position="top",M=!0);var I=M?-5-w.height:s+10;b+w.width/2>o.getWidth()?(y.position=["100%",I],_.align="right"):b-w.width/2<0&&(y.position=[0,I],_.align="left")}})},e.prototype.updateView=function(t,i,o,r){C(this._features,function(a){a instanceof gn&&a.updateView&&a.updateView(a.model,i,o,r)})},e.prototype.remove=function(t,i){C(this._features,function(o){o instanceof gn&&o.remove&&o.remove(t,i)}),this.group.removeAll()},e.prototype.dispose=function(t,i){C(this._features,function(o){o instanceof gn&&o.dispose&&o.dispose(t,i)})},e.type="toolbox",e}(Yt);function iU(n){return n.indexOf("my")===0}const oU=nU;var rU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var o=this.model,r=o.get("name")||t.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":o.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),u=St.browser;if($(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=r+"."+s,c.target="_blank",c.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),d=p[0].indexOf("base64")>-1,f=a?decodeURIComponent(p[1]):p[1];d&&(f=window.atob(f));var g=r+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var v=f.length,y=new Uint8Array(v);v--;)y[v]=f.charCodeAt(v);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,w=_.document;w.open("image/svg+xml","replace"),w.write(f),w.close(),_.focus(),w.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var b=o.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',M=window.open();M.document.write(S),M.document.title=r}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e}(gn);const aU=rU;var jD="__ec_magicType_stack__",sU=[["line","bar"],["stack"]],lU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),o={};return C(t.get("type"),function(r){i[r]&&(o[r]=i[r])}),o},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,o){var r=this.model,a=r.get(["seriesIndex",o]);if(qD[o]){var s={series:[]},l=function(h){var p=h.subType,d=h.id,f=qD[o](p,d,h,r);f&&(et(f,h.option),s.series.push(f));var g=h.coordinateSystem;if(g&&g.type==="cartesian2d"&&(o==="line"||o==="bar")){var v=g.getAxesByScale("ordinal")[0];if(v){var y=v.dim,m=y+"Axis",x=h.getReferringComponents(m,Qt).models[0],_=x.componentIndex;s[m]=s[m]||[];for(var w=0;w<=_;w++)s[m][_]=s[m][_]||{};s[m][_].boundaryGap=o==="bar"}}};C(sU,function(h){dt(h,o)>=0&&C(h,function(p){r.setIconStatus(p,"normal")})}),r.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=o;o==="stack"&&(u=ht({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get(["iconStatus",o])!=="emphasis"&&(c="tiled")),i.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(gn),qD={line:function(n,e,t,i){if(n==="bar")return ht({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(n,e,t,i){if(n==="line")return ht({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(n,e,t,i){var o=t.get("stack")===jD;if(n==="line"||n==="bar")return i.setIconStatus("stack",o?"normal":"emphasis"),ht({id:e,stack:o?"":jD},i.get(["option","stack"])||{},!0)}};Zn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,e){e.mergeOption(n.newOption)});const uU=lU;var Lh=new Array(60).join("-"),Na=" ";function cU(n){var e={},t=[],i=[];return n.eachRawSeries(function(o){var r=o.coordinateSystem;if(r&&(r.type==="cartesian2d"||r.type==="polar")){var a=r.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:r.getOtherAxis(a),series:[]},i.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(o)}else t.push(o)}else t.push(o)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function hU(n){var e=[];return C(n,function(t,i){var o=t.categoryAxis,r=t.valueAxis,a=r.dim,s=[" "].concat(G(t.series,function(d){return d.name})),l=[o.model.getCategories()];C(t.series,function(d){var f=d.getRawData();l.push(d.getRawData().mapArray(f.mapDimension(a),function(g){return g}))});for(var u=[s.join(Na)],c=0;c<l[0].length;c++){for(var h=[],p=0;p<l.length;p++)h.push(l[p][c]);u.push(h.join(Na))}e.push(u.join(`
|
|
59
|
+
`))}),e.join(`
|
|
60
|
+
|
|
61
|
+
`+Lh+`
|
|
62
|
+
|
|
63
|
+
`)}function pU(n){return G(n,function(e){var t=e.getRawData(),i=[e.name],o=[];return t.each(t.dimensions,function(){for(var r=arguments.length,a=arguments[r-1],s=t.getName(a),l=0;l<r-1;l++)o[l]=arguments[l];i.push((s?s+Na:"")+o.join(Na))}),i.join(`
|
|
64
|
+
`)}).join(`
|
|
65
|
+
|
|
66
|
+
`+Lh+`
|
|
67
|
+
|
|
68
|
+
`)}function dU(n){var e=cU(n);return{value:Lt([hU(e.seriesGroupByCategoryAxis),pU(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|
69
|
+
|
|
70
|
+
`+Lh+`
|
|
71
|
+
|
|
72
|
+
`),meta:e.meta}}function Nh(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function fU(n){var e=n.slice(0,n.indexOf(`
|
|
73
|
+
`));if(e.indexOf(Na)>=0)return!0}var Ey=new RegExp("["+Na+"]+","g");function gU(n){for(var e=n.split(/\n+/g),t=Nh(e.shift()).split(Ey),i=[],o=G(t,function(l){return{name:l,data:[]}}),r=0;r<e.length;r++){var a=Nh(e[r]).split(Ey);i.push(a.shift());for(var s=0;s<a.length;s++)o[s]&&(o[s].data[r]=a[s])}return{series:o,categories:i}}function vU(n){for(var e=n.split(/\n+/g),t=Nh(e.shift()),i=[],o=0;o<e.length;o++){var r=Nh(e[o]);if(r){var a=r.split(Ey),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),i[o]={name:s,value:[]},l=i[o].value):l=i[o]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);l.length===1&&(u?i[o].value=l[0]:i[o]=l[0])}}return{name:t,data:i}}function yU(n,e){var t=n.split(new RegExp(`
|
|
74
|
+
*`+Lh+`
|
|
75
|
+
*`,"g")),i={series:[]};return C(t,function(o,r){if(fU(o)){var a=gU(o),s=e[r],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else{var a=vU(o);i.series.push(a)}}),i}var mU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var o=i.getDom(),r=this.model;this._dom&&o.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=r.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=r.get("lang")||[];s.innerHTML=l[0]||r.get("title"),s.style.cssText="margin:10px 20px",s.style.color=r.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=r.get("optionToContent"),p=r.get("contentToOption"),d=dU(t);if($(h)){var f=h(i.getOption());U(f)?u.innerHTML=f:Dr(f)&&u.appendChild(f)}else{c.readOnly=r.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=r.get("textColor"),g.borderColor=r.get("textareaBorderColor"),g.backgroundColor=r.get("textareaColor"),c.value=d.value,u.appendChild(c)}var v=d.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+r.get("buttonColor"),m+=";color:"+r.get("buttonTextColor");var w=this;function b(){o.removeChild(a),w._dom=null}dp(x,"click",b),dp(_,"click",function(){if(p==null&&h!=null||p!=null&&h==null){process.env.NODE_ENV!=="production"&&Ht("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var S;try{$(p)?S=p(u,i.getOption()):S=yU(c.value,v)}catch(M){throw b(),new Error("Data view format error "+M)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),b()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!r.get("readOnly")&&y.appendChild(_),y.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=o.clientHeight-80+"px",o.appendChild(a),this._dom=a},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(gn);function xU(n,e){return G(n,function(t,i){var o=e&&e[i];if(K(o)&&!B(o)){var r=K(t)&&!B(t);r||(t={value:t});var a=o.name!=null&&t.name==null;return t=et(t,o),a&&delete t.name,t}else return t})}Zn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,e){var t=[];C(n.newOption.series,function(i){var o=e.getSeriesByName(i.name)[0];if(!o)t.push(R({type:"scatter"},i));else{var r=o.get("data");t.push({name:i.name,data:xU(i.data,r)})}}),e.mergeOption(et({series:t},n.newOption))});const _U=mU;var $D=C,KD=Mt();function bU(n,e){var t=Oy(n);$D(e,function(i,o){for(var r=t.length-1;r>=0;r--){var a=t[r];if(a[o])break}if(r<0){var s=n.queryComponents({mainType:"dataZoom",subType:"select",id:o})[0];if(s){var l=s.getPercentRange();t[0][o]={dataZoomId:o,start:l[0],end:l[1]}}}}),t.push(e)}function wU(n){var e=Oy(n),t=e[e.length-1];e.length>1&&e.pop();var i={};return $D(t,function(o,r){for(var a=e.length-1;a>=0;a--)if(o=e[a][r],o){i[r]=o;break}}),i}function SU(n){KD(n).snapshots=null}function MU(n){return Oy(n).length}function Oy(n){var e=KD(n);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var IU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){SU(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e}(gn);Zn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,e){e.resetOption("recreate")});const CU=IU;var DU=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],TU=function(){function n(e,t,i){var o=this;this._targetInfoList=[];var r=JD(t,e);C(AU,function(a,s){(!i||!i.include||dt(i.include,s)>=0)&&a(r,o._targetInfoList)})}return n.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,o,r){if((i.coordRanges||(i.coordRanges=[])).push(o),!i.coordRange){i.coordRange=o;var a=Vy[i.brushType](0,r,o);i.__rangeOffset={offset:nT[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},n.prototype.matchOutputRanges=function(e,t,i){C(e,function(o){var r=this.findTargetInfo(o,t);r&&r!==!0&&C(r.coordSyses,function(a){var s=Vy[o.brushType](1,a,o.range,!0);i(o,s.values,a,t)})},this)},n.prototype.setInputRanges=function(e,t){C(e,function(i){var o=this.findTargetInfo(i,t);if(process.env.NODE_ENV!=="production"&&(J(!o||o===!0||i.coordRange,"coordRange must be specified when coord index specified."),J(!o||o!==!0||i.range,"range must be specified in global brush.")),i.range=i.range||[],o&&o!==!0){i.panelId=o.panelId;var r=Vy[i.brushType](0,o.coordSys,i.coordRange),a=i.__rangeOffset;i.range=a?nT[i.brushType](r.values,a.offset,kU(r.xyMinMax,a.xyMinMax)):r.values}},this)},n.prototype.makePanelOpts=function(e,t){return G(this._targetInfoList,function(i){var o=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:q2(o),isTargetByCursor:K2(o,e,i.coordSysModel),getLinearBrushOtherExtent:$2(o)}})},n.prototype.controlSeries=function(e,t,i){var o=this.findTargetInfo(e,i);return o===!0||o&&dt(o.coordSyses,t.coordinateSystem)>=0},n.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,o=JD(t,e),r=0;r<i.length;r++){var a=i[r],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<QD.length;l++)if(QD[l](o,a))return a}return!0},n}();function Py(n){return n[0]>n[1]&&n.reverse(),n}function JD(n,e){return os(n,e,{includeMainTypes:DU})}var AU={grid:function(n,e){var t=n.xAxisModels,i=n.yAxisModels,o=n.gridModels,r=j(),a={},s={};!t&&!i&&!o||(C(t,function(l){var u=l.axis.grid.model;r.set(u.id,u),a[u.id]=!0}),C(i,function(l){var u=l.axis.grid.model;r.set(u.id,u),s[u.id]=!0}),C(o,function(l){r.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),r.each(function(l){var u=l.coordinateSystem,c=[];C(u.getCartesians(),function(h,p){(dt(t,h.getAxis("x").model)>=0||dt(i,h.getAxis("y").model)>=0)&&c.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:tT.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,e){C(n.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:tT.geo})})}},QD=[function(n,e){var t=n.xAxisModel,i=n.yAxisModel,o=n.gridModel;return!o&&t&&(o=t.axis.grid.model),!o&&i&&(o=i.axis.grid.model),o&&o===e.gridModel},function(n,e){var t=n.geoModel;return t&&t===e.geoModel}],tT={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,e=n.getBoundingRect().clone();return e.applyTransform(Ho(n)),e}},Vy={lineX:at(eT,0),lineY:at(eT,1),rect:function(n,e,t,i){var o=n?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),r=n?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),a=[Py([o[0],r[0]]),Py([o[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(n,e,t,i){var o=[[1/0,-1/0],[1/0,-1/0]],r=G(t,function(a){var s=n?e.pointToData(a,i):e.dataToPoint(a,i);return o[0][0]=Math.min(o[0][0],s[0]),o[1][0]=Math.min(o[1][0],s[1]),o[0][1]=Math.max(o[0][1],s[0]),o[1][1]=Math.max(o[1][1],s[1]),s});return{values:r,xyMinMax:o}}};function eT(n,e,t,i){process.env.NODE_ENV!=="production"&&J(t.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var o=t.getAxis(["x","y"][n]),r=Py(G([0,1],function(s){return e?o.coordToData(o.toLocalCoord(i[s]),!0):o.toGlobalCoord(o.dataToCoord(i[s]))})),a=[];return a[n]=r,a[1-n]=[NaN,NaN],{values:r,xyMinMax:a}}var nT={lineX:at(iT,0),lineY:at(iT,1),rect:function(n,e,t){return[[n[0][0]-t[0]*e[0][0],n[0][1]-t[0]*e[0][1]],[n[1][0]-t[1]*e[1][0],n[1][1]-t[1]*e[1][1]]]},polygon:function(n,e,t){return G(n,function(i,o){return[i[0]-t[0]*e[o][0],i[1]-t[1]*e[o][1]]})}};function iT(n,e,t,i){return[e[0]-i[n]*t[0],e[1]-i[n]*t[1]]}function kU(n,e){var t=oT(n),i=oT(e),o=[t[0]/i[0],t[1]/i[1]];return isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o}function oT(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const Ry=TU;var zy=C,LU=JL("toolbox-dataZoom_"),NU=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o,r){this._brushController||(this._brushController=new Xv(o.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),PU(t,i,this,r,o),OU(t,i)},e.prototype.onclick=function(t,i,o){EU[o].call(this)},e.prototype.remove=function(t,i){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var o={},r=this.ecModel;this._brushController.updateCovers([]);var a=new Ry(By(this.model),r,{include:["grid"]});a.matchOutputRanges(i,r,function(u,c,h){if(h.type==="cartesian2d"){var p=u.brushType;p==="rect"?(s("x",h,c[0]),s("y",h,c[1])):s({lineX:"x",lineY:"y"}[p],h,c)}}),bU(r,o),this._dispatchZoomAction(o);function s(u,c,h){var p=c.getAxis(u),d=p.model,f=l(u,d,r),g=f.findRepresentativeAxisProxy(d).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(h=mr(0,h.slice(),p.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),f&&(o[f.id]={dataZoomId:f.id,startValue:h[0],endValue:h[1]})}function l(u,c,h){var p;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(d){var f=d.getAxisModel(u,c.componentIndex);f&&(p=d)}),p}},e.prototype._dispatchZoomAction=function(t){var i=[];zy(t,function(o,r){i.push(it(o))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},e}(gn),EU={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(wU(this.ecModel))}};function By(n){var e={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function OU(n,e){n.setIconStatus("back",MU(e)>1?"emphasis":"normal")}function PU(n,e,t,i,o){var r=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(r=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=r,n.setIconStatus("zoom",r?"emphasis":"normal");var a=new Ry(By(n),e,{include:["grid"]}),s=a.makePanelOpts(o,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(r&&s.length?{brushType:"auto",brushStyle:n.getModel("brushStyle").getItemStyle()}:!1)}NO("dataZoom",function(n){var e=n.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),o=[],r=By(i),a=os(n,r);zy(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),zy(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var h=l.componentIndex,p={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:LU+u+h};p[c]=h,o.push(p)}return o});const VU=NU;function RU(n){n.registerComponentModel(tU),n.registerComponentView(oU),La("saveAsImage",aU),La("magicType",uU),La("dataView",_U),La("dataZoom",VU),La("restore",CU),yt(J9)}var zU=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(bt);const BU=zU;function rT(n){var e=n.get("confine");return e!=null?!!e:n.get("renderMode")==="richText"}function aT(n){if(St.domSupported){for(var e=document.documentElement.style,t=0,i=n.length;t<i;t++)if(n[t]in e)return n[t]}}var sT=aT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),GU=aT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function lT(n,e){if(!n)return e;e=n_(e,!0);var t=n.indexOf(e);return n=t===-1?e:"-"+n.slice(0,t)+"-"+e,n.toLowerCase()}function FU(n,e){var t=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n);return t?e?t[e]:t:null}var HU=lT(GU,"transition"),Gy=lT(sT,"transform"),WU="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(St.transform3dSupported?"will-change:transform;":"");function UU(n){return n=n==="left"?"right":n==="right"?"left":n==="top"?"bottom":"top",n}function YU(n,e,t){if(!U(t)||t==="inside")return"";var i=n.get("backgroundColor"),o=n.get("borderWidth");e=Uo(e);var r=UU(t),a=Math.max(Math.round(o)*1.5,6),s="",l=Gy+":",u;dt(["left","right"],r)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=r==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=r==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+o,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),d=Math.round(((p-Math.SQRT2*o)/2+Math.SQRT2*o-(p-h)/2)*100)/100;s+=";"+r+":-"+d+"px";var f=e+" solid "+o+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function XU(n,e){var t="cubic-bezier(0.23,1,0.32,1)",i=" "+n/2+"s "+t,o="opacity"+i+",visibility"+i;return e||(i=" "+n+"s "+t,o+=St.transformSupported?","+Gy+i:",left"+i+",top"+i),HU+":"+o}function uT(n,e,t){var i=n.toFixed(0)+"px",o=e.toFixed(0)+"px";if(!St.transformSupported)return t?"top:"+o+";left:"+i+";":[["top",o],["left",i]];var r=St.transform3dSupported,a="translate"+(r?"3d":"")+"("+i+","+o+(r?",0":"")+")";return t?"top:0;left:0;"+Gy+":"+a+";":[["top",0],["left",0],[sT,a]]}function ZU(n){var e=[],t=n.get("fontSize"),i=n.getTextColor();i&&e.push("color:"+i),e.push("font:"+n.getFont()),t&&e.push("line-height:"+Math.round(t*3/2)+"px");var o=n.get("textShadowColor"),r=n.get("textShadowBlur")||0,a=n.get("textShadowOffsetX")||0,s=n.get("textShadowOffsetY")||0;return o&&r&&e.push("text-shadow:"+a+"px "+s+"px "+r+"px "+o),C(["decoration","align"],function(l){var u=n.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function jU(n,e,t){var i=[],o=n.get("transitionDuration"),r=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),c=n.getModel("textStyle"),h=lb(n,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),e&&o&&i.push(XU(o,t)),r&&i.push("background-color:"+r),C(["width","color","radius"],function(d){var f="border-"+d,g=n_(f),v=n.get(g);v!=null&&i.push(f+":"+v+(d==="color"?"":"px"))}),i.push(ZU(c)),h!=null&&i.push("padding:"+Qr(h).join("px ")+"px"),i.join(";")+";"}function cT(n,e,t,i,o){var r=e&&e.painter;if(t){var a=r&&r.getViewportRoot();a&&bk(n,a,document.body,i,o)}else{n[0]=i,n[1]=o;var s=r&&r.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}var qU=function(){function n(e,t,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,St.wxa)return null;var o=document.createElement("div");o.domBelongToZr=!0,this.el=o;var r=this._zr=t.getZr(),a=this._appendToBody=i&&i.appendToBody;cT(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),a?document.body.appendChild(o):e.appendChild(o),this._container=e;var s=this;o.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},o.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler,c=r.painter.getViewportRoot();qe(c,l,!0),u.dispatch("mousemove",l)}},o.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(e){var t=this._container,i=FU(t,"position"),o=t.style;o.position!=="absolute"&&i!=="absolute"&&(o.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r,this.el.className=e.get("className")||""},n.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,o=i.style,r=this._styleCoord;i.innerHTML?o.cssText=WU+jU(e,!this._firstShow,this._longHide)+uT(r[0],r[1],!0)+("border-color:"+Uo(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(e,t,i,o,r){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(U(r)&&i.get("trigger")==="item"&&!rT(i)&&(s=YU(i,o,r)),U(e))a.innerHTML=e+s;else if(e){a.innerHTML="",B(e)||(e=[e]);for(var l=0;l<e.length;l++)Dr(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},n.prototype.moveTo=function(e,t){var i=this._styleCoord;if(cT(i,this._zr,this._appendToBody,e,t),i[0]!=null&&i[1]!=null){var o=this.el.style,r=uT(i[0],i[1]);C(r,function(a){o[a[0]]=a[1]})}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){var e=this,t=this.el.style;t.visibility="hidden",t.opacity="0",St.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},n}();const $U=qU;var KU=function(){function n(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),pT(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return n.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(e,t,i,o,r){var a=this;K(e)&&At(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=i.getModel("textStyle");this.el=new Dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:o,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:lb(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.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})},n.prototype.setEnterable=function(e){this._enterable=e},n.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=hT(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},n.prototype.moveTo=function(e,t){var i=this.el;if(i){var o=this._styleCoord;pT(o,this._zr,e,t),e=o[0],t=o[1];var r=i.style,a=ao(r.borderWidth||0),s=hT(r);i.x=e+a+s.left,i.y=t+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function ao(n){return Math.max(0,n)}function hT(n){var e=ao(n.shadowBlur||0),t=ao(n.shadowOffsetX||0),i=ao(n.shadowOffsetY||0);return{left:ao(e-t),right:ao(e+t),top:ao(e-i),bottom:ao(e+i)}}function pT(n,e,t,i){n[0]=t,n[1]=i,n[2]=n[0]/e.getWidth(),n[3]=n[1]/e.getHeight()}const JU=KU;var QU=new It({shape:{x:-1,y:-1,width:2,height:2}}),tY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(St.node||!i.getDom())){var o=t.getComponent("tooltip"),r=this._renderMode=rN(o.get("renderMode"));this._tooltipContent=r==="richText"?new JU(i):new $U(i.getDom(),i,{appendToBody:o.get("appendToBody",!0)})}},e.prototype.render=function(t,i,o){if(!(St.node||!o.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=o;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?la(this,"_updatePosition",50,"fixRate"):Os(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");yD("itemTooltip",this._api,X(function(o,r,a){i!=="none"&&(i.indexOf(o)>=0?this._tryShow(r,a):o==="leave"&&this._hide(a))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,o=this._api,r=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&r!=="none"&&r!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&a.manuallyShowTip(t,i,o,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,o,r){if(!(r.from===this.uid||St.node||!o.getDom())){var a=dT(r,o);this._ticket="";var s=r.dataByCoordSys,l=oY(r,i,o);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:r.position,positionDefault:"bottom"},a)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=QU;c.x=r.x,c.y=r.y,c.update(),rt(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},a)}else if(s)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:s,tooltipOption:r.tooltipOption},a);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,o,r))return;var h=xD(r,i),p=h.point[0],d=h.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:h.el,position:r.position,positionDefault:"bottom"},a)}else r.x!=null&&r.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:o.getZr().findHover(r.x,r.y).target},a))}},e.prototype.manuallyHideTip=function(t,i,o,r){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(dT(r,o))},e.prototype._manuallyAxisShowTip=function(t,i,o,r){var a=r.seriesIndex,s=r.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var c=u.getData(),h=Dl([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:r.position}),!0}}},e.prototype._tryShow=function(t,i){var o=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var a=t.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,t);else if(o){this._lastDataByCoordSys=null;var s,l;$o(o,function(u){if(rt(u).dataIndex!=null)return s=u,!0;if(rt(u).tooltipConfig!=null)return l=u,!0},!0),s?this._showSeriesItemTooltip(t,s,i):l?this._showComponentItemTooltip(t,l,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var o=t.get("showDelay");i=X(i,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(i,o):i()},e.prototype._showAxisTooltip=function(t,i){var o=this._ecModel,r=this._tooltipModel,a=[i.offsetX,i.offsetY],s=Dl([i.tooltipOption],r),l=this._renderMode,u=[],c=ae("section",{blocks:[],noHeader:!0}),h=[],p=new If;C(t,function(m){C(m.dataByAxis,function(x){var _=o.getComponent(x.axisDim+"Axis",x.axisIndex),w=x.value;if(!(!_||w==null)){var b=hD(w,_.axis,o,x.seriesDataIndices,x.valueLabelOpt),S=ae("section",{header:b,noHeader:!yn(b),sortBlocks:!0,blocks:[]});c.blocks.push(S),C(x.seriesDataIndices,function(M){var I=o.getSeriesByIndex(M.seriesIndex),D=M.dataIndexInside,T=I.getDataParams(D);if(!(T.dataIndex<0)){T.axisDim=x.axisDim,T.axisIndex=x.axisIndex,T.axisType=x.axisType,T.axisId=x.axisId,T.axisValue=lg(_.axis,{value:w}),T.axisValueLabel=b,T.marker=p.makeTooltipMarker("item",Uo(T.color),l);var A=H_(I.formatTooltip(D,!0,null)),k=A.frag;if(k){var L=Dl([I],r).get("valueFormatter");S.blocks.push(L?R({valueFormatter:L},k):k)}A.text&&h.push(A.text),u.push(T)}})}})}),c.blocks.reverse(),h.reverse();var d=i.position,f=s.get("order"),g=rb(c,p,l,f,o.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var v=l==="richText"?`
|
|
76
|
+
|
|
77
|
+
`:"<br/>",y=h.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],d,null,p)})},e.prototype._showSeriesItemTooltip=function(t,i,o){var r=this._ecModel,a=rt(i),s=a.seriesIndex,l=r.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),d=this._renderMode,f=t.positionDefault,g=Dl([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(c,h),m=new If;y.marker=m.makeTooltipMarker("item",Uo(y.color),d);var x=H_(u.formatTooltip(c,!1,h)),_=g.get("order"),w=g.get("valueFormatter"),b=x.frag,S=b?rb(w?R({valueFormatter:w},b):b,m,d,_,r.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,M,t.offsetX,t.offsetY,t.position,t.target,m)}),o({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,o){var r=rt(i),a=r.tooltipConfig,s=a.option||{};if(U(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(r.componentMainType,r.componentIndex);c&&u.push(c),u.push({formatter:s.content});var h=t.positionDefault,p=Dl(u,this._tooltipModel,h?{position:h}:null),d=p.get("content"),f=Math.random()+"",g=new If;this._showOrMove(p,function(){var v=it(p.get("formatterParams")||{});this._showTooltipContent(p,d,v,f,t.offsetX,t.offsetY,t.position,i,g)}),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,o,r,a,s,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var p=t.get("formatter");l=l||t.get("position");var d=i,f=this._getNearestPoint([a,s],o,t.get("trigger"),t.get("borderColor")),g=f.color;if(p)if(U(p)){var v=t.ecModel.get("useUTC"),y=B(o)?o[0]:o,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;d=p,m&&(d=$u(y.axisValue,d,v)),d=o_(d,o,!0)}else if($(p)){var x=X(function(_,w){_===this._ticket&&(h.setContent(w,c,t,g,l),this._updatePosition(t,l,a,s,h,o,u))},this);this._ticket=r,d=p(o,r,x)}else d=p;h.setContent(d,c,t,g,l),h.show(t,g),this._updatePosition(t,l,a,s,h,o,u)}},e.prototype._getNearestPoint=function(t,i,o,r){if(o==="axis"||B(i))return{color:r||(this._renderMode==="html"?"#fff":"none")};if(!B(i))return{color:r||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,o,r,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||t.get("position");var h=a.getSize(),p=t.get("align"),d=t.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),$(i)&&(i=i([o,r],s,a.el,f,{viewSize:[u,c],contentSize:h.slice()})),B(i))o=H(i[0],u),r=H(i[1],c);else if(K(i)){var g=i;g.width=h[0],g.height=h[1];var v=ie(g,{width:u,height:c});o=v.x,r=v.y,p=null,d=null}else if(U(i)&&l){var y=iY(i,f,h,t.get("borderWidth"));o=y[0],r=y[1]}else{var y=eY(o,r,a,u,c,p?null:20,d?null:20);o=y[0],r=y[1]}if(p&&(o-=fT(p)?h[0]/2:p==="right"?h[0]:0),d&&(r-=fT(d)?h[1]/2:d==="bottom"?h[1]:0),rT(t)){var y=nY(o,r,a,u,c);o=y[0],r=y[1]}a.moveTo(o,r)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var o=this._lastDataByCoordSys,r=this._cbParamsList,a=!!o&&o.length===t.length;return a&&C(o,function(s,l){var u=s.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&C(u,function(p,d){var f=h[d]||{},g=p.seriesDataIndices||[],v=f.seriesDataIndices||[];a=a&&p.value===f.value&&p.axisType===f.axisType&&p.axisId===f.axisId&&g.length===v.length,a&&C(g,function(y,m){var x=v[m];a=a&&y.seriesIndex===x.seriesIndex&&y.dataIndex===x.dataIndex}),r&&C(p.seriesDataIndices,function(y){var m=y.seriesIndex,x=i[m],_=r[m];x&&_&&_.data!==x.data&&(a=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!a},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){St.node||!i.getDom()||(Os(this,"_updatePosition"),this._tooltipContent.dispose(),by("itemTooltip",i))},e.type="tooltip",e}(Yt);function Dl(n,e,t){var i=e.ecModel,o;t?(o=new Pt(t,i,i),o=new Pt(e.option,o,i)):o=e;for(var r=n.length-1;r>=0;r--){var a=n[r];a&&(a instanceof Pt&&(a=a.get("tooltip",!0)),U(a)&&(a={formatter:a}),a&&(o=new Pt(a,o,i)))}return o}function dT(n,e){return n.dispatchAction||X(e.dispatchAction,e)}function eY(n,e,t,i,o,r,a){var s=t.getSize(),l=s[0],u=s[1];return r!=null&&(n+l+r+2>i?n-=l+r:n+=r),a!=null&&(e+u+a>o?e-=u+a:e+=a),[n,e]}function nY(n,e,t,i,o){var r=t.getSize(),a=r[0],s=r[1];return n=Math.min(n+a,i)-a,e=Math.min(e+s,o)-s,n=Math.max(n,0),e=Math.max(e,0),[n,e]}function iY(n,e,t,i){var o=t[0],r=t[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,c=e.height;switch(n){case"inside":s=e.x+u/2-o/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+c+a;break;case"left":s=e.x-o-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}function fT(n){return n==="center"||n==="middle"}function oY(n,e,t){var i=id(n).queryOptionMap,o=i.keys()[0];if(!(!o||o==="series")){var r=rs(e,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),a=r.models[0];if(a){var s=t.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=rt(u).tooltipConfig;if(c&&c.name===n.name)return l=u,!0}),l)return{componentMainType:o,componentIndex:a.componentIndex,el:l}}}}const rY=tY;function aY(n){yt(Il),n.registerComponentModel(BU),n.registerComponentView(rY),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},jt),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},jt)}var sY=["rect","polygon","keep","clear"];function lY(n,e){var t=Nt(n?n.brush:[]);if(t.length){var i=[];C(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var o=n&&n.toolbox;B(o)&&(o=o[0]),o||(o={feature:{}},n.toolbox=[o]);var r=o.feature||(o.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),uY(s),e&&!s.length&&s.push.apply(s,sY)}}function uY(n){var e={};C(n,function(t){e[t]=1}),n.length=0,C(e,function(t,i){n.push(i)})}var gT=C;function vT(n){if(n){for(var e in n)if(n.hasOwnProperty(e))return!0}}function Fy(n,e,t){var i={};return gT(e,function(r){var a=i[r]=o();gT(n[r],function(s,l){if(ge.isValidType(l)){var u={type:l,visual:s};t&&t(u,r),a[l]=new ge(u),l==="opacity"&&(u=it(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new ge(u))}})}),i;function o(){var r=function(){};r.prototype.__hidden=r.prototype;var a=new r;return a}}function yT(n,e,t){var i;C(t,function(o){e.hasOwnProperty(o)&&vT(e[o])&&(i=!0)}),i&&C(t,function(o){e.hasOwnProperty(o)&&vT(e[o])?n[o]=it(e[o]):delete n[o]})}function cY(n,e,t,i,o,r){var a={};C(n,function(h){var p=ge.prepareVisualTypes(e[h]);a[h]=p});var s;function l(h){return Lf(t,s,h)}function u(h,p){kb(t,s,h,p)}r==null?t.each(c):t.each([r],c);function c(h,p){s=r==null?h:p;var d=t.getRawDataItem(s);if(!(d&&d.visualMap===!1))for(var f=i.call(o,h),g=e[f],v=a[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(h,l,u)}}}function hY(n,e,t,i){var o={};return C(n,function(r){var a=ge.prepareVisualTypes(e[r]);o[r]=a}),{progress:function(r,a){var s;i!=null&&(s=a.getDimensionIndex(i));function l(_){return Lf(a,c,_)}function u(_,w){kb(a,c,_,w)}for(var c,h=a.getStore();(c=r.next())!=null;){var p=a.getRawDataItem(c);if(!(p&&p.visualMap===!1))for(var d=i!=null?h.get(s,c):c,f=t(d),g=e[f],v=o[f],y=0,m=v.length;y<m;y++){var x=v[y];g[x]&&g[x].applyVisual(d,l,u)}}}}}function pY(n){var e=n.brushType,t={point:function(i){return mT[e].point(i,t,n)},rect:function(i){return mT[e].rect(i,t,n)}};return t}var mT={lineX:xT(0),lineY:xT(1),rect:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])},rect:function(n,e,t){return n&&t.boundingRect.intersect(n)}},polygon:{point:function(n,e,t){return n&&t.boundingRect.contain(n[0],n[1])&&nr(t.range,n[0],n[1])},rect:function(n,e,t){var i=t.range;if(!n||i.length<=1)return!1;var o=n.x,r=n.y,a=n.width,s=n.height,l=i[0];if(nr(i,o,r)||nr(i,o+a,r)||nr(i,o,r+s)||nr(i,o+a,r+s)||pt.create(n).contain(l[0],l[1])||_s(o,r,o+a,r,i)||_s(o,r,o,r+s,i)||_s(o+a,r,o+a,r+s,i)||_s(o,r+s,o+a,r+s,i))return!0}}};function xT(n){var e=["x","y"],t=["width","height"];return{point:function(i,o,r){if(i){var a=r.range,s=i[n];return Tl(s,a)}},rect:function(i,o,r){if(i){var a=r.range,s=[i[e[n]],i[e[n]]+i[t[n]]];return s[1]<s[0]&&s.reverse(),Tl(s[0],a)||Tl(s[1],a)||Tl(a[0],s)||Tl(a[1],s)}}}}function Tl(n,e){return e[0]<=n&&n<=e[1]}var _T=["inBrush","outOfBrush"],Hy="__ecBrushSelect",Wy="__ecInBrushSelectEvent";function bT(n){n.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Ry(e.option,n);t.setInputRanges(e.areas,n)})}function dY(n,e,t){var i=[],o,r;n.eachComponent({mainType:"brush"},function(a){t&&t.type==="takeGlobalCursor"&&a.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),bT(n),n.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:it(a.areas),selected:[]};i.push(l);var u=a.option,c=u.brushLink,h=[],p=[],d=[],f=!1;s||(o=u.throttleType,r=u.throttleDelay);var g=G(a.areas,function(w){var b=yY[w.brushType],S=et({boundingRect:b?b(w):void 0},w);return S.selectors=pY(S),S}),v=Fy(a.option,_T,function(w){w.mappingMethod="fixed"});B(c)&&C(c,function(w){h[w]=1});function y(w){return c==="all"||!!h[w]}function m(w){return!!w.length}n.eachSeries(function(w,b){var S=d[b]=[];w.subType==="parallel"?x(w,b):_(w,b,S)});function x(w,b){var S=w.coordinateSystem;f=f||S.hasAxisBrushed(),y(b)&&S.eachActiveState(w.getData(),function(M,I){M==="active"&&(p[I]=1)})}function _(w,b,S){if(!(!w.brushSelector||vY(a,b))&&(C(g,function(I){a.brushTargetManager.controlSeries(I,w,n)&&S.push(I),f=f||m(S)}),y(b)&&m(S))){var M=w.getData();M.each(function(I){wT(w,S,M,I)&&(p[I]=1)})}}n.eachSeries(function(w,b){var S={seriesId:w.id,seriesIndex:b,seriesName:w.name,dataIndex:[]};l.selected.push(S);var M=d[b],I=w.getData(),D=y(b)?function(T){return p[T]?(S.dataIndex.push(I.getRawIndex(T)),"inBrush"):"outOfBrush"}:function(T){return wT(w,M,I,T)?(S.dataIndex.push(I.getRawIndex(T)),"inBrush"):"outOfBrush"};(y(b)?f:m(M))&&cY(_T,v,I,D)})}),fY(e,o,r,i,t)}function fY(n,e,t,i,o){if(o){var r=n.getZr();if(!r[Wy]){r[Hy]||(r[Hy]=gY);var a=la(r,Hy,t,e);a(n,i)}}}function gY(n,e){if(!n.isDisposed()){var t=n.getZr();t[Wy]=!0,n.dispatchAction({type:"brushSelect",batch:e}),t[Wy]=!1}}function wT(n,e,t,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(n.brushSelector(i,t,a.selectors,a))return!0}}function vY(n,e){var t=n.option.seriesIndex;return t!=null&&t!=="all"&&(B(t)?dt(t,e)<0:e!==t)}var yY={rect:function(n){return ST(n.range)},polygon:function(n){for(var e,t=n.range,i=0,o=t.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=t[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&ST(e)}};function ST(n){return new pt(n[0][0],n[1][0],n[0][1]-n[0][0],n[1][1]-n[1][0])}var mY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new Xv(i.getZr())).on("brush",X(this._onBrush,this)).mount()},e.prototype.render=function(t,i,o,r){this.model=t,this._updateController(t,i,o,r)},e.prototype.updateTransform=function(t,i,o,r){bT(i),this._updateController(t,i,o,r)},e.prototype.updateVisual=function(t,i,o,r){this.updateTransform(t,i,o,r)},e.prototype.updateView=function(t,i,o,r){this._updateController(t,i,o,r)},e.prototype._updateController=function(t,i,o,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(o)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,o=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:it(o),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:it(o),$from:i})},e.type="brush",e}(Yt);const xY=mY;var _Y="#ddd",bY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&yT(o,t,["inBrush","outOfBrush"]);var r=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:_Y},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){process.env.NODE_ENV!=="production"&&(J(B(t)),C(t,function(i){J(i.brushType,"Illegal areas")})),t&&(this.areas=G(t,function(i){return MT(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=MT(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(bt);function MT(n,e){return ht({brushType:n.brushType,brushMode:n.brushMode,transformable:n.transformable,brushStyle:new Pt(n.brushStyle).getItemStyle(),removeOnClick:n.removeOnClick,z:n.z},e,!0)}const wY=bY;var SY=["rect","polygon","lineX","lineY","keep","clear"],MY=function(n){P(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.render=function(t,i,o){var r,a,s;i.eachComponent({mainType:"brush"},function(l){r=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=r,this._brushMode=a,C(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===r)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,o){this.render(t,i,o)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),o={};return C(t.get("type",!0),function(r){i[r]&&(o[r]=i[r])}),o},e.prototype.onclick=function(t,i,o){var r=this._brushType,a=this._brushMode;o==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:o==="keep"?r:r===o?!1:o,brushMode:o==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(t){var i={show:!0,type:SY.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e}(gn);const IY=MY;function CY(n){n.registerComponentView(xY),n.registerComponentModel(wY),n.registerPreprocessor(lY),n.registerVisual(n.PRIORITY.VISUAL.BRUSH,dY),n.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),n.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},jt),n.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},jt),La("brush",IY)}var DY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(bt),TY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,o){if(this.group.removeAll(),!!t.get("show")){var r=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=ut(t.get("textBaseline"),t.get("textVerticalAlign")),c=new Dt({style:Ot(a,{text:t.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),h=c.getBoundingRect(),p=t.get("subtext"),d=new Dt({style:Ot(s,{text:p,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=t.get("link"),g=t.get("sublink"),v=t.get("triggerEvent",!0);c.silent=!f&&!v,d.silent=!g&&!v,f&&c.on("click",function(){ec(f,"_"+t.get("target"))}),g&&d.on("click",function(){ec(g,"_"+t.get("subtarget"))}),rt(c).eventData=rt(d).eventData=v?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(c),p&&r.add(d);var y=r.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var x=ie(m,{width:o.getWidth(),height:o.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),r.x=x.x,r.y=x.y,r.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),d.setStyle(_),y=r.getBoundingRect();var w=x.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var S=new It({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});r.add(S)}},e.type="title",e}(Yt);function AY(n){n.registerComponentModel(DY),n.registerComponentView(TY)}var kY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),this._initData()},e.prototype.mergeOption=function(t){n.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],o=t.axisType,r=this._names=[],a;o==="category"?(a=[],C(i,function(u,c){var h=ne(zr(u),""),p;K(u)?(p=it(u),p.value=c):p=c,a.push(p),r.push(h)})):a=i;var s={category:"ordinal",time:"time",value:"number"}[o]||"number",l=this._data=new Te([{name:"value",type:s}],this);l.initData(a,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(bt);const IT=kY;var CT=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=Hi(IT.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(IT);$t(CT,xf.prototype);const LY=CT;var NY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(Yt);const EY=NY;var OY=function(n){P(e,n);function e(t,i,o,r){var a=n.call(this,t,i,o)||this;return a.type=r||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(An);const PY=OY;var Uy=Math.PI,DT=Mt(),VY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,o){if(this.model=t,this.api=o,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,o),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(r,t);t.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return ae("nameValue",{noName:!0,value:c})},C(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](r,a,l,t)},this),this._renderAxisLabel(r,s,l,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var o=t.get(["label","position"]),r=t.get("orient"),a=zY(t,i),s;o==null||o==="auto"?s=r==="horizontal"?a.y+a.height/2<i.getHeight()/2?"-":"+":a.x+a.width/2<i.getWidth()/2?"+":"-":U(o)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[r][o]:s=o;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:Uy/2},h=r==="vertical"?a.height:a.width,p=t.getModel("controlStyle"),d=p.get("show",!0),f=d?p.get("itemSize"):0,g=d?p.get("itemGap"):0,v=f+g,y=t.get(["label","rotate"])||0;y=y*Uy/180;var m,x,_,w=p.get("position",!0),b=d&&p.get("showPlayBtn",!0),S=d&&p.get("showPrevBtn",!0),M=d&&p.get("showNextBtn",!0),I=0,D=h;w==="left"||w==="bottom"?(b&&(m=[0,0],I+=v),S&&(x=[I,0],I+=v),M&&(_=[D-f,0],D-=v)):(b&&(m=[D-f,0],D-=v),S&&(x=[0,0],I+=v),M&&(_=[D-f,0],D-=v));var T=[I,D];return t.get("inverse")&&T.reverse(),{viewRect:a,mainLength:h,orient:r,rotation:c[r],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[r],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[r],playPosition:m,prevBtnPosition:x,nextBtnPosition:_,axisExtent:T,controlSize:f,controlGap:g}},e.prototype._position=function(t,i){var o=this._mainGroup,r=this._labelGroup,a=t.viewRect;if(t.orient==="vertical"){var s=$e(),l=a.x,u=a.y+a.height;En(s,s,[-l,-u]),go(s,s,-Uy/2),En(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=m(a),h=m(o.getBoundingRect()),p=m(r.getBoundingRect()),d=[o.x,o.y],f=[r.x,r.y];f[0]=d[0]=c[0][0];var g=t.labelPosOpt;if(g==null||U(g)){var v=g==="+"?0:1;x(d,h,c,1,v),x(f,p,c,1,1-v)}else{var v=g>=0?0:1;x(d,h,c,1,v),f[1]=d[1]+g}o.setPosition(d),r.setPosition(f),o.rotation=r.rotation=t.rotation,y(o),y(r);function y(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function m(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function x(_,w,b,S,M){_[S]+=b[S][M]-w[S][M]}},e.prototype._createAxis=function(t,i){var o=i.getData(),r=i.get("axisType"),a=RY(i,r);a.getTicks=function(){return o.mapArray(["value"],function(u){return{value:u}})};var s=o.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new PY("value",a,t.axisExtent,r);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new ot;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,o,r){var a=o.getExtent();if(r.get(["lineStyle","show"])){var s=new ue({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:R({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ue({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:et({lineCap:"round",lineWidth:s.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,o,r){var a=this,s=r.getData(),l=o.scale.getTicks();this._tickSymbols=[],C(l,function(u){var c=o.dataToCoord(u.value),h=s.getItemModel(u.value),p=h.getModel("itemStyle"),d=h.getModel(["emphasis","itemStyle"]),f=h.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:X(a._changeTimeline,a,u.value)},v=TT(h,p,i,g);v.ensureState("emphasis").style=d.getItemStyle(),v.ensureState("progress").style=f.getItemStyle(),Ro(v);var y=rt(v);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=r):y.dataIndex=y.dataModel=null,a._tickSymbols.push(v)})},e.prototype._renderAxisLabel=function(t,i,o,r){var a=this,s=o.getLabelModel();if(s.get("show")){var l=r.getData(),u=o.getViewLabels();this._tickLabels=[],C(u,function(c){var h=c.tickValue,p=l.getItemModel(h),d=p.getModel("label"),f=p.getModel(["emphasis","label"]),g=p.getModel(["progress","label"]),v=o.dataToCoord(c.tickValue),y=new Dt({x:v,y:0,rotation:t.labelRotation-t.rotation,onclick:X(a._changeTimeline,a,h),silent:!1,style:Ot(d,{text:c.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Ot(f),y.ensureState("progress").style=Ot(g),i.add(y),Ro(y),DT(y).dataIndex=h,a._tickLabels.push(y)})}},e.prototype._renderControl=function(t,i,o,r){var a=t.controlSize,s=t.rotation,l=r.getModel("controlStyle").getItemStyle(),u=r.getModel(["emphasis","controlStyle"]).getItemStyle(),c=r.getPlayState(),h=r.get("inverse",!0);p(t.nextBtnPosition,"next",X(this._changeTimeline,this,h?"-":"+")),p(t.prevBtnPosition,"prev",X(this._changeTimeline,this,h?"+":"-")),p(t.playPosition,c?"stop":"play",X(this._handlePlayClick,this,!c),!0);function p(d,f,g,v){if(d){var y=_n(ut(r.get(["controlStyle",f+"BtnSize"]),a),a),m=[0,-y/2,y,y],x=BY(r,f+"Icon",m,{x:d[0],y:d[1],originX:a/2,originY:0,rotation:v?-s:0,rectHover:!0,style:l,onclick:g});x.ensureState("emphasis").style=u,i.add(x),Ro(x)}}},e.prototype._renderCurrentPointer=function(t,i,o,r){var a=r.getData(),s=r.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(h){h.draggable=!0,h.drift=X(u._handlePointerDrag,u),h.ondragend=X(u._handlePointerDragend,u),AT(h,u._progressLine,s,o,r,!0)},onUpdate:function(h){AT(h,u._progressLine,s,o,r)}};this._currentPointer=TT(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var o=this._toAxisCoord(t)[0],r=this._axis,a=Qe(r.getExtent().slice());o>a[1]&&(o=a[1]),o<a[0]&&(o=a[0]),this._currentPointer.x=o,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=o,s.dirty());var l=this._findNearestTick(o),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return Cn(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),o=1/0,r,a=this._axis;return i.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-t);c<o&&(o=c,r=l)}),r},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,o=this._tickLabels;if(i)for(var r=0;r<i.length;r++)i&&i[r]&&i[r].toggleState("progress",r<t);if(o)for(var r=0;r<o.length;r++)o&&o[r]&&o[r].toggleState("progress",DT(o[r]).dataIndex<=t)},e.type="timeline.slider",e}(EY);function RY(n,e){if(e=e||n.get("type"),e)switch(e){case"category":return new ig({ordinalMeta:n.getCategories(),extent:[1/0,-1/0]});case"time":return new Yw({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new $i}}function zY(n,e){return ie(n.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},n.get("padding"))}function BY(n,e,t,i){var o=i.style,r=xs(n.get(["controlStyle",e]),i||{},new pt(t[0],t[1],t[2],t[3]));return o&&r.setStyle(o),r}function TT(n,e,t,i,o,r){var a=e.get("color");if(o)o.setColor(a),t.add(o),r&&r.onUpdate(o);else{var s=n.get("symbol");o=ee(s,-1,-1,2,2,a),o.setStyle("strokeNoScale",!0),t.add(o),r&&r.onCreate(o)}var l=e.getItemStyle(["color"]);o.setStyle(l),i=ht({rectHover:!0,z2:100},i,!0);var u=ca(n.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var c=Ko(n.get("symbolOffset"),u);c&&(i.x=(i.x||0)+c[0],i.y=(i.y||0)+c[1]);var h=n.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function AT(n,e,t,i,o,r){if(!n.dragging){var a=o.getModel("checkpointStyle"),s=i.dataToCoord(o.getData().get("value",t));if(r||!a.get("animation",!0))n.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};n.stopAnimation(null,!0),n.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const GY=VY;function FY(n){n.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var o=t.getComponent("timeline");return o&&e.currentIndex!=null&&(o.setCurrentIndex(e.currentIndex),!o.get("loop",!0)&&o.isIndexMax()&&o.getPlayState()&&(o.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:o.get("replaceMerge",!0)}),et({currentIndex:o.option.currentIndex},e)}),n.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function HY(n){var e=n&&n.timeline;B(e)||(e=e?[e]:[]),C(e,function(t){t&&WY(t)})}function WY(n){var e=n.type,t={number:"value",time:"time"};if(t[e]&&(n.axisType=t[e],delete n.type),kT(n),Sr(n,"controlPosition")){var i=n.controlStyle||(n.controlStyle={});Sr(i,"position")||(i.position=n.controlPosition),i.position==="none"&&!Sr(i,"show")&&(i.show=!1,delete i.position),delete n.controlPosition}C(n.data||[],function(o){K(o)&&!B(o)&&(!Sr(o,"value")&&Sr(o,"name")&&(o.value=o.name),kT(o))})}function kT(n){var e=n.itemStyle||(n.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=n.label||n.label||{},o=i.normal||(i.normal={}),r={normal:1,emphasis:1};C(i,function(a,s){!r[s]&&!Sr(o,s)&&(o[s]=a)}),t.label&&!Sr(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Sr(n,e){return n.hasOwnProperty(e)}function UY(n){n.registerComponentModel(LY),n.registerComponentView(GY),n.registerSubTypeDefaulter("timeline",function(){return"slider"}),FY(n),n.registerPreprocessor(HY)}function Yy(n,e){if(!n)return!1;for(var t=B(n)?n:[n],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function Eh(n){So(n,"label",["show"])}var Oh=Mt(),LT=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t}return e.prototype.init=function(t,i,o){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,o),this._mergeOption(t,o,!1,!0)},e.prototype.isAnimationEnabled=function(){if(St.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,o,r){var a=this.mainType;o||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Oh(s)[a];if(!l||!l.data){Oh(s)[a]=null;return}u?u._mergeOption(l,i,!0):(r&&Eh(l),C(l.data,function(c){c instanceof Array?(Eh(c[0]),Eh(c[1])):Eh(c)}),u=this.createMarkerModelFromSeries(l,this,i),R(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Oh(s)[a]=u},this)},e.prototype.formatTooltip=function(t,i,o){var r=this.getData(),a=this.getRawValue(t),s=r.getName(t);return ae("section",{header:this.name,blocks:[ae("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,i){return Oh(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(bt);$t(LT,xf.prototype);const so=LT;var YY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(so);const XY=YY;function Xy(n){return!(isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y)))}function ZY(n){return!isNaN(parseFloat(n.x))&&!isNaN(parseFloat(n.y))}function Ph(n,e,t,i,o,r){var a=[],s=qi(e,i),l=s?e.getCalculationInfo("stackResultDimension"):i,u=jy(e,l,n),c=e.indicesOfNearest(l,u)[0];a[o]=e.get(t,c),a[r]=e.get(l,c);var h=e.get(i,c),p=Vn(e.get(i,c));return p=Math.min(p,20),p>=0&&(a[r]=+a[r].toFixed(p)),[a,h]}var Zy={min:at(Ph,"min"),max:at(Ph,"max"),average:at(Ph,"average"),median:at(Ph,"median")};function Al(n,e){if(e){var t=n.getData(),i=n.coordinateSystem,o=i&&i.dimensions;if(!ZY(e)&&!B(e.coord)&&B(o)){var r=NT(e,t,i,n);if(e=it(e),e.type&&Zy[e.type]&&r.baseAxis&&r.valueAxis){var a=dt(o,r.baseAxis.dim),s=dt(o,r.valueAxis.dim),l=Zy[e.type](t,r.baseDataDim,r.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!B(o))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)Zy[u[c]]&&(u[c]=jy(t,t.mapDimension(o[c]),u[c]));return e}}function NT(n,e,t,i){var o={};return n.valueIndex!=null||n.valueDim!=null?(o.valueDataDim=n.valueIndex!=null?e.getDimension(n.valueIndex):n.valueDim,o.valueAxis=t.getAxis(jY(i,o.valueDataDim)),o.baseAxis=t.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=t.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function jY(n,e){var t=n.getData().getDimensionInfo(e);return t&&t.coordDim}function kl(n,e){return n&&n.containData&&e.coord&&!Xy(e)?n.containData(e.coord):!0}function qY(n,e,t){return n&&n.containZone&&e.coord&&t.coord&&!Xy(e)&&!Xy(t)?n.containZone(e.coord,t.coord):!0}function ET(n,e){return n?function(t,i,o,r){var a=r<2?t.coord&&t.coord[r]:t.value;return Yi(a,e[r])}:function(t,i,o,r){return Yi(t.value,e[r])}}function jy(n,e,t){if(t==="average"){var i=0,o=0;return n.each(e,function(r,a){isNaN(r)||(i+=r,o++)}),i/o}else return t==="median"?n.getMedian(e):n.getDataExtent(e)[t==="max"?1:0]}var qy=Mt(),$Y=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=j()},e.prototype.render=function(t,i,o){var r=this,a=this.markerGroupMap;a.each(function(s){qy(s).keep=!1}),i.eachSeries(function(s){var l=so.getMarkerModelFromSeries(s,r.type);l&&r.renderSeries(s,l,i,o)}),a.each(function(s){!qy(s).keep&&r.group.remove(s.group)})},e.prototype.markKeep=function(t){qy(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var o=this;C(t,function(r){var a=so.getMarkerModelFromSeries(r,o.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(i?U1(l):Dd(l))})}})},e.type="marker",e}(Yt);const $y=$Y;function OT(n,e,t){var i=e.coordinateSystem;n.each(function(o){var r=n.getItemModel(o),a,s=H(r.get("x"),t.getWidth()),l=H(r.get("y"),t.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(n.getValues(n.dimensions,o));else if(i){var u=n.get(i.dimensions[0],o),c=n.get(i.dimensions[1],o);a=i.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),n.setItemLayout(o,a)})}var KY=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=so.getMarkerModelFromSeries(r,"markPoint");a&&(OT(a.getData(),r,o),this.markerGroupMap.get(r.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new il),h=JY(a,t,i);i.setData(h),OT(i.getData(),t,r),h.each(function(p){var d=h.getItemModel(p),f=d.getShallow("symbol"),g=d.getShallow("symbolSize"),v=d.getShallow("symbolRotate"),y=d.getShallow("symbolOffset"),m=d.getShallow("symbolKeepAspect");if($(f)||$(g)||$(v)||$(y)){var x=i.getRawValue(p),_=i.getDataParams(p);$(f)&&(f=f(x,_)),$(g)&&(g=g(x,_)),$(v)&&(v=v(x,_)),$(y)&&(y=y(x,_))}var w=d.getModel("itemStyle").getItemStyle(),b=Rs(l,"color");w.fill||(w.fill=b),h.setItemVisual(p,{symbol:f,symbolSize:g,symbolRotate:v,symbolOffset:y,symbolKeepAspect:m,style:w})}),c.updateData(h),this.group.add(c.group),h.eachItemGraphicEl(function(p){p.traverse(function(d){rt(d).dataModel=i})}),this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e}($y);function JY(n,e,t){var i;n?i=G(n&&n.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return R(R({},l),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new Te(i,t),r=G(t.get("data"),at(Al,e));n&&(r=Lt(r,at(kl,n)));var a=ET(!!n,i);return o.initData(r,null,a),o}const QY=KY;function tX(n){n.registerComponentModel(XY),n.registerComponentView(QY),n.registerPreprocessor(function(e){Yy(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var eX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(so);const nX=eX;var Vh=Mt(),iX=function(n,e,t,i){var o=n.getData(),r;if(B(i))r=i;else{var a=i.type;if(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Kt(i.yAxis,i.xAxis);else{var u=NT(i,o,e,n);s=u.valueAxis;var c=Aw(o,u.valueDataDim);l=jy(o,c,a)}var h=s.dim==="x"?0:1,p=1-h,d=it(i),f={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,f.coord[p]=1/0;var g=t.get("precision");g>=0&&Ct(l)&&(l=+l.toFixed(Math.min(g,20))),d.coord[h]=f.coord[h]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&vn("Invalid markLine data."),r=[]}var v=[Al(n,r[0]),Al(n,r[1]),R({},r[2])];return v[2].type=v[2].type||null,ht(v[2],v[0]),ht(v[2],v[1]),v};function Rh(n){return!isNaN(n)&&!isFinite(n)}function PT(n,e,t,i){var o=1-n,r=i.dimensions[n];return Rh(e[o])&&Rh(t[o])&&e[n]===t[n]&&i.getAxis(r).containData(e[n])}function oX(n,e){if(n.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(PT(1,t,i,n)||PT(0,t,i,n)))return!0}return kl(n,e[0])&&kl(n,e[1])}function Ky(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get("x"),o.getWidth()),u=H(a.get("y"),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(n.getValues(n.dimensions,e));else{var c=r.dimensions,h=n.get(c[0],e),p=n.get(c[1],e);s=r.dataToPoint([h,p])}if(ur(r,"cartesian2d")){var d=r.getAxis("x"),f=r.getAxis("y"),c=r.dimensions;Rh(n.get(c[0],e))?s[0]=d.toGlobalCoord(d.getExtent()[t?0:1]):Rh(n.get(c[1],e))&&(s[1]=f.toGlobalCoord(f.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}n.setItemLayout(e,s)}var rX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=so.getMarkerModelFromSeries(r,"markLine");if(a){var s=a.getData(),l=Vh(a).from,u=Vh(a).to;l.each(function(c){Ky(l,c,!0,r,o),Ky(u,c,!1,r,o)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(r.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Cv);this.group.add(c.group);var h=aX(a,t,i),p=h.from,d=h.to,f=h.line;Vh(i).from=p,Vh(i).to=d,i.setData(f);var g=i.get("symbol"),v=i.get("symbolSize"),y=i.get("symbolRotate"),m=i.get("symbolOffset");B(g)||(g=[g,g]),B(v)||(v=[v,v]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),h.from.each(function(_){x(p,_,!0),x(d,_,!1)}),f.each(function(_){var w=f.getItemModel(_).getModel("lineStyle").getLineStyle();f.setItemLayout(_,[p.getItemLayout(_),d.getItemLayout(_)]),w.stroke==null&&(w.stroke=p.getItemVisual(_,"style").fill),f.setItemVisual(_,{fromSymbolKeepAspect:p.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(_,"symbolOffset"),fromSymbolRotate:p.getItemVisual(_,"symbolRotate"),fromSymbolSize:p.getItemVisual(_,"symbolSize"),fromSymbol:p.getItemVisual(_,"symbol"),toSymbolKeepAspect:d.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(_,"symbolOffset"),toSymbolRotate:d.getItemVisual(_,"symbolRotate"),toSymbolSize:d.getItemVisual(_,"symbolSize"),toSymbol:d.getItemVisual(_,"symbol"),style:w})}),c.updateData(f),h.line.eachItemGraphicEl(function(_){rt(_).dataModel=i,_.traverse(function(w){rt(w).dataModel=i})});function x(_,w,b){var S=_.getItemModel(w);Ky(_,w,b,t,r);var M=S.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=Rs(l,"color")),_.setItemVisual(w,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:ut(S.get("symbolOffset",!0),m[b?0:1]),symbolRotate:ut(S.get("symbolRotate",!0),y[b?0:1]),symbolSize:ut(S.get("symbolSize"),v[b?0:1]),symbol:ut(S.get("symbol",!0),g[b?0:1]),style:M})}this.markKeep(c),c.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e}($y);function aX(n,e,t){var i;n?i=G(n&&n.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return R(R({},c),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var o=new Te(i,t),r=new Te(i,t),a=new Te([],t),s=G(t.get("data"),at(iX,e,n,t));n&&(s=Lt(s,at(oX,n)));var l=ET(!!n,i);return o.initData(G(s,function(u){return u[0]}),null,l),r.initData(G(s,function(u){return u[1]}),null,l),a.initData(G(s,function(u){return u[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}const sX=rX;function lX(n){n.registerComponentModel(nX),n.registerComponentView(sX),n.registerPreprocessor(function(e){Yy(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var uX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,o){return new e(t,i,o)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(so);const cX=uX;var zh=Mt(),hX=function(n,e,t,i){var o=i[0],r=i[1];if(!(!o||!r)){var a=Al(n,o),s=Al(n,r),l=a.coord,u=s.coord;l[0]=Kt(l[0],-1/0),l[1]=Kt(l[1],-1/0),u[0]=Kt(u[0],1/0),u[1]=Kt(u[1],1/0);var c=tp([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function Bh(n){return!isNaN(n)&&!isFinite(n)}function VT(n,e,t,i){var o=1-n;return Bh(e[o])&&Bh(t[o])}function pX(n,e){var t=e.coord[0],i=e.coord[1],o={coord:t,x:e.x0,y:e.y0},r={coord:i,x:e.x1,y:e.y1};return ur(n,"cartesian2d")?t&&i&&(VT(1,t,i)||VT(0,t,i))?!0:qY(n,o,r):kl(n,o)||kl(n,r)}function RT(n,e,t,i,o){var r=i.coordinateSystem,a=n.getItemModel(e),s,l=H(a.get(t[0]),o.getWidth()),u=H(a.get(t[1]),o.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var c=n.getValues(["x0","y0"],e),h=n.getValues(["x1","y1"],e),p=r.clampData(c),d=r.clampData(h),f=[];t[0]==="x0"?f[0]=p[0]>d[0]?h[0]:c[0]:f[0]=p[0]>d[0]?c[0]:h[0],t[1]==="y0"?f[1]=p[1]>d[1]?h[1]:c[1]:f[1]=p[1]>d[1]?c[1]:h[1],s=i.getMarkerPosition(f,t,!0)}else{var g=n.get(t[0],e),v=n.get(t[1],e),y=[g,v];r.clampData&&r.clampData(y,y),s=r.dataToPoint(y,!0)}if(ur(r,"cartesian2d")){var m=r.getAxis("x"),x=r.getAxis("y"),g=n.get(t[0],e),v=n.get(t[1],e);Bh(g)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):Bh(v)&&(s[1]=x.toGlobalCoord(x.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var zT=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,o){i.eachSeries(function(r){var a=so.getMarkerModelFromSeries(r,"markArea");if(a){var s=a.getData();s.each(function(l){var u=G(zT,function(h){return RT(s,l,h,r,o)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,o,r){var a=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new ot});this.group.add(c.group),this.markKeep(c);var h=fX(a,t,i);i.setData(h),h.each(function(p){var d=G(zT,function(M){return RT(h,p,M,t,r)}),f=a.getAxis("x").scale,g=a.getAxis("y").scale,v=f.getExtent(),y=g.getExtent(),m=[f.parse(h.get("x0",p)),f.parse(h.get("x1",p))],x=[g.parse(h.get("y0",p)),g.parse(h.get("y1",p))];Qe(m),Qe(x);var _=!(v[0]>m[1]||v[1]<m[0]||y[0]>x[1]||y[1]<x[0]),w=!_;h.setItemLayout(p,{points:d,allClipped:w});var b=h.getItemModel(p).getModel("itemStyle").getItemStyle(),S=Rs(l,"color");b.fill||(b.fill=S,U(b.fill)&&(b.fill=nu(b.fill,.4))),b.stroke||(b.stroke=S),h.setItemVisual(p,"style",b)}),h.diff(zh(c).data).add(function(p){var d=h.getItemLayout(p);if(!d.allClipped){var f=new Re({shape:{points:d.points}});h.setItemGraphicEl(p,f),c.group.add(f)}}).update(function(p,d){var f=zh(c).data.getItemGraphicEl(d),g=h.getItemLayout(p);g.allClipped?f&&c.group.remove(f):(f?Tt(f,{shape:{points:g.points}},i,p):f=new Re({shape:{points:g.points}}),h.setItemGraphicEl(p,f),c.group.add(f))}).remove(function(p){var d=zh(c).data.getItemGraphicEl(p);c.group.remove(d)}).execute(),h.eachItemGraphicEl(function(p,d){var f=h.getItemModel(d),g=h.getItemVisual(d,"style");p.useStyle(h.getItemVisual(d,"style")),de(p,re(f),{labelFetcher:i,labelDataIndex:d,defaultText:h.getName(d)||"",inheritColor:U(g.fill)?nu(g.fill,1):"#000"}),pe(p,f),Ut(p,null,null,f.get(["emphasis","disabled"])),rt(p).dataModel=i}),zh(c).data=h,c.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e}($y);function fX(n,e,t){var i,o,r=["x0","y0","x1","y1"];if(n){var a=G(n&&n.dimensions,function(u){var c=e.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return R(R({},h),{name:u,ordinalMeta:null})});o=G(r,function(u,c){return{name:u,type:a[c%2].type}}),i=new Te(o,t)}else o=[{name:"value",type:"float"}],i=new Te(o,t);var s=G(t.get("data"),at(hX,e,n,t));n&&(s=Lt(s,at(pX,n)));var l=n?function(u,c,h,p){var d=u.coord[Math.floor(p/2)][p%2];return Yi(d,o[p])}:function(u,c,h,p){return Yi(u.value,o[p])};return i.initData(s,null,l),i.hasItemOption=!0,i}const gX=dX;function vX(n){n.registerComponentModel(cX),n.registerComponentView(gX),n.registerPreprocessor(function(e){Yy(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var yX=function(n,e){if(e==="all")return{type:"all",title:n.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:n.getLocaleModel().get(["legend","selector","inverse"])}},mX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,o=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),B(i)&&C(i,function(r,a){U(r)&&(r={type:r}),i[a]=ht(r,yX(o,r.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,o=0;o<t.length;o++){var r=t[o].get("name");if(this.isSelected(r)){this.select(r),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],o=[];t.eachRawSeries(function(l){var u=l.name;o.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();t.isSeriesFiltered(l)||(o=o.concat(p)),p.length?i=i.concat(p):c=!0}else c=!0;c&&nd(l)&&i.push(l.name)}),this._availableNames=o;var r=this.get("data")||i,a=j(),s=G(r,function(l){return(U(l)||Ct(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Pt(l,this,this.ecModel))},this);this._data=Lt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,o=this.get("selectedMode");if(o==="single"){var r=this._data;C(r,function(a){i[a.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;C(t,function(o){i[o.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;C(t,function(o){var r=o.get("name",!0);i.hasOwnProperty(r)||(i[r]=!0),i[r]=!i[r]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&dt(this._availableNames,t)>=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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(bt);const Jy=mX;var Ea=at,Qy=C,Gh=ot,xX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new Gh),this.group.add(this._selectorGroup=new Gh),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,o){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var a=t.get("align"),s=t.get("orient");(!a||a==="auto")&&(a=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,t,i,o,l,s,u);var c=t.getBoxLayoutParams(),h={width:o.getWidth(),height:o.getHeight()},p=t.get("padding"),d=ie(c,h,p),f=this.layoutInner(t,a,d,r,l,u),g=ie(et({width:f.width,height:f.height},c),h,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ZD(f,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this.getContentGroup(),c=j(),h=i.get("selectedMode"),p=[];o.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Qy(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
78
|
+
`)){var v=new Gh;v.newline=!0,u.add(v);return}var y=o.getSeriesByName(g)[0];if(!c.get(g)){if(y){var m=y.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),w=m.getVisual("style"),b=this._createItem(y,g,f,d,i,t,x,w,_,h,r);b.on("click",Ea(BT,g,null,r,p)).on("mouseover",Ea(tm,y.name,null,r,p)).on("mouseout",Ea(em,y.name,null,r,p)),c.set(g,!0)}else o.eachRawSeries(function(S){if(!c.get(g)&&S.legendVisualProvider){var M=S.legendVisualProvider;if(!M.containName(g))return;var I=M.indexOfName(g),D=M.getItemVisual(I,"style"),T=M.getItemVisual(I,"legendIcon"),A=We(D.fill);A&&A[3]===0&&(A[3]=.2,D=R(R({},D),{fill:ri(A,"rgba")}));var k=this._createItem(S,g,f,d,i,t,{},D,T,h,r);k.on("click",Ea(BT,null,g,r,p)).on("mouseover",Ea(tm,null,g,r,p)).on("mouseout",Ea(em,null,g,r,p)),c.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),a&&this._createSelector(a,i,r,s,l)},e.prototype._createSelector=function(t,i,o,r,a){var s=this.getSelectorGroup();Qy(t,function(l){var u=l.type,c=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var h=i.getModel("selectorLabel"),p=i.getModel(["emphasis","selectorLabel"]);de(c,{normal:h,emphasis:p},{defaultText:l.title}),Ro(c)})},e.prototype._createItem=function(t,i,o,r,a,s,l,u,c,h,p){var d=t.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=r.get("symbolRotate"),m=r.get("symbolKeepAspect"),x=r.get("icon");c=x||c||"roundRect";var _=_X(c,r,l,u,d,v,p),w=new Gh,b=r.getModel("textStyle");if($(t.getLegendIcon)&&(!x||x==="inherit"))w.add(t.getLegendIcon({itemWidth:f,itemHeight:g,icon:c,iconRotate:y,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));else{var S=x==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(bX({itemWidth:f,itemHeight:g,icon:c,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}var M=s==="left"?f+5:-5,I=s,D=a.get("formatter"),T=i;U(D)&&D?T=D.replace("{name}",i??""):$(D)&&(T=D(i));var A=v?b.getTextColor():r.get("inactiveColor");w.add(new Dt({style:Ot(b,{text:T,x:M,y:g/2,fill:A,align:I,verticalAlign:"middle"},{inheritColor:A})}));var k=new It({shape:w.getBoundingRect(),invisible:!0}),L=r.getModel("tooltip");return L.get("show")&&jr({el:k,componentModel:a,itemName:i,itemTooltipOption:L.option}),w.add(k),w.eachChild(function(N){N.silent=!0}),k.silent=!h,this.getContentGroup().add(w),Ro(w),w.__legendDataIndex=o,w},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Xo(t.get("orient"),l,t.get("itemGap"),o.width,o.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Xo("horizontal",u,t.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=t.get("selectorButtonGap",!0),g=t.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=c[v]+f:h[g]+=p[v]+f,d[1-g]+=c[y]/2-p[y]/2,u.x=d[0],u.y=d[1],l.x=h[0],l.y=h[1];var x={x:0,y:0};return x[v]=c[v]+f+p[v],x[y]=Math.max(c[y],p[y]),x[m]=Math.min(0,p[m]+d[1-g]),x}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Yt);function _X(n,e,t,i,o,r,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),Qy(v,function(m,x){v[x]==="inherit"&&(v[x]=y[x])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=n.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:pa(h,a),u.fill==="inherit"&&(u.fill=i[o]),u.stroke==="inherit"&&(u.stroke=i[c]),u.opacity==="inherit"&&(u.opacity=(o==="fill"?i:t).opacity),s(u,i);var p=e.getModel("lineStyle"),d=p.getLineStyle();if(s(d,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),d.stroke==="auto"&&(d.stroke=i.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=f==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),d.stroke=p.get("inactiveColor"),d.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:d}}function bX(n){var e=n.icon||"roundRect",t=ee(e,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill,n.symbolKeepAspect);return t.setStyle(n.itemStyle),t.rotation=(n.iconRotate||0)*Math.PI/180,t.setOrigin([n.itemWidth/2,n.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill="#fff",t.style.lineWidth=2),t}function BT(n,e,t,i){em(n,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:n??e}),tm(n,e,t,i)}function GT(n){for(var e=n.getZr().storage.getDisplayList(),t,i=0,o=e.length;i<o&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function tm(n,e,t,i){GT(t)||t.dispatchAction({type:"highlight",seriesName:n,name:e,excludeSeriesId:i})}function em(n,e,t,i){GT(t)||t.dispatchAction({type:"downplay",seriesName:n,name:e,excludeSeriesId:i})}const FT=xX;function wX(n){var e=n.findComponents({mainType:"legend"});e&&e.length&&n.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Ll(n,e,t){var i={},o=n==="toggleSelected",r;return t.eachComponent("legend",function(a){o&&r!=null?a[r?"select":"unSelect"](e.name):n==="allSelect"||n==="inverseSelect"?a[n]():(a[n](e.name),r=a.isSelected(e.name));var s=a.getData();C(s,function(l){var u=l.get("name");if(!(u===`
|
|
79
|
+
`||u==="")){var c=a.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&c:i[u]=c}})}),n==="allSelect"||n==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function SX(n){n.registerAction("legendToggleSelect","legendselectchanged",at(Ll,"toggleSelected")),n.registerAction("legendAllSelect","legendselectall",at(Ll,"allSelect")),n.registerAction("legendInverseSelect","legendinverseselect",at(Ll,"inverseSelect")),n.registerAction("legendSelect","legendselected",at(Ll,"select")),n.registerAction("legendUnSelect","legendunselected",at(Ll,"unSelect"))}function HT(n){n.registerComponentModel(Jy),n.registerComponentView(FT),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,wX),n.registerSubTypeDefaulter("legend",function(){return"plain"}),SX(n)}var MX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,o){var r=ta(t);n.prototype.init.call(this,t,i,o),WT(this,t,r)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),WT(this,this.option,t)},e.type="legend.scroll",e.defaultOption=Hi(Jy.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Jy);function WT(n,e,t){var i=n.getOrient(),o=[1,1];o[i.index]=0,Ui(e,t,{type:"box",ignoreSize:!!o})}const IX=MX;var UT=ot,nm=["width","height"],im=["x","y"],CX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new UT),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new UT)},e.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,o,r,a,s,l){var u=this;n.prototype.renderInner.call(this,t,i,o,r,a,s,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),p=B(h)?h:[h,h];f("pagePrev",0);var d=i.getModel("pageTextStyle");c.add(new Dt({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1);function f(g,v){var y=g+"DataIndex",m=xs(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:X(u._pageGo,u,y,i,r)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});m.name=g,c.add(m)}},e.prototype.layoutInner=function(t,i,o,r,a,s){var l=this.getSelectorGroup(),u=t.getOrient().index,c=nm[u],h=im[u],p=nm[1-u],d=im[1-u];a&&Xo("horizontal",l,t.get("selectorItemGap",!0));var f=t.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=it(o);a&&(y[c]=o[c]-g[c]-f);var m=this._layoutContentAndController(t,r,y,u,c,p,d,h);if(a){if(s==="end")v[u]+=m[c]+f;else{var x=g[c]+f;v[u]-=x,m[h]-=x}m[c]+=g[c]+f,v[1-u]+=m[d]+m[p]/2-g[p]/2,m[p]=Math.max(m[p],g[p]),m[d]=Math.min(m[d],g[d]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,i,o,r,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;Xo(t.get("orient"),c,t.get("itemGap"),r?o.width:null,r?null:o.height),Xo("horizontal",p,t.get("pageButtonItemGap",!0));var d=c.getBoundingRect(),f=p.getBoundingRect(),g=this._showController=d[a]>o[a],v=[-d.x,-d.y];i||(v[r]=c[u]);var y=[0,0],m=[-f.x,-f.y],x=ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(g){var _=t.get("pageButtonPosition",!0);_==="end"?m[r]+=o[a]-f[a]:y[r]+=f[a]+x}m[1-r]+=d[s]/2-f[s]/2,c.setPosition(v),h.setPosition(y),p.setPosition(m);var w={x:0,y:0};if(w[a]=g?o[a]:d[a],w[s]=Math.max(d[s],f[s]),w[l]=Math.min(0,f[l]+m[1-r]),h.__rectSize=o[a],g){var b={x:0,y:0};b[a]=Math.max(o[a]-f[a]-x,0),b[s]=w[s],h.setClipPath(new It({shape:b})),h.__rectSize=b[a]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(t);return S.pageIndex!=null&&Tt(c,{x:S.contentPosition[0],y:S.contentPosition[1]},g?t:null),this._updatePageInfoView(t,S),w},e.prototype._pageGo=function(t,i,o){var r=this._getPageInfo(i)[t];r!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var o=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=i[h]!=null,d=o.childOfName(c);d&&(d.setStyle("fill",p?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),d.cursor=p?"pointer":"default")});var r=o.childOfName("pageText"),a=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;r&&a&&r.setStyle("text",U(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),o=this.getContentGroup(),r=this._containerGroup.__rectSize,a=t.getOrient().index,s=nm[a],l=im[a],u=this._findTargetItemIndex(i),c=o.children(),h=c[u],p=c.length,d=p?1:0,f={contentPosition:[o.x,o.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return f;var g=_(h);f.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,x=null;v<=p;++v)x=_(c[v]),(!x&&m.e>y.s+r||x&&!w(x,y.s))&&(m.i>y.i?y=m:y=x,y&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=y.i),++f.pageCount)),m=x;for(var v=u-1,y=g,m=g,x=null;v>=-1;--v)x=_(c[v]),(!x||!w(m,x.s))&&y.i<m.i&&(m=y,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=y.i),++f.pageCount,++f.pageIndex),y=x;return f;function _(b){if(b){var S=b.getBoundingRect(),M=S[l]+b[l];return{s:M,e:M+S[s],i:b.__legendDataIndex}}}function w(b,S){return b.e>=S&&b.s<=S+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,o=this.getContentGroup(),r;return o.eachChild(function(a,s){var l=a.__legendDataIndex;r==null&&l!=null&&(r=s),l===t&&(i=s)}),i??r},e.type="legend.scroll",e}(FT);const DX=CX;function TX(n){n.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(i)})})}function AX(n){yt(HT),n.registerComponentModel(IX),n.registerComponentView(DX),TX(n)}function kX(n){yt(HT),yt(AX)}var LX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=Hi(Cl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Cl);const NX=LX;var om=Mt();function EX(n,e,t){om(n).coordSysRecordMap.each(function(i){var o=i.dataZoomInfoMap.get(e.uid);o&&(o.getRange=t)})}function OX(n,e){for(var t=om(n).coordSysRecordMap,i=t.keys(),o=0;o<i.length;o++){var r=i[o],a=t.get(r),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||YT(t,a))}}}function YT(n,e){if(e){n.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function PX(n,e){var t={model:e,containsPoint:at(RX,e),dispatchAction:at(VX,n),dataZoomInfoMap:null,controller:null},i=t.controller=new ul(n.getZr());return C(["pan","zoom","scrollMove"],function(o){i.on(o,function(r){var a=[];t.dataZoomInfoMap.each(function(s){if(r.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[o],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,r);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&t.dispatchAction(a)})}),t}function VX(n,e){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function RX(n,e,t,i){return n.coordinateSystem.containPoint([t,i])}function zX(n){var e,t="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return n.each(function(r){var a=r.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;i[t+s]>i[t+e]&&(e=s),o=o&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o}}}function BX(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(e,t){var i=om(t),o=i.coordSysRecordMap||(i.coordSysRecordMap=j());o.each(function(r){r.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){var a=FD(r);C(a.infoList,function(s){var l=s.model.uid,u=o.get(l)||o.set(l,PX(t,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=j());c.set(r.uid,{dzReferCoordSysInfo:s,model:r,getRange:null})})}),o.each(function(r){var a=r.controller,s,l=r.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){YT(o,r);return}var c=zX(l);a.enable(c.controlType,c.opt),a.setPointerChecker(r.containsPoint),la(r,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var GX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,o){if(n.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),EX(o,t,{pan:X(rm.pan,this),zoom:X(rm.zoom,this),scrollMove:X(rm.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){OX(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Ly),rm={zoom:function(n,e,t,i){var o=this.range,r=o.slice(),a=n.axisModels[0];if(a){var s=am[e](null,[i.originX,i.originY],a,t,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/i.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(mr(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1])return r}},pan:XT(function(n,e,t,i,o,r){var a=am[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,t);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:XT(function(n,e,t,i,o,r){var a=am[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,t);return a.signal*(n[1]-n[0])*r.scrollDelta})};function XT(n){return function(e,t,i,o){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s){var l=n(a,s,e,t,i,o);if(mr(l,a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1])return a}}}var am={grid:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem.getRect();return n=n||[0,0],r.dim==="x"?(a.pixel=e[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(n,e,t,i,o){var r=t.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(a.pixel=e[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(n,e,t,i,o){var r=t.axis,a=o.model.coordinateSystem.getRect(),s={};return n=n||[0,0],r.orient==="horizontal"?(s.pixel=e[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const FX=GX;function ZT(n){Ny(n),n.registerComponentModel(NX),n.registerComponentView(FX),BX(n)}var HX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Hi(Cl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(Cl);const WX=HX;var Nl=It,jT=7,UX=1,sm=30,YX=7,El="horizontal",qT="vertical",XX=5,ZX=["line","bar","candlestick","scatter"],jX={easing:"cubicOut",duration:100,delay:0},qX=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},e.prototype.render=function(t,i,o,r){if(n.prototype.render.apply(this,arguments),la(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!r||r.type!=="dataZoom"||r.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Os(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new ot;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,o=t.get("brushSelect"),r=o?YX:0,a=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===El?{right:s.width-a.x-a.width,top:s.height-sm-jT-r,width:a.width,height:sm}:{right:jT,top:a.y,width:sm,height:a.height},u=ta(t.option);C(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var c=ie(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===qT&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,o=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),a=r&&r.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(o===El&&!a?{scaleY:l?1:-1,scaleX:1}:o===El&&a?{scaleY:l?1:-1,scaleX:-1}:o===qT&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]);t.x=i.x-u.x,t.y=i.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,o=this._displayables.sliderGroup,r=t.get("brushSelect");o.add(new Nl({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var a=new Nl({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),s=this.api.getZr();r?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),o.add(a)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,o=this._shadowSize||[],r=t.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),l=s&&a.getDimensionInfo(s)?r.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==o[0]||i[1]!==o[1]){var h=a.getDataExtent(l),p=(h[1]-h[0])*.3;h=[h[0]-p,h[1]+p];var d=[0,i[1]],f=[0,i[0]],g=[[i[0],0],[0,0]],v=[],y=f[1]/(a.count()-1),m=0,x=Math.round(a.count()/i[0]),_;a.each([l],function(I,D){if(x>0&&D%x){m+=y;return}var T=I==null||isNaN(I)||I==="",A=T?0:kt(I,h,d,!0);T&&!_&&D?(g.push([g[g.length-1][0],0]),v.push([v[v.length-1][0],0])):!T&&_&&(g.push([m,0]),v.push([m,0])),g.push([m,A]),v.push([m,A]),m+=y,_=T}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var w=this.dataZoomModel;function b(I){var D=w.getModel(I?"selectedDataBackground":"dataBackground"),T=new ot,A=new Re({shape:{points:u},segmentIgnoreThreshold:1,style:D.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new ze({shape:{points:c},segmentIgnoreThreshold:1,style:D.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return T.add(A),T.add(k),T}for(var S=0;S<3;S++){var M=b(S===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var o,r=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a,s).getTargetSeriesModels();C(l,function(u){if(!o&&!(i!==!0&&dt(ZX,u.get("type"))<0)){var c=r.getComponent(ro(a),s).axis,h=$X(a),p,d=u.coordinateSystem;h!=null&&d.getOtherAxis&&(p=d.getOtherAxis(c).inverse),h=u.getData().mapDimension(h),o={thisAxis:c,series:u,thisDim:a,otherDim:h,otherAxisInverse:p}}},this)},this),o}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,o=i.handles=[null,null],r=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,h=l.get("brushSelect"),p=i.filler=new Nl({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new Nl({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:UX,fill:"rgba(0,0,0,0)"}})),C([0,1],function(x){var _=l.get("handleIcon");!gc[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_,process.env.NODE_ENV!=="production"&&bn("handleIcon now needs 'path://' prefix when using a path string"));var w=ee(_,-1,0,2,2,null,!0);w.attr({cursor:$T(this._orient),draggable:!0,drift:X(this._onDragMove,this,x),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1),z2:5});var b=w.getBoundingRect(),S=l.get("handleSize");this._handleHeight=H(S,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ro(w);var M=l.get("handleColor");M!=null&&(w.style.fill=M),a.add(o[x]=w);var I=l.getModel("textStyle");t.add(r[x]=new Dt({silent:!0,invisible:!0,style:Ot(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var d=p;if(h){var f=H(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new It({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),v=f*.8,y=i.moveHandleIcon=ee(l.get("moveHandleIcon"),-v/2,-v/2,v,v,"#fff",!0);y.silent=!0,y.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));d=i.moveZone=new It({invisible:!0,shape:{y:s[1]-m,height:f+m}}),d.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(d)}d.attr({draggable:!0,cursor:$T(this._orient),drift:X(this._onDragMove,this,"all"),ondragstart:X(this._showDataInfo,this,!0),ondragend:X(this._onDragEnd,this),onmouseover:X(this._showDataInfo,this,!0),onmouseout:X(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[kt(t[0],[0,100],i,!0),kt(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var o=this.dataZoomModel,r=this._handleEnds,a=this._getViewExtent(),s=o.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];mr(i,r,a,o.get("zoomLock")?"all":t,s.minSpan!=null?kt(s.minSpan,l,a,!0):null,s.maxSpan!=null?kt(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=Qe([kt(r[0],a,l,!0),kt(r[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,r=Qe(o.slice()),a=this._size;C([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:o[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:a[1]});var s={x:r[0],width:r[1]-r[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,r[0],r[1],a[0]],c=0;c<l.length;c++){var h=l[c],p=h.getClipPath();p||(p=new It,h.setClipPath(p)),p.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var p=Qe(this._handleEnds.slice());d.call(this,0),d.call(this,1);function d(f){var g=Ho(o.handles[f].parent,this.group),v=Uu(f===0?"right":"left",g),y=this._handleWidth/2+XX,m=Cn([p[f]+(f===0?-y:y),this._size[1]/2],g);r[f].setStyle({x:m[0],y:m[1],verticalAlign:a===El?"middle":v,align:a===El?v:"center",text:s[f]})}},e.prototype._formatLabel=function(t,i){var o=this.dataZoomModel,r=o.get("labelFormatter"),a=o.get("labelPrecision");(a==null||a==="auto")&&(a=i.getPixelPrecision());var s=t==null||isNaN(t)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(a,20));return $(r)?r(t,s):U(r)?r.replace("{value}",s):s},e.prototype._showDataInfo=function(t){t=this._dragging||t;var i=this._displayables,o=i.handleLabels;o[0].attr("invisible",!t),o[1].attr("invisible",!t),i.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},e.prototype._onDragMove=function(t,i,o,r){this._dragging=!0,ii(r.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=Cn([i,o],a,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,o=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(o[0]<0||o[0]>i[0]||o[1]<0||o[1]>i[1])){var r=this._handleEnds,a=(r[0]+r[1])/2,s=this._updateInterval("all",o[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,o=t.offsetY;this._brushStart=new ct(i,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var o=i.shape,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(o.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=Qe([kt(o.x,a,s,!0),kt(o.x+o.width,a,s,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(ii(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var o=this._displayables,r=this.dataZoomModel,a=o.brushRect;a||(a=o.brushRect=new Nl({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),c=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?jX:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=FD(this.dataZoomModel).infoList;if(!t&&i.length){var o=i[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var r=this.api.getWidth(),a=this.api.getHeight();t={x:r*.2,y:a*.2,width:r*.6,height:a*.6}}return t},e.type="dataZoom.slider",e}(Ly);function $X(n){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[n]}function $T(n){return n==="vertical"?"ns-resize":"ew-resize"}const KX=qX;function KT(n){n.registerComponentModel(WX),n.registerComponentView(KX),Ny(n)}function JX(n){yt(ZT),yt(KT)}var QX={get:function(n,e,t){var i=it((tZ[n]||{})[e]);return t&&B(i)?i[i.length-1]:i}},tZ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const JT=QX;var QT=ge.mapVisual,eZ=ge.eachVisual,nZ=B,tA=C,iZ=Qe,oZ=kt,rZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,i){var o=this.option;!i&&yT(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=X(t,this),this.controllerVisuals=Fy(this.option.controller,i,t),this.targetVisuals=Fy(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,i=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,r){i.push(r)}):i=Nt(t),i},e.prototype.eachTargetSeries=function(t,i){C(this.getTargetSeriesIndices(),function(o){var r=this.ecModel.getSeriesByIndex(o);r&&t.call(i,r)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(o){o===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,o){var r=this.option,a=r.precision,s=this.dataBound,l=r.formatter,u;o=o||["<",">"],B(t)&&(t=t.slice(),u=!0);var c=i?t:u?[h(t[0]),h(t[1])]:h(t);if(U(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if($(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?o[0]+" "+c[1]:t[1]===s[1]?o[1]+" "+c[0]:c[0]+" - "+c[1];return c;function h(p){return p===s[0]?"min":p===s[1]?"max":(+p).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,i=iZ([t.min,t.max]);this._dataExtent=i},e.prototype.getDataDimensionIndex=function(t){var i=this.option.dimension;if(i!=null)return t.getDimensionIndex(i);for(var o=t.dimensions,r=o.length-1;r>=0;r--){var a=o[r],s=t.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},r=i.target||(i.target={}),a=i.controller||(i.controller={});ht(r,o),ht(a,o);var s=this.isCategory();l.call(this,r),l.call(this,a),u.call(this,r,"inRange","outOfRange"),c.call(this,a);function l(h){nZ(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,p,d){var f=h[p],g=h[d];f&&!g&&(g=h[d]={},tA(f,function(v,y){if(ge.isValidType(y)){var m=JT.get(y,"inactive",s);m!=null&&(g[y]=m,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(h){var p=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,d=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,f=this.get("inactiveColor"),g=this.getItemSymbol(),v=g||"roundRect";tA(this.stateList,function(y){var m=this.itemSize,x=h[y];x||(x=h[y]={color:s?f:[f]}),x.symbol==null&&(x.symbol=p&&it(p)||(s?v:[v])),x.symbolSize==null&&(x.symbolSize=d&&it(d)||(s?m[0]:[m[0],m[0]])),x.symbol=QT(x.symbol,function(b){return b==="none"?v:b});var _=x.symbolSize;if(_!=null){var w=-1/0;eZ(_,function(b){b>w&&(w=b)}),x.symbolSize=QT(_,function(b){return oZ(b,[0,w],[0,m[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(bt);const Fh=rZ;var eA=[20,140],aZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(o){o.mappingMethod="linear",o.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=eA[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=eA[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):B(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){n.prototype.completeVisualOption.apply(this,arguments),C(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=Qe((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,o=this.getExtent();return(i[0]<=o[0]||i[0]<=t)&&(i[1]>=o[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(o){var r=[],a=o.getData();a.each(this.getDataDimensionIndex(a),function(s,l){t[0]<=s&&s<=t[1]&&r.push(l)},this),i.push({seriesId:o.id,dataIndex:r})},this),i},e.prototype.getVisualMeta=function(t){var i=nA(this,"outOfRange",this.getExtent()),o=nA(this,"inRange",this.option.range.slice()),r=[];function a(d,f){r.push({value:d,color:t(d,f)})}for(var s=0,l=0,u=o.length,c=i.length;l<c&&(!o.length||i[l]<=o[0]);l++)i[l]<o[s]&&a(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&r.length&&a(o[s],"outOfRange"),a(o[s],"inRange");for(var h=1;l<c;l++)(!o.length||o[o.length-1]<i[l])&&(h&&(r.length&&a(r[r.length-1].value,"outOfRange"),h=0),a(i[l],"outOfRange"));var p=r.length;return{stops:r,outerColors:[p?r[0].color:"transparent",p?r[p-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Hi(Fh.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(Fh);function nA(n,e,t){if(t[0]===t[1])return t.slice();for(var i=200,o=(t[1]-t[0])/i,r=t[0],a=[],s=0;s<=i&&r<t[1];s++)a.push(r),r+=o;return a.push(t[1]),a}const sZ=aZ;var lZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,o,r){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,o,r)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,o=Qr(i.get("padding")||0),r=t.getBoundingRect();t.add(new It({z2:-1,silent:!0,shape:{x:r.x-o[3],y:r.y-o[0],width:r.width+o[3]+o[1],height:r.height+o[0]+o[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,o){o=o||{};var r=o.forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(d){return s[d]}function c(d,f){s[d]=f}var h=a.controllerVisuals[r||a.getValueState(t)],p=ge.prepareVisualTypes(h);return C(p,function(d){var f=h[d];o.convertOpacityToAlpha&&d==="opacity"&&(d="colorAlpha",f=h.__alphaForOpacity),ge.dependsOn(d,i)&&f&&f.applyVisual(t,u,c)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,o=this.api;ic(t,i.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})},e.prototype.doRender=function(t,i,o,r){},e.type="visualMap",e}(Yt);const iA=lZ;var oA=[["left","right","width"],["top","bottom","height"]];function rA(n,e,t){var i=n.option,o=i.align;if(o!=null&&o!=="auto")return o;for(var r={width:e.getWidth(),height:e.getHeight()},a=i.orient==="horizontal"?1:0,s=oA[a],l=[0,null,10],u={},c=0;c<3;c++)u[oA[1-a][c]]=l[c],u[s[c]]=c===2?t[0]:i[s[c]];var h=[["x","width",3],["y","height",0]][a],p=ie(u,r,i.padding);return s[(p.margin[h[2]]||0)+p[h[0]]+p[h[1]]*.5<r[h[1]]*.5?0:1]}function Hh(n,e){return C(n||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),n}var Qn=kt,uZ=C,aA=Math.min,lm=Math.max,cZ=12,hZ=6,pZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.doRender=function(t,i,o,r){this._api=o,(!r||r.type!=="selectDataRange"||r.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var o=t.get("text");this._renderEndsText(i,o,0),this._renderEndsText(i,o,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,o){if(i){var r=i[1-o];r=r!=null?r+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,o===0?-s:l[1]+s],u),h=this._applyTransform(o===0?"bottom":"top",u),p=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Dt({style:Ot(d,{x:c[0],y:c[1],verticalAlign:p==="horizontal"?"middle":h,align:p==="horizontal"?h:"center",text:r})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,o=this._shapes,r=i.itemSize,a=this._orient,s=this._useHandle,l=rA(i,this.api,r),u=o.mainGroup=this._createBarGroup(l),c=new ot;u.add(c),c.add(o.outOfRange=sA()),c.add(o.inRange=sA(null,s?uA(this._orient):null,X(this._dragHandle,this,"all",!1),X(this._dragHandle,this,"all",!0))),c.setClipPath(new It({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var h=i.textStyleModel.getTextRect("\u56FD"),p=lm(h.width,h.height);s&&(o.handleThumbs=[],o.handleLabels=[],o.handleLabelPoints=[],this._createHandle(i,u,0,r,p,a),this._createHandle(i,u,1,r,p,a)),this._createIndicator(i,u,r,p,a),t.add(u)},e.prototype._createHandle=function(t,i,o,r,a,s){var l=X(this._dragHandle,this,o,!1),u=X(this._dragHandle,this,o,!0),c=_n(t.get("handleSize"),r[0]),h=ee(t.get("handleIcon"),-c/2,-c/2,c,c,null,!0),p=uA(this._orient);h.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ii(y.event)}}),h.x=r[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),zo(h,!0),i.add(h);var d=this.visualMapModel.textStyleModel,f=new Dt({cursor:p,draggable:!0,drift:l,onmousemove:function(y){ii(y.event)},ondragend:u,style:Ot(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[c,0],v=this._shapes;v.handleThumbs[o]=h,v.handleLabelPoints[o]=g,v.handleLabels[o]=f},e.prototype._createIndicator=function(t,i,o,r,a){var s=_n(t.get("indicatorSize"),o[0]),l=ee(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:o[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof he){var c=l.style;l.useStyle(R({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,p=new Dt({silent:!0,invisible:!0,style:Ot(h,{x:0,y:0,text:""})});this.group.add(p);var d=[(a==="horizontal"?r/2:hZ)+o[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=p,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,o,r){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([o,r],this._shapes.mainGroup,!0);this._updateInterval(t,a[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():lA(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),o=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[Qn(i[0],o,r,!0),Qn(i[1],o,r,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var o=this.visualMapModel,r=this._handleEnds,a=[0,o.itemSize[1]];mr(i,r,a,t,0);var s=o.getExtent();this._dataInterval=[Qn(r[0],a,s,!0),Qn(r[1],a,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,o=i.getExtent(),r=this._shapes,a=[0,i.itemSize[1]],s=t?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,o,s,"inRange"),u=this._createBarVisual(o,o,a,"outOfRange");r.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),r.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,o,r){var a={forceState:r,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,a),l=[this.getControllerVisual(t[0],"symbolSize",a),this.getControllerVisual(t[1],"symbolSize",a)],u=this._createBarPoints(o,l);return{barColor:new vs(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var o=100,r=[],a=(t[1]-t[0])/o;r.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<o;s++){var l=t[0]+a*s;if(l>t[1])break;r.push({color:this.getControllerVisual(l,"color",i),offset:s/o})}return r.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),r},e.prototype._createBarPoints=function(t,i){var o=this.visualMapModel.itemSize;return[[o[0]-i[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,o=this.visualMapModel.get("inverse");return new ot(i==="horizontal"&&!o?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&o?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!o?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var o=this._shapes,r=this.visualMapModel,a=o.handleThumbs,s=o.handleLabels,l=r.itemSize,u=r.getExtent();uZ([0,1],function(c){var h=a[c];h.setStyle("fill",i.handlesColor[c]),h.y=t[c];var p=Qn(t[c],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var f=Cn(o.handleLabelPoints[c],Ho(h,this.group));s[c].setStyle({x:f[0],y:f[1],text:r.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",o.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,o,r){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,h=c.indicator;if(h){h.attr("invisible",!1);var p={convertOpacityToAlpha:!0},d=this.getControllerVisual(t,"color",p),f=this.getControllerVisual(t,"symbolSize"),g=Qn(t,s,u,!0),v=l[0]-f/2,y={x:h.x,y:h.y};h.y=g,h.x=v;var m=Cn(c.indicatorLabelPoint,Ho(h,this.group)),x=c.indicatorLabel;x.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),w=this._orient,b=w==="horizontal";x.setStyle({text:(o||"")+a.formatValueText(i),verticalAlign:b?_:"middle",align:b?"center":_});var S={x:v,y:g,style:{fill:d}},M={style:{x:m[0],y:m[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(S,I),x.animateTo(M,I)}else h.attr(S),x.attr(M);this._firstShowIndicator=!1;var D=this._shapes.handleLabels;if(D)for(var T=0;T<D.length;T++)this._api.enterBlur(D[T])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var o=t.visualMapModel.itemSize,r=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);r[1]=aA(lm(0,r[1]),o[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=o[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var o=this.visualMapModel,r=o.itemSize;if(o.option.hoverLink){var a=[0,r[1]],s=o.getExtent();t=aA(lm(a[0],t),a[1]);var l=dZ(o,s,a),u=[t-l,t+l],c=Qn(t,a,s,!0),h=[Qn(u[0],a,s,!0),Qn(u[1],a,s,!0)];u[0]<a[0]&&(h[0]=-1/0),u[1]>a[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||lA(o))&&(d=this._hoverLinkDataIndices=o.findTargetDataIndices(h));var f=eN(p,d);this._dispatchHighDown("downplay",Hh(f[0],o)),this._dispatchHighDown("highlight",Hh(f[1],o))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if($o(t.target,function(l){var u=rt(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var o=this.ecModel.getSeriesByIndex(i.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(o)){var a=o.getData(i.dataType),s=a.getStore().get(r.getDataDimensionIndex(a),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var o=0;o<i.length;o++)this._api.leaveBlur(i[o])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Hh(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,o,r){var a=Ho(i,r?null:this.group);return B(t)?Cn(t,a,o):Uu(t,a,o)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(iA);function sA(n,e,t,i){return new Re({shape:{points:n},draggable:!!t,cursor:e,drift:t,onmousemove:function(o){ii(o.event)},ondragend:i})}function dZ(n,e,t){var i=cZ/2,o=n.get("hoverLinkDataSize");return o&&(i=Qn(o,e,t,!0)/2),i}function lA(n){var e=n.get("hoverLinkOnHandle");return!!(e??n.get("realtime"))}function uA(n){return n==="vertical"?"ns-resize":"ew-resize"}const fZ=pZ;var gZ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},vZ=function(n,e){e.eachComponent({mainType:"visualMap",query:n},function(t){t.setSelected(n.selected)})},yZ=[{createOnAllSeries:!0,reset:function(n,e){var t=[];return e.eachComponent("visualMap",function(i){var o=n.pipelineContext;!i.isTargetSeries(n)||o&&o.large||t.push(hY(i.stateList,i.targetVisuals,X(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),t}},{createOnAllSeries:!0,reset:function(n,e){var t=n.getData(),i=[];e.eachComponent("visualMap",function(o){if(o.isTargetSeries(n)){var r=o.getVisualMeta(X(mZ,null,n,o))||{stops:[],outerColors:[]},a=o.getDataDimensionIndex(t);a>=0&&(r.dimension=a,i.push(r))}}),n.getData().setVisual("visualMeta",i)}}];function mZ(n,e,t,i){for(var o=e.targetVisuals[i],r=ge.prepareVisualTypes(o),a={color:Rs(n.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],c=o[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(t,h,p)}return a.color;function h(d){return a[d]}function p(d,f){a[d]=f}}var cA=C;function xZ(n){var e=n&&n.visualMap;B(e)||(e=e?[e]:[]),cA(e,function(t){if(t){Oa(t,"splitList")&&!Oa(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;i&&B(i)&&cA(i,function(o){K(o)&&(Oa(o,"start")&&!Oa(o,"min")&&(o.min=o.start),Oa(o,"end")&&!Oa(o,"max")&&(o.max=o.end))})}})}function Oa(n,e){return n&&n.hasOwnProperty&&n.hasOwnProperty(e)}var hA=!1;function pA(n){hA||(hA=!0,n.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),n.registerAction(gZ,vZ),C(yZ,function(e){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,e)}),n.registerPreprocessor(xZ))}function dA(n){n.registerComponentModel(sZ),n.registerComponentView(fZ),pA(n)}var _Z=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var o=this._mode=this._determineMode();this._pieceList=[],bZ[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var r=this.option.categories;this.resetVisual(function(a,s){o==="categories"?(a.mappingMethod="category",a.categories=it(r)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=G(this._pieceList,function(l){return l=it(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},o=ge.listVisualTypes(),r=this.isCategory();C(t.pieces,function(s){C(o,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),C(i,function(s,l){var u=!1;C(this.stateList,function(c){u=u||a(t,c,l)||a(t.target,c,l)},this),!u&&C(this.stateList,function(c){(t[c]||(t[c]={}))[l]=JT.get(l,c==="inRange"?"active":"inactive",r)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}n.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var o=this.option,r=this._pieceList,a=(i?o:t).selected||{};if(o.selected=a,C(r,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),o.selectedMode==="single"){var s=!1;C(r,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=it(t)},e.prototype.getValueState=function(t){var i=ge.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],o=this._pieceList;return this.eachTargetSeries(function(r){var a=[],s=r.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=ge.findPieceIndex(l,o);c===t&&a.push(u)},this),i.push({seriesId:r.id,dataIndex:a})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var o=t.interval||[];i=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],o=["",""],r=this;function a(c,h){var p=r.getRepresentValue({interval:c});h||(h=r.getValueState(p));var d=t(p,h);c[0]===-1/0?o[0]=d:c[1]===1/0?o[1]=d:i.push({value:c[0],color:d},{value:c[1],color:d})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return C(s,function(c){var h=c.interval;h&&(h[0]>u&&a([u,h[0]],"outOfRange"),a(h.slice()),u=h[1])},this),{stops:i,outerColors:o}},e.type="visualMap.piecewise",e.defaultOption=Hi(Fh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(Fh),bZ={splitNumber:function(n){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber;o=Math.max(parseInt(o,10),1),e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(t)!==r&&t<5;)t++;e.precision=t,r=+r.toFixed(t),e.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;n.push({interval:[s,l],close:[1,1]})}e.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),G0(n),C(n,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var e=this.option;C(e.categories,function(t){n.push({text:this.formatValueText(t,!0),value:t})},this),fA(e,n)},pieces:function(n){var e=this.option;C(e.pieces,function(t,i){K(t)||(t={value:t});var o={text:"",index:i};if(t.label!=null&&(o.text=t.label),t.hasOwnProperty("value")){var r=o.value=t.value;o.interval=[r,r],o.close=[1,1]}else{for(var a=o.interval=[],s=o.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],h=0;h<2;h++){for(var p=[["gte","gt","min"],["lte","lt","max"]][h],d=0;d<3&&a[h]==null;d++)a[h]=t[p[d]],s[h]=l[d],c[h]=d===2;a[h]==null&&(a[h]=u[h])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&a[0]>a[1]&&console.warn("Piece "+i+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(o.value=a[0])}o.visual=ge.retrieveVisuals(t),n.push(o)},this),fA(e,n),G0(n),C(n,function(t){var i=t.close,o=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,o)},this)}};function fA(n,e){var t=n.inverse;(n.orient==="vertical"?!t:t)&&e.reverse()}const wZ=_Z;var SZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,o=i.get("textGap"),r=i.textStyleModel,a=r.getFont(),s=r.getTextColor(),l=this._getItemAlign(),u=i.itemSize,c=this._getViewData(),h=c.endsText,p=Kt(i.get("showLabel",!0),!h);h&&this._renderEndsText(t,h[0],u,p,l),C(c.viewPieceList,function(d){var f=d.piece,g=new ot;g.onclick=X(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var v=i.getRepresentValue(f);if(this._createItemSymbol(g,v,[0,0,u[0],u[1]]),p){var y=this.visualMapModel.getValueState(v);g.add(new Dt({style:{x:l==="right"?-o:u[0]+o,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,p,l),Xo(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var o=this;t.on("mouseover",function(){return r("highlight")}).on("mouseout",function(){return r("downplay")});var r=function(a){var s=o.visualMapModel;s.option.hoverLink&&o.api.dispatchAction({type:a,batch:Hh(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return rA(t,this.api,t.itemSize);var o=i.align;return(!o||o==="auto")&&(o="left"),o},e.prototype._renderEndsText=function(t,i,o,r,a){if(i){var s=new ot,l=this.visualMapModel.textStyleModel;s.add(new Dt({style:Ot(l,{x:r?a==="right"?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:r?a:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=G(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),o=t.get("text"),r=t.get("orient"),a=t.get("inverse");return(r==="horizontal"?a:!a)?i.reverse():o&&(o=o.slice().reverse()),{viewPieceList:i,endsText:o}},e.prototype._createItemSymbol=function(t,i,o){t.add(ee(this.getControllerVisual(i,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(i,"color")))},e.prototype._onItemClick=function(t){var i=this.visualMapModel,o=i.option,r=o.selectedMode;if(r){var a=it(o.selected),s=i.getSelectedMapKey(t);r==="single"||r===!0?(a[s]=!0,C(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(iA);const MZ=SZ;function gA(n){n.registerComponentModel(wZ),n.registerComponentView(MZ),pA(n)}function IZ(n){yt(dA),yt(gA)}var CZ={label:{enabled:!0},decal:{show:!1}},vA=Mt(),DZ={};function TZ(n,e){var t=n.getModel("aria");if(!t.get("enabled"))return;var i=it(CZ);ht(i.label,n.getLocaleModel().get("aria"),!1),ht(t.option,i,!1),o(),r();function o(){var u=t.getModel("decal"),c=u.get("show");if(c){var h=j();n.eachSeries(function(p){if(!p.isColorBySeries()){var d=h.get(p.type);d||(d={},h.set(p.type,d)),vA(p).scope=d}}),n.eachRawSeries(function(p){if(n.isSeriesFiltered(p))return;if($(p.enableAriaDecal)){p.enableAriaDecal();return}var d=p.getData();if(p.isColorBySeries()){var f=uf(p.ecModel,p.name,DZ,n.getSeriesCount()),g=d.getVisual("decal");d.setVisual("decal",_(g,f))}else{var v=p.getRawData(),y={},m=vA(p).scope;d.each(function(w){var b=d.getRawIndex(w);y[b]=w});var x=v.count();v.each(function(w){var b=y[w],S=v.getName(w)||w+"",M=uf(p.ecModel,S,m,x),I=d.getItemVisual(b,"decal");d.setItemVisual(b,"decal",_(I,M))})}function _(w,b){var S=w?R(R({},b),w):b;return S.dirty=!0,S}})}}function r(){var u=n.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=et(c.option,u),!!c.get("enabled")){var h=e.getZr().dom;if(c.get("description")){h.setAttribute("aria-label",c.get("description"));return}var p=n.getSeriesCount(),d=c.get(["data","maxCount"])||10,f=c.get(["series","maxCount"])||10,g=Math.min(p,f),v;if(!(p<1)){var y=s();if(y){var m=c.get(["general","withTitle"]);v=a(m,{title:y})}else v=c.get(["general","withoutTitle"]);var x=[],_=p>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);v+=a(_,{seriesCount:p}),n.eachSeries(function(M,I){if(I<g){var D=void 0,T=M.get("name"),A=T?"withName":"withoutName";D=p>1?c.get(["series","multiple",A]):c.get(["series","single",A]),D=a(D,{seriesId:M.seriesIndex,seriesName:M.get("name"),seriesType:l(M.subType)});var k=M.getData();if(k.count()>d){var L=c.get(["data","partialData"]);D+=a(L,{displayCnt:d})}else D+=c.get(["data","allData"]);for(var N=c.get(["data","separator","middle"]),E=c.get(["data","separator","end"]),V=[],O=0;O<k.count();O++)if(O<d){var z=k.getName(O),F=k.getValues(O),W=c.get(["data",z?"withName":"withoutName"]);V.push(a(W,{name:z,value:F.join(N)}))}D+=V.join(N)+E,x.push(D)}});var w=c.getModel(["series","multiple","separator"]),b=w.get("middle"),S=w.get("end");v+=x.join(b)+S,h.setAttribute("aria-label",v)}}}function a(u,c){if(!U(u))return u;var h=u;return C(c,function(p,d){h=h.replace(new RegExp("\\{\\s*"+d+"\\s*\\}","g"),p)}),h}function s(){var u=n.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){return n.getLocaleModel().get(["series","typeNames"])[u]||"\u81EA\u5B9A\u4E49\u56FE"}}function AZ(n){if(!(!n||!n.aria)){var e=n.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},C(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function kZ(n){n.registerPreprocessor(AZ),n.registerVisual(n.PRIORITY.VISUAL.ARIA,TZ)}var yA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},LZ=function(){function n(e){var t=this._condVal=U(e)?new RegExp(e):Am(e)?e:null;if(t==null){var i="";process.env.NODE_ENV!=="production"&&(i=Me("Illegal regexp",e,"in")),At(i)}}return n.prototype.evaluate=function(e){var t=typeof e;return U(t)?this._condVal.test(e):Ct(t)?this._condVal.test(e+""):!1},n}(),NZ=function(){function n(){}return n.prototype.evaluate=function(){return this.value},n}(),EZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},n}(),OZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},n}(),PZ=function(){function n(){}return n.prototype.evaluate=function(){return!this.child.evaluate()},n}(),VZ=function(){function n(){}return n.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),o=e?this.valueParser(i):null,r=0;r<this.subCondList.length;r++)if(!this.subCondList[r].evaluate(e?o:i))return!1;return!0},n}();function um(n,e){if(n===!0||n===!1){var t=new NZ;return t.value=n,t}var i="";return xA(n)||(process.env.NODE_ENV!=="production"&&(i=Me("Illegal config. Expect a plain object but actually",n)),At(i)),n.and?mA("and",n,e):n.or?mA("or",n,e):n.not?RZ(n,e):zZ(n,e)}function mA(n,e,t){var i=e[n],o="";process.env.NODE_ENV!=="production"&&(o=Me('"and"/"or" condition should only be `'+n+": [...]` and must not be empty array.","Illegal condition:",e)),B(i)||At(o),i.length||At(o);var r=n==="and"?new EZ:new OZ;return r.children=G(i,function(a){return um(a,t)}),r.children.length||At(o),r}function RZ(n,e){var t=n.not,i="";process.env.NODE_ENV!=="production"&&(i=Me('"not" condition should only be `not: {}`.',"Illegal condition:",n)),xA(t)||At(i);var o=new PZ;return o.child=um(t,e),o.child||At(i),o}function zZ(n,e){for(var t="",i=e.prepareGetValue(n),o=[],r=xt(n),a=n.parser,s=a?U_(a):null,l=0;l<r.length;l++){var u=r[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=Y(yA,u)?yA[u]:u,h=n[u],p=s?s(h):h,d=mP(c,p)||c==="reg"&&new LZ(p);d||(process.env.NODE_ENV!=="production"&&(t=Me('Illegal relational operation: "'+u+'" in condition:',n)),At(t)),o.push(d)}}o.length||(process.env.NODE_ENV!=="production"&&(t=Me("Relational condition must have at least one operator.","Illegal condition:",n)),At(t));var f=new VZ;return f.valueGetterParam=i,f.valueParser=s,f.getValue=e.getValue,f.subCondList=o,f}function xA(n){return K(n)&&!ye(n)}var BZ=function(){function n(e,t){this._cond=um(e,t)}return n.prototype.evaluate=function(){return this._cond.evaluate()},n}();function GZ(n,e){return new BZ(n,e)}var FZ={type:"echarts:filter",transform:function(n){for(var e=n.upstream,t,i=GZ(n.config,{valueGetterAttrMap:j({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Y(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Me('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),At(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=Me("Can not find dimension info via: "+u+`.
|
|
80
|
+
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
81
|
+
`,"Illegal condition:",s,`.
|
|
82
|
+
`)),At(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),o=[],r=0,a=e.count();r<a;r++)t=e.getRawDataItem(r),i.evaluate()&&o.push(t);return{data:o}}},cm="";process.env.NODE_ENV!=="production"&&(cm=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var HZ={type:"echarts:sort",transform:function(n){var e=n.upstream,t=n.config,i="",o=Nt(t);o.length||(process.env.NODE_ENV!=="production"&&(i="Empty `config` in sort transform."),At(i));var r=[];C(o,function(c){var h=c.dimension,p=c.order,d=c.parser,f=c.incomparable;if(h==null&&(process.env.NODE_ENV!=="production"&&(i='Sort transform config must has "dimension" specified.'+cm),At(i)),p!=="asc"&&p!=="desc"&&(process.env.NODE_ENV!=="production"&&(i='Sort transform config must has "order" specified.'+cm),At(i)),f&&f!=="min"&&f!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+f+'".'),At(g)}if(p!=="asc"&&p!=="desc"){var v="";process.env.NODE_ENV!=="production"&&(v='order must be "asc" or "desc" rather than "'+p+'".'),At(v)}var y=e.getDimensionInfo(h);y||(process.env.NODE_ENV!=="production"&&(i=Me("Can not find dimension info via: "+h+`.
|
|
83
|
+
`,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
|
|
84
|
+
`,"Illegal config:",c,`.
|
|
85
|
+
`)),At(i));var m=d?U_(d):null;d&&!m&&(process.env.NODE_ENV!=="production"&&(i=Me("Invalid parser name "+d+`.
|
|
86
|
+
`,"Illegal config:",c,`.
|
|
87
|
+
`)),At(i)),r.push({dimIdx:y.index,parser:m,comparator:new X_(p,f)})});var a=e.sourceFormat;a!==_e&&a!==an&&(process.env.NODE_ENV!=="production"&&(i='sourceFormat "'+a+'" is not supported yet'),At(i));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,h){for(var p=0;p<r.length;p++){var d=r[p],f=e.retrieveValueFromItem(c,d.dimIdx),g=e.retrieveValueFromItem(h,d.dimIdx);d.parser&&(f=d.parser(f),g=d.parser(g));var v=d.comparator.evaluate(f,g);if(v!==0)return v}return 0}),{data:s}}};function WZ(n){n.registerTransform(FZ),n.registerTransform(HZ)}var UZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,o){n.prototype.init.call(this,t,i,o),this._sourceManager=new J_(this),Q_(this)},e.prototype.mergeOption=function(t,i){n.prototype.mergeOption.call(this,t,i),Q_(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Xn},e}(bt),YZ=function(n){P(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Yt);function XZ(n){n.registerComponentModel(UZ),n.registerComponentView(YZ)}var ti=Hn.CMD;function Pa(n,e){return Math.abs(n-e)<1e-5}function hm(n){var e=n.data,t=n.len(),i=[],o,r=0,a=0,s=0,l=0;function u(k,L){o&&o.length>2&&i.push(o),o=[k,L]}function c(k,L,N,E){Pa(k,N)&&Pa(L,E)||o.push(k,L,N,E,N,E)}function h(k,L,N,E,V,O){var z=Math.abs(L-k),F=Math.tan(z/4)*4/3,W=L<k?-1:1,Z=Math.cos(k),Q=Math.sin(k),tt=Math.cos(L),ft=Math.sin(L),_t=Z*V+N,gt=Q*O+E,nt=tt*V+N,vt=ft*O+E,st=V*F*W,q=O*F*W;o.push(_t-st*Q,gt+q*Z,nt+st*ft,vt-q*tt,nt,vt)}for(var p,d,f,g,v=0;v<t;){var y=e[v++],m=v===1;switch(m&&(r=e[v],a=e[v+1],s=r,l=a,(y===ti.L||y===ti.C||y===ti.Q)&&(o=[s,l])),y){case ti.M:r=s=e[v++],a=l=e[v++],u(s,l);break;case ti.L:p=e[v++],d=e[v++],c(r,a,p,d),r=p,a=d;break;case ti.C:o.push(e[v++],e[v++],e[v++],e[v++],r=e[v++],a=e[v++]);break;case ti.Q:p=e[v++],d=e[v++],f=e[v++],g=e[v++],o.push(r+2/3*(p-r),a+2/3*(d-a),f+2/3*(p-f),g+2/3*(d-g),f,g),r=f,a=g;break;case ti.A:var x=e[v++],_=e[v++],w=e[v++],b=e[v++],S=e[v++],M=e[v++]+S;v+=1;var I=!e[v++];p=Math.cos(S)*w+x,d=Math.sin(S)*b+_,m?(s=p,l=d,u(s,l)):c(r,a,p,d),r=Math.cos(M)*w+x,a=Math.sin(M)*b+_;for(var D=(I?-1:1)*Math.PI/2,T=S;I?T>M:T<M;T+=D){var A=I?Math.max(T+D,M):Math.min(T+D,M);h(T,A,x,_,w,b)}break;case ti.R:s=r=e[v++],l=a=e[v++],p=s+e[v++],d=l+e[v++],u(p,l),c(p,l,p,d),c(p,d,s,d),c(s,d,s,l),c(s,l,p,l);break;case ti.Z:o&&c(r,a,s,l),r=s,a=l;break}}return o&&o.length>2&&i.push(o),i}function pm(n,e,t,i,o,r,a,s,l,u){if(Pa(n,t)&&Pa(e,i)&&Pa(o,a)&&Pa(r,s)){l.push(a,s);return}var c=2/u,h=c*c,p=a-n,d=s-e,f=Math.sqrt(p*p+d*d);p/=f,d/=f;var g=t-n,v=i-e,y=o-a,m=r-s,x=g*g+v*v,_=y*y+m*m;if(x<h&&_<h){l.push(a,s);return}var w=p*g+d*v,b=-p*y-d*m,S=x-w*w,M=_-b*b;if(S<h&&w>=0&&M<h&&b>=0){l.push(a,s);return}var I=[],D=[];Ni(n,t,o,a,.5,I),Ni(e,i,r,s,.5,D),pm(I[0],D[0],I[1],D[1],I[2],D[2],I[3],D[3],l,u),pm(I[4],D[4],I[5],D[5],I[6],D[6],I[7],D[7],l,u)}function ZZ(n,e){var t=hm(n),i=[];e=e||1;for(var o=0;o<t.length;o++){var r=t[o],a=[],s=r[0],l=r[1];a.push(s,l);for(var u=2;u<r.length;){var c=r[u++],h=r[u++],p=r[u++],d=r[u++],f=r[u++],g=r[u++];pm(s,l,c,h,p,d,f,g,a,e),s=f,l=g}i.push(a)}return i}function _A(n,e,t){var i=n[e],o=n[1-e],r=Math.abs(i/o),a=Math.ceil(Math.sqrt(r*t)),s=Math.floor(t/a);s===0&&(s=1,a=t);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,h=t-c;if(h>0)for(var u=0;u<h;u++)l[u%a]+=1;return l}function bA(n,e,t){for(var i=n.r0,o=n.r,r=n.startAngle,a=n.endAngle,s=Math.abs(a-r),l=s*o,u=o-i,c=l>Math.abs(u),h=_A([l,u],c?0:1,e),p=(c?s:u)/h.length,d=0;d<h.length;d++)for(var f=(c?u:s)/h[d],g=0;g<h[d];g++){var v={};c?(v.startAngle=r+p*d,v.endAngle=r+p*(d+1),v.r0=i+f*g,v.r=i+f*(g+1)):(v.startAngle=r+f*g,v.endAngle=r+f*(g+1),v.r0=i+p*d,v.r=i+p*(d+1)),v.clockwise=n.clockwise,v.cx=n.cx,v.cy=n.cy,t.push(v)}}function jZ(n,e,t){for(var i=n.width,o=n.height,r=i>o,a=_A([i,o],r?0:1,e),s=r?"width":"height",l=r?"height":"width",u=r?"x":"y",c=r?"y":"x",h=n[s]/a.length,p=0;p<a.length;p++)for(var d=n[l]/a[p],f=0;f<a[p];f++){var g={};g[u]=p*h,g[c]=f*d,g[s]=h,g[l]=d,g.x+=n.x,g.y+=n.y,t.push(g)}}function wA(n,e,t,i){return n*i-t*e}function qZ(n,e,t,i,o,r,a,s){var l=t-n,u=i-e,c=a-o,h=s-r,p=wA(c,h,l,u);if(Math.abs(p)<1e-6)return null;var d=n-o,f=e-r,g=wA(d,f,c,h)/p;return g<0||g>1?null:new ct(g*l+n,g*u+e)}function $Z(n,e,t){var i=new ct;ct.sub(i,t,e),i.normalize();var o=new ct;ct.sub(o,n,e);var r=o.dot(i);return r}function Va(n,e){var t=n[n.length-1];t&&t[0]===e[0]&&t[1]===e[1]||n.push(e)}function KZ(n,e,t){for(var i=n.length,o=[],r=0;r<i;r++){var a=n[r],s=n[(r+1)%i],l=qZ(a[0],a[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&o.push({projPt:$Z(l,e,t),pt:l,idx:r})}if(o.length<2)return[{points:n},{points:n}];o.sort(function(v,y){return v.projPt-y.projPt});var u=o[0],c=o[o.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}for(var p=[u.pt.x,u.pt.y],d=[c.pt.x,c.pt.y],f=[p],g=[d],r=u.idx+1;r<=c.idx;r++)Va(f,n[r].slice());Va(f,d),Va(f,p);for(var r=c.idx+1;r<=u.idx+i;r++)Va(g,n[r%i].slice());return Va(g,p),Va(g,d),[{points:f},{points:g}]}function SA(n){var e=n.points,t=[],i=[];Iu(e,t,i);var o=new pt(t[0],t[1],i[0]-t[0],i[1]-t[1]),r=o.width,a=o.height,s=o.x,l=o.y,u=new ct,c=new ct;return r>a?(u.x=c.x=s+r/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+r),KZ(e,u,c)}function Wh(n,e,t,i){if(t===1)i.push(e);else{var o=Math.floor(t/2),r=n(e);Wh(n,r[0],o,i),Wh(n,r[1],t-o,i)}return i}function JZ(n,e){for(var t=[],i=0;i<e;i++)t.push(Pd(n));return t}function QZ(n,e){e.setStyle(n.style),e.z=n.z,e.z2=n.z2,e.zlevel=n.zlevel}function tj(n){for(var e=[],t=0;t<n.length;)e.push([n[t++],n[t++]]);return e}function ej(n,e){var t=[],i=n.shape,o;switch(n.type){case"rect":jZ(i,e,t),o=It;break;case"sector":bA(i,e,t),o=Ve;break;case"circle":bA({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),o=Ve;break;default:var r=n.getComputedTransform(),a=r?Math.sqrt(Math.max(r[0]*r[0]+r[1]*r[1],r[2]*r[2]+r[3]*r[3])):1,s=G(ZZ(n.getUpdatedPathProxy(),a),function(y){return tj(y)}),l=s.length;if(l===0)Wh(SA,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,h=G(s,function(y){var m=[],x=[];Iu(y,m,x);var _=(x[1]-m[1])*(x[0]-m[0]);return c+=_,{poly:y,area:_}});h.sort(function(y,m){return m.area-y.area});for(var p=e,u=0;u<l;u++){var d=h[u];if(p<=0)break;var f=u===l-1?p:Math.ceil(d.area/c*e);f<0||(Wh(SA,{points:d.poly},f,t),p-=f)}}o=Re;break}if(!o)return JZ(n,e);for(var g=[],u=0;u<t.length;u++){var v=new o;v.setShape(t[u]),QZ(n,v),g.push(v)}return g}function nj(n,e){var t=n.length,i=e.length;if(t===i)return[n,e];for(var o=[],r=[],a=t<i?n:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[a[0],a[1]],p=l,d=2;d<s;){var f=a[d-2],g=a[d-1],v=a[d++],y=a[d++],m=a[d++],x=a[d++],_=a[d++],w=a[d++];if(p<=0){h.push(v,y,m,x,_,w);continue}for(var b=Math.min(p,c-1)+1,S=1;S<=b;S++){var M=S/b;Ni(f,v,m,_,M,o),Ni(g,y,x,w,M,r),f=o[3],g=r[3],h.push(o[1],r[1],o[2],r[2],f,g),v=o[5],y=r[5],m=o[6],x=r[6]}p-=b-1}return a===n?[h,e]:[n,h]}function MA(n,e){for(var t=n.length,i=n[t-2],o=n[t-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function ij(n,e){for(var t,i,o,r=[],a=[],s=0;s<Math.max(n.length,e.length);s++){var l=n[s],u=e[s],c=void 0,h=void 0;l?u?(t=nj(l,u),c=t[0],h=t[1],i=c,o=h):(h=MA(o||l,l),c=l):(c=MA(i||u,u),h=u),r.push(c),a.push(h)}return[r,a]}function IA(n){for(var e=0,t=0,i=0,o=n.length,r=0,a=o-2;r<o;a=r,r+=2){var s=n[a],l=n[a+1],u=n[r],c=n[r+1],h=s*c-u*l;e+=h,t+=(s+u)*h,i+=(l+c)*h}return e===0?[n[0]||0,n[1]||0]:[t/e/3,i/e/3,e]}function oj(n,e,t,i){for(var o=(n.length-2)/6,r=1/0,a=0,s=n.length,l=s-2,u=0;u<o;u++){for(var c=u*6,h=0,p=0;p<s;p+=2){var d=p===0?c:(c+p-2)%l+2,f=n[d]-t[0],g=n[d+1]-t[1],v=e[p]-i[0],y=e[p+1]-i[1],m=v-f,x=y-g;h+=m*m+x*x}h<r&&(r=h,a=u)}return a}function rj(n){for(var e=[],t=n.length,i=0;i<t;i+=2)e[i]=n[t-i-2],e[i+1]=n[t-i-1];return e}function aj(n,e,t,i){for(var o=[],r,a=0;a<n.length;a++){var s=n[a],l=e[a],u=IA(s),c=IA(l);r==null&&(r=u[2]<0!=c[2]<0);var h=[],p=[],d=0,f=1/0,g=[],v=s.length;r&&(s=rj(s));for(var y=oj(s,l,u,c)*6,m=v-2,x=0;x<m;x+=2){var _=(y+x)%m+2;h[x+2]=s[_]-u[0],h[x+3]=s[_+1]-u[1]}if(h[0]=s[y]-u[0],h[1]=s[y+1]-u[1],t>0)for(var w=i/t,b=-i/2;b<=i/2;b+=w){for(var S=Math.sin(b),M=Math.cos(b),I=0,x=0;x<s.length;x+=2){var D=h[x],T=h[x+1],A=l[x]-c[0],k=l[x+1]-c[1],L=A*M-k*S,N=A*S+k*M;g[x]=L,g[x+1]=N;var E=L-D,V=N-T;I+=E*E+V*V}if(I<f){f=I,d=b;for(var O=0;O<g.length;O++)p[O]=g[O]}}else for(var z=0;z<v;z+=2)p[z]=l[z]-c[0],p[z+1]=l[z+1]-c[1];o.push({from:h,to:p,fromCp:u,toCp:c,rotation:-d})}return o}function Uh(n){return n.__isCombineMorphing}var CA="__mOriginal_";function Yh(n,e,t){var i=CA+e,o=n[i]||n[e];n[i]||(n[i]=n[e]);var r=t.replace,a=t.after,s=t.before;n[e]=function(){var l=arguments,u;return s&&s.apply(this,l),r?u=r.apply(this,l):u=o.apply(this,l),a&&a.apply(this,l),u}}function Ol(n,e){var t=CA+e;n[t]&&(n[e]=n[t],n[t]=null)}function DA(n,e){for(var t=0;t<n.length;t++)for(var i=n[t],o=0;o<i.length;){var r=i[o],a=i[o+1];i[o++]=e[0]*r+e[2]*a+e[4],i[o++]=e[1]*r+e[3]*a+e[5]}}function TA(n,e){var t=n.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),o=ij(hm(t),hm(i)),r=o[0],a=o[1],s=n.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&DA(r,s),l&&DA(a,l),Yh(e,"updateTransform",{replace:u}),e.transform=null;var c=aj(r,a,10,Math.PI),h=[];Yh(e,"buildPath",{replace:function(p){for(var d=e.__morphT,f=1-d,g=[],v=0;v<c.length;v++){var y=c[v],m=y.from,x=y.to,_=y.rotation*d,w=y.fromCp,b=y.toCp,S=Math.sin(_),M=Math.cos(_);Yl(g,w,b,d);for(var I=0;I<m.length;I+=2){var D=m[I],T=m[I+1],A=x[I],k=x[I+1],L=D*f+A*d,N=T*f+k*d;h[I]=L*M-N*S+g[0],h[I+1]=L*S+N*M+g[1]}var E=h[0],V=h[1];p.moveTo(E,V);for(var I=2;I<m.length;){var A=h[I++],k=h[I++],O=h[I++],z=h[I++],F=h[I++],W=h[I++];E===A&&V===k&&O===F&&z===W?p.lineTo(F,W):p.bezierCurveTo(A,k,O,z,F,W),E=F,V=W}}}})}function dm(n,e,t){if(!n||!e)return e;var i=t.done,o=t.during;TA(n,e),e.__morphT=0;function r(){Ol(e,"buildPath"),Ol(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},et({during:function(a){e.dirtyShape(),o&&o(a)},done:function(){r(),i&&i()}},t)),e}function sj(n,e,t,i,o,r){var a=16;n=o===t?0:Math.round(32767*(n-t)/(o-t)),e=r===i?0:Math.round(32767*(e-i)/(r-i));for(var s=0,l,u=(1<<a)/2;u>0;u/=2){var c=0,h=0;(n&u)>0&&(c=1),(e&u)>0&&(h=1),s+=u*u*(3*c^h),h===0&&(c===1&&(n=u-1-n,e=u-1-e),l=n,n=e,e=l)}return s}function Xh(n){var e=1/0,t=1/0,i=-1/0,o=-1/0,r=G(n,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),h=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(h,t),i=Math.max(c,i),o=Math.max(h,o),[c,h]}),a=G(r,function(s,l){return{cp:s,z:sj(s[0],s[1],e,t,i,o),path:n[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function AA(n){return ej(n.path,n.count)}function fm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function lj(n,e,t){var i=[];function o(w){for(var b=0;b<w.length;b++){var S=w[b];Uh(S)?o(S.childrenRef()):S instanceof mt&&i.push(S)}}o(n);var r=i.length;if(!r)return fm();var a=t.dividePath||AA,s=a({path:e,count:r});if(s.length!==r)return console.error("Invalid morphing: unmatched splitted path"),fm();i=Xh(i),s=Xh(s);for(var l=t.done,u=t.during,c=t.individualDelay,h=new si,p=0;p<r;p++){var d=i[p],f=s[p];f.parent=e,f.copyTransform(h),c||TA(d,f)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(w){for(var b=0;b<s.length;b++)s[b].addSelfToZr(w)}Yh(e,"addSelfToZr",{after:function(w){g(w)}}),Yh(e,"removeSelfFromZr",{after:function(w){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(w)}});function v(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Ol(e,"addSelfToZr"),Ol(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,x=function(){m--,m===0&&(v(),l&&l())},p=0;p<y;p++){var _=c?et({delay:(t.delay||0)+c(p,y,i[p],s[p]),done:x},t):t;dm(i[p],s[p],_)}else e.__morphT=0,e.animateTo({__morphT:1},et({during:function(w){for(var b=0;b<y;b++){var S=s[b];S.__morphT=e.__morphT,S.dirtyShape()}u&&u(w)},done:function(){v();for(var w=0;w<n.length;w++)Ol(n[w],"updateTransform");l&&l()}},t));return e.__zr&&g(e.__zr),{fromIndividuals:i,toIndividuals:s,count:y}}function uj(n,e,t){var i=e.length,o=[],r=t.dividePath||AA;function a(d){for(var f=0;f<d.length;f++){var g=d[f];Uh(g)?a(g.childrenRef()):g instanceof mt&&o.push(g)}}if(Uh(n)){a(n.childrenRef());var s=o.length;if(s<i)for(var l=0,u=s;u<i;u++)o.push(Pd(o[l++%s]));o.length=i}else{o=r({path:n,count:i});for(var c=n.getComputedTransform(),u=0;u<o.length;u++)o[u].setLocalTransform(c);if(o.length!==i)return console.error("Invalid morphing: unmatched splitted path"),fm()}o=Xh(o),e=Xh(e);for(var h=t.individualDelay,u=0;u<i;u++){var p=h?et({delay:(t.delay||0)+h(u,i,o[u],e[u])},t):t;dm(o[u],e[u],p)}return{fromIndividuals:o,toIndividuals:e,count:e.length}}function kA(n){return B(n[0])}function LA(n,e){for(var t=[],i=n.length,o=0;o<i;o++)t.push({one:n[o],many:[]});for(var o=0;o<e.length;o++){var r=e[o].length,a=void 0;for(a=0;a<r;a++)t[a%i].many.push(e[o][a])}for(var s=0,o=i-1;o>=0;o--)if(!t[o].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var r=l.length,u=Math.ceil(r/2);t[o].many=l.slice(u,r),t[s].many=l.slice(0,u),s++}return t}var cj={clone:function(n){for(var e=[],t=1-Math.pow(1-n.path.style.opacity,1/n.count),i=0;i<n.count;i++){var o=Pd(n.path);o.setStyle("opacity",t),e.push(o)}return e},split:null};function gm(n,e,t,i,o,r){if(!n.length||!e.length)return;var a=Yr("update",i,o);if(!(a&&a.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;kA(n)&&(u=n,c=e),kA(e)&&(u=e,c=n);function h(y,m,x,_,w){var b=y.many,S=y.one;if(b.length===1&&!w){var M=m?b[0]:S,I=m?S:b[0];if(Uh(M))h({many:[M],one:I},!0,x,_,!0);else{var D=s?et({delay:s(x,_)},l):l;dm(M,I,D),r(M,I,M,I,D)}}else for(var T=et({dividePath:cj[t],individualDelay:s&&function(V,O,z,F){return s(V+x,_)}},l),A=m?lj(b,S,T):uj(S,b,T),k=A.fromIndividuals,L=A.toIndividuals,N=k.length,E=0;E<N;E++){var D=s?et({delay:s(E,N)},l):l;r(k[E],L[E],m?b[E]:y.one,m?y.one:b[E],D)}}for(var p=u?u===n:n.length>e.length,d=u?LA(c,u):LA(p?e:n,[p?n:e]),f=0,g=0;g<d.length;g++)f+=d[g].many.length;for(var v=0,g=0;g<d.length;g++)h(d[g],p,v,f),v+=d[g].many.length}function Mr(n){if(!n)return[];if(B(n)){for(var e=[],t=0;t<n.length;t++)e.push(Mr(n[t]));return e}var i=[];return n.traverse(function(o){o instanceof mt&&!o.disableMorphing&&!o.invisible&&!o.ignore&&i.push(o)}),i}var NA=1e4,hj=Mt();function pj(n){for(var e=n.dimensions,t=0;t<e.length;t++){var i=n.getDimensionInfo(e[t]);if(i&&i.otherDims.itemGroupId===0)return e[t]}}function EA(n){var e=[];return C(n,function(t){var i=t.data;if(i.count()>NA){process.env.NODE_ENV!=="production"&&Ht("Universal transition is disabled on large data > 10k.");return}for(var o=i.getIndices(),r=pj(i),a=0;a<o.length;a++)e.push({dataGroupId:t.dataGroupId,data:i,dim:t.dim||r,divide:t.divide,dataIndex:a})}),e}function vm(n,e,t){n.traverse(function(i){i instanceof mt&&Bt(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function ym(n){if(n.parent){var e=n.getComputedTransform();n.setLocalTransform(e),n.parent.remove(n)}}function Ra(n){n.stopAnimation(),n.isGroup&&n.traverse(function(e){e.stopAnimation()})}function dj(n,e,t){var i=Yr("update",t,e);i&&n.traverse(function(o){if(o instanceof tn){var r=qE(o);r&&o.animateFrom({style:r},i)}})}function fj(n,e){var t=n.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var o=n[i],r=e[i];if(o.data.getId(o.dataIndex)!==r.data.getId(r.dataIndex))return!1}return!0}function OA(n,e,t){var i=EA(n),o=EA(e);function r(y,m,x,_,w){(x||y)&&m.animateFrom({style:x&&x!==y?R(R({},x.style),y.style):y.style},w)}function a(y){for(var m=0;m<y.length;m++)if(y[m].dim)return y[m].dim}var s=a(i),l=a(o),u=!1;function c(y,m){return function(x){var _=x.data,w=x.dataIndex;if(m)return _.getId(w);var b=x.dataGroupId,S=y?s||l:l||s,M=S&&_.getDimensionInfo(S),I=M&&M.ordinalMeta;if(M){var D=_.get(M.name,w);return I&&I.categories[D]||D+""}var T=_.getRawDataItem(w);return T&&T.groupId?T.groupId+"":b||_.getId(w)}}var h=fj(i,o),p={};if(!h)for(var d=0;d<o.length;d++){var f=o[d],g=f.data.getItemGraphicEl(f.dataIndex);g&&(p[g.id]=!0)}function v(y,m){var x=i[m],_=o[y],w=_.data.hostModel,b=x.data.getItemGraphicEl(x.dataIndex),S=_.data.getItemGraphicEl(_.dataIndex);if(b===S){S&&dj(S,_.dataIndex,w);return}b&&p[b.id]||S&&(Ra(S),b?(Ra(b),ym(b),u=!0,gm(Mr(b),Mr(S),_.divide,w,y,r)):vm(S,w,y))}new vi(i,o,c(!0,h),c(!1,h),null,"multiple").update(v).updateManyToOne(function(y,m){var x=o[y],_=x.data,w=_.hostModel,b=_.getItemGraphicEl(x.dataIndex),S=Lt(G(m,function(M){return i[M].data.getItemGraphicEl(i[M].dataIndex)}),function(M){return M&&M!==b&&!p[M.id]});b&&(Ra(b),S.length?(C(S,function(M){Ra(M),ym(M)}),u=!0,gm(Mr(S),Mr(b),x.divide,w,y,r)):vm(b,w,x.dataIndex))}).updateOneToMany(function(y,m){var x=i[m],_=x.data.getItemGraphicEl(x.dataIndex);if(!(_&&p[_.id])){var w=Lt(G(y,function(S){return o[S].data.getItemGraphicEl(o[S].dataIndex)}),function(S){return S&&S!==_}),b=o[y[0]].data.hostModel;w.length&&(C(w,function(S){return Ra(S)}),_?(Ra(_),ym(_),u=!0,gm(Mr(_),Mr(w),x.divide,b,y[0],r)):C(w,function(S){return vm(S,b,y[0])}))}}).updateManyToMany(function(y,m){new vi(m,y,function(x){return i[x].data.getId(i[x].dataIndex)},function(x){return o[x].data.getId(o[x].dataIndex)}).update(function(x,_){v(y[x],m[_])}).execute()}).execute(),u&&C(e,function(y){var m=y.data,x=m.hostModel,_=x&&t.getViewOfSeriesModel(x),w=Yr("update",x,0);_&&x.isAnimationEnabled()&&w&&w.duration>0&&_.group.traverse(function(b){b instanceof mt&&!b.animators.length&&b.animateFrom({style:{opacity:0}},w)})})}function PA(n){var e=n.getModel("universalTransition").get("seriesKey");return e||n.id}function VA(n){return B(n)?n.sort().join(","):n}function lo(n){if(n.hostModel)return n.hostModel.getModel("universalTransition").get("divideShape")}function gj(n,e){var t=j(),i=j(),o=j();C(n.oldSeries,function(a,s){var l=n.oldDataGroupIds[s],u=n.oldData[s],c=PA(a),h=VA(c);i.set(h,{dataGroupId:l,data:u}),B(c)&&C(c,function(p){o.set(p,{key:h,dataGroupId:l,data:u})})});function r(a){t.get(a)&&Ht("Duplicated seriesKey in universalTransition "+a)}return C(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=PA(a),c=VA(u),h=i.get(c);if(h)process.env.NODE_ENV!=="production"&&r(c),t.set(c,{oldSeries:[{dataGroupId:h.dataGroupId,divide:lo(h.data),data:h.data}],newSeries:[{dataGroupId:s,divide:lo(l),data:l}]});else if(B(u)){process.env.NODE_ENV!=="production"&&r(c);var p=[];C(u,function(g){var v=i.get(g);v.data&&p.push({dataGroupId:v.dataGroupId,divide:lo(v.data),data:v.data})}),p.length&&t.set(c,{oldSeries:p,newSeries:[{dataGroupId:s,data:l,divide:lo(l)}]})}else{var d=o.get(u);if(d){var f=t.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:lo(d.data)}],newSeries:[]},t.set(d.key,f)),f.newSeries.push({dataGroupId:s,data:l,divide:lo(l)})}}}}),t}function RA(n,e){for(var t=0;t<n.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===n[t].seriesIndex||e.seriesId!=null&&e.seriesId===n[t].id;if(i)return t}}function vj(n,e,t,i){var o=[],r=[];C(Nt(n.from),function(a){var s=RA(e.oldSeries,a);s>=0&&o.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:lo(e.oldData[s]),dim:a.dimension})}),C(Nt(n.to),function(a){var s=RA(t.updatedSeries,a);if(s>=0){var l=t.updatedSeries[s].getData();r.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:lo(l),dim:a.dimension})}}),o.length>0&&r.length>0&&OA(o,r,i)}function yj(n){n.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){C(Nt(i.seriesTransition),function(o){C(Nt(o.to),function(r){for(var a=i.updatedSeries,s=0;s<a.length;s++)(r.seriesIndex!=null&&r.seriesIndex===a[s].seriesIndex||r.seriesId!=null&&r.seriesId===a[s].id)&&(a[s][uc]=!0)})})}),n.registerUpdateLifecycle("series:transition",function(e,t,i){var o=hj(t);if(o.oldSeries&&i.updatedSeries&&i.optionChanged){var r=i.seriesTransition;if(r)C(Nt(r),function(d){vj(d,o,i,t)});else{var a=gj(o,i);C(a.keys(),function(d){var f=a.get(d);OA(f.oldSeries,f.newSeries,t)})}C(i.updatedSeries,function(d){d[uc]&&(d[uc]=!1)})}for(var s=e.getSeries(),l=o.oldSeries=[],u=o.oldDataGroupIds=[],c=o.oldData=[],h=0;h<s.length;h++){var p=s[h].getData();p.count()<NA&&(l.push(s[h]),u.push(s[h].get("dataGroupId")),c.push(p))}})}yt([P5]),yt([T5]),yt([r3,S3,V3,SB,GB,OG,hF,KF,I4,O4,Y4,qH,wW,PW,e6,l6,C6,V6,q6,i8,v8,t7]),yt(S7),yt(i9),yt(AI),yt(_9),yt(J2),yt(D9),yt(V9),yt(RU),yt(aY),yt(Il),yt(CY),yt(AY),yt(UY),yt(tX),yt(lX),yt(vX),yt(kX),yt(JX),yt(ZT),yt(KT),yt(IZ),yt(dA),yt(gA),yt(kZ),yt(WZ),yt(XZ),yt(yj),yt(jz);const{document:mj}=ZA;function xj(n){let e,t,i;return{c(){e=_m("div"),t=WA(),i=_m("link"),Zh(e,"width","100%"),Zh(e,"height","100%"),Zh(e,"position","relative"),bm(i,"href","https://fonts.googleapis.com/css2?family=Sen:wght@400..800&display=swap"),bm(i,"rel","stylesheet")},m(o,r){wm(o,e,r),n[4](e),wm(o,t,r),UA(mj.head,i)},p:jh,i:jh,o:jh,d(o){o&&(qh(e),qh(t)),n[4](null),qh(i)}}}const za="#008F8C",_j="rgba(0,143,140,0.35)";function bj(n,e,t){let i,{type:o}=e,{service:r=window.GaReportService}=e,a=[{name:"mature",csvPerc:"G0percentile",csvScore:"G0yourscore"},{name:"youth",csvPerc:"G2percentile",csvScore:"G2yourscore"},{name:"shield",csvPerc:"Spercentile",csvScore:"Syourscore"},{name:"lifestyle",csvPerc:"Bpercentile",csvScore:"Byourscore"},{name:"median",csvPerc:"G1percentile",csvScore:"G1yourscore"}],s,l,u=0,c=0,h={},p="",d=0,f;const g=a.find(m=>m.name===o);function v(){f&&(h=uR(f,null,{devicePixelRatio:4,renderer:"svg"}));const m=f.getBoundingClientRect();var x={textStyle:{fontFamily:"Sen, sans serif"},animation:!1,backgroundColor:"#FFFFFF",grid:{top:36,left:64,right:32,bottom:52},dataset:[{source:l.data.map(D=>[D.x,D.y])}],tooltip:{show:!1},xAxis:{min:0,max:100,interval:20,name:"Chronological age",nameTextStyle:{color:"#4F5B67",opacity:.9,fontSize:10,padding:[18,0,0,0]},nameLocation:"middle",axisLine:{show:!0,lineStyle:{color:"#E0E3E6",width:1},symbol:["none","none"]},axisTick:{show:!1},axisLabel:{show:!0,color:"#7A8794",fontSize:10,opacity:1,formatter(D){return D===0||D===100?"":D}},splitLine:{show:!0,lineStyle:{color:"#F0F2F4"}}},yAxis:{min:0,max:.6,name:"Biological age",nameTextStyle:{color:"#4F5B67",opacity:.9,fontSize:10,padding:[0,0,28,0]},nameLocation:"middle",nameRotate:90,axisLine:{show:!0,lineStyle:{color:"#E0E3E6",width:1},symbol:["none","none"]},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!0,lineStyle:{color:"#F0F2F4"}}},series:[{type:"scatter",tooltip:{},symbolSize:5,itemStyle:{color:_j,opacity:1,borderWidth:1}},{name:"Result",type:"scatter",data:[{x:d,y:c}],itemStyle:{color:za},symbolSize:8}],graphic:[],legend:{show:!1}};h.setOption(x),x.graphic.push({type:"line",shape:{x1:h.convertToPixel("xAxis",d),y1:h.convertToPixel("yAxis",0),x2:h.convertToPixel("xAxis",d),y2:h.convertToPixel("yAxis",c)},style:{stroke:za,lineDash:[8,8],lineWidth:2},z:8}),x.graphic.push({type:"line",shape:{x1:h.convertToPixel("xAxis",0),y1:h.convertToPixel("yAxis",c),x2:h.convertToPixel("xAxis",d),y2:h.convertToPixel("yAxis",c)},style:{stroke:za,lineDash:[8,8],lineWidth:2},z:8}),x.graphic.push({name:"Measured result",type:"circle",shape:{cx:h.convertToPixel("xAxis",d),cy:h.convertToPixel("yAxis",c),r:4},style:{fill:za,stroke:"#FFFFFF",lineWidth:1.5},z:15});const _=h.convertToPixel("xAxis",d),w=h.convertToPixel("yAxis",c),b=document.createElementNS("http://www.w3.org/2000/svg","svg"),S=document.createElement("div");b.setAttribute("width","80"),b.setAttribute("height","28"),b.setAttribute("viewBox","0 0 71 32"),b.setAttribute("fill","none"),b.setAttribute("xmlns","http://www.w3.org/2000/svg");const M=document.createElementNS("http://www.w3.org/2000/svg","path");M.setAttribute("d","M7 4C7 1.79086 8.79086 0 11 0H67C69.2091 0 71 1.79086 71 4V28C71 30.2091 69.2091 32 67 32H11C8.79086 32 7 30.2091 7 28V4Z"),M.setAttribute("fill",za);const I=document.createElementNS("http://www.w3.org/2000/svg","path");I.setAttribute("d","M1.13333 17.6C0.0666666 16.8 0.0666666 15.2 1.13333 14.4L7 10L7 22L1.13333 17.6Z"),I.setAttribute("fill",za),b.appendChild(M),b.appendChild(I),b.style.position="absolute",b.style.left=`${m.left+_+2}px`,b.style.top=`${m.top+w-14}px`,b.style.zIndex="8",S.innerText=i,S.style.position="absolute",S.style.left=`${m.left+_+20}px`,S.style.top=`${m.top+w-8}px`,S.style.font="bold 11px sans-serif",S.style.color="white",S.style.zIndex="999",S.style.fontFamily="Sen",S.style.paddingLeft="4px",document.body.appendChild(S),document.body.appendChild(b),h.setOption(x)}YA(async()=>{s=await r.getReport(),p=s.sex,l=await r.getScatterData(o,p),await r.getLineData(o,p),d=Number(s.chronologicalage),g&&(t(3,u=Number(s[g.csvPerc])),c=Number(s[g.csvScore])),v()});function y(m){XA[m?"unshift":"push"](()=>{f=m,t(0,f)})}return n.$$set=m=>{"type"in m&&t(1,o=m.type),"service"in m&&t(2,r=m.service)},n.$$.update=()=>{n.$$.dirty&8&&(i=(()=>{const m=Math.round(u||0),x=jA(m,"english");return`${m}${x} pct`})())},[f,o,r,u,y]}class zA extends GA{constructor(e){super(),FA(this,e,bj,xj,HA,{type:1,service:2})}get type(){return this.$$.ctx[1]}set type(e){this.$$set({type:e}),xm()}get service(){return this.$$.ctx[2]}set service(e){this.$$set({service:e}),xm()}}customElements.define("ga-biological-age-rank-scatter",BA(zA,{type:{},service:{}},[],[],!1));export{zA as default};
|