import{d as LA,r as Kt,aj as Rr,X as Ut,s as gs,x as Dh,v as IA,bM as zk,o as te,j as Ce,c as Ht,k as Mt,t as Vt,E as ve,C as le,l as ze,bC as PA,B as Ka,bP as Vk,bQ as Gk,m as fr,W as Jr,bR as Fk,a8 as RA,av as kA,bO as EA,bS as Hk,a0 as OA,a2 as NA,bT as BA,a3 as zA,aw as VA,ax as GA,bU as Wk,n as FA,p as $k,aC as H_,bV as Uk,T as Yk,F as W_,K as Zk,bW as Xk,bX as qk,bY as Kk,bt as jk,bZ as Jk,b_ as Qk,aq as Ro,b$ as tE,a6 as eE,Z as rE,c0 as aE}from"./index-b01f57e3.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ig=function(r,e){return ig=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},ig(r,e)};function B(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ig(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var nE=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),iE=function(){function r(){this.browser=new nE,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),Ln=new iE;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ln.wxa=!0,Ln.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ln.worker=!0:!Ln.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ln.node=!0,Ln.svgSupported=!0):oE(navigator.userAgent,Ln);function oE(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(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);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}const zt=Ln;var gm=12,HA="sans-serif",ln=gm+"px "+HA,sE=20,lE=100,uE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function fE(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-sE)/lE;e[a]=n}return e}var vE=fE(uE),na={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=na.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||ln),r.measureText(t);t=t||"",a=a||ln;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||gm,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=vE[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},WA=Oa(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),$A=Oa(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Ns=Object.prototype.toString,Vc=Array.prototype,cE=Vc.forEach,hE=Vc.filter,ym=Vc.slice,dE=Vc.map,$_=function(){}.constructor,Ku=$_?$_.prototype:null,mm="__proto__",pE=2311;function UA(){return pE++}function _m(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ut(r){if(r==null||typeof r!="object")return r;var e=r,t=Ns.call(r);if(t==="[object Array]"){if(!$l(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=ut(r[a])}}else if($A[t]){if(!$l(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!WA[t]&&!$l(r)&&!bs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==mm&&(e[o]=ut(r[o]))}return e}function wt(r,e,t){if(!dt(e)||!dt(r))return t?ut(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==mm){var n=r[a],i=e[a];dt(i)&&dt(n)&&!U(i)&&!U(n)&&!bs(i)&&!bs(n)&&!U_(i)&&!U_(n)&&!$l(i)&&!$l(n)?wt(n,i,t):(t||!(a in r))&&(r[a]=ut(e[a]))}return r}function Sm(r,e){for(var t=r[0],a=1,n=r.length;a<n;a++)t=wt(t,r[a],e);return t}function $(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==mm&&(r[t]=e[t]);return r}function ht(r,e,t){for(var a=Pt(e),n=0,i=a.length;n<i;n++){var o=a[n];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}function bt(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,a=r.length;t<a;t++)if(r[t]===e)return t}return-1}function gE(r,e){var t=r.prototype;function a(){}a.prototype=e.prototype,r.prototype=new a;for(var n in t)t.hasOwnProperty(n)&&(r.prototype[n]=t[n]);r.prototype.constructor=r,r.superClass=e}function we(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var a=Object.getOwnPropertyNames(e),n=0;n<a.length;n++){var i=a[n];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else ht(r,e,t)}function Je(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function A(r,e,t){if(r&&e)if(r.forEach&&r.forEach===cE)r.forEach(e,t);else if(r.length===+r.length)for(var a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Z(r,e,t){if(!r)return[];if(!e)return xm(r);if(r.map&&r.map===dE)return r.map(e,t);for(var a=[],n=0,i=r.length;n<i;n++)a.push(e.call(t,r[n],n,r));return a}function Oa(r,e,t,a){if(r&&e){for(var n=0,i=r.length;n<i;n++)t=e.call(a,t,r[n],n,r);return t}}function $t(r,e,t){if(!r)return[];if(!e)return xm(r);if(r.filter&&r.filter===hE)return r.filter(e,t);for(var a=[],n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r)&&a.push(r[n]);return a}function mo(r,e,t){if(r&&e){for(var a=0,n=r.length;a<n;a++)if(e.call(t,r[a],a,r))return r[a]}}function Pt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function yE(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return function(){return r.apply(e,t.concat(ym.call(arguments)))}}var Q=Ku&&lt(Ku.bind)?Ku.call.bind(Ku.bind):yE;function xt(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(ym.call(arguments)))}}function U(r){return Array.isArray?Array.isArray(r):Ns.call(r)==="[object Array]"}function lt(r){return typeof r=="function"}function J(r){return typeof r=="string"}function og(r){return Ns.call(r)==="[object String]"}function Rt(r){return typeof r=="number"}function dt(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function U_(r){return!!WA[Ns.call(r)]}function pr(r){return!!$A[Ns.call(r)]}function bs(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Gc(r){return r.colorStops!=null}function mE(r){return r.image!=null}function _E(r){return Ns.call(r)==="[object RegExp]"}function je(r){return r!==r}function Ue(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,a=r.length;t<a;t++)if(r[t]!=null)return r[t]}function nt(r,e){return r??e}function wr(r,e,t){return r??e??t}function xm(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ym.apply(r,e)}function Fc(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function Qe(r,e){if(!r)throw new Error(e)}function Fr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var YA="__ec_primitive__";function kv(r){r[YA]=!0}function $l(r){return r[YA]}var SE=function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Pt(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var a in t)t.hasOwnProperty(a)&&e(t[a],a)},r}(),ZA=typeof Map=="function";function xE(){return ZA?new Map:new SE}var bE=function(){function r(e){var t=U(e);this.data=xE();var a=this;e instanceof r?e.each(n):e&&A(e,n);function n(i,o){t?a.set(i,o):a.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(a,n){e.call(t,a,n)})},r.prototype.keys=function(){var e=this.data.keys();return ZA?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function at(r){return new bE(r)}function au(r,e){for(var t=new r.constructor(r.length+e.length),a=0;a<r.length;a++)t[a]=r[a];for(var n=r.length,a=0;a<e.length;a++)t[a+n]=e[a];return t}function Hc(r,e){var t;if(Object.create)t=Object.create(r);else{var a=function(){};a.prototype=r,t=new a}return e&&$(t,e),t}function XA(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function rt(r,e){return r.hasOwnProperty(e)}function pe(){}var vv=180/Math.PI;function _o(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function rr(r,e){return r[0]=e[0],r[1]=e[1],r}function rn(r){return[r[0],r[1]]}function bm(r,e,t){return r[0]=e,r[1]=t,r}function Y_(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function sg(r,e,t,a){return r[0]=e[0]+t[0]*a,r[1]=e[1]+t[1]*a,r}function $i(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function lg(r){return Math.sqrt(wE(r))}function wE(r){return r[0]*r[0]+r[1]*r[1]}function cv(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function Bs(r,e){var t=lg(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function ug(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var En=ug;function TE(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var Ji=TE;function hv(r,e,t,a){return r[0]=e[0]+a*(t[0]-e[0]),r[1]=e[1]+a*(t[1]-e[1]),r}function ge(r,e,t){var a=e[0],n=e[1];return r[0]=t[0]*a+t[2]*n+t[4],r[1]=t[1]*a+t[3]*n+t[5],r}function On(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Nn(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var ko=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),CE=function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.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 ko(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var a=e.offsetX,n=e.offsetY,i=a-this._x,o=n-this._y;this._x=a,this._y=n,t.drift(i,o,e),this.handler.dispatchToElement(new ko(t,e),"drag",e.event);var s=this.handler.findHover(a,n,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ko(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new ko(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new ko(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new ko(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const AE=CE;var ME=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,a,n){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(n=a,a=t,t=null),!a||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===a)return this;var l={h:a,query:t,ctx:n||this,callAtLast:a.zrEventfulCallAtLast},u=i[e].length-1,f=i[e][u];return f&&f.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var a=this._$handlers;if(!a)return this;if(!e)return this._$handlers={},this;if(t){if(a[e]){for(var n=[],i=0,o=a[e].length;i<o;i++)a[e][i].h!==t&&n.push(a[e][i]);a[e]=n}a[e]&&a[e].length===0&&delete a[e]}else delete a[e];return this},r.prototype.trigger=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){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 i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!this._$handlers)return this;var n=this._$handlers[e],i=this._$eventProcessor;if(n)for(var o=t.length,s=t[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(i&&i.filter&&f.query!=null&&!i.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r}();const Yr=ME;var DE=Math.log(2);function fg(r,e,t,a,n,i){var o=a+"-"+n,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/DE);return r[t][l]}for(var u=a|1<<t,f=t+1;a&1<<f;)f++;for(var v=0,c=0,h=0;c<s;c++){var d=1<<c;d&n||(v+=(h%2?-1:1)*r[t][c]*fg(r,e-1,f,u,n|d,i),h++)}return i[o]=v,v}function Z_(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],a={},n=fg(t,8,0,0,0,a);if(n!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*fg(t,7,o===0?1:0,1<<o,1<<s,a)/n*e[o];return function(l,u,f){var v=u*i[6]+f*i[7]+1;l[0]=(u*i[0]+f*i[1]+i[2])/v,l[1]=(u*i[3]+f*i[4]+i[5])/v}}}var Ev="___zrEVENTSAVED",Lh=[];function LE(r,e,t,a,n){return vg(Lh,e,a,n,!0)&&vg(r,t,Lh[0],Lh[1])}function IE(r,e){r&&t(r),e&&t(e);function t(a){var n=a[Ev];n&&(n.clearMarkers&&n.clearMarkers(),delete a[Ev])}}function vg(r,e,t,a,n){if(e.getBoundingClientRect&&zt.domSupported&&!qA(e)){var i=e[Ev]||(e[Ev]={}),o=PE(e,i),s=RE(o,i,n);if(s)return s(r,t,a),!0}return!1}function PE(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var a=["left","right"],n=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",a[l]+":0",n[u]+":0",a[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){A(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function RE(r,e,t){for(var a=t?"invTrans":"trans",n=e[a],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),v=2*u,c=f.left,h=f.top;o.push(c,h),l=l&&i&&c===i[v]&&h===i[v+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[a]=t?Z_(s,o):Z_(o,s))}function qA(r){return r.nodeName.toUpperCase()==="CANVAS"}var kE=/([&<>"'])/g,EE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ke(r){return r==null?"":(r+"").replace(kE,function(e,t){return EE[t]})}var OE=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ih=[],NE=zt.browser.firefox&&+zt.browser.version.split(".")[0]<39;function cg(r,e,t,a){return t=t||{},a?X_(r,e,t):NE&&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):X_(r,e,t),t}function X_(r,e,t){if(zt.domSupported&&r.getBoundingClientRect){var a=e.clientX,n=e.clientY;if(qA(r)){var i=r.getBoundingClientRect();t.zrX=a-i.left,t.zrY=n-i.top;return}else if(vg(Ih,r,a,n)){t.zrX=Ih[0],t.zrY=Ih[1];return}}t.zrX=t.zrY=0}function wm(r){return r||window.event}function kr(r,e,t){if(e=wm(e),e.zrX!=null)return e;var a=e.type,n=a&&a.indexOf("touch")>=0;if(n){var o=a!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&cg(r,o,e,t)}else{cg(r,e,e,t);var i=BE(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&OE.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function BE(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,a=r.deltaY;if(t==null||a==null)return e;var n=Math.abs(a!==0?a:t),i=a>0?-1:a<0?1:t>0?-1:1;return 3*n*i}function hg(r,e,t,a){r.addEventListener(e,t,a)}function zE(r,e,t,a){r.removeEventListener(e,t,a)}var un=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function q_(r){return r.which===2||r.which===3}var VE=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,a){return this._doTrack(e,t,a),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,a){var n=e.touches;if(n){for(var i={points:[],touches:[],target:t,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=cg(a,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Ph)if(Ph.hasOwnProperty(t)){var a=Ph[t](this._track,e);if(a)return a}},r}();function K_(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function GE(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ph={pinch:function(r,e){var t=r.length;if(t){var a=(r[t-1]||{}).points,n=(r[t-2]||{}).points||a;if(n&&n.length>1&&a&&a.length>1){var i=K_(a)/K_(n);!isFinite(i)&&(i=1),e.pinchScale=i;var o=GE(a);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function Ge(){return[1,0,0,1,0,0]}function Wc(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function $c(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Pa(r,e,t){var a=e[0]*t[0]+e[2]*t[1],n=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=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 r[0]=a,r[1]=n,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function Na(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function ni(r,e,t,a){a===void 0&&(a=[0,0]);var n=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),v=Math.cos(t);return r[0]=n*v+s*f,r[1]=-n*f+s*v,r[2]=i*v+l*f,r[3]=-i*f+v*l,r[4]=v*(o-a[0])+f*(u-a[1])+a[0],r[5]=v*(u-a[1])-f*(o-a[0])+a[1],r}function Tm(r,e,t){var a=t[0],n=t[1];return r[0]=e[0]*a,r[1]=e[1]*n,r[2]=e[2]*a,r[3]=e[3]*n,r[4]=e[4]*a,r[5]=e[5]*n,r}function ia(r,e){var t=e[0],a=e[2],n=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*a;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-a*l,r[3]=t*l,r[4]=(a*s-o*n)*l,r[5]=(i*n-t*s)*l,r):null}function FE(r){var e=Ge();return $c(e,r),e}var HE=function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,a=this.y-e.y;return Math.sqrt(t*t+a*a)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,a=this.y-e.y;return t*t+a*a},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,a=this.y;return this.x=e[0]*t+e[2]*a+e[4],this.y=e[1]*t+e[3]*a+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,a){e.x=t,e.y=a},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,a){e.x=t.x+a.x,e.y=t.y+a.y},r.sub=function(e,t,a){e.x=t.x-a.x,e.y=t.y-a.y},r.scale=function(e,t,a){e.x=t.x*a,e.y=t.y*a},r.scaleAndAdd=function(e,t,a,n){e.x=t.x+a.x*n,e.y=t.y+a.y*n},r.lerp=function(e,t,a,n){var i=1-n;e.x=i*t.x+n*a.x,e.y=i*t.y+n*a.y},r}();const ct=HE;var Ui=Math.min,us=Math.max,dg=Math.abs,j_=["x","y"],WE=["width","height"],li=new ct,ui=new ct,fi=new ct,vi=new ct,_r=KA(),Pl=_r.minTv,pg=_r.maxTv,Ul=[0,0],Cm=function(){function r(e,t,a,n){r.set(this,e,t,a,n)}return r.set=function(e,t,a,n,i){return n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),e.x=t,e.y=a,e.width=n,e.height=i,e},r.prototype.union=function(e){var t=Ui(e.x,this.x),a=Ui(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=us(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=us(e.y+e.height,this.y+this.height)-a:this.height=e.height,this.x=t,this.y=a},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,a=e.width/t.width,n=e.height/t.height,i=Ge();return Na(i,i,[-t.x,-t.y]),Tm(i,i,[a,n]),Na(i,i,[e.x,e.y]),i},r.prototype.intersect=function(e,t,a){return r.intersect(this,e,t,a)},r.intersect=function(e,t,a,n){a&&ct.set(a,0,0);var i=n&&n.outIntersectRect||null,o=n&&n.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=r.set($E,e.x,e.y,e.width,e.height)),t instanceof r||(t=r.set(UE,t.x,t.y,t.width,t.height));var s=!!a;_r.reset(n,s);var l=_r.touchThreshold,u=e.x+l,f=e.x+e.width-l,v=e.y+l,c=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>f||v>c||h>d||p>g)return!1;var y=!(f<h||d<u||c<p||g<v);return(s||i)&&(Ul[0]=1/0,Ul[1]=0,J_(u,f,h,d,0,s,i,o),J_(v,c,p,g,1,s,i,o),s&&ct.copy(a,y?_r.useDir?_r.dirMinTv:Pl:pg)),y},r.contain=function(e,t,a){return t>=e.x&&t<=e.x+e.width&&a>=e.y&&a<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e.x,e.y,e.width,e.height)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,a){if(!a){e!==t&&r.copy(e,t);return}if(a[1]<1e-5&&a[1]>-1e-5&&a[2]<1e-5&&a[2]>-1e-5){var n=a[0],i=a[3],o=a[4],s=a[5];e.x=t.x*n+o,e.y=t.y*i+s,e.width=t.width*n,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}li.x=fi.x=t.x,li.y=vi.y=t.y,ui.x=vi.x=t.x+t.width,ui.y=fi.y=t.y+t.height,li.transform(a),vi.transform(a),ui.transform(a),fi.transform(a),e.x=Ui(li.x,ui.x,fi.x,vi.x),e.y=Ui(li.y,ui.y,fi.y,vi.y);var l=us(li.x,ui.x,fi.x,vi.x),u=us(li.y,ui.y,fi.y,vi.y);e.width=l-e.x,e.height=u-e.y},r}(),$E=new Cm(0,0,0,0),UE=new Cm(0,0,0,0);function J_(r,e,t,a,n,i,o,s){var l=dg(e-t),u=dg(a-r),f=Ui(l,u),v=j_[n],c=j_[1-n],h=WE[n];e<t||a<r?l<u?(i&&(pg[v]=-l),s&&(o[v]=e,o[h]=0)):(i&&(pg[v]=u),s&&(o[v]=r,o[h]=0)):(o&&(o[v]=us(r,t),o[h]=Ui(e,a)-o[v]),i&&(f<Ul[0]||_r.useDir)&&(Ul[0]=Ui(f,Ul[0]),(l<u||!_r.bidirectional)&&(Pl[v]=l,Pl[c]=0,_r.useDir&&_r.calcDirMTV()),(l>=u||!_r.bidirectional)&&(Pl[v]=-u,Pl[c]=0,_r.useDir&&_r.calcDirMTV())))}function KA(){var r=0,e=new ct,t=new ct,a={minTv:new ct,maxTv:new ct,useDir:!1,dirMinTv:new ct,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){a.touchThreshold=0,i&&i.touchThreshold!=null&&(a.touchThreshold=us(0,i.touchThreshold)),a.negativeSize=!1,o&&(a.minTv.set(1/0,1/0),a.maxTv.set(0,0),a.useDir=!1,i&&i.direction!=null&&(a.useDir=!0,a.dirMinTv.copy(a.minTv),t.copy(a.minTv),r=i.direction,a.bidirectional=i.bidirectional==null||!!i.bidirectional,a.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=a.minTv,o=a.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),f=l*i.y+u*i.x;if(n(f)){n(i.x)&&n(i.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,n(t.x)&&n(t.y)){o.set(0,0);return}(a.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function n(i){return dg(i)<1e-10}return a}const gt=Cm;var jA="silent";function YE(r,e,t){return{type:r,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:ZE}}function ZE(){un(this.event)}var XE=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Yr),Qs=function(){function r(e,t){this.x=e,this.y=t}return r}(),qE=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rh=new gt(0,0,0,0),JA=function(r){B(e,r);function e(t,a,n,i,o){var s=r.call(this)||this;return s._hovered=new Qs(0,0),s.storage=t,s.painter=a,s.painterRoot=i,s._pointerSize=o,n=n||new XE,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new AE(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(A(qE,function(a){t.on&&t.on(a,this[a],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var a=t.zrX,n=t.zrY,i=QA(this,a,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Qs(a,n):this.findHover(a,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var a=t.zrEventControl;a!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),a!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Qs(0,0)},e.prototype.dispatch=function(t,a){var n=this[t];n&&n.call(this,a)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var a=this.proxy;a.setCursor&&a.setCursor(t)},e.prototype.dispatchToElement=function(t,a,n){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+a,s=YE(a,t,n);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(a,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(a,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(a,s)}))}},e.prototype.findHover=function(t,a,n){var i=this.storage.getDisplayList(),o=new Qs(t,a);if(Q_(i,o,t,a,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new gt(t-u,a-u,l,l),v=i.length-1;v>=0;v--){var c=i[v];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Rh.copy(c.getBoundingRect()),c.transform&&Rh.applyTransform(c.transform),Rh.intersect(f)&&s.push(c))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<p;y+=d){var m=t+g*Math.cos(y),_=a+g*Math.sin(y);if(Q_(s,o,m,_,n),o.target)return o}}return o},e.prototype.processGesture=function(t,a){this._gestureMgr||(this._gestureMgr=new VE);var n=this._gestureMgr;a==="start"&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(a==="end"&&n.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Qs;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e}(Yr);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){JA.prototype[r]=function(e){var t=e.zrX,a=e.zrY,n=QA(this,t,a),i,o;if((r!=="mouseup"||!n)&&(i=this.findHover(t,a),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||En(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function KE(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var a=r,n=void 0,i=!1;a;){if(a.ignoreClip&&(i=!0),!i){var o=a.getClipPath();if(o&&!o.contain(e,t))return!1}a.silent&&(n=!0);var s=a.__hostTarget;a=s?a.ignoreHostSilent?null:s:a.parent}return n?jA:!0}return!1}function Q_(r,e,t,a,n){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==n&&!o.ignore&&(s=KE(o,t,a))&&(!e.topTarget&&(e.topTarget=o),s!==jA)){e.target=o;break}}}function QA(r,e,t){var a=r.painter;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}const jE=JA;var tM=32,tl=7;function JE(r){for(var e=0;r>=tM;)e|=r&1,r>>=1;return r+e}function t1(r,e,t,a){var n=e+1;if(n===t)return 1;if(a(r[n++],r[e])<0){for(;n<t&&a(r[n],r[n-1])<0;)n++;QE(r,e,n)}else for(;n<t&&a(r[n],r[n-1])>=0;)n++;return n-e}function QE(r,e,t){for(t--;e<t;){var a=r[e];r[e++]=r[t],r[t--]=a}}function e1(r,e,t,a,n){for(a===e&&a++;a<t;a++){for(var i=r[a],o=e,s=a,l;o<s;)l=o+s>>>1,n(i,r[l])<0?s=l:o=l+1;var u=a-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function kh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])>0){for(s=a-n;l<s&&i(r,e[t+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&i(r,e[t+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])>0?o=f+1:l=f}return l}function Eh(r,e,t,a,n,i){var o=0,s=0,l=1;if(i(r,e[t+n])<0){for(s=n+1;l<s&&i(r,e[t+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=a-n;l<s&&i(r,e[t+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);i(r,e[t+f])<0?l=f:o=f+1}return l}function tO(r,e){var t=tl,a,n,i=0,o=[];a=[],n=[];function s(h,d){a[i]=h,n[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&n[h-1]<=n[h]+n[h+1]||h>=2&&n[h-2]<=n[h]+n[h-1])n[h-1]<n[h+1]&&h--;else if(n[h]>n[h+1])break;f(h)}}function u(){for(;i>1;){var h=i-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var d=a[h],p=n[h],g=a[h+1],y=n[h+1];n[h]=p+y,h===i-3&&(a[h+1]=a[h+2],n[h+1]=n[h+2]),i--;var m=Eh(r[g],r,d,p,0,e);d+=m,p-=m,p!==0&&(y=kh(r[d+p-1],r,g,y,y-1,e),y!==0&&(p<=y?v(d,p,g,y):c(d,p,g,y)))}function v(h,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[h+y];var m=0,_=p,S=h;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=t,x,w,T;;){x=0,w=0,T=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,w=0,--d===1){T=!0;break}while((x|w)<b);if(T)break;do{if(x=Eh(r[_],o,m,d,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(w=kh(o[m],r,_,g,0,e),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}b--}while(x>=tl||w>=tl);if(T)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(h,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=h+d-1,_=g-1,S=p+g-1,b=0,x=0;if(r[S--]=r[m--],--d===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=t;;){var T=0,C=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){M=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){M=!0;break}while((T|C)<w);if(M)break;do{if(T=d-Eh(o[_],r,h,d,d-1,e),T!==0){for(S-=T,m-=T,d-=T,x=S+1,b=m+1,y=T-1;y>=0;y--)r[x+y]=r[b+y];if(d===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(C=g-kh(r[m],o,0,g,g-1,e),C!==0){for(S-=C,_-=C,g-=C,x=S+1,b=_+1,y=0;y<C;y++)r[x+y]=o[b+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--d===0){M=!0;break}w--}while(T>=tl||C>=tl);if(M)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),g===1){for(S-=d,m-=d,x=S+1,b=m+1,y=d-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function dv(r,e,t,a){t||(t=0),a||(a=r.length);var n=a-t;if(!(n<2)){var i=0;if(n<tM){i=t1(r,t,a,e),e1(r,t,a,t+i,e);return}var o=tO(r,e),s=JE(n);do{if(i=t1(r,t,a,e),i<s){var l=n;l>s&&(l=s),e1(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),n-=i,t+=i}while(n!==0);o.forceMergeRuns()}}var Sr=1,Rl=2,is=4,r1=!1;function Oh(){r1||(r1=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function a1(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var eO=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=a1}return r.prototype.traverse=function(e,t){for(var a=0;a<this._roots.length;a++)this._roots[a].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var a=this._displayList;return(e||!a.length)&&this.updateDisplayList(t),a},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,a=this._displayList,n=0,i=t.length;n<i;n++)this._updateAndAddDisplayable(t[n],null,e);a.length=this._displayListLen,dv(a,a1)},r.prototype._updateAndAddDisplayable=function(e,t,a){if(!(e.ignore&&!a)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||n)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=n,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var v=e.childrenRef(),c=0;c<v.length;c++){var h=v[c];e.__dirty&&(h.__dirty|=Sr),this._updateAndAddDisplayable(h,s,a)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(Oh(),d.z=0),isNaN(d.z2)&&(Oh(),d.z2=0),isNaN(d.zlevel)&&(Oh(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,a);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,a);var y=e.getTextContent();y&&this._updateAndAddDisplayable(y,s,a)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,a=e.length;t<a;t++)this.delRoot(e[t]);return}var n=bt(this._roots,e);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}();const rO=eO;var eM;eM=zt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const gg=eM;var pv={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)))},elasticOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/a)+1)},elasticInOut:function(r){var e,t=.1,a=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=a/4):e=a*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/a)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-pv.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?pv.bounceIn(r*2)*.5:pv.bounceOut(r*2-1)*.5+.5}};const rM=pv;var ju=Math.pow,Wn=Math.sqrt,Ov=1e-8,aM=1e-4,n1=Wn(3),Ju=1/3,ba=_o(),Br=_o(),ys=_o();function Bn(r){return r>-Ov&&r<Ov}function nM(r){return r>Ov||r<-Ov}function Re(r,e,t,a,n){var i=1-n;return i*i*(i*r+3*n*e)+n*n*(n*a+3*i*t)}function i1(r,e,t,a,n){var i=1-n;return 3*(((e-r)*i+2*(t-e)*n)*i+(a-t)*n*n)}function Nv(r,e,t,a,n,i){var o=a+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-n,f=s*s-3*o*l,v=s*l-9*o*u,c=l*l-3*s*u,h=0;if(Bn(f)&&Bn(v))if(Bn(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=v*v-4*f*c;if(Bn(p)){var g=v/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y)}else if(p>0){var m=Wn(p),_=f*s+1.5*o*(-v+m),S=f*s+1.5*o*(-v-m);_<0?_=-ju(-_,Ju):_=ju(_,Ju),S<0?S=-ju(-S,Ju):S=ju(S,Ju);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var b=(2*f*s-3*o*v)/(2*Wn(f*f*f)),x=Math.acos(b)/3,w=Wn(f),T=Math.cos(x),d=(-s-2*w*T)/(3*o),y=(-s+w*(T+n1*Math.sin(x)))/(3*o),C=(-s+w*(T-n1*Math.sin(x)))/(3*o);d>=0&&d<=1&&(i[h++]=d),y>=0&&y<=1&&(i[h++]=y),C>=0&&C<=1&&(i[h++]=C)}}return h}function iM(r,e,t,a,n){var i=6*t-12*e+6*r,o=9*e+3*a-3*r-9*t,s=3*e-3*r,l=0;if(Bn(o)){if(nM(i)){var u=-s/i;u>=0&&u<=1&&(n[l++]=u)}}else{var f=i*i-4*o*s;if(Bn(f))n[0]=-i/(2*o);else if(f>0){var v=Wn(f),u=(-i+v)/(2*o),c=(-i-v)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Kn(r,e,t,a,n,i){var o=(e-r)*n+r,s=(t-e)*n+e,l=(a-t)*n+t,u=(s-o)*n+o,f=(l-s)*n+s,v=(f-u)*n+u;i[0]=r,i[1]=o,i[2]=u,i[3]=v,i[4]=v,i[5]=f,i[6]=l,i[7]=a}function oM(r,e,t,a,n,i,o,s,l,u,f){var v,c=.005,h=1/0,d,p,g,y;ba[0]=l,ba[1]=u;for(var m=0;m<1;m+=.05)Br[0]=Re(r,t,n,o,m),Br[1]=Re(e,a,i,s,m),g=Ji(ba,Br),g<h&&(v=m,h=g);h=1/0;for(var _=0;_<32&&!(c<aM);_++)d=v-c,p=v+c,Br[0]=Re(r,t,n,o,d),Br[1]=Re(e,a,i,s,d),g=Ji(Br,ba),d>=0&&g<h?(v=d,h=g):(ys[0]=Re(r,t,n,o,p),ys[1]=Re(e,a,i,s,p),y=Ji(ys,ba),p<=1&&y<h?(v=p,h=y):c*=.5);return f&&(f[0]=Re(r,t,n,o,v),f[1]=Re(e,a,i,s,v)),Wn(h)}function aO(r,e,t,a,n,i,o,s,l){for(var u=r,f=e,v=0,c=1/l,h=1;h<=l;h++){var d=h*c,p=Re(r,t,n,o,d),g=Re(e,a,i,s,d),y=p-u,m=g-f;v+=Math.sqrt(y*y+m*m),u=p,f=g}return v}function Ve(r,e,t,a){var n=1-a;return n*(n*r+2*a*e)+a*a*t}function yg(r,e,t,a){return 2*((1-a)*(e-r)+a*(t-e))}function nO(r,e,t,a,n){var i=r-2*e+t,o=2*(e-r),s=r-a,l=0;if(Bn(i)){if(nM(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*i*s;if(Bn(f)){var u=-o/(2*i);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var v=Wn(f),u=(-o+v)/(2*i),c=(-o-v)/(2*i);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function sM(r,e,t){var a=r+t-2*e;return a===0?.5:(r-e)/a}function nu(r,e,t,a,n){var i=(e-r)*a+r,o=(t-e)*a+e,s=(o-i)*a+i;n[0]=r,n[1]=i,n[2]=s,n[3]=s,n[4]=o,n[5]=t}function lM(r,e,t,a,n,i,o,s,l){var u,f=.005,v=1/0;ba[0]=o,ba[1]=s;for(var c=0;c<1;c+=.05){Br[0]=Ve(r,t,n,c),Br[1]=Ve(e,a,i,c);var h=Ji(ba,Br);h<v&&(u=c,v=h)}v=1/0;for(var d=0;d<32&&!(f<aM);d++){var p=u-f,g=u+f;Br[0]=Ve(r,t,n,p),Br[1]=Ve(e,a,i,p);var h=Ji(Br,ba);if(p>=0&&h<v)u=p,v=h;else{ys[0]=Ve(r,t,n,g),ys[1]=Ve(e,a,i,g);var y=Ji(ys,ba);g<=1&&y<v?(u=g,v=y):f*=.5}}return l&&(l[0]=Ve(r,t,n,u),l[1]=Ve(e,a,i,u)),Wn(v)}function iO(r,e,t,a,n,i,o){for(var s=r,l=e,u=0,f=1/o,v=1;v<=o;v++){var c=v*f,h=Ve(r,t,n,c),d=Ve(e,a,i,c),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var oO=/cubic-bezier\(([0-9,\.e ]+)\)/;function Am(r){var e=r&&oO.exec(r);if(e){var t=e[1].split(","),a=+Fr(t[0]),n=+Fr(t[1]),i=+Fr(t[2]),o=+Fr(t[3]);if(isNaN(a+n+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Nv(0,a,i,1,l,s)&&Re(0,n,o,1,s[0])}}}var sO=function(){function r(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||pe,this.ondestroy=e.ondestroy||pe,this.onrestart=e.onrestart||pe,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var a=this._life,n=e-this._startTime-this._pausedTime,i=n/a;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=n%a;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=lt(e)?e:rM[e]||Am(e)},r}();const lO=sO;var uM=function(){function r(e){this.value=e}return r}(),uO=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new uM(e);return this.insertEntry(t),t},r.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++},r.prototype.remove=function(e){var t=e.prev,a=e.next;t?t.next=a:this.head=a,a?a.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),fO=function(){function r(e){this._list=new uO,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var a=this._list,n=this._map,i=null;if(n[e]==null){var o=a.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=a.head;a.remove(l),delete n[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new uM(t),s.key=e,a.insertEntry(s),n[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],a=this._list;if(t!=null)return t!==a.tail&&(a.remove(t),a.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const ws=fO;var o1={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 ea(r){return r=Math.round(r),r<0?0:r>255?255:r}function vO(r){return r=Math.round(r),r<0?0:r>360?360:r}function iu(r){return r<0?0:r>1?1:r}function Nh(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ea(parseFloat(e)/100*255):ea(parseInt(e,10))}function $n(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?iu(parseFloat(e)/100):iu(parseFloat(e))}function Bh(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function zn(r,e,t){return r+(e-r)*t}function Pr(r,e,t,a,n){return r[0]=e,r[1]=t,r[2]=a,r[3]=n,r}function mg(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var fM=new ws(20),Qu=null;function Eo(r,e){Qu&&mg(Qu,e),Qu=fM.put(r,Qu||e.slice())}function dr(r,e){if(r){e=e||[];var t=fM.get(r);if(t)return mg(e,t);r=r+"";var a=r.replace(/ /g,"").toLowerCase();if(a in o1)return mg(e,o1[a]),Eo(r,e),e;var n=a.length;if(a.charAt(0)==="#"){if(n===4||n===5){var i=parseInt(a.slice(1,4),16);if(!(i>=0&&i<=4095)){Pr(e,0,0,0,1);return}return Pr(e,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,n===5?parseInt(a.slice(4),16)/15:1),Eo(r,e),e}else if(n===7||n===9){var i=parseInt(a.slice(1,7),16);if(!(i>=0&&i<=16777215)){Pr(e,0,0,0,1);return}return Pr(e,(i&16711680)>>16,(i&65280)>>8,i&255,n===9?parseInt(a.slice(7),16)/255:1),Eo(r,e),e}return}var o=a.indexOf("("),s=a.indexOf(")");if(o!==-1&&s+1===n){var l=a.substr(0,o),u=a.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Pr(e,+u[0],+u[1],+u[2],1):Pr(e,0,0,0,1);f=$n(u.pop());case"rgb":if(u.length>=3)return Pr(e,Nh(u[0]),Nh(u[1]),Nh(u[2]),u.length===3?f:$n(u[3])),Eo(r,e),e;Pr(e,0,0,0,1);return;case"hsla":if(u.length!==4){Pr(e,0,0,0,1);return}return u[3]=$n(u[3]),_g(u,e),Eo(r,e),e;case"hsl":if(u.length!==3){Pr(e,0,0,0,1);return}return _g(u,e),Eo(r,e),e;default:return}}Pr(e,0,0,0,1)}}function _g(r,e){var t=(parseFloat(r[0])%360+360)%360/360,a=$n(r[1]),n=$n(r[2]),i=n<=.5?n*(a+1):n+a-n*a,o=n*2-i;return e=e||[],Pr(e,ea(Bh(o,i,t+1/3)*255),ea(Bh(o,i,t)*255),ea(Bh(o,i,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function cO(r){if(r){var e=r[0]/255,t=r[1]/255,a=r[2]/255,n=Math.min(e,t,a),i=Math.max(e,t,a),o=i-n,s=(i+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(i+n):u=o/(2-i-n);var f=((i-e)/6+o/2)/o,v=((i-t)/6+o/2)/o,c=((i-a)/6+o/2)/o;e===i?l=c-v:t===i?l=1/3+f-c:a===i&&(l=2/3+v-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return r[3]!=null&&h.push(r[3]),h}}function Sg(r,e){var t=dr(r);if(t){for(var a=0;a<3;a++)e<0?t[a]=t[a]*(1-e)|0:t[a]=(255-t[a])*e+t[a]|0,t[a]>255?t[a]=255:t[a]<0&&(t[a]=0);return Ra(t,t.length===4?"rgba":"rgb")}}function zh(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=e[n],s=e[i],l=a-n;return t[0]=ea(zn(o[0],s[0],l)),t[1]=ea(zn(o[1],s[1],l)),t[2]=ea(zn(o[2],s[2],l)),t[3]=iu(zn(o[3],s[3],l)),t}}function hO(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var a=r*(e.length-1),n=Math.floor(a),i=Math.ceil(a),o=dr(e[n]),s=dr(e[i]),l=a-n,u=Ra([ea(zn(o[0],s[0],l)),ea(zn(o[1],s[1],l)),ea(zn(o[2],s[2],l)),iu(zn(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:n,rightIndex:i,value:a}:u}}function Un(r,e,t,a){var n=dr(r);if(r)return n=cO(n),e!=null&&(n[0]=vO(lt(e)?e(n[0]):e)),t!=null&&(n[1]=$n(lt(t)?t(n[1]):t)),a!=null&&(n[2]=$n(lt(a)?a(n[2]):a)),Ra(_g(n),"rgba")}function Bv(r,e){var t=dr(r);if(t&&e!=null)return t[3]=iu(e),Ra(t,"rgba")}function Ra(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function zv(r,e){var t=dr(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var s1=new ws(100);function xg(r){if(J(r)){var e=s1.get(r);return e||(e=Sg(r,-.1),s1.put(r,e)),e}else if(Gc(r)){var t=$({},r);return t.colorStops=Z(r.colorStops,function(a){return{offset:a.offset,color:Sg(a.color,-.1)}}),t}return r}var Vv=Math.round;function ou(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=dr(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var l1=1e-4;function Vn(r){return r<l1&&r>-l1}function tf(r){return Vv(r*1e3)/1e3}function bg(r){return Vv(r*1e4)/1e4}function dO(r){return"matrix("+tf(r[0])+","+tf(r[1])+","+tf(r[2])+","+tf(r[3])+","+bg(r[4])+","+bg(r[5])+")"}var pO={left:"start",right:"end",center:"middle",middle:"middle"};function gO(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function yO(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function mO(r){var e=r.style,t=r.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 vM(r){return r&&!!r.image}function _O(r){return r&&!!r.svgElement}function Mm(r){return vM(r)||_O(r)}function cM(r){return r.type==="linear"}function hM(r){return r.type==="radial"}function dM(r){return r&&(r.type==="linear"||r.type==="radial")}function Uc(r){return"url(#"+r+")"}function pM(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function gM(r){var e=r.x||0,t=r.y||0,a=(r.rotation||0)*vv,n=nt(r.scaleX,1),i=nt(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),a&&l.push("rotate("+a+")"),(n!==1||i!==1)&&l.push("scale("+n+","+i+")"),(o||s)&&l.push("skew("+Vv(o*vv)+"deg, "+Vv(s*vv)+"deg)"),l.join(" ")}var SO=function(){return zt.hasGlobalWindow&&lt(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),wg=Array.prototype.slice;function ja(r,e,t){return(e-r)*t+r}function Vh(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=ja(e[i],t[i],a);return r}function xO(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=ja(e[o][s],t[o][s],a)}return r}function ef(r,e,t,a){for(var n=e.length,i=0;i<n;i++)r[i]=e[i]+t[i]*a;return r}function u1(r,e,t,a){for(var n=e.length,i=n&&e[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<i;s++)r[o][s]=e[o][s]+t[o][s]*a}return r}function bO(r,e){for(var t=r.length,a=e.length,n=t>a?e:r,i=Math.min(t,a),o=n[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(t,a);s++)n.push({offset:o.offset,color:o.color.slice()})}function wO(r,e,t){var a=r,n=e;if(!(!a.push||!n.push)){var i=a.length,o=n.length;if(i!==o){var s=i>o;if(s)a.length=o;else for(var l=i;l<o;l++)a.push(t===1?n[l]:wg.call(n[l]))}for(var u=a[0]&&a[0].length,l=0;l<a.length;l++)if(t===1)isNaN(a[l])&&(a[l]=n[l]);else for(var f=0;f<u;f++)isNaN(a[l][f])&&(a[l][f]=n[l][f])}}function Yl(r){if(Je(r)){var e=r.length;if(Je(r[0])){for(var t=[],a=0;a<e;a++)t.push(wg.call(r[a]));return t}return wg.call(r)}return r}function gv(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function TO(r){return Je(r&&r[0])?2:1}var rf=0,yv=1,yM=2,kl=3,Tg=4,Cg=5,f1=6;function v1(r){return r===Tg||r===Cg}function af(r){return r===yv||r===yM}var el=[0,0,0,0],CO=function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,a){this._needsSort=!0;var n=this.keyframes,i=n.length,o=!1,s=f1,l=t;if(Je(t)){var u=TO(t);s=u,(u===1&&!Rt(t[0])||u===2&&!Rt(t[0][0]))&&(o=!0)}else if(Rt(t)&&!je(t))s=rf;else if(J(t))if(!isNaN(+t))s=rf;else{var f=dr(t);f&&(l=f,s=kl)}else if(Gc(t)){var v=$({},l);v.colorStops=Z(t.colorStops,function(h){return{offset:h.offset,color:dr(h.color)}}),cM(t)?s=Tg:hM(t)&&(s=Cg),l=v}i===0?this.valType=s:(s!==this.valType||s===f1)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return a&&(c.easing=a,c.easingFunc=lt(a)?a:rM[a]||Am(a)),n.push(c),c},r.prototype.prepare=function(e,t){var a=this.keyframes;this._needsSort&&a.sort(function(p,g){return p.time-g.time});for(var n=this.valType,i=a.length,o=a[i-1],s=this.discrete,l=af(n),u=v1(n),f=0;f<i;f++){var v=a[f],c=v.value,h=o.value;v.percent=v.time/e,s||(l&&f!==i-1?wO(c,h,n):u&&bO(c.colorStops,h.colorStops))}if(!s&&n!==Cg&&t&&this.needsAnimate()&&t.needsAnimate()&&n===t.valType&&!t._finished){this._additiveTrack=t;for(var d=a[0].value,f=0;f<i;f++)n===rf?a[f].additiveValue=a[f].value-d:n===kl?a[f].additiveValue=ef([],a[f].value,d,-1):af(n)&&(a[f].additiveValue=n===yv?ef([],a[f].value,d,-1):u1([],a[f].value,d,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var a=this._additiveTrack!=null,n=a?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===kl,f,v=this._lastFr,c=Math.min,h,d;if(s===1)h=d=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var p=c(v+1,s-1);for(f=p;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=v;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}d=o[f+1],h=o[f]}if(h&&d){this._lastFr=f,this._lastFrP=t;var g=d.percent-h.percent,y=g===0?1:c((t-h.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=a?this._additiveValue:u?el:e[l];if((af(i)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:d.rawValue;else if(af(i))i===yv?Vh(m,h[n],d[n],y):xO(m,h[n],d[n],y);else if(v1(i)){var _=h[n],S=d[n],b=i===Tg;e[l]={type:b?"linear":"radial",x:ja(_.x,S.x,y),y:ja(_.y,S.y,y),colorStops:Z(_.colorStops,function(w,T){var C=S.colorStops[T];return{offset:ja(w.offset,C.offset,y),color:gv(Vh([],w.color,C.color,y))}}),global:S.global},b?(e[l].x2=ja(_.x2,S.x2,y),e[l].y2=ja(_.y2,S.y2,y)):e[l].r=ja(_.r,S.r,y)}else if(u)Vh(m,h[n],d[n],y),a||(e[l]=gv(m));else{var x=ja(h[n],d[n],y);a?this._additiveValue=x:e[l]=x}a&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,a=this.propName,n=this._additiveValue;t===rf?e[a]=e[a]+n:t===kl?(dr(e[a],el),ef(el,el,n,1),e[a]=gv(el)):t===yv?ef(e[a],e[a],n,1):t===yM&&u1(e[a],e[a],n,1)},r}(),Dm=function(){function r(e,t,a,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&n){_m("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=a}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,a){return this.whenWithKeys(e,t,Pt(t),a)},r.prototype.whenWithKeys=function(e,t,a,n){for(var i=this._tracks,o=0;o<a.length;o++){var s=a[o],l=i[s];if(!l){l=i[s]=new CO(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var v=f.keyframes,c=v[v.length-1];u=c&&c.value,f.valType===kl&&u&&(u=gv(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Yl(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Yl(t[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,a=0;a<t;a++)e[a].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var a=0;a<t.length;a++)t[a].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,a=0;a<t.length;a++)e[t[a]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,a=this._additiveAnimators;if(a)for(var n=0;n<a.length;n++){var i=a[n].getTrack(e);i&&(t=i)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var v=u[f-1];v&&(t._target[s.propName]=v.rawValue),s.setFinished()}else a.push(s)}if(a.length||this._force){var c=new lO({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){t._started=2;var d=t._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(t._additiveAnimators=null)}for(var g=0;g<a.length;g++)a[g].step(t._target,h);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,h)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return Z(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var a=this._tracks,n=this._trackKeys,i=0;i<e.length;i++){var o=a[e[i]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<n.length;i++)if(!a[n[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,a){if(e){t=t||this._trackKeys;for(var n=0;n<t.length;n++){var i=t[n],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[a?0:s.length-1];l&&(e[i]=Yl(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||Pt(e);for(var a=0;a<t.length;a++){var n=t[a],i=this._tracks[n];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,e[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},r}();function fs(){return new Date().getTime()}var AO=function(r){B(e,r);function e(t){var a=r.call(this)||this;return a._running=!1,a._time=0,a._pausedTime=0,a._pauseStart=0,a._paused=!1,t=t||{},a.stage=t.stage||{},a}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 a=t.getClip();a&&this.addClip(a)},e.prototype.removeClip=function(t){if(t.animation){var a=t.prev,n=t.next;a?a.next=n:this._head=n,n?n.prev=a:this._tail=a,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var a=t.getClip();a&&this.removeClip(a),t.animation=null},e.prototype.update=function(t){for(var a=fs()-this._pausedTime,n=a-this._time,i=this._head;i;){var o=i.next,s=i.step(a,n);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=a,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function a(){t._running&&(gg(a),!t._paused&&t.update())}gg(a)},e.prototype.start=function(){this._running||(this._time=fs(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=fs(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=fs()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var a=t.next;t.prev=t.next=t.animation=null,t=a}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,a){a=a||{},this.start();var n=new Dm(t,a.loop);return this.addAnimator(n),n},e}(Yr);const MO=AO;var DO=300,Gh=zt.domSupported,Fh=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},a=Z(r,function(n){var i=n.replace("mouse","pointer");return t.hasOwnProperty(i)?i:n});return{mouse:r,touch:e,pointer:a}}(),c1={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},h1=!1;function Ag(r){var e=r.pointerType;return e==="pen"||e==="touch"}function LO(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Hh(r){r&&(r.zrByTouch=!0)}function IO(r,e){return kr(r.dom,new PO(r,e),!0)}function mM(r,e){for(var t=e,a=!1;t&&t.nodeType!==9&&!(a=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return a}var PO=function(){function r(e,t){this.stopPropagation=pe,this.stopImmediatePropagation=pe,this.preventDefault=pe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),Kr={mousedown:function(r){r=kr(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=kr(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=kr(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=kr(this.dom,r);var e=r.toElement||r.relatedTarget;mM(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){h1=!0,r=kr(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){h1||(r=kr(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=kr(this.dom,r),Hh(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Kr.mousemove.call(this,r),Kr.mousedown.call(this,r)},touchmove:function(r){r=kr(this.dom,r),Hh(r),this.handler.processGesture(r,"change"),Kr.mousemove.call(this,r)},touchend:function(r){r=kr(this.dom,r),Hh(r),this.handler.processGesture(r,"end"),Kr.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<DO&&Kr.click.call(this,r)},pointerdown:function(r){Kr.mousedown.call(this,r)},pointermove:function(r){Ag(r)||Kr.mousemove.call(this,r)},pointerup:function(r){Kr.mouseup.call(this,r)},pointerout:function(r){Ag(r)||Kr.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){Kr[r]=function(e){e=kr(this.dom,e),this.trigger(r,e)}});var Mg={pointermove:function(r){Ag(r)||Mg.mousemove.call(this,r)},pointerup:function(r){Mg.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function RO(r,e){var t=e.domHandlers;zt.pointerEventsSupported?A(Fh.pointer,function(a){mv(e,a,function(n){t[a].call(r,n)})}):(zt.touchEventsSupported&&A(Fh.touch,function(a){mv(e,a,function(n){t[a].call(r,n),LO(e)})}),A(Fh.mouse,function(a){mv(e,a,function(n){n=wm(n),e.touching||t[a].call(r,n)})}))}function kO(r,e){zt.pointerEventsSupported?A(c1.pointer,t):zt.touchEventsSupported||A(c1.mouse,t);function t(a){function n(i){i=wm(i),mM(r,i.target)||(i=IO(r,i),e.domHandlers[a].call(r,i))}mv(e,a,n,{capture:!0})}}function mv(r,e,t,a){r.mounted[e]=t,r.listenerOpts[e]=a,hg(r.domTarget,e,t,a)}function Wh(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&zE(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var d1=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),EO=function(r){B(e,r);function e(t,a){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=a,n._localHandlerScope=new d1(t,Kr),Gh&&(n._globalHandlerScope=new d1(document,Mg)),RO(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Wh(this._localHandlerScope),Gh&&Wh(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,Gh&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var a=this._globalHandlerScope;t?kO(this,a):Wh(a)}},e}(Yr);const OO=EO;var _M=1;zt.hasGlobalWindow&&(_M=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Gv=_M,Dg=.4,Lg="#333",Ig="#ccc",NO="#eee",p1=Wc,g1=5e-5;function ci(r){return r>g1||r<-g1}var hi=[],Oo=[],$h=Ge(),Uh=Math.abs,BO=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return ci(this.rotation)||ci(this.x)||ci(this.y)||ci(this.scaleX-1)||ci(this.scaleY-1)||ci(this.skewX)||ci(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),a=this.transform;if(!(t||e)){a&&(p1(a),this.invTransform=null);return}a=a||Ge(),t?this.getLocalTransform(a):p1(a),e&&(t?Pa(a,e,a):$c(a,e)),this.transform=a,this._resolveGlobalScaleRatio(a)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(hi);var a=hi[0]<0?-1:1,n=hi[1]<0?-1:1,i=((hi[0]-a)*t+a)/hi[0]||0,o=((hi[1]-n)*t+n)/hi[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||Ge(),ia(this.invTransform,e)},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],a=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),i=Math.PI/2+n-Math.atan2(e[3],e[2]);a=Math.sqrt(a)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=a,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ge(),Pa(Oo,e.invTransform,t),t=Oo);var a=this.originX,n=this.originY;(a||n)&&($h[4]=a,$h[5]=n,Pa(Oo,t,$h),Oo[4]-=a,Oo[5]-=n,t=Oo),this.setLocalTransform(t)}},r.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)},r.prototype.transformCoordToLocal=function(e,t){var a=[e,t],n=this.invTransform;return n&&ge(a,a,n),a},r.prototype.transformCoordToGlobal=function(e,t){var a=[e,t],n=this.transform;return n&&ge(a,a,n),a},r.prototype.getLineScale=function(){var e=this.transform;return e&&Uh(e[0]-1)>1e-10&&Uh(e[3]-1)>1e-10?Math.sqrt(Uh(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){Fv(this,e)},r.getLocalTransform=function(e,t){t=t||[];var a=e.originX||0,n=e.originY||0,i=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,v=e.y,c=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(a||n||s||l){var d=a+s,p=n+l;t[4]=-d*i-c*p*o,t[5]=-p*o-h*d*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=h*i,t[2]=c*o,u&&ni(t,t,u),t[4]+=a+f,t[5]+=n+v,t},r.initDefaultProps=function(){var e=r.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}(),r}(),Ba=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Fv(r,e){for(var t=0;t<Ba.length;t++){var a=Ba[t];r[a]=e[a]}}const tn=BO;function ka(r){nf||(nf=new ws(100)),r=r||ln;var e=nf.get(r);return e||(e={font:r,strWidthCache:new ws(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:na.measureText("国",r).width,asciiCharWidth:na.measureText("a",r).width},nf.put(r,e)),e}var nf;function zO(r){if(!(Yh>=y1)){r=r||ln;for(var e=[],t=+new Date,a=0;a<=127;a++)e[a]=na.measureText(String.fromCharCode(a),r).width;var n=+new Date-t;return n>16?Yh=y1:n>2&&Yh++,e}}var Yh=0,y1=5;function SM(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=zO(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Ea(r,e){var t=r.strWidthCache,a=t.get(e);return a==null&&(a=na.measureText(e,r.font).width,t.put(e,a)),a}function m1(r,e,t,a){var n=Ea(ka(e),r),i=Eu(e),o=Ts(0,n,t),s=Qi(0,i,a),l=new gt(o,s,n,i);return l}function Yc(r,e,t,a){var n=((r||"")+"").split(`
`),i=n.length;if(i===1)return m1(n[0],e,t,a);for(var o=new gt(0,0,0,0),s=0;s<n.length;s++){var l=m1(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function Ts(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function Qi(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function Eu(r){return ka(r).stWideCharWidth}function oa(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Hv(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",v="top";if(a instanceof Array)l+=oa(a[0],t.width),u+=oa(a[1],t.height),f=null,v=null;else switch(a){case"left":l-=n,u+=s,f="right",v="middle";break;case"right":l+=n+o,u+=s,v="middle";break;case"top":l+=o/2,u-=n,f="center",v="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",v="middle";break;case"insideLeft":l+=n,u+=s,v="middle";break;case"insideRight":l+=o-n,u+=s,f="right",v="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",v="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=i-n,v="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",v="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=v,r}var Zh="__zr_normal__",Xh=Ba.concat(["ignore"]),VO=Oa(Ba,function(r,e){return r[e]=!0,r},{ignore:!1}),No={},GO=new gt(0,0,0,0),of=[],Lm=function(){function r(e){this.id=UA(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;i.copyTransform(t);var f=a.position!=null,v=a.autoOverflowArea,c=void 0;if((v||f)&&(c=GO,a.layoutRect?c.copy(a.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(No,a,c):Hv(No,a,c),i.x=No.x,i.y=No.y,o=No.align,s=No.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=c.width*.5,p=c.height*.5):(d=oa(h[0],c.width),p=oa(h[1],c.height)),u=!0,i.originX=-i.x+d+(n?0:c.x),i.originY=-i.y+p+(n?0:c.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(v){var m=y.overflowRect=y.overflowRect||new gt(0,0,0,0);i.getLocalTransform(of),ia(of,of),gt.copy(m,c),m.applyTransform(of)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,b=void 0,x=void 0;_&&this.canBeInsideText()?(S=a.insideFill,b=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(S),x=!0)):(S=a.outsideFill,b=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(S),x=!0)),S=S||"#000",(S!==y.fill||b!==y.stroke||x!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=b,y.autoStroke=x,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=Sr,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ig:Lg},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&dr(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,Ra(a,"rgba")},r.prototype.traverse=function(e,t){},r.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||{},$(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(dt(e))for(var a=e,n=Pt(a),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,a=0;a<this.animators.length;a++){var n=this.animators[a],i=n.__fromStateTransition;if(!(n.getLoop()||i&&i!==Zh)){var o=n.targetName,s=o?t[o]:t;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Xh)},r.prototype._savePrimaryToNormal=function(e,t,a){for(var n=0;n<a.length;n++){var i=a[n];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Zh,!1,e)},r.prototype.useState=function(e,t,a,n){var i=e===Zh,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(bt(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!i){_m("State "+e+" not exists.");return}i||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!a&&!this.__inHover&&l&&l.duration>0,l);var v=this._textContent,c=this._textGuide;return v&&v.useState(e,t,a,f),c&&c.useState(e,t,a,f),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Sr),u}}},r.prototype.useStates=function(e,t,a){if(!e.length)this.clearStates();else{var n=[],i=this.currentStates,o=e.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(e[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var v=n[o-1],c=!!(v&&v.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!t&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(e,t,c),g&&g.useStates(e,t,c),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Sr)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=bt(this.currentStates,e);if(t>=0){var a=this.currentStates.slice();a.splice(t,1),this.useStates(a)}},r.prototype.replaceState=function(e,t,a){var n=this.currentStates.slice(),i=bt(n,e),o=bt(n,t)>=0;i>=0?o?n.splice(i,1):n[i]=t:a&&!o&&n.push(t),this.useStates(n)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},a,n=0;n<e.length;n++){var i=e[n];$(t,i),i.textConfig&&(a=a||{},$(a,i.textConfig))}return a&&(t.textConfig=a),t},r.prototype._applyStateObj=function(e,t,a,n,i,o){var s=!(t&&n);t&&t.textConfig?(this.textConfig=$({},n?this.textConfig:a.textConfig),$(this.textConfig,t.textConfig)):s&&a.textConfig&&(this.textConfig=a.textConfig);for(var l={},u=!1,f=0;f<Xh.length;f++){var v=Xh[f],c=i&&VO[v];t&&t[v]!=null?c?(u=!0,l[v]=t[v]):this[v]=t[v]:s&&a[v]!=null&&(c?(u=!0,l[v]=a[v]):this[v]=a[v])}if(!i)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],d=h.targetName;h.getLoop()||h.__changeFinalValue(d?(t||a)[d]:t||a)}u&&this._transitionState(e,l,o)},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new tn,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),$(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=Sr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,a=this._textGuide;t&&(t.__inHover=e),a&&(a.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.addAnimator(t[a]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var a=0;a<t.length;a++)e.animation.removeAnimator(t[a]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,a){var n=e?this[e]:this,i=new Dm(n,t,a);return e&&(i.targetName=e),this.addAnimator(i,e),i},r.prototype.addAnimator=function(e,t){var a=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(t)}).done(function(){var i=n.animators,o=bt(i,e);o>=0&&i.splice(o,1)}),this.animators.push(e),a&&a.animation.addAnimator(e),a&&a.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var a=this.animators,n=a.length,i=[],o=0;o<n;o++){var s=a[o];!e||e===s.scope?s.stop(t):i.push(s)}return this.animators=i,this},r.prototype.animateTo=function(e,t,a){qh(this,e,t,a)},r.prototype.animateFrom=function(e,t,a){qh(this,e,t,a,!0)},r.prototype._transitionState=function(e,t,a,n){for(var i=qh(this,t,a,n),o=0;o<i.length;o++)i[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Sr;function t(a,n,i,o){Object.defineProperty(e,a,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[i]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[i]},set:function(f){l[i]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();we(Lm,Yr);we(Lm,tn);function qh(r,e,t,a,n){t=t||{};var i=[];xM(r,"",r,e,t,a,i,n);var o=i.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},v=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&t.during&&i[0].during(function(d,p){t.during(p)});for(var c=0;c<i.length;c++){var h=i[c];f&&h.done(f),v&&h.aborted(v),t.force&&h.duration(t.duration),h.start(t.easing)}return i}function Kh(r,e,t){for(var a=0;a<t;a++)r[a]=e[a]}function FO(r){return Je(r[0])}function HO(r,e,t){if(Je(e[t]))if(Je(r[t])||(r[t]=[]),pr(e[t])){var a=e[t].length;r[t].length!==a&&(r[t]=new e[t].constructor(a),Kh(r[t],e[t],a))}else{var n=e[t],i=r[t],o=n.length;if(FO(n))for(var s=n[0].length,l=0;l<o;l++)i[l]?Kh(i[l],n[l],s):i[l]=Array.prototype.slice.call(n[l]);else Kh(i,n,o);i.length=n.length}else r[t]=e[t]}function WO(r,e){return r===e||Je(r)&&Je(e)&&$O(r,e)}function $O(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++)if(r[a]!==e[a])return!1;return!0}function xM(r,e,t,a,n,i,o,s){for(var l=Pt(a),u=n.duration,f=n.delay,v=n.additive,c=n.setToFinal,h=!dt(i),d=r.animators,p=[],g=0;g<l.length;g++){var y=l[g],m=a[y];if(m!=null&&t[y]!=null&&(h||i[y]))if(dt(m)&&!Je(m)&&!Gc(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}xM(r,y,t[y],m,n,i&&i[y],o,s)}else p.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),p.push(y))}var _=p.length;if(!v&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===e){var x=b.stopTracks(p);if(x){var w=bt(d,b);d.splice(w,1)}}}if(n.force||(p=$t(p,function(D){return!WO(a[D],t[D])}),_=p.length),_>0||n.force&&!o.length){var T=void 0,C=void 0,M=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=t[y],c?T[y]=a[y]:t[y]=a[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=p[S];M[y]=Yl(t[y]),HO(t,a,y)}}var b=new Dm(t,!1,!1,v?$t(d,function(I){return I.targetName===e}):null);b.targetName=e,n.scope&&(b.scope=n.scope),c&&T&&b.whenWithKeys(0,T,p),M&&b.whenWithKeys(0,M,p),b.whenWithKeys(u??500,s?C:a,p).delay(f||0),r.addAnimator(b,e),o.push(b)}}const bM=Lm;var wM=function(r){B(e,r);function e(t){var a=r.call(this)||this;return a.isGroup=!0,a._children=[],a.attr(t),a}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 a=this._children,n=0;n<a.length;n++)if(a[n].name===t)return a[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,a){if(t&&t!==this&&t.parent!==this&&a&&a.parent===this){var n=this._children,i=n.indexOf(a);i>=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,a){var n=bt(this._children,t);return n>=0&&this.replaceAt(a,n),this},e.prototype.replaceAt=function(t,a){var n=this._children,i=n[a];if(t&&t!==this&&t.parent!==this&&t!==i){n[a]=t,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var a=this.__zr;a&&a!==t.__zr&&t.addSelfToZr(a),a&&a.refresh()},e.prototype.remove=function(t){var a=this.__zr,n=this._children,i=bt(n,t);return i<0?this:(n.splice(i,1),t.parent=null,a&&t.removeSelfFromZr(a),a&&a.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,a=this.__zr,n=0;n<t.length;n++){var i=t[n];a&&i.removeSelfFromZr(a),i.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,a){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(a,o,i)}return this},e.prototype.traverse=function(t,a){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(a,i);i.isGroup&&!o&&i.traverse(t,a)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++){var n=this._children[a];n.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var a=new gt(0,0,0,0),n=t||this._children,i=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(i);f?(gt.applyTransform(a,u,f),o=o||a.clone(),o.union(a)):(o=o||u.clone(),o.union(u))}}return o||a},e}(bM);wM.prototype.type="group";const ft=wM;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var _v={},TM={};function UO(r){delete TM[r]}function YO(r){if(!r)return!1;if(typeof r=="string")return zv(r,1)<Dg;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=zv(e[n].color,1);return t/=a,t<Dg}return!1}var ZO=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new rO,o=a.renderer||"canvas";_v[o]||(o=Pt(_v)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new _v[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!zt.node&&!zt.worker&&!l?new OO(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,v=f==null||f==="auto"?zt.touchEventsSupported:!!f,c=44,h;v&&(h=nt(a.pointerSize,c)),this.handler=new jE(i,s,u,s.root,h),this.animation=new MO({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=YO(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,a=fs();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=fs();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof ft&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,UO(this.id))},r}();function _1(r,e){var t=new ZO(UA(),r,e);return TM[t.id]=t,t}function XO(r,e){_v[r]=e}var Pg;function qO(r){if(typeof Pg=="function")return Pg(r)}function KO(r){Pg=r}var S1=1e-4,CM=20;function jO(r){return r.replace(/^\s+|\s+$/g,"")}var Tr=Math.min,de=Math.max,Ca=Math.abs;function Wt(r,e,t,a){var n=e[0],i=e[1],o=t[0],s=t[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var j=JO;function JO(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Wv(r,e,t)}function Wv(r,e,t){return J(r)?jO(r).match(/%$/)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function me(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),CM),r=(+r).toFixed(e),t?r:+r}function Hr(r){return r.sort(function(e,t){return e-t}),r}function Aa(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return QO(r)}function QO(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),a=t>0?+e.slice(t+1):0,n=t>0?t:e.length,i=e.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function AM(r,e){var t=Math.log,a=Math.LN10,n=Math.floor(t(r[1]-r[0])/a),i=Math.round(t(Ca(e[1]-e[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function tN(r,e){var t=Oa(r,function(h,d){return h+(isNaN(d)?0:d)},0);if(t===0)return[];for(var a=Math.pow(10,e),n=Z(r,function(h){return(isNaN(h)?0:h)/t*a*100}),i=a*100,o=Z(n,function(h){return Math.floor(h)}),s=Oa(o,function(h,d){return h+d},0),l=Z(n,function(h,d){return h-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,v=0,c=l.length;v<c;++v)l[v]>u&&(u=l[v],f=v);++o[f],l[f]=0,++s}return Z(o,function(h){return h/a})}function eN(r,e){var t=Math.max(Aa(r),Aa(e)),a=r+e;return t>CM?a:me(a,t)}var x1=9007199254740991;function MM(r){var e=Math.PI*2;return(r%e+e)%e}function su(r){return r>-S1&&r<S1}var rN=/^(?:(\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 So(r){if(r instanceof Date)return r;if(J(r)){var e=rN.exec(r);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(r==null)return new Date(NaN);return new Date(Math.round(r))}function aN(r){return Math.pow(10,Im(r))}function Im(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function DM(r,e){var t=Im(r),a=Math.pow(10,t),n=r/a,i;return e?n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10:n<1?i=1:n<2?i=2:n<3?i=3:n<5?i=5:i=10,r=i*a,t>=-20?+r.toFixed(t<0?-t:0):r}function jh(r,e){var t=(r.length-1)*e+1,a=Math.floor(t),n=+r[a-1],i=t-a;return i?n+i*(r[a]-n):n}function b1(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,i[o]=o?1:1-t),e=n[o],t=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function fn(r){var e=parseFloat(r);return e==r&&(e!==0||!J(r)||r.indexOf("x")<=0)?e:NaN}function LM(r){return!isNaN(fn(r))}function IM(){return Math.round(Math.random()*9)}function PM(r,e){return e===0?r:PM(e,r%e)}function w1(r,e){return r==null?e:e==null?r:r*e/PM(r,e)}var nN="[ECharts] ",T1={},iN=typeof console<"u"&&console.warn&&console.log;function oN(r,e,t){if(iN){if(t){if(T1[e])return;T1[e]=!0}console[r](nN+e)}}function RM(r,e){oN("error",r,e)}function Gt(r){throw new Error(r)}function C1(r,e,t){return(e-r)*t+r}var kM="series\0",EM="\0_ec_\0";function Zt(r){return r instanceof Array?r:r==null?[]:[r]}function lo(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var a=0,n=t.length;a<n;a++){var i=t[a];!r.emphasis[e].hasOwnProperty(i)&&r[e].hasOwnProperty(i)&&(r.emphasis[e][i]=r[e][i])}}}var A1=["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 zs(r){return dt(r)&&!U(r)&&!(r instanceof Date)?r.value:r}function sN(r){return dt(r)&&!(r instanceof Array)}function OM(r,e,t){var a=t==="normalMerge",n=t==="replaceMerge",i=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=at();A(e,function(l,u){if(!dt(l)){e[u]=null;return}});var s=lN(r,o,t);return(a||n)&&uN(s,r,o,e),a&&fN(s,e),a||n?vN(s,e,n):i&&cN(s,e),hN(s),s}function lN(r,e,t){var a=[];if(t==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&e.set(i.id,n),a.push({existing:t==="replaceMerge"||lu(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function uN(r,e,t,a){A(a,function(n,i){if(!(!n||n.id==null)){var o=Zl(n.id),s=t.get(o);if(s!=null){var l=r[s];Qe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=e[s],a[i]=null}}})}function fN(r,e){A(e,function(t,a){if(!(!t||t.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||t.id==null)&&!lu(t)&&!lu(i)&&NM("name",i,t)){r[n].newOption=t,e[a]=null;return}}})}function vN(r,e,t){A(e,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||lu(n.existing)||n.existing&&a.id!=null&&!NM("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=t):r.push({newOption:a,brandNew:t,existing:null,keyInfo:null}),i++}})}function cN(r,e){A(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function hN(r){var e=at();A(r,function(t){var a=t.existing;a&&e.set(a.id,t)}),A(r,function(t){var a=t.newOption;Qe(!a||a.id==null||!e.get(a.id)||e.get(a.id)===t,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&e.set(a.id,t),!t.keyInfo&&(t.keyInfo={})}),A(r,function(t,a){var n=t.existing,i=t.newOption,o=t.keyInfo;if(dt(i)){if(o.name=i.name!=null?Zl(i.name):n?n.name:kM+a,n)o.id=Zl(n.id);else if(i.id!=null)o.id=Zl(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function NM(r,e,t){var a=Ae(e[r],null),n=Ae(t[r],null);return a!=null&&n!=null&&a===n}function Zl(r){return Ae(r,"")}function Ae(r,e){return r==null?e:J(r)?r:Rt(r)||og(r)?r+"":e}function Pm(r){var e=r.name;return!!(e&&e.indexOf(kM))}function lu(r){return r&&r.id!=null&&Zl(r.id).indexOf(EM)===0}function dN(r){return EM+r}function pN(r,e,t){A(r,function(a){var n=a.newOption;dt(n)&&(a.keyInfo.mainType=e,a.keyInfo.subType=gN(e,n,a.existing,t))})}function gN(r,e,t,a){var n=e.type?e.type:t?t.subType:a.determineSubType(r,e);return n}function yN(r,e){var t={},a={};return n(r||[],t),n(e||[],a,t),[i(t),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var v=Ae(o[u].seriesId,null);if(v==null)return;for(var c=Zt(o[u].dataIndex),h=l&&l[v],d=0,p=c.length;d<p;d++){var g=c[d];h&&h[g]?h[g]=null:(s[v]||(s[v]={}))[g]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function uo(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return U(e.dataIndex)?Z(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return U(e.name)?Z(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function Lt(){var r="__ec_inner_"+mN++;return function(e){return e[r]||(e[r]={})}}var mN=IM();function ms(r,e,t){var a=Rm(e,t),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=t?t.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var v=Vs(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=v.models,s[f+"Model"]=v.models[0]}),s}function Rm(r,e){var t;if(J(r)){var a={};a[r+"Index"]=0,t=a}else t=r;var n=at(),i={},o=!1;return A(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],v=(u[2]||"").toLowerCase();if(!(!f||!v||e&&e.includeMainTypes&&bt(e.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[v]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var fe={useDefault:!0,enableAll:!1,enableNone:!1},_N={useDefault:!1,enableAll:!0,enableNone:!0};function Vs(r,e,t,a){a=a||fe;var n=t.index,i=t.id,o=t.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:e,index:n,id:i,name:o}),s}function BM(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function SN(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function xN(r){return r==="auto"?zt.domSupported?"html":"richText":r||"html"}function Rg(r,e){var t=at(),a=[];return A(r,function(n){var i=e(n);(t.get(i)||(a.push(i),t.set(i,[]))).push(n)}),{keys:a,buckets:t}}function zM(r,e,t,a,n){var i=e==null||e==="auto";if(a==null)return a;if(Rt(a)){var o=C1(t||0,a,n);return me(o,i?Math.max(Aa(t||0),Aa(a)):e)}else{if(J(a))return n<1?t:a;for(var s=[],l=t,u=a,f=Math.max(l?l.length:0,u.length),v=0;v<f;++v){var c=r.getDimensionInfo(v);if(c&&c.type==="ordinal")s[v]=(n<1&&l?l:u)[v];else{var h=l&&l[v]?l[v]:0,d=u[v],o=C1(h,d,n);s[v]=me(o,i?Math.max(Aa(h),Aa(d)):e)}}return s}}var Yn=function(){function r(){}return r.prototype.reset=function(e,t,a,n){return this._list=e,this._step=n=n||1,this._idx=t,this._end=a??(n>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r}();function Jh(r){r.option=r.parentModel=r.ecModel=null}var bN=".",di="___EC__COMPONENT__CONTAINER___",VM="___EC__EXTENDED_CLASS___";function Ma(r){var e={main:"",sub:""};if(r){var t=r.split(bN);e.main=t[0]||"",e.sub=t[1]||""}return e}function wN(r){Qe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function TN(r){return!!(r&&r[VM])}function km(r,e){r.$constructor=r,r.extend=function(t){var a=this,n;return CN(a)?n=function(i){B(o,i);function o(){return i.apply(this,arguments)||this}return o}(a):(n=function(){(t.$constructor||a).apply(this,arguments)},gE(n,this)),$(n.prototype,t),n[VM]=!0,n.extend=this.extend,n.superCall=DN,n.superApply=LN,n.superClass=a,n}}function CN(r){return lt(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function GM(r,e){r.extend=e.extend}var AN=Math.round(Math.random()*10);function MN(r){var e=["__\0is_clz",AN++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function DN(r,e){for(var t=[],a=2;a<arguments.length;a++)t[a-2]=arguments[a];return this.superClass.prototype[e].apply(r,t)}function LN(r,e,t){return this.superClass.prototype[e].apply(r,t)}function Zc(r){var e={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){wN(n),a.prototype.type=n;var i=Ma(n);if(!i.sub)e[i.main]=a;else if(i.sub!==di){var o=t(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=e[a];if(o&&o[di]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=Ma(a),i=[],o=e[n.main];return o&&o[di]?A(o,function(s,l){l!==di&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=Ma(a);return!!e[n.main]},r.getAllClassMainTypes=function(){var a=[];return A(e,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=Ma(a),i=e[n.main];return i&&i[di]};function t(a){var n=e[a.main];return(!n||!n[di])&&(n=e[a.main]={},n[di]=!0),n}}function fo(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&bt(n,l)>=0||i&&bt(i,l)<0)){var u=a.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var IN=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],PN=fo(IN),RN=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return PN(this,e,t)},r}(),kg=new ws(50);function kN(r){if(typeof r=="string"){var e=kg.get(r);return e&&e.image}else return r}function Em(r,e,t,a,n){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var i=kg.get(r),o={hostEl:t,cb:a,cbPayload:n};return i?(e=i.image,!Xc(e)&&i.pending.push(o)):(e=na.loadImage(r,M1,M1),e.__zrImageSrc=r,kg.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function M1(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],a=t.cb;a&&a(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function Xc(r){return r&&r.width&&r.height}var Qh=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function EN(r,e,t,a,n,i){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
`);i=FM(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)HM(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function FM(r,e,t,a){a=a||{};var n=$({},a);t=nt(t,"..."),n.maxIterations=nt(a.maxIterations,2);var i=n.minChar=nt(a.minChar,0),o=n.fontMeasureInfo=ka(e),s=o.asciiCharWidth;n.placeholder=nt(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Ea(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function HM(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ea(i,e);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?ON(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ea(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function ON(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=SM(t,r.charCodeAt(n));return n}function NN(r,e,t,a){var n=Om(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",v=Eu(u),c=nt(e.lineHeight,v),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?WM(n,e.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
`):[];var m=y.length*c;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/c);d=d||y.length>_,y=y.slice(0,_),m=y.length*c}if(n&&f&&p!=null)for(var S=FM(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},x=0;x<y.length;x++)HM(b,y[x],S),y[x]=b.textLine,d=d||b.isTruncated;for(var w=g,T=0,C=ka(u),x=0;x<y.length;x++)T=Math.max(Ea(C,y[x]),T);p==null&&(p=T);var M=p;return w+=l,M+=s,{lines:y,height:g,outerWidth:M,outerHeight:w,lineHeight:c,calculatedLineHeight:v,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var BN=function(){function r(){}return r}(),D1=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),zN=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function VN(r,e,t,a,n){var i=new zN,o=Om(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var v=e.height;v==null&&a!=null&&(v=a-u);for(var c=e.overflow,h=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,d=Qh.lastIndex=0,p;(p=Qh.exec(o))!=null;){var g=p.index;g>d&&td(i,o.substring(d,g),e,h),td(i,p[2],e,h,p[1]),d=Qh.lastIndex}d<o.length&&td(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S=c==="truncate",b=e.lineOverflow==="truncate",x={};function w(_t,At,st){_t.width=At,_t.lineHeight=st,m+=st,_=Math.max(_,At)}t:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],M=0,D=0,I=0;I<C.tokens.length;I++){var L=C.tokens[I],P=L.styleName&&e.rich[L.styleName]||{},k=L.textPadding=P.padding,R=k?k[1]+k[3]:0,N=L.font=P.font||e.font;L.contentHeight=Eu(N);var E=nt(P.height,L.contentHeight);if(L.innerHeight=E,k&&(E+=k[0]+k[2]),L.height=E,L.lineHeight=wr(P.lineHeight,e.lineHeight,E),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",b&&v!=null&&m+L.lineHeight>v){var z=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,M),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<z;break t}var V=P.width,H=V==null||V==="auto";if(typeof V=="string"&&V.charAt(V.length-1)==="%")L.percentWidth=V,y.push(L),L.contentWidth=Ea(ka(N),L.text);else{if(H){var G=P.backgroundColor,Y=G&&G.image;Y&&(Y=kN(Y),Xc(Y)&&(L.width=Math.max(L.width,Y.width*E/Y.height)))}var X=S&&f!=null?f-D:null;X!=null&&X<L.width?!H||X<R?(L.text="",L.width=L.contentWidth=0):(EN(x,L.text,X-R,N,e.ellipsis,{minChar:e.truncateMinChar}),L.text=x.text,i.isTruncated=i.isTruncated||x.isTruncated,L.width=L.contentWidth=Ea(ka(N),L.text)):L.contentWidth=Ea(ka(N),L.text)}L.width+=R,D+=L.width,P&&(M=Math.max(M,L.lineHeight))}w(C,D,M)}i.outerWidth=i.width=nt(f,_),i.outerHeight=i.height=nt(v,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var L=y[T],ot=L.percentWidth;L.width=parseInt(ot,10)/100*i.width}return i}function td(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,v;if(a){var c=o.padding,h=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=oa(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(f=e.split(`
`),u=!0),a.accumWidth=d}else{var p=WM(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,v=p.linesWidths,f=p.lines}}f||(f=e.split(`
`));for(var g=ka(l),y=0;y<f.length;y++){var m=f[y],_=new BN;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=v?v[y]:Ea(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new D1)).tokens,b=S.length;b===1&&S[0].isLineHolder?S[0]=_:(m||!b||i)&&S.push(_)}else s.push(new D1([_]))}}function GN(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var FN=Oa(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function HN(r){return GN(r)?!!FN[r]:!0}function WM(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,v=ka(e),c=0;c<r.length;c++){var h=r.charAt(c);if(h===`
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=SM(v,h.charCodeAt(0)),p=a?!1:!HN(h);if(i.length?f+d>t:n+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function L1(r,e,t,a,n,i){if(r.baseX=t,r.baseY=a,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;gt.set(I1,Ts(t,o,n),Qi(a,s,i),o,s),gt.intersect(e,I1,null,P1);var l=P1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=Ts(l.x,l.width,n,!0),r.baseY=Qi(l.y,l.height,i,!0)}}var I1=new gt(0,0,0,0),P1={outIntersectRect:{},clamp:!0};function Om(r){return r!=null?r+="":r=""}function WN(r){var e=Om(r.text),t=r.font,a=Ea(ka(t),e),n=Eu(t);return Eg(r,a,n,null)}function Eg(r,e,t,a){var n=new gt(Ts(r.x||0,e,r.textAlign),Qi(r.y||0,t,r.textBaseline),e,t),i=a??($M(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function $M(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Og="__zr_style_"+Math.round(Math.random()*10),to={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},qc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};to[Og]=!0;var R1=["z","z2","invisible"],$N=["invisible"],UN=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Pt(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}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,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&YN(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new gt(0,0,0,0)),a?gt.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));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 gt(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,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:$(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Rl,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Rl)},e.prototype.styleUpdated=function(){this.__dirty&=~Rl},e.prototype.createStyle=function(t){return Hc(to,t)},e.prototype.useStyle=function(t){t[Og]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Og]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,R1)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var v=Pt(f),c=0;c<v.length;c++){var h=v[c];h in u&&(u[h]=u[h],this.style[h]=f[h])}for(var d=Pt(u),c=0;c<d.length;c++){var h=d[c];this.style[h]=this.style[h]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var p=this.__inHover?$N:R1,c=0;c<p.length;c++){var h=p[c];a&&a[h]!=null?this[h]=a[h]:l&&n[h]!=null&&(this[h]=n[h])}},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(a.style=n),a},e.prototype._mergeStyle=function(t,a){return $(t,a),t},e.prototype.getAnimationStyleProps=function(){return qc},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=Sr|Rl}(),e}(bM),ed=new gt(0,0,0,0),rd=new gt(0,0,0,0);function YN(r,e,t){return ed.copy(r.getBoundingRect()),r.transform&&ed.applyTransform(r.transform),rd.width=e,rd.height=t,!ed.intersect(rd)}const $r=UN;var vr=Math.min,cr=Math.max,ad=Math.sin,nd=Math.cos,pi=Math.PI*2,sf=_o(),lf=_o(),uf=_o();function Kc(r,e,t){if(r.length!==0){for(var a=r[0],n=a[0],i=a[0],o=a[1],s=a[1],l=1;l<r.length;l++)a=r[l],n=vr(n,a[0]),i=cr(i,a[0]),o=vr(o,a[1]),s=cr(s,a[1]);e[0]=n,e[1]=o,t[0]=i,t[1]=s}}function k1(r,e,t,a,n,i){n[0]=vr(r,t),n[1]=vr(e,a),i[0]=cr(r,t),i[1]=cr(e,a)}var E1=[],O1=[];function ZN(r,e,t,a,n,i,o,s,l,u){var f=iM,v=Re,c=f(r,t,n,o,E1);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<c;h++){var d=v(r,t,n,o,E1[h]);l[0]=vr(d,l[0]),u[0]=cr(d,u[0])}c=f(e,a,i,s,O1);for(var h=0;h<c;h++){var p=v(e,a,i,s,O1[h]);l[1]=vr(p,l[1]),u[1]=cr(p,u[1])}l[0]=vr(r,l[0]),u[0]=cr(r,u[0]),l[0]=vr(o,l[0]),u[0]=cr(o,u[0]),l[1]=vr(e,l[1]),u[1]=cr(e,u[1]),l[1]=vr(s,l[1]),u[1]=cr(s,u[1])}function XN(r,e,t,a,n,i,o,s){var l=sM,u=Ve,f=cr(vr(l(r,t,n),1),0),v=cr(vr(l(e,a,i),1),0),c=u(r,t,n,f),h=u(e,a,i,v);o[0]=vr(r,n,c),o[1]=vr(e,i,h),s[0]=cr(r,n,c),s[1]=cr(e,i,h)}function qN(r,e,t,a,n,i,o,s,l){var u=On,f=Nn,v=Math.abs(n-i);if(v%pi<1e-4&&v>1e-4){s[0]=r-t,s[1]=e-a,l[0]=r+t,l[1]=e+a;return}if(sf[0]=nd(n)*t+r,sf[1]=ad(n)*a+e,lf[0]=nd(i)*t+r,lf[1]=ad(i)*a+e,u(s,sf,lf),f(l,sf,lf),n=n%pi,n<0&&(n=n+pi),i=i%pi,i<0&&(i=i+pi),n>i&&!o?i+=pi:n<i&&o&&(n+=pi),o){var c=i;i=n,n=c}for(var h=0;h<i;h+=Math.PI/2)h>n&&(uf[0]=nd(h)*t+r,uf[1]=ad(h)*a+e,u(s,uf,s),f(l,uf,l))}var qt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},gi=[],yi=[],ca=[],Sn=[],ha=[],da=[],id=Math.min,od=Math.max,mi=Math.cos,_i=Math.sin,Ua=Math.abs,Ng=Math.PI,In=Ng*2,sd=typeof Float32Array<"u",rl=[];function ld(r){var e=Math.round(r/Ng*1e8)/1e8;return e%2*Ng}function jc(r,e){var t=ld(r[0]);t<0&&(t+=In);var a=t-r[0],n=r[1];n+=a,!e&&n-t>=In?n=t+In:e&&t-n>=In?n=t-In:!e&&t>n?n=t+(In-ld(t-n)):e&&t<n&&(n=t-(In-ld(n-t))),r[0]=t,r[1]=n}var KN=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,a){a=a||0,a>0&&(this._ux=Ua(a/Gv/e)||0,this._uy=Ua(a/Gv/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(qt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var a=Ua(e-this._xi),n=Ua(t-this._yi),i=a>this._ux||n>this._uy;if(this.addData(qt.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=a*a+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){return this._drawPendingPt(),this.addData(qt.C,e,t,a,n,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,a,n,i,o),this._xi=i,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,a,n){return this._drawPendingPt(),this.addData(qt.Q,e,t,a,n),this._ctx&&this._ctx.quadraticCurveTo(e,t,a,n),this._xi=a,this._yi=n,this},r.prototype.arc=function(e,t,a,n,i,o){this._drawPendingPt(),rl[0]=n,rl[1]=i,jc(rl,o),n=rl[0],i=rl[1];var s=i-n;return this.addData(qt.A,e,t,a,a,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,a,n,i,o),this._xi=mi(i)*a+e,this._yi=_i(i)*a+t,this},r.prototype.arcTo=function(e,t,a,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,a,n,i),this},r.prototype.rect=function(e,t,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,a,n),this.addData(qt.R,e,t,a,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(qt.Z);var e=this._ctx,t=this._x0,a=this._y0;return e&&e.closePath(),this._xi=t,this._yi=a,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&sd&&(this.data=new Float32Array(t));for(var a=0;a<t;a++)this.data[a]=e[a];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,a=0,n=this._len,i=0;i<t;i++)a+=e[i].len();var o=this.data;if(sd&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+a),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var i=0;i<t;i++)for(var l=e[i].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},r.prototype.addData=function(e,t,a,n,i,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var v=0;v<arguments.length;v++)f[this._len++]=arguments[v]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.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}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sd&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){ca[0]=ca[1]=ha[0]=ha[1]=Number.MAX_VALUE,Sn[0]=Sn[1]=da[0]=da[1]=-Number.MAX_VALUE;var e=this.data,t=0,a=0,n=0,i=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],a=e[o+1],n=t,i=a),s){case qt.M:t=n=e[o++],a=i=e[o++],ha[0]=n,ha[1]=i,da[0]=n,da[1]=i;break;case qt.L:k1(t,a,e[o],e[o+1],ha,da),t=e[o++],a=e[o++];break;case qt.C:ZN(t,a,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ha,da),t=e[o++],a=e[o++];break;case qt.Q:XN(t,a,e[o++],e[o++],e[o],e[o+1],ha,da),t=e[o++],a=e[o++];break;case qt.A:var u=e[o++],f=e[o++],v=e[o++],c=e[o++],h=e[o++],d=e[o++]+h;o+=1;var p=!e[o++];l&&(n=mi(h)*v+u,i=_i(h)*c+f),qN(u,f,v,c,h,d,p,ha,da),t=mi(d)*v+u,a=_i(d)*c+f;break;case qt.R:n=t=e[o++],i=a=e[o++];var g=e[o++],y=e[o++];k1(n,i,n+g,i+y,ha,da);break;case qt.Z:t=n,a=i;break}On(ca,ca,ha),Nn(Sn,Sn,da)}return o===0&&(ca[0]=ca[1]=Sn[0]=Sn[1]=0),new gt(ca[0],ca[1],Sn[0]-ca[0],Sn[1]-ca[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,a=this._ux,n=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,v=0,c=0;c<t;){var h=e[c++],d=c===1;d&&(i=e[c],o=e[c+1],s=i,l=o);var p=-1;switch(h){case qt.M:i=s=e[c++],o=l=e[c++];break;case qt.L:{var g=e[c++],y=e[c++],m=g-i,_=y-o;(Ua(m)>a||Ua(_)>n||c===t-1)&&(p=Math.sqrt(m*m+_*_),i=g,o=y);break}case qt.C:{var S=e[c++],b=e[c++],g=e[c++],y=e[c++],x=e[c++],w=e[c++];p=aO(i,o,S,b,g,y,x,w,10),i=x,o=w;break}case qt.Q:{var S=e[c++],b=e[c++],g=e[c++],y=e[c++];p=iO(i,o,S,b,g,y,10),i=g,o=y;break}case qt.A:var T=e[c++],C=e[c++],M=e[c++],D=e[c++],I=e[c++],L=e[c++],P=L+I;c+=1,d&&(s=mi(I)*M+T,l=_i(I)*D+C),p=od(M,D)*id(In,Math.abs(L)),i=mi(P)*M+T,o=_i(P)*D+C;break;case qt.R:{s=i=e[c++],l=o=e[c++];var k=e[c++],R=e[c++];p=k*2+R*2;break}case qt.Z:{var m=s-i,_=l-o;p=Math.sqrt(m*m+_*_),i=s,o=l;break}}p>=0&&(u[v++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var a=this.data,n=this._ux,i=this._uy,o=this._len,s,l,u,f,v,c,h=t<1,d,p,g=0,y=0,m,_=0,S,b;if(!(h&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=t*p,!m)))t:for(var x=0;x<o;){var w=a[x++],T=x===1;switch(T&&(u=a[x],f=a[x+1],s=u,l=f),w!==qt.L&&_>0&&(e.lineTo(S,b),_=0),w){case qt.M:s=u=a[x++],l=f=a[x++],e.moveTo(u,f);break;case qt.L:{v=a[x++],c=a[x++];var C=Ua(v-u),M=Ua(c-f);if(C>n||M>i){if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+v*I,f*(1-I)+c*I);break t}g+=D}e.lineTo(v,c),u=v,f=c,_=0}else{var L=C*C+M*M;L>_&&(S=v,b=c,_=L)}break}case qt.C:{var P=a[x++],k=a[x++],R=a[x++],N=a[x++],E=a[x++],z=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;Kn(u,P,R,E,I,gi),Kn(f,k,N,z,I,yi),e.bezierCurveTo(gi[1],yi[1],gi[2],yi[2],gi[3],yi[3]);break t}g+=D}e.bezierCurveTo(P,k,R,N,E,z),u=E,f=z;break}case qt.Q:{var P=a[x++],k=a[x++],R=a[x++],N=a[x++];if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;nu(u,P,R,I,gi),nu(f,k,N,I,yi),e.quadraticCurveTo(gi[1],yi[1],gi[2],yi[2]);break t}g+=D}e.quadraticCurveTo(P,k,R,N),u=R,f=N;break}case qt.A:var V=a[x++],H=a[x++],G=a[x++],Y=a[x++],X=a[x++],ot=a[x++],_t=a[x++],At=!a[x++],st=G>Y?G:Y,et=Ua(G-Y)>.001,it=X+ot,tt=!1;if(h){var D=d[y++];g+D>m&&(it=X+ot*(m-g)/D,tt=!0),g+=D}if(et&&e.ellipse?e.ellipse(V,H,G,Y,_t,X,it,At):e.arc(V,H,st,X,it,At),tt)break t;T&&(s=mi(X)*G+V,l=_i(X)*Y+H),u=mi(it)*G+V,f=_i(it)*Y+H;break;case qt.R:s=u=a[x],l=f=a[x+1],v=a[x++],c=a[x++];var O=a[x++],W=a[x++];if(h){var D=d[y++];if(g+D>m){var q=m-g;e.moveTo(v,c),e.lineTo(v+id(q,O),c),q-=O,q>0&&e.lineTo(v+O,c+id(q,W)),q-=W,q>0&&e.lineTo(v+od(O-q,0),c+W),q-=O,q>0&&e.lineTo(v,c+od(W-q,0));break t}g+=D}e.rect(v,c,O,W);break;case qt.Z:if(h){var D=d[y++];if(g+D>m){var I=(m-g)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break t}g+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=qt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const za=KN;function Rn(r,e,t,a,n,i,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>e+s&&o>a+s||o<e-s&&o<a-s||i>r+s&&i>t+s||i<r-s&&i<t-s)return!1;if(r!==t)l=(e-a)/(r-t),u=(r*a-t*e)/(r-t);else return Math.abs(i-r)<=s/2;var f=l*i-o+u,v=f*f/(l*l+1);return v<=s/2*s/2}function jN(r,e,t,a,n,i,o,s,l,u,f){if(l===0)return!1;var v=l;if(f>e+v&&f>a+v&&f>i+v&&f>s+v||f<e-v&&f<a-v&&f<i-v&&f<s-v||u>r+v&&u>t+v&&u>n+v&&u>o+v||u<r-v&&u<t-v&&u<n-v&&u<o-v)return!1;var c=oM(r,e,t,a,n,i,o,s,u,f,null);return c<=v/2}function UM(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>a+u&&l>i+u||l<e-u&&l<a-u&&l<i-u||s>r+u&&s>t+u&&s>n+u||s<r-u&&s<t-u&&s<n-u)return!1;var f=lM(r,e,t,a,n,i,s,l,null);return f<=u/2}var N1=Math.PI*2;function xr(r){return r%=N1,r<0&&(r+=N1),r}var al=Math.PI*2;function JN(r,e,t,a,n,i,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(a-n)%al<1e-4)return!0;if(i){var v=a;a=xr(n),n=xr(v)}else a=xr(a),n=xr(n);a>n&&(n+=al);var c=Math.atan2(l,s);return c<0&&(c+=al),c>=a&&c<=n||c+al>=a&&c+al<=n}function Ja(r,e,t,a,n,i){if(i>e&&i>a||i<e&&i<a||a===e)return 0;var o=(i-e)/(a-e),s=a<e?1:-1;(o===1||o===0)&&(s=a<e?.5:-.5);var l=o*(t-r)+r;return l===n?1/0:l>n?s:0}var xn=za.CMD,Si=Math.PI*2,QN=1e-4;function tB(r,e){return Math.abs(r-e)<QN}var ar=[-1,-1,-1],Or=[-1,-1];function eB(){var r=Or[0];Or[0]=Or[1],Or[1]=r}function rB(r,e,t,a,n,i,o,s,l,u){if(u>e&&u>a&&u>i&&u>s||u<e&&u<a&&u<i&&u<s)return 0;var f=Nv(e,a,i,s,u,ar);if(f===0)return 0;for(var v=0,c=-1,h=void 0,d=void 0,p=0;p<f;p++){var g=ar[p],y=g===0||g===1?.5:1,m=Re(r,t,n,o,g);m<l||(c<0&&(c=iM(e,a,i,s,Or),Or[1]<Or[0]&&c>1&&eB(),h=Re(e,a,i,s,Or[0]),c>1&&(d=Re(e,a,i,s,Or[1]))),c===2?g<Or[0]?v+=h<e?y:-y:g<Or[1]?v+=d<h?y:-y:v+=s<d?y:-y:g<Or[0]?v+=h<e?y:-y:v+=s<h?y:-y)}return v}function aB(r,e,t,a,n,i,o,s){if(s>e&&s>a&&s>i||s<e&&s<a&&s<i)return 0;var l=nO(e,a,i,s,ar);if(l===0)return 0;var u=sM(e,a,i);if(u>=0&&u<=1){for(var f=0,v=Ve(e,a,i,u),c=0;c<l;c++){var h=ar[c]===0||ar[c]===1?.5:1,d=Ve(r,t,n,ar[c]);d<o||(ar[c]<u?f+=v<e?h:-h:f+=i<v?h:-h)}return f}else{var h=ar[0]===0||ar[0]===1?.5:1,d=Ve(r,t,n,ar[0]);return d<o?0:i<e?h:-h}}function nB(r,e,t,a,n,i,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ar[0]=-l,ar[1]=l;var u=Math.abs(a-n);if(u<1e-4)return 0;if(u>=Si-1e-4){a=0,n=Si;var f=i?1:-1;return o>=ar[0]+r&&o<=ar[1]+r?f:0}if(a>n){var v=a;a=n,n=v}a<0&&(a+=Si,n+=Si);for(var c=0,h=0;h<2;h++){var d=ar[h];if(d+r>o){var p=Math.atan2(s,d),f=i?1:-1;p<0&&(p=Si+p),(p>=a&&p<=n||p+Si>=a&&p+Si<=n)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function YM(r,e,t,a,n){for(var i=r.data,o=r.len(),s=0,l=0,u=0,f=0,v=0,c,h,d=0;d<o;){var p=i[d++],g=d===1;switch(p===xn.M&&d>1&&(t||(s+=Ja(l,u,f,v,a,n))),g&&(l=i[d],u=i[d+1],f=l,v=u),p){case xn.M:f=i[d++],v=i[d++],l=f,u=v;break;case xn.L:if(t){if(Rn(l,u,i[d],i[d+1],e,a,n))return!0}else s+=Ja(l,u,i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case xn.C:if(t){if(jN(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=rB(l,u,i[d++],i[d++],i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case xn.Q:if(t){if(UM(l,u,i[d++],i[d++],i[d],i[d+1],e,a,n))return!0}else s+=aB(l,u,i[d++],i[d++],i[d],i[d+1],a,n)||0;l=i[d++],u=i[d++];break;case xn.A:var y=i[d++],m=i[d++],_=i[d++],S=i[d++],b=i[d++],x=i[d++];d+=1;var w=!!(1-i[d++]);c=Math.cos(b)*_+y,h=Math.sin(b)*S+m,g?(f=c,v=h):s+=Ja(l,u,c,h,a,n);var T=(a-y)*S/_+y;if(t){if(JN(y,m,S,b,b+x,w,e,T,n))return!0}else s+=nB(y,m,S,b,b+x,w,T,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case xn.R:f=l=i[d++],v=u=i[d++];var C=i[d++],M=i[d++];if(c=f+C,h=v+M,t){if(Rn(f,v,c,v,e,a,n)||Rn(c,v,c,h,e,a,n)||Rn(c,h,f,h,e,a,n)||Rn(f,h,f,v,e,a,n))return!0}else s+=Ja(c,v,c,h,a,n),s+=Ja(f,h,f,v,a,n);break;case xn.Z:if(t){if(Rn(l,u,f,v,e,a,n))return!0}else s+=Ja(l,u,f,v,a,n);l=f,u=v;break}}return!t&&!tB(u,v)&&(s+=Ja(l,u,f,v,a,n)||0),s!==0}function iB(r,e,t){return YM(r,0,!1,e,t)}function oB(r,e,t,a){return YM(r,e,!0,t,a)}var $v=ht({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},to),sB={style:ht({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},qc.style)},ud=Ba.concat(["invisible","culling","z","z2","zlevel","parent"]),lB=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var a=this.style;if(a.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){t.buildPath(l,t.shape)}),n.silent=!0;var i=n.style;for(var o in a)i[o]!==a[o]&&(i[o]=a[o]);i.fill=a.fill?a.decal:null,i.decal=null,i.shadowColor=null,a.strokeFirst&&(i.stroke=null);for(var s=0;s<ud.length;++s)n[ud[s]]=this[ud[s]];n.__dirty|=Sr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var a=Pt(t);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var i=0;i<a.length;i++){var o=a[i],s=t[o];o==="style"?this.style?$(this.style,s):this.useStyle(s):o==="shape"?$(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(J(t)){var a=zv(t,0);return a>.5?Lg:a>.2?NO:Ig}else if(t)return Ig}return Lg},e.prototype.getInsideTextStroke=function(t){var a=this.style.fill;if(J(a)){var n=this.__zr,i=!!(n&&n.isDarkMode()),o=zv(t,0)<Dg;if(i===o)return a}},e.prototype.buildPath=function(t,a,n){},e.prototype.pathUpdated=function(){this.__dirty&=~is},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 za(!1)},e.prototype.hasStroke=function(){var t=this.style,a=t.stroke;return!(a==null||a==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,a=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&is)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){s.copy(t);var l=a.strokeNoScale?this.getLineScale():1,u=a.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect(),o=this.style;if(t=n[0],a=n[1],i.contain(t,a)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),oB(s,l/u,t,a)))return!0}if(this.hasFill())return iB(s,t,a)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=is,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,a){t==="shape"?this.setShape(a):r.prototype.attrKV.call(this,t,a)},e.prototype.setShape=function(t,a){var n=this.shape;return n||(n=this.shape={}),typeof t=="string"?n[t]=a:$(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&is)},e.prototype.createStyle=function(t){return Hc($v,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.shape&&!a.shape&&(a.shape=$({},this.shape))},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.shape?o?i?u=a.shape:(u=$({},n.shape),$(u,a.shape)):(u=$({},i?this.shape:n.shape),$(u,a.shape)):l&&(u=n.shape),u)if(o){this.shape=$({},this.shape);for(var f={},v=Pt(u),c=0;c<v.length;c++){var h=v[c];typeof u[h]=="object"?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var a=r.prototype._mergeStates.call(this,t),n,i=0;i<t.length;i++){var o=t[i];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(a.shape=n),a},e.prototype.getAnimationStyleProps=function(){return sB},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var a=function(i){B(o,i);function o(s){var l=i.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ut(t.style)},o.prototype.getDefaultShape=function(){return ut(t.shape)},o}(e);for(var n in t)typeof t[n]=="function"&&(a.prototype[n]=t[n]);return a},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Sr|Rl|is}(),e}($r);const It=lB;var uB=ht({strokeFirst:!0,font:ln,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},$v),ZM=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return $M(this.style)},e.prototype.hasFill=function(){var t=this.style,a=t.fill;return a!=null&&a!=="none"},e.prototype.createStyle=function(t){return Hc(uB,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=WN(this.style)),this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}($r);ZM.prototype.type="tspan";const uu=ZM;var fB=ht({x:0,y:0},to),vB={style:ht({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},qc.style)};function cB(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var XM=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Hc(fB,t)},e.prototype._getSize=function(t){var a=this.style,n=a[t];if(n!=null)return n;var i=cB(a.image)?a.image:this.__image;if(!i)return 0;var o=t==="width"?"height":"width",s=a[o];return s==null?i[t]:i[t]/i[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vB},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new gt(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}($r);XM.prototype.type="image";const Ze=XM;function hB(r,e){var t=e.x,a=e.y,n=e.width,i=e.height,o=e.r,s,l,u,f;n<0&&(t=t+n,n=-n),i<0&&(a=a+i,i=-i),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var v;s+l>n&&(v=s+l,s*=n/v,l*=n/v),u+f>n&&(v=u+f,u*=n/v,f*=n/v),l+u>i&&(v=l+u,l*=i/v,u*=i/v),s+f>i&&(v=s+f,s*=i/v,f*=i/v),r.moveTo(t+s,a),r.lineTo(t+n-l,a),l!==0&&r.arc(t+n-l,a+l,l,-Math.PI/2,0),r.lineTo(t+n,a+i-u),u!==0&&r.arc(t+n-u,a+i-u,u,0,Math.PI/2),r.lineTo(t+f,a+i),f!==0&&r.arc(t+f,a+i-f,f,Math.PI/2,Math.PI),r.lineTo(t,a+s),s!==0&&r.arc(t+s,a+s,s,Math.PI,Math.PI*1.5)}var vs=Math.round;function Jc(r,e,t){if(e){var a=e.x1,n=e.x2,i=e.y1,o=e.y2;r.x1=a,r.x2=n,r.y1=i,r.y2=o;var s=t&&t.lineWidth;return s&&(vs(a*2)===vs(n*2)&&(r.x1=r.x2=br(a,s,!0)),vs(i*2)===vs(o*2)&&(r.y1=r.y2=br(i,s,!0))),r}}function qM(r,e,t){if(e){var a=e.x,n=e.y,i=e.width,o=e.height;r.x=a,r.y=n,r.width=i,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=br(a,s,!0),r.y=br(n,s,!0),r.width=Math.max(br(a+i,s,!1)-r.x,i===0?0:1),r.height=Math.max(br(n+o,s,!1)-r.y,o===0?0:1)),r}}function br(r,e,t){if(!e)return r;var a=vs(r*2);return(a+vs(e))%2===0?a/2:(a+(t?1:-1))/2}var dB=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),pB={},KM=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new dB},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=qM(pB,a,this.style);n=l.x,i=l.y,o=l.width,s=l.height,l.r=a.r,a=l}else n=a.x,i=a.y,o=a.width,s=a.height;a.r?hB(t,a):t.rect(n,i,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(It);KM.prototype.type="rect";const Dt=KM;var B1={fill:"#000"},z1=2,pa={},gB={style:ht({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},qc.style)},jM=function(r){B(e,r);function e(t){var a=r.call(this)||this;return a.type="text",a._children=[],a._defaultStyle=B1,a.attr(t),a}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var a=this._children[t];a.zlevel=this.zlevel,a.z=this.z,a.z2=this.z2,a.culling=this.culling,a.cursor=this.cursor,a.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var a=this.innerTransformable;return a?a.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,_B(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var a=0;a<this._children.length;a++)this._children[a].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new gt(0,0,0,0),a=this._children,n=[],i=null,o=0;o<a.length;o++){var s=a[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(t.copy(l),t.applyTransform(u),i=i||t.clone(),i.union(t)):(i=i||l.clone(),i.union(l))}this._rect=i||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||B1},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,a){if(!a)return t;var n=a.rich,i=t.rich||n&&{};return $(t,a),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},e.prototype._mergeRich=function(t,a){for(var n=Pt(a),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},$(t[o],a[o])}},e.prototype.getAnimationStyleProps=function(){return gB},e.prototype._getOrCreateChild=function(t){var a=this._children[this._childCursor];return(!a||!(a instanceof t))&&(a=new t),this._children[this._childCursor++]=a,a.__zr=this.__zr,a.parent=this,a},e.prototype._updatePlainTexts=function(){var t=this.style,a=t.font||ln,n=t.padding,i=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||i.align||"left",u=t.verticalAlign||i.verticalAlign||"top";L1(pa,i.overflowRect,o,s,l,u),o=pa.baseX,s=pa.baseY;var f=U1(t),v=NN(f,t,pa.outerWidth,pa.outerHeight),c=fd(t),h=!!t.backgroundColor,d=v.outerHeight,p=v.outerWidth,g=v.lines,y=v.lineHeight;this.isTruncated=!!v.isTruncated;var m=o,_=Qi(s,v.contentHeight,u);if(c||n){var S=Ts(o,p,l),b=Qi(s,d,u);c&&this._renderBackground(t,t,S,b,p,d)}_+=y/2,n&&(m=$1(o,l,n),u==="top"?_+=n[0]:u==="bottom"&&(_-=n[2]));for(var x=0,w=!1,T=!1,C=W1("fill"in t?t.fill:(T=!0,i.fill)),M=H1("stroke"in t?t.stroke:!h&&(!i.autoStroke||T)?(x=z1,w=!0,i.stroke):null),D=t.textShadowBlur>0,I=0;I<g.length;I++){var L=this._getOrCreateChild(uu),P=L.createStyle();L.useStyle(P),P.text=g[I],P.x=m,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=M,P.fill=C,M&&(P.lineWidth=t.lineWidth||x,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=a,G1(P,t),_+=y,L.setBoundingRect(Eg(P,v.contentWidth,v.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,a=this._defaultStyle,n=t.align||a.align,i=t.verticalAlign||a.verticalAlign,o=t.x||0,s=t.y||0;L1(pa,a.overflowRect,o,s,n,i),o=pa.baseX,s=pa.baseY;var l=U1(t),u=VN(l,t,pa.outerWidth,pa.outerHeight,n),f=u.width,v=u.outerWidth,c=u.outerHeight,h=t.padding;this.isTruncated=!!u.isTruncated;var d=Ts(o,v,n),p=Qi(s,c,i),g=d,y=p;h&&(g+=h[3],y+=h[0]);var m=g+f;fd(t)&&this._renderBackground(t,t,d,p,v,c);for(var _=!!t.backgroundColor,S=0;S<u.lines.length;S++){for(var b=u.lines[S],x=b.tokens,w=x.length,T=b.lineHeight,C=b.width,M=0,D=g,I=m,L=w-1,P=void 0;M<w&&(P=x[M],!P.align||P.align==="left");)this._placeToken(P,t,T,y,D,"left",_),C-=P.width,D+=P.width,M++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,t,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(f-(D-g)-(m-I)-C)/2;M<=L;)P=x[M],this._placeToken(P,t,T,y,D+P.width/2,"center",_),D+=P.width,M++;y+=T}},e.prototype._placeToken=function(t,a,n,i,o,s,l){var u=a.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,v=i+n/2;f==="top"?v=i+t.height/2:f==="bottom"&&(v=i+n-t.height/2);var c=!t.isLineHolder&&fd(u);c&&this._renderBackground(u,a,s==="right"?o-t.width:s==="center"?o-t.width/2:o,v-t.height/2,t.width,t.height);var h=!!u.backgroundColor,d=t.textPadding;d&&(o=$1(o,s,d),v-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(uu),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=!1,b=W1("fill"in u?u.fill:"fill"in a?a.fill:(m=!0,y.fill)),x=H1("stroke"in u?u.stroke:"stroke"in a?a.stroke:!h&&!l&&(!y.autoStroke||m)?(_=z1,S=!0,y.stroke):null),w=u.textShadowBlur>0||a.textShadowBlur>0;g.text=t.text,g.x=o,g.y=v,w&&(g.shadowBlur=u.textShadowBlur||a.textShadowBlur||0,g.shadowColor=u.textShadowColor||a.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||a.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||a.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||ln,g.opacity=wr(u.opacity,a.opacity,1),G1(g,u),x&&(g.lineWidth=wr(u.lineWidth,a.lineWidth,_),g.lineDash=nt(u.lineDash,a.lineDash),g.lineDashOffset=a.lineDashOffset||0,g.stroke=x),b&&(g.fill=b),p.setBoundingRect(Eg(g,t.contentWidth,t.contentHeight,S?0:null))},e.prototype._renderBackground=function(t,a,n,i,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,v=l&&l.image,c=l&&!v,h=t.borderRadius,d=this,p,g;if(c||t.lineHeight||u&&f){p=this._getOrCreateChild(Dt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=n,y.y=i,y.width=o,y.height=s,y.r=h,p.dirtyShape()}if(c){var m=p.style;m.fill=l||null,m.fillOpacity=nt(t.fillOpacity,1)}else if(v){g=this._getOrCreateChild(Ze),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=i,_.width=o,_.height=s}if(u&&f){var m=p.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=nt(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=wr(t.opacity,a.opacity,1)},e.makeFont=function(t){var a="";return QM(t)&&(a=[t.fontStyle,t.fontWeight,JM(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),a&&Fr(a)||t.textFont||t.font},e}($r),yB={left:!0,right:1,center:1},mB={top:1,bottom:1,middle:1},V1=["fontStyle","fontWeight","fontSize","fontFamily"];function JM(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?gm+"px":r+"px"}function G1(r,e){for(var t=0;t<V1.length;t++){var a=V1[t],n=e[a];n!=null&&(r[a]=n)}}function QM(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function _B(r){return F1(r),A(r.rich,F1),r}function F1(r){if(r){r.font=jM.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||yB[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||mB[t]?t:"top";var a=r.padding;a&&(r.padding=Fc(r.padding))}}function H1(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function W1(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function $1(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function U1(r){var e=r.text;return e!=null&&(e+=""),e}function fd(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const Ot=jM;var yt=Lt(),Bg=function(r,e,t,a){if(a){var n=yt(a);n.dataIndex=t,n.dataType=e,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=yt(i);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},Y1=1,Z1={},tD=Lt(),Nm=Lt(),Bm=0,Ou=1,Qc=2,or=["emphasis","blur","select"],fu=["normal","emphasis","blur","select"],Gs=10,SB=9,eo="highlight",Sv="downplay",Uv="select",zg="unselect",Yv="toggleSelect",zm="selectchanged";function Bo(r){return r!=null&&r!=="none"}function th(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function eD(r){th(r,"emphasis",Qc)}function rD(r){r.hoverState===Qc&&th(r,"normal",Bm)}function Vm(r){th(r,"blur",Ou)}function aD(r){r.hoverState===Ou&&th(r,"normal",Bm)}function xB(r){r.selected=!0}function bB(r){r.selected=!1}function X1(r,e,t){e(r,t)}function yn(r,e,t){X1(r,e,t),r.isGroup&&r.traverse(function(a){X1(a,e,t)})}function Zv(r,e){switch(e){case"emphasis":r.hoverState=Qc;break;case"normal":r.hoverState=Bm;break;case"blur":r.hoverState=Ou;break;case"select":r.selected=!0}}function wB(r,e,t,a){for(var n=r.style,i={},o=0;o<e.length;o++){var s=e[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(i,e)}return i}function TB(r,e,t,a){var n=t&&bt(t,"select")>=0,i=!1;if(r instanceof It){var o=tD(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Bo(s)||Bo(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=$({},a),u=$({},u),u.fill=s):!Bo(u.fill)&&Bo(s)?(i=!0,a=$({},a),u=$({},u),u.fill=xg(s)):!Bo(u.stroke)&&Bo(l)&&(i||(a=$({},a),u=$({},u)),u.stroke=xg(l)),a.style=u}}if(a&&a.z2==null){i||(a=$({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??Gs)}return a}function CB(r,e,t){if(t&&t.z2==null){t=$({},t);var a=r.z2SelectLift;t.z2=r.z2+(a??SB)}return t}function AB(r,e,t){var a=bt(r.currentStates,e)>=0,n=r.style.opacity,i=a?null:wB(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=$({},t),o=$({opacity:a?n:i.opacity*.1},o),t.style=o),t}function vd(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return TB(this,r,e,t);if(r==="blur")return AB(this,r,t);if(r==="select")return CB(this,r,t)}return t}function vo(r){r.stateProxy=vd;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=vd),t&&(t.stateProxy=vd)}function q1(r,e){!sD(r,e)&&!r.__highByOuter&&yn(r,eD)}function K1(r,e){!sD(r,e)&&!r.__highByOuter&&yn(r,rD)}function vn(r,e){r.__highByOuter|=1<<(e||0),yn(r,eD)}function cn(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&yn(r,rD)}function nD(r){yn(r,Vm)}function Gm(r){yn(r,aD)}function iD(r){yn(r,xB)}function oD(r){yn(r,bB)}function sD(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function lD(r){var e=r.getModel(),t=[],a=[];e.eachComponent(function(n,i){var o=Nm(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){aD(u)}),s&&t.push(i)),o.isBlured=!1}),A(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(t,!1,e)})}function Vg(r,e,t,a){var n=a.getModel();t=t||"coordinateSystem";function i(u,f){for(var v=0;v<f.length;v++){var c=u.getItemGraphicEl(f[v]);c&&Gm(c)}}if(r!=null&&!(!e||e==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,v=u.coordinateSystem;v&&v.master&&(v=v.master);var c=v&&s?v===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var h=a.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Vm(g)}),Je(e))i(u.getData(),e);else if(dt(e))for(var d=Pt(e),p=0;p<d.length;p++)i(u.getData(d[p]),e[d[p]]);l.push(u),Nm(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var v=a.getViewOfComponentModel(f);v&&v.toggleBlurSeries&&v.toggleBlurSeries(l,!0,n)}})}}function Gg(r,e,t){if(!(r==null||e==null)){var a=t.getModel().getComponent(r,e);if(a){Nm(a).isBlured=!0;var n=t.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Vm(i)})}}}function MB(r,e,t){var a=r.seriesIndex,n=r.getData(e.dataType);if(n){var i=uo(n,e);i=(U(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=yt(o);Vg(a,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),v=r.get(["emphasis","blurScope"]);f!=null&&Vg(a,f,v,t)}}}function Fm(r,e,t,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return n;var i=a.getModel().getComponent(r,e);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(yt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function DB(r,e,t){var a=yt(r),n=Fm(a.componentMainType,a.componentIndex,a.componentHighDownName,t),i=n.dispatchers,o=n.focusSelf;i?(o&&Gg(a.componentMainType,a.componentIndex,t),A(i,function(s){return q1(s,e)})):(Vg(a.seriesIndex,a.focus,a.blurScope,t),a.focus==="self"&&Gg(a.componentMainType,a.componentIndex,t),q1(r,e))}function LB(r,e,t){lD(t);var a=yt(r),n=Fm(a.componentMainType,a.componentIndex,a.componentHighDownName,t).dispatchers;n?A(n,function(i){return K1(i,e)}):K1(r,e)}function IB(r,e,t){if(Hg(e)){var a=e.dataType,n=r.getData(a),i=uo(n,e);U(i)||(i=[i]),r[e.type===Yv?"toggleSelect":e.type===Uv?"select":"unselect"](i,a)}}function j1(r){var e=r.getAllData();A(e,function(t){var a=t.data,n=t.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?iD(i):oD(i)})})}function PB(r){var e=[];return r.eachSeries(function(t){var a=t.getAllData();A(a,function(n){n.data;var i=n.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};i!=null&&(s.dataType=i),e.push(s)}})}),e}function ro(r,e,t){Yi(r,!0),yn(r,vo),Fg(r,e,t)}function RB(r){Yi(r,!1)}function ae(r,e,t,a){a?RB(r):ro(r,e,t)}function Fg(r,e,t){var a=yt(r);e!=null?(a.focus=e,a.blurScope=t):a.focus&&(a.focus=null)}var J1=["emphasis","blur","select"],kB={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function De(r,e,t,a){t=t||"itemStyle";for(var n=0;n<J1.length;n++){var i=J1[n],o=e.getModel([i,t]),s=r.ensureState(i);s.style=a?a(o):o[kB[t]]()}}function Yi(r,e){var t=e===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!t)}function vu(r){return!!(r&&r.__highDownDispatcher)}function EB(r,e,t){var a=yt(r);a.componentMainType=e.mainType,a.componentIndex=e.componentIndex,a.componentHighDownName=t}function OB(r){var e=Z1[r];return e==null&&Y1<=32&&(e=Z1[r]=Y1++),e}function Hg(r){var e=r.type;return e===Uv||e===zg||e===Yv}function Q1(r){var e=r.type;return e===eo||e===Sv}function NB(r){var e=tD(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var zo=za.CMD,BB=[[],[],[]],tS=Math.sqrt,zB=Math.atan2;function uD(r,e){if(e){var t=r.data,a=r.len(),n,i,o,s,l,u,f=zo.M,v=zo.C,c=zo.L,h=zo.R,d=zo.A,p=zo.Q;for(o=0,s=0;o<a;){switch(n=t[o++],s=o,i=0,n){case f:i=1;break;case c:i=1;break;case v:i=3;break;case p:i=2;break;case d:var g=e[4],y=e[5],m=tS(e[0]*e[0]+e[1]*e[1]),_=tS(e[2]*e[2]+e[3]*e[3]),S=zB(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case h:u[0]=t[o++],u[1]=t[o++],ge(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ge(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<i;l++){var b=BB[l];b[0]=t[o++],b[1]=t[o++],ge(b,b,e),t[s++]=b[0],t[s++]=b[1]}}r.increaseVersion()}}var cd=Math.sqrt,ff=Math.sin,vf=Math.cos,nl=Math.PI;function eS(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Wg(r,e){return(r[0]*e[0]+r[1]*e[1])/(eS(r)*eS(e))}function rS(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(Wg(r,e))}function aS(r,e,t,a,n,i,o,s,l,u,f){var v=l*(nl/180),c=vf(v)*(r-t)/2+ff(v)*(e-a)/2,h=-1*ff(v)*(r-t)/2+vf(v)*(e-a)/2,d=c*c/(o*o)+h*h/(s*s);d>1&&(o*=cd(d),s*=cd(d));var p=(n===i?-1:1)*cd((o*o*(s*s)-o*o*(h*h)-s*s*(c*c))/(o*o*(h*h)+s*s*(c*c)))||0,g=p*o*h/s,y=p*-s*c/o,m=(r+t)/2+vf(v)*g-ff(v)*y,_=(e+a)/2+ff(v)*g+vf(v)*y,S=rS([1,0],[(c-g)/o,(h-y)/s]),b=[(c-g)/o,(h-y)/s],x=[(-1*c-g)/o,(-1*h-y)/s],w=rS(b,x);if(Wg(b,x)<=-1&&(w=nl),Wg(b,x)>=1&&(w=0),w<0){var T=Math.round(w/nl*1e6)/1e6;w=nl*2+T%2*nl}f.addData(u,m,_,o,s,S,w,v,i)}var VB=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,GB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function FB(r){var e=new za;if(!r)return e;var t=0,a=0,n=t,i=a,o,s=za.CMD,l=r.match(VB);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],v=f.charAt(0),c=void 0,h=f.match(GB)||[],d=h.length,p=0;p<d;p++)h[p]=parseFloat(h[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=t,C=a,M=void 0,D=void 0;switch(v){case"l":t+=h[g++],a+=h[g++],c=s.L,e.addData(c,t,a);break;case"L":t=h[g++],a=h[g++],c=s.L,e.addData(c,t,a);break;case"m":t+=h[g++],a+=h[g++],c=s.M,e.addData(c,t,a),n=t,i=a,v="l";break;case"M":t=h[g++],a=h[g++],c=s.M,e.addData(c,t,a),n=t,i=a,v="L";break;case"h":t+=h[g++],c=s.L,e.addData(c,t,a);break;case"H":t=h[g++],c=s.L,e.addData(c,t,a);break;case"v":a+=h[g++],c=s.L,e.addData(c,t,a);break;case"V":a=h[g++],c=s.L,e.addData(c,t,a);break;case"C":c=s.C,e.addData(c,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),t=h[g-2],a=h[g-1];break;case"c":c=s.C,e.addData(c,h[g++]+t,h[g++]+a,h[g++]+t,h[g++]+a,h[g++]+t,h[g++]+a),t+=h[g-2],a+=h[g-1];break;case"S":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),c=s.C,T=h[g++],C=h[g++],t=h[g++],a=h[g++],e.addData(c,y,m,T,C,t,a);break;case"s":y=t,m=a,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=a-D[M-3]),c=s.C,T=t+h[g++],C=a+h[g++],t+=h[g++],a+=h[g++],e.addData(c,y,m,T,C,t,a);break;case"Q":T=h[g++],C=h[g++],t=h[g++],a=h[g++],c=s.Q,e.addData(c,T,C,t,a);break;case"q":T=h[g++]+t,C=h[g++]+a,t+=h[g++],a+=h[g++],c=s.Q,e.addData(c,T,C,t,a);break;case"T":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t=h[g++],a=h[g++],c=s.Q,e.addData(c,y,m,t,a);break;case"t":y=t,m=a,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=a-D[M-3]),t+=h[g++],a+=h[g++],c=s.Q,e.addData(c,y,m,t,a);break;case"A":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],T=t,C=a,t=h[g++],a=h[g++],c=s.A,aS(T,C,t,a,x,w,_,S,b,c,e);break;case"a":_=h[g++],S=h[g++],b=h[g++],x=h[g++],w=h[g++],T=t,C=a,t+=h[g++],a+=h[g++],c=s.A,aS(T,C,t,a,x,w,_,S,b,c,e);break}}(v==="z"||v==="Z")&&(c=s.Z,e.addData(c),t=n,a=i),o=c}return e.toStatic(),e}var fD=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(It);function vD(r){return r.setData!=null}function cD(r,e){var t=FB(r),a=$({},e);return a.buildPath=function(n){var i=vD(n);if(i&&n.canSave()){n.appendPath(t);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=i?n.getContext():n;o&&t.rebuildPath(o,1)}},a.applyTransform=function(n){uD(t,n),this.dirtyShape()},a}function hD(r,e){return new fD(cD(r,e))}function HB(r,e){var t=cD(r,e),a=function(n){B(i,n);function i(o){var s=n.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return i}(fD);return a}function WB(r,e){for(var t=[],a=r.length,n=0;n<a;n++){var i=r[n];t.push(i.getUpdatedPathProxy(!0))}var o=new It(e);return o.createPathProxy(),o.buildPath=function(s){if(vD(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Hm(r,e){e=e||{};var t=new It;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?uD(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var $B=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),dD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new $B},e.prototype.buildPath=function(t,a){t.moveTo(a.cx+a.r,a.cy),t.arc(a.cx,a.cy,a.r,0,Math.PI*2)},e}(It);dD.prototype.type="circle";const ii=dD;var UB=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),pD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new UB},e.prototype.buildPath=function(t,a){var n=.5522848,i=a.cx,o=a.cy,s=a.rx,l=a.ry,u=s*n,f=l*n;t.moveTo(i-s,o),t.bezierCurveTo(i-s,o-f,i-u,o-l,i,o-l),t.bezierCurveTo(i+u,o-l,i+s,o-f,i+s,o),t.bezierCurveTo(i+s,o+f,i+u,o+l,i,o+l),t.bezierCurveTo(i-u,o+l,i-s,o+f,i-s,o),t.closePath()},e}(It);pD.prototype.type="ellipse";const Wm=pD;var gD=Math.PI,hd=gD*2,xi=Math.sin,Vo=Math.cos,YB=Math.acos,Xe=Math.atan2,nS=Math.abs,Xl=Math.sqrt,El=Math.max,ga=Math.min,qr=1e-4;function ZB(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=v*l-f*u;if(!(c*c<qr))return c=(f*(e-i)-v*(r-n))/c,[r+c*l,e+c*u]}function cf(r,e,t,a,n,i,o){var s=r-t,l=e-a,u=(o?i:-i)/Xl(s*s+l*l),f=u*l,v=-u*s,c=r+f,h=e+v,d=t+f,p=a+v,g=(c+d)/2,y=(h+p)/2,m=d-c,_=p-h,S=m*m+_*_,b=n-i,x=c*p-d*h,w=(_<0?-1:1)*Xl(El(0,b*b*S-x*x)),T=(x*_-m*w)/S,C=(-x*m-_*w)/S,M=(x*_+m*w)/S,D=(-x*m+_*w)/S,I=T-g,L=C-y,P=M-g,k=D-y;return I*I+L*L>P*P+k*k&&(T=M,C=D),{cx:T,cy:C,x0:-f,y0:-v,x1:T*(n/b-1),y1:C*(n/b-1)}}function XB(r){var e;if(U(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function qB(r,e){var t,a=El(e.r,0),n=El(e.r0||0,0),i=a>0,o=n>0;if(!(!i&&!o)){if(i||(a=n,n=0),n>a){var s=a;a=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,v=e.cy,c=!!e.clockwise,h=nS(u-l),d=h>hd&&h%hd;if(d>qr&&(h=d),!(a>qr))r.moveTo(f,v);else if(h>hd-qr)r.moveTo(f+a*Vo(l),v+a*xi(l)),r.arc(f,v,a,l,u,!c),n>qr&&(r.moveTo(f+n*Vo(u),v+n*xi(u)),r.arc(f,v,n,u,l,c));else{var p=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,T=void 0,C=void 0,M=void 0,D=void 0,I=void 0,L=void 0,P=void 0,k=a*Vo(l),R=a*xi(l),N=n*Vo(u),E=n*xi(u),z=h>qr;if(z){var V=e.cornerRadius;V&&(t=XB(V),p=t[0],g=t[1],y=t[2],m=t[3]);var H=nS(a-n)/2;if(_=ga(H,y),S=ga(H,m),b=ga(H,p),x=ga(H,g),C=w=El(_,S),M=T=El(b,x),(w>qr||T>qr)&&(D=a*Vo(u),I=a*xi(u),L=n*Vo(l),P=n*xi(l),h<gD)){var G=ZB(k,R,L,P,D,I,N,E);if(G){var Y=k-G[0],X=R-G[1],ot=D-G[0],_t=I-G[1],At=1/xi(YB((Y*ot+X*_t)/(Xl(Y*Y+X*X)*Xl(ot*ot+_t*_t)))/2),st=Xl(G[0]*G[0]+G[1]*G[1]);C=ga(w,(a-st)/(At+1)),M=ga(T,(n-st)/(At-1))}}}if(!z)r.moveTo(f+k,v+R);else if(C>qr){var et=ga(y,C),it=ga(m,C),tt=cf(L,P,k,R,a,et,c),O=cf(D,I,N,E,a,it,c);r.moveTo(f+tt.cx+tt.x0,v+tt.cy+tt.y0),C<w&&et===it?r.arc(f+tt.cx,v+tt.cy,C,Xe(tt.y0,tt.x0),Xe(O.y0,O.x0),!c):(et>0&&r.arc(f+tt.cx,v+tt.cy,et,Xe(tt.y0,tt.x0),Xe(tt.y1,tt.x1),!c),r.arc(f,v,a,Xe(tt.cy+tt.y1,tt.cx+tt.x1),Xe(O.cy+O.y1,O.cx+O.x1),!c),it>0&&r.arc(f+O.cx,v+O.cy,it,Xe(O.y1,O.x1),Xe(O.y0,O.x0),!c))}else r.moveTo(f+k,v+R),r.arc(f,v,a,l,u,!c);if(!(n>qr)||!z)r.lineTo(f+N,v+E);else if(M>qr){var et=ga(p,M),it=ga(g,M),tt=cf(N,E,D,I,n,-it,c),O=cf(k,R,L,P,n,-et,c);r.lineTo(f+tt.cx+tt.x0,v+tt.cy+tt.y0),M<T&&et===it?r.arc(f+tt.cx,v+tt.cy,M,Xe(tt.y0,tt.x0),Xe(O.y0,O.x0),!c):(it>0&&r.arc(f+tt.cx,v+tt.cy,it,Xe(tt.y0,tt.x0),Xe(tt.y1,tt.x1),!c),r.arc(f,v,n,Xe(tt.cy+tt.y1,tt.cx+tt.x1),Xe(O.cy+O.y1,O.cx+O.x1),c),et>0&&r.arc(f+O.cx,v+O.cy,et,Xe(O.y1,O.x1),Xe(O.y0,O.x0),!c))}else r.lineTo(f+N,v+E),r.arc(f,v,n,u,l,c)}r.closePath()}}}var KB=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),yD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new KB},e.prototype.buildPath=function(t,a){qB(t,a)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(It);yD.prototype.type="sector";const sr=yD;var jB=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),mD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new jB},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.PI*2;t.moveTo(n+a.r,i),t.arc(n,i,a.r,0,o,!1),t.moveTo(n+a.r0,i),t.arc(n,i,a.r0,0,o,!0)},e}(It);mD.prototype.type="ring";const eh=mD;function JB(r,e,t,a){var n=[],i=[],o=[],s=[],l,u,f,v;if(a){f=[1/0,1/0],v=[-1/0,-1/0];for(var c=0,h=r.length;c<h;c++)On(f,f,r[c]),Nn(v,v,r[c]);On(f,f,a[0]),Nn(v,v,a[1])}for(var c=0,h=r.length;c<h;c++){var d=r[c];if(t)l=r[c?c-1:h-1],u=r[(c+1)%h];else if(c===0||c===h-1){n.push(rn(r[c]));continue}else l=r[c-1],u=r[c+1];$i(i,u,l),cv(i,i,e);var p=ug(d,l),g=ug(d,u),y=p+g;y!==0&&(p/=y,g/=y),cv(o,i,-p),cv(s,i,g);var m=Y_([],d,o),_=Y_([],d,s);a&&(Nn(m,m,f),On(m,m,v),Nn(_,_,f),On(_,_,v)),n.push(m),n.push(_)}return t&&n.push(n.shift()),n}function _D(r,e,t){var a=e.smooth,n=e.points;if(n&&n.length>=2){if(a){var i=JB(n,a,t,e.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(t?o:o-1);s++){var l=i[s*2],u=i[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,v=n.length;s<v;s++)r.lineTo(n[s][0],n[s][1])}t&&r.closePath()}}var QB=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),SD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new QB},e.prototype.buildPath=function(t,a){_D(t,a,!0)},e}(It);SD.prototype.type="polygon";const lr=SD;var tz=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),xD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new tz},e.prototype.buildPath=function(t,a){_D(t,a,!1)},e}(It);xD.prototype.type="polyline";const tr=xD;var ez={},rz=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),bD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new rz},e.prototype.buildPath=function(t,a){var n,i,o,s;if(this.subPixelOptimize){var l=Jc(ez,a,this.style);n=l.x1,i=l.y1,o=l.x2,s=l.y2}else n=a.x1,i=a.y1,o=a.x2,s=a.y2;var u=a.percent;u!==0&&(t.moveTo(n,i),u<1&&(o=n*(1-u)+o*u,s=i*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var a=this.shape;return[a.x1*(1-t)+a.x2*t,a.y1*(1-t)+a.y2*t]},e}(It);bD.prototype.type="line";const Me=bD;var ur=[],az=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function iS(r,e,t){var a=r.cpx2,n=r.cpy2;return a!=null||n!=null?[(t?i1:Re)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?i1:Re)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?yg:Ve)(r.x1,r.cpx1,r.x2,e),(t?yg:Ve)(r.y1,r.cpy1,r.y2,e)]}var wD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new az},e.prototype.buildPath=function(t,a){var n=a.x1,i=a.y1,o=a.x2,s=a.y2,l=a.cpx1,u=a.cpy1,f=a.cpx2,v=a.cpy2,c=a.percent;c!==0&&(t.moveTo(n,i),f==null||v==null?(c<1&&(nu(n,l,o,c,ur),l=ur[1],o=ur[2],nu(i,u,s,c,ur),u=ur[1],s=ur[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(Kn(n,l,f,o,c,ur),l=ur[1],f=ur[2],o=ur[3],Kn(i,u,v,s,c,ur),u=ur[1],v=ur[2],s=ur[3]),t.bezierCurveTo(l,u,f,v,o,s)))},e.prototype.pointAt=function(t){return iS(this.shape,t,!1)},e.prototype.tangentAt=function(t){var a=iS(this.shape,t,!0);return Bs(a,a)},e}(It);wD.prototype.type="bezier-curve";const rh=wD;var nz=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),TD=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nz},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r,0),s=a.startAngle,l=a.endAngle,u=a.clockwise,f=Math.cos(s),v=Math.sin(s);t.moveTo(f*o+n,v*o+i),t.arc(n,i,o,s,l,!u)},e}(It);TD.prototype.type="arc";const $m=TD;var iz=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,a=this.shapeChanged(),n=0;n<t.length;n++)a=a||t[n].shapeChanged();a&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],a=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(a[0],a[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,a){for(var n=a.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],a=0;a<t.length;a++)t[a].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),It.prototype.getBoundingRect.call(this)},e}(It);const ah=iz;var oz=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const CD=oz;var sz=function(r){B(e,r);function e(t,a,n,i,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=a??0,l.x2=n??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return e}(CD);const Fs=sz;var lz=function(r){B(e,r);function e(t,a,n,i,o){var s=r.call(this,i)||this;return s.x=t??.5,s.y=a??.5,s.r=n??.5,s.type="radial",s.global=o||!1,s}return e}(CD);const AD=lz;var dd=Math.min,uz=Math.max,hf=Math.abs,bi=[0,0],wi=[0,0],Be=KA(),df=Be.minTv,pf=Be.maxTv,fz=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var a=0;a<4;a++)this._corners[a]=new ct;for(var a=0;a<2;a++)this._axes[a]=new ct;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var a=this._corners,n=this._axes,i=e.x,o=e.y,s=i+e.width,l=o+e.height;if(a[0].set(i,o),a[1].set(s,o),a[2].set(s,l),a[3].set(i,l),t)for(var u=0;u<4;u++)a[u].transform(t);ct.sub(n[0],a[1],a[0]),ct.sub(n[1],a[3],a[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(a[0])},r.prototype.intersect=function(e,t,a){var n=!0,i=!t;return t&&ct.set(t,0,0),Be.reset(a,!i),!this._intersectCheckOneSide(this,e,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(n=!1,i)||!i&&!Be.negativeSize&&ct.copy(t,n?Be.useDir?Be.dirMinTv:df:pf),n},r.prototype._intersectCheckOneSide=function(e,t,a,n){for(var i=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,bi),e._getProjMinMaxOnAxis(o,t._corners,wi),Be.negativeSize||bi[1]<wi[0]||bi[0]>wi[1]){if(i=!1,Be.negativeSize||a)return i;var l=hf(wi[0]-bi[1]),u=hf(bi[0]-wi[1]);dd(l,u)>pf.len()&&(l<u?ct.scale(pf,s,-l*n):ct.scale(pf,s,u*n))}else if(!a){var l=hf(wi[0]-bi[1]),u=hf(bi[0]-wi[1]);(Be.useDir||dd(l,u)<df.len())&&((l<u||!Be.bidirectional)&&(ct.scale(df,s,l*n),Be.useDir&&Be.calcDirMTV()),(l>=u||!Be.bidirectional)&&(ct.scale(df,s,-u*n),Be.useDir&&Be.calcDirMTV()))}}return i},r.prototype._getProjMinMaxOnAxis=function(e,t,a){for(var n=this._axes[e],i=this._origin,o=t[0].dot(n)+i[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(n)+i[e];s=dd(f,s),l=uz(f,l)}a[0]=s+Be.touchThreshold,a[1]=l-Be.touchThreshold,Be.negativeSize=a[1]<a[0]},r}();const MD=fz;var vz=[],cz=function(r){B(e,r);function e(){var t=r!==null&&r.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,a){t.call(a,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,a){a?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,a){a=a||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],a)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var a=this._cursor;a<this._displayables.length;a++)t&&t(this._displayables[a]);for(var a=0;a<this._temporaryDisplayables.length;a++)t&&t(this._temporaryDisplayables[a])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var a=this._displayables[t];a.parent=this,a.update(),a.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var a=this._temporaryDisplayables[t];a.parent=this,a.update(),a.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new gt(1/0,1/0,-1/0,-1/0),a=0;a<this._displayables.length;a++){var n=this._displayables[a],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(vz)),t.union(i)}this._rect=t}return this._rect},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(i.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,a))return!0}return!1},e}($r);const hz=cz;var DD=Lt();function Hs(r,e,t,a,n){var i;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();i=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,v=void 0;a?(u=nt(a.duration,200),f=nt(a.easing,"cubicOut"),v=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),v=e.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(v=i.delay)),lt(v)&&(v=v(t,n)),lt(u)&&(u=u(t));var c={duration:u||0,delay:v,easing:f};return c}else return null}function Um(r,e,t,a,n,i,o){var s=!1,l;lt(n)?(o=i,i=n,n=null):dt(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Hs(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var v=f.duration,c=f.delay,h=f.easing,d={duration:v,delay:c||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,d):e.animateTo(t,d)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),i&&i()}function Nt(r,e,t,a,n,i){Um("update",r,e,t,a,n,i)}function re(r,e,t,a,n,i){Um("enter",r,e,t,a,n,i)}function _s(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function jn(r,e,t,a,n,i){_s(r)||Um("leave",r,e,t,a,n,i)}function oS(r,e,t,a){r.removeTextContent(),r.removeTextGuideLine(),jn(r,{style:{opacity:0}},e,t,a)}function an(r,e,t){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||oS(n,e,t,a)}):oS(r,e,t,a)}function Ur(r){DD(r).oldStyle=r.style}function dz(r){return DD(r).oldStyle}var $g={},mt=["x","y"],Se=["width","height"];function pz(r){return It.extend(r)}var gz=HB;function yz(r,e){return gz(r,e)}function la(r,e){$g[r]=e}function Xv(r){if($g.hasOwnProperty(r))return $g[r]}function cu(r,e,t,a){var n=hD(r,e);return t&&(a==="center"&&(t=ID(t,n.getBoundingRect())),PD(n,t)),n}function LD(r,e,t){var a=new Ze({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(t==="center"){var i={width:n.width,height:n.height};a.setStyle(ID(e,i))}}});return a}function ID(r,e){var t=e.width/e.height,a=r.height*t,n;a<=r.width?n=r.height:(a=r.width,n=a/t);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Vr=WB;function PD(r,e){if(r.applyTransform){var t=r.getBoundingRect(),a=t.calculateTransform(e);r.applyTransform(a)}}function Cs(r,e){return Jc(r,r,{lineWidth:e}),r}function mz(r,e){return qM(r,r,e),r}var xv=br;function ao(r,e){for(var t=Wc([]);r&&r!==e;)Pa(t,r.getLocalTransform(),t),r=r.parent;return t}function ra(r,e,t){return e&&!Je(e)&&(e=tn.getLocalTransform(e)),t&&(e=ia([],e)),ge([],r,e)}function nh(r,e,t){var a=e[4]===0||e[5]===0||e[0]===0?1:Ca(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:Ca(2*e[4]/e[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=ra(i,e,t),Ca(i[0])>Ca(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function sS(r){return!r.isGroup}function _z(r){return r.shape!=null}function Nu(r,e,t){if(!r||!e)return;function a(o){var s={};return o.traverse(function(l){sS(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return _z(o)&&(s.shape=ut(o.shape)),s}var i=a(r);e.traverse(function(o){if(sS(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),Nt(o,l,t,yt(o).dataIndex)}}})}function RD(r,e){return Z(r,function(t){var a=t[0];a=de(a,e.x),a=Tr(a,e.x+e.width);var n=t[1];return n=de(n,e.y),n=Tr(n,e.y+e.height),[a,n]})}function Sz(r,e){var t=de(r.x,e.x),a=Tr(r.x+r.width,e.x+e.width),n=de(r.y,e.y),i=Tr(r.y+r.height,e.y+e.height);if(a>=t&&i>=n)return{x:t,y:n,width:a-t,height:i-n}}function Bu(r,e,t){var a=$({rectHover:!0},e),n=a.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ht(n,t),new Ze(a)):cu(r.replace("path://",""),a,t,"center")}function Ol(r,e,t,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(kD(r,e,t,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function kD(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=pd(f,v,l,u);if(xz(c))return!1;var h=r-n,d=e-i,p=pd(h,d,l,u)/c;if(p<0||p>1)return!1;var g=pd(h,d,f,v)/c;return!(g<0||g>1)}function pd(r,e,t,a){return r*a-t*e}function xz(r){return r<=1e-6&&r>=-1e-6}function co(r,e,t,a,n){return e==null||(Rt(e)?oe[0]=oe[1]=oe[2]=oe[3]=e:(oe[0]=e[0],oe[1]=e[1],oe[2]=e[2],oe[3]=e[3]),a&&(oe[0]=de(0,oe[0]),oe[1]=de(0,oe[1]),oe[2]=de(0,oe[2]),oe[3]=de(0,oe[3])),t&&(oe[0]=-oe[0],oe[1]=-oe[1],oe[2]=-oe[2],oe[3]=-oe[3]),lS(r,oe,"x","width",3,1,n&&n[0]||0),lS(r,oe,"y","height",0,2,n&&n[1]||0)),r}var oe=[0,0,0,0];function lS(r,e,t,a,n,i,o){var s=e[i]+e[n],l=r[a];r[a]+=s,o=de(0,Tr(o,l)),r[a]<o?(r[a]=o,r[t]+=e[n]>=0?-e[n]:e[i]>=0?l+e[i]:Ca(s)>1e-8?(l-o)*e[n]/s:0):r[t]-=e[n]}function mn(r){var e=r.itemTooltipOption,t=r.componentModel,a=r.itemName,n=J(e)?{formatter:e}:e,i=t.mainType,o=t.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&A(Pt(l),function(f){rt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=yt(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ht({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Ug(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function oi(r,e){if(r)if(U(r))for(var t=0;t<r.length;t++)Ug(r[t],e);else Ug(r,e)}function Ym(r){return!r||Ca(r[1])<gf&&Ca(r[2])<gf||Ca(r[0])<gf&&Ca(r[3])<gf}var gf=1e-5;function hu(r,e){return r?gt.copy(r,e):e.clone()}function Zm(r,e){return e?$c(r||Ge(),e):void 0}function ho(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function ED(r){var e=-1/0,t=1/0;Ug(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function ih(r,e,t){OD(r,e,t,-1/0)}function OD(r,e,t,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=de(OD(s[l],e,t,a),a);else r.z=e,r.zlevel=t,a=de(r.z2||0,a);if(n&&(n.z=e,n.zlevel=t,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=e,i.zlevel=t,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}la("circle",ii);la("ellipse",Wm);la("sector",sr);la("ring",eh);la("polygon",lr);la("polyline",tr);la("rect",Dt);la("line",Me);la("bezierCurve",rh);la("arc",$m);const xo=Object.freeze(Object.defineProperty({__proto__:null,Arc:$m,BezierCurve:rh,BoundingRect:gt,Circle:ii,CompoundPath:ah,Ellipse:Wm,Group:ft,Image:Ze,IncrementalDisplayable:hz,Line:Me,LinearGradient:Fs,OrientedBoundingRect:MD,Path:It,Point:ct,Polygon:lr,Polyline:tr,RadialGradient:AD,Rect:Dt,Ring:eh,Sector:sr,Text:Ot,WH:Se,XY:mt,applyTransform:ra,calcZ2Range:ED,clipPointsByRect:RD,clipRectByRect:Sz,createIcon:Bu,ensureCopyRect:hu,ensureCopyTransform:Zm,expandOrShrinkRect:co,extendPath:yz,extendShape:pz,getShapeClass:Xv,getTransform:ao,groupTransition:Nu,initProps:re,isBoundingRectAxisAligned:Ym,isElementRemoved:_s,lineLineIntersect:kD,linePolygonIntersect:Ol,makeImage:LD,makePath:cu,mergePath:Vr,registerShape:la,removeElement:jn,removeElementWithFadeOut:an,resizePath:PD,retrieveZInfo:ho,setTooltipConfig:mn,subPixelOptimize:xv,subPixelOptimizeLine:Cs,subPixelOptimizeRect:mz,transformDirection:nh,traverseElements:oi,traverseUpdateZ:ih,updateProps:Nt},Symbol.toStringTag,{value:"Module"}));var oh={};function ND(r,e){for(var t=0;t<or.length;t++){var a=or[t],n=e[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function Yg(r,e,t){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=e.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=lt(r.defaultText)?r.defaultText(n,r,t):r.defaultText);for(var l={normal:s},u=0;u<or.length;u++){var f=or[u],v=e[f];l[f]=nt(a?a.getFormattedLabel(n,f,null,i,v&&v.get("formatter")):null,s)}return l}function Ee(r,e,t,a){t=t||oh;for(var n=r instanceof Ot,i=!1,o=0;o<fu.length;o++){var s=e[fu[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new Ot,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Yg(t,e),f=e.normal,v=!!f.getShallow("show"),c=jt(f,a&&a.normal,t,!1,!n);c.text=u.normal,n||r.setTextConfig(qv(f,t,!1));for(var o=0;o<or.length;o++){var h=or[o],s=e[h];if(s){var d=l.ensureState(h),p=!!nt(s.getShallow("show"),v);if(p!==v&&(d.ignore=!p),d.style=jt(s,a&&a[h],t,!0,!n),d.style.text=u[h],!n){var g=r.ensureState(h);g.textConfig=qv(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!v,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Ws(l).setLabelText=function(y){var m=Yg(t,e,y);ND(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Le(r,e){e=e||"label";for(var t={normal:r.getModel(e)},a=0;a<or.length;a++){var n=or[a];t[n]=r.getModel([n,e])}return t}function jt(r,e,t,a,n){var i={};return bz(i,r,t,a,n),e&&$(i,e),i}function qv(r,e,t){e=e||{};var a={},n,i=r.getShallow("rotate"),o=nt(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(t?null:"inside"),n==="outside"&&(n=e.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(a.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(a.layoutRect=e.layoutRect),a}function bz(r,e,t,a,n){t=t||oh;var i=e.ecModel,o=i&&i.option.textStyle,s=wz(e),l;if(s){l={};var u="richInheritPlainLabel",f=nt(e.get(u),i?i.get(u):void 0);for(var v in s)if(s.hasOwnProperty(v)){var c=e.getModel(["rich",v]);cS(l[v]={},c,o,e,f,t,a,n,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var d=e.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,g=e.get("minMargin");if(g!=null)g=Rt(g)?g/2:0,p.margin=[g,g,g,g],p.__marginType=cs.minMargin;else{var y=e.get("textMargin");y!=null&&(p.margin=Fc(y),p.__marginType=cs.textMargin)}cS(r,e,o,null,null,t,a,n,!0,!1)}function wz(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||oh).rich;if(t){e=e||{};for(var a=Pt(t),n=0;n<a.length;n++){var i=a[n];e[i]=1}}r=r.parentModel}return e}var uS=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fS=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vS=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function cS(r,e,t,a,n,i,o,s,l,u){t=!o&&t||oh;var f=i&&i.inheritColor,v=e.getShallow("color"),c=e.getShallow("textBorderColor"),h=nt(e.getShallow("opacity"),t.opacity);(v==="inherit"||v==="auto")&&(f?v=f:v=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(v=v||t.color,c=c||t.textBorderColor),v!=null&&(r.fill=v),c!=null&&(r.stroke=c);var d=nt(e.getShallow("textBorderWidth"),t.textBorderWidth);d!=null&&(r.lineWidth=d);var p=nt(e.getShallow("textBorderType"),t.textBorderType);p!=null&&(r.lineDash=p);var g=nt(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);g!=null&&(r.lineDashOffset=g),!o&&h==null&&!u&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var y=0;y<uS.length;y++){var m=uS[y],_=n!==!1&&a?wr(e.getShallow(m),a.getShallow(m),t[m]):nt(e.getShallow(m),t[m]);_!=null&&(r[m]=_)}for(var y=0;y<fS.length;y++){var m=fS[y],_=e.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=e.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var y=0;y<vS.length;y++){var m=vS[y],_=e.getShallow(m);_!=null&&(r[m]=_)}var b=e.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Xm(r,e){var t=e&&e.getModel("textStyle");return Fr([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ws=Lt();function BD(r,e,t,a){if(r){var n=Ws(r);n.prevValue=n.value,n.value=t;var i=e.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=e)}}function zD(r,e,t,a,n){var i=Ws(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=nt(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var v=zM(t,i.precision,s,l,f);i.interpolatedValue=f===1?null:v;var c=Yg({labelDataIndex:e,labelFetcher:n,defaultText:o?o(v):v+""},i.statesModels,v);ND(r,c)}r.percent=0,(i.prevValue==null?re:Nt)(r,{percent:1},a,e,null,u)}var cs={minMargin:1,textMargin:2},Tz=["textStyle","color"],gd=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],yd=new Ot,Cz=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Tz):null)},r.prototype.getFont=function(){return Xm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<gd.length;a++)t[gd[a]]=this.getShallow(gd[a]);return yd.useStyle(t),yd.update(),yd.getBoundingRect()},r}();const Az=Cz;var VD=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mz=fo(VD),Dz=function(){function r(){}return r.prototype.getLineStyle=function(e){return Mz(this,e)},r}(),GD=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Lz=fo(GD),Iz=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return Lz(this,e,t)},r}(),bo=function(){function r(e,t,a){this.parentModel=t,this.ecModel=a,this.option=e}return r.prototype.init=function(e,t,a){},r.prototype.mergeOption=function(e,t){wt(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var a=this.option,n=a==null?a:a[e];if(n==null&&!t){var i=this.parentModel;i&&(n=i.getShallow(e))}return n},r.prototype.getModel=function(e,t){var a=e!=null,n=a?this.parsePath(e):null,i=a?this._doGet(n):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ut(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!zt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var a=this.option;if(!e)return a;for(var n=0;n<e.length&&!(e[n]&&(a=a&&typeof a=="object"?a[e[n]]:null,a==null));n++);return a==null&&t&&(a=t._doGet(this.resolveParentPath(e),t.parentModel)),a},r}();km(bo);MN(bo);we(bo,Dz);we(bo,Iz);we(bo,RN);we(bo,Az);const Bt=bo;var Pz=Math.round(Math.random()*10);function $s(r){return[r||"",Pz++].join("_")}function Rz(r){var e={};r.registerSubTypeDefaulter=function(t,a){var n=Ma(t);e[n.main]=a},r.determineSubType=function(t,a){var n=a.type;if(!n){var i=Ma(t).main;r.hasSubTypes(t)&&e[i]&&(n=e[i](a))}return n}}function kz(r,e){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=t(o),f=u.graph,v=u.noEntryList,c={};for(A(i,function(m){c[m]=!0});v.length;){var h=v.pop(),d=f[h],p=!!c[h];p&&(s.call(l,h,d.originalDeps.slice()),delete c[h]),A(d.successor,p?y:g)}A(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&v.push(m)}function y(m){c[m]=!0,g(m)}};function t(i){var o={},s=[];return A(i,function(l){var u=a(o,l),f=u.originalDeps=e(l),v=n(f,i);u.entryCount=v.length,u.entryCount===0&&s.push(l),A(v,function(c){bt(u.predecessor,c)<0&&u.predecessor.push(c);var h=a(o,c);bt(h.successor,c)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return A(i,function(l){bt(o,l)>=0&&s.push(l)}),s}}function si(r,e){return wt(wt({},r,!0),e,!0)}const Ez={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Oz={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表，"},series:{single:{prefix:"",withName:"图表类型是{seriesType}，表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}，",withoutName:"第{seriesId}个系列是一个{seriesType}，",separator:{middle:"；",end:"。"}}},data:{allData:"其数据是——",partialData:"其中，前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"，",end:""}}}};var Kv="ZH",qm="EN",Ss=qm,bv={},Km={},FD=zt.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ss).toUpperCase();return r.indexOf(Kv)>-1?Kv:Ss}():Ss;function HD(r,e){r=r.toUpperCase(),Km[r]=new Bt(e),bv[r]=e}function Nz(r){if(J(r)){var e=bv[r.toUpperCase()]||{};return r===Kv||r===qm?ut(e):wt(ut(e),ut(bv[Ss]),!1)}else return wt(ut(r),ut(bv[Ss]),!1)}function Zg(r){return Km[r]}function Bz(){return Km[Ss]}HD(qm,Ez);HD(Kv,Oz);var Xg=null;function zz(r){Xg||(Xg=r)}function _e(){return Xg}var jm=1e3,Jm=jm*60,ql=Jm*60,Gr=ql*24,hS=Gr*365,Vz={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},wv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},Gz="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",yf="{yyyy}-{MM}-{dd}",dS={year:"{yyyy}",month:"{yyyy}-{MM}",day:yf,hour:yf+" "+wv.hour,minute:yf+" "+wv.minute,second:yf+" "+wv.second,millisecond:Gz},mr=["year","month","day","hour","minute","second","millisecond"],Fz=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hz(r){return!J(r)&&!lt(r)?Wz(r):r}function Wz(r){r=r||{};var e={},t=!0;return A(mr,function(a){t&&(t=r[a]==null)}),A(mr,function(a,n){var i=r[a];e[a]={};for(var o=null,s=n;s>=0;s--){var l=mr[s],u=dt(i)&&!U(i)?i[l]:i,f=void 0;U(u)?(f=u.slice(),o=f[0]||""):J(u)?(o=u,f=[o]):(o==null?o=wv[a]:Vz[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[a][l]=f}}),e}function bn(r,e){return r+="","0000".substr(0,e-r.length)+r}function Kl(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function $z(r){return r===Kl(r)}function Uz(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function sh(r,e,t,a){var n=So(r),i=n[WD(t)](),o=n[Qm(t)]()+1,s=Math.floor((o-1)/3)+1,l=n[t0(t)](),u=n["get"+(t?"UTC":"")+"Day"](),f=n[e0(t)](),v=(f-1)%12+1,c=n[r0(t)](),h=n[a0(t)](),d=n[n0(t)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=a instanceof Bt?a:Zg(a||FD)||Bz(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,bn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,bn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,bn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bn(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,bn(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,bn(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,bn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,bn(d,3)).replace(/{S}/g,d+"")}function Yz(r,e,t,a,n){var i=null;if(J(t))i=t;else if(lt(t)){var o={time:r.time,level:r.time.level},s=_e();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=hs(r.value,n);i=t[f][f][0]}}return sh(new Date(r.value),i,n,a)}function hs(r,e){var t=So(r),a=t[Qm(e)]()+1,n=t[t0(e)](),i=t[e0(e)](),o=t[r0(e)](),s=t[a0(e)](),l=t[n0(e)](),u=l===0,f=u&&s===0,v=f&&o===0,c=v&&i===0,h=c&&n===1,d=h&&a===1;return d?"year":h?"month":c?"day":v?"hour":f?"minute":u?"second":"millisecond"}function qg(r,e,t){switch(e){case"year":r[$D(t)](0);case"month":r[UD(t)](1);case"day":r[YD(t)](0);case"hour":r[ZD(t)](0);case"minute":r[XD(t)](0);case"second":r[qD(t)](0)}return r}function WD(r){return r?"getUTCFullYear":"getFullYear"}function Qm(r){return r?"getUTCMonth":"getMonth"}function t0(r){return r?"getUTCDate":"getDate"}function e0(r){return r?"getUTCHours":"getHours"}function r0(r){return r?"getUTCMinutes":"getMinutes"}function a0(r){return r?"getUTCSeconds":"getSeconds"}function n0(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Zz(r){return r?"setUTCFullYear":"setFullYear"}function $D(r){return r?"setUTCMonth":"setMonth"}function UD(r){return r?"setUTCDate":"setDate"}function YD(r){return r?"setUTCHours":"setHours"}function ZD(r){return r?"setUTCMinutes":"setMinutes"}function XD(r){return r?"setUTCSeconds":"setSeconds"}function qD(r){return r?"setUTCMilliseconds":"setMilliseconds"}function KD(r){if(!LM(r))return J(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function jD(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,a){return a.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var zu=Fc;function Kg(r,e,t){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Fr(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?So(r):r;if(isNaN(+l)){if(s)return"-"}else return sh(l,a,t)}if(e==="ordinal")return og(r)?n(r):Rt(r)&&i(r)?r+"":"-";var u=fn(r);return i(u)?KD(u):og(r)?n(r):typeof r=="boolean"?r+"":"-"}var pS=["a","b","c","d","e","f","g"],md=function(r,e){return"{"+r+(e??"")+"}"};function JD(r,e,t){U(e)||(e=[e]);var a=e.length;if(!a)return"";for(var n=e[0].$vars||[],i=0;i<n.length;i++){var o=pS[i];r=r.replace(md(o),md(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];r=r.replace(md(pS[l],s),t?Ke(u):u)}return r}function Xz(r,e,t){return A(e,function(a,n){r=r.replace("{"+n+"}",t?Ke(a):a)}),r}function qz(r,e){var t=J(r)?{color:r,extraCssText:e}:r||{},a=t.color,n=t.type;e=t.extraCssText;var i=t.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ke(a)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ke(a)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:i,content:"{"+o+"|}  ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function po(r,e){return e=e||"transparent",J(r)?r:dt(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function jv(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var Tv={},_d={},Kz=function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=a(Tv),this._normalMasterList=a(_d);function a(n,i){var o=[];return A(n,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){A(this._normalMasterList,function(a){a.update&&a.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){Tv[e]=t;return}_d[e]=t},r.get=function(e){return _d[e]||Tv[e]},r}();function jz(r){return!!Tv[r]}var jg={coord:1,coord2:2};function Jz(r){QD.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var QD=at();function Qz(r){var e=r.getShallow("coord",!0),t=jg.coord;if(e==null){var a=QD.get(r.type);a&&a.getCoord2&&(t=jg.coord2,e=a.getCoord2(r))}return{coord:e,from:t}}var wa={none:0,dataCoordSys:1,boxCoordSys:2};function tL(r,e){var t=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=wa.none;if(t){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=wa.dataCoordSys,i||(n=wa.none)):a==="box"&&(n=wa.boxCoordSys,!i&&!jz(t)&&(n=wa.none))}return{coordSysType:t,kind:n}}function Vu(r){var e=r.targetModel,t=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=tL(e),o=i.kind,s=i.coordSysType;if(n&&o!==wa.dataCoordSys&&(o=wa.dataCoordSys,s=t),o===wa.none||s!==t)return!1;var l=a(t,e);return l?(o===wa.dataCoordSys?e.coordinateSystem=l:e.boxCoordinateSystem=l,!0):!1}var eL=function(r,e){var t=e.getReferringComponents(r,fe).models[0];return t&&t.coordinateSystem};const Gu=Kz;var Cv=A,rL=["left","right","top","bottom","width","height"],Zi=[["width","left","right"],["height","top","bottom"]];function i0(r,e,t,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),v=e.childAt(u+1),c=v&&v.getBoundingRect(),h,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);h=i+p,h>a||l.newline?(i=0,h=p,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>n||l.newline?(i+=s+t,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=h+t:o=d+t)})}var no=i0;xt(i0,"vertical");xt(i0,"horizontal");function aL(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function tV(r,e){var t=Ie(r,e,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(t.type===Nl.point)i=t.refPoint,n=ne(a,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=U(o)?o:[o,o];n=ne(a,t.refContainer),i=t.boxCoordFrom===jg.coord2?t.refPoint:[j(s[0],n.width)+n.x,j(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function nL(r,e){var t=tV(r,e),a=t.viewRect,n=t.center,i=r.get("radius");U(i)||(i=[0,i]);var o=j(a.width,e.getWidth()),s=j(a.height,e.getHeight()),l=Math.min(o,s),u=j(i[0],l/2),f=j(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function ne(r,e,t){t=zu(t||0);var a=e.width,n=e.height,i=j(r.left,a),o=j(r.top,n),s=j(r.right,a),l=j(r.bottom,n),u=j(r.width,a),f=j(r.height,n),v=t[2]+t[0],c=t[1]+t[3],h=r.aspect;switch(isNaN(u)&&(u=a-s-c-i),isNaN(f)&&(f=n-l-v-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(i)&&(i=a-s-u-c),isNaN(o)&&(o=n-l-f-v),r.left||r.right){case"center":i=a/2-u/2-t[3];break;case"right":i=a-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-t[0];break;case"bottom":o=n-f-v;break}i=i||0,o=o||0,isNaN(u)&&(u=a-c-i-(s||0)),isNaN(f)&&(f=n-v-o-(l||0));var d=new gt((e.x||0)+i+t[3],(e.y||0)+o+t[0],u,f);return d.margin=t,d}function iL(r,e,t){var a=r.getShallow("preserveAspect",!0);if(!a)return e;var n=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(n))<1e-9)return e;var i=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=a==="cover";return n>t&&!l||n<t&&l?(s.width=e.height*t,i==="left"?s.left=0:i==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),ne(s,e)}var Nl={rect:1,point:2};function Ie(r,e,t){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=Qz(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Nl.rect,s=f;var v=o.dataToLayout(u);a=v.contentRect||v.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Nl.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Nl.rect),i===Nl.rect&&(a||(a={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function lh(r,e,t,a,n,i){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(i=i||r,i.x=r.x,i.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new gt(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var v=ne(ht({width:u.width,height:u.height},e),t,a),c=o?v.x-u.x:0,h=s?v.y-u.y:0;return l==="raw"?(i.x=c,i.y=h):(i.x+=c,i.y+=h),i===r&&r.markRedraw(),!0}function eV(r,e){return r[Zi[e][0]]!=null||r[Zi[e][1]]!=null&&r[Zi[e][2]]!=null}function du(r){var e=r.layoutMode||r.constructor.layoutMode;return dt(e)?e:e?{type:e}:null}function Va(r,e,t){var a=t&&t.ignoreSize;!U(a)&&(a=[a,a]);var n=o(Zi[0],0),i=o(Zi[1],1);l(Zi[0],r,n),l(Zi[1],r,i);function o(u,f){var v={},c=0,h={},d=0,p=2;if(Cv(u,function(m){h[m]=r[m]}),Cv(u,function(m){rt(e,m)&&(v[m]=h[m]=e[m]),s(v,m)&&c++,s(h,m)&&d++}),a[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(d===p||!c)return h;if(c>=p)return v;for(var g=0;g<u.length;g++){var y=u[g];if(!rt(v,y)&&rt(r,y)){v[y]=r[y];break}}return v}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,v){Cv(u,function(c){f[c]=v[c]})}}function wo(r){return oL({},r)}function oL(r,e){return e&&r&&Cv(rL,function(t){rt(e,t)&&(r[t]=e[t])}),r}var rV=Lt(),Us=function(r){B(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.uid=$s("ec_cpt_model"),i}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=du(this),i=n?wo(t):{},o=a.getTheme();wt(t,o.get(this.mainType)),wt(t,this.getDefaultOption()),n&&Va(t,i,n)},e.prototype.mergeOption=function(t,a){wt(this.option,t,!0);var n=du(this);n&&Va(this.option,t,n)},e.prototype.optionUpdated=function(t,a){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!TN(t))return t.defaultOption;var a=rV(this);if(!a.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=wt(s,n[l],!0);a.defaultOption=s}return a.defaultOption},e.prototype.getReferringComponents=function(t,a){var n=t+"Index",i=t+"Id";return Vs(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},a)},e.prototype.getBoxLayoutParams=function(){return aL(this,!1)},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}(Bt);GM(Us,Bt);Zc(Us);Rz(Us);kz(Us,aV);function aV(r){var e=[];return A(Us.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=Z(e,function(t){return Ma(t).main}),r!=="dataset"&&bt(e,"dataset")<=0&&e.unshift("dataset"),e}const kt=Us;var Xi={color:{},darkColor:{},size:{}},ce=Xi.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};$(ce,{primary:ce.neutral80,secondary:ce.neutral70,tertiary:ce.neutral60,quaternary:ce.neutral50,disabled:ce.neutral20,border:ce.neutral30,borderTint:ce.neutral20,borderShade:ce.neutral40,background:ce.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:ce.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:ce.neutral70,axisLineTint:ce.neutral40,axisTick:ce.neutral70,axisTickMinor:ce.neutral60,axisLabel:ce.neutral70,axisSplitLine:ce.neutral15,axisMinorSplitLine:ce.neutral05});for(var Ti in ce)if(ce.hasOwnProperty(Ti)){var gS=ce[Ti];Ti==="theme"?Xi.darkColor.theme=ce.theme.slice():Ti==="highlight"?Xi.darkColor.highlight="rgba(255,231,130,0.4)":Ti.indexOf("accent")===0?Xi.darkColor[Ti]=Un(gS,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):Xi.darkColor[Ti]=Un(gS,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}Xi.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};const F=Xi;var sL="";typeof navigator<"u"&&(sL=navigator.platform||"");var Go="rgba(0, 0, 0, 0.2)",lL=F.color.theme[0],nV=Un(lL,null,null,.9);const iV={darkMode:"auto",colorBy:"series",color:F.color.theme,gradientColor:[nV,lL],aria:{decal:{decals:[{color:Go,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Go,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Go,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Go,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Go,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Go,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sL.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 uL=at(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Cr="original",Fe="arrayRows",Ar="objectRows",ua="keyedColumns",Zn="typedArray",fL="unknown",aa="column",To="row",We={Must:1,Might:2,Not:3},vL=Lt();function oV(r){vL(r).datasetMap=at()}function cL(r,e,t){var a={},n=s0(e);if(!n||!r)return a;var i=[],o=[],s=e.ecModel,l=vL(s).datasetMap,u=n.uid+"_"+t.seriesLayoutBy,f,v;r=r.slice(),A(r,function(p,g){var y=dt(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,v=d(y)),a[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:v,valueWayDim:0});A(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;h(a[y],_,m),h(o,_,m),c.valueWayDim+=m}else if(f===g)h(a[y],0,m),h(i,0,m);else{var _=c.categoryWayDim;h(a[y],_,m),h(o,_,m),c.categoryWayDim+=m}});function h(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function o0(r,e,t){var a={},n=s0(r);if(!n)return a;var i=e.sourceFormat,o=e.dimensionsDefine,s;(i===Ar||i===ua)&&A(o,function(f,v){(dt(f)?f.name:f)==="name"&&(s=v)});var l=function(){for(var f={},v={},c=[],h=0,d=Math.min(5,t);h<d;h++){var p=dL(e.data,i,e.seriesLayoutBy,o,e.startIndex,h);c.push(p);var g=p===We.Not;if(g&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v||!g&&c[f.n]===We.Not)&&(f.n=h),y(f)&&c[f.n]!==We.Not)return f;g||(p===We.Might&&v.v==null&&h!==s&&(v.v=h),(v.n==null||v.n===v.v)&&(v.n=h))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(v)?v:null}();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function s0(r){var e=r.get("data",!0);if(!e)return Vs(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},fe).models[0]}function sV(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Vs(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},fe).models}function hL(r,e){return dL(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function dL(r,e,t,a,n,i){var o,s=5;if(pr(r))return We.Not;var l,u;if(a){var f=a[i];dt(f)?(l=f.name,u=f.type):J(f)&&(l=f)}if(u!=null)return u==="ordinal"?We.Must:We.Not;if(e===Fe){var v=r;if(t===To){for(var c=v[i],h=0;h<(c||[]).length&&h<s;h++)if((o=S(c[n+h]))!=null)return o}else for(var h=0;h<v.length&&h<s;h++){var d=v[n+h];if(d&&(o=S(d[i]))!=null)return o}}else if(e===Ar){var p=r;if(!l)return We.Not;for(var h=0;h<p.length&&h<s;h++){var g=p[h];if(g&&(o=S(g[l]))!=null)return o}}else if(e===ua){var y=r;if(!l)return We.Not;var c=y[l];if(!c||pr(c))return We.Not;for(var h=0;h<c.length&&h<s;h++)if((o=S(c[h]))!=null)return o}else if(e===Cr)for(var m=r,h=0;h<m.length&&h<s;h++){var g=m[h],_=zs(g);if(!U(_))return We.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=J(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?We.Might:We.Not;if(x&&b!=="-")return We.Must}return We.Not}var Jg=at();function lV(r,e){Qe(Jg.get(r)==null&&e),Jg.set(r,e)}function uV(r,e,t){var a=Jg.get(e);if(!a)return t;var n=a(r);return n?t.concat(n):t}var yS=Lt(),fV=Lt(),l0=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,a){var n=Zt(this.get("color",!0)),i=this.get("colorLayer",!0);return pL(this,yS,n,i,e,t,a)},r.prototype.clearColorPalette=function(){cV(this,yS)},r}();function Qg(r,e,t,a){var n=Zt(r.get(["aria","decal","decals"]));return pL(r,fV,n,null,e,t,a)}function vV(r,e){for(var t=r.length,a=0;a<t;a++)if(r[a].length>e)return r[a];return r[t-1]}function pL(r,e,t,a,n,i,o){i=i||r;var s=e(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?t:vV(a,o);if(f=f||t,!(!f||!f.length)){var v=f[l];return n&&(u[n]=v),s.paletteIdx=(l+1)%f.length,v}}function cV(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var mf,il,mS,_S="\0_ec_inner",hV=1,gL=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,a,n,i,o,s){i=i||{},this.option=null,this._theme=new Bt(i),this._locale=new Bt(o),this._optionManager=s},e.prototype.setOption=function(t,a,n){var i=bS(a);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,a){return this._resetOption(t,bS(a))},e.prototype._resetOption=function(t,a){var n=!1,i=this._optionManager;if(!t||t==="recreate"){var o=i.mountOption(t==="recreate");!this.option||t==="recreate"?mS(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!t||t==="recreate"||t==="media"){var l=i.getMediaOption(this);l.length&&A(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=at(),u=a&&a.replaceMergeMainTypeMap;oV(this),A(t,function(v,c){v!=null&&(kt.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?ut(v):wt(n[c],v,!0))}),u&&u.each(function(v,c){kt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),kt.topologicalTravel(s,kt.getAllClassMainTypes(),f,this);function f(v){var c=uV(this,v,Zt(t[v])),h=i.get(v),d=h?u&&u.get(v)?"replaceMerge":"normalMerge":"replaceAll",p=OM(h,c,d);pN(p,v,kt),n[v]=null,i.set(v,null),o.set(v,0);var g=[],y=[],m=0,_;A(p,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=v==="series",C=kt.getClass(v,S.keyInfo.subType,!T);if(!C)return;if(v==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=$({componentIndex:b},S.keyInfo);x=new C(w,this,this,M),$(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[v]=g,i.set(v,y),o.set(v,m),v==="series"&&mf(this)}this._seriesIndices||mf(this)},e.prototype.getOption=function(){var t=ut(this.option);return A(t,function(a,n){if(kt.hasClass(n)){for(var i=Zt(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!lu(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,t[n]=i}}),delete t[_S],t},e.prototype.setTheme=function(t){this._theme=new Bt(t),this._resetOption("recreate",null)},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,a){var n=this._componentsMap.get(t);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(t){var a=t.mainType;if(!a)return[];var n=t.index,i=t.id,o=t.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(Zt(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=SS("id",i,s):o!=null?l=SS("name",o,s):l=$t(s,function(u){return!!u}),xS(l,t)},e.prototype.findComponents=function(t){var a=t.query,n=t.mainType,i=s(a),o=i?this.queryComponents(i):$t(this._componentsMap.get(n),function(u){return!!u});return l(xS(o,t));function s(u){var f=n+"Index",v=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[v]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[v],name:u[c]}:null}function l(u){return t.filter?$t(u,t.filter):u}},e.prototype.eachComponent=function(t,a,n){var i=this._componentsMap;if(lt(t)){var o=a,s=t;i.each(function(v,c){for(var h=0;v&&h<v.length;h++){var d=v[h];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=J(t)?i.get(t):dt(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var a=Ae(t,null);return $t(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return $t(this._componentsMap.get("series"),function(a){return!!a&&a.subType===t})},e.prototype.getSeries=function(){return $t(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,a){il(this),A(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];t.call(a,i,n)},this)},e.prototype.eachRawSeries=function(t,a){A(this._componentsMap.get("series"),function(n){n&&t.call(a,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(t,a,n){il(this),A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===t&&a.call(n,o,i)},this)},e.prototype.eachRawSeriesByType=function(t,a,n){return A(this.getSeriesByType(t),a,n)},e.prototype.isSeriesFiltered=function(t){return il(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,a){il(this);var n=[];A(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];t.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=at(n)},e.prototype.restoreData=function(t){mf(this);var a=this._componentsMap,n=[];a.each(function(i,o){kt.hasClass(o)&&n.push(o)}),kt.topologicalTravel(n,kt.getAllClassMainTypes(),function(i){A(a.get(i),function(o){o&&(i!=="series"||!dV(o,t))&&o.restoreData()})})},e.internalField=function(){mf=function(t){var a=t._seriesIndices=[];A(t._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),t._seriesIndicesMap=at(a)},il=function(t){},mS=function(t,a){t.option={},t.option[_S]=hV,t._componentsMap=at({series:[]}),t._componentsCount=at();var n=a.aria;dt(n)&&n.enabled==null&&(n.enabled=!0),pV(a,t._theme.option),wt(a,iV,!1),t._mergeOption(a,null)}}(),e}(Bt);function dV(r,e){if(e){var t=e.seriesIndex,a=e.seriesId,n=e.seriesName;return t!=null&&r.componentIndex!==t||a!=null&&r.id!==a||n!=null&&r.name!==n}}function pV(r,e){var t=r.color&&!r.colorLayer;A(e,function(a,n){n==="colorLayer"&&t||n==="color"&&r.color||kt.hasClass(n)||(typeof a=="object"?r[n]=r[n]?wt(r[n],a,!1):ut(a):r[n]==null&&(r[n]=a))})}function SS(r,e,t){if(U(e)){var a=at();return A(e,function(i){if(i!=null){var o=Ae(i,null);o!=null&&a.set(i,!0)}}),$t(t,function(i){return i&&a.get(i[r])})}else{var n=Ae(e,null);return $t(t,function(i){return i&&n!=null&&i[r]===n})}}function xS(r,e){return e.hasOwnProperty("subType")?$t(r,function(t){return t&&t.subType===e.subType}):r}function bS(r){var e=at();return r&&A(Zt(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}we(gL,l0);const yL=gL;var gV=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],yV=function(){function r(e){A(gV,function(t){this[t]=Q(e[t],e)},this)}return r}();const mL=yV;var mV=/^(min|max)?(.+)$/,_V=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,a){e&&(A(Zt(e.series),function(o){o&&o.data&&pr(o.data)&&kv(o.data)}),A(Zt(e.dataset),function(o){o&&o.source&&pr(o.source)&&kv(o.source)})),e=ut(e);var n=this._optionBackup,i=SV(e,t,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ut(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,a=this._timelineOptions;if(a.length){var n=e.getComponent("timeline");n&&(t=ut(a[n.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)xV(n[l].query,t,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!wV(o,this._currentMediaIndices)&&(s=Z(o,function(f){return ut(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function SV(r,e,t){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,v=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((v||f)&&(r.options=r.media=null),i=r),f&&U(u)&&A(u,function(h){h&&h.option&&(h.query?a.push(h):n||(n=h))}),c(i),A(l,function(h){return c(h)}),A(a,function(h){return c(h.option)});function c(h){A(e,function(d){d(h,t)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function xV(r,e,t){var a={width:e,height:t,aspectratio:e/t},n=!0;return A(r,function(i,o){var s=o.match(mV);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();bV(a[u],i,l)||(n=!1)}}),n}function bV(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function wV(r,e){return r.join(",")===e.join(",")}const TV=_V;var Xr=A,pu=dt,wS=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sd(r){var e=r&&r.itemStyle;if(e)for(var t=0,a=wS.length;t<a;t++){var n=wS[t],i=e.normal,o=e.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?wt(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?wt(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function qe(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var a=r[e].normal,n=r[e].emphasis;a&&(t?(r[e].normal=r[e].emphasis=null,ht(r[e],a)):r[e]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[e]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Bl(r){qe(r,"itemStyle"),qe(r,"lineStyle"),qe(r,"areaStyle"),qe(r,"label"),qe(r,"labelLine"),qe(r,"upperLabel"),qe(r,"edgeLabel")}function ye(r,e){var t=pu(r)&&r[e],a=pu(t)&&t.textStyle;if(a)for(var n=0,i=A1.length;n<i;n++){var o=A1[n];a.hasOwnProperty(o)&&(t[o]=a[o])}}function Er(r){r&&(Bl(r),ye(r,"label"),r.emphasis&&ye(r.emphasis,"label"))}function CV(r){if(pu(r)){Sd(r),Bl(r),ye(r,"label"),ye(r,"upperLabel"),ye(r,"edgeLabel"),r.emphasis&&(ye(r.emphasis,"label"),ye(r.emphasis,"upperLabel"),ye(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Sd(e),Er(e));var t=r.markLine;t&&(Sd(t),Er(t));var a=r.markArea;a&&Er(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!pr(i))for(var o=0;o<i.length;o++)Er(i[o]);A(r.categories,function(u){Bl(u)})}if(n&&!pr(n))for(var o=0;o<n.length;o++)Er(n[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Er(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)U(l[o])?(Er(l[o][0]),Er(l[o][1])):Er(l[o]);r.type==="gauge"?(ye(r,"axisLabel"),ye(r,"title"),ye(r,"detail")):r.type==="treemap"?(qe(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Bl(u)})):r.type==="tree"&&Bl(r.leaves)}}function Ya(r){return U(r)?r:r?[r]:[]}function TS(r){return(U(r)?r[0]:r)||{}}function AV(r,e){Xr(Ya(r.series),function(a){pu(a)&&CV(a)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Xr(t,function(a){Xr(Ya(r[a]),function(n){n&&(ye(n,"axisLabel"),ye(n.axisPointer,"label"))})}),Xr(Ya(r.parallel),function(a){var n=a&&a.parallelAxisDefault;ye(n,"axisLabel"),ye(n&&n.axisPointer,"label")}),Xr(Ya(r.calendar),function(a){qe(a,"itemStyle"),ye(a,"dayLabel"),ye(a,"monthLabel"),ye(a,"yearLabel")}),Xr(Ya(r.radar),function(a){ye(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),Xr(Ya(r.geo),function(a){pu(a)&&(Er(a),Xr(Ya(a.regions),function(n){Er(n)}))}),Xr(Ya(r.timeline),function(a){Er(a),qe(a,"label"),qe(a,"itemStyle"),qe(a,"controlStyle",!0);var n=a.data;U(n)&&A(n,function(i){dt(i)&&(qe(i,"label"),qe(i,"itemStyle"))})}),Xr(Ya(r.toolbox),function(a){qe(a,"iconStyle"),Xr(a.feature,function(n){qe(n,"iconStyle")})}),ye(TS(r.axisPointer),"label"),ye(TS(r.tooltip).axisPointer,"label")}function MV(r,e){for(var t=e.split(","),a=r,n=0;n<t.length&&(a=a&&a[t[n]],a!=null);n++);return a}function DV(r,e,t,a){for(var n=e.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];(a||i[n[s]]==null)&&(i[n[s]]=t)}function CS(r){r&&A(LV,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var LV=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],IV=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],xd=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ol(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<xd.length;t++){var a=xd[t][1],n=xd[t][0];e[a]!=null&&(e[n]=e[a])}}function AS(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function MS(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function PV(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function _L(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&_L(r[t].children,e)}function SL(r,e){AV(r,e),r.series=Zt(r.series),A(r.series,function(t){if(dt(t)){var a=t.type;if(a==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(a==="pie"||a==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),AS(t.label);var n=t.data;if(n&&!pr(n))for(var i=0;i<n.length;i++)AS(n[i]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(a==="gauge"){var o=MV(t,"pointer.color");o!=null&&DV(t,"itemStyle.color",o)}else if(a==="bar"){ol(t),ol(t.backgroundStyle),ol(t.emphasis);var n=t.data;if(n&&!pr(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(ol(n[i]),ol(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),MS(t),_L(t.data,MS)}else a==="graph"||a==="sankey"?PV(t):a==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&ht(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),CS(t)}}),r.dataRange&&(r.visualMap=r.dataRange),A(IV,function(t){var a=r[t];a&&(U(a)||(a=[a]),A(a,function(n){CS(n)}))})}function RV(r){var e=at();r.eachSeries(function(t){var a=t.get("stack");if(a){var n=e.get(a)||e.set(a,[]),i=t.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){if(t.length!==0){var a=t[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&t.reverse(),A(t,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),kV(t)}})}function kV(r){A(r,function(e,t){var a=[],n=[NaN,NaN],i=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,v){var c=o.get(e.stackedDimension,v);if(isNaN(c))return n;var h,d;s?d=o.getRawIndex(v):h=o.get(e.stackedByDimension,v);for(var p=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=eN(c,m),p=m;break}}}return a[0]=c,a[1]=p,a})})}var uh=function(){function r(e){this.data=e.data||(e.sourceFormat===ua?{}:[]),this.sourceFormat=e.sourceFormat||fL,this.seriesLayoutBy=e.seriesLayoutBy||aa,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var a=0;a<t.length;a++){var n=t[a];n.type==null&&hL(this,a)===We.Must&&(n.type="ordinal")}}return r}();function u0(r){return r instanceof uh}function ty(r,e,t){t=t||xL(r);var a=e.seriesLayoutBy,n=OV(r,t,a,e.sourceHeader,e.dimensions),i=new uh({data:r,sourceFormat:t,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ut(e)});return i}function f0(r){return new uh({data:r,sourceFormat:pr(r)?Zn:Cr})}function EV(r){return new uh({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ut(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function xL(r){var e=fL;if(pr(r))e=Zn;else if(U(r)){r.length===0&&(e=Fe);for(var t=0,a=r.length;t<a;t++){var n=r[t];if(n!=null){if(U(n)||pr(n)){e=Fe;break}else if(dt(n)){e=Ar;break}}}}else if(dt(r)){for(var i in r)if(rt(r,i)&&Je(r[i])){e=ua;break}}return e}function OV(r,e,t,a,n){var i,o;if(!r)return{dimensionsDefine:DS(n),startIndex:o,dimensionsDetectedCount:i};if(e===Fe){var s=r;a==="auto"||a==null?LS(function(u){u!=null&&u!=="-"&&(J(u)?o==null&&(o=1):o=0)},t,s,10):o=Rt(a)?a:a?1:0,!n&&o===1&&(n=[],LS(function(u,f){n[f]=u!=null?u+"":""},t,s,1/0)),i=n?n.length:t===To?s.length:s[0]?s[0].length:null}else if(e===Ar)n||(n=NV(r));else if(e===ua)n||(n=[],A(r,function(u,f){n.push(f)}));else if(e===Cr){var l=zs(r[0]);i=U(l)&&l.length||1}return{startIndex:o,dimensionsDefine:DS(n),dimensionsDetectedCount:i}}function NV(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return Pt(t)}function DS(r){if(r){var e=at();return Z(r,function(t,a){t=dt(t)?t:{name:t};var n={name:t.name,displayName:t.displayName,type:t.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=e.get(n.name);return i?n.name+="-"+i.count++:e.set(n.name,{count:1}),n})}}function LS(r,e,t,a){if(e===To)for(var n=0;n<t.length&&n<a;n++)r(t[n]?t[n][0]:null,n);else for(var i=t[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function bL(r){var e=r.sourceFormat;return e===Ar||e===ua}var Ci,Ai,Mi,Di,IS,PS,wL=function(){function r(e,t){var a=u0(e)?e:f0(e);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===Zn&&(this._offset=0,this._dimSize=t,this._data=n),PS(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=function(){var e=r.prototype;e.pure=!1,e.persistent=!0}(),r.internalField=function(){var e;PS=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,v=l.startIndex,c=l.dimensionsDefine,h=IS[v0(u,f)];if($(o,h),u===Zn)o.getItem=t,o.count=n,o.fillStorage=a;else{var d=TL(u,f);o.getItem=Q(d,null,s,v,c);var p=CL(u,f);o.count=Q(p,null,s,v,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,v=0;v<u;v++)s[v]=l[f+v];return s},a=function(o,s,l,u){for(var f=this._data,v=this._dimSize,c=0;c<v;c++){for(var h=u[c],d=h[0]==null?1/0:h[0],p=h[1]==null?-1/0:h[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*v+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}h[0]=d,h[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};IS=(e={},e[Fe+"_"+aa]={pure:!0,appendData:i},e[Fe+"_"+To]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ar]={pure:!0,appendData:i},e[ua]={pure:!0,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),v=0;v<(l||[]).length;v++)f.push(l[v])})}},e[Cr]={appendData:i},e[Zn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),_f=function(r){U(r)||RM("series.data or dataset.source must be an array.")};Ci={},Ci[Fe+"_"+aa]=_f,Ci[Fe+"_"+To]=_f,Ci[Ar]=_f,Ci[ua]=function(r,e){for(var t=0;t<e.length;t++){var a=e[t].name;a==null&&RM("dimension name must not be null/undefined.")}},Ci[Cr]=_f;var RS=function(r,e,t,a){return r[a]},BV=(Ai={},Ai[Fe+"_"+aa]=function(r,e,t,a){return r[a+e]},Ai[Fe+"_"+To]=function(r,e,t,a,n){a+=e;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},Ai[Ar]=RS,Ai[ua]=function(r,e,t,a,n){for(var i=n||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},Ai[Cr]=RS,Ai);function TL(r,e){var t=BV[v0(r,e)];return t}var kS=function(r,e,t){return r.length},zV=(Mi={},Mi[Fe+"_"+aa]=function(r,e,t){return Math.max(0,r.length-e)},Mi[Fe+"_"+To]=function(r,e,t){var a=r[0];return a?Math.max(0,a.length-e):0},Mi[Ar]=kS,Mi[ua]=function(r,e,t){var a=t[0].name,n=a!=null?r[a]:null;return n?n.length:0},Mi[Cr]=kS,Mi);function CL(r,e){var t=zV[v0(r,e)];return t}var bd=function(r,e,t){return r[e]},VV=(Di={},Di[Fe]=bd,Di[Ar]=function(r,e,t){return r[t]},Di[ua]=bd,Di[Cr]=function(r,e,t){var a=zs(r);return a instanceof Array?a[e]:a},Di[Zn]=bd,Di);function AL(r){var e=VV[r];return e}function v0(r,e){return r===Fe?r+"_"+e:r}function As(r,e,t){if(r){var a=r.getRawDataItem(e);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=n.getDimensionProperty(o);return AL(i)(a,o,s)}else{var l=a;return i===Cr&&(l=zs(a)),l}}}}var GV=/\{@(.+?)\}/g,fh=function(){function r(){}return r.prototype.getDataParams=function(e,t){var a=this.getData(t),n=this.getRawValue(e,t),i=a.getRawIndex(e),o=a.getName(e),s=a.getRawDataItem(e),l=a.getItemVisual(e,"style"),u=l&&l[a.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,v=this.mainType,c=v==="series",h=a.userOutput&&a.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:i,data:s,dataType:t,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,a,n,i,o){t=t||"normal";var s=this.getData(a),l=this.getDataParams(e,a);if(o&&(l.value=o.interpolatedValue),n!=null&&U(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(e);i=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(lt(i))return l.status=t,l.dimensionIndex=n,i(l);if(J(i)){var f=JD(i,l);return f.replace(GV,function(v,c){var h=c.length,d=c;d.charAt(0)==="["&&d.charAt(h-1)==="]"&&(d=+d.slice(1,h-1));var p=As(s,e,d);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(e,t){return As(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,a){},r}();function ES(r){var e,t;return dt(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function jl(r){return new FV(r)}var FV=function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,a=e&&e.skip;if(this._dirty&&t){var n=this.context;n.data=n.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var v;(this._dirty||i==="reset")&&(this._dirty=!1,v=this._doReset(a)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(v||h<d)){var p=this._progress;if(U(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],h,d,l,u);else this._doProgress(p,h,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,a,n,i){OS.reset(t,a,n,i),this._callingProgress=e,this._callingProgress({start:t,end:a,count:a-t,next:OS.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,a;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(a=t.forceFirstProgress,t=t.progress),U(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r}(),OS=function(){var r,e,t,a,n,i={reset:function(l,u,f,v){e=l,r=u,t=f,a=v,n=Math.ceil(a/t),i.next=t>1&&a>0?s:o}};return i;function o(){return e<r?e++:null}function s(){var l=e%n*t+Math.ceil(e/n),u=e>=r?null:l<a?l:e;return e++,u}}();function Xn(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!Rt(r)&&r!=null&&r!=="-"&&(r=+So(r)),r==null||r===""?NaN:Number(r))}var HV=at({number:function(r){return parseFloat(r)},time:function(r){return+So(r)},trim:function(r){return J(r)?Fr(r):r}});function ML(r){return HV.get(r)}var DL={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},WV=function(){function r(e,t){if(!Rt(t)){var a="";Gt(a)}this._opFn=DL[e],this._rvalFloat=fn(t)}return r.prototype.evaluate=function(e){return Rt(e)?this._opFn(e,this._rvalFloat):this._opFn(fn(e),this._rvalFloat)},r}(),LL=function(){function r(e,t){var a=e==="desc";this._resultLT=a?1:-1,t==null&&(t=a?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var a=Rt(e)?e:fn(e),n=Rt(t)?t:fn(t),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=J(e),l=J(t);s&&(a=l?e:0),l&&(n=s?t:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r}(),$V=function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=fn(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var a=typeof e;a!==this._rvalTypeof&&(a==="number"||this._rvalTypeof==="number")&&(t=fn(e)===this._rvalFloat)}return this._isEQ?t:!t},r}();function UV(r,e){return r==="eq"||r==="ne"?new $V(r==="eq",e):rt(DL,r)?new WV(r,e):null}var YV=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return Xn(e,t)},r}();function ZV(r,e){var t=new YV,a=r.data,n=t.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==aa&&Gt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";rt(l,y)&&Gt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var v=TL(n,aa);e.__isBuiltIn&&(t.getRawDataItem=function(p){return v(a,i,s,p)},t.getRawData=Q(XV,null,r)),t.cloneRawData=Q(qV,null,r);var c=CL(n,aa);t.count=Q(c,null,a,i,s);var h=AL(n);t.retrieveValue=function(p,g){var y=v(a,i,s,p);return d(y,g)};var d=t.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return h(p,g,y.name)}};return t.getDimensionInfo=Q(KV,null,s,l),t.cloneAllDimensionInfo=Q(jV,null,s),t}function XV(r){var e=r.sourceFormat;if(!c0(e)){var t="";Gt(t)}return r.data}function qV(r){var e=r.sourceFormat,t=r.data;if(!c0(e)){var a="";Gt(a)}if(e===Fe){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].slice());return n}else if(e===Ar){for(var n=[],i=0,o=t.length;i<o;i++)n.push($({},t[i]));return n}}function KV(r,e,t){if(t!=null){if(Rt(t)||!isNaN(t)&&!rt(e,t))return r[t];if(rt(e,t))return e[t]}}function jV(r){return ut(r)}var IL=at();function JV(r){r=ut(r);var e=r.type,t="";e||Gt(t);var a=e.split(":");a.length!==2&&Gt(t);var n=!1;a[0]==="echarts"&&(e=a[1],n=!0),r.__isBuiltIn=n,IL.set(e,r)}function QV(r,e,t){var a=Zt(r),n=a.length,i="";n||Gt(i);for(var o=0,s=n;o<s;o++){var l=a[o];e=t5(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function t5(r,e,t,a){var n="";e.length||Gt(n),dt(r)||Gt(n);var i=r.type,o=IL.get(i);o||Gt(n);var s=Z(e,function(u){return ZV(u,o)}),l=Zt(o.transform({upstream:s[0],upstreamList:s,config:ut(r.config)}));return Z(l,function(u,f){var v="";dt(u)||Gt(v),u.data||Gt(v);var c=xL(u.data);c0(c)||Gt(v);var h,d=e[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),h={seriesLayoutBy:aa,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:aa,sourceHeader:0,dimensions:u.dimensions};return ty(u.data,h,null)})}function c0(r){return r===Fe||r===Ar}var vh="undefined",e5=typeof Uint32Array===vh?Array:Uint32Array,r5=typeof Uint16Array===vh?Array:Uint16Array,PL=typeof Int32Array===vh?Array:Int32Array,NS=typeof Float64Array===vh?Array:Float64Array,RL={float:NS,int:PL,ordinal:Array,number:Array,time:NS},wd;function Fo(r){return r>65535?e5:r5}function Ho(){return[1/0,-1/0]}function a5(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function BS(r,e,t,a,n){var i=RL[t||"float"];if(n){var o=r[e],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new i(a)}var ey=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=at()}return r.prototype.initData=function(e,t,a){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),i=this.defaultDimValueGetter=wd[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],bL(n),this._dimensions=Z(t,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(e);if(i!=null){if(n[i].type===t)return i}else i=n.length;return n[i]={type:t},a.set(e,i),this._chunks[i]=new RL[t||"float"](this._rawCount),this._rawExtent[i]=Ho(),i},r.prototype.collectOrdinalMeta=function(e,t){var a=this._chunks[e],n=this._dimensions[e],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[e]=Ho());for(var l=i[e],u=o;u<s;u++){var f=a[u]=t.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=t,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],a=t.ordinalMeta;return a},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,a=this.count();t.appendData(e);var n=t.count();return t.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(e,t){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<i;u++){var f=n[u];BS(a,u,f.type,l,!0)}for(var v=[],c=s;c<l;c++)for(var h=c-s,d=0;d<i;d++){var f=n[d],p=wd.arrayRows.call(this,e[h]||v,f.property,h,d);a[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Z(o,function(m){return m.property}),f=0;f<s;f++){var v=o[f];l[f]||(l[f]=Ho()),BS(i,f,v.type,t,a)}if(n.fillStorage)n.fillStorage(e,t,i,l);else for(var c=[],h=e;h<t;h++){c=n.getItem(h,c);for(var d=0;d<s;d++){var p=i[d],g=this._dimValueGetter(c,u[d],h,d);p[h]=g;var y=l[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var a=this._chunks[e];return a?a[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var a=[],n=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=e;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],t));return a},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var a=this._chunks[e];return a?a[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],a=0;if(t)for(var n=0,i=this.count();n<i;n++){var o=this.get(e,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(e){var t=[];this.each([e],function(i){isNaN(i)||t.push(i)});var a=t.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,a=t[e];if(a!=null&&a<this._count&&a===e)return e;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(t[o]<e)n=o+1;else if(t[o]>e)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var a=t.constructor,n=this._count;if(a===Array){e=new a(n);for(var i=0;i<n;i++)e[i]=t[i]}else e=new a(t.buffer,0,n)}else{var a=Fo(this._rawCount);e=new a(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Fo(a._rawCount),o=new i(n),s=[],l=e.length,u=0,f=e[0],v=a._chunks,c=0;c<n;c++){var h=void 0,d=a.getRawIndex(c);if(l===0)h=t(c);else if(l===1){var p=v[f][d];h=t(p,c)}else{for(var g=0;g<l;g++)s[g]=v[e[g]][d];s[g]=c,h=t.apply(null,s)}h&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(e){var t=this.clone(),a=t._count;if(!a)return this;var n=Pt(e),i=n.length;if(!i)return this;var o=t.count(),s=Fo(t._rawCount),l=new s(o),u=0,f=n[0],v=e[f][0],c=e[f][1],h=t._chunks,d=!1;if(!t._indices){var p=0;if(i===1){for(var g=h[n[0]],y=0;y<a;y++){var m=g[y];(m>=v&&m<=c||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=h[n[0]],_=h[n[1]],S=e[n[1]][0],b=e[n[1]][1],y=0;y<a;y++){var m=g[y],x=_[y];(m>=v&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var y=0;y<o;y++){var w=t.getRawIndex(y),m=h[n[0]][w];(m>=v&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=t.getRawIndex(y),C=0;C<i;C++){var M=n[C],m=h[M][w];(m<e[M][0]||m>e[M][1])&&(T=!1)}T&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var a=this.clone(e);return this._updateDims(a,e,t),a},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,a){for(var n=e._chunks,i=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ho();for(var v=0;v<s;v++){for(var c=e.getRawIndex(v),h=0;h<o;h++)l[h]=n[t[h]][c];l[o]=v;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=t[f],g=d[f],y=u[p],m=n[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var a=this.clone([e],!0),n=a._chunks,i=n[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,v,c,h=new(Fo(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),g=Math.min(d+l*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=g-p;var x=d,w=Math.min(d+l,o),T=d-1,C=i[u];f=-1,c=x;for(var M=-1,D=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){D++,M<0&&(M=S);continue}v=Math.abs((T-y)*(b-C)-(T-_)*(m-C)),v>f&&(f=v,c=S)}D>0&&D<w-x&&(h[s++]=Math.min(M,c),c=Math.max(M,c)),h[s++]=c,u=c}return h[s++]=this.getRawIndex(o-1),a._count=s,a._indices=h,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(e,t){for(var a=this.clone([e],!0),n=a._chunks,i=Math.floor(1/t),o=n[e],s=this.count(),l=new(Fo(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var v=f,c=o[this.getRawIndex(v)],h=f,d=o[this.getRawIndex(h)],p=i;f+i>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,v=f+g),m>d&&(d=m,h=f+g)}var _=this.getRawIndex(v),S=this.getRawIndex(h);v<h?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(e,t,a,n){for(var i=this.clone([e],!0),o=i._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),v=i._rawExtent[e]=Ho(),c=new(Fo(this._rawCount))(Math.ceil(f/l)),h=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var g=this.getRawIndex(d+p);s[p]=u[g]}var y=a(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,f-1));u[m]=y,y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y),c[h++]=m}return i._count=h,i._indices=c,i._updateGetRawIdx(),i},r.prototype.each=function(e,t){if(this._count)for(var a=e.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:t(i);break;case 1:t(n[e[0]][s],i);break;case 2:t(n[e[0]][s],n[e[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[e[l]][s];u[l]=i,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],a=Ho();if(!t)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),v=t[f];v<s&&(s=v),v>l&&(l=v)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][t]);return a},r.prototype.clone=function(e,t){var a=new r,n=this._chunks,i=e&&Oa(e,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?a5(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),t||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ut(this._extent),e._rawExtent=ut(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var a=this._indices.length;t=new e(a);for(var n=0;n<a;n++)t[n]=this._indices[n]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function e(t,a,n,i){return Xn(t[i],this._dimensions[i])}wd={arrayRows:e,objectRows:function(t,a,n,i){return Xn(t[a],this._dimensions[i])},keyedColumns:e,original:function(t,a,n,i){var o=t&&(t.value==null?t:t.value);return Xn(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(t,a,n,i){return t[i]}}}(),r}(),kL=function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),a=!!t.length,n,i;if(Sf(e)){var o=e,s=void 0,l=void 0,u=void 0;if(a){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=pr(s)?Zn:Cr,i=[];var v=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},h=nt(v.seriesLayoutBy,c.seriesLayoutBy)||null,d=nt(v.sourceHeader,c.sourceHeader),p=nt(v.dimensions,c.dimensions),g=h!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;n=g?[ty(s,{seriesLayoutBy:h,sourceHeader:d,dimensions:p},l)]:[]}else{var y=e;if(a){var m=this._applyTransform(t);n=m.sourceList,i=m.upstreamSignList}else{var _=y.get("source",!0);n=[ty(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(e){var t=this._sourceHost,a=t.get("transform",!0),n=t.get("fromTransformResult",!0);if(n!=null){var i="";e.length!==1&&VS(i)}var o,s=[],l=[];return A(e,function(u){u.prepareSource();var f=u.getSource(n||0),v="";n!=null&&!f&&VS(v),s.push(f),l.push(u._getVersionSign())}),a?o=QV(a,s,{datasetIndex:t.componentIndex}):n!=null&&(o=[EV(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var a=e[t];if(a._isDirty()||this._upstreamSignList[t]!==a._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];Sf(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,a):(s=new ey,s.initData(new wL(t,e.length),e)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Sf(e)){var t=s0(e);return t?[t.getSourceManager()]:[]}else return Z(sV(e),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,a,n;if(Sf(e))t=e.get("seriesLayoutBy",!0),a=e.get("sourceHeader",!0),n=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:a,dimensions:n}},r}();function zS(r){var e=r.option.transform;e&&kv(r.option.transform)}function Sf(r){return r.mainType==="series"}function VS(r){throw new Error(r)}var n5="line-height:1";function EL(r){var e=r.lineHeight;return e==null?n5:"line-height:"+Ke(e+"")+"px"}function OL(r,e){var t=r.color||F.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||F.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ke(a+"")+"px;color:"+Ke(t)+";font-weight:"+Ke(n+""),valueStyle:"font-size:"+Ke(o+"")+"px;color:"+Ke(i)+";font-weight:"+Ke(s+"")}:{nameStyle:{fontSize:a,fill:t,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var i5=[0,10,20,30],o5=["",`
`,`

`,`


`];function xe(r,e){return e.type=r,e}function ry(r){return r.type==="section"}function NL(r){return ry(r)?s5:l5}function BL(r){if(ry(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return A(r.blocks,function(n){var i=BL(n);i>=e&&(e=i+ +(a&&(!i||ry(n)&&!n.noHeader)))}),e}return 0}function s5(r,e,t,a){var n=e.noHeader,i=u5(BL(e)),o=[],s=e.blocks||[];Qe(!s||U(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(rt(u,l)){var f=new LL(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(p,g){var y=e.valueFormatter,m=NL(p)(y?$($({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var v=r.renderMode==="richText"?o.join(i.richText):ay(a,o.join(""),n?t:i.html);if(n)return v;var c=Kg(e.header,"ordinal",r.useUTC),h=OL(a,r.renderMode).nameStyle,d=EL(a);return r.renderMode==="richText"?zL(r,c,h)+i.richText+v:ay(a,'<div style="'+h+";"+d+';">'+Ke(c)+"</div>"+v,t)}function l5(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=U(S)?S:[S],Z(S,function(b,x){return Kg(b,U(h)?h[x]:h,u)})};if(!(i&&o)){var v=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||F.color.secondary,n),c=i?"":Kg(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,g=!s&&i,y=OL(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":v)+(i?"":zL(r,c,m))+(o?"":c5(r,d,p,g,_)):ay(a,(s?"":v)+(i?"":f5(c,!s,m))+(o?"":v5(d,p,g,_)),t)}}function GS(r,e,t,a,n,i){if(r){var o=NL(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function u5(r){return{html:i5[r],richText:o5[r]}}function ay(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=EL(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function f5(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ke(r)+"</span>"}function v5(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],'<span style="'+i+";"+a+'">'+Z(r,function(o){return Ke(o)}).join("&nbsp;&nbsp;")+"</span>"}function zL(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function c5(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(U(e)?e.join("  "):e,i)}function VL(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return po(a)}function GL(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Td=function(){function r(){this.richTextStyles={},this._nextStyleNameId=IM()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=qz({color:t,type:e,renderMode:a,markerId:n});return J(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};U(t)?A(t,function(i){return $(a,i)}):$(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function FL(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=U(s),u=VL(e,t),f,v,c,h;if(o>1||l&&!o){var d=h5(s,e,t,i,u);f=d.inlineValues,v=d.inlineValueTypes,c=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=As(n,t,i[0]),v=p.type}else h=f=l?s[0]:s;var g=Pm(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return xe("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[xe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Fr(_),value:f,valueType:v,dataIndex:t})].concat(c||[])})}function h5(r,e,t,a,n){var i=e.getData(),o=Oa(r,function(v,c,h){var d=i.getDimensionInfo(h);return v=v||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?A(a,function(v){f(As(i,t,v),v)}):A(r,f);function f(v,c){var h=i.getDimensionInfo(c);!h||h.otherDims.tooltip===!1||(o?u.push(xe("nameValue",{markerType:"subItem",markerColor:n,name:h.displayName,value:v,valueType:h.type})):(s.push(v),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var wn=Lt();function xf(r,e){return r.getName(e)||r.getId(e)}var Av="__universalTransitionEnabled",ch=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,a,n){this.seriesIndex=this.componentIndex,this.dataTask=jl({count:p5,reset:g5}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var i=wn(this).sourceManager=new kL(this);i.prepareSource();var o=this.getInitialData(t,n);HS(o,this),this.dataTask.context.data=o,wn(this).dataBeforeProcessed=o,FS(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,a){var n=du(this),i=n?wo(t):{},o=this.subType;kt.hasClass(o)&&(o+="Series"),wt(t,a.getTheme().get(this.subType)),wt(t,this.getDefaultOption()),lo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Va(t,i,n)},e.prototype.mergeOption=function(t,a){t=wt(this.option,t,!0),this.fillDataTextStyle(t.data);var n=du(this);n&&Va(this.option,t,n);var i=wn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(t,a);HS(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,wn(this).dataBeforeProcessed=o,FS(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!pr(t))for(var a=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&lo(t[n],"label",a)},e.prototype.getInitialData=function(t,a){},e.prototype.appendData=function(t){var a=this.getRawData();a.appendData(t.data)},e.prototype.getData=function(t){var a=ny(this);if(a){var n=a.context.data;return t==null||!n.getLinkedData?n:n.getLinkedData(t)}else return wn(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var a=ny(this);if(a){var n=a.context;n.outputData=t,a!==this.dataTask&&(n.data=t)}wn(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return at(t)},e.prototype.getSourceManager=function(){return wn(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return wn(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.indicesOfNearest=function(t,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],v=1/0,c=-1,h=0;return o.each(a,function(d,p){var g=l.dataToCoord(d),y=u-g,m=Math.abs(y);m<=i&&((m<v||m===v&&y>=0&&c<0)&&(v=m,c=y,h=0),y===c&&(f[h++]=p))}),f.length=h,f},e.prototype.formatTooltip=function(t,a,n){return FL({series:this,dataIndex:t,multipleSeries:a})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(zt.node&&!(t&&t.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,a,n){var i=this.ecModel,o=l0.prototype.getColorFromPalette.call(this,t,a,n);return o||(o=i.getColorFromPalette(t,a,n)),o},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,a){this._innerSelect(this.getData(a),t)},e.prototype.unselect=function(t,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=xf(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,a){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],a)?this.unselect(n,a):this.select(n,a)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,a=Pt(t),n=[],i=0;i<a.length;i++){var o=t[a[i]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(t,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[xf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Av])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){dt(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var v=a[f],c=xf(t,v);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(v)}}else if(s==="single"||s===!0){var h=a[l-1],c=xf(t,h);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(i={},i[c]=t.getRawIndex(h),i)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var a=[];t.hasItemOption&&t.each(function(n){var i=t.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(t,a)}},e.registerClass=function(t){return kt.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}(kt);we(ch,fh);we(ch,l0);GM(ch,kt);function FS(r){var e=r.name;Pm(r)||(r.name=d5(r)||e)}function d5(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),a=[];return A(t,function(n){var i=e.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function p5(r){return r.model.getRawData().count()}function g5(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),y5}function y5(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function HS(r,e){A(au(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,xt(m5,e))})}function m5(r,e){var t=ny(r);return t&&t.setOutputEnd((e||this).count()),e}function ny(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var a=t.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}const ie=ch;var h0=function(){function r(){this.group=new ft,this.uid=$s("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){},r.prototype.updateLayout=function(e,t,a,n){},r.prototype.updateVisual=function(e,t,a,n){},r.prototype.toggleBlurSeries=function(e,t,a){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();km(h0);Zc(h0);const se=h0;function Ys(){var r=Lt();return function(e){var t=r(e),a=e.pipelineContext,n=!!t.large,i=!!t.progressiveRender,o=t.large=!!(a&&a.large),s=t.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var HL=Lt(),_5=Ys(),d0=function(){function r(){this.group=new ft,this.uid=$s("viewChart"),this.renderTask=jl({plan:S5,reset:x5}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,a,n){},r.prototype.highlight=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&$S(i,n,"emphasis")},r.prototype.downplay=function(e,t,a,n){var i=e.getData(n&&n.dataType);i&&$S(i,n,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateLayout=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.updateVisual=function(e,t,a,n){this.render(e,t,a,n)},r.prototype.eachRendered=function(e){oi(this.group,e)},r.markUpdateMethod=function(e,t){HL(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function WS(r,e,t){r&&vu(r)&&(e==="emphasis"?vn:cn)(r,t)}function $S(r,e,t){var a=uo(r,e),n=e&&e.highlightKey!=null?OB(e.highlightKey):null;a!=null?A(Zt(a),function(i){WS(r.getItemGraphicEl(i),t,n)}):r.eachItemGraphicEl(function(i){WS(i,t,n)})}km(d0);Zc(d0);function S5(r){return _5(r.model)}function x5(r){var e=r.model,t=r.ecModel,a=r.api,n=r.payload,i=e.pipelineContext.progressiveRender,o=r.view,s=n&&HL(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,a,n),b5[l]}var b5={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};const Jt=d0;var Jv="\0__throttleOriginMethod",US="\0__throttleRate",YS="\0__throttleType";function p0(r,e,t){var a,n=0,i=0,o=null,s,l,u,f;e=e||0;function v(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var h=[],d=0;d<arguments.length;d++)h[d]=arguments[d];a=new Date().getTime(),l=this,u=h;var p=f||e,g=f||t;f=null,s=a-(g?n:i)-p,clearTimeout(o),g?o=setTimeout(v,p):s>=0?v():o=setTimeout(v,-s),n=a};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(h){f=h},c}function Zs(r,e,t,a){var n=r[e];if(n){var i=n[Jv]||n,o=n[YS],s=n[US];if(s!==t||o!==a){if(t==null||!a)return r[e]=i;n=r[e]=p0(i,t,a==="debounce"),n[Jv]=i,n[YS]=a,n[US]=t}return n}}function gu(r,e){var t=r[e];t&&t[Jv]&&(t.clear&&t.clear(),r[e]=t[Jv])}var ZS=Lt(),XS={itemStyle:fo(GD,!0),lineStyle:fo(VD,!0)},w5={lineStyle:"stroke",itemStyle:"fill"};function WL(r,e){var t=r.visualStyleMapper||XS[e];return t||(console.warn("Unknown style type '"+e+"'."),XS.itemStyle)}function $L(r,e){var t=r.visualDrawType||w5[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var T5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=WL(r,a),o=i(n),s=n.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=$L(r,a),u=o[l],f=lt(u)?u:null,v=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||v){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||lt(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||lt(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(h,d){var p=r.getDataParams(d),g=$({},o);g[l]=f(p),h.setItemVisual(d,"style",g)}}}},sl=new Bt,C5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=WL(r,a),i=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){sl.option=l[a];var u=n(sl),f=o.ensureUniqueItemVisual(s,"style");$(f,u),sl.option.decal&&(o.setItemVisual(s,"decal",sl.option.decal),sl.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},A5={performRawSeries:!0,overallReset:function(r){var e=at();r.eachSeries(function(t){var a=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+a,i=e.get(n);i||(i={},e.set(n,i)),ZS(t).scope=i}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var a=t.getRawData(),n={},i=t.getData(),o=ZS(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=$L(t,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],v=i.getItemVisual(f,"colorFromPalette");if(v){var c=i.ensureUniqueItemVisual(f,"style"),h=a.getName(u)||u+"",d=a.count();c[l]=t.getColorFromPalette(h,o,d)}})}})}},bf=Math.PI;function M5(r,e){e=e||{},ht(e,{text:"loading",textColor:F.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:F.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new ft,a=new Dt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(a);var n=new Ot({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),i=new Dt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(i);var o;return e.showSpinner&&(o=new $m({shape:{startAngle:-bf/2,endAngle:-bf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:bf*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:bf*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var D5=function(){function r(e,t,a,n){this._stageTaskMap=at(),this.ecInstance=e,this.api=t,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var a=this._pipelineMap.get(e.__pipeline.id),n=a.context,i=!t&&a.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var a=this._pipelineMap.get(e.uid),n=e.getData(),i=n.count(),o=a.progressiveEnabled&&t.incrementalPrepareRender&&i>=a.threshold,s=e.get("large")&&i>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?i:null;e.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,a=t._pipelineMap=at();e.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),a=this.api;A(this._allHandlers,function(n){var i=e.get(n.uid)||e.set(n.uid,{}),o="";Qe(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,t,a),n.overallReset&&this._createOverallStageTask(n,i,t,a)},this)},r.prototype.prepareView=function(e,t,a,n){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=a,o.api=n,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,a){this._performStageTasks(this._visualHandlers,e,t,a)},r.prototype._performStageTasks=function(e,t,a,n){n=n||{};var i=!1,o=this;A(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),v=f.seriesTaskMap,c=f.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(g){s(n,g)&&(g.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,a);var p=o.getPerformArgs(c,n.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(i=!0)}else v&&v.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,a),g.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(a){t=a.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.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)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,a,n){var i=this,o=t.seriesTaskMap,s=t.seriesTaskMap=at(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(v){var c=v.uid,h=s.set(c,o&&o.get(c)||jl({plan:k5,reset:E5,count:N5}));h.context={model:v,ecModel:a,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(v,h)}},r.prototype._createOverallStageTask=function(e,t,a,n){var i=this,o=t.overallTask=t.overallTask||jl({reset:L5});o.context={ecModel:a,api:n,overallReset:e.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=at(),u=e.seriesType,f=e.getTargetSeries,v=!0,c=!1,h="";Qe(!e.createOnAllSeries,h),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(v=!1,A(a.getSeries(),d));function d(p){var g=p.uid,y=l.set(g,s&&s.get(g)||(c=!0,jl({reset:I5,onDirty:R5})));y.context={model:p,overallProgress:v},y.agent=o,y.__block=v,i._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(e,t){var a=e.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=t),n.tail&&n.tail.pipe(t),n.tail=t,t.__idxInPipeline=n.count++,t.__pipeline=n},r.wrapStageHandler=function(e,t){return lt(e)&&(e={overallReset:e,seriesType:B5(e)}),e.uid=$s("stageHandler"),t&&(e.visualType=t),e},r}();function L5(r){r.overallReset(r.ecModel,r.api,r.payload)}function I5(r){return r.overallProgress&&P5}function P5(){this.agent.dirty(),this.getDownstream().dirty()}function R5(){this.agent&&this.agent.dirty()}function k5(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function E5(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Zt(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?Z(e,function(t,a){return UL(a)}):O5}var O5=UL(0);function UL(r){return function(e,t){var a=t.data,n=t.resetDefines[r];if(n&&n.dataEach)for(var i=e.start;i<e.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(e,a)}}function N5(r){return r.data.count()}function B5(r){Qv=null;try{r(yu,YL)}catch{}return Qv}var yu={},YL={},Qv;ZL(yu,yL);ZL(YL,mL);yu.eachSeriesByType=yu.eachRawSeriesByType=function(r){Qv=r};yu.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Qv=r.subType)};function ZL(r,e){for(var t in e.prototype)r[t]=pe}const XL=D5;var vt=F.darkColor,z5=vt.background,ll=function(){return{axisLine:{lineStyle:{color:vt.axisLine}},splitLine:{lineStyle:{color:vt.axisSplitLine}},splitArea:{areaStyle:{color:[vt.backgroundTint,vt.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:vt.axisMinorSplitLine}},axisLabel:{color:vt.axisLabel},axisName:{}}},qS={label:{color:vt.secondary},itemStyle:{borderColor:vt.borderTint},dividerLineStyle:{color:vt.border}},qL={darkMode:!0,color:vt.theme,backgroundColor:z5,axisPointer:{lineStyle:{color:vt.border},crossStyle:{color:vt.borderShade},label:{color:vt.tertiary}},legend:{textStyle:{color:vt.secondary},pageTextStyle:{color:vt.tertiary}},textStyle:{color:vt.secondary},title:{textStyle:{color:vt.primary},subtextStyle:{color:vt.quaternary}},toolbox:{iconStyle:{borderColor:vt.accent50}},tooltip:{backgroundColor:vt.neutral20,defaultBorderColor:vt.border,textStyle:{color:vt.tertiary}},dataZoom:{borderColor:vt.accent10,textStyle:{color:vt.tertiary},brushStyle:{color:vt.backgroundTint},handleStyle:{color:vt.neutral00,borderColor:vt.accent20},moveHandleStyle:{color:vt.accent40},emphasis:{handleStyle:{borderColor:vt.accent50}},dataBackground:{lineStyle:{color:vt.accent30},areaStyle:{color:vt.accent20}},selectedDataBackground:{lineStyle:{color:vt.accent50},areaStyle:{color:vt.accent30}}},visualMap:{textStyle:{color:vt.secondary},handleStyle:{borderColor:vt.neutral30}},timeline:{lineStyle:{color:vt.accent10},label:{color:vt.tertiary},controlStyle:{color:vt.accent30,borderColor:vt.accent30}},calendar:{itemStyle:{color:vt.neutral00,borderColor:vt.neutral20},dayLabel:{color:vt.tertiary},monthLabel:{color:vt.secondary},yearLabel:{color:vt.secondary}},matrix:{x:qS,y:qS,backgroundColor:{borderColor:vt.axisLine},body:{itemStyle:{borderColor:vt.borderTint}}},timeAxis:ll(),logAxis:ll(),valueAxis:ll(),categoryAxis:ll(),line:{symbol:"circle"},graph:{color:vt.theme},gauge:{title:{color:vt.secondary},axisLine:{lineStyle:{color:[[1,vt.neutral05]]}},axisLabel:{color:vt.axisLabel},detail:{color:vt.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:vt.background}},radar:function(){var r=ll();return r.axisName={color:vt.axisLabel},r.axisLine.lineStyle.color=vt.neutral20,r}(),treemap:{breadcrumb:{itemStyle:{color:vt.neutral20,textStyle:{color:vt.secondary}},emphasis:{itemStyle:{color:vt.neutral30}}}},sunburst:{itemStyle:{borderColor:vt.background}},map:{itemStyle:{borderColor:vt.border,areaColor:vt.neutral10},label:{color:vt.tertiary},emphasis:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}},select:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}}},geo:{itemStyle:{borderColor:vt.border,areaColor:vt.neutral10},emphasis:{label:{color:vt.primary},itemStyle:{areaColor:vt.highlight}},select:{label:{color:vt.primary},itemStyle:{color:vt.highlight}}}};qL.categoryAxis.splitLine.show=!1;const V5=qL;var G5=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},a={},n={};if(J(e)){var i=Ma(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(e,function(l,u){for(var f=!1,v=0;v<o.length;v++){var c=o[v],h=u.lastIndexOf(c);if(h>0&&h===u.length-c.length){var d=u.slice(0,h);d!=="data"&&(t.mainType=d,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:t,dataQuery:a,otherQuery:n}},r.prototype.filter=function(e,t){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,n,i));function f(v,c,h,d){return v[h]==null||c[d||h]===v[h]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),iy=["symbol","symbolSize","symbolRotate","symbolOffset"],KS=iy.concat(["symbolKeepAspect"]),F5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<iy.length;o++){var s=iy[o],l=r.get(s);lt(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,t.setVisual($({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),e.isSeriesFiltered(r))return;var u=Pt(n);function f(v,c){for(var h=r.getRawValue(c),d=r.getDataParams(c),p=0;p<u.length;p++){var g=u[p];v.setItemVisual(c,g,n[g](h,d))}}return{dataEach:i?f:null}}},H5={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<KS.length;s++){var l=KS[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:t.hasItemOption?a:null}}};function g0(r,e,t){switch(t){case"color":var a=r.getItemVisual(e,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Fu(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e)}}function KL(r,e,t,a){switch(t){case"color":var n=r.ensureUniqueItemVisual(e,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,a);break}}function jL(r,e){function t(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){e(a[0],function(n,i,o){n=$({},n),o.dispatchAction($(n,{type:a[1],seriesIndex:t(i,n)}))})})}function Wo(r,e,t,a,n){var i=r+e;t.isSilent(i)||a.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var v=o.getData(),c=uo(v,n.fromActionPayload);t.trigger(i,{type:i,seriesId:o.id,name:U(c)?v.getName(c[0]):v.getName(c),selected:J(l)?l:$({},l)})}})}function W5(r,e,t){r.on("selectchanged",function(a){var n=t.getModel();a.isFromClick?(Wo("map","selectchanged",e,n,a),Wo("pie","selectchanged",e,n,a)):a.fromAction==="select"?(Wo("map","selected",e,n,a),Wo("pie","selected",e,n,a)):a.fromAction==="unselect"&&(Wo("map","unselected",e,n,a),Wo("pie","unselected",e,n,a))})}function qi(r,e,t){for(var a;r&&!(e(r)&&(a=r,t));)r=r.__hostTarget||r.parent;return a}var $5=Math.round(Math.random()*9),U5=typeof Object.defineProperty=="function",Y5=function(){function r(){this._id="__ec_inner_"+$5++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var a=this._guard(e);return U5?Object.defineProperty(a,this._id,{value:t,enumerable:!1,configurable:!0}):a[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r}();const Z5=Y5;var X5=It.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a+i),r.lineTo(t-n,a+i),r.closePath()}}),q5=It.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,a=e.cy,n=e.width/2,i=e.height/2;r.moveTo(t,a-i),r.lineTo(t+n,a),r.lineTo(t,a+i),r.lineTo(t-n,a),r.closePath()}}),K5=It.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,a=e.y,n=e.width/5*3,i=Math.max(n,e.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,v=Math.sin(u),c=Math.cos(u),h=o*.6,d=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-v*h,l+s+c*h,t,a-d,t,a),r.bezierCurveTo(t,a-d,t-f+v*h,l+s+c*h,t-f,l+s),r.closePath()}}),j5=It.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,a=e.width,n=e.x,i=e.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+t),r.lineTo(n,i+t/4*3),r.lineTo(n-o,i+t),r.lineTo(n,i),r.closePath()}}),J5={line:Me,rect:Dt,roundRect:Dt,square:Dt,circle:ii,diamond:q5,pin:K5,arrow:j5,triangle:X5},Q5={line:function(r,e,t,a,n){n.x1=r,n.y1=e+a/2,n.x2=r+t,n.y2=e+a/2},rect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a},roundRect:function(r,e,t,a,n){n.x=r,n.y=e,n.width=t,n.height=a,n.r=Math.min(t,a)/4},square:function(r,e,t,a,n){var i=Math.min(t,a);n.x=r,n.y=e,n.width=i,n.height=i},circle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.r=Math.min(t,a)/2},diamond:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a},pin:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},arrow:function(r,e,t,a,n){n.x=r+t/2,n.y=e+a/2,n.width=t,n.height=a},triangle:function(r,e,t,a,n){n.cx=r+t/2,n.cy=e+a/2,n.width=t,n.height=a}},tc={};A(J5,function(r,e){tc[e]=new r});var tG=It.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var a=Hv(r,e,t),n=this.shape;return n&&n.symbolType==="pin"&&e.position==="inside"&&(a.y=t.y+t.height*.4),a},buildPath:function(r,e,t){var a=e.symbolType;if(a!=="none"){var n=tc[a];n||(a="rect",n=tc[a]),Q5[a](e.x,e.y,e.width,e.height,n.shape),n.buildPath(r,n.shape,t)}}});function eG(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||F.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function be(r,e,t,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=LD(r.slice(8),new gt(e,t,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=cu(r.slice(7),{},new gt(e,t,a,n),o?"center":"cover"):l=new tG({shape:{symbolType:r,x:e,y:t,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=eG,i&&l.setColor(i),l}function Xs(r){return U(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Co(r,e){if(r!=null)return U(r)||(r=[r,r]),[j(r[0],e[0])||0,j(nt(r[1],r[0]),e[1])||0]}function Ki(r){return isFinite(r)}function rG(r,e,t){var a=e.x==null?0:e.x,n=e.x2==null?1:e.x2,i=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(a=a*t.width+t.x,n=n*t.width+t.x,i=i*t.height+t.y,o=o*t.height+t.y),a=Ki(a)?a:0,n=Ki(n)?n:1,i=Ki(i)?i:0,o=Ki(o)?o:0;var s=r.createLinearGradient(a,i,n,o);return s}function aG(r,e,t){var a=t.width,n=t.height,i=Math.min(a,n),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*a+t.x,s=s*n+t.y,l=l*i),o=Ki(o)?o:.5,s=Ki(s)?s:.5,l=l>=0&&Ki(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function oy(r,e,t){for(var a=e.type==="radial"?aG(r,e,t):rG(r,e,t),n=e.colorStops,i=0;i<n.length;i++)a.addColorStop(n[i].offset,n[i].color);return a}function nG(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function wf(r){return parseInt(r,10)}function ds(r,e,t){var a=["width","height"][e],n=["clientWidth","clientHeight"][e],i=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[a]!=null&&t[a]!=="auto")return parseFloat(t[a]);var s=document.defaultView.getComputedStyle(r);return(r[n]||wf(s[a])||wf(r.style[a]))-(wf(s[i])||0)-(wf(s[o])||0)|0}function iG(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:Rt(r)?[r]:U(r)?r:null}function y0(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&iG(e.lineDash,e.lineWidth),a=e.lineDashOffset;if(t){var n=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(t=Z(t,function(i){return i/n}),a/=n)}return[t,a]}var oG=new za(!0);function ec(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function jS(r){return typeof r=="string"&&r!=="none"}function rc(r){var e=r.fill;return e!=null&&e!=="none"}function JS(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function QS(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function sy(r,e,t){var a=Em(e.image,e.__image,t);if(Xc(a)){var n=r.createPattern(a,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var i=new DOMMatrix;i.translateSelf(e.x||0,e.y||0),i.rotateSelf(0,0,(e.rotation||0)*vv),i.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(i)}return n}}function sG(r,e,t,a){var n,i=ec(t),o=rc(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||oG,v=e.__dirty;if(!a){var c=t.fill,h=t.stroke,d=o&&!!c.colorStops,p=i&&!!h.colorStops,g=o&&!!c.image,y=i&&!!h.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(d||p)&&(x=e.getBoundingRect()),d&&(m=v?oy(r,c,x):e.__canvasFillGradient,e.__canvasFillGradient=m),p&&(_=v?oy(r,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=v||!e.__canvasFillPattern?sy(r,c,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=v||!e.__canvasStrokePattern?sy(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(b?r.strokeStyle=b:i=!1)}var w=e.getGlobalScale();f.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,C;r.setLineDash&&t.lineDash&&(n=y0(e),T=n[0],C=n[1]);var M=!0;(u||v&is)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,a),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),a||(t.strokeFirst?(i&&QS(r,t),o&&JS(r,t)):(o&&JS(r,t),i&&QS(r,t))),T&&r.setLineDash([])}function lG(r,e,t){var a=e.__image=Em(t.image,e.__image,e,e.onload);if(!(!a||!Xc(a))){var n=t.x||0,i=t.y||0,o=e.getWidth(),s=e.getHeight(),l=a.width/a.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=a.width,s=a.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(a,u,f,t.sWidth,t.sHeight,n,i,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,v=o-u,c=s-f;r.drawImage(a,u,f,v,c,n,i,o,s)}else r.drawImage(a,n,i,o,s)}}function uG(r,e,t){var a,n=t.text;if(n!=null&&(n+=""),n){r.font=t.font||ln,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var i=void 0,o=void 0;r.setLineDash&&t.lineDash&&(a=y0(e),i=a[0],o=a[1]),i&&(r.setLineDash(i),r.lineDashOffset=o),t.strokeFirst?(ec(t)&&r.strokeText(n,t.x,t.y),rc(t)&&r.fillText(n,t.x,t.y)):(rc(t)&&r.fillText(n,t.x,t.y),ec(t)&&r.strokeText(n,t.x,t.y)),i&&r.setLineDash([])}}var tx=["shadowBlur","shadowOffsetX","shadowOffsetY"],ex=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function JL(r,e,t,a,n){var i=!1;if(!a&&(t=t||{},e===t))return!1;if(a||e.opacity!==t.opacity){hr(r,n),i=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?to.opacity:o}(a||e.blend!==t.blend)&&(i||(hr(r,n),i=!0),r.globalCompositeOperation=e.blend||to.blend);for(var s=0;s<tx.length;s++){var l=tx[s];(a||e[l]!==t[l])&&(i||(hr(r,n),i=!0),r[l]=r.dpr*(e[l]||0))}return(a||e.shadowColor!==t.shadowColor)&&(i||(hr(r,n),i=!0),r.shadowColor=e.shadowColor||to.shadowColor),i}function rx(r,e,t,a,n){var i=mu(e,n.inHover),o=a?null:t&&mu(t,n.inHover)||{};if(i===o)return!1;var s=JL(r,i,o,a,n);if((a||i.fill!==o.fill)&&(s||(hr(r,n),s=!0),jS(i.fill)&&(r.fillStyle=i.fill)),(a||i.stroke!==o.stroke)&&(s||(hr(r,n),s=!0),jS(i.stroke)&&(r.strokeStyle=i.stroke)),(a||i.opacity!==o.opacity)&&(s||(hr(r,n),s=!0),r.globalAlpha=i.opacity==null?1:i.opacity),e.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(hr(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<ex.length;f++){var v=ex[f],c=v[0];(a||i[c]!==o[c])&&(s||(hr(r,n),s=!0),r[c]=i[c]||v[1])}return s}function fG(r,e,t,a,n){return JL(r,mu(e,n.inHover),t&&mu(t,n.inHover),a,n)}function QL(r,e){var t=e.transform,a=r.dpr||1;t?r.setTransform(a*t[0],a*t[1],a*t[2],a*t[3],a*t[4],a*t[5]):r.setTransform(a,0,0,a,0,0)}function vG(r,e,t){for(var a=!1,n=0;n<r.length;n++){var i=r[n];a=a||i.isZeroArea(),QL(e,i),e.beginPath(),i.buildPath(e,i.shape),e.clip()}t.allClipped=a}function cG(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var ax=1,nx=2,ix=3,ox=4;function hG(r){var e=rc(r),t=ec(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function hr(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function mu(r,e){return e&&r.__hoverStyle||r.style}function t2(r,e){ji(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ji(r,e,t,a){var n=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~Sr,e.__isRendered=!1;return}var i=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||nG(i,o))&&(o&&o.length&&(hr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),i&&i.length&&(hr(r,t),r.save(),vG(i,r,t),s=!0),t.prevElClipPaths=i),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof It&&e.autoBatch&&hG(e.style);s||cG(n,u.transform)?(hr(r,t),QL(r,e)):f||hr(r,t);var v=mu(e,t.inHover);e instanceof It?(t.lastDrawType!==ax&&(l=!0,t.lastDrawType=ax),rx(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),sG(r,e,v,f),f&&(t.batchFill=v.fill||"",t.batchStroke=v.stroke||"")):e instanceof uu?(t.lastDrawType!==ix&&(l=!0,t.lastDrawType=ix),rx(r,e,u,l,t),uG(r,e,v)):e instanceof Ze?(t.lastDrawType!==nx&&(l=!0,t.lastDrawType=nx),fG(r,e,u,l,t),lG(r,e,v)):e.getTemporalDisplayables&&(t.lastDrawType!==ox&&(l=!0,t.lastDrawType=ox),dG(r,e,t)),f&&a&&hr(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function dG(r,e,t){var a=e.getDisplayables(),n=e.getTemporalDisplayables();r.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=a.length;o<s;o++){var l=a[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ji(r,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ji(r,l,i,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Cd=new Z5,sx=new ws(100),lx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ms(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),a=e.getZr(),n=a.painter.type==="svg";r.dirty&&Cd.delete(r);var i=Cd.get(r);if(i)return i;var o=ht(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/t,Cd.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],v=!0,c=0;c<lx.length;++c){var h=o[lx[c]];if(h!=null&&!U(h)&&!J(h)&&!Rt(h)&&typeof h!="boolean"){v=!1;break}f.push(h)}var d;if(v){d=f.join(",")+(n?"-svg":"");var p=sx.get(d);p&&(n?u.svgElement=p:u.image=p)}var g=r2(o.dashArrayX),y=pG(o.dashArrayY),m=e2(o.symbol),_=gG(g),S=a2(y),b=!n&&na.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),T;b&&(b.width=w.width*t,b.height=w.height*t,T=b.getContext("2d")),M(),v&&sx.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=w1(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=w1(P,m[I].length);D*=P;var k=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(k,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,k=0,R=0;L<w.height;){if(P%2===0){for(var N=k/2%m.length,E=0,z=0,V=0;E<w.width*2;){for(var H=0,I=0;I<g[R].length;++I)H+=g[R][I];if(H<=0)break;if(z%2===0){var G=(1-o.symbolSize)*.5,Y=E+g[R][z]*G,X=L+y[P]*G,ot=g[R][z]*o.symbolSize,_t=y[P]*o.symbolSize,At=V/2%m[N].length;st(Y,X,ot,_t,m[N][At])}E+=g[R][z],++V,++z,z===g[R].length&&(z=0)}++R,R===g.length&&(R=0)}L+=y[P],++k,++P,P===y.length&&(P=0)}function st(et,it,tt,O,W){var q=n?1:t,K=be(W,et*q,it*q,tt*q,O*q,o.color,o.symbolKeepAspect);if(n){var pt=a.painter.renderOneToVNode(K);pt&&x.children.push(pt)}else t2(T,K)}}}}function e2(r){if(!r||r.length===0)return[["rect"]];if(J(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!J(r[t])){e=!1;break}if(e)return e2([r]);for(var a=[],t=0;t<r.length;++t)J(r[t])?a.push([r[t]]):a.push(r[t]);return a}function r2(r){if(!r||r.length===0)return[[0,0]];if(Rt(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,a=0;a<r.length;++a)if(!Rt(r[a])){t=!1;break}if(t)return r2([r]);for(var n=[],a=0;a<r.length;++a)if(Rt(r[a])){var e=Math.ceil(r[a]);n.push([e,e])}else{var e=Z(r[a],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function pG(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(Rt(r)){var e=Math.ceil(r);return[e,e]}var t=Z(r,function(a){return Math.ceil(a)});return r.length%2?t.concat(t):t}function gG(r){return Z(r,function(e){return a2(e)})}function a2(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function yG(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var a=t.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Ms(s,e)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Ms(n,e)}}})}var mG=new Yr;const jr=mG;var n2={};function _G(r,e){n2[r]=e}function SG(r){return n2[r]}var i2={};function xG(r,e){i2[r]=e}function bG(r){return i2[r]}var wG=1,TG=800,CG=900,AG=1e3,MG=2e3,DG=5e3,o2=1e3,LG=1100,m0=2e3,s2=3e3,IG=4e3,hh=4500,PG=4600,RG=5e3,kG=6e3,l2=7e3,EG={PROCESSOR:{FILTER:AG,SERIES_FILTER:TG,STATISTIC:DG},VISUAL:{LAYOUT:o2,PROGRESSIVE_LAYOUT:LG,GLOBAL:m0,CHART:s2,POST_CHART_LAYOUT:PG,COMPONENT:IG,BRUSH:RG,CHART_ITEM:hh,ARIA:kG,DECAL:l2}},Te="__flagInMainProcess",Tf="__mainProcessVersion",Ne="__pendingUpdate",Ad="__needsUpdateStatus",ux=/^[a-zA-Z0-9_]+$/,Md="__connectUpdateStatus",fx=0,OG=1,NG=2;function u2(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return v2(this,r,e)}}function f2(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return v2(this,r,e)}}function v2(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Yr.prototype[e].apply(r,t)}var c2=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(Yr),h2=c2.prototype;h2.on=f2("on");h2.off=f2("off");var Li,Dd,Cf,Za,Af,Ld,Id,$o,Uo,vx,cx,Pd,hx,Mf,dx,d2,Dr,px,Yo,p2=function(r){B(e,r);function e(t,a,n){var i=r.call(this,new G5)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t;var o="canvas",s="auto",l=!1;i[Tf]=1,n.ssr&&KO(function(c){var h=yt(c),d=h.dataIndex;if(d!=null){var p=at();return p.set("series_index",h.seriesIndex),p.set("data_index",d),h.ssrType&&p.set("ssr_type",h.ssrType),p}});var u=i._zr=_1(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:nt(n.useDirtyRect,l),useCoarsePointer:nt(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=p0(Q(u.flush,u),17),i._updateTheme(a),i._locale=Nz(n.locale||FD),i._coordSysMgr=new Gu;var f=i._api=dx(i);function v(c,h){return c.__prio-h.__prio}return dv(nc,v),dv(fy,v),i._scheduler=new XL(i,f,fy,nc),i._messageCenter=new c2,i._initEvents(),i.resize=Q(i.resize,i),u.animation.on("frame",i._onframe,i),vx(u,i),cx(u,i),kv(i),i}return e.prototype._onframe=function(){if(!this._disposed){px(this);var t=this._scheduler;if(this[Ne]){var a=this[Ne].silent;this[Te]=!0,Yo(this);try{Li(this),Za.update.call(this,null,this[Ne].updateParams)}catch(l){throw this[Te]=!1,this[Ne]=null,l}this._zr.flush(),this[Te]=!1,this[Ne]=null,$o.call(this,a),Uo.call(this,a)}else if(t.unfinished){var n=wG,i=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(i),t.performDataProcessorTasks(i),Ld(this,i),t.performVisualTasks(i),Mf(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>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,a,n){if(!this[Te]){if(this._disposed){this.id;return}var i,o,s;if(dt(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Te]=!0,Yo(this),!this._model||a){var l=new TV(this._api),u=this._theme,f=this._model=new yL;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},vy);var v={seriesTransition:s,optionChanged:!0};if(n)this[Ne]={silent:i,updateParams:v},this[Te]=!1,this.getZr().wakeUp();else{try{Li(this),Za.update.call(this,null,v)}catch(c){throw this[Ne]=null,this[Te]=!1,c}this._ssr||this._zr.flush(),this[Ne]=null,this[Te]=!1,$o.call(this,i),Uo.call(this,i)}}},e.prototype.setTheme=function(t,a){if(!this[Te]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Ne]&&(i==null&&(i=this[Ne].silent),o=this[Ne].updateParams,this[Ne]=null),this[Te]=!0,Yo(this);try{this._updateTheme(t),n.setTheme(this._theme),Li(this),Za.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Te]=!1,s}this[Te]=!1,$o.call(this,i),Uo.call(this,i)}}},e.prototype._updateTheme=function(t){J(t)&&(t=g2[t]),t&&(t=ut(t),t&&SL(t,!0),this._theme=t)},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||zt.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var a=this._zr.painter;return a.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,a=t.storage.getDisplayList();return A(a,function(n){n.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var a=t.excludeComponents,n=this._model,i=[],o=this;A(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return A(i,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var a=t.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(gx[n]){var l=s,u=s,f=-s,v=-s,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();A(Jl,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ut(t)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),v=o(x.bottom,v),c.push({dom:b,left:x.left,top:x.top})}}),l*=h,u*=h,f*=h,v*=h;var d=f-l,p=v-u,g=na.createCanvas(),y=_1(g,{renderer:a?"svg":"canvas"});if(y.resize({width:d,height:p}),a){var m="";return A(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.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 Dt({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),A(c,function(_){var S=new Ze({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,a,n){return Af(this,"convertToPixel",t,a,n)},e.prototype.convertToLayout=function(t,a,n){return Af(this,"convertToLayout",t,a,n)},e.prototype.convertFromPixel=function(t,a,n){return Af(this,"convertFromPixel",t,a,n)},e.prototype.containPixel=function(t,a){if(this._disposed){this.id;return}var n=this._model,i,o=ms(n,t);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var v=this._chartsMap[u.__viewId];v&&v.containPoint&&(i=i||v.containPoint(a,u))}},this)},this),!!i},e.prototype.getVisual=function(t,a){var n=this._model,i=ms(n,t,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?g0(s,l,a):Fu(s,a)},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;A(BG,function(n){var i=function(o){var s=t.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&qi(l,function(p){var g=yt(p);if(g&&g.dataIndex!=null){var y=g.dataModel||s.getSeriesByIndex(g.seriesIndex);return u=y&&y.getDataParams(g.dataIndex,g.dataType,l)||{},!0}else if(g.eventData)return u=$({},g.eventData),!0},!0),u){var v=u.componentType,c=u.componentIndex;(v==="markLine"||v==="markPoint"||v==="markArea")&&(v="series",c=u.seriesIndex);var h=v&&c!=null&&s.getComponent(v,c),d=h&&t[h.mainType==="series"?"_chartsMap":"_componentsMap"][h.__viewId];u.event=o,u.type=n,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:d},t.trigger(n,u)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)});var a=this._messageCenter;A(uy,function(n,i){a.on(i,function(o){t.trigger(i,o)})}),W5(a,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&BM(this.getDom(),S0,"");var a=this,n=a._api,i=a._model;A(a._componentsViews,function(o){o.dispose(i,n)}),A(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Jl[a.id]},e.prototype.resize=function(t){if(!this[Te]){if(this._disposed){this.id;return}this._zr.resize(t);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=t&&t.silent;this[Ne]&&(i==null&&(i=this[Ne].silent),n=!0,this[Ne]=null),this[Te]=!0,Yo(this);try{n&&Li(this),Za.update.call(this,{type:"resize",animation:$({duration:0},t&&t.animation)})}catch(o){throw this[Te]=!1,o}this[Te]=!1,$o.call(this,i),Uo.call(this,i)}}},e.prototype.showLoading=function(t,a){if(this._disposed){this.id;return}if(dt(t)&&(a=t,t=""),t=t||"default",this.hideLoading(),!!cy[t]){var n=cy[t](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var a=$({},t);return a.type=ly[t.type],a},e.prototype.dispatchAction=function(t,a){if(this._disposed){this.id;return}if(dt(a)||(a={silent:!!a}),!!ac[t.type]&&this._model){if(this[Te]){this._pendingActions.push(t);return}var n=a.silent;Id.call(this,t,n);var i=a.flush;i?this._zr.flush():i!==!1&&zt.browser.weChat&&this._throttledZrFlush(),$o.call(this,n),Uo.call(this,n)}},e.prototype.updateLabelLayout=function(){jr.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var a=t.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Li=function(v){var c=v._scheduler;c.restorePipelines(v._model),c.prepareStageTasks(),Dd(v,!0),Dd(v,!1),c.plan()},Dd=function(v,c){for(var h=v._model,d=v._scheduler,p=c?v._componentsViews:v._chartsViews,g=c?v._componentsMap:v._chartsMap,y=v._zr,m=v._api,_=0;_<p.length;_++)p[_].__alive=!1;c?h.eachComponent(function(x,w){x!=="series"&&S(w)}):h.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!w&&g[T];if(!C){var M=Ma(x.type),D=c?se.getClass(M.main,M.sub):Jt.getClass(M.sub);C=new D,C.init(h,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(C,x,h,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(h,m),p.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Cf=function(v,c,h,d,p){var g=v._model;if(g.setUpdatePayload(h),!d){A([].concat(v._componentsViews).concat(v._chartsViews),b);return}var y={};y[d+"Id"]=h[d+"Id"],y[d+"Index"]=h[d+"Index"],y[d+"Name"]=h[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=h.excludeSeriesId,S;_!=null&&(S=at(),A(Zt(_),function(x){var w=Ae(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(Q1(h))if(x instanceof ie)h.type===eo&&!h.notBlur&&!x.get(["emphasis","disabled"])&&MB(x,h,v._api);else{var T=Fm(x.mainType,x.componentIndex,h.name,v._api),C=T.focusSelf,M=T.dispatchers;h.type===eo&&C&&!h.notBlur&&Gg(x.mainType,x.componentIndex,v._api),M&&A(M,function(D){h.type===eo?vn(D):cn(D)})}else Hg(h)&&x instanceof ie&&(IB(x,h,v._api),j1(x),Dr(v))},v),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(v[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},v);function b(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,v._api,h)}},Za={prepareAndUpdate:function(v){Li(this),Za.update.call(this,v,v&&{optionChanged:v.newOption!=null})},update:function(v,c){var h=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(v),y.restoreData(h,v),y.performSeriesTasks(h),g.create(h,d),y.performDataProcessorTasks(h,v),Ld(this,h),g.update(h,d),a(h),y.performVisualTasks(h,v);var m=h.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=h.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Pd(this,h,d,v,c),jr.trigger("afterupdate",h,d)}},updateTransform:function(v){var c=this,h=this._model,d=this._api;if(h){h.setUpdatePayload(v);var p=[];h.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,h,d,v);S&&S.update&&p.push(_)}else p.push(_)}});var g=at();h.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,h,d,v);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),a(h),this._scheduler.performVisualTasks(h,v,{setDirty:!0,dirtyMap:g}),Mf(this,h,d,v,{},g),jr.trigger("afterupdate",h,d)}},updateView:function(v){var c=this._model;c&&(c.setUpdatePayload(v),Jt.markUpdateMethod(v,"updateView"),a(c),this._scheduler.performVisualTasks(c,v,{setDirty:!0}),Pd(this,c,this._api,v,{}),jr.trigger("afterupdate",c,this._api))},updateVisual:function(v){var c=this,h=this._model;h&&(h.setUpdatePayload(v),h.eachSeries(function(d){d.getData().clearAllVisual()}),Jt.markUpdateMethod(v,"updateVisual"),a(h),this._scheduler.performVisualTasks(h,v,{visualType:"visual",setDirty:!0}),h.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,h,c._api,v)}}),h.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,h,c._api,v)}),jr.trigger("afterupdate",h,this._api))},updateLayout:function(v){Za.update.call(this,v)}};function t(v,c,h,d,p){if(v._disposed){v.id;return}for(var g=v._model,y=v._coordSysMgr.getCoordinateSystems(),m,_=ms(g,h),S=0;S<y.length;S++){var b=y[S];if(b[c]&&(m=b[c](g,_,d,p))!=null)return m}}Af=t,Ld=function(v,c){var h=v._chartsMap,d=v._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,h[p.__viewId])})},Id=function(v,c){var h=this,d=this.getModel(),p=v.type,g=v.escapeConnect,y=ac[p],m=(y.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&Ma(m[0]);this[Te]=!0,Yo(this);var b=[v],x=!1;v.batch&&(x=!0,b=Z(v.batch,function(R){return R=ht($({},R),v),R.batch=null,R}));var w=[],T,C=[],M=y.nonRefinedEventType,D=Hg(v),I=Q1(v);if(I&&lD(this._api),A(b,function(R){var N=y.action(R,d,h._api);if(y.refineEvent?C.push(N):T=N,T=T||$({},R),T.type=M,w.push(T),I){var E=Rm(v),z=E.queryOptionMap,V=E.mainTypeSpecified,H=V?z.keys()[0]:"series";Cf(h,_,R,H),Dr(h)}else D?(Cf(h,_,R,"series"),Dr(h)):S&&Cf(h,_,R,S.main,S.sub)}),_!=="none"&&!I&&!D&&!S)try{this[Ne]?(Li(this),Za.update.call(this,v),this[Ne]=null):Za[_].call(this,v)}catch(R){throw this[Te]=!1,R}if(x?T={type:M,escapeConnect:g,batch:w}:T=w[0],this[Te]=!1,!c){var L=void 0;if(y.refineEvent){var P=y.refineEvent(C,v,d,this._api).eventContent;Qe(dt(P)),L=ht({type:y.refinedEventType},P),L.fromAction=v.type,L.fromActionPayload=v,L.escapeConnect=!0}var k=this._messageCenter;k.trigger(T.type,T),L&&k.trigger(L.type,L)}},$o=function(v){for(var c=this._pendingActions;c.length;){var h=c.shift();Id.call(this,h,v)}},Uo=function(v){!v&&this.trigger("updated")},vx=function(v,c){v.on("rendered",function(h){c.trigger("rendered",h),v.animation.isFinished()&&!c[Ne]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},cx=function(v,c){v.on("mouseover",function(h){var d=h.target,p=qi(d,vu);p&&(DB(p,h,c._api),Dr(c))}).on("mouseout",function(h){var d=h.target,p=qi(d,vu);p&&(LB(p,h,c._api),Dr(c))}).on("click",function(h){var d=h.target,p=qi(d,function(m){return yt(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=yt(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function a(v){v.clearColorPalette(),v.eachSeries(function(c){c.clearColorPalette()})}function n(v){var c=[],h=[],d=!1;if(v.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?h:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=c.concat(h),g,y;dv(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(p,function(m){var _=v.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Pd=function(v,c,h,d,p){n(c),hx(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive=!1}),Mf(v,c,h,d,p),A(v._chartsViews,function(g){g.__alive||g.remove(c,h)})},hx=function(v,c,h,d,p,g){A(g||v._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,h,d),l(m,y),f(m,y)})},Mf=function(v,c,h,d,p,g){var y=v._scheduler;p=$(p||{},{updatedSeries:c.getSeries()}),jr.trigger("series:beforeupdate",c,h,p);var m=!1;c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,d),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),j1(_)}),y.unfinished=m||y.unfinished,jr.trigger("series:layoutlabels",c,h,p),jr.trigger("series:transition",c,h,p),c.eachSeries(function(_){var S=v._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(v,c),jr.trigger("series:afterupdate",c,h,p)},Dr=function(v){v[Ad]=!0,v.getZr().wakeUp()},Yo=function(v){v[Tf]=(v[Tf]+1)%1e3},px=function(v){v[Ad]&&(v.getZr().storage.traverse(function(c){_s(c)||i(c)}),v[Ad]=!1)};function i(v){for(var c=[],h=v.currentStates,d=0;d<h.length;d++){var p=h[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}v.selected&&v.states.select&&c.push("select"),v.hoverState===Qc&&v.states.emphasis?c.push("emphasis"):v.hoverState===Ou&&v.states.blur&&c.push("blur"),v.useStates(c)}function o(v,c){var h=v._zr,d=h.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!zt.node&&!zt.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=v._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(v,c){var h=v.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=h)})}function l(v,c){if(!v.preventAutoZ){var h=ho(v);c.eachRendered(function(d){return ih(d,h.z,h.zlevel),!0})}}function u(v,c){c.eachRendered(function(h){if(!_s(h)){var d=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(v,c){var h=v.getModel("stateAnimation"),d=v.isAnimationEnabled(),p=h.get("duration"),g=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(_s(y))return;if(y instanceof It&&NB(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}dx=function(v){return new(function(c){B(h,c);function h(){return c!==null&&c.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return v._model.getComponent(p.mainType,p.index);d=d.parent}},h.prototype.enterEmphasis=function(d,p){vn(d,p),Dr(v)},h.prototype.leaveEmphasis=function(d,p){cn(d,p),Dr(v)},h.prototype.enterBlur=function(d){nD(d),Dr(v)},h.prototype.leaveBlur=function(d){Gm(d),Dr(v)},h.prototype.enterSelect=function(d){iD(d),Dr(v)},h.prototype.leaveSelect=function(d){oD(d),Dr(v)},h.prototype.getModel=function(){return v.getModel()},h.prototype.getViewOfComponentModel=function(d){return v.getViewOfComponentModel(d)},h.prototype.getViewOfSeriesModel=function(d){return v.getViewOfSeriesModel(d)},h.prototype.getMainProcessVersion=function(){return v[Tf]},h}(mL))(v)},d2=function(v){function c(h,d){for(var p=0;p<h.length;p++){var g=h[p];g[Md]=d}}A(ly,function(h,d){v._messageCenter.on(d,function(p){if(gx[v.group]&&v[Md]!==fx){if(p&&p.escapeConnect)return;var g=v.makeActionFromEvent(p),y=[];A(Jl,function(m){m!==v&&m.group===v.group&&y.push(m)}),c(y,fx),A(y,function(m){m[Md]!==OG&&m.dispatchAction(g)}),c(y,NG)}})})}}(),e}(Yr),_0=p2.prototype;_0.on=u2("on");_0.off=u2("off");_0.one=function(r,e,t){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];e&&e.apply&&e.apply(this,i),a.off(r,n)}this.on.call(this,r,n,t)};var BG=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var ac={},ly={},uy={},fy=[],vy=[],nc=[],g2={},cy={},Jl={},gx={},zG=+new Date-0,S0="_echarts_instance_";function VG(r,e,t){var a=!(t&&t.ssr);if(a){var n=GG(r);if(n)return n}var i=new p2(r,e,t);return i.id="ec_"+zG++,Jl[i.id]=i,a&&BM(r,S0,i.id),d2(i),jr.trigger("afterinit",i),i}function GG(r){return Jl[SN(r,S0)]}function y2(r,e){g2[r]=e}function m2(r){bt(vy,r)<0&&vy.push(r)}function _2(r,e){b0(fy,r,e,MG)}function FG(r){x0("afterinit",r)}function HG(r){x0("afterupdate",r)}function x0(r,e){jr.on(r,e)}function Fa(r,e,t){var a,n,i,o,s;lt(e)&&(t=e,e=""),dt(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),i=r.refineEvent):(a=r,n=e);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;ac[a]||(Qe(ux.test(a)&&ux.test(n)),i&&Qe(n!==a),ac[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:t,refineEvent:i},uy[n]=1,i&&s&&(uy[u]=1),ly[u]=a)}function WG(r,e){Gu.register(r,e)}function $G(r,e){b0(nc,r,e,o2,"layout")}function Ao(r,e){b0(nc,r,e,s2,"visual")}var yx=[];function b0(r,e,t,a,n){if((lt(e)||dt(e))&&(t=e,e=a),!(bt(yx,t)>=0)){yx.push(t);var i=XL.wrapStageHandler(t,n);i.__prio=e,i.__raw=t,r.push(i)}}function S2(r,e){cy[r]=e}function UG(r,e,t){var a=SG("registerMap");a&&a(r,e,t)}var YG=JV;Ao(m0,T5);Ao(hh,C5);Ao(hh,A5);Ao(m0,F5);Ao(hh,H5);Ao(l2,yG);m2(SL);_2(CG,RV);S2("default",M5);Fa({type:eo,event:eo,update:eo},pe);Fa({type:Sv,event:Sv,update:Sv},pe);Fa({type:Uv,event:zm,update:Uv,action:pe,refineEvent:w0,publishNonRefinedEvent:!0});Fa({type:zg,event:zm,update:zg,action:pe,refineEvent:w0,publishNonRefinedEvent:!0});Fa({type:Yv,event:zm,update:Yv,action:pe,refineEvent:w0,publishNonRefinedEvent:!0});function w0(r,e,t,a){return{eventContent:{selected:PB(t),isFromClick:e.isFromClick||!1}}}y2("default",{});y2("dark",V5);var mx=[],ZG={registerPreprocessor:m2,registerProcessor:_2,registerPostInit:FG,registerPostUpdate:HG,registerUpdateLifecycle:x0,registerAction:Fa,registerCoordinateSystem:WG,registerLayout:$G,registerVisual:Ao,registerTransform:YG,registerLoading:S2,registerMap:UG,registerImpl:_G,PRIORITY:EG,ComponentModel:kt,ComponentView:se,SeriesModel:ie,ChartView:Jt,registerComponentModel:function(r){kt.registerClass(r)},registerComponentView:function(r){se.registerClass(r)},registerSeriesModel:function(r){ie.registerClass(r)},registerChartView:function(r){Jt.registerClass(r)},registerCustomSeries:function(r,e){xG(r,e)},registerSubTypeDefaulter:function(r,e){kt.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){XO(r,e)}};function Ct(r){if(U(r)){A(r,function(e){Ct(e)});return}bt(mx,r)>=0||(mx.push(r),lt(r)&&(r={install:r}),r.install(ZG))}function ul(r){return r==null?0:r.length||1}function _x(r){return r}var XG=function(){function r(e,t,a,n,i,o){this._old=e,this._new=t,this._oldKeyGetter=a||_x,this._newKeyGetter=n||_x,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,a={},n=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,n,"_oldKeyGetter"),this._initIndexMap(t,a,i,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=n[o],l=a[s],u=ul(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,a={},n={},i=[],o=[];this._initIndexMap(e,a,i,"_oldKeyGetter"),this._initIndexMap(t,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],v=ul(u),c=ul(f);if(v>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(v===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(v===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(v>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(v>1)for(var h=0;h<v;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(e,t){for(var a=0;a<e.length;a++){var n=e[a],i=t[n],o=ul(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);t[n]=null}},r.prototype._initIndexMap=function(e,t,a,n){for(var i=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[n](e[o],o);if(i||(a[o]=s),!!t){var l=t[s],u=ul(l);u===0?(t[s]=o,i&&a.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}();const hn=XG;var qG=function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function KG(r,e){var t={},a=t.encode={},n=at(),i=[],o=[],s={};A(r.dimensions,function(c){var h=r.getDimensionInfo(c),d=h.coordDim;if(d){var p=h.coordDimIndex;Rd(a,d)[p]=c,h.isExtraCoord||(n.set(d,1),jG(h.type)&&(i[0]=c),Rd(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(c)}uL.each(function(g,y){var m=Rd(a,y),_=h.otherDims[y];_!=null&&_!==!1&&(m[_]=h.name)})});var l=[],u={};n.each(function(c,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=Z(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var v=a.tooltip;return v&&v.length?o=v.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,t.userOutput=new qG(s,e),t}function Rd(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function ic(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function jG(r){return!(r==="ordinal"||r==="time")}var JG=function(){function r(e){this.otherDims={},e!=null&&$(this,e)}return r}();const Mv=JG;var QG=Lt(),tF={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},x2=function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=T2(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return nt(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=bL(this.source),a=!C2(e),n="",i=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,v=this.dimensions[s];if(v&&v.storeDimIndex===o)l=t?v.name:null,u=v.type,f=v.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}i.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!v||!v.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=tF[u]||"f",f&&(n+=f.uid),n+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,a=0;t<this._fullDimCount;t++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(t);o&&(n=o.name)}e.push(n)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function b2(r){return r instanceof x2}function w2(r){for(var e=at(),t=0;t<(r||[]).length;t++){var a=r[t],n=dt(a)?a.name:a;n!=null&&e.get(n)==null&&e.set(n,t)}return e}function T2(r){var e=QG(r);return e.dimNameMap||(e.dimNameMap=w2(r.dimensionsDefine))}function C2(r){return r>30}var fl=dt,Tn=Z,eF=typeof Int32Array>"u"?Array:Int32Array,rF="e\0\0",Sx=-1,aF=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],nF=["_approximateExtent"],xx,Df,vl,cl,kd,hl,Ed,iF=function(){function r(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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;b2(e)?(a=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,a=e),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var v=a[f],c=J(v)?new Mv({name:v}):v instanceof Mv?v:new Mv(v),h=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=h,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(h),i[h]=c,u[h]!=null&&(l=!0),c.createInvertedIndices&&(s[h]=[]);var p=f;Rt(c.storeDimIndex)&&(p=c.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=at();A(o,function(y){g.set(i[y].storeDimIndex,y)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var a=this._dimIdxToName.get(t);if(a!=null)return a;var n=this._schema.getSourceDimension(t);if(n)return n.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var a=this._getDimInfo(e);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(Rt(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(a){return t.hasOwnProperty(a)?t[a]:void 0}:function(a){return t[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var a=this._dimSummary;if(t==null)return a.encodeFirstDimNotExtra[e];var n=a.encode[e];return n?n[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,a=t.encode[e];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,a){var n=this,i;if(e instanceof ey&&(i=e),!i){var o=this.dimensions,s=u0(e)||Je(e)?new wL(e,o.length):e;i=new ey;var l=Tn(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=KG(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var a=this._store.appendValues(e,t&&t.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=t[l],o&&Ed(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,a=0;a<t.length;a++){var n=this._dimInfos[t[a]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Zn&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Cr;if(l&&!n.pure)for(var u=[],f=e;f<t;f++){var v=n.getItem(f,u);if(!this.hasItemOption&&sN(v)&&(this.hasItemOption=!0),v){var c=v.name;i[f]==null&&c!=null&&(i[f]=Ae(c,null));var h=v.id;o[f]==null&&h!=null&&(o[f]=Ae(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Ed(this,f);xx(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){fl(e)?$(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),a=this._nameList[t];return a==null&&this._nameDimIdx!=null&&(a=vl(this,this._nameDimIdx,t)),a==null&&(a=""),a},r.prototype._getCategory=function(e,t){var a=this._store.get(e,t),n=this._store.getOrdinalMeta(e);return n?n.categories[a]:a},r.prototype.getId=function(e){return Df(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.get(n.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var a=this._store,n=this._dimInfos[e];if(n)return a.getByRawIndex(n.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var a=this,n=this._store;return U(e)?n.getValues(Tn(e,function(i){return a._getStoreDimIndex(i)}),t):n.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,a=0,n=t.length;a<n;a++)if(isNaN(this._store.get(t[a],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,a=this._store.count();t<a;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var a=e&&this._invertedIndicesMap[e],n=a&&a[t];return n==null||isNaN(n)?Sx:n},r.prototype.each=function(e,t,a){lt(e)&&(a=t,t=e,e=[]);var n=a||this,i=Tn(cl(e),this._getStoreDimIndex,this);this._store.each(i,n?Q(t,n):t)},r.prototype.filterSelf=function(e,t,a){lt(e)&&(a=t,t=e,e=[]);var n=a||this,i=Tn(cl(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Q(t,n):t),this},r.prototype.selectRange=function(e){var t=this,a={},n=Pt(e);return A(n,function(i){var o=t._getStoreDimIndex(i);a[o]=e[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(e,t,a){lt(e)&&(a=t,t=e,e=[]),a=a||this;var n=[];return this.each(e,function(){n.push(t&&t.apply(this,arguments))},a),n},r.prototype.map=function(e,t,a,n){var i=a||n||this,o=Tn(cl(e),this._getStoreDimIndex,this),s=hl(this);return s._store=this._store.map(o,i?Q(t,i):t),s},r.prototype.modify=function(e,t,a,n){var i=a||n||this,o=Tn(cl(e),this._getStoreDimIndex,this);this._store.modify(o,i?Q(t,i):t)},r.prototype.downSample=function(e,t,a,n){var i=hl(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,a,n),i},r.prototype.minmaxDownSample=function(e,t){var a=hl(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),a},r.prototype.lttbDownSample=function(e,t){var a=hl(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),a},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,a=this.getRawDataItem(e);return new Bt(a,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new hn(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Df(e,a)},function(a){return Df(t,a)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},fl(e)?$(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var a=this._itemVisuals[e],n=a&&a[t];return n??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var a=this._itemVisuals,n=a[e];n||(n=a[e]={});var i=n[t];return i==null&&(i=this.getVisual(t),U(i)?i=i.slice():fl(i)&&(i=$({},i)),n[t]=i),i},r.prototype.setItemVisual=function(e,t,a){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,fl(t)?$(n,t):n[t]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){fl(e)?$(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,a){this._itemLayouts[e]=a?$(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var a=this.hostModel&&this.hostModel.seriesIndex;Bg(a,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){A(this._graphicEls,function(a,n){a&&e&&e.call(t,a,n)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Tn(this.dimensions,this._getDimInfo,this),this.hostModel)),kd(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var a=this[e];lt(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=a.apply(this,arguments);return t.apply(this,[n].concat(xm(arguments)))})},r.internalField=function(){xx=function(e){var t=e._invertedIndicesMap;A(t,function(a,n){var i=e._dimInfos[n],o=i.ordinalMeta,s=e._store;if(o){a=t[n]=new eF(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Sx;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},vl=function(e,t,a){return Ae(e._getCategory(t,a),null)},Df=function(e,t){var a=e._idList[t];return a==null&&e._idDimIdx!=null&&(a=vl(e,e._idDimIdx,t)),a==null&&(a=rF+t),a},cl=function(e){return U(e)||(e=e!=null?[e]:[]),e},hl=function(e){var t=new r(e._schema?e._schema:Tn(e.dimensions,e._getDimInfo,e),e.hostModel);return kd(t,e),t},kd=function(e,t){A(aF.concat(t.__wrappedMethods||[]),function(a){t.hasOwnProperty(a)&&(e[a]=t[a])}),e.__wrappedMethods=t.__wrappedMethods,A(nF,function(a){e[a]=ut(t[a])}),e._calculationInfo=$({},t._calculationInfo)},Ed=function(e,t){var a=e._nameList,n=e._idList,i=e._nameDimIdx,o=e._idDimIdx,s=a[t],l=n[t];if(s==null&&i!=null&&(a[t]=s=vl(e,i,t)),l==null&&o!=null&&(n[t]=l=vl(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[t]=l}}}(),r}();const ir=iF;function Hu(r,e){u0(r)||(r=f0(r)),e=e||{};var t=e.coordDimensions||[],a=e.dimensionsDefine||r.dimensionsDefine||[],n=at(),i=[],o=sF(r,t,a,e.dimensionsCount),s=e.canOmitUnusedDimensions&&C2(o),l=a===r.dimensionsDefine,u=l?T2(r):w2(a),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var v=at(f),c=new PL(o),h=0;h<c.length;h++)c[h]=-1;function d(C){var M=c[C];if(M<0){var D=a[C],I=dt(D)?D:{name:D},L=new Mv,P=I.name;P!=null&&u.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var k=i.length;return c[C]=k,L.storeDimIndex=C,i.push(L),L}return i[M]}if(!s)for(var h=0;h<o;h++)d(h);v.each(function(C,M){var D=Zt(C).slice();if(D.length===1&&!J(D[0])&&D[0]<0){v.set(M,!1);return}var I=v.set(M,[]);A(D,function(L,P){var k=J(L)?u.get(L):L;k!=null&&k<o&&(I[P]=k,g(d(k),M,P))})});var p=0;A(t,function(C){var M,D,I,L;if(J(C))M=C,L={};else{L=C,M=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=$({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var k=v.get(M);if(k!==!1){if(k=Zt(k),!k.length)for(var R=0;R<(D&&D.length||1);R++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&k.push(p++)}A(k,function(N,E){var z=d(N);if(l&&L.type!=null&&(z.type=L.type),g(ht(z,L),M,E),z.name==null&&D){var V=D[E];!dt(V)&&(V={name:V}),z.name=z.displayName=V.name,z.defaultTooltip=V.defaultTooltip}I&&ht(z.otherDims,I)})}});function g(C,M,D){uL.get(M)!=null?C.otherDims[M]=D:(C.coordDim=M,C.coordDimIndex=D,n.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(C){C.name==null&&(C.name=C.coordDim)}if(s)A(i,function(C){b(C)}),i.sort(function(C,M){return C.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var w=d(x),T=w.coordDim;T==null&&(w.coordDim=lF(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(hL(r,x)===We.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return oF(i),new x2({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function oF(r){for(var e=at(),t=0;t<r.length;t++){var a=r[t],n=a.name,i=e.get(n)||0;i>0&&(a.name=n+(i-1)),i++,e.set(n,i)}}function sF(r,e,t,a){var n=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,a||0);return A(e,function(i){var o;dt(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function lF(r,e,t){if(t||e.hasKey(r)){for(var a=0;e.hasKey(r+a);)a++;r+=a}return e.set(r,!0),r}var uF=function(){function r(e){this.coordSysDims=[],this.axisMap=at(),this.categoryAxisMap=at(),this.coordSysName=e}return r}();function fF(r){var e=r.get("coordinateSystem"),t=new uF(e),a=vF[e];if(a)return a(r,t,t.axisMap,t.categoryAxisMap),t}var vF={cartesian2d:function(r,e,t,a){var n=r.getReferringComponents("xAxis",fe).models[0],i=r.getReferringComponents("yAxis",fe).models[0];e.coordSysDims=["x","y"],t.set("x",n),t.set("y",i),Zo(n)&&(a.set("x",n),e.firstCategoryDimIndex=0),Zo(i)&&(a.set("y",i),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,a){var n=r.getReferringComponents("singleAxis",fe).models[0];e.coordSysDims=["single"],t.set("single",n),Zo(n)&&(a.set("single",n),e.firstCategoryDimIndex=0)},polar:function(r,e,t,a){var n=r.getReferringComponents("polar",fe).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",i),t.set("angle",o),Zo(i)&&(a.set("radius",i),e.firstCategoryDimIndex=0),Zo(o)&&(a.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,a){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=i.dimensions.slice();A(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Zo(u)&&(a.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,a){var n=r.getReferringComponents("matrix",fe).models[0];e.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");t.set("x",i),t.set("y",o),a.set("x",i),a.set("y",o)}};function Zo(r){return r.get("type")==="category"}function cF(r,e,t){t=t||{};var a=t.byIndex,n=t.stackedCoordDimension,i,o,s;hF(e)?i=e:(o=e.schema,i=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,v,c;if(A(i,function(m,_){J(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){v="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var h=f.coordDim,d=f.type,p=0;A(i,function(m){m.coordDim===h&&p++});var g={name:v,coordDim:h,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(v,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:v}}function hF(r){return!b2(r.schema)}function Jn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function A2(r,e){return Jn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function dF(r,e){var t=r.get("coordinateSystem"),a=Gu.get(t),n;return e&&e.coordSysDims&&(n=Z(e.coordSysDims,function(i){var o={name:i},s=e.axisMap.get(i);if(s){var l=s.get("type");o.type=ic(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function pF(r,e,t){var a,n;return t&&A(r,function(i,o){var s=i.coordDim,l=t.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),e&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function _n(r,e,t){t=t||{};var a=e.getSourceManager(),n,i=!1;r?(i=!0,n=f0(r)):(n=a.getSource(),i=n.sourceFormat===Cr);var o=fF(e),s=dF(e,o),l=t.useEncodeDefaulter,u=lt(l)?l:l?xt(cL,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},v=Hu(n,f),c=pF(v.dimensions,t.createInvertedIndices,o),h=i?null:a.getSharedDataStore(v),d=cF(e,{schema:v,store:h}),p=new ir(v,e);p.setCalculationInfo(d);var g=c!=null&&gF(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:h,null,g),p}function gF(r){if(r.sourceFormat===Cr){var e=yF(r.data||[]);return!U(zs(e))}}function yF(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}function hy(r){return r.type==="interval"||r.type==="log"}function mF(r,e,t,a,n){var i={},o=i.interval=DM(e/t,!0);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=_u(o),l=i.niceTickExtent=[me(Math.ceil(r[0]/o)*o,s),me(Math.floor(r[1]/o)*o,s)];return _F(l,r),i}function Od(r){var e=Math.pow(10,Im(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,me(t*e)}function _u(r){return Aa(r)+2}function bx(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function _F(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),bx(r,0,e),bx(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function T0(r,e){return r>=e[0]&&r<=e[1]}var SF=function(){function r(){this.normalize=Tx,this.scale=Cx}return r.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=Q(e.normalize,e),this.scale=Q(e.scale,e)):(this.normalize=Tx,this.scale=Cx)},r}();function Tx(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Cx(r,e){return r*(e[1]-e[0])+e[0]}function dy(r,e,t){var a=Math.log(r);return[Math.log(t?e[0]:Math.max(0,e[0]))/a,Math.log(t?e[1]:Math.max(0,e[1]))/a]}var M2=function(){function r(e){this._calculator=new SF,this._setting=e||{},this._extent=[1/0,-1/0];var t=_e();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},r.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},r.prototype._innerSetExtent=function(e,t){var a=this._extent;isNaN(e)||(a[0]=e),isNaN(t)||(a[1]=t),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(e){var t=_e();t&&this._innerSetBreak(t.parseAxisBreakOption(e,Q(this.parse,this)))},r.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();Zc(M2);const Mo=M2;var xF=0,bF=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++xF,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,a=t.data,n=a&&Z(a,wF);return new r({categories:n,needCollect:!n,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,a=this._needCollect;if(!J(e)&&!a)return e;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var n=this._getOrCreateMap();return t=n.get(e),t==null&&(a?(t=this.categories.length,this.categories[t]=e,n.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=at(this.categories))},r}();function wF(r){return dt(r)&&r.value!=null?r.value:r+""}const Su=bF;var D2=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Su({})),U(n)&&(n=new Su({categories:Z(n,function(i){return dt(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return e.prototype.parse=function(t){return t==null?NaN:J(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return T0(t,this._extent)&&t>=0&&t<this._ordinalMeta.categories.length},e.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],a=this._extent,n=a[0];n<=a[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},e.prototype._getTickNumber=function(t){var a=this._ticksByOrdinalNumber;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getRawOrdinalNumber=function(t){var a=this._ordinalNumbersByTick;return a&&t>=0&&t<a.length?a[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var a=this.getRawOrdinalNumber(t.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},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}(Mo);Mo.registerClass(D2);const xu=D2;var Cn=me,L2=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.contain=function(t){return T0(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=_u(t)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=_e(),l=[];if(!a)return l;if(t.breakTicks==="only_break"&&s)return s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l;var u=1e4;n[0]<i[0]&&(t.expandToNicedExtent?l.push({value:Cn(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},v=i[0];v<=i[1];){if(l.push({value:v}),v=Cn(v+a,o),this._brkCtx){var c=this._brkCtx.calcNiceTickMultiple(v,f);c>=0&&(v=Cn(v+c*a,o))}if(l.length>0&&v===l[l.length-1].value)break;if(l.length>u)return[]}var h=l.length?l[l.length-1].value:i[1];return n[1]>h&&(t.expandToNicedExtent?l.push({value:Cn(h+a,o)}):l.push({value:n[1]})),s&&s.pruneTicksByBreak(t.pruneByBreak,l,this._brkCtx.breaks,function(d){return d.value},this._interval,this._extent),t.breakTicks!=="none"&&s&&s.addBreaksToTicks(l,this._brkCtx.breaks,this._extent),l},e.prototype.getMinorTicks=function(t){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],v=s.value-l.value,c=v/t,h=_u(c);u<t-1;){var d=Cn(l.value+(u+1)*c,h);d>i[0]&&d<i[1]&&f.push(d),u++}var p=_e();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(g){return g},this._interval,i),n.push(f)}}return n},e.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.getLabel=function(t,a){if(t==null)return"";var n=a&&a.precision;n==null?n=Aa(t.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Cn(t.value,n,!0);return KD(i)},e.prototype.calcNiceTicks=function(t,a,n){t=t||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=mF(i,o,t,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);t.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval,s=this._intervalPrecision;t.fixMin||(a[0]=Cn(Math.floor(a[0]/o)*o,s)),t.fixMax||(a[1]=Cn(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},e.prototype.setNiceExtent=function(t,a){this._niceExtent=[t,a]},e.type="interval",e}(Mo);Mo.registerClass(L2);const Qn=L2;var I2=typeof Float32Array<"u",TF=I2?Float32Array:Array;function Da(r){return U(r)?I2?new Float32Array(r):r:new TF(r)}var py="__ec_stack_";function C0(r){return r.get("stack")||py+r.seriesIndex}function A0(r){return r.dim+r.index}function CF(r){var e=[],t=r.axis,a="axis0";if(t.type==="category"){for(var n=t.getBandWidth(),i=0;i<r.count;i++)e.push(ht({bandWidth:n,axisKey:a,stackId:py+i},r));for(var o=k2(e),s=[],i=0;i<r.count;i++){var l=o[a][py+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function P2(r,e){var t=[];return e.eachSeriesByType(r,function(a){N2(a)&&t.push(a)}),t}function AF(r){var e={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var v=l.getData(),c=f.dim+"_"+f.index,h=v.getDimensionIndex(v.mapDimension(f.dim)),d=v.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(h,p);e[c]?e[c].push(y):e[c]=[y]}});var t={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}t[a]=i}}return t}function R2(r){var e=AF(r),t=[];return A(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=e[l],f=Math.abs(o[1]-o[0]),v=i.scale.getExtent(),c=Math.abs(v[1]-v[0]);s=u?f/c*u:f}else{var h=a.getData();s=Math.abs(o[1]-o[0])/h.count()}var d=j(a.get("barWidth"),s),p=j(a.get("barMaxWidth"),s),g=j(a.get("barMinWidth")||(B2(a)?.5:1),s),y=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");t.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,defaultBarGap:_,axisKey:A0(i),stackId:C0(a)})}),k2(t)}function k2(r){var e={};A(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=e[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;e[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var v=a.barMaxWidth;v&&(l[u].maxWidth=v);var c=a.barMinWidth;c&&(l[u].minWidth=c);var h=a.barGap;h!=null&&(s.gap=h);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Pt(i).length;s=Math.max(35-l*4,15)+"%"}var u=j(s,o),f=j(a.gap,1),v=a.remainedWidth,c=a.autoWidthCount,h=(v-u)/(c+(c-1)*f);h=Math.max(h,0),A(i,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,v-=S+f*S,c--}else{var S=h;m&&m<S&&(S=Math.min(m,v)),_&&_>S&&(S=_),S!==h&&(y.width=S,v-=S+f*S,c--)}}),h=(v-u)/(c+(c-1)*f),h=Math.max(h,0);var d=0,p;A(i,function(y,m){y.width||(y.width=h),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;A(i,function(y,m){t[n][m]=t[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function MF(r,e,t){if(r&&e){var a=r[A0(e)];return a!=null&&t!=null?a[C0(t)]:a}}function E2(r,e){var t=P2(r,e),a=R2(t);A(t,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=C0(n),u=a[A0(s)][l],f=u.offset,v=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:v})})}function O2(r){return{seriesType:r,plan:Ys(),reset:function(e){if(N2(e)){var t=e.getData(),a=e.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=t.getDimensionIndex(t.mapDimension(i.dim)),s=t.getDimensionIndex(t.mapDimension(n.dim)),l=e.get("showBackground",!0),u=t.mapDimension(i.dim),f=t.getCalculationInfo("stackResultDimension"),v=Jn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=i.isHorizontal(),h=DF(n,i),d=B2(e),p=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&Da(b*3),w=d&&l&&Da(b*3),T=d&&Da(b),C=a.master.getRect(),M=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(v?g:o,D),k=I.get(s,D),R=h,N=void 0;v&&(N=+P-I.get(o,D));var E=void 0,z=void 0,V=void 0,H=void 0;if(c){var G=a.dataToPoint([P,k]);if(v){var Y=a.dataToPoint([N,k]);R=Y[0]}E=R,z=G[1]+m,V=G[0]-R,H=y,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var G=a.dataToPoint([k,P]);if(v){var Y=a.dataToPoint([k,N]);R=Y[1]}E=G[0]+m,z=R,V=y,H=G[1]-R,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=E,x[L+1]=z,x[L+2]=c?V:H,w&&(w[L]=c?C.x:E,w[L+1]=c?z:C.y,w[L+2]=M),T[D]=D):S.setItemLayout(D,{x:E,y:z,width:V,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function N2(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function B2(r){return r.pipelineContext&&r.pipelineContext.large}function DF(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var LF=function(r,e,t,a){for(;t<a;){var n=t+a>>>1;r[n][1]<e?t=n+1:a=n}return t},z2=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="time",a}return e.prototype.getLabel=function(t){var a=this.getSetting("useUTC");return sh(t.value,dS[Uz(Kl(this._minLevelUnit))]||dS.second,a,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Yz(t,a,n,o,i)},e.prototype.getTicks=function(t){t=t||{};var a=this._interval,n=this._extent,i=_e(),o=[];if(!a)return o;var s=this.getSetting("useUTC");if(i&&t.breakTicks==="only_break")return _e().addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var l=hs(n[1],s);o.push({value:n[0],time:{level:0,upperTimeUnit:l,lowerTimeUnit:l}});var u=NF(this._minLevelUnit,this._approxInterval,s,n,this._getExtentSpanWithBreaks(),this._brkCtx);o=o.concat(u);var f=hs(n[1],s);o.push({value:n[1],time:{level:0,upperTimeUnit:f,lowerTimeUnit:f}});var v=this.getSetting("useUTC"),c=mr.length-1,h=0;return A(o,function(d){c=Math.min(c,bt(mr,d.time.upperTimeUnit)),h=Math.max(h,d.time.level)}),i&&_e().pruneTicksByBreak(t.pruneByBreak,o,this._brkCtx.breaks,function(d){return d.value},this._approxInterval,this._extent),i&&t.breakTicks!=="none"&&_e().addBreaksToTicks(o,this._brkCtx.breaks,this._extent,function(d){for(var p=Math.max(bt(mr,hs(d.vmin,v)),bt(mr,hs(d.vmax,v))),g=0,y=0;y<mr.length;y++)if(!V2(mr[y],d.vmin,d.vmax,v)){g=y;break}var m=Math.min(g,c),_=Math.max(m,p);return{level:h,lowerTimeUnit:mr[_],upperTimeUnit:mr[m]}}),o},e.prototype.calcNiceExtent=function(t){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=Gr,a[1]+=Gr),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-Gr}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,a,n){t=t||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/t,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Lf.length,s=Math.min(LF(Lf,this._approxInterval,0,o),o-1);this._interval=Lf[s][1],this._intervalPrecision=_u(this._interval),this._minLevelUnit=Lf[Math.max(s-1,0)][0]},e.prototype.parse=function(t){return Rt(t)?t:+So(t)},e.prototype.contain=function(t){return T0(t,this._extent)},e.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},e.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},e.type="time",e}(Qn),Lf=[["second",jm],["minute",Jm],["hour",ql],["quarter-day",ql*6],["half-day",ql*12],["day",Gr*1.2],["half-week",Gr*3.5],["week",Gr*7],["month",Gr*31],["quarter",Gr*95],["half-year",hS/2],["year",hS]];function V2(r,e,t,a){return qg(new Date(e),r,a).getTime()===qg(new Date(t),r,a).getTime()}function IF(r,e){return r/=Gr,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function PF(r){var e=30*Gr;return r/=e,r>6?6:r>3?3:r>2?2:1}function RF(r){return r/=ql,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Ax(r,e){return r/=e?Jm:jm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function kF(r){return DM(r,!0)}function EF(r,e,t){var a=Math.max(0,bt(mr,e)-1);return qg(new Date(r),mr[a],t).getTime()}function OF(r,e){var t=new Date(0);t[r](1);var a=t.getTime();t[r](1+e);var n=t.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function NF(r,e,t,a,n,i){var o=1e4,s=Fz,l=0;function u(L,P,k,R,N,E,z){for(var V=OF(N,L),H=P,G=new Date(H);H<k&&H<=a[1]&&(z.push({value:H}),!(l++>o));)if(G[N](G[R]()+L),H=G.getTime(),i){var Y=i.calcNiceTickMultiple(H,V);Y>0&&(G[N](G[R]()+Y*L),H=G.getTime())}z.push({value:H,notAdd:!0})}function f(L,P,k){var R=[],N=!P.length;if(!V2(Kl(L),a[0],a[1],t)){N&&(P=[{value:EF(a[0],L,t)},{value:a[1]}]);for(var E=0;E<P.length-1;E++){var z=P[E].value,V=P[E+1].value;if(z!==V){var H=void 0,G=void 0,Y=void 0,X=!1;switch(L){case"year":H=Math.max(1,Math.round(e/Gr/365)),G=WD(t),Y=Zz(t);break;case"half-year":case"quarter":case"month":H=PF(e),G=Qm(t),Y=$D(t);break;case"week":case"half-week":case"day":H=IF(e),G=t0(t),Y=UD(t),X=!0;break;case"half-day":case"quarter-day":case"hour":H=RF(e),G=e0(t),Y=YD(t);break;case"minute":H=Ax(e,!0),G=r0(t),Y=ZD(t);break;case"second":H=Ax(e,!1),G=a0(t),Y=XD(t);break;case"millisecond":H=kF(e),G=n0(t),Y=qD(t);break}V>=a[0]&&z<=a[1]&&u(H,z,V,G,Y,X,R),L==="year"&&k.length>1&&E===0&&k.unshift({value:k[0].value-H})}}for(var E=0;E<R.length;E++)k.push(R[E])}}for(var v=[],c=[],h=0,d=0,p=0;p<s.length;++p){var g=Kl(s[p]);if($z(s[p])){f(s[p],v[v.length-1]||[],c);var y=s[p+1]?Kl(s[p+1]):null;if(g!==y){if(c.length){d=h,c.sort(function(L,P){return L.value-P.value});for(var m=[],_=0;_<c.length;++_){var S=c[_].value;(_===0||c[_-1].value!==S)&&(m.push(c[_]),S>=a[0]&&S<=a[1]&&h++)}var b=n/e;if(h>b*1.5&&d>b/1.5||(v.push(m),h>b||r===s[p]))break}c=[]}}}for(var x=$t(Z(v,function(L){return $t(L,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(L){return L.length>0}),w=[],T=x.length-1,p=0;p<x.length;++p)for(var C=x[p],M=0;M<C.length;++M){var D=hs(C[M].value,t);w.push({value:C[M].value,time:{level:T-p,upperTimeUnit:D,lowerTimeUnit:D}})}w.sort(function(L,P){return L.value-P.value});for(var I=[],p=0;p<w.length;++p)(p===0||w[p].value!==w[p-1].value)&&I.push(w[p]);return I}Mo.registerClass(z2);const G2=z2;var gy=me,BF=Math.floor,zF=Math.ceil,If=Math.pow,Pf=Math.log,F2=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Qn,t}return e.prototype.getTicks=function(t){t=t||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,t),o=this.base,s=this._originalScale._innerGetBreaks(),l=_e();return Z(i,function(u){var f=u.value,v=null,c=If(o,f);f===a[0]&&this._fixMin?v=n[0]:f===a[1]&&this._fixMax&&(v=n[1]);var h;if(l){var d=l.getTicksLogTransformBreak(u,o,s,Rf);h=d.vBreak,v==null&&(v=d.brkRoundingCriterion)}return v!=null&&(c=Rf(c,v)),{value:c,break:h}},this)},e.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},e.prototype.setExtent=function(t,a){this._originalScale.setExtent(t,a);var n=dy(this.base,[t,a]);r.prototype.setExtent.call(this,n[0],n[1])},e.prototype.getExtent=function(){var t=this.base,a=r.prototype.getExtent.call(this);a[0]=If(t,a[0]),a[1]=If(t,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=Rf(a[0],n[0])),this._fixMax&&(a[1]=Rf(a[1],n[1])),a},e.prototype.unionExtentFromData=function(t,a){this._originalScale.unionExtentFromData(t,a);var n=dy(this.base,t.getApproximateExtent(a),!0);this._innerUnionExtent(n)},e.prototype.calcNiceTicks=function(t){t=t||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=aN(n),o=t/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[gy(zF(a[0]/i)*i),gy(BF(a[1]/i)*i)];this._interval=i,this._intervalPrecision=_u(i),this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){r.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.contain=function(t){return t=Pf(t)/Pf(this.base),r.prototype.contain.call(this,t)},e.prototype.normalize=function(t){return t=Pf(t)/Pf(this.base),r.prototype.normalize.call(this,t)},e.prototype.scale=function(t){return t=r.prototype.scale.call(this,t),If(this.base,t)},e.prototype.setBreaksFromOption=function(t){var a=_e();if(a){var n=a.logarithmicParseBreaksFromOption(t,this.base,Q(this.parse,this)),i=n.parsedOriginal,o=n.parsedLogged;this._originalScale._innerSetBreak(i),this._innerSetBreak(o)}},e.type="log",e}(Qn);function Rf(r,e){return gy(r,Aa(e))}Mo.registerClass(F2);const VF=F2;var GF=function(){function r(e,t,a){this._prepareParams(e,t,a)}return r.prototype._prepareParams=function(e,t,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get("min",!0);i==null&&(i=t.get("startValue",!0));var o=this._modelMinRaw=i;lt(o)?this._modelMinNum=kf(e,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=kf(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(lt(s)?this._modelMaxNum=kf(e,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=kf(e,s)),n)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=U(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[oa(u[0],1),oa(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=e?null:a-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?n?0:NaN:t-i[0]*o),l==null&&(l=e?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var v=je(s)||je(l)||e&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,h=this._determinedMax;return c!=null&&(s=c,u=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:v}},r.prototype.modifyDataMinMax=function(e,t){this[HF[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var a=FF[e];this[a]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),FF={min:"_determinedMin",max:"_determinedMax"},HF={min:"_dataMin",max:"_dataMax"};function H2(r,e,t){var a=r.rawExtentInfo;return a||(a=new GF(r,e,t),r.rawExtentInfo=a,a)}function kf(r,e){return e==null?null:je(e)?NaN:r.parse(e)}function W2(r,e){var t=r.type,a=H2(r,e,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=e.ecModel;if(o&&t==="time"){var s=P2("bar",o),l=!1;if(A(s,function(v){l=l||v.getBaseAxis()===e.axis}),l){var u=R2(s),f=WF(n,i,e,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function WF(r,e,t,a){var n=t.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=MF(a,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;A(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;A(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,v=1-(s+l)/i,c=f/v-f;return e+=c*(l/u),r-=c*(s/u),{min:r,max:e}}function Ds(r,e){var t=e,a=W2(r,t),n=a.extent,i=t.get("splitNumber");r instanceof VF&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(U2(t)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function dh(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new xu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new G2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Mo.getClass(e)||Qn)}}function $F(r){var e=r.scale.getExtent(),t=e[0],a=e[1];return!(t>0&&a>0||t<0&&a<0)}function qs(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=Hz(e);return function(n,i){return r.scale.getFormattedLabel(n,i,t)}}else{if(J(e))return function(n){var i=r.scale.getLabel(n),o=e.replace("{value}",i??"");return o};if(lt(e)){if(r.type==="category")return function(n,i){return e(oc(r,n),n.value-r.scale.getExtent()[0],null)};var a=_e();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),e(oc(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function oc(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function M0(r){var e=r.get("interval");return e??"auto"}function $2(r){return r.type==="category"&&M0(r.getLabelModel())===0}function sc(r,e){var t={};return A(r.mapDimensionsAll(e),function(a){t[A2(r,a)]=!0}),Pt(t)}function UF(r,e,t){e&&A(sc(e,t),function(a){var n=e.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function Ls(r){return r==="middle"||r==="center"}function bu(r){return r.getShallow("show")}function U2(r){var e=r.get("breaks",!0);if(e!=null)return!_e()||!YF(r.axis)?void 0:e}function YF(r){return(r.dim==="x"||r.dim==="y"||r.dim==="z"||r.dim==="single")&&r.type!=="category"}var Wu=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}(),ZF=1e-8;function Mx(r,e){return Math.abs(r-e)<ZF}function Gi(r,e,t){var a=0,n=r[0];if(!n)return!1;for(var i=1;i<r.length;i++){var o=r[i];a+=Ja(n[0],n[1],o[0],o[1],e,t),n=o}var s=r[0];return(!Mx(n[0],s[0])||!Mx(n[1],s[1]))&&(a+=Ja(n[0],n[1],s[0],s[1],e,t)),a!==0}var XF=[];function Nd(r,e){for(var t=0;t<r.length;t++)ge(r[t],r[t],e)}function Dx(r,e,t,a){for(var n=0;n<r.length;n++){var i=r[n];a&&(i=a.project(i)),i&&isFinite(i[0])&&isFinite(i[1])&&(On(e,e,i),Nn(t,t,i))}}function qF(r){for(var e=0,t=0,a=0,n=r.length,i=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=i*u-l*o;e+=f,t+=(i+l)*f,a+=(o+u)*f,i=l,o=u}return e?[t/e/3,a/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Y2=function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r}(),Lx=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),Ix=function(){function r(e){this.type="linestring",this.points=e}return r}(),Z2=function(r){B(e,r);function e(t,a,n){var i=r.call(this,t)||this;return i.type="geoJSON",i.geometries=a,i._center=n&&[n[0],n[1]],i}return e.prototype.calcCenter=function(){for(var t=this.geometries,a,n=0,i=0;i<t.length;i++){var o=t[i],s=o.exterior,l=s&&s.length;l>n&&(a=o,n=l)}if(a)return qF(a.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var a=this._rect;if(a&&!t)return a;var n=[1/0,1/0],i=[-1/0,-1/0],o=this.geometries;return A(o,function(s){s.type==="polygon"?Dx(s.exterior,n,i,t):A(s.points,function(l){Dx(l,n,i,t)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),a=new gt(n[0],n[1],i[0]-n[0],i[1]-n[1]),t||(this._rect=a),a},e.prototype.contain=function(t){var a=this.getBoundingRect(),n=this.geometries;if(!a.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++){var s=n[i];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Gi(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Gi(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=o.width/o.height;n?i||(i=n/s):n=s*i;for(var l=new gt(t,a,n,i),u=o.calculateTransform(l),f=this.geometries,v=0;v<f.length;v++){var c=f[v];c.type==="polygon"?(Nd(c.exterior,u),A(c.interiors,function(h){Nd(h,u)})):A(c.points,function(h){Nd(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var a=new e(t,this.geometries,this._center);return a._rect=this._rect,a.transformTo=null,a},e}(Y2),KF=function(r){B(e,r);function e(t,a){var n=r.call(this,t)||this;return n.type="geoSVG",n._elOnlyForCalculate=a,n}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,a=t.getBoundingRect(),n=[a.x+a.width/2,a.y+a.height/2],i=Wc(XF),o=t;o&&!o.isGeoSVGGraphicRoot;)Pa(i,o.getLocalTransform(),i),o=o.parent;return ia(i,i),ge(n,n,i),n},e}(Y2);function jF(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var a=e.features;return A(a,function(n){var i=n.geometry,o=i.encodeOffsets,s=i.coordinates;if(o)switch(i.type){case"LineString":i.coordinates=X2(s,o,t);break;case"Polygon":Bd(s,o,t);break;case"MultiLineString":Bd(s,o,t);break;case"MultiPolygon":A(s,function(l,u){return Bd(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Bd(r,e,t){for(var a=0;a<r.length;a++)r[a]=X2(r[a],e[a],t)}function X2(r,e,t){for(var a=[],n=e[0],i=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=i,n=s,i=l,a.push([s/t,l/t])}return a}function JF(r,e){return r=jF(r),Z($t(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var a=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new Lx(o[0],o.slice(1)));break;case"MultiPolygon":A(n.coordinates,function(l){l[0]&&i.push(new Lx(l[0],l.slice(1)))});break;case"LineString":i.push(new Ix([n.coordinates]));break;case"MultiLineString":i.push(new Ix(n.coordinates))}var s=new Z2(a[e||"name"],i,a.cp);return s.properties=a,s})}var QF=Lt(),Ql=Lt(),sa={estimate:1,determine:2};function lc(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function q2(r,e){var t=Z(e,function(a){return r.scale.parse(a)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function t3(r,e){var t=r.getLabelModel().get("customValues");if(t){var a=qs(r),n=r.scale.getExtent(),i=q2(r,t),o=$t(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:Z(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?r3(r,e):n3(r)}function e3(r,e,t){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=q2(r,a);return{ticks:$t(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?a3(r,e):{ticks:Z(r.scale.getTicks(t),function(o){return o.value})}}function r3(r,e){var t=r.getLabelModel(),a=K2(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:a}function K2(r,e,t){var a=o3(r),n=M0(e),i=t.kind===sa.estimate;if(!i){var o=J2(a,n);if(o)return o}var s,l;lt(n)?s=eI(r,n):(l=n==="auto"?s3(r,t):n,s=tI(r,l));var u={labels:s,labelCategoryInterval:l};return i?t.out.noPxChangeTryDetermine.push(function(){return yy(a,n,u),!0}):yy(a,n,u),u}function a3(r,e){var t=i3(r),a=M0(e),n=J2(t,a);if(n)return n;var i,o;if((!e.get("show")||r.scale.isBlank())&&(i=[]),lt(a))i=eI(r,a,!0);else if(a==="auto"){var s=K2(r,r.getLabelModel(),lc(sa.determine));o=s.labelCategoryInterval,i=Z(s.labels,function(l){return l.tickValue})}else o=a,i=tI(r,o,!0);return yy(t,a,{ticks:i,tickCategoryInterval:o})}function n3(r){var e=r.scale.getTicks(),t=qs(r);return{labels:Z(e,function(a,n){return{formattedLabel:t(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var i3=j2("axisTick"),o3=j2("axisLabel");function j2(r){return function(t){return Ql(t)[r]||(Ql(t)[r]={list:[]})}}function J2(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function yy(r,e,t){return r.list.push({key:e,value:t}),t}function s3(r,e){if(e.kind===sa.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Ql(r).autoInterval=t,!0}),t}var a=Ql(r).autoInterval;return a??(Ql(r).autoInterval=r.calculateCategoryInterval(e))}function l3(r,e){var t=e.kind,a=f3(r),n=qs(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var v=s[0],c=r.dataToCoord(v+1)-r.dataToCoord(v),h=Math.abs(c*Math.cos(i)),d=Math.abs(c*Math.sin(i)),p=0,g=0;v<=s[1];v+=u){var y=0,m=0,_=Yc(n({value:v}),a.font,"center","top");y=_.width*1.3,m=_.height*1.3,p=Math.max(p,y,7),g=Math.max(g,m,7)}var S=p/h,b=g/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(t===sa.estimate)return e.out.noPxChangeTryDetermine.push(Q(u3,null,r,x,l)),x;var w=Q2(r,x,l);return w??x}function u3(r,e,t){return Q2(r,e,t)==null}function Q2(r,e,t){var a=QF(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-e)<=1&&Math.abs(o-t)<=1&&i>e&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=t,a.lastAutoInterval=e,a.axisExtent0=n[0],a.axisExtent1=n[1]}function f3(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function tI(r,e,t){var a=qs(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var v=$2(r),c=o.get("showMinLabel")||v,h=o.get("showMaxLabel")||v;c&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);h&&d-l!==i[1]&&p(i[1]);function p(g){var y={value:g};s.push(t?g:{formattedLabel:a(y),rawLabel:n.getLabel(y),tickValue:g,time:void 0,break:void 0})}return s}function eI(r,e,t){var a=r.scale,n=qs(r),i=[];return A(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;e(o.value,s)&&i.push(t?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var Px=[0,1],v3=function(){function r(e,t,a){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=a||[0,0]}return r.prototype.contain=function(e){var t=this._extent,a=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]);return e>=a&&e<=n},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return AM(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var a=this._extent;a[0]=e,a[1]=t},r.prototype.dataToCoord=function(e,t){var a=this._extent,n=this.scale;return e=n.normalize(n.parse(e)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),Rx(a,n.count())),Wt(e,Px,a,t)},r.prototype.coordToData=function(e,t){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),Rx(a,n.count()));var i=Wt(e,a,Px,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),a=e3(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),n=a.ticks,i=Z(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return c3(this,i,o,e.clamp),i},r.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 a=this.scale.getMinorTicks(t),n=Z(a,function(i){return Z(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(e){return e=e||lc(sa.determine),t3(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),a=t[1]-t[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(e[1]-e[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(e){return e=e||lc(sa.determine),l3(this,e)},r}();function Rx(r,e){var t=r[1]-r[0],a=e,n=t/a/2;r[0]+=n,r[1]-=n}function c3(r,e,t,a){var n=e.length;if(!r.onBand||t||!n)return;var i=r.getExtent(),o,s;if(n===1)e[0].coord=i[0],e[0].onBand=!0,o=e[1]={coord:i[1],tickValue:e[0].tickValue,onBand:!0};else{var l=e[n-1].tickValue-e[0].tickValue,u=(e[n-1].coord-e[0].coord)/l;A(e,function(h){h.coord-=u/2,h.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-e[n-1].tickValue,o={coord:e[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},e.push(o)}var v=i[0]>i[1];c(e[0].coord,i[0])&&(a?e[0].coord=i[0]:e.shift()),a&&c(i[0],e[0].coord)&&e.unshift({coord:i[0],onBand:!0}),c(i[1],o.coord)&&(a?o.coord=i[1]:e.pop()),a&&c(o.coord,i[1])&&e.push({coord:i[1],onBand:!0});function c(h,d){return h=me(h),d=me(d),v?h>d:h<d}}const fa=v3;var dl=Math.PI*2,Ii=za.CMD,h3=["top","right","bottom","left"];function d3(r,e,t,a,n){var i=t.width,o=t.height;switch(r){case"top":a.set(t.x+i/2,t.y-e),n.set(0,-1);break;case"bottom":a.set(t.x+i/2,t.y+o+e),n.set(0,1);break;case"left":a.set(t.x-e,t.y+o/2),n.set(-1,0);break;case"right":a.set(t.x+i+e,t.y+o/2),n.set(1,0);break}}function p3(r,e,t,a,n,i,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,v=s*t+e;if(Math.abs(a-n)%dl<1e-4)return l[0]=f,l[1]=v,u-t;if(i){var c=a;a=xr(n),n=xr(c)}else a=xr(a),n=xr(n);a>n&&(n+=dl);var h=Math.atan2(s,o);if(h<0&&(h+=dl),h>=a&&h<=n||h+dl>=a&&h+dl<=n)return l[0]=f,l[1]=v,u-t;var d=t*Math.cos(a)+r,p=t*Math.sin(a)+e,g=t*Math.cos(n)+r,y=t*Math.sin(n)+e,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function uc(r,e,t,a,n,i,o,s){var l=n-r,u=i-e,f=t-r,v=a-e,c=Math.sqrt(f*f+v*v);f/=c,v/=c;var h=l*f+u*v,d=h/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=e+d*v;return Math.sqrt((p-n)*(p-n)+(g-i)*(g-i))}function rI(r,e,t,a,n,i,o){t<0&&(r=r+t,t=-t),a<0&&(e=e+a,a=-a);var s=r+t,l=e+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,e),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var Qr=[];function g3(r,e,t){var a=rI(e.x,e.y,e.width,e.height,r.x,r.y,Qr);return t.set(Qr[0],Qr[1]),a}function y3(r,e,t){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=e.data,v=r.x,c=r.y,h=0;h<f.length;){var d=f[h++];h===1&&(a=f[h],n=f[h+1],i=a,o=n);var p=u;switch(d){case Ii.M:i=f[h++],o=f[h++],a=i,n=o;break;case Ii.L:p=uc(a,n,f[h],f[h+1],v,c,Qr,!0),a=f[h++],n=f[h++];break;case Ii.C:p=oM(a,n,f[h++],f[h++],f[h++],f[h++],f[h],f[h+1],v,c,Qr),a=f[h++],n=f[h++];break;case Ii.Q:p=lM(a,n,f[h++],f[h++],f[h],f[h+1],v,c,Qr),a=f[h++],n=f[h++];break;case Ii.A:var g=f[h++],y=f[h++],m=f[h++],_=f[h++],S=f[h++],b=f[h++];h+=1;var x=!!(1-f[h++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,h<=1&&(i=s,o=l);var w=(v-g)*_/m+g;p=p3(g,y,_,S,S+b,x,w,c,Qr),a=Math.cos(S+b)*m+g,n=Math.sin(S+b)*_+y;break;case Ii.R:i=a=f[h++],o=n=f[h++];var T=f[h++],C=f[h++];p=rI(i,o,T,C,v,c,Qr);break;case Ii.Z:p=uc(a,n,i,o,v,c,Qr,!0),a=i,n=o;break}p<u&&(u=p,t.set(Qr[0],Qr[1]))}return u}var ta=new ct,ee=new ct,he=new ct,La=new ct,Ta=new ct;function kx(r,e){if(r){var t=r.getTextGuideLine(),a=r.getTextContent();if(a&&t){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||h3,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),v=f&&ia([],f),c=e.get("length2")||0;u&&he.copy(u);for(var h=0;h<o.length;h++){var d=o[h];d3(d,0,s,ta,La),ct.scaleAndAdd(ee,ta,La,c),ee.transform(v);var p=r.getBoundingRect(),g=u?u.distance(ee):r instanceof It?y3(ee,r.path,he):g3(ee,p,he);g<l&&(l=g,ee.transform(f),he.transform(f),he.toArray(i[0]),ee.toArray(i[1]),ta.toArray(i[2]))}aI(i,e.get("minTurnAngle")),t.setShape({points:i})}}}var fc=[],nr=new ct;function aI(r,e){if(e<=180&&e>0){e=e/180*Math.PI,ta.fromArray(r[0]),ee.fromArray(r[1]),he.fromArray(r[2]),ct.sub(La,ta,ee),ct.sub(Ta,he,ee);var t=La.len(),a=Ta.len();if(!(t<.001||a<.001)){La.scale(1/t),Ta.scale(1/a);var n=La.dot(Ta),i=Math.cos(e);if(i<n){var o=uc(ee.x,ee.y,he.x,he.y,ta.x,ta.y,fc,!1);nr.fromArray(fc),nr.scaleAndAdd(Ta,o/Math.tan(Math.PI-e));var s=he.x!==ee.x?(nr.x-ee.x)/(he.x-ee.x):(nr.y-ee.y)/(he.y-ee.y);if(isNaN(s))return;s<0?ct.copy(nr,ee):s>1&&ct.copy(nr,he),nr.toArray(r[1])}}}}function m3(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ta.fromArray(r[0]),ee.fromArray(r[1]),he.fromArray(r[2]),ct.sub(La,ee,ta),ct.sub(Ta,he,ee);var a=La.len(),n=Ta.len();if(!(a<.001||n<.001)){La.scale(1/a),Ta.scale(1/n);var i=La.dot(e),o=Math.cos(t);if(i<o){var s=uc(ee.x,ee.y,he.x,he.y,ta.x,ta.y,fc,!1);nr.fromArray(fc);var l=Math.PI/2,u=Math.acos(Ta.dot(e)),f=l+u-t;if(f>=l)ct.copy(nr,he);else{nr.scaleAndAdd(Ta,s/Math.tan(Math.PI/2-f));var v=he.x!==ee.x?(nr.x-ee.x)/(he.x-ee.x):(nr.y-ee.y)/(he.y-ee.y);if(isNaN(v))return;v<0?ct.copy(nr,ee):v>1&&ct.copy(nr,he)}nr.toArray(r[1])}}}}function zd(r,e,t,a){var n=t==="normal",i=n?r:r.ensureState(t);i.ignore=e;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function _3(r,e){var t=e.smooth,a=e.points;if(a)if(r.moveTo(a[0][0],a[0][1]),t>0&&a.length>=3){var n=En(a[0],a[1]),i=En(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*t,s=hv([],a[1],a[0],o/n),l=hv([],a[1],a[2],o/i),u=hv([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function D0(r,e,t){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=e.normal,o=i.get("show"),s=n.ignore,l=0;l<fu.length;l++){var u=fu[l],f=e[u],v=u==="normal";if(f){var c=f.get("show"),h=v?s:nt(n.states[u]&&n.states[u].ignore,s);if(h||!nt(c,o)){var d=v?a:a&&a.states[u];d&&(d.ignore=!0),a&&zd(a,!0,u,f);continue}a||(a=new tr,r.setTextGuideLine(a),!v&&(s||!o)&&zd(a,!0,"normal",e.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),zd(a,!1,u,f)}}if(a){ht(a.style,t),a.style.fill=null;var p=i.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,a.buildPath=_3}}function L0(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},a=0;a<or.length;a++){var n=or[a];t[n]=r.getModel([n,e])}return t}var Ex=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],S3=1,vc=2,nI=S3|vc;function cc(r,e,t){t=t||nI,e?r.dirty|=t:r.dirty&=~t}function iI(r,e){return e=e||nI,r.dirty==null||!!(r.dirty&e)}function Ga(r){if(r)return iI(r)&&oI(r,r.label,r),r}function oI(r,e,t){var a=e.getComputedTransform();r.transform=Zm(r.transform,a);var n=r.localRect=hu(r.localRect,e.getBoundingRect()),i=e.style,o=i.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=cs.textMargin);for(var v=0;v<4;v++)Vd[v]=f===cs.minMargin&&l&&l[v]!=null?l[v]:s&&s[v]!=null?s[v]:o?o[v]:0;f===cs.textMargin&&co(n,Vd,!1,!1);var c=r.rect=hu(r.rect,n);return a&&c.applyTransform(a),f===cs.minMargin&&co(c,Vd,!1,!1),r.axisAligned=Ym(a),(r.label=r.label||{}).ignore=e.ignore,cc(r,!1),cc(r,!0,vc),r}var Vd=[0,0,0,0];function x3(r,e,t){return r.transform=Zm(r.transform,t),r.localRect=hu(r.localRect,e),r.rect=hu(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=Ym(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function my(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var a=r.rect;a&&(a.x+=e.x,a.y+=e.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,t)}}function _y(r,e){for(var t=0;t<Ex.length;t++){var a=Ex[t];r[a]==null&&(r[a]=e[a])}return Ga(r)}function Ox(r){var e=r.obb;return(!e||iI(r,vc))&&(r.obb=e=e||new MD,e.fromBoundingRect(r.localRect,r.transform),cc(r,!1,vc)),e}function Sy(r,e,t,a,n){var i=r.length,o=mt[e],s=Se[e];if(i<2)return!1;r.sort(function(C,M){return C.rect[o]-M.rect[o]});for(var l=0,u,f=!1,v=0,c=0;c<i;c++){var h=r[c],d=h.rect;u=d[o]-l,u<0&&(d[o]-=u,h.label[o]-=u,f=!0);var p=Math.max(-u,0);v+=p,l=d[o]+d[s]}v>0&&n&&x(-v/i,0,i);var g=r[0],y=r[i-1],m,_;S(),m<0&&w(-m,.8),_<0&&w(_,.8),S(),b(m,_,1),b(_,m,-1),S(),m<0&&T(-m),_<0&&T(_);function S(){m=g.rect[o]-t,_=a-y.rect[o]-y.rect[s]}function b(C,M,D){if(C<0){var I=Math.min(M,-C);if(I>0){x(I*D,0,i);var L=I+C;L<0&&w(-L*D,1)}else w(-C*D,1)}}function x(C,M,D){C!==0&&(f=!0);for(var I=M;I<D;I++){var L=r[I],P=L.rect;P[o]+=C,L.label[o]+=C}}function w(C,M){for(var D=[],I=0,L=1;L<i;L++){var P=r[L-1].rect,k=Math.max(r[L].rect[o]-P[o]-P[s],0);D.push(k),I+=k}if(I){var R=Math.min(Math.abs(C)/I,M);if(C>0)for(var L=0;L<i-1;L++){var N=D[L]*R;x(N,0,L+1)}else for(var L=i-1;L>0;L--){var N=D[L-1]*R;x(-N,L,i)}}}function T(C){var M=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),I=0;I<i-1;I++)if(M>0?x(D,0,I+1):x(-D,i-I-1,i),C-=D,C<=0)return}return f}function b3(r){for(var e=0;e<r.length;e++){var t=r[e],a=t.defaultAttr,n=t.labelLine;t.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function sI(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=Ga(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(ph(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(i),o&&t(o)):e.push(n)}}}function ph(r,e,t,a){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,a)?!1:r.axisAligned&&e.axisAligned?!0:Ox(r).intersect(Ox(e),t,a)}function w3(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function T3(r,e){var t=r.label,a=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:w3(a&&a.shape.points)}}var Nx=["align","verticalAlign","width","height","fontSize"],er=new tn,Gd=Lt(),C3=Lt();function Ef(r,e,t){for(var a=0;a<t.length;a++){var n=t[a];e[n]!=null&&(r[n]=e[n])}}var Of=["x","y","rotation"],A3=function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();gt.applyTransform(f,f,u),u?er.setLocalTransform(u):(er.x=er.y=er.rotation=er.originX=er.originY=0,er.scaleX=er.scaleY=1),er.rotation=xr(er.rotation);var v=n.__hostTarget,c;if(v){c=v.getBoundingRect().plain();var h=v.getComputedTransform();gt.applyTransform(c,c,h)}var d=c&&v.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:er.x,y:er.y,scaleX:er.scaleX,scaleY:er.scaleY,rotation:er.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var a=e.__model,n=a.get("labelLayout");(lt(n)||Pt(n).length)&&e.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=yt(i);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),a=e.getHeight();function n(_,S){return function(){kx(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;lt(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(T3(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var v=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*v:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=j(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=j(f.y,a),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:f.labelLinePoints}),c=!1)}var d=Gd(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*v:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<Nx.length;p++){var g=Nx[p];s.setStyle(g,f[g]!=null?f[g]:u.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",n(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),a=e.getHeight(),n=[];A(this._labelList,function(l){l.defaultAttr.ignore||n.push(_y({},l))});var i=$t(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=$t(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});Sy(i,0,0,t),Sy(o,1,0,a);var s=$t(n,function(l){return l.layoutOption.hideOverlap});b3(s),sI(s)},r.prototype.processLabelsOverall=function(){var e=this;A(this._chartViewList,function(t){var a=t.__model,n=t.ignoreLabelLineUpdate,i=a.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=Gd(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,a),i&&e._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(e,t){var a=e.getTextContent(),n=yt(e),i=n.dataIndex;if(a&&i!=null){var o=t.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var v=s.getModel("labelLine");D0(e,L0(s),l),kx(e,v)}},r.prototype._animateLabels=function(e,t){var a=e.getTextContent(),n=e.getTextGuideLine();if(a&&(e.forceLabelAnimation||!a.ignore&&!a.invisible&&!e.disableLabelAnimation&&!_s(e))){var i=Gd(a),o=i.oldLayout,s=yt(e),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=t.getData(s.dataType);if(o){a.attr(o);var c=e.prevStates;c&&(bt(c,"select")>=0&&a.attr(i.oldLayoutSelect),bt(c,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),Nt(a,u,t,l)}else if(a.attr(u),!Ws(a).valueAnimation){var v=nt(a.style.opacity,1);a.style.opacity=0,re(a,{style:{opacity:v}},t,l)}if(i.oldLayout=u,a.states.select){var h=i.oldLayoutSelect={};Ef(h,u,Of),Ef(h,a.states.select,Of)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};Ef(d,u,Of),Ef(d,a.states.emphasis,Of)}zD(a,l,f,t,t)}if(n&&!n.ignore&&!n.invisible){var i=C3(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),Nt(n,{shape:p},t)):(n.setShape(p),n.style.strokePercent=0,re(n,{style:{strokePercent:1}},t)),i.oldLayout=p}},r}();const M3=A3;var Fd=Lt();function D3(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){var n=Fd(t).labelManager;n||(n=Fd(t).labelManager=new M3),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,a){var n=Fd(t).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(t.getViewOfSeriesModel(i))}),n.updateLayoutConfig(t),n.layout(t),n.processLabelsOverall()})}var Hd=Math.sin,Wd=Math.cos,lI=Math.PI,Pi=Math.PI*2,L3=180/lI,I3=function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,a,n,i,o){this._add("C",e,t,a,n,i,o)},r.prototype.quadraticCurveTo=function(e,t,a,n){this._add("Q",e,t,a,n)},r.prototype.arc=function(e,t,a,n,i,o){this.ellipse(e,t,a,a,0,n,i,o)},r.prototype.ellipse=function(e,t,a,n,i,o,s,l){var u=s-o,f=!l,v=Math.abs(u),c=Vn(v-Pi)||(f?u>=Pi:-u>=Pi),h=u>0?u%Pi:u%Pi+Pi,d=!1;c?d=!0:Vn(v)?d=!1:d=h>=lI==!!f;var p=e+a*Wd(o),g=t+n*Hd(o);this._start&&this._add("M",p,g);var y=Math.round(i*L3);if(c){var m=1/this._p,_=(f?1:-1)*(Pi-m);this._add("A",a,n,y,1,+f,e+a*Wd(o+_),t+n*Hd(o+_)),m>.01&&this._add("A",a,n,y,0,+f,p,g)}else{var S=e+a*Wd(s),b=t+n*Hd(s);this._add("A",a,n,y,+d,+f,S,b)}},r.prototype.rect=function(e,t,a,n){this._add("M",e,t),this._add("l",a,0),this._add("l",0,n),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,a,n,i,o,s,l,u){for(var f=[],v=this._p,c=1;c<arguments.length;c++){var h=arguments[c];if(isNaN(h)){this._invalid=!0;return}f.push(Math.round(h*v)/v)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}();const uI=I3;var tu="none",P3=Math.round;function R3(r){var e=r.fill;return e!=null&&e!==tu}function k3(r){var e=r.stroke;return e!=null&&e!==tu}var xy=["lineCap","miterLimit","lineJoin"],E3=Z(xy,function(r){return"stroke-"+r.toLowerCase()});function O3(r,e,t,a){var n=e.opacity==null?1:e.opacity;if(t instanceof Ze){r("opacity",n);return}if(R3(e)){var i=ou(e.fill);r("fill",i.color);var o=e.fillOpacity!=null?e.fillOpacity*i.opacity*n:i.opacity*n;(a||o<1)&&r("fill-opacity",o)}else r("fill",tu);if(k3(e)){var s=ou(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*n:s.opacity*n,v=e.strokeFirst;if((a||u!==1)&&r("stroke-width",u),(a||v)&&r("paint-order",v?"stroke":"fill"),(a||f<1)&&r("stroke-opacity",f),e.lineDash){var c=y0(t),h=c[0],d=c[1];h&&(d=P3(d||0),r("stroke-dasharray",h.join(",")),(d||a)&&r("stroke-dashoffset",d))}else a&&r("stroke-dasharray",tu);for(var p=0;p<xy.length;p++){var g=xy[p];if(a||e[g]!==$v[g]){var y=e[g]||$v[g];y&&r(E3[p],y)}}}else a&&r("stroke",tu)}var fI="http://www.w3.org/2000/svg",vI="http://www.w3.org/1999/xlink",N3="http://www.w3.org/2000/xmlns/",B3="http://www.w3.org/XML/1998/namespace",Bx="ecmeta_";function cI(r){return document.createElementNS(fI,r)}function ke(r,e,t,a,n){return{tag:r,attrs:t||{},children:a,text:n,key:e}}function z3(r,e){var t=[];if(e)for(var a in e){var n=e[a],i=a;n!==!1&&(n!==!0&&n!=null&&(i+='="'+n+'"'),t.push(i))}return"<"+r+" "+t.join(" ")+">"}function V3(r){return"</"+r+">"}function I0(r,e){e=e||{};var t=e.newline?`
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return z3(o,s)+(o!=="style"?Ke(l):l||"")+(i?""+t+Z(i,function(u){return a(u)}).join(t)+t:"")+V3(o)}return a(r)}function G3(r,e,t){t=t||{};var a=t.newline?`
`:"",n=" {"+a,i=a+"}",o=Z(Pt(r),function(l){return l+n+Z(Pt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Z(Pt(e),function(l){return"@keyframes "+l+n+Z(Pt(e[l]),function(u){return u+n+Z(Pt(e[l][u]),function(f){var v=e[l][u][f];return f==="d"&&(v='path("'+v+'")'),f+":"+v+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function by(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function zx(r,e,t,a){return ke("svg","root",{width:r,height:e,xmlns:fI,"xmlns:xlink":vI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var F3=0;function hI(){return F3++}var Vx={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"},Ei="transform-origin";function H3(r,e,t){var a=$({},r.shape);$(a,e),r.buildPath(t,a);var n=new uI;return n.reset(pM(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function W3(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Ei]=t+"px "+a+"px")}var $3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dI(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function U3(r,e,t){var a=r.shape.paths,n={},i,o;if(A(a,function(l){var u=by(t.zrId);u.animation=!0,gh(l,{},u,!0);var f=u.cssAnims,v=u.cssNodes,c=Pt(f),h=c.length;if(h){o=c[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in v){var m=v[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=dI(n,t);return i.replace(o,s)}}function Gx(r){return J(r)?Vx[r]?"cubic-bezier("+Vx[r]+")":Am(r)?r:"":""}function gh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof ah){var s=U3(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],v=[f.getMaxTime()/1e3+"s"],c=Gx(f.getClip().easing),h=f.getDelay();c?v.push(c):v.push("linear"),h&&v.push(h/1e3+"s"),f.getLoop()&&v.push("infinite");var d=v.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function C(st,et,it){for(var tt=st.getTracks(),O=st.getMaxTime(),W=0;W<tt.length;W++){var q=tt[W];if(q.needsAnimate()){var K=q.keyframes,pt=q.propName;if(it&&(pt=it(pt)),pt)for(var St=0;St<K.length;St++){var Tt=K[St],Et=Math.round(Tt.time/O*100)+"%",Qt=Gx(Tt.easing),Yt=Tt.rawValue;(J(Yt)||Rt(Yt))&&(et[Et]=et[Et]||{},et[Et][pt]=Tt.rawValue,Qt&&(et[Et][T]=Qt))}}}}for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I?I==="shape"&&C(D,x):!a&&C(D,b)}for(var L in b){var P={};Fv(P,r),$(P,b[L]);var k=gM(P),R=b[L][T];w[L]=k?{transform:k}:{},W3(w[L],P),R&&(w[L][T]=R)}var N,E=!0;for(var L in x){w[L]=w[L]||{};var z=!N,R=x[L][T];z&&(N=new za);var V=N.len();N.reset(),w[L].d=H3(r,x[L],N);var H=N.len();if(!z&&V!==H){E=!1;break}R&&(w[L][T]=R)}if(!E)for(var L in w)delete w[L].d;if(!a)for(var M=0;M<S;M++){var D=_[M],I=D.targetName;I==="style"&&C(D,w,function(tt){return $3[tt]})}for(var G=Pt(w),Y=!0,X,M=1;M<G.length;M++){var ot=G[M-1],_t=G[M];if(w[ot][Ei]!==w[_t][Ei]){Y=!1;break}X=w[ot][Ei]}if(Y&&X){for(var L in w)w[L][Ei]&&delete w[L][Ei];e[Ei]=X}if($t(G,function(st){return Pt(w[st]).length>0}).length){var At=dI(w,t);return At+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+hI();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function Y3(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};Fx(a,e,t,!0)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},i=n.fill;if(!i){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(i=xg(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var a={cursor:"pointer"};i&&(a.fill=i),n.stroke&&(a.stroke=n.stroke),u&&(a["stroke-width"]=u),Fx(a,e,t,!0)}}function Fx(r,e,t,a){var n=JSON.stringify(r),i=t.cssStyleCache[n];i||(i=t.zrId+"-cls-"+hI(),t.cssStyleCache[n]=i,t.cssNodes["."+i+(a?":hover":"")]=r),e.class=e.class?e.class+" "+i:i}var wu=Math.round;function pI(r){return r&&J(r.src)}function gI(r){return r&&lt(r.toDataURL)}function P0(r,e,t,a){O3(function(n,i){var o=n==="fill"||n==="stroke";o&&dM(i)?mI(e,r,n,a):o&&Mm(i)?_I(t,r,n,a):r[n]=i,o&&a.ssr&&i==="none"&&(r["pointer-events"]="visible")},e,t,!1),Q3(t,r,a)}function R0(r,e){var t=qO(e);t&&(t.each(function(a,n){a!=null&&(r[(Bx+n).toLowerCase()]=a+"")}),e.isSilent()&&(r[Bx+"silent"]="true"))}function Hx(r){return Vn(r[0]-1)&&Vn(r[1])&&Vn(r[2])&&Vn(r[3]-1)}function Z3(r){return Vn(r[4])&&Vn(r[5])}function k0(r,e,t){if(e&&!(Z3(e)&&Hx(e))){var a=t?10:1e4;r.transform=Hx(e)?"translate("+wu(e[4]*a)/a+" "+wu(e[5]*a)/a+")":dO(e)}}function Wx(r,e,t){for(var a=r.points,n=[],i=0;i<a.length;i++)n.push(wu(a[i][0]*t)/t),n.push(wu(a[i][1]*t)/t);e.points=n.join(" ")}function $x(r){return!r.smooth}function X3(r){var e=Z(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,a,n){for(var i=0;i<e.length;i++){var o=e[i],s=t[o[0]];s!=null&&(a[o[1]]=wu(s*n)/n)}}}var q3={circle:[X3(["cx","cy","r"])],polyline:[Wx,$x],polygon:[Wx,$x]};function K3(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function yI(r,e){var t=r.style,a=r.shape,n=q3[r.type],i={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&pM(r)||4;if(n&&!e.willUpdate&&!(n[1]&&!n[1](a))&&!(o&&K3(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](a,i,f)}else{var v=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;v&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var h=c.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new uI),p.reset(u),c.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),i.d=p.getStr()}return k0(i,r.transform),P0(i,t,r,e),R0(i,r),e.animation&&gh(r,i,e),e.emphasis&&Y3(r,i,e),ke(s,r.id+"",i)}function j3(r,e){var t=r.style,a=t.image;if(a&&!J(a)&&(pI(a)?a=a.src:gI(a)&&(a=a.toDataURL())),!!a){var n=t.x||0,i=t.y||0,o=t.width,s=t.height,l={href:a,width:o,height:s};return n&&(l.x=n),i&&(l.y=i),k0(l,r.transform),P0(l,t,r,e),R0(l,r),e.animation&&gh(r,l,e),ke("image",r.id+"",l)}}function J3(r,e){var t=r.style,a=t.text;if(a!=null&&(a+=""),!(!a||isNaN(t.x)||isNaN(t.y))){var n=t.font||ln,i=t.x||0,o=gO(t.y||0,Eu(n),t.textBaseline),s=pO[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(QM(t)){var u="",f=t.fontStyle,v=JM(t.fontSize);if(!parseFloat(v))return;var c=t.fontFamily||HA,h=t.fontWeight;u+="font-size:"+v+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+n;return a.match(/\s/)&&(l["xml:space"]="preserve"),i&&(l.x=i),o&&(l.y=o),k0(l,r.transform),P0(l,t,r,e),R0(l,r),e.animation&&gh(r,l,e),ke("text",r.id+"",l,void 0,a)}}function Ux(r,e){if(r instanceof It)return yI(r,e);if(r instanceof Ze)return j3(r,e);if(r instanceof uu)return J3(r,e)}function Q3(r,e,t){var a=r.style;if(yO(a)){var n=mO(r),i=t.shadowCache,o=i[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=a.shadowOffsetX||0,v=a.shadowOffsetY||0,c=a.shadowBlur,h=ou(a.shadowColor),d=h.opacity,p=h.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=ke("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ke("feDropShadow","",{dx:f/l,dy:v/u,stdDeviation:m,"flood-color":p,"flood-opacity":d})]),i[n]=o}e.filter=Uc(o)}}function mI(r,e,t,a){var n=r[t],i,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(cM(n))i="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(hM(n))i="radialGradient",o.cx=nt(n.x,.5),o.cy=nt(n.y,.5),o.r=nt(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var v=bg(s[u].offset)*100+"%",c=s[u].color,h=ou(c),d=h.color,p=h.opacity,g={offset:v};g["stop-color"]=d,p<1&&(g["stop-opacity"]=p),l.push(ke("stop",u+"",g))}var y=ke(i,"",o,l),m=I0(y),_=a.gradientCache,S=_[m];S||(S=a.zrId+"-g"+a.gradientIdx++,_[m]=S,o.id=S,a.defs[S]=ke(i,S,o,l)),e[t]=Uc(S)}function _I(r,e,t,a){var n=r.style[t],i=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",v;if(vM(n)){var c=n.imageWidth,h=n.imageHeight,d=void 0,p=n.image;if(J(p)?d=p:pI(p)?d=p.src:gI(p)&&(d=p.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";Qe(c,g),Qe(h,g)}else if(c==null||h==null){var y=function(M,D){if(M){var I=M.elm,L=c||D.width,P=h||D.height;M.tag==="pattern"&&(u?(P=1,L/=i.width):f&&(L=1,P/=i.height)),M.attrs.width=L,M.attrs.height=P,I&&(I.setAttribute("width",L),I.setAttribute("height",P))}},m=Em(d,null,r,function(M){l||y(x,M),y(v,M)});m&&m.width&&m.height&&(c=c||m.width,h=h||m.height)}v=ke("image","img",{href:d,width:c,height:h}),o.width=c,o.height=h}else n.svgElement&&(v=ut(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(v){var _,S;l?_=S=1:u?(S=1,_=o.width/i.width):f?(_=1,S=o.height/i.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=gM(n);b&&(o.patternTransform=b);var x=ke("pattern","",o,[v]),w=I0(x),T=a.patternCache,C=T[w];C||(C=a.zrId+"-p"+a.patternIdx++,T[w]=C,o.id=C,x=a.defs[C]=ke("pattern",C,o,[v])),e[t]=Uc(C)}}function tH(r,e,t){var a=t.clipPathCache,n=t.defs,i=a[r.id];if(!i){i=t.zrId+"-c"+t.clipPathIdx++;var o={id:i};a[r.id]=i,n[i]=ke("clipPath",i,o,[yI(r,t)])}e["clip-path"]=Uc(i)}function Yx(r){return document.createTextNode(r)}function Fi(r,e,t){r.insertBefore(e,t)}function Zx(r,e){r.removeChild(e)}function Xx(r,e){r.appendChild(e)}function SI(r){return r.parentNode}function xI(r){return r.nextSibling}function $d(r,e){r.textContent=e}var qx=58,eH=120,rH=ke("","");function wy(r){return r===void 0}function xa(r){return r!==void 0}function aH(r,e,t){for(var a={},n=e;n<=t;++n){var i=r[n].key;i!==void 0&&(a[i]=n)}return a}function zl(r,e){var t=r.key===e.key,a=r.tag===e.tag;return a&&t}function Tu(r){var e,t=r.children,a=r.tag;if(xa(a)){var n=r.elm=cI(a);if(E0(rH,r),U(t))for(e=0;e<t.length;++e){var i=t[e];i!=null&&Xx(n,Tu(i))}else xa(r.text)&&!dt(r.text)&&Xx(n,Yx(r.text))}else r.elm=Yx(r.text);return r.elm}function bI(r,e,t,a,n){for(;a<=n;++a){var i=t[a];i!=null&&Fi(r,Tu(i),e)}}function hc(r,e,t,a){for(;t<=a;++t){var n=e[t];if(n!=null)if(xa(n.tag)){var i=SI(n.elm);Zx(i,n.elm)}else Zx(r,n.elm)}}function E0(r,e){var t,a=e.elm,n=r&&r.attrs||{},i=e.attrs||{};if(n!==i){for(t in i){var o=i[t],s=n[t];s!==o&&(o===!0?a.setAttribute(t,""):o===!1?a.removeAttribute(t):t==="style"?a.style.cssText=o:t.charCodeAt(0)!==eH?a.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?a.setAttributeNS(N3,t,o):t.charCodeAt(3)===qx?a.setAttributeNS(B3,t,o):t.charCodeAt(5)===qx?a.setAttributeNS(vI,t,o):a.setAttribute(t,o))}for(t in n)t in i||a.removeAttribute(t)}}function nH(r,e,t){for(var a=0,n=0,i=e.length-1,o=e[0],s=e[i],l=t.length-1,u=t[0],f=t[l],v,c,h,d;a<=i&&n<=l;)o==null?o=e[++a]:s==null?s=e[--i]:u==null?u=t[++n]:f==null?f=t[--l]:zl(o,u)?(os(o,u),o=e[++a],u=t[++n]):zl(s,f)?(os(s,f),s=e[--i],f=t[--l]):zl(o,f)?(os(o,f),Fi(r,o.elm,xI(s.elm)),o=e[++a],f=t[--l]):zl(s,u)?(os(s,u),Fi(r,s.elm,o.elm),s=e[--i],u=t[++n]):(wy(v)&&(v=aH(e,a,i)),c=v[u.key],wy(c)?Fi(r,Tu(u),o.elm):(h=e[c],h.tag!==u.tag?Fi(r,Tu(u),o.elm):(os(h,u),e[c]=void 0,Fi(r,h.elm,o.elm))),u=t[++n]);(a<=i||n<=l)&&(a>i?(d=t[l+1]==null?null:t[l+1].elm,bI(r,d,t,n,l)):hc(r,e,a,i))}function os(r,e){var t=e.elm=r.elm,a=r.children,n=e.children;r!==e&&(E0(r,e),wy(e.text)?xa(a)&&xa(n)?a!==n&&nH(t,a,n):xa(n)?(xa(r.text)&&$d(t,""),bI(t,null,n,0,n.length-1)):xa(a)?hc(t,a,0,a.length-1):xa(r.text)&&$d(t,""):r.text!==e.text&&(xa(a)&&hc(t,a,0,a.length-1),$d(t,e.text)))}function iH(r,e){if(zl(r,e))os(r,e);else{var t=r.elm,a=SI(t);Tu(e),a!==null&&(Fi(a,e.elm,xI(t)),hc(a,[r],0,0))}return e}var oH=0,sH=function(){function r(e,t,a){if(this.type="svg",this.refreshHover=Kx(),this.configLayer=Kx(),this.storage=t,this._opts=a=$({},a),this.root=e,this._id="zr"+oH++,this._oldVNode=zx(a.width,a.height),e&&!a.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=cI("svg");E0(null,this._oldVNode),n.appendChild(i),e.appendChild(n)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",iH(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return Ux(e,by(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),a=this._width,n=this._height,i=by(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],s=this._bgVNode=lH(a,n,this._backgroundColor,i);s&&o.push(s);var l=e.compress?null:this._mainVNode=ke("g","main",{},[]);this._paintList(t,i,l?l.children:o),l&&o.push(l);var u=Z(Pt(i.defs),function(c){return i.defs[c]});if(u.length&&o.push(ke("defs","defs",{},u)),e.animation){var f=G3(i.cssNodes,i.cssAnims,{newline:!0});if(f){var v=ke("style","stl",{},[],f);o.push(v)}}return zx(a,n,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},I0(this.renderToVNode({animation:nt(e.cssAnimation,!0),emphasis:nt(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:nt(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,a){for(var n=e.length,i=[],o=0,s,l,u=0,f=0;f<n;f++){var v=e[f];if(!v.invisible){var c=v.__clipPaths,h=c&&c.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(c&&l&&c[p]===l[p]);p--);for(var g=d-1;g>p;g--)o--,s=i[o-1];for(var y=p+1;y<h;y++){var m={};tH(c[y],m,t);var _=ke("g","clip-g-"+u++,m,[]);(s?s.children:a).push(_),i[o++]=_,s=_}l=c;var S=Ux(v,t);S&&(s?s.children:a).push(S)}}},r.prototype.resize=function(e,t){var a=this._opts,n=this.root,i=this._viewport;if(e!=null&&(a.width=e),t!=null&&(a.height=t),n&&i&&(i.style.display="none",e=ds(n,0,a),t=ds(n,1,a),i.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var o=i.style;o.width=e+"px",o.height=t+"px"}if(Mm(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))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),a="data:image/svg+xml;";return e?(t=SO(t),t&&a+"base64,"+t):a+"charset=UTF-8,"+encodeURIComponent(t)},r}();function Kx(r){return function(){}}function lH(r,e,t,a){var n;if(t&&t!=="none")if(n=ke("rect","bg",{width:r,height:e,x:"0",y:"0"}),dM(t))mI({fill:t},n.attrs,"fill",a);else if(Mm(t))_I({style:{fill:t},dirty:pe,getBoundingRect:function(){return{width:r,height:e}}},n.attrs,"fill",a);else{var i=ou(t),o=i.color,s=i.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}const uH=sH;function fH(r){r.registerPainter("svg",uH)}function jx(r,e,t){var a=na.createCanvas(),n=e.getWidth(),i=e.getHeight(),o=a.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=i+"px",a.setAttribute("data-zr-dom-id",r)),a.width=n*t,a.height=i*t,a}var vH=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;n=n||Gv,typeof t=="string"?o=jx(t,a,n):dt(t)&&(o=t,t=o.id),i.id=t,i.dom=o;var s=o.style;return s&&(XA(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=a,i.dpr=n,i}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=jx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,a,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new gt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new gt(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,b=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(m)){var C=new gt(0,0,0,0);C.copy(T),C.union(m),o[w]=C,S=!0;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,D=T.width*T.height,I=u.width*u.height,L=I-M-D;L<b&&(b=L,x=w)}}if(l&&(o[x].union(m),S=!0),!S){var _=new gt(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var c=t[v];if(c){var h=c.shouldBePainted(n,i,!0,!0),d=c.__isRendered&&(c.__dirty&Sr||!h)?c.getPrevPaintRect():null;d&&f(d);var p=h&&(c.__dirty&Sr||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var c=a[v],h=c&&c.shouldBePainted(n,i,!0,!0);if(c&&(!h||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var v=0;v<o.length;){if(o[v].isZero()){o.splice(v,1);continue}for(var y=v+1;y<o.length;)o[v].intersect(o[y])?(g=!0,o[v].union(o[y]),o.splice(y,1)):y++;v++}}while(g);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,a){var n=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=t+"px",o.height=a+"px"),i.width=t*n,i.height=a*n,s&&(s.width=t*n,s.height=a*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,a,n){var i=this.dom,o=this.ctx,s=i.width,l=i.height;a=a||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,v=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/v,l/v));var h=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),a&&a!=="transparent"){var _=void 0;if(Gc(a)){var S=a.global||a.__width===y&&a.__height===m;_=S&&a.__canvasGradient||oy(o,a,{x:0,y:0,width:y,height:m}),a.__canvasGradient=_,a.__width=y,a.__height=m}else mE(a)&&(a.scaleX=a.scaleX||v,a.scaleY=a.scaleY||v,_=sy(o,a,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||a,o.fillRect(p,g,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,p,g,y,m),o.restore())}!n||u?d(0,0,s,l):n.length&&A(n,function(p){d(p.x*v,p.y*v,p.width*v,p.height*v)})},e}(Yr);const Ud=vH;var Jx=1e5,Ri=314159,Nf=.01,cH=.001;function hH(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function dH(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}var pH=function(){function r(e,t,a,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=a=$({},a||{}),this.dpr=a.devicePixelRatio||Gv,this._singleCanvas=i,this.root=e;var o=e.style;o&&(XA(e),e.innerHTML=""),this.storage=t;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var f=e,v=f.width,c=f.height;a.width!=null&&(v=a.width),a.height!=null&&(c=a.height),this.dpr=a.devicePixelRatio||1,f.width=v*this.dpr,f.height=c*this.dpr,this._width=v,this._height=c;var h=new Ud(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Ri]=h,h.zlevel=Ri,s.push(Ri),this._domRoot=e}else{this._width=ds(e,0,a),this._height=ds(e,1,a);var u=this._domRoot=dH(this._width,this._height);e.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t=this.storage.getDisplayList(!0),a=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,a,e,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(e){var t=e.length,a=this._hoverlayer;if(a&&a.clear(),!!t){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<t;o++){var s=e[o];s.__inHover&&(a||(a=this._hoverlayer=this.getLayer(Jx)),i||(i=a.ctx,i.save()),ji(i,s,n,o===t-1))}i&&i.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(Jx)},r.prototype.paintOne=function(e,t){t2(e,t)},r.prototype._paintList=function(e,t,a,n){if(this._redrawId===n){a=a||!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,a),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;gg(function(){l._paintList(e,t,a,n)})}}},r.prototype._compositeManually=function(){var e=this.getLayer(Ri).ctx,t=this._domRoot.width,a=this._domRoot.height;e.clearRect(0,0,t,a),this.eachBuiltinLayer(function(n){n.virtual&&e.drawImage(n.dom,0,0,t,a)})},r.prototype._doPaintList=function(e,t,a){for(var n=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||a)&&i.push(u)}for(var f=!0,v=!1,c=function(p){var g=i[p],y=g.ctx,m=o&&g.createRepaintRects(e,t,h._width,h._height),_=a?g.__startIndex:g.__drawIndex,S=!a&&g.incremental&&Date.now,b=S&&Date.now(),x=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var w=e[_];(!w.incremental||!w.notClear||a)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(T=_;T<g.__endIndex;T++){var k=e[T];if(k.__inHover&&(v=!0),n._doPaintEl(k,g,o,L,P,T===g.__endIndex-1),S){var R=Date.now()-b;if(R>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var M=h.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*M,I.y*M,I.width*M,I.height*M),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},h=this,d=0;d<i.length;d++)c(d);return zt.wxa&&A(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:v}},r.prototype._doPaintEl=function(e,t,a,n,i,o){var s=t.ctx;if(a){var l=e.getPaintRect();(!n||l&&l.intersect(n))&&(ji(s,e,i,o),e.setPrevPaintRect(l))}else ji(s,e,i,o)},r.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Ri);var a=this._layers[e];return a||(a=new Ud("zr_"+e,this,this.dpr),a.zlevel=e,a.__builtin__=!0,this._layerConfig[e]?wt(a,this._layerConfig[e],!0):this._layerConfig[e-Nf]&&wt(a,this._layerConfig[e-Nf],!0),t&&(a.virtual=t),this.insertLayer(e,a),a.initContext()),a},r.prototype.insertLayer=function(e,t){var a=this._layers,n=this._zlevelList,i=n.length,o=this._domRoot,s=null,l=-1;if(!a[e]&&hH(t)){if(i>0&&e>n[0]){for(l=0;l<i-1&&!(n[l]<e&&n[l+1]>e);l++);s=a[n[l]]}if(n.splice(l+1,0,e),a[e]=t,!t.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(t.dom,u.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.painter||(t.painter=this)}},r.prototype.eachLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n];e.call(t,this._layers[i],i)}},r.prototype.eachBuiltinLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__&&e.call(t,o,i)}},r.prototype.eachOtherLayer=function(e,t){for(var a=this._zlevelList,n=0;n<a.length;n++){var i=a[n],o=this._layers[i];o.__builtin__||e.call(t,o,i)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(v,c){v.__dirty=v.__used=!1});function t(v){i&&(i.__endIndex!==v&&(i.__dirty=!0),i.__endIndex=v)}if(this._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<e.length;l++){var n=e[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+cH,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(u+(o>0?Nf:0),this._needsManuallyCompositing),f.__builtin__||_m("ZLevel "+u+" has been used by unkown layer "+f.id),f!==i&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,t(l),i=f),n.__dirty&Sr&&!n.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}t(l),this.eachBuiltinLayer(function(v,c){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(e){e.clear()},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,A(this._layers,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var a=this._layerConfig;a[e]?wt(a[e],t,!0):a[e]=t;for(var n=0;n<this._zlevelList.length;n++){var i=this._zlevelList[n];if(i===e||i===e+Nf){var o=this._layers[i];wt(o,a[e],!0)}}}},r.prototype.delLayer=function(e){var t=this._layers,a=this._zlevelList,n=t[e];n&&(n.dom.parentNode.removeChild(n.dom),delete t[e],a.splice(bt(a,e),1))},r.prototype.resize=function(e,t){if(this._domRoot.style){var a=this._domRoot;a.style.display="none";var n=this._opts,i=this.root;if(e!=null&&(n.width=e),t!=null&&(n.height=t),e=ds(i,0,n),t=ds(i,1,n),a.style.display="",this._width!==e||t!==this._height){a.style.width=e+"px",a.style.height=t+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(Ri).resize(e,t)}return this},r.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Ri].dom;var t=new Ud("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var a=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=t.dom.width,i=t.dom.height;this.eachLayer(function(v){v.__builtin__?a.drawImage(v.dom,0,0,n,i):v.renderToCanvas&&(a.save(),v.renderToCanvas(a),a.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];ji(a,f,o,l===u-1)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();const gH=pH;function yH(r){r.registerPainter("canvas",gH)}var mH=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var a=new ft,n=be("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);a.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=t.itemHeight*.8,u=be(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);a.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=F.color.neutral00,u.style.lineWidth=2),a},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(ie);const _H=mH;function Is(r,e){var t=r.mapDimensionsAll("defaultedLabel"),a=t.length;if(a===1){var n=As(r,e,t[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<t.length;o++)i.push(As(r,e,t[o]));return i.join(" ")}}function wI(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!U(e))return e+"";for(var a=[],n=0;n<t.length;n++){var i=r.getDimensionIndex(t[n]);i>=0&&a.push(e[i])}return a.join(" ")}var SH=function(r){B(e,r);function e(t,a,n,i){var o=r.call(this)||this;return o.updateData(t,a,n,i),o}return e.prototype._createSymbol=function(t,a,n,i,o,s){this.removeAll();var l=be(t,-1,-1,2,2,null,s);l.attr({z2:nt(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=xH,this._symbolType=t,this.add(l)},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(){vn(this.childAt(0))},e.prototype.downplay=function(){cn(this.childAt(0))},e.prototype.setZ=function(t,a){var n=this.childAt(0);n.zlevel=t,n.z=a},e.prototype.setDraggable=function(t,a){var n=this.childAt(0);n.draggable=t,n.cursor=!a&&t?"move":n.cursor},e.prototype.updateData=function(t,a,n,i){this.silent=!1;var o=t.getItemVisual(a,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,a),u=e.getSymbolZ2(t,a),f=o!==this._symbolType,v=i&&i.disableAnimation;if(f){var c=t.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,t,a,l,u,c)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};v?h.attr(d):Nt(h,d,s,a),Ur(h)}if(this._updateCommon(t,a,l,n,i),f){var h=this.childAt(0);if(!v){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,re(h,d,s,a)}}v&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,a,n,i,o){var s=this.childAt(0),l=t.hostModel,u,f,v,c,h,d,p,g,y;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,v=i.selectItemStyle,c=i.focus,h=i.blurScope,p=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,d=i.emphasisDisabled),!i||t.hasItemOption){var m=i&&i.itemModel?i.itemModel:t.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),v=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Le(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Co(t.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(a,"style"),w=x.fill;if(s instanceof Ze){var T=s.style;s.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle($({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(a,"liftZ"),M=this._z2;C!=null?M==null&&(this._z2=s.z2,s.z2+=C):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Ee(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:I,inheritColor:w,defaultOpacity:x.opacity});function I(k){return D?t.getName(k):Is(t,k)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=v,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ae(this,c,h,d)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,a,n){var i=this.childAt(0),o=yt(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&jn(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();jn(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,a){return Xs(t.getItemVisual(a,"symbolSize"))},e.getSymbolZ2=function(t,a){return t.getItemVisual(a,"z2")},e}(ft);function xH(r,e){this.parent.drift(r,e)}const $u=SH;function Yd(r,e,t,a){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(a.isIgnore&&a.isIgnore(t))&&!(a.clipShape&&!a.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function Qx(r){return r!=null&&!dt(r)&&(r={isIgnore:r}),r||{}}function tb(r){var e=r.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:Le(e),cursorStyle:e.get("cursor")}}var bH=function(){function r(e){this.group=new ft,this._SymbolCtor=e||$u}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=Qx(t);var a=this.group,n=e.hostModel,i=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=tb(e),u={disableAnimation:s},f=t.getSymbolPoint||function(v){return e.getItemLayout(v)};i||a.removeAll(),e.diff(i).add(function(v){var c=f(v);if(Yd(e,c,v,t)){var h=new o(e,v,l,u);h.setPosition(c),e.setItemGraphicEl(v,h),a.add(h)}}).update(function(v,c){var h=i.getItemGraphicEl(c),d=f(v);if(!Yd(e,d,v,t)){a.remove(h);return}var p=e.getItemVisual(v,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==p)a.remove(h),h=new o(e,v,l,u),h.setPosition(d);else{h.updateData(e,v,l,u);var y={x:d[0],y:d[1]};s?h.attr(y):Nt(h,y,n)}a.add(h),e.setItemGraphicEl(v,h)}).remove(function(v){var c=i.getItemGraphicEl(v);c&&c.fadeOut(function(){a.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(a,n){var i=e._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=tb(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,a){this._progressiveEls=[],a=Qx(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=t.getItemLayout(i);if(Yd(t,o,i,a)){var s=new this._SymbolCtor(t,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){oi(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,a=this._data;a&&e?a.eachItemGraphicEl(function(n){n.fadeOut(function(){t.remove(n)},a.hostModel)}):t.removeAll()},r}();const Uu=bH;function TI(r,e,t){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=wH(n,t),o=a.dim,s=n.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,v=Z(r.dimensions,function(d){return e.mapDimension(d)}),c=!1,h=e.getCalculationInfo("stackResultDimension");return Jn(e,v[0])&&(c=!0,v[0]=h),Jn(e,v[1])&&(c=!0,v[1]=h),{dataDimsForPoint:v,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function wH(r,e){var t=0,a=r.scale.getExtent();return e==="start"?t=a[0]:e==="end"?t=a[1]:Rt(e)&&!isNaN(e)?t=e:a[0]>0?t=a[0]:a[1]<0&&(t=a[1]),t}function CI(r,e,t,a){var n=NaN;r.stacked&&(n=t.get(t.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=t.get(r.baseDim,a),o[1-i]=n,e.dataToPoint(o)}function TH(r,e){var t=[];return e.diff(r).add(function(a){t.push({cmd:"+",idx:a})}).update(function(a,n){t.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){t.push({cmd:"-",idx:a})}).execute(),t}function CH(r,e,t,a,n,i,o,s){for(var l=TH(r,e),u=[],f=[],v=[],c=[],h=[],d=[],p=[],g=TI(n,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var T=y[x],C=y[x+1],M=m[w],D=m[w+1];(isNaN(T)||isNaN(C))&&(T=M,C=D),u.push(T,C),f.push(M,D),v.push(t[x],t[x+1]),c.push(a[w],a[w+1]),p.push(e.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=n.dataToPoint([e.get(L[0],I),e.get(L[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(m[w],m[w+1]);var k=CI(g,n,e,I);v.push(k[0],k[1]),c.push(a[w],a[w+1]),p.push(e.getRawIndex(I));break;case"-":b=!1}b&&(h.push(S),d.push(d.length))}d.sort(function(ot,_t){return p[ot]-p[_t]});for(var R=u.length,N=Da(R),E=Da(R),z=Da(R),V=Da(R),H=[],_=0;_<d.length;_++){var G=d[_],Y=_*2,X=G*2;N[Y]=u[X],N[Y+1]=u[X+1],E[Y]=f[X],E[Y+1]=f[X+1],z[Y]=v[X],z[Y+1]=v[X+1],V[Y]=c[X],V[Y+1]=c[X+1],H[_]=h[G]}return{current:N,next:E,stackedOnCurrent:z,stackedOnNext:V,status:H}}var An=Math.min,Mn=Math.max;function io(r,e){return isNaN(r)||isNaN(e)}function Ty(r,e,t,a,n,i,o,s,l){for(var u,f,v,c,h,d,p=t,g=0;g<a;g++){var y=e[p*2],m=e[p*2+1];if(p>=n||p<0)break;if(io(y,m)){if(l){p+=i;continue}break}if(p===t)r[i>0?"moveTo":"lineTo"](y,m),v=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=e[b*2],w=e[b*2+1];x===y&&w===m&&g<a;)g++,b+=i,p+=i,x=e[b*2],w=e[b*2+1],y=e[p*2],m=e[p*2+1],_=y-u,S=m-f;var T=g+1;if(l)for(;io(x,w)&&T<a;)T++,b+=i,x=e[b*2],w=e[b*2+1];var C=.5,M=0,D=0,I=void 0,L=void 0;if(T>=a||io(x,w))h=y,d=m;else{M=x-u,D=w-f;var P=y-u,k=x-y,R=m-f,N=w-m,E=void 0,z=void 0;if(s==="x"){E=Math.abs(P),z=Math.abs(k);var V=M>0?1:-1;h=y-V*E*o,d=m,I=y+V*z*o,L=m}else if(s==="y"){E=Math.abs(R),z=Math.abs(N);var H=D>0?1:-1;h=y,d=m-H*E*o,I=y,L=m+H*z*o}else E=Math.sqrt(P*P+R*R),z=Math.sqrt(k*k+N*N),C=z/(z+E),h=y-M*o*(1-C),d=m-D*o*(1-C),I=y+M*o*C,L=m+D*o*C,I=An(I,Mn(x,y)),L=An(L,Mn(w,m)),I=Mn(I,An(x,y)),L=Mn(L,An(w,m)),M=I-y,D=L-m,h=y-M*E/z,d=m-D*E/z,h=An(h,Mn(u,y)),d=An(d,Mn(f,m)),h=Mn(h,An(u,y)),d=Mn(d,An(f,m)),M=y-h,D=m-d,I=y+M*z/E,L=m+D*z/E}r.bezierCurveTo(v,c,h,d,y,m),v=I,c=L}else r.lineTo(y,m)}u=y,f=m,p+=i}return g}var AI=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),AH=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polyline",a}return e.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new AI},e.prototype.buildPath=function(t,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&io(n[o*2-2],n[o*2-1]);o--);for(;i<o&&io(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=Ty(t,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},e.prototype.getPointOn=function(t,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=za.CMD,s,l,u=a==="x",f=[],v=0;v<i.length;){var c=i[v++],h=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=i[v++],l=i[v++];break;case o.L:if(h=i[v++],d=i[v++],_=u?(t-s)/(h-s):(t-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(h-s)*_+s;return u?[t,S]:[S,t]}s=h,l=d;break;case o.C:h=i[v++],d=i[v++],p=i[v++],g=i[v++],y=i[v++],m=i[v++];var b=u?Nv(s,h,p,y,t,f):Nv(l,d,g,m,t,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?Re(l,d,g,m,w):Re(s,h,p,y,w);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(It),MH=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(AI),MI=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-polygon",a}return e.prototype.getDefaultShape=function(){return new MH},e.prototype.buildPath=function(t,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&io(n[s*2-2],n[s*2-1]);s--);for(;o<s&&io(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Ty(t,n,o,s,s,1,a.smooth,l,a.connectNulls);Ty(t,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,t.closePath()}},e}(It);function DI(r,e,t,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var v=new Dt({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),h=c.isHorizontal(),d=c.inverse;h?(d&&(v.shape.x+=l),v.shape.width=0):(d||(v.shape.y+=u),v.shape.height=0);var p=lt(n)?function(g){n(g,v)}:null;re(v,{shape:{width:l,height:u,x:o,y:s}},t,null,a,p)}return v}function LI(r,e,t){var a=r.getArea(),n=me(a.r0,1),i=me(a.r,1),o=new sr({shape:{cx:me(r.cx,1),cy:me(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,re(o,{shape:{endAngle:a.endAngle,r:i}},t)}return o}function Yu(r,e,t,a,n){if(r){if(r.type==="polar")return LI(r,e,t);if(r.type==="cartesian2d")return DI(r,e,t,a,n)}else return null;return null}function ti(r,e){return r.type===e}function eb(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function rb(r){for(var e=1/0,t=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(e=Math.min(o,e),a=Math.max(o,a)),isNaN(s)||(t=Math.min(s,t),n=Math.max(s,n))}return[[e,t],[a,n]]}function ab(r,e){var t=rb(r),a=t[0],n=t[1],i=rb(e),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function nb(r){return Rt(r)?r:r?.5:0}function DH(r,e,t){if(!t.valueDim)return[];for(var a=e.count(),n=Da(a*2),i=0;i<a;i++){var o=CI(t,r,e,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Dn(r,e,t,a,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],v=[],c=[];if(n){for(l=0;l<r.length;l+=2){var h=e||r;!isNaN(h[l])&&!isNaN(h[l+1])&&c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(v[0]=r[l+2],v[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=v[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+v[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=v[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=v[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function LH(r,e){var t=[],a=r.length,n,i;function o(f,v,c){var h=f.coord,d=(c-h)/(v.coord-h),p=hO(d,[f.color,v.color]);return{coord:c,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>e){i?t.push(o(i,l,e)):n&&t.push(o(n,l,0),o(n,l,e));break}else n&&(t.push(o(n,l,0)),n=null),t.push(l),i=l}return t}function IH(r,e,t){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&e.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=e.getAxis(n),u=Z(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,v=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),v.reverse());var c=LH(u,n==="x"?t.getWidth():t.getHeight()),h=c.length;if(!h&&f)return u[0].coord<0?v[1]?v[1]:u[f-1].color:v[0]?v[0]:u[0].color;var d=10,p=c[0].coord-d,g=c[h-1].coord+d,y=g-p;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:h?c[h-1].offset:.5,color:v[1]||"transparent"}),c.unshift({offset:h?c[0].offset:.5,color:v[0]||"transparent"});var m=new Fs(0,0,0,0,c,!0);return m[n]=p,m[n+"2"]=g,m}}}function PH(r,e,t){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=t.getAxesByScale("ordinal")[0];if(i&&!(n&&RH(i,e))){var o=e.mapDimension(i.dim),s={};return A(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function RH(r,e){var t=r.getExtent(),a=Math.abs(t[1]-t[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=e.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if($u.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function kH(r,e){return isNaN(r)||isNaN(e)}function EH(r){for(var e=r.length/2;e>0&&kH(r[e*2-2],r[e*2-1]);e--);return e-1}function ib(r,e){return[r[e*2],r[e*2+1]]}function OH(r,e,t){for(var a=r.length/2,n=t==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=e&&o>=e||i>=e&&o<=e){l=u;break}s=u,i=o}return{range:[s,l],t:(e-i)/(o-i)}}function II(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<or.length;e++)if(r.get([or[e],"endLabel","show"]))return!0;return!1}function Zd(r,e,t,a){if(ti(e,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=II(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,i,n,e)}:null,u=e.getBaseAxis().isHorizontal(),f=DI(e,t,a,function(){var h=r._endLabel;h&&t&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var v=f.shape,c=Math.max(v.width,v.height);u?(v.y-=c,v.height+=c*2):(v.x-=c,v.width+=c*2)}return l&&l(1,f),f}else return LI(e,t,a)}function NH(r,e){var t=e.getBaseAxis(),a=t.isHorizontal(),n=t.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var BH=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new ft,a=new Uu;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=t,this._changePolyState=Q(this._changePolyState,this)},e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],v=i.type==="polar",c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!a.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=TI(i,s,_),b=m&&DH(i,s,S),x=t.get("showSymbol"),w=t.get("connectNulls"),T=x&&!v&&PH(t,s,i),C=this._data;C&&C.eachItemGraphicEl(function(ot,_t){ot.__temp&&(o.remove(ot),C.setItemGraphicEl(_t,null))}),x||h.remove(),o.add(g);var M=v?!1:t.get("step"),D;i&&i.getArea&&t.get("clip",!0)&&(D=i.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=IH(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===i.type&&M===this._step))x&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ot){return[f[ot*2],f[ot*2+1]]}}),y&&this._initSymbolLabelAnimation(s,i,D),M&&(b&&(b=Dn(b,f,i,M,w)),f=Dn(f,null,i,M,w)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,po(I)),g.setClipPath(Zd(this,i,!0,t));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(g.remove(p),p=this._polygon=null),v||this._initOrUpdateEndLabel(t,i,po(I));var L=g.getClipPath();if(L){var P=Zd(this,i,!1,t);re(L,{shape:P.shape},t)}else g.setClipPath(Zd(this,i,!0,t));x&&h.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ot){return[f[ot*2],f[ot*2+1]]}}),(!eb(this._stackedOnPoints,b)||!eb(this._points,f))&&(y?this._doUpdateAnimation(s,b,i,n,M,_,w):(M&&(b&&(b=Dn(b,f,i,M,w)),f=Dn(f,null,i,M,w)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var k=t.getModel("emphasis"),R=k.get("focus"),N=k.get("blurScope"),E=k.get("disabled");if(d.useStyle(ht(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),De(d,t,"lineStyle"),d.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var z=d.getState("emphasis").style;z.lineWidth=+d.style.lineWidth+1}yt(d).seriesIndex=t.seriesIndex,ae(d,R,N,E);var V=nb(t.get("smooth")),H=t.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:w}),p){var G=s.getCalculationInfo("stackedOnSeries"),Y=0;p.useStyle(ht(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(Y=nb(G.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:Y,smoothMonotone:H,connectNulls:w}),De(p,t,"areaStyle"),yt(p).seriesIndex=t.seriesIndex,ae(p,R,N,E)}var X=this._changePolyState;s.eachItemGraphicEl(function(ot){ot&&(ot.onHoverStateChange=X)}),this._polyline.onHoverStateChange=X,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,d),p&&this.packEventData(t,p))},e.prototype.packEventData=function(t,a){yt(a).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,a,n,i){var o=t.getData(),s=uo(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],v=l[s*2+1];if(isNaN(f)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,v))return;var c=t.get("zlevel")||0,h=t.get("z")||0;u=new $u(o,s),u.x=f,u.y=v,u.setZ(c,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Jt.prototype.highlight.call(this,t,a,n,i)},e.prototype.downplay=function(t,a,n,i){var o=t.getData(),s=uo(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Jt.prototype.downplay.call(this,t,a,n,i)},e.prototype._changePolyState=function(t){var a=this._polygon;Zv(this._polyline,t),a&&Zv(a,t)},e.prototype._newPolyline=function(t){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new AH({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},e.prototype._newPolygon=function(t,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new MI({shape:{points:t,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");lt(f)&&(f=f(null));var v=u.get("animationDelay")||0,c=lt(v)?v(null):v;t.eachItemGraphicEl(function(h,d){var p=h;if(p){var g=[h.x,h.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(g);i?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;i?(y=x.x,m=x.x+x.width,_=h.x):(y=x.y+x.height,m=x.y,_=h.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var T=lt(v)?v(d):f*w+c,C=p.getSymbolPath(),M=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,a,n){var i=t.getModel("endLabel");if(II(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ot({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=EH(l);f>=0&&(Ee(s,Le(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:f,defaultText:function(v,c,h){return h!=null?wI(o,h):Is(o,v)},enableTextSetter:!0},NH(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var v=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=a.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),w=y?"x":"y",T=OH(v,S,w),C=T.range,M=C[1]-C[0],D=void 0;if(M>=1){if(M>1&&!h){var I=ib(v,C[0]);u.attr({x:I[0]+b,y:I[1]+x}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,w);I&&u.attr({x:I[0]+b,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=zM(n,d,L,P,T.t))}i.lastFrameIndex=C[0]}else{var k=t===1||i.lastFrameIndex>0?C[0]:0,I=ib(v,k);o&&(D=c.getRawValue(k)),u.attr({x:I[0]+b,y:I[1]+x})}if(o){var R=Ws(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,v=t.hostModel,c=CH(this._data,t,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),h=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=Dn(c.stackedOnCurrent,c.current,n,o,l),h=Dn(c.current,null,n,o,l),g=Dn(c.stackedOnNext,c.next,n,o,l),p=Dn(c.next,null,n,o,l)),ab(h,p)>3e3||f&&ab(d,g)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=h;var y={shape:{points:p}};c.current!==h&&(y.shape.__points=c.next),u.stopAnimation(),Nt(u,y,v),f&&(f.setShape({points:h,stackedOnPoints:d}),f.stopAnimation(),Nt(f,{shape:{stackedOnPoints:g}},v),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,T=0;T<m.length;T++){var C=m[T].el,M=m[T].ptIdx*2;C.x=w[M],C.y=w[M+1],C.markRedraw()}})},e.prototype.remove=function(t){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Jt);const zH=BH;function Zu(r,e){return{seriesType:r,plan:Ys(),reset:function(t){var a=t.getData(),n=t.coordinateSystem,i=t.pipelineContext,o=e||i.large;if(n){var s=Z(n.dimensions,function(h){return a.mapDimension(h)}).slice(0,2),l=s.length,u=a.getCalculationInfo("stackResultDimension");Jn(a,s[0])&&(s[0]=u),Jn(a,s[1])&&(s[1]=u);var f=a.getStore(),v=a.getDimensionIndex(s[0]),c=a.getDimensionIndex(s[1]);return l&&{progress:function(h,d){for(var p=h.end-h.start,g=o&&Da(p*l),y=[],m=[],_=h.start,S=0;_<h.end;_++){var b=void 0;if(l===1){var x=f.get(v,_);b=n.dataToPoint(x,null,m)}else y[0]=f.get(v,_),y[1]=f.get(c,_),b=n.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):d.setItemLayout(_,b.slice())}o&&d.setLayout("points",g)}}}}}}var VH={average:function(r){for(var e=0,t=0,a=0;a<r.length;a++)isNaN(r[a])||(e+=r[a],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},GH=function(r){return Math.round(r.length/2)};function PI(r){return{seriesType:r,reset:function(e,t,a){var n=e.getData(),i=e.get("sampling"),o=e.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),v=a.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(v||1),h=Math.round(s/c);if(isFinite(h)&&h>1){i==="lttb"?e.setData(n.lttbDownSample(n.mapDimension(u.dim),1/h)):i==="minmax"&&e.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/h));var d=void 0;J(i)?d=VH[i]:lt(i)&&(d=i),d&&e.setData(n.downSample(n.mapDimension(u.dim),1/h,d,GH))}}}}}function FH(r){r.registerChartView(zH),r.registerSeriesModel(_H),r.registerLayout(Zu("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),a=e.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,PI("line"))}var RI=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(t),s=i.dataToPoint(o);if(n)A(i.getAxes(),function(c,h){if(c.type==="category"&&a!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[h],y=a[h]==="x1"||a[h]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[h]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,w=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),v=i.getBaseAxis().isHorizontal()?0:1;s[v]+=u+f/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(ie);ie.registerClass(RI);const dc=RI;var HH=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return _n(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"),a=this.get("largeThreshold");return a>t&&(t=a),t},e.prototype.brushSelector=function(t,a,n){return n.rect(a.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=si(dc.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:F.color.primary,borderWidth:2}},realtimeSort:!1}),e}(dc);const WH=HH;var $H=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),UH=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="sausage",a}return e.prototype.getDefaultShape=function(){return new $H},e.prototype.buildPath=function(t,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,v=a.endAngle,c=a.clockwise,h=Math.PI*2,d=c?v-f<h:f-v<h;d||(f=v-(c?h:-h));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(v),m=Math.sin(v);d?(t.moveTo(p*o+n,g*o+i),t.arc(p*u+n,g*u+i,l,-Math.PI+f,f,!c)):t.moveTo(p*s+n,g*s+i),t.arc(n,i,s,f,v,!c),t.arc(y*u+n,m*u+i,l,v-Math.PI*2,v-Math.PI,!c),o!==0&&t.arc(n,i,o,v,f,c)},e}(It);const pc=UH;function YH(r,e){e=e||{};var t=e.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return Hv(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,v=u.cy,c=u.r,h=u.r0,d=(c+h)/2,p=u.startAngle,g=u.endAngle,y=(p+g)/2,m=t?Math.abs(c-h)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(p),x=v+c*S(p),w="left",T="top";switch(s){case"startArc":b=f+(h-l)*_(y),x=v+(h-l)*S(y),w="center",T="top";break;case"insideStartArc":b=f+(h+l)*_(y),x=v+(h+l)*S(y),w="center",T="bottom";break;case"startAngle":b=f+d*_(p)+Bf(p,l+m,!1),x=v+d*S(p)+zf(p,l+m,!1),w="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+Bf(p,-l+m,!1),x=v+d*S(p)+zf(p,-l+m,!1),w="left",T="middle";break;case"middle":b=f+d*_(y),x=v+d*S(y),w="center",T="middle";break;case"endArc":b=f+(c+l)*_(y),x=v+(c+l)*S(y),w="center",T="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),x=v+(c-l)*S(y),w="center",T="top";break;case"endAngle":b=f+d*_(g)+Bf(g,l+m,!0),x=v+d*S(g)+zf(g,l+m,!0),w="left",T="middle";break;case"insideEndAngle":b=f+d*_(g)+Bf(g,-l+m,!0),x=v+d*S(g)+zf(g,-l+m,!0),w="right",T="middle";break;default:return Hv(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=w,a.verticalAlign=T,a}}function ZH(r,e,t,a){if(Rt(a)){r.setTextConfig({rotation:a});return}else if(U(e)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/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=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Bf(r,e,t){return e*Math.sin(r)*(t?-1:1)}function zf(r,e,t){return e*Math.cos(r)*(t?1:-1)}function Ia(r,e,t){var a=r.get("borderRadius");if(a==null)return t?{cornerRadius:0}:null;U(a)||(a=[a,a,a,a]);var n=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Z(a,function(i){return oa(i,n)})}}var Xd=Math.max,qd=Math.min;function XH(r,e){var t=r.getArea&&r.getArea();if(ti(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=e.getLayout("bandWidth");a.isHorizontal()?(t.x-=n,t.width+=n*2):(t.y-=n,t.height+=n*2)}}return t}var qH=function(r){B(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,a,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,a,n):this._renderNormal(t,a,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,a){this._progressiveEls=[],this._incrementalRenderLarge(t,a)},e.prototype.eachRendered=function(t){oi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t,a,n,i){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),v;u.type==="cartesian2d"?v=f.isHorizontal():u.type==="polar"&&(v=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,h=KH(t,u);h&&this._enableRealtimeSort(h,s,n);var d=t.get("clip",!0)||h,p=XH(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,w=i&&i.type==="changeAxisOrder";function T(D){var I=Vf[u.type](s,D);if(!I)return null;var L=a4(u,v,I);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var I=s.getItemModel(D),L=Vf[u.type](s,D,I);if(L&&(y&&T(D),!(!s.hasValue(D)||!fb[u.type](L)))){var P=!1;d&&(P=ob[u.type](p,L));var k=sb[u.type](t,s,D,L,v,c,f.model,!1,g);h&&(k.forceLabelAnimation=!0),vb(k,s,D,I,L,t,v,u.type==="polar"),x?k.attr({shape:L}):h?lb(h,c,k,L,D,v,!1,!1):re(k,{shape:L},t,D),s.setItemGraphicEl(D,k),o.add(k),k.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=Vf[u.type](s,D,L);if(P){if(y){var k=void 0;b.length===0?k=T(I):(k=b[I],k.useStyle(m.getItemStyle()),u.type==="cartesian2d"?k.setShape("r",_):k.setShape("cornerRadius",_),S[D]=k);var R=Vf[u.type](s,D),N=EI(v,R,u);Nt(k,{shape:N},c,D)}var E=l.getItemGraphicEl(I);if(!s.hasValue(D)||!fb[u.type](P)){o.remove(E);return}var z=!1;d&&(z=ob[u.type](p,P),z&&o.remove(E));var V=E&&(E.type==="sector"&&g||E.type==="sausage"&&!g);if(V&&(E&&an(E,t,I),E=null),E?Ur(E):E=sb[u.type](t,s,D,P,v,c,f.model,!0,g),h&&(E.forceLabelAnimation=!0),w){var H=E.getTextContent();if(H){var G=Ws(H);G.prevValue!=null&&(G.prevValue=G.value)}}else vb(E,s,D,L,P,t,v,u.type==="polar");x?E.attr({shape:P}):h?lb(h,c,E,P,D,v,!0,w):Nt(E,{shape:P},t,D,null),s.setItemGraphicEl(D,E),E.ignore=z,o.add(E)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&an(I,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new ft);C.removeAll();for(var M=0;M<S.length;++M)C.add(S[M]);o.add(C),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,a,n){this._clear(),hb(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,a){this._removeBackground(),hb(a,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var a=t.get("clip",!0)&&Yu(t.coordinateSystem,!1,t),n=this.group;a?n.setClipPath(a):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,a,n){var i=this;if(a.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,t,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,a,n){var i=[];return t.each(t.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:Z(i,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,a,n){for(var i=n.scale,o=t.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,i.getRawOrdinalNumber(l)),v=f<0?Number.MIN_VALUE:a(t.indexOfRawIndex(f));if(v>s)return!0;s=v}return!1},e.prototype._isOrderDifferentInView=function(t,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,a,n,i){if(this._isOrderChangedWithinSameData(t,a,n)){var o=this._dataSort(t,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,a,n){var i=a.baseAxis,o=this._dataSort(t,i,function(s){return t.get(t.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},e.prototype.remove=function(t,a){this._clear(this._model),this._removeOnRenderedListener(a)},e.prototype.dispose=function(t,a){this._removeOnRenderedListener(a)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var a=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){an(i,t,yt(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jt),ob={cartesian2d:function(r,e){var t=e.width<0?-1:1,a=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height);var n=r.x+r.width,i=r.y+r.height,o=Xd(e.x,r.x),s=qd(e.x+e.width,n),l=Xd(e.y,r.y),u=qd(e.y+e.height,i),f=s<o,v=u<l;return e.x=f&&o>n?s:o,e.y=v&&l>i?u:l,e.width=f?0:s-o,e.height=v?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),a<0&&(e.y+=e.height,e.height=-e.height),f||v},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}var n=qd(e.r,r.r),i=Xd(e.r0,r.r0);e.r=n,e.r0=i;var o=n-i<0;if(t<0){var a=e.r;e.r=e.r0,e.r0=a}return o}},sb={cartesian2d:function(r,e,t,a,n,i,o,s,l){var u=new Dt({shape:$({},a),z2:1});if(u.__dataIndex=t,u.name="item",i){var f=u.shape,v=n?"height":"width";f[v]=0}return u},polar:function(r,e,t,a,n,i,o,s,l){var u=!n&&l?pc:sr,f=new u({shape:a,z2:1});f.name="item";var v=kI(n);if(f.calculateTextPosition=YH(v,{isRoundCap:u===pc}),i){var c=f.shape,h=n?"r":"endAngle",d={};c[h]=n?a.r0:a.startAngle,d[h]=a[h],(s?Nt:re)(f,{shape:d},i)}return f}};function KH(r,e){var t=r.get("realtimeSort",!0),a=e.getBaseAxis();if(t&&a.type==="category"&&e.type==="cartesian2d")return{baseAxis:a,otherAxis:e.getOtherAxis(a)}}function lb(r,e,t,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?Nt:re)(t,{shape:l},e,n,null);var f=e?r.baseAxis.model:null;(o?Nt:re)(t,{shape:u},f,n)}function ub(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var jH=["x","y","width","height"],JH=["cx","cy","r","startAngle","endAngle"],fb={cartesian2d:function(r){return!ub(r,jH)},polar:function(r){return!ub(r,JH)}},Vf={cartesian2d:function(r,e,t){var a=r.getItemLayout(e);if(!a)return null;var n=t?t4(t,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,e,t){var a=r.getItemLayout(e);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function QH(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function kI(r){return function(e){var t=e?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+t;default:return a}}}(r)}function vb(r,e,t,a,n,i,o,s){var l=e.getItemVisual(t,"style");if(s){if(!i.get("roundCap")){var f=r.shape,v=Ia(a.getModel("itemStyle"),f,!0);$(f,v),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=a.getShallow("cursor");c&&r.attr("cursor",c);var h=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=Le(a);Ee(r,d,{labelFetcher:i,labelDataIndex:t,defaultText:Is(i.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var g=a.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,ZH(r,g==="outside"?h:g,kI(o),a.get(["label","rotate"]))}BD(p,d,i.getRawValue(t),function(m){return wI(e,m)});var y=a.getModel(["emphasis"]);ae(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),De(r,a),QH(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function t4(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),i=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(a,n,i)}var e4=function(){function r(){}return r}(),cb=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeBar",a}return e.prototype.getDefaultShape=function(){return new e4},e.prototype.buildPath=function(t,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(It);function hb(r,e,t,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new cb({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var v=new cb({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=i,v.largeDataIndices=o,v.barWidth=s,e.add(v),v.useStyle(n.getVisual("style")),v.style.stroke=null,yt(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",db),v.on("mousemove",db)),t&&t.push(v)}var db=p0(function(r){var e=this,t=r4(e,r.offsetX,r.offsetY);yt(e).dataIndex=t>=0?t:null},30,!1);function r4(r,e,t){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,v=i.length/3;f<v;f++){var c=f*3;if(l[a]=u,l[n]=i[c+2],s[a]=i[c+a],s[n]=i[c+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function EI(r,e,t){if(ti(t,"cartesian2d")){var a=e,n=t.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=t.getArea(),i=e;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function a4(r,e,t){var a=r.type==="polar"?sr:Dt;return new a({shape:EI(e,t,r),silent:!0,z2:0})}const n4=qH;function i4(r){r.registerChartView(n4),r.registerSeriesModel(WH),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(E2,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O2("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,PI("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var a=e.componentType||"series";t.eachComponent({mainType:a,query:e},function(n){e.sortInfo&&n.axis.setCategorySortInfo(e.sortInfo)})})}var pb=Math.PI*2,Gf=Math.PI/180;function o4(r,e,t){e.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=nL(a,t),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=o.viewRect,c=-a.get("startAngle")*Gf,h=a.get("endAngle"),d=a.get("padAngle")*Gf;h=h==="auto"?c-pb:-h*Gf;var p=a.get("minAngle")*Gf,g=p+d,y=0;n.each(i,function(N){!isNaN(N)&&y++});var m=n.getSum(i),_=Math.PI/(m||y)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),w=n.getDataExtent(i);w[0]=0;var T=S?1:-1,C=[c,h],M=T*d/2;jc(C,!S),c=C[0],h=C[1];var D=OI(a);D.startAngle=c,D.endAngle=h,D.clockwise=S,D.cx=s,D.cy=l,D.r=u,D.r0=f;var I=Math.abs(h-c),L=I,P=0,k=c;if(n.setLayout({viewRect:v,r:u}),n.each(i,function(N,E){var z;if(isNaN(N)){n.setItemLayout(E,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?z=m===0&&x?_:N*_:z=I/y,z<g?(z=g,L-=g):P+=N;var V=k+T*z,H=0,G=0;d>z?(H=k+T*z/2,G=H):(H=k+M,G=V-M),n.setItemLayout(E,{angle:z,startAngle:H,endAngle:G,clockwise:S,cx:s,cy:l,r0:f,r:b?Wt(N,w,[f,u]):u}),k=V}),L<pb&&y)if(L<=.001){var R=I/y;n.each(i,function(N,E){if(!isNaN(N)){var z=n.getItemLayout(E);z.angle=R;var V=0,H=0;R<d?(V=c+T*(E+1/2)*R,H=V):(V=c+T*E*R+M,H=c+T*(E+1)*R-M),z.startAngle=V,z.endAngle=H}})}else _=L/P,k=c,n.each(i,function(N,E){if(!isNaN(N)){var z=n.getItemLayout(E),V=z.angle===g?g:N*_,H=0,G=0;V<d?(H=k+T*V/2,G=H):(H=k+M,G=k+T*V-M),z.startAngle=H,z.endAngle=G,k+=T*V}})})}var OI=Lt();function Ks(r){return{seriesType:r,reset:function(e,t){var a=t.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=e.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var s4=Math.PI/180;function gb(r,e,t,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-t),b=a+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/y)*x)),T=e+(w+_.len2)*n,C=T-_.label.x,M=_.targetTextWidth-C*n;NI(_,M,!0),_.label.x=T}}function v(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>t?y:g,b=Math.abs(_.label.y-t);if(b>=S.maxY){var x=_.label.x-e-_.len2*n,w=a+_.len,T=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=T,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var c=r.length,h=0;h<c;h++)if(r[h].position==="outer"&&r[h].labelAlignTo==="labelLine"){var d=r[h].label.x-u;r[h].linePoints[1][0]+=d,r[h].label.x=u}Sy(r,1,l,l+o)&&v(r)}function l4(r,e,t,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,v=-Number.MAX_VALUE,c=0;c<r.length;c++){var h=r[c].label;Kd(r[c])||(h.x<e?(f=Math.min(f,h.x),l.push(r[c])):(v=Math.max(v,h.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Kd(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var h=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?h.x<e?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?h.x<e?g=f-o-d.bleedMargin:g=o+n-v-d.bleedMargin:h.x<e?g=h.x-o-d.bleedMargin:g=o+n-h.x-d.bleedMargin,d.targetTextWidth=g,NI(d,g,!1)}}gb(u,e,t,a,1,n,i,o,s,v),gb(l,e,t,a,-1,n,i,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Kd(d)&&d.linePoints){var h=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=h.style.padding,_=m?m[1]+m[3]:0,S=h.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];y?h.x<e?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(h.x<e?p[2][0]=h.x+d.labelDistance:p[2][0]=h.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=h.y}}}function NI(r,e,t){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",e-l);var v=a.getBoundingRect();a.setStyle("width",Math.ceil(v.width)),a.setStyle("backgroundColor",o)}else{var c=e-l,h=e<f?c:t?c>r.unconstrainedWidth?null:c:null;a.setStyle("width",h)}BI(i,a)}}}function BI(r,e){yb.rect=r,oI(yb,e,u4)}var u4={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},yb={};function Kd(r){return r.position==="center"}function f4(r){var e=r.getData(),t=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*s4,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,v=s.y,c=s.height;function h(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,C=w.getTextContent(),M=w.getTextGuideLine(),D=e.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),k=I.get("alignTo"),R=j(I.get("edgeDistance"),u),N=I.get("bleedMargin");N==null&&(N=Math.min(u,c)>200?10:2);var E=D.getModel("labelLine"),z=E.get("length");z=j(z,u);var V=E.get("length2");if(V=j(V,u),Math.abs(T.endAngle-T.startAngle)<o){A(C.states,h),C.ignore=!0,M&&(A(M.states,h),M.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,G=Math.cos(H),Y=Math.sin(H),X,ot,_t,At;a=T.cx,n=T.cy;var st=L==="inside"||L==="inner";if(L==="center")X=T.cx,ot=T.cy,At="center";else{var et=(st?(T.r+T.r0)/2*G:T.r*G)+a,it=(st?(T.r+T.r0)/2*Y:T.r*Y)+n;if(X=et+G*3,ot=it+Y*3,!st){var tt=et+G*(z+l-T.r),O=it+Y*(z+l-T.r),W=tt+(G<0?-1:1)*V,q=O;k==="edge"?X=G<0?f+R:f+u-R:X=W+(G<0?-P:P),ot=q,_t=[[et,it],[tt,O],[W,q]]}At=st?"center":k==="edge"?G>0?"right":"left":G>0?"left":"right"}var K=Math.PI,pt=0,St=I.get("rotate");if(Rt(St))pt=St*(K/180);else if(L==="center")pt=0;else if(St==="radial"||St===!0){var Tt=G<0?-H+K:-H;pt=Tt}else if(St==="tangential"&&L!=="outside"&&L!=="outer"){var Et=Math.atan2(G,Y);Et<0&&(Et=K*2+Et);var Qt=Y>0;Qt&&(Et=K+Et),pt=Et-K}if(i=!!pt,C.x=X,C.y=ot,C.rotation=pt,C.setStyle({verticalAlign:"middle"}),st){C.setStyle({align:At});var He=C.states.select;He&&(He.x+=C.x,He.y+=C.y)}else{var Yt=new gt(0,0,0,0);BI(Yt,C),t.push({label:C,labelLine:M,position:L,len:z,len2:V,minTurnAngle:E.get("minTurnAngle"),maxSurfaceAngle:E.get("maxSurfaceAngle"),surfaceNormal:new ct(G,Y),linePoints:_t,textAlign:At,labelDistance:P,labelAlignTo:k,edgeDistance:R,bleedMargin:N,rect:Yt,unconstrainedWidth:Yt.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:st})}}),!i&&r.get("avoidLabelOverlap")&&l4(t,a,n,l,u,c,f,v);for(var p=0;p<t.length;p++){var g=t[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(A(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(A(m.states,h),m.ignore=!0):(aI(b,g.minTurnAngle),m3(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new ct(b[0][0],b[0][1])})}}}var v4=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;i.z2=2;var o=new Ot;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.hostModel,l=t.getItemModel(a),u=l.getModel("emphasis"),f=t.getItemLayout(a),v=$(Ia(l.getModel("itemStyle"),f,!0),f);if(isNaN(v.startAngle)){o.setShape(v);return}if(i){o.setShape(v);var c=s.getShallow("animationType");s.ecModel.ssr?(re(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=v.cx,o.originY=v.cy):c==="scale"?(o.shape.r=f.r0,re(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),re(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,Nt(o,{shape:{endAngle:f.endAngle}},s,a))}else Ur(o),Nt(o,{shape:v},s,a);o.useStyle(t.getItemVisual(a,"style")),De(o,l);var h=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(h)*d,g=Math.sin(h)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,a),o.ensureState("emphasis").shape=$({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ia(u.getModel("itemStyle"),f)),$(o.ensureState("select"),{x:p,y:g,shape:Ia(l.getModel(["select","itemStyle"]),f)}),$(o.ensureState("blur"),{shape:Ia(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&$(m.ensureState("select"),{x:p,y:g}),$(_.ensureState("select"),{x:p,y:g}),ae(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Ee(i,Le(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(n,"normal")||a.getName(n)});var v=i.getTextContent();i.setTextConfig({position:null,rotation:null}),v.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new tr,this.setTextGuideLine(h)),D0(this,L0(o),{stroke:u,opacity:wr(s.get(["lineStyle","opacity"]),f,1)})}},e}(sr),c4=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n,i){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),v=1;isNaN(f&&f.startAngle)&&v<o.count();++v)f=o.getItemLayout(v);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=OI(t),h=new sr({shape:ut(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(d){var p=new v4(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,u),g.off("click"),l.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);an(p,t,d)}).execute(),f4(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="pie",e}(Jt);const h4=c4;function js(r,e,t){e=U(e)&&{coordDimensions:e}||$({encodeDefine:r.getEncode()},e);var a=r.getSource(),n=Hu(a,e).dimensions,i=new ir(n,r);return i.initData(a,t),i}var d4=function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var a=this._getDataWithEncodedVisual();return a.getItemVisual(e,t)},r}();const Js=d4;var p4=Lt(),zI=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Js(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return js(this,{coordDimensions:["value"],encodeDefaulter:xt(o0,this)})},e.prototype.getDataParams=function(t){var a=this.getData(),n=p4(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=tN(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=i[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){lo(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(ie);Jz({fullType:zI.type,getCoord2:function(r){return r.getShallow("center")}});const g4=zI;function y4(r){return{seriesType:r,reset:function(e,t){var a=e.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(Rt(o)&&!isNaN(o)&&o<0)})}}}function m4(r){r.registerChartView(h4),r.registerSeriesModel(g4),jL("pie",r.registerAction),r.registerLayout(xt(o4,"pie")),r.registerProcessor(Ks("pie")),r.registerProcessor(y4("pie"))}var _4=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return _n(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,a,n){return n.point(a.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","matrix"],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:F.color.primary}},universalTransition:{divideShape:"clone"}},e}(ie);const S4=_4;var VI=4,x4=function(){function r(){}return r}(),b4=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.getDefaultShape=function(){return new x4},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,a){var n=a.points,i=a.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&i[0]<VI,f=this.softClipShape,v;if(u){this._ctx=l;return}for(this._ctx=null,v=this._off;v<n.length;){var c=n[v++],h=n[v++];isNaN(c)||isNaN(h)||f&&!f.contain(c,h)||(s.x=c-i[0]/2,s.y=h-i[1]/2,s.width=i[0],s.height=i[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=v,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,a=t.points,n=t.size,i=this._ctx,o=this.softClipShape,s;if(i){for(s=this._off;s<a.length;){var l=a[s++],u=a[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||i.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,a){for(var n=this.shape,i=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=i.length/2-1;u>=0;u--){var f=u*2,v=i[f]-s/2,c=i[f+1]-l/2;if(t>=v&&a>=c&&t<=v+s&&a<=c+l)return u}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.points,i=a.size,o=i[0],s=i[1],l=1/0,u=1/0,f=-1/0,v=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];l=Math.min(h,l),f=Math.max(h,f),u=Math.min(d,u),v=Math.max(d,v)}t=this._rect=new gt(l-o/2,u-s/2,f-l+o,v-u+s)}return t},e}(It),w4=function(){function r(){this.group=new ft}return r.prototype.updateData=function(e,t){this._clear();var a=this._create();a.setShape({points:e.getLayout("points")}),this._setCommon(a,e,t)},r.prototype.updateLayout=function(e){var t=e.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,i=a.startIndex*4*2;t=new Float32Array(t.buffer,i,n)}a.setShape("points",t),a.reset()})},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,a){var n=this._newAdded[0],i=t.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+i.length);l.set(o),l.set(i,s),n.endIndex=e.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:i}),this._setCommon(u,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new b4({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;a=a||{};var i=t.getVisual("symbolSize");e.setShape("size",i instanceof Array?i:[i,i]),e.softClipShape=a.clipShape||null,e.symbolProxy=be(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<VI;e.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=yt(e);u.seriesIndex=n.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var v=e.hoverDataIdx;v>=0&&(u.dataIndex=v+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const T4=w4;var C4=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateSymbolDraw(i,t);o.incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._symbolDraw.incrementalUpdate(t,a.getData(),{clipShape:this._getClipShape(a)}),this._finished=t.end===a.getData().count()},e.prototype.updateTransform=function(t,a,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var o=Zu("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){if(t.get("clip",!0)){var a=t.coordinateSystem;return a&&a.getArea&&a.getArea(.1)}},e.prototype._updateSymbolDraw=function(t,a){var n=this._symbolDraw,i=a.pipelineContext,o=i.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new T4:new Uu,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Jt);const A4=C4;var GI={left:0,right:0,top:0,bottom:0},gc=["25%","25%"],M4=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,a){var n=wo(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&Va(t.outerBounds,n)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Va(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:GI,outerBoundsContain:"all",outerBoundsClampWidth:gc[0],outerBoundsClampHeight:gc[1],backgroundColor:F.color.transparent,borderWidth:1,borderColor:F.color.neutral30},e}(kt);const D4=M4;var Cy=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",fe).models[0]},e.type="cartesian2dAxis",e}(kt);we(Cy,Wu);var FI={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:F.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:F.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:F.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[F.color.backgroundTint,F.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:F.color.neutral00,borderColor:F.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},L4=wt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},FI),O0=wt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:F.color.axisMinorSplitLine,width:1}}},FI),I4=wt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},O0),P4=ht({logBase:10},O0);const HI={category:L4,value:O0,time:I4,log:P4};var R4={value:1,category:1,time:1,log:1},Ay=null;function k4(r){Ay||(Ay=r)}function Xu(){return Ay}function Ps(r,e,t,a){A(R4,function(n,i){var o=wt(wt({},HI[i],!0),a,!0),s=function(l){B(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,v){var c=du(this),h=c?wo(f):{},d=v.getTheme();wt(f,d.get(i+"Axis")),wt(f,this.getDefaultOption()),f.type=mb(f),c&&Va(f,h,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Su.createByAxisModel(this))},u.prototype.getCategories=function(f){var v=this.option;if(v.type==="category")return f?v.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var v=Xu();return v?v.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+i,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",mb)}function mb(r){return r.type||(r.data?"category":"value")}var E4=function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return Z(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),$t(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r}();const O4=E4;var My=["x","y"];function _b(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var N4=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=My,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!_b(t)||!_b(a))){var n=t.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,v=(s[1]-o[1])/u,c=o[0]-n[0]*f,h=o[1]-i[0]*v,d=this._transform=[f,0,0,v,c,h];this._invTransform=ia([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(t[0]))&&n.contain(n.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,a){var n=this.dataToPoint(t),i=this.dataToPoint(a),o=this.getArea(),s=new gt(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,a,n){n=n||[];var i=t[0],o=t[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return ge(n,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},e.prototype.clampData=function(t,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(t[0]),u=i.parse(t[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},e.prototype.pointToData=function(t,a,n){if(n=n||[],this._invTransform)return ge(n,t,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),a),n[1]=o.coordToData(o.toLocalCoord(t[1]),a),n},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-t,o=Math.min(n[0],n[1])-t,s=Math.max(a[0],a[1])-i+t,l=Math.max(n[0],n[1])-o+t;return new gt(i,o,s,l)},e}(O4),B4=function(r){B(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),t&&a[0]>a[1]&&a.reverse(),a},e.prototype.pointToData=function(t,a){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),a)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(fa);const WI=B4;var yh="expandAxisBreak",$I="collapseAxisBreak",UI="toggleAxisBreak",N0="axisbreakchanged",z4={type:yh,event:N0,update:"update",refineEvent:B0},V4={type:$I,event:N0,update:"update",refineEvent:B0},G4={type:UI,event:N0,update:"update",refineEvent:B0};function B0(r,e,t,a){var n=[];return A(r,function(i){n=n.concat(i.eventBreaks)}),{eventContent:{breaks:n}}}function F4(r){r.registerAction(z4,e),r.registerAction(V4,e),r.registerAction(G4,e);function e(t,a){var n=[],i=ms(a,t);function o(s,l){A(i[s],function(u){var f=u.updateAxisBreaks(t);A(f.breaks,function(v){var c;n.push(ht((c={},c[l]=u.componentIndex,c),v))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}}var Gn=Math.PI,H4=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],W4=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Rs=Lt(),YI=Lt(),ZI=function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,a=e.componentIndex,n=this.recordMap,i=n[t]||(n[t]=[]);return i[a]||(i[a]={ready:{}})},r}();function $4(r,e,t,a){var n=t.axis,i=e.ensureRecord(t),o=[],s,l=z0(r.axisName)&&Ls(r.nameLocation);A(a,function(d){var p=Ga(d);if(!(!p||p.label.ignore)){o.push(p);var g=i.transGroup;l&&(g.transform?ia(pl,g.transform):Wc(pl),p.transform&&Pa(pl,pl,p.transform),gt.copy(Ff,p.localRect),Ff.applyTransform(pl),s?s.union(Ff):gt.copy(s=new gt(0,0,0,0),Ff))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var v=n.getExtent(),c=Math.min(v[0],v[1]),h=Math.max(v[0],v[1])-c;s.union(new gt(c,0,h,1))}i.stOccupiedRect=s,i.labelInfoList=o}var pl=Ge(),Ff=new gt(0,0,0,0),XI=function(r,e,t,a,n,i){if(Ls(r.nameLocation)){var o=i.stOccupiedRect;o&&qI(x3({},o,i.transGroup.transform),a,n)}else KI(i.labelInfoList,i.dirVec,a,n)};function qI(r,e,t){var a=new ct;ph(r,e,a,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&my(e,a)}function KI(r,e,t,a){for(var n=ct.dot(a,e)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||qI(s,t,a)}}var oo=function(){function r(e,t,a,n){this.group=new ft,this._axisModel=e,this._api=t,this._local={},this._shared=n||new ZI(XI),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,a=t.getDefaultOption?t.getDefaultOption():{},n=nt(e.axisName,t.get("name")),i=t.get("nameMoveOverlap");(i==null||i==="auto")&&(i=nt(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:nt(e.nameDirection,1),tickDirection:nt(e.tickDirection,1),labelDirection:nt(e.labelDirection,1),labelOffset:nt(e.labelOffset,0),silent:nt(e.silent,!0),axisName:n,nameLocation:wr(t.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:z0(n)&&i,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new ft({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new ct(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var a=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),A(U4,function(n){e[n]&&Y4[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,t||{})}),this},r.innerTextLayout=function(e,t,a){var n=MM(t-e),i,o;return su(n)?(o=a>0?"top":"bottom",i="center"):su(n-Gn)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Gn?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r}(),U4=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Y4={axisLine:function(r,e,t,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],v=[l[1],0],c=f[0]>v[0];u&&(ge(f,f,u),ge(v,v,u));var h=$({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Xu().buildAxisBreakLine(a,n,i,d);else{var p=new Me($({shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]}},d));Cs(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var g=a.get(["axisLine","symbol"]);if(g!=null){var y=a.get(["axisLine","symbolSize"]);J(g)&&(g=[g,g]),(J(y)||Rt(y))&&(y=[y,y]);var m=Co(a.get(["axisLine","symbolOffset"])||0,y),_=y[0],S=y[1];A([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-v[0])*(f[0]-v[0])+(f[1]-v[1])*(f[1]-v[1]))}],function(b,x){if(g[x]!=="none"&&g[x]!=null){var w=be(g[x],-_/2,-S/2,_,S,h.stroke,!0),T=b.r+b.offset,C=c?v:f;w.attr({rotation:b.rotate,x:C[0]+T*Math.cos(r.rotation),y:C[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(w)}})}}},axisTickLabelEstimate:function(r,e,t,a,n,i,o,s){var l=xb(e,n,s);l&&Sb(r,e,t,a,n,i,o,sa.estimate)},axisTickLabelDetermine:function(r,e,t,a,n,i,o,s){var l=xb(e,n,s);l&&Sb(r,e,t,a,n,i,o,sa.determine);var u=K4(r,n,i,a);q4(r,e.labelLayoutList,u),j4(r,n,i,a,r.tickDirection)},axisName:function(r,e,t,a,n,i,o,s){var l=t.ensureRecord(a);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(z0(u)){var f=r.nameLocation,v=r.nameDirection,c=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,g=new ct(0,0),y=new ct(0,0);f==="start"?(g.x=d[0]-p*h,y.x=-p):f==="end"?(g.x=d[1]+p*h,y.x=p):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+v*h,y.y=v);var m=Ge();y.transform(ni(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Gn/180);var S,b;Ls(f)?S=oo.innerTextLayout(r.rotation,_??r.rotation,v):(S=Z4(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=c.getFont(),w=a.get("nameTruncate",!0)||{},T=w.ellipsis,C=Ue(r.raw.nameTruncateMaxWidth,w.maxWidth,b),M=s.nameMarginLevel||0,D=new Ot({x:g.x,y:g.y,rotation:S.rotation,silent:oo.isLabelSilent(a),style:jt(c,{text:u,font:x,overflow:"truncate",width:C,ellipsis:T,fill:c.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:c.get("align")||S.textAlign,verticalAlign:c.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(mn({el:D,componentModel:a,itemName:u}),D.__fullText=u,D.anid="name",a.get("triggerEvent")){var I=oo.makeAxisEventDataBase(a);I.targetType="axisName",I.name=u,yt(D).eventData=I}i.add(D),D.updateTransform(),e.nameEl=D;var L=l.nameLayout=Ga({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:Ls(f)?H4[M]:W4[M]});if(l.nameLocation=f,n.add(D),D.decomposeTransform(),r.shouldNameMoveOverlap&&L){var P=t.ensureRecord(a);t.resolveAxisNameOverlap(r,t,a,L,y,P)}}}};function Sb(r,e,t,a,n,i,o,s){JI(e)||J4(r,e,n,s,a,o);var l=e.labelLayoutList;Q4(r,a,l,i),rW(a,r.rotation,l);var u=r.optionHideOverlap;X4(a,l,u),u&&sI($t(l,function(f){return f&&!f.label.ignore})),$4(r,t,a,l)}function Z4(r,e,t,a){var n=MM(t-r),i,o,s=a[0]>a[1],l=e==="start"&&!s||e!=="start"&&s;return su(n-Gn/2)?(o=l?"bottom":"top",i="center"):su(n-Gn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Gn*1.5&&n>Gn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function X4(r,e,t){if($2(r.axis))return;function a(s,l,u){var f=Ga(e[l]),v=Ga(e[u]);if(!(!f||!v)){if(s===!1||f.suggestIgnore){Vl(f.label);return}if(v.suggestIgnore){Vl(v.label);return}var c=.1;if(!t){var h=[0,0,0,0];f=_y({marginForce:h},f),v=_y({marginForce:h},v)}ph(f,v,null,{touchThreshold:c})&&Vl(s?v.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=e.length;a(n,0,1),a(i,o-1,o-2)}function q4(r,e,t){r.showMinorTicks||A(e,function(a){if(a&&a.label.ignore)for(var n=0;n<t.length;n++){var i=t[n],o=YI(i),s=Rs(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Vl(i);return}}})}function Vl(r){r&&(r.ignore=!0)}function jI(r,e,t,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ge(o,o,e),ge(s,s,e));var f=new Me({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Cs(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var v=YI(f);v.onBand=!!r[l].onBand,v.tickValue=r[l].tickValue}return i}function K4(r,e,t,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=jI(u,t.transform,l,ht(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<f.length;v++)e.add(f[v]);return f}function j4(r,e,t,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ht(l.getLineStyle(),ht(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),v=0;v<s.length;v++)for(var c=jI(s[v],t.transform,u,f,"minorticks_"+v),h=0;h<c.length;h++)e.add(c[h])}}function xb(r,e,t){if(JI(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(t.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(e.remove(r.labelGroup),Dy(r,null,null,null))}return!0}function J4(r,e,t,a,n,i){var o=n.axis,s=Ue(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new ft;t.add(l);var u=lc(a);if(!s||o.scale.isBlank()){Dy(e,[],l,u);return}var f=n.getModel("axisLabel"),v=o.getViewLabels(u),c=(Ue(r.raw.labelRotate,f.get("rotate"))||0)*Gn/180,h=oo.innerTextLayout(r.rotation,c,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],g=n.get("triggerEvent"),y=1/0,m=-1/0;A(v,function(S,b){var x,w=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,C=S.rawLabel,M=f;if(d&&d[w]){var D=d[w];dt(D)&&D.textStyle&&(M=new Bt(D.textStyle,f,n.ecModel))}var I=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=M.getShallow("align",!0)||h.textAlign,P=nt(M.getShallow("alignMinLabel",!0),L),k=nt(M.getShallow("alignMaxLabel",!0),L),R=M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||h.textVerticalAlign,N=nt(M.getShallow("verticalAlignMinLabel",!0),R),E=nt(M.getShallow("verticalAlignMaxLabel",!0),R),z=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);y=Math.min(y,z),m=Math.max(m,z);var V=new Ot({x:0,y:0,rotation:0,silent:oo.isLabelSilent(n),z2:z,style:jt(M,{text:T,align:b===0?P:b===v.length-1?k:L,verticalAlign:b===0?N:b===v.length-1?E:R,fill:lt(I)?I(o.type==="category"?C:o.type==="value"?w+"":w,b):I})});V.anid="label_"+w;var H=Rs(V);if(H.break=S.break,H.tickValue=w,H.layoutRotation=h.rotation,mn({el:V,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:C,tickIndex:b}}),g){var G=oo.makeAxisEventDataBase(n);G.targetType="axisLabel",G.value=C,G.tickIndex=b,S.break&&(G.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(G.dataIndex=w),yt(V).eventData=G,S.break&&eW(n,i,V,S.break)}p.push(V),l.add(V)});var _=Z(p,function(S){return{label:S,priority:Rs(S).break?S.z2+(m-y+1):S.z2,defaultAttr:{ignore:S.ignore}}});Dy(e,_,l,u)}function JI(r){return!!r.labelLayoutList}function Dy(r,e,t,a){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=a}function Q4(r,e,t,a){var n=e.get(["axisLabel","margin"]);A(t,function(i,o){var s=Ga(i);if(s){var l=s.label,u=Rs(l);s.suggestIgnore=l.ignore,l.ignore=!1,Fv(Xa,tW),Xa.x=e.axis.dataToCoord(u.tickValue),Xa.y=r.labelOffset+r.labelDirection*n,Xa.rotation=u.layoutRotation,a.add(Xa),Xa.updateTransform(),a.remove(Xa),Xa.decomposeTransform(),Fv(l,Xa),l.markRedraw(),cc(s,!0),Ga(s)}})}var Xa=new Dt,tW=new Dt;function z0(r){return!!r}function eW(r,e,t,a){t.on("click",function(n){var i={type:yh,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(i)})}function rW(r,e,t){var a=_e();if(a){var n=a.retrieveAxisBreakPairs(t,function(o){return o&&Rs(o.label).break},!0),i=r.get(["breakLabelLayout","moveOverlap"],!0);(i===!0||i==="auto")&&A(n,function(o){Xu().adjustBreakLabelPair(r.axis.inverse,e,[Ga(t[o[0]]),Ga(t[o[1]])])})}}const dn=oo;function yc(r,e,t){t=t||{};var a=e.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},v=e.get("offset")||0,c=l==="x"?[u[2]-v,u[3]+v]:[u[0]-v,u[1]+v];if(i){var h=i.toGlobalCoord(i.dataToCoord(0));c[f.onZero]=Math.max(Math.min(h,c[1]),c[0])}n.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ue(t.labelInside,e.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=e.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function aW(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function bb(r){var e={xAxisModel:null,yAxisModel:null};return A(e,function(t,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,fe).models[0];e[a]=i}),e}function nW(r,e,t,a,n,i){for(var o=yc(r,t),s=!1,l=!1,u=0;u<e.length;u++)hy(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new dn(t,a,o,n)}function iW(r,e,t){var a=yc(e,t);r.updateCfg(a)}function QI(r,e,t){var a=Qn.prototype,n=a.getTicks.call(t),i=a.getTicks.call(t,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(t),l=W2(r,e),u=l.extent,f=l.fixMin,v=l.fixMax;r.type==="log"&&(u=dy(r.base,u,!0)),r.setBreaksFromOption(U2(e)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:v});var c=a.getExtent.call(r);f&&(u[0]=c[0]),v&&(u[1]=c[1]);var h=a.getInterval.call(r),d=u[0],p=u[1];if(f&&v)h=(p-d)/o;else if(f)for(p=u[0]+h*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)h=Od(h),p=u[0]+h*o;else if(v)for(d=u[1]-h*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)h=Od(h),d=u[1]-h*o;else{var g=r.getTicks().length-1;g>o&&(h=Od(h));var y=h*o;p=Math.ceil(u[1]/h)*h,d=me(p-y),d<0&&u[0]>=0?(d=0,p=me(y)):p>0&&u[1]<=0&&(p=0,d=-me(y))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+h*m,p+h*_),a.setInterval.call(r,h),(m||_)&&a.setNiceExtent.call(r,d+h,p-h)}var wb=[[3,1],[0,2]],oW=function(){function r(e,t,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=My,this._initCartesian(e,t,a),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var a=this._axesMap;this._updateScale(e,this.model);function n(o){var s,l=Pt(o),u=l.length;if(u){for(var f=[],v=u-1;v>=0;v--){var c=+l[v],h=o[c],d=h.model,p=h.scale;hy(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(h):(Ds(p,d),hy(p)&&(s=h))}f.length&&(s||(s=f.pop(),Ds(s.scale,s.model)),A(f,function(g){QI(g.scale,g.model,s.scale)}))}}n(a.x),n(a.y);var i={};A(a.x,function(o){Tb(a,"y",o,i)}),A(a.y,function(o){Tb(a,"x",o,i)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,a){var n=Ie(e,t),i=this._rect=ne(e.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(Ly(o,i),!a){var u=uW(i,s,o,l,t),f=void 0;if(l)Iy?(Iy(this._axesList,i),Ly(o,i)):f=Mb(i.clone(),"axisLabel",null,i,o,u,n);else{var v=fW(e,i,n),c=v.outerBoundsRect,h=v.parsedOuterBoundsContain,d=v.outerBoundsClamp;c&&(f=Mb(c,h,d,i,o,u,n))}tP(i,o,sa.determine,null,f,n)}A(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(e,t){var a=this._axesMap[e];if(a!=null)return a[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var a="x"+e+"y"+t;return this._coordsMap[a]}dt(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===e||i[n].getAxis("y").index===t)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(e,t,a){var n=this._findConvertTarget(t);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,a=e.xAxisModel||t&&t.getReferringComponents("xAxis",fe).models[0],n=e.yAxisModel||t&&t.getReferringComponents("yAxis",fe).models[0],i=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,bt(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,a){var n=this,i=this,o={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,A(s.x,function(f,v){A(s.y,function(c,h){var d="x"+v+"y"+h,p=new N4(d);p.master=n,p.model=e,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function u(f){return function(v,c){if(jd(v,e)){var h=v.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=new WI(f,dh(v),[0,0],v.get("type"),h),p=d.type==="category";d.onBand=p&&v.get("boundaryGap"),d.inverse=v.get("inverse"),v.axis=d,d.model=v,d.grid=i,d.index=c,i._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(e,t){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),e.eachSeries(function(n){if(aW(n)){var i=bb(n),o=i.xAxisModel,s=i.yAxisModel;if(!jd(o,t)||!jd(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),v=l.getAxis("y");a(u,f),a(u,v)}},this);function a(n,i){A(sc(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],a=[];return A(this.getCartesians(),function(n){var i=e!=null&&e!=="auto"?n.getAxis(e):n.getBaseAxis(),o=n.getOtherAxis(i);bt(t,i)<0&&t.push(i),bt(a,o)<0&&a.push(o)}),{baseAxes:t,otherAxes:a}},r.create=function(e,t){var a=[];return e.eachComponent("grid",function(n,i){var o=new r(n,e,t);o.name="grid_"+i,o.resize(n,t,!0),n.coordinateSystem=o,a.push(o)}),e.eachSeries(function(n){Vu({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=bb(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=My,r}();function jd(r,e){return r.getCoordSysModel()===e}function Tb(r,e,t,a){t.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[e],i,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Cb(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Cb(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(v){return v.dim+"_"+v.index}}function Cb(r){return r&&r.type!=="category"&&r.type!=="time"&&$F(r)}function sW(r,e){var t=r.getExtent(),a=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+e}:function(n){return a-n+e},r.toLocalCoord=r.dim==="x"?function(n){return n-e}:function(n){return a-n+e}}function Ly(r,e){A(r.x,function(t){return Ab(t,e.x,e.width)}),A(r.y,function(t){return Ab(t,e.y,e.height)})}function Ab(r,e,t){var a=[0,t],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),sW(r,e)}var Iy;function lW(r){Iy=r}function Mb(r,e,t,a,n,i,o){tP(a,n,sa.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=mo(s,function(c){return c>0})==null;return co(a,s,!0,!0,t),Ly(n,a),l;function u(c){A(n[mt[c]],function(h){if(bu(h.model)){var d=i.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var g=0;g<p.length;g++){var y=p[g],m=h.scale.normalize(Rs(y.label).tickValue);m=c===1?1-m:m,f(y.rect,c,m),f(y.rect,1-c,NaN)}var _=d.nameLayout;if(_){var m=Ls(d.nameLocation)?.5:NaN;f(_.rect,c,m),f(_.rect,1-c,NaN)}}})}function f(c,h,d){var p=r[mt[h]]-c[mt[h]],g=c[Se[h]]+c[mt[h]]-(r[Se[h]]+r[mt[h]]);p=v(p,1-d),g=v(g,d);var y=wb[h][0],m=wb[h][1];s[y]=de(s[y],p),s[m]=de(s[m],g)}function v(c,h){return c>0&&!je(h)&&h>1e-4&&(c/=h),c}}function uW(r,e,t,a,n){var i=new ZI(vW);return A(t,function(o){return A(o,function(s){if(bu(s.model)){var l=!a;s.axisBuilder=nW(r,e,s.model,n,i,l)}})}),i}function tP(r,e,t,a,n,i){var o=t===sa.determine;A(e,function(u){return A(u,function(f){bu(f.model)&&(iW(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:n}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[mt[1-u]]=r[Se[u]]<=i.refContainer[Se[u]]*.5?0:1-u===1?2:1}A(e,function(u,f){return A(u,function(v){bu(v.model)&&((a==="all"||o)&&v.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&v.axisBuilder.build({axisLine:!0}))})})}function fW(r,e,t){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=e.clone():(n==null||n==="auto")&&(a=ne(r.get("outerBounds",!0)||GI,t.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||bt(["all","axisLabel"],i)<0?o="all":o=i;var s=[Wv(nt(r.get("outerBoundsClampWidth",!0),gc[0]),e.width),Wv(nt(r.get("outerBoundsClampHeight",!0),gc[1]),e.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var vW=function(r,e,t,a,n,i){var o=t.axis.dim==="x"?"y":"x";XI(r,e,t,a,n,i),Ls(r.nameLocation)||A(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&KI(s.labelInfoList,s.dirVec,a,n)})};const cW=oW;function hW(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return dW(t,r,e),t.seriesInvolved&&gW(t,r),t}function dW(r,e,t){var a=e.getComponent("tooltip"),n=e.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];A(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Cu(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,v=f.getModel("tooltip",a);if(A(s.getAxes(),xt(p,!1,null)),s.getTooltipAxes&&a&&v.get("show")){var c=v.get("trigger")==="axis",h=v.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(v.get(["axisPointer","axis"]));(c||h)&&A(d.baseAxes,xt(p,h?"cross":!0,c)),h&&A(d.otherAxes,xt(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Py(_))){y==null&&(y=_.get("triggerTooltip")),_=g?pW(m,v,n,e,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Cu(m.model),T=y||b||m.type==="category",C=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:Py(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||T;var M=yW(i,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=i[M].mapper,C.linkGroup=D}}}})}function pW(r,e,t,a,n,i){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=ut(o.get(c))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var v=l.lineStyle=o.get("crossStyle");v&&ht(u,v.textStyle)}}return r.model.getModel("axisPointer",new Bt(l,t,a))}function gW(r,e){e.eachSeries(function(t){var a=t.coordinateSystem,n=t.get(["tooltip","trigger"],!0),i=t.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||t.get(["axisPointer","show"],!0)===!1||A(r.coordSysAxesInfo[Cu(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function yW(r,e){for(var t=e.model,a=e.dim,n=0;n<r.length;n++){var i=r[n]||{};if(Jd(i[a+"AxisId"],t.id)||Jd(i[a+"AxisIndex"],t.componentIndex)||Jd(i[a+"AxisName"],t.name))return n}}function Jd(r,e){return r==="all"||U(r)&&bt(r,e)>=0||r===e}function mW(r){var e=V0(r);if(e){var t=e.axisPointerModel,a=e.axis.scale,n=t.option,i=t.get("status"),o=t.get("value");o!=null&&(o=a.parse(o));var s=Py(t);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=e.axis.scale.isBlank()?"hide":"show")}}function V0(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Cu(r)]}function _W(r){var e=V0(r);return e&&e.axisPointerModel}function Py(r){return!!r.get(["handle","show"])}function Cu(r){return r.type+"||"+r.id}var Db={},SW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.axisPointerClass&&mW(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},e.prototype.updateAxisPointer=function(t,a,n,i){this._doUpdateAxisPointerClass(t,n,!1)},e.prototype.remove=function(t,a){var n=this._axisPointer;n&&n.remove(a)},e.prototype.dispose=function(t,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,a,n){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var o=_W(t);o?(this._axisPointer||(this._axisPointer=new i)).render(t,o,a,n):this._disposeAxisPointer(a)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,a){Db[t]=a},e.getAxisPointerClass=function(t){return t&&Db[t]},e.type="axis",e}(se);const Do=SW;var Ry=Lt();function eP(r,e,t,a){var n=t.axis;if(!n.scale.isBlank()){var i=t.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,v=Ry(r).splitAreaColors,c=at(),h=0;if(v)for(var d=0;d<u.length;d++){var p=v.get(u[d].tickValue);if(p!=null){h=(p+(f-1)*d)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[d-1].tickValue;w!=null&&c.set(w,h),e.add(new Dt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:ht({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%f}Ry(r).splitAreaColors=c}}}function rP(r){Ry(r).splitAreaColors=null}var xW=["splitArea","splitLine","minorSplitLine","breakArea"],aP=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ft,this.group.add(this._axisGroup),!!bu(t)){this._axisGroup.add(t.axis.axisBuilder.group),A(xW,function(l){t.get([l,"show"])&&bW[l](this,this._axisGroup,t,t.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Nu(o,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)}},e.prototype.remove=function(){rP(this)},e.type="cartesianAxis",e}(Do),bW={splitLine:function(r,e,t,a,n){var i=t.axis;if(!i.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=U(l)?l:[l];for(var v=a.coordinateSystem.getRect(),c=i.isHorizontal(),h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;c?(p[0]=_,p[1]=v.y,g[0]=_,g[1]=v.y+v.height):(p[0]=v.x,p[1]=_,g[0]=v.x+v.width,g[1]=_);var b=h++%l.length,x=new Me({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},style:ht({stroke:l[b]},y),silent:!0});Cs(x.shape,y.lineWidth),e.add(x)}}}},minorSplitLine:function(r,e,t,a,n){var i=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var v=[],c=[],h=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var g=i.toGlobalCoord(f[d][p].coord);u?(v[0]=g,v[1]=l.y,c[0]=g,c[1]=l.y+l.height):(v[0]=l.x,v[1]=g,c[0]=l.x+l.width,c[1]=g);var y=new Me({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:c[0],y2:c[1]},style:h,silent:!0});Cs(y.shape,h.lineWidth),e.add(y)}},splitArea:function(r,e,t,a,n){eP(r,e,t,a)},breakArea:function(r,e,t,a,n){var i=Xu(),o=t.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,t,a.coordinateSystem.getRect(),n)}},nP=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(aP),wW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=nP.type,t}return e.type="yAxis",e}(aP),TW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,a){this.group.removeAll(),t.get("show")&&this.group.add(new Dt({shape:t.coordinateSystem.getRect(),style:ht({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(se),Lb={offset:0};function iP(r){r.registerComponentView(TW),r.registerComponentModel(D4),r.registerCoordinateSystem("cartesian2d",cW),Ps(r,"x",Cy,Lb),Ps(r,"y",Cy,Lb),r.registerComponentView(nP),r.registerComponentView(wW),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function CW(r,e){var t=r.coordinateSystem,a=t&&t.type,n=t&&t.getBaseAxis&&t.getBaseAxis(),i=n&&n.scale&&n.scale.type,o=a==="cartesian2d"&&i==="ordinal"||a==="single",s=e.model.get("jitter")>0;return o&&s}var AW=Lt();function Ib(r,e,t,a){if(r instanceof WI){var n=r.scale.type;if(n!=="category"&&n!=="ordinal")return t}var i=r.model,o=i.get("jitter"),s=i.get("jitterOverlap"),l=i.get("jitterMargin")||0,u=r.scale.type==="ordinal"?r.getBandWidth():null;return o>0?s?oP(t,o,u,a):MW(r,e,t,a,o,l):t}function oP(r,e,t,a){if(t===null)return r+(Math.random()-.5)*e;var n=t-a*2,i=Math.min(Math.max(0,e),n);return r+(Math.random()-.5)*i}function MW(r,e,t,a,n,i){var o=AW(r);o.items||(o.items=[]);var s=o.items,l=Pb(s,e,t,a,n,i,1),u=Pb(s,e,t,a,n,i,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,v=r.scale.type==="ordinal"?r.getBandWidth():null,c=Math.abs(f-t);return c>n/2||v&&c>v/2-a?oP(t,n,v,a):(s.push({fixedCoord:e,floatCoord:f,r:a}),f)}function Pb(r,e,t,a,n,i,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,v=s-u.floatCoord,c=f*f+v*v,h=a+u.r+i;if(c<h*h){var d=u.floatCoord+Math.sqrt(h*h-f*f)*o;if(Math.abs(d-t)>n/2)return Number.MAX_VALUE;if(o===1&&d>s||o===-1&&d<s){s=d,l=-1;continue}}}return s}function DW(r){r.eachSeriesByType("scatter",function(e){var t=e.coordinateSystem;if(t&&(t.type==="cartesian2d"||t.type==="single")){var a=t.getBaseAxis?t.getBaseAxis():null,n=a&&CW(e,a);if(n){var i=e.getData();i.each(function(o){var s=a.dim,l=a.orient,u=l==="horizontal"&&a.type!=="category"||l==="vertical"&&a.type==="category",f=i.getItemLayout(o),v=i.getItemVisual(o,"symbolSize"),c=v instanceof Array?(v[1]+v[0])/2:v;if(s==="y"||s==="single"&&u){var h=Ib(a,f[0],f[1],c/2);i.setItemLayout(o,[f[0],h])}else if(s==="x"||s==="single"&&!u){var h=Ib(a,f[1],f[0],c/2);i.setItemLayout(o,[h,f[1]])}})}}})}function LW(r){Ct(iP),r.registerSeriesModel(S4),r.registerChartView(A4),r.registerLayout(Zu("scatter"))}function IW(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,DW)}function PW(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),a=[],n=e.coordinateSystem;if(n){var i=n.getIndicatorAxes();A(i,function(o,s){t.each(t.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=Rb(f)?f:kb(n)})}),t.each(function(o){var s=mo(a[o],function(l){return Rb(l)})||kb(n);a[o].push(s.slice()),t.setItemLayout(o,a[o])})}})}function Rb(r){return!isNaN(r[0])&&!isNaN(r[1])}function kb(r){return[r.cx,r.cy]}function RW(r){var e=r.polar;if(e){U(e)||(e=[e]);var t=[];A(e,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],U(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):t.push(a)}),r.polar=t}A(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var kW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,h){var d=c.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=Xs(c.getItemVisual(h,"symbolSize")),g=be(d,-1,-1,2,2),y=c.getItemVisual(h,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,h,d,p,g,y){d.removeAll();for(var m=0;m<h.length-1;m++){var _=u(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),xo[y?"initProps":"updateProps"](_,{x:h[m][0],y:h[m][1]},t,g)):_.setPosition(h[m]),d.add(_))}}function v(c){return Z(c,function(h){return[i.cx,i.cy]})}s.diff(l).add(function(c){var h=s.getItemLayout(c);if(h){var d=new lr,p=new tr,g={shape:{points:h}};d.shape.points=v(h),p.shape.points=v(h),re(d,g,t,c),re(p,g,t,c);var y=new ft,m=new ft;y.add(p),y.add(d),y.add(m),f(p.shape.points,h,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),Ur(g),Ur(p),Nt(p,m,t),Nt(g,m,t),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,h){var d=s.getItemModel(h),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(h,"style"),_=m.fill;o.add(c),p.useStyle(ht(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),De(p,d,"lineStyle"),De(g,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,A(["emphasis","select","blur"],function(w){var T=d.getModel([w,"areaStyle"]),C=T.isEmpty()&&T.parentModel.isEmpty();g.ensureState(w).ignore=C&&b;var M=d.getModel([w,"lineStyle"]).getLineStyle();p.ensureState(w).style=M;var D=T.getAreaStyle();g.ensureState(w).style=D;var I=d.getModel([w,"itemStyle"]).getItemStyle();y.eachChild(function(L){L.ensureState(w).style=ut(I)})}),g.useStyle(ht(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");y.eachChild(function(w){if(w instanceof Ze){var T=w.style;w.useStyle($({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else w.useStyle(m),w.setColor(_),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),h);(C==null||isNaN(C))&&(C=""),Ee(w,Le(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:m.opacity})}),ae(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Jt);const EW=kW;var OW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Js(Q(this.getData,this),Q(this.getRawData,this))},e.prototype.getInitialData=function(t,a){return js(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=VL(this,t);return xe("section",{header:u,sortBlocks:!0,blocks:Z(s,function(v){var c=i.get(i.mapDimension(v.dim),t);return xe("nameValue",{markerType:"subItem",markerColor:f,name:v.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(Z(n.dimensions,function(u){return a.mapDimension(u)}),t),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},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}(ie);const NW=OW;var gl=HI.value;function Hf(r,e){return ht({show:e},r)}var BW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),c=this.get("triggerEvent"),h=Z(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ht({color:d.color},l));var g=wt(ut(d),{boundaryGap:t,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:v,nameTextStyle:p,triggerEvent:c},!1);if(J(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else lt(f)&&(g.name=f(g.name,g));var m=new Bt(g,null,this.ecModel);return we(m,Wu.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:F.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:wt({lineStyle:{color:F.color.neutral20}},gl.axisLine),axisLabel:Hf(gl.axisLabel,!1),axisTick:Hf(gl.axisTick,!1),splitLine:Hf(gl.splitLine,!0),splitArea:Hf(gl.splitArea,!0),indicator:[]},e}(kt);const zW=BW;var VW=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,a){var n=t.coordinateSystem,i=n.getIndicatorAxes(),o=Z(i,function(s){var l=s.model.get("showName")?s.name:"",u=new dn(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var a=t.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),v=s.get("show"),c=l.get("color"),h=u.get("color"),d=U(c)?c:[c],p=U(h)?h:[h],g=[],y=[];function m(k,R,N){var E=N%R.length;return k[E]=k[E]||[],E}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var w=m(g,d,x);g[w].push(new ii({shape:{cx:S,cy:b,r:_[x].coord}}))}if(v&&x<_.length-1){var w=m(y,p,x);y[w].push(new eh({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=Z(n,function(k,R){var N=k.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),Z(N,function(E){return a.coordToPoint(E.coord,R)})}),M=[],x=0;x<=T;x++){for(var D=[],I=0;I<n.length;I++)D.push(C[I][x]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,d,x);g[w].push(new tr({shape:{points:D}}))}if(v&&M){var w=m(y,p,x-1);y[w].push(new lr({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var L=l.getLineStyle(),P=u.getAreaStyle();A(y,function(k,R){this.group.add(Vr(k,{style:ht({stroke:"none",fill:p[R%p.length]},P),silent:!0}))},this),A(g,function(k,R){this.group.add(Vr(k,{style:ht({fill:"none",stroke:d[R%d.length]},L),silent:!0}))},this)},e.type="radar",e}(se);const GW=VW;var FW=function(r){B(e,r);function e(t,a,n){var i=r.call(this,t,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return e}(fa);const HW=FW;var WW=function(){function r(e,t,a){this.dimensions=[],this._model=e,this._indicatorAxes=Z(e.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new HW(o,new Qn);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(e,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var a=this._indicatorAxes[t];return this.coordToPoint(a.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var a=this._indicatorAxes[t],n=a.angle,i=this.cx+e*Math.cos(n),o=this.cy-e*Math.sin(n);return[i,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=Math.sqrt(t*t+a*a);t/=n,a/=n;for(var i=Math.atan2(-a,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],v=Math.abs(i-f.angle);v<o&&(s=f,l=u,o=v)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(e,t){var a=Ie(e,t).refContainer,n=e.get("center"),i=Math.min(a.width,a.height)/2;this.cx=j(n[0],a.width)+a.x,this.cy=j(n[1],a.height)+a.y,this.startAngle=e.get("startAngle")*Math.PI/180;var o=e.get("radius");(J(o)||Rt(o))&&(o=[0,o]),this.r0=j(o[0],i),this.r=j(o[1],i),A(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(e,t){var a=this._indicatorAxes,n=this._model;A(a,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"))!==n)){var u=s.getData();A(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new Qn;o.setExtent(0,i),o.setInterval(1),A(a,function(s,l){QI(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var a=[];return e.eachComponent("radar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r}();const $W=WW;function UW(r){r.registerCoordinateSystem("radar",$W),r.registerComponentModel(zW),r.registerComponentView(GW),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(a){t.setItemVisual(a,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function YW(r){Ct(UW),r.registerChartView(EW),r.registerSeriesModel(NW),r.registerLayout(PW),r.registerProcessor(Ks("radar")),r.registerPreprocessor(RW)}var G0=Lt();function ZW(r,e,t){G0(r)[e]=t}function XW(r,e,t){var a=G0(r),n=a[e];n===t&&(a[e]=null)}function Eb(r,e){return!!G0(r)[e]}Fa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},pe);var qW={axisPointer:1,tooltip:1,brush:1};function sP(r,e,t){var a=e.getComponentByElement(r.topTarget);if(!a||a===t||qW.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===t)return!1;var i=ho(a),o=ho(t);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var KW=function(r){B(e,r);function e(t){var a=r.call(this)||this;a._zr=t;var n=Q(a._mousedownHandler,a),i=Q(a._mousemoveHandler,a),o=Q(a._mouseupHandler,a),s=Q(a._mousewheelHandler,a),l=Q(a._pinchHandler,a);return a.enable=function(u,f){var v=f.zInfo,c=ho(v.component),h=c.z,d=c.zlevel,p={component:v.component,z:h,zlevel:d,z2:nt(v.z2,-1/0)},g=$({},f.triggerInfo);this._opt=ht($({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:g}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(ml(t,"mousedown",n,p),ml(t,"mousemove",i,p),ml(t,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(ml(t,"mousewheel",s,p),ml(t,"pinch",l,p)))},a.disable=function(){this._enabled=!1,_l(t,"mousedown",n),_l(t,"mousemove",i),_l(t,"mouseup",o),_l(t,"mousewheel",s),_l(t,"pinch",l)},a}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,a,n){var i=this._opt,o=i.zInfoParsed;if(sP(t,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,a,n)),u&&s.isInClip&&!s.isInClip(t,a,n)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,a,n,i){var o=t.target;if(!o&&this._checkPointer(t,a,n))return"grab";if(i)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(q_(t)||yl(t))){for(var a=t.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var a=this._zr;if(!(t.gestureEvent==="pinch"||Eb(a,"globalPan")||yl(t))){var n=t.offsetX,i=t.offsetY;if(!this._dragging||!Dv("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&un(t.event),t.__ecRoamConsumed=!0,Ob(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!yl(t)){var a=this._zr;if(!q_(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&a.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!yl(t)){var a=Dv("zoomOnMouseWheel",t,this._opt),n=Dv("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),s=t.offsetX,l=t.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var v=Math.abs(i),c=(i>0?1:-1)*(v>3?.4:v>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(Eb(this._zr,"globalPan")||yl(t))){var a=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:a,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,a,n,i,o){t._checkPointer(i,o.originX,o.originY)&&(un(i.event),i.__ecRoamConsumed=!0,Ob(t,a,n,i,o))},e}(Yr);function yl(r){return r.__ecRoamConsumed}var jW=Lt();function mh(r){var e=jW(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function ml(r,e,t,a){for(var n=mh(r),i=n.roam,o=i[e]=i[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:a}),JW(r,e)}function _l(r,e,t){for(var a=mh(r),n=a.roam[e]||[],i=0;i<n.length;i++)if(n[i].listener===t){n.splice(i,1),n.length||QW(r,e);return}}function JW(r,e){var t=mh(r);t.uniform[e]||r.on(e,t.uniform[e]=function(a){var n=t.roam[e];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function QW(r,e){var t=mh(r),a=t.uniform;a[e]&&(r.off(e,a[e]),a[e]=null)}function Ob(r,e,t,a,n){n.isAvailableBehavior=Q(Dv,null,t,a),r.trigger(e,n)}function Dv(r,e,t){var a=t[r];return!r||a&&(!J(a)||e.event[a+"Key"])}const Lo=KW;function F0(r,e,t){var a=r.target;a.x+=e,a.y+=t,a.dirty()}function H0(r,e,t,a){var n=r.target,i=r.zoomLimit,o=r.zoom=r.zoom||1;o*=e,o=W0(o,i);var s=o/r.zoom;r.zoom=o,uP(n,t,a,s),n.dirty()}function lP(r,e,t,a,n,i){var o=new gt(0,0,0,0);a.enable(r.get("roam"),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:function(u,f,v){return o.copy(t.getBoundingRect()),o.applyTransform(t.getComputedTransform()),o.contain(f,v)},isInClip:function(u,f,v){return!i||i.contain(f,v)}}}),n.zoomLimit=r.get("scaleLimit");var s=r.coordinateSystem;n.zoom=s?s.getZoom():1;var l=r.subType+"Roam";a.off("pan").off("zoom").on("pan",function(u){F0(n,u.dx,u.dy),e.dispatchAction({seriesId:r.id,type:l,dx:u.dx,dy:u.dy})}).on("zoom",function(u){H0(n,u.scale,u.originX,u.originY),e.dispatchAction({seriesId:r.id,type:l,zoom:u.scale,originX:u.originX,originY:u.originY}),e.updateLabelLayout()})}function Nb(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function _h(r,e,t){var a=r.getZoom(),n=r.getCenter(),i=e.zoom,o=r.projectedToPoint?r.projectedToPoint(n):r.dataToPoint(n);return e.dx!=null&&e.dy!=null&&(o[0]-=e.dx,o[1]-=e.dy,r.setCenter(Nb(r,o))),i!=null&&(i=W0(a*i,t)/a,uP(r,e.originX,e.originY,i),r.updateTransform(),r.setCenter(Nb(r,o)),r.setZoom(i*a)),{center:r.getCenter(),zoom:r.getZoom()}}function uP(r,e,t,a){r.x-=(e-r.x)*(a-1),r.y-=(t-r.y)*(a-1),r.scaleX*=a,r.scaleY*=a}function W0(r,e){if(e){var t=e.min||0,a=e.max||1/0;r=Math.max(Math.min(a,r),t)}return r}function fP(r){if(J(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Qd,mc={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"},Bb=Pt(mc),_c={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zb=Pt(_c),t$=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=fP(e);this._defsUsePending=[];var n=new ft;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),yr(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;a$(this._defs,this._defsUsePending),this._defsUsePending=[];var f,v;if(o){var c=Sh(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(v=cP(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var h=n;n=new ft,n.add(h),h.scaleX=h.scaleY=v.scale,h.x=v.x,h.y=v.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new Dt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:v,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=Qd[s];if(f&&rt(Qd,s)){l=f.call(this,e,t);var v=e.getAttribute("name");if(v){var c={name:v,namedFrom:null,svgNodeTagLower:s,el:l};a.push(c),s==="g"&&(u=c)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var h=Vb[s];if(h&&rt(Vb,s)){var d=h.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=d)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,a,u,i,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var a=new uu({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),e$(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=function(){Qd={g:function(e,t){var a=new ft;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new Dt;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},circle:function(e,t){var a=new ii;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Me;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},ellipse:function(e,t){var a=new Wm;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Hb(a));var i=new lr({shape:{points:n||[]},silent:!0});return Lr(t,i),yr(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Hb(a));var i=new tr({shape:{points:n||[]},silent:!0});return Lr(t,i),yr(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new Ze;return Lr(t,a),yr(e,a,this._defsUsePending,!1,!1),a.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")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new ft;return Lr(t,s),yr(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new ft;return Lr(t,s),yr(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=hD(a);return Lr(t,n),yr(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Vb={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Fs(e,t,a,n);return Gb(r,i),Fb(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new AD(e,t,a);return Gb(r,n),Fb(r,n),n}};function Gb(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Fb(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};vP(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000",s=i.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=dr(o),u=l&&l[3];u&&(l[3]*=$n(s),o=Ra(l,"rgba"))}e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function Lr(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),ht(e.__inheritedStyle,r.__inheritedStyle))}function Hb(r){for(var e=Sh(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function yr(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(o$(r,e),vP(r,o,s),a||s$(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Wb(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Wb(i,"stroke",o.stroke,t)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=Z(Sh(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function e$(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var r$=/^url\(\s*#(.*?)\)/;function Wb(r,e,t,a){var n=t&&t.match(r$);if(n){var i=Fr(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function a$(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var n$=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Sh(r){return r.match(n$)||[]}var i$=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,tp=Math.PI/180;function o$(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(i$,function(v,c,h){return a.push(c,h),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=Sh(o);switch(n=n||Ge(),s){case"translate":Na(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Tm(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":ni(n,n,-parseFloat(l[0])*tp,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*tp);Pa(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*tp);Pa(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var $b=/([^\s:;]+)\s*:\s*([^:;]+)/g;function vP(r,e,t){var a=r.getAttribute("style");if(a){$b.lastIndex=0;for(var n;(n=$b.exec(a))!=null;){var i=n[1],o=rt(mc,i)?mc[i]:null;o&&(e[o]=n[2]);var s=rt(_c,i)?_c[i]:null;s&&(t[s]=n[2])}}}function s$(r,e,t){for(var a=0;a<Bb.length;a++){var n=Bb[a],i=r.getAttribute(n);i!=null&&(e[mc[n]]=i)}for(var a=0;a<zb.length;a++){var n=zb[a],i=r.getAttribute(n);i!=null&&(t[_c[n]]=i)}}function cP(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function l$(r,e){var t=new t$;return t.parse(r,e)}var u$=at(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),f$=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=at(),this._freedGraphics=[],this._mapName=e,this._parsedXML=fP(t)}return r.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=c$(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&l$(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Qe(a!=null)}catch(g){throw new Error(`Invalid svg format
`+g.message)}var n=new ft;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,v=void 0,c=void 0;if(i!=null?(u=0,v=i):s&&(u=s.x,v=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var h=a.getBoundingRect();u==null&&(u=h.x,v=h.width),f==null&&(f=h.y,c=h.height)}l=this._boundingRect=new gt(u,f,v,c)}if(s){var d=cP(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Dt({shape:l.plain()}));var p=[];return A(t.named,function(g){u$.get(g.svgNodeTagLower)!=null&&(p.push(g),v$(g.el))}),{root:n,boundingRect:l,named:p}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function v$(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function c$(r){var e=[],t=at();return A(r,function(a){if(a.namedFrom==null){var n=new KF(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var ky=[126,25],Ub="南海诸岛",Oi=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var ki=0;ki<Oi.length;ki++)for(var Xo=0;Xo<Oi[ki].length;Xo++)Oi[ki][Xo][0]/=10.5,Oi[ki][Xo][1]/=-10.5/.75,Oi[ki][Xo][0]+=ky[0],Oi[ki][Xo][1]+=ky[1];function h$(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Ub)return;e.push(new Z2(Ub,Z(Oi,function(a){return{type:"polygon",exterior:a}}),ky))}}var d$={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function p$(r,e){if(r==="china"){var t=d$[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var g$=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y$(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:g$[0]})}var m$="name",_$=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=at(),this._mapName=e,this._specialAreas=a,this._geoJSON=x$(t)}return r.prototype.load=function(e,t){t=t||m$;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:S$(n)})}var i=at(),o=[];return A(a.regions,function(s){var l=s.name;e&&rt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new gt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?JF(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
`+i.message)}return h$(t,n),A(n,function(i){var o=i.name;p$(t,i),y$(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function S$(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function x$(r){return J(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Sl=at();const pn={registerMap:function(r,e,t){if(e.svg){var a=new f$(r,e.svg);Sl.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new _$(r,n,t);Sl.set(r,a)}},getGeoResource:function(r){return Sl.get(r)},getMapForUser:function(r){var e=Sl.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=Sl.get(r);if(a)return a.load(e,t)}};var $0=["rect","circle","line","ellipse","polygon","polyline","path"],b$=at($0),w$=at($0.concat(["g"])),T$=at($0.concat(["g"])),hP=Lt();function Wf(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Yb(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var C$=function(){function r(e){var t=this.group=new ft,a=this._transformGroup=new ft;t.add(a),this.uid=$s("ec_map_draw"),this._controller=new Lo(e.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new ft),a.add(this._svgGroup=new ft)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(_){!s&&_.getHostGeoModel()===e&&(s=_.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,v=l.getTransformInfo(),c=v.raw,h=v.roam,d=!u.childAt(0)||i,p=e.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new Dt({shape:g.clone()}))):this.group.removeClipPath(),d?(f.x=h.x,f.y=h.y,f.scaleX=h.scaleX,f.scaleY=h.scaleY,f.dirty()):Nt(f,h,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,g,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=at(),a=at(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function v(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=f(h[g],p);y&&d.push(y)}return d}function c(h){return{shape:{points:v(h)}}}n.removeAll(),A(e.geo.regions,function(h){var d=h.name,p=t.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=t.set(d,new ft),n.add(p),y=s?s.indexOfName(d):null,m=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),a.set(d,{dataIdx:y,regionModel:m})}var S=[],b=[];A(h.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Jb(C,u)),A(C,function(D){S.push(new lr(c(D)))})}else{var M=T.points;u&&(M=Jb(M,u,!0)),A(M,function(D){b.push(new tr(c(D)))})}});var x=f(h.getCenter(),l&&l.project);function w(T,C){if(T.length){var M=new ah({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(M),Zb(e,M,y,m),Xb(e,M,d,m,o,y,x),C&&(Yb(M),A(M.states,Yb))}}w(S),w(b,!0)}),t.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;qb(e,h,d,y,o,g),Kb(e,h,d,y,o),jb(e,h,d,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=at(),i=!1;A(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,v=o.el,c=u?u.indexOfName(s):null,h=l.getRegionModel(s);b$.get(f)!=null&&v instanceof $r&&Zb(e,v,c,h),v instanceof $r&&(v.culling=!0);var d=h.get("silent",!0);if(d!=null&&(v.silent=d),v.z2EmphasisLift=0,!o.namedFrom&&(T$.get(f)!=null&&Xb(e,v,s,h,l,c,null),qb(e,v,s,h,l,c),Kb(e,v,s,h,l),w$.get(f)!=null)){var p=jb(e,v,s,h,l);p==="self"&&(i=!0);var g=n.get(s)||n.set(s,[]);g.push(v)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){vo(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=pn.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=pn.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a,n){var i=e.coordinateSystem,o=this._controller,s=this._controllerHost;s.zoomLimit=e.get("scaleLimit"),s.zoom=i.getZoom(),o.enable(e.get("roam")||!1,{api:n,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(f,v,c){return i.containPoint([v,c])},isInClip:function(f,v,c){return!t||t.contain(v,c)}}});var l=e.mainType;function u(){var f={type:"geoRoam",componentType:l};return f[l+"Id"]=e.id,f}o.off("pan").on("pan",function(f){this._mouseDownFlag=!1,F0(s,f.dx,f.dy),n.dispatchAction($(u(),{dx:f.dx,dy:f.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(f){this._mouseDownFlag=!1,H0(s,f.scale,f.originX,f.originY),n.dispatchAction($(u(),{totalZoom:s.zoom,zoom:f.scale,originX:f.originX,originY:f.originY,animation:{duration:0}}))},this)},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=hP(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r}();function Zb(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=Wf(n),u=Wf(i),f=Wf(s),v=Wf(o),c=r.data;if(c){var h=c.getItemVisual(t,"style"),d=c.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),d&&(l.decal=Ms(d,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=v,vo(e)}function Xb(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var v=l?t:i,c=void 0;(!s||i>=0)&&(c=n);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Ee(e,Le(a),{labelFetcher:c,labelDataIndex:v,defaultText:t},h);var d=e.getTextContent();if(d&&(hP(d).ignore=d.ignore,e.textConfig&&o)){var p=e.getBoundingRect().clone();e.textConfig.layoutRect=p,e.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function qb(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):yt(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function Kb(r,e,t,a,n){r.data||mn({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function jb(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return ae(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&EB(e,n,t),o}function Jb(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),A(r,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(),a}const dP=C$;var A$=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){if(!(i&&i.type==="mapToggleSelect"&&i.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&i&&i.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),i&&i.type==="geoRoam"&&i.componentType==="series"&&i.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new dP(n);o.add(s.group),s.draw(t,a,n,this,i),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&a.getComponent("legend")&&this._renderSymbols(t,a,n)}}},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,a,n){var i=t.originalData,o=this.group;i.each(i.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=i.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,v=u.offset,c=new ii({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+v*9,cy:f[1],r:3},silent:!0,z2:8+(v?0:Gs+1)});if(!v){var h=t.mainSeries.getData(),d=i.getName(l),p=h.indexOfName(d),g=i.getItemModel(l),y=g.getModel("label"),m=h.getItemGraphicEl(p);Ee(c,Le(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(p,S)}},defaultText:d}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){Zv(c,_)}}o.add(c)}}})},e.type="map",e}(Jt);const M$=A$;var D$=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(a){if(a!=null){var n=this.getData().getName(a),i=this.coordinateSystem,o=i.getRegion(n);return o&&i.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var a=js(this,{coordDimensions:["value"],encodeDefaulter:xt(o0,this)}),n=at(),i=[],o=0,s=a.count();o<s;o++){var l=a.getName(o);n.set(l,o)}var u=pn.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return A(u.regions,function(f){var v=f.name,c=n.get(v),h=f.properties&&f.properties.echartsStyle,d;c==null?(d={name:v},i.push(d)):d=a.getRawDataItem(c),h&&wt(d,h)}),a.appendData(i),a},e.prototype.getHostGeoModel=function(){if(tL(this).kind!==wa.boxCoordSys)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var a=this.getData();return a.get(a.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var a=this.getData();return a.getItemModel(a.indexOfName(t))},e.prototype.formatTooltip=function(t,a,n){for(var i=this.getData(),o=this.getRawValue(t),s=i.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var v=l[f].originalData.indexOfName(s),c=i.mapDimension("value");isNaN(l[f].originalData.get(c,v))||u.push(l[f].name)}return xe("section",{header:u.join(", "),noHeader:!u.length,blocks:[xe("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var a=t.icon||"roundRect",n=be(a,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",a.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=F.color.neutral00,n.style.lineWidth=2),n},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:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border,areaColor:F.color.background},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{areaColor:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},nameProperty:"name"},e}(ie);const L$=D$;function I$(r,e){var t={};return A(r,function(a){a.each(a.mapDimension("value"),function(n,i){var o="ec-"+a.getName(i);t[o]=t[o]||[],isNaN(n)||t[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(a,n){for(var i="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=t[i].length,f=0;f<u;f++)s=Math.min(s,t[i][f]),l=Math.max(l,t[i][f]),o+=t[i][f];var v;return e==="min"?v=s:e==="max"?v=l:e==="average"?v=o/u:v=o,u===0?NaN:v})}function P$(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getHostGeoModel(),n=a?"o"+a.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)}),A(e,function(t,a){for(var n=I$(Z(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(var i=0;i<t.length;i++)t[i].seriesGroup=t,t[i].needsDrawMap=i===0&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function R$(r){var e={};r.eachSeriesByType("map",function(t){var a=t.getMapType();if(!(t.getHostGeoModel()||e[a])){var n={};A(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var v=l.getName(f),c=s.getRegion(v);if(!(!c||isNaN(u))){var h=n[v]||0,d=s.dataToPoint(c.getCenter());n[v]=h+1,l.setItemLayout(f,{point:d,offset:h})}})});var i=t.getData();i.each(function(o){var s=i.getName(o),l=i.getItemLayout(o)||{};l.showLabel=!n[s],i.setItemLayout(o,l)}),e[a]=!0}})}var Qb=ge,k$=function(r){B(e,r);function e(t,a){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new tn,n._rawTransformable=new tn,n.name=t,n._opt=a,n}return e.prototype.setBoundingRect=function(t,a,n,i){return this._rect=new gt(t,a,n,i),this._updateCenterAndZoom(),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,a,n,i){this._transformTo(t,a,n,i),this._viewRect=new gt(t,a,n,i)},e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new gt(t,a,n,i));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t){var a=this._opt;a&&a.api&&a.ecModel&&a.ecModel.getShallow("legacyViewCoordSysCenterBase")&&t&&(t=[j(t[0],a.api.getWidth()),j(t[1],a.api.getWidth())]),this._centerOption=ut(t),this._updateCenterAndZoom()},e.prototype.setZoom=function(t){this._zoom=W0(t||1,this.zoomLimit),this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),a=t.x+t.width/2,n=t.y+t.height/2;return[a,n]},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._centerOption,a=this._rect;t&&a&&(this._center=[j(t[0],a.width,a.x),j(t[1],a.height,a.y)]);var n=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,o=this.getDefaultCenter(),s=this.getCenter(),l=this.getZoom();s=ge([],s,n),o=ge([],o,n),i.originX=s[0],i.originY=s[1],i.x=o[0]-s[0],i.y=o[1]-s[1],i.scaleX=i.scaleY=l,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),$c(this.transform||(this.transform=[]),a.transform||Ge()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],ia(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,a=this._roamTransformable,n=new tn;return n.transform=a.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.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,a,n){var i=a?this._rawTransform:this.transform;return n=n||[],i?Qb(n,t,i):rr(n,t)},e.prototype.pointToData=function(t,a,n){n=n||[];var i=this.invTransform;return i?Qb(n,t,i):(n[0]=t[0],n[1]=t[1],n)},e.prototype.convertToPixel=function(t,a,n){var i=tw(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=tw(a);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(tn);function tw(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Io=k$;var E$={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},pP=["lng","lat"],gP=function(r){B(e,r);function e(t,a,n){var i=r.call(this,t,{api:n.api,ecModel:n.ecModel})||this;i.dimensions=pP,i.type="geo",i._nameCoordMap=at(),i.map=a;var o=n.projection,s=pn.load(a,n.nameMap,n.nameProperty),l=pn.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=E$[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var v;if(o)for(var c=0;c<u.length;c++){var h=u[c].getBoundingRect(o);v=v||h.clone(),v.union(h)}else v=s.boundingRect;return i.setBoundingRect(v.x,v.y,v.width,v.height),i.aspectScale=o?1:nt(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new gt(t,a,n,i));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 a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(J(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t,a,n){var i=this.projection;return i&&(t=i.unproject(t)),t&&this.pointToProjected(t,n)},e.prototype.pointToProjected=function(t,a){return r.prototype.pointToData.call(this,t,0,a)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=ew(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=ew(a);return i===this?i.pointToData(n):null},e}(Io);we(gP,Io);function ew(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",fe).models[0]||{}).coordinateSystem:null}const rw=gP;function aw(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(b,x,w,T){for(var C=w-b,M=T-x,D=0;D<=100;D++){var I=D/100,L=i.project([b+C*I,x+M*I]);On(a,a,L),Nn(n,n,L)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var v=this.getBoundingRect(),c=r.get("layoutCenter"),h=r.get("layoutSize"),d=Ie(r,e).refContainer,p=v.width/v.height*this.aspectScale,g=!1,y,m;c&&h&&(y=[j(c[0],d.width)+d.x,j(c[1],d.height)+d.y],m=j(h,Math.min(d.width,d.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(m)&&(g=!0));var _;if(g)_={},p>1?(_.width=m,_.height=m/p):(_.height=m,_.width=m*p),_.y=y[1]-_.height/2,_.x=y[0]-_.width/2;else{var S=r.getBoxLayoutParams();S.aspect=p,_=ne(S,d),_=iL(r,_,p)}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center")),this.setZoom(r.get("zoom"))}function O$(r,e){A(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var N$=function(){function r(){this.dimensions=pP}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new rw(l+s,l,$({nameMap:o.get("nameMap"),api:t,ecModel:e},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=aw,u.resize(o,t)}),e.eachSeries(function(o){Vu({targetModel:o,coordSysType:"geo",coordSysProvider:function(){var s=o.subType==="map"?o.getHostGeoModel():o.getReferringComponents("geo",fe).models[0];return s&&s.coordinateSystem},allowNotFound:!0})});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),A(i,function(o,s){var l=Z(o,function(f){return f.get("nameMap")}),u=new rw(s,s,$({nameMap:Sm(l),api:t,ecModel:e},n(o[0])));u.zoomLimit=Ue.apply(null,Z(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=aw,u.resize(o[0],t),A(o,function(f){f.coordinateSystem=u,O$(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=at(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=pn.load(t,a,n);return A(l.regions,function(u){var f=u.name,v=o.get(f),c=u.properties&&u.properties.echartsStyle;v||(v={name:f},i.push(v)),c&&wt(v,c)}),i},r}(),B$=new N$;const yP=B$;var z$=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n);var i=pn.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||F.color.backgroundTint)}lo(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=yP.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=Oa(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Bt(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},at()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Bt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(lt(i))return o.status=a,i(o);if(J(i))return i.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 a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[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:F.color.tertiary},itemStyle:{borderWidth:.5,borderColor:F.color.border},emphasis:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},select:{label:{show:!0,color:F.color.primary},itemStyle:{color:F.color.highlight}},regions:[]},e}(kt);const V$=z$;var G$=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new dP(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;qi(t.target,function(n){return(a=yt(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=yt(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!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}(se);const F$=G$;function H$(r,e,t){pn.registerMap(r,e,t)}function mP(r){r.registerCoordinateSystem("geo",yP),r.registerComponentModel(V$),r.registerComponentView(F$),r.registerImpl("registerMap",H$),r.registerImpl("getMap",function(t){return pn.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;A(u.regions,function(v){o[v.name]=l.isSelected(v.name)||!1});var f=[];A(o,function(v,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType;i||(t.geoId!=null?i="geo":t.seriesId!=null&&(i="series")),i||(i="series"),a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=_h(s,t,o.get("scaleLimit"));o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&A(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function W$(r){Ct(mP),r.registerChartView(M$),r.registerSeriesModel(L$),r.registerLayout(R$),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,P$),jL("map",r.registerAction)}function $$(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],a,n;a=t.pop();)if(n=a.children,a.isExpand&&n.length)for(var i=n.length,o=i-1;o>=0;o--){var s=n[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function U$(r,e){var t=r.isExpand?r.children:[],a=r.parentNode.children,n=r.hierNode.i?a[r.hierNode.i-1]:null;if(t.length){Z$(r);var i=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;n?(r.hierNode.prelim=n.hierNode.prelim+e(r,n),r.hierNode.modifier=r.hierNode.prelim-i):r.hierNode.prelim=i}else n&&(r.hierNode.prelim=n.hierNode.prelim+e(r,n));r.parentNode.hierNode.defaultAncestor=X$(r,n,r.parentNode.hierNode.defaultAncestor||a[0],e)}function Y$(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function nw(r){return arguments.length?r:j$}function Gl(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Z$(r){for(var e=r.children,t=e.length,a=0,n=0;--t>=0;){var i=e[t];i.hierNode.prelim+=a,i.hierNode.modifier+=a,n+=i.hierNode.change,a+=i.hierNode.shift+n}}function X$(r,e,t,a){if(e){for(var n=r,i=r,o=i.parentNode.children[0],s=e,l=n.hierNode.modifier,u=i.hierNode.modifier,f=o.hierNode.modifier,v=s.hierNode.modifier;s=ep(s),i=rp(i),s&&i;){n=ep(n),o=rp(o),n.hierNode.ancestor=r;var c=s.hierNode.prelim+v-i.hierNode.prelim-u+a(s,i);c>0&&(K$(q$(s,r,t),r,c),u+=c,l+=c),v+=s.hierNode.modifier,u+=i.hierNode.modifier,l+=n.hierNode.modifier,f+=o.hierNode.modifier}s&&!ep(n)&&(n.hierNode.thread=s,n.hierNode.modifier+=v-l),i&&!rp(o)&&(o.hierNode.thread=i,o.hierNode.modifier+=u-f,t=r)}return t}function ep(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function rp(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function q$(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function K$(r,e,t){var a=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=a,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=a}function j$(r,e){return r.parentNode===e.parentNode?1:2}var J$=function(){function r(){this.parentPoint=[],this.childPoints=[]}return r}(),Q$=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new J$},e.prototype.buildPath=function(t,a){var n=a.childPoints,i=n.length,o=a.parentPoint,s=n[0],l=n[i-1];if(i===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=a.orient,f=u==="TB"||u==="BT"?0:1,v=1-f,c=j(a.forkPosition,1),h=[];h[f]=o[f],h[v]=o[v]+(l[v]-o[v])*c,t.moveTo(o[0],o[1]),t.lineTo(h[0],h[1]),t.moveTo(s[0],s[1]),h[f]=s[f],t.lineTo(h[0],h[1]),h[f]=l[f],t.lineTo(h[0],h[1]),t.lineTo(l[0],l[1]);for(var d=1;d<i-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[f]=p[f],t.lineTo(h[0],h[1])}},e}(It),t8=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ft,t}return e.prototype.init=function(t,a){this._controller=new Lo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,n),this._updateController(t,null,a,n);var u=this._data;i.diff(u).add(function(f){iw(i,f)&&ow(i,f,null,s,t)}).update(function(f,v){var c=u.getItemGraphicEl(v);if(!iw(i,f)){c&&lw(u,v,c,s,t);return}ow(i,f,c,s,t)}).remove(function(f){var v=u.getItemGraphicEl(f);v&&lw(u,f,v,s,t)}).execute(),this._nodeScaleRatio=t.get("nodeScaleRatio"),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&i.eachItemGraphicEl(function(f,v){f.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:v})})}),this._data=i},e.prototype._updateViewCoordSys=function(t,a){var n=t.getData(),i=[];n.each(function(v){var c=n.getItemLayout(v);c&&!isNaN(c.x)&&!isNaN(c.y)&&i.push([+c.x,+c.y])});var o=[],s=[];Kc(i,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=new Io(null,{api:a,ecModel:t.ecModel});f.zoomLimit=t.get("scaleLimit"),f.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),f.setCenter(t.get("center")),f.setZoom(t.get("zoom")),this.group.attr({x:f.x,y:f.y,scaleX:f.scaleX,scaleY:f.scaleY}),this._min=o,this._max=s},e.prototype._updateController=function(t,a,n,i){var o=this;lP(t,i,this.group,this._controller,this._controllerHost,a),this._controller.on("zoom",function(s){o._updateNodeAndLinkScale(t)})},e.prototype._updateNodeAndLinkScale=function(t){var a=t.getData(),n=this._getNodeGlobalScale(t);a.eachItemGraphicEl(function(i,o){i.setSymbolScale(n)})},e.prototype._getNodeGlobalScale=function(t){var a=t.coordinateSystem;if(a.type!=="view")return 1;var n=this._nodeScaleRatio,i=a.scaleX||1,o=a.getZoom(),s=(o-1)*n+1;return s/i},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}(Jt);function iw(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function ow(r,e,t,a,n){var i=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:F.color.neutral00,f=r.tree.root,v=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(v.dataIndex),h=v.getLayout(),d=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=o.getLayout();i?(t=new $u(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=d.x,t.y=d.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=p.rawX,t.__radialRawY=p.rawY,a.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Nt(t,{x:p.x,y:p.y},n);var g=t.getSymbolPath();if(n.get("layout")==="radial"){var y=f.children[0],m=y.getLayout(),_=y.children.length,S=void 0,b=void 0;if(p.x===m.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};S=Math.atan2(x.y-m.y,x.x-m.x),S<0&&(S=Math.PI*2+S),b=x.x<m.x,b&&(S=S-Math.PI)}else S=Math.atan2(p.y-m.y,p.x-m.x),S<0&&(S=Math.PI*2+S),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(b=p.x<m.x,b&&(S=S-Math.PI)):(b=p.x>m.x,b||(S=S-Math.PI));var w=b?"left":"right",T=s.getModel("label"),C=T.get("rotate"),M=C*(Math.PI/180),D=g.getTextContent();D&&(g.setTextConfig({position:T.get("position")||w,rotation:C==null?-S:M,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),L=I==="relative"?au(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;L&&(yt(t).focus=L),e8(n,o,f,t,d,h,p,a),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var k=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);k&&k.hoverState===Ou||Zv(t.__edge,P)}})}function e8(r,e,t,a,n,i,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),v=r.getOrient(),c=r.get(["lineStyle","curveness"]),h=r.get("edgeForkPosition"),d=l.getModel("lineStyle").getLineStyle(),p=a.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(p||(p=a.__edge=new rh({shape:Ey(f,v,c,n,n)})),Nt(p,{shape:Ey(f,v,c,i,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var g=e.children,y=[],m=0;m<g.length;m++){var _=g[m].getLayout();y.push([_.x,_.y])}p||(p=a.__edge=new Q$({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:v,forkPosition:h}})),Nt(p,{shape:{parentPoint:[o.x,o.y],childPoints:y}},r)}p&&!(u==="polyline"&&!e.isExpand)&&(p.useStyle(ht({strokeNoScale:!0,fill:null},d)),De(p,l,"lineStyle"),vo(p),s.add(p))}function sw(r,e,t,a,n){var i=e.tree.root,o=_P(i,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),v=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?v:void 0),h=a.get("edgeShape"),d=a.get("layout"),p=a.get("orient"),g=a.get(["lineStyle","curveness"]);c&&(h==="curve"?jn(c,{shape:Ey(d,p,g,l,l),style:{opacity:0}},a,{cb:function(){t.remove(c)},removeOpt:n}):h==="polyline"&&a.get("layout")==="orthogonal"&&jn(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},a,{cb:function(){t.remove(c)},removeOpt:n}))}}function _P(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,a;a=t.getLayout(),a==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:a}}function lw(r,e,t,a,n){var i=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=_P(o,i).sourceLayout,l={duration:n.get("animationDurationUpdate"),easing:n.get("animationEasingUpdate")};jn(t,{x:s.x+1,y:s.y+1},n,{cb:function(){a.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),i.children.forEach(function(u){sw(u,r,a,n,l)}),sw(i,r,a,n,l)}function Ey(r,e,t,a,n){var i,o,s,l,u,f,v,c;if(r==="radial"){u=a.rawX,v=a.rawY,f=n.rawX,c=n.rawY;var h=Gl(u,v),d=Gl(u,v+(c-v)*t),p=Gl(f,c+(v-c)*t),g=Gl(f,c);return{x1:h.x||0,y1:h.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:p.x||0,cpy2:p.y||0}}else u=a.x,v=a.y,f=n.x,c=n.y,(e==="LR"||e==="RL")&&(i=u+(f-u)*t,o=v,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(i=u,o=v+(c-v)*t,s=f,l=c+(v-c)*t);return{x1:u,y1:v,x2:f,y2:c,cpx1:i,cpy1:o,cpx2:s,cpy2:l}}const r8=t8;var Wr=Lt();function SP(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,xP(e,t,r),A(t,function(a){A(e.TRANSFERABLE_METHODS,function(n){a.wrapMethod(n,xt(a8,r))})}),e.wrapMethod("cloneShallow",xt(i8,r)),A(e.CHANGABLE_METHODS,function(a){e.wrapMethod(a,xt(n8,r))}),Qe(t[e.dataType]===e)}function a8(r,e){if(l8(this)){var t=$({},Wr(this).datas);t[this.dataType]=e,xP(e,t,r)}else U0(e,this.dataType,Wr(this).mainData,r);return e}function n8(r,e){return r.struct&&r.struct.update(),e}function i8(r,e){return A(Wr(e).datas,function(t,a){t!==e&&U0(t.cloneShallow(),a,e,r)}),e}function o8(r){var e=Wr(this).mainData;return r==null||e==null?e:Wr(e).datas[r]}function s8(){var r=Wr(this).mainData;return r==null?[{data:r}]:Z(Pt(Wr(r).datas),function(e){return{type:e,data:Wr(r).datas[e]}})}function l8(r){return Wr(r).mainData===r}function xP(r,e,t){Wr(r).datas={},A(e,function(a,n){U0(a,n,r,t)})}function U0(r,e,t,a){Wr(t).datas[e]=r,Wr(r).mainData=t,r.dataType=e,a.struct&&(r[a.structAttr]=a.struct,a.struct[a.datasAttr[e]]=r),r.getLinkedData=o8,r.getLinkedDataAll=s8}var u8=function(){function r(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 r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,a){lt(e)&&(a=t,t=e,e=null),e=e||{},J(e)&&(e={order:e});var n=e.order||"preorder",i=this[e.attr||"children"],o;n==="preorder"&&(o=t.call(a,this));for(var s=0;!o&&s<i.length;s++)i[s].eachNode(e,t,a);n==="postorder"&&t.call(a,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var a=0;a<this.children.length;a++){var n=this.children[a];n.updateDepthAndHeight(e+1),n.height>t&&(t=n.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].getNodeById(e);if(i)return i}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,a=this.children,n=a.length;t<n;t++){var i=a[t].contains(e);if(i)return i}},r.prototype.getAncestors=function(e){for(var t=[],a=e?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r}(),f8=function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,a){this.root.eachNode(e,t,a)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,a=0,n=t.length;a<n;a++)t[a].dataIndex=-1;for(var a=0,n=e.count();a<n;a++)t[e.getRawIndex(a)].dataIndex=a},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,a){var n=new r(t),i=[],o=1;s(e);function s(f,v){var c=f.value;o=Math.max(o,U(c)?c.length:1),i.push(f);var h=new u8(Ae(f.name,""),n);v?v8(h,v):n.root=h,n._nodes.push(h);var d=f.children;if(d)for(var p=0;p<d.length;p++)s(d[p],h)}n.root.updateDepthAndHeight(0);var l=Hu(i,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ir(l,t);return u.initData(i),a&&a(u),SP({mainData:u,struct:n,structAttr:"tree"}),n.update(),n},r}();function v8(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}const Y0=f8;function Au(r,e,t){if(r&&bt(e,r.type)>=0){var a=t.getData().tree.root,n=r.targetNode;if(J(n)&&(n=a.getNodeById(n)),n&&a.contains(n))return{node:n};var i=r.targetNodeId;if(i!=null&&(n=a.getNodeById(i)))return{node:n}}}function bP(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Z0(r,e){var t=bP(r);return bt(t,e)>=0}function xh(r,e){for(var t=[];r;){var a=r.dataIndex;t.push({name:r.name,dataIndex:a,value:e.getRawValue(a)}),r=r.parentNode}return t.reverse(),t}var c8=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var a={name:t.name,children:t.data},n=t.leaves||{},i=new Bt(n,this,this.ecModel),o=Y0.createTree(a,this,s);function s(v){v.wrapMethod("getItemModel",function(c,h){var d=o.getNodeByDataIndex(h);return d&&d.children.length&&d.isExpand||(c.parentModel=i),c})}var l=0;o.eachNode("preorder",function(v){v.depth>l&&(l=v.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(v){var c=v.hostTree.data.getRawDataItem(v.dataIndex);v.isExpand=c&&c.collapsed!=null?!c.collapsed:v.depth<=f}),o.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,a,n){for(var i=this.getData().tree,o=i.root.children[0],s=i.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return xe("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=xh(n,this),a.collapsed=!n.isExpand,a},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:F.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(ie);const h8=c8;function d8(r,e,t){for(var a=[r],n=[],i;i=a.pop();)if(n.push(i),i.isExpand){var o=i.children;if(o.length)for(var s=0;s<o.length;s++)a.push(o[s])}for(;i=n.pop();)e(i,t)}function xl(r,e){for(var t=[r],a;a=t.pop();)if(e(a),a.isExpand){var n=a.children;if(n.length)for(var i=n.length-1;i>=0;i--)t.push(n[i])}}function p8(r,e){r.eachSeriesByType("tree",function(t){g8(t,e)})}function g8(r,e){var t=Ie(r,e).refContainer,a=ne(r.getBoxLayoutParams(),t);r.layoutInfo=a;var n=r.get("layout"),i=0,o=0,s=null;n==="radial"?(i=2*Math.PI,o=Math.min(a.height,a.width)/2,s=nw(function(S,b){return(S.parentNode===b.parentNode?1:2)/S.depth})):(i=a.width,o=a.height,s=nw());var l=r.getData().tree.root,u=l.children[0];if(u){$$(l),d8(u,U$,s),l.hierNode.modifier=-u.hierNode.prelim,xl(u,Y$);var f=u,v=u,c=u;xl(u,function(S){var b=S.getLayout().x;b<f.getLayout().x&&(f=S),b>v.getLayout().x&&(v=S),S.depth>c.depth&&(c=S)});var h=f===v?1:s(f,v)/2,d=h-f.getLayout().x,p=0,g=0,y=0,m=0;if(n==="radial")p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),xl(u,function(S){y=(S.getLayout().x+d)*p,m=(S.depth-1)*g;var b=Gl(y,m);S.setLayout({x:b.x,y:b.y,rawX:y,rawY:m},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(g=o/(v.getLayout().x+h+d),p=i/(c.depth-1||1),xl(u,function(S){m=(S.getLayout().x+d)*g,y=_==="LR"?(S.depth-1)*p:i-(S.depth-1)*p,S.setLayout({x:y,y:m},!0)})):(_==="TB"||_==="BT")&&(p=i/(v.getLayout().x+h+d),g=o/(c.depth-1||1),xl(u,function(S){y=(S.getLayout().x+d)*p,m=_==="TB"?(S.depth-1)*g:o-(S.depth-1)*g,S.setLayout({x:y,y:m},!0)}))}}}function y8(r){r.eachSeriesByType("tree",function(e){var t=e.getData(),a=t.tree;a.eachNode(function(n){var i=n.getModel(),o=i.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(n.dataIndex,"style");$(s,o)})})}function m8(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},function(a){var n=e.dataIndex,i=a.getData().tree,o=i.getNodeByDataIndex(n);o.isExpand=!o.isExpand})}),r.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"tree",query:e},function(n){var i=n.coordinateSystem,o=_h(i,e,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}function _8(r){r.registerChartView(r8),r.registerSeriesModel(h8),r.registerLayout(p8),r.registerVisual(y8),m8(r)}var uw=["treemapZoomToNode","treemapRender","treemapMove"];function S8(r){for(var e=0;e<uw.length;e++)r.registerAction({type:uw[e],update:"updateView"},pe);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,a){a.eachComponent({mainType:"series",subType:"treemap",query:t},n);function n(i,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Au(t,s,i);if(l){var u=i.getViewRoot();u&&(t.direction=Z0(u,l.node)?"rollUp":"drillDown"),i.resetViewRoot(l.node)}}})}function wP(r){var e=r.getData(),t=e.tree,a={};t.eachNode(function(n){for(var i=n;i&&i.depth>1;)i=i.parentNode;var o=Qg(r.ecModel,i.name||i.dataIndex+"",a);n.setVisual("decal",o)})}var x8=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};TP(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},s=new Bt({itemStyle:o},this,a);i=t.levels=b8(i,a);var l=Z(i||[],function(v){return new Bt(v,s,a)},this),u=Y0.createTree(n,this,f);function f(v){v.wrapMethod("getItemModel",function(c,h){var d=u.getNodeByDataIndex(h),p=d?l[d.depth]:null;return c.parentModel=p||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xe("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treeAncestors=xh(n,this),a.treePathInfo=a.treeAncestors,a},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},$(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var a=this._idIndexMap;a||(a=this._idIndexMap=at(),this._idIndexMapCount=0);var n=a.get(t);return n==null&&a.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){wP(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:F.size.l,top:F.size.xxxl,right:F.size.l,bottom:F.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:F.size.m,emptyItemWidth:25,itemStyle:{color:F.color.backgroundShade,textStyle:{color:F.color.secondary}},emphasis:{itemStyle:{color:F.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:F.color.neutral00,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:F.color.neutral00,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}(ie);function TP(r){var e=0;A(r.children,function(a){TP(a);var n=a.value;U(n)&&(n=n[0]),e+=n});var t=r.value;U(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),U(r.value)?r.value[0]=t:r.value=t}function b8(r,e){var t=Zt(e.get("color")),a=Zt(e.get(["aria","decal","decals"]));if(t){r=r||[];var n,i;A(r,function(s){var l=new Bt(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(n=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(i=!0)});var o=r[0]||(r[0]={});return n||(o.color=t.slice()),!i&&a&&(o.decal=a.slice()),r}}const w8=x8;var T8=8,fw=8,ap=5,C8=function(){function r(e){this.group=new ft,e.add(this.group)}return r.prototype.render=function(e,t,a,n){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!i.get("show")||!a)){var s=i.getModel("itemStyle"),l=i.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),v=Ie(e,t).refContainer,c={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},h={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},d=ne(c,v);this._prepare(a,h,u),this._renderContent(e,h,d,s,l,u,f,n),lh(o,c,v)}},r.prototype._prepare=function(e,t,a){for(var n=e;n;n=n.parentNode){var i=Ae(n.getModel().get("name"),""),o=a.getTextRect(i),s=Math.max(o.width+T8*2,t.emptyItemWidth);t.totalWidth+=s+fw,t.renderList.push({node:n,text:i,width:s})}},r.prototype._renderContent=function(e,t,a,n,i,o,s,l){for(var u=0,f=t.emptyItemWidth,v=e.get(["breadcrumb","height"]),c=t.totalWidth,h=t.renderList,d=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var g=h[p],y=g.node,m=g.width,_=g.text;c>a.width&&(c-=m-f,m=f,_=null);var S=new lr({shape:{points:A8(u,0,m,v,p===h.length-1,p===0)},style:ht(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Ot({style:jt(o,{text:_})}),textConfig:{position:"inside"},z2:Gs*1e4,onclick:xt(l,y)});S.disableLabelAnimation=!0,S.getTextContent().ensureState("emphasis").style=jt(s,{text:_}),S.ensureState("emphasis").style=d,ae(S,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(S),M8(S,e,y),u+=m+fw}},r.prototype.remove=function(){this.group.removeAll()},r}();function A8(r,e,t,a,n,i){var o=[[n?r:r-ap,e],[r+t,e],[r+t,e+a],[n?r:r-ap,e+a]];return!i&&o.splice(2,0,[r+t+ap,e+a/2]),!n&&o.push([r,e+a/2]),o}function M8(r,e,t){yt(r).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&&xh(t,e)}}const D8=C8;var L8=function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,a,n,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:a,delay:n,easing:i}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,a=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},n=0,i=this._storage.length;n<i;n++){var o=this._storage[n];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:a,aborted:a})}return this},r}();function I8(){return new L8}var Oy=ft,vw=Dt,cw=3,hw="label",dw="upperLabel",P8=Gs*10,R8=Gs*2,k8=Gs*3,Ni=fo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),pw=function(r){var e=Ni(r);return e.stroke=e.fill=e.lineWidth=null,e},Sc=Lt(),E8=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=bl(),t}return e.prototype.render=function(t,a,n,i){var o=a.findComponents({mainType:"series",subType:"treemap",query:i});if(!(bt(o,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=a;var s=["treemapZoomToNode","treemapRootToNode"],l=Au(i,s,t),u=i&&i.type,f=t.layoutInfo,v=!this._oldTree,c=this._storage,h=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(f),p=t.get("animation"),g=this._doRender(d,t,h);p&&!v&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(d,g,t,h):g.renderFinally(),this._resetController(n),this._renderBreadcrumb(t,n,l)}},e.prototype._giveContainerGroup=function(t){var a=this._containerGroup;return a||(a=this._containerGroup=new Oy,this._initEvents(a),this.group.add(a)),a.x=t.x,a.y=t.y,a},e.prototype._doRender=function(t,a,n){var i=a.getData().tree,o=this._oldTree,s=bl(),l=bl(),u=this._storage,f=[];function v(m,_,S,b){return O8(a,l,u,n,s,f,m,_,S,b)}p(i.root?[i.root]:[],o&&o.root?[o.root]:[],t,i===o||!o,0);var c=g(u);if(this._oldTree=i,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,d=i.root.getLayout();d.width===h.width&&d.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:c,renderFinally:y};function p(m,_,S,b,x){b?(_=m,A(m,function(C,M){!C.isRemoved()&&T(M,M)})):new hn(_,m,w,w).add(T).update(T).remove(xt(T,null)).execute();function w(C){return C.getId()}function T(C,M){var D=C!=null?m[C]:null,I=M!=null?_[M]:null,L=v(D,I,S,x);L&&p(D&&D.viewChildren||[],I&&I.viewChildren||[],L,b,x+1)}}function g(m){var _=bl();return m&&A(m,function(S,b){var x=_[b];A(S,function(w){w&&(x.push(w),Sc(w).willDelete=!0)})}),_}function y(){A(c,function(m){A(m,function(_){_.parent&&_.parent.remove(_)})}),A(f,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,a,n,i){var o=n.get("animationDurationUpdate"),s=n.get("animationEasing"),l=(lt(o)?0:o)||0,u=(lt(s)?null:s)||"cubicOut",f=I8();A(a.willDeleteEls,function(v,c){A(v,function(h,d){if(!h.invisible){var p=h.parent,g,y=Sc(p);if(i&&i.direction==="drillDown")g=p===i.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var m=0,_=0;y.willDelete||(m=y.nodeWidth/2,_=y.nodeHeight/2),g=c==="nodeGroup"?{x:m,y:_,style:{opacity:0}}:{shape:{x:m,y:_,width:0,height:0},style:{opacity:0}}}g&&f.add(h,g,l,0,u)}})}),A(this._storage,function(v,c){A(v,function(h,d){var p=a.lastsForAnimation[c][d],g={};p&&(h instanceof ft?p.oldX!=null&&(g.x=h.x,g.y=h.y,h.x=p.oldX,h.y=p.oldY):(p.oldShape&&(g.shape=$({},h.shape),h.setShape(p.oldShape)),p.fadein?(h.setStyle("opacity",0),g.style={opacity:1}):h.style.opacity!==1&&(g.style={opacity:1})),f.add(h,g,l,0,u))})},this),this._state="animating",f.finished(Q(function(){this._state="ready",a.renderFinally()},this)).start()},e.prototype._resetController=function(t){var a=this,n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost);var o=this.seriesModel;n||(n=this._controller=new Lo(t.getZr()),n.on("pan",Q(this._onPan,this)),n.on("zoom",Q(this._onZoom,this))),n.enable(o.get("roam"),{api:t,zInfo:{component:o},triggerInfo:{roamTrigger:o.get("roamTrigger"),isInSelf:function(s,l,u){var f=a._containerGroup;return f?f.getBoundingRect().contain(l-f.x,u-f.y):!1}}}),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.get("zoom")},e.prototype._clearController=function(){var t=this._controller;this._controllerHost=null,t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>cw||Math.abs(t.dy)>cw)){var a=this.seriesModel.getData().tree.root;if(!a)return;var n=a.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var a=t.originX,n=t.originY,i=t.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new gt(s.x,s.y,s.width,s.height),u=null,f=this._controllerHost;u=f.zoomLimit;var v=f.zoom=f.zoom||1;if(v*=i,u){var c=u.min||0,h=u.max||1/0;v=Math.max(Math.min(h,v),c)}var d=v/f.zoom;f.zoom=v;var p=this.seriesModel.layoutInfo;a-=p.x,n-=p.y;var g=Ge();Na(g,g,[-a,-n]),Tm(g,g,[d,d]),Na(g,g,[a,n]),l.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(t){var a=this;t.on("click",function(n){if(a._state==="ready"){var i=a.seriesModel.get("nodeClick",!0);if(i){var o=a.findTarget(n.offsetX,n.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)a._rootToNode(o);else if(i==="zoomToNode")a._zoomToNode(o);else if(i==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&jv(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,a,n){var i=this;n||(n=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(a.getWidth()/2,a.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new D8(this.group))).render(t,a,n.node,function(o){i._state!=="animating"&&(Z0(t.getViewRoot(),o)?i._rootToNode({node:o}):i._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=bl(),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,a){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,a),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)n={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),n},e.type="treemap",e}(Jt);function bl(){return{nodeGroup:[],background:[],content:[]}}function O8(r,e,t,a,n,i,o,s,l,u){if(!o)return;var f=o.getLayout(),v=r.getData(),c=o.getModel();if(v.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var h=f.width,d=f.height,p=f.borderWidth,g=f.invisible,y=o.getRawIndex(),m=s&&s.getRawIndex(),_=o.viewChildren,S=f.upperHeight,b=_&&_.length,x=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),T=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),M=x.get("borderRadius")||0,D=ot("nodeGroup",Oy);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),Sc(D).nodeWidth=h,Sc(D).nodeHeight=d,f.isAboveViewRoot)return D;var I=ot("background",vw,u,R8);I&&V(D,I,b&&f.upperLabelHeight);var L=c.getModel("emphasis"),P=L.get("focus"),k=L.get("blurScope"),R=L.get("disabled"),N=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(b)vu(D)&&Yi(D,!1),I&&(Yi(I,!R),v.setItemGraphicEl(o.dataIndex,I),Fg(I,N,k));else{var E=ot("content",vw,u,k8);E&&H(D,E),I.disableMorphing=!0,I&&vu(I)&&Yi(I,!1),Yi(D,!R),v.setItemGraphicEl(o.dataIndex,D);var z=c.getShallow("cursor");z&&E.attr("cursor",z),Fg(D,N,k)}return D;function V(st,et,it){var tt=yt(et);if(tt.dataIndex=o.dataIndex,tt.seriesIndex=r.seriesIndex,et.setShape({x:0,y:0,width:h,height:d,r:M}),g)G(et);else{et.invisible=!1;var O=o.getVisual("style"),W=O.stroke,q=pw(x);q.fill=W;var K=Ni(w);K.fill=w.get("borderColor");var pt=Ni(T);pt.fill=T.get("borderColor");var St=Ni(C);if(St.fill=C.get("borderColor"),it){var Tt=h-2*p;Y(et,W,O.opacity,{x:p,y:0,width:Tt,height:S})}else et.removeTextContent();et.setStyle(q),et.ensureState("emphasis").style=K,et.ensureState("blur").style=pt,et.ensureState("select").style=St,vo(et)}st.add(et)}function H(st,et){var it=yt(et);it.dataIndex=o.dataIndex,it.seriesIndex=r.seriesIndex;var tt=Math.max(h-2*p,0),O=Math.max(d-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:tt,height:O,r:M}),g)G(et);else{et.invisible=!1;var W=o.getVisual("style"),q=W.fill,K=pw(x);K.fill=q,K.decal=W.decal;var pt=Ni(w),St=Ni(T),Tt=Ni(C);Y(et,q,W.opacity,null),et.setStyle(K),et.ensureState("emphasis").style=pt,et.ensureState("blur").style=St,et.ensureState("select").style=Tt,vo(et)}st.add(et)}function G(st){!st.invisible&&i.push(st)}function Y(st,et,it,tt){var O=c.getModel(tt?dw:hw),W=Ae(c.get("name"),null),q=O.getShallow("show");Ee(st,Le(c,tt?dw:hw),{defaultText:q?W:null,inheritColor:et,defaultOpacity:it,labelFetcher:r,labelDataIndex:o.dataIndex});var K=st.getTextContent();if(K){var pt=K.style,St=Fc(pt.padding||0);tt&&(st.setTextConfig({layoutRect:tt}),K.disableLabelLayout=!0),K.beforeUpdate=function(){var Et=Math.max((tt?tt.width:st.shape.width)-St[1]-St[3],0),Qt=Math.max((tt?tt.height:st.shape.height)-St[0]-St[2],0);(pt.width!==Et||pt.height!==Qt)&&K.setStyle({width:Et,height:Qt})},pt.truncateMinChar=2,pt.lineOverflow="truncate",X(pt,tt,f);var Tt=K.getState("emphasis");X(Tt?Tt.style:null,tt,f)}}function X(st,et,it){var tt=st?st.text:null;if(!et&&it.isLeafRoot&&tt!=null){var O=r.get("drillDownIcon",!0);st.text=O?O+" "+tt:tt}}function ot(st,et,it,tt){var O=m!=null&&t[st][m],W=n[st];return O?(t[st][m]=null,_t(W,O)):g||(O=new et,O instanceof $r&&(O.z2=N8(it,tt)),At(W,O)),e[st][y]=O}function _t(st,et){var it=st[y]={};et instanceof Oy?(it.oldX=et.x,it.oldY=et.y):it.oldShape=$({},et.shape)}function At(st,et){var it=st[y]={},tt=o.parentNode,O=et instanceof ft;if(tt&&(!a||a.direction==="drillDown")){var W=0,q=0,K=n.background[tt.getRawIndex()];!a&&K&&K.oldShape&&(W=K.oldShape.width,q=K.oldShape.height),O?(it.oldX=0,it.oldY=q):it.oldShape={x:W,y:q,width:0,height:0}}it.fadein=!O}}function N8(r,e){return r*P8+e}const B8=E8;var Mu=A,z8=dt,xc=-1,X0=function(){function r(e){var t=e.mappingMethod,a=e.type,n=this.option=ut(e);this.type=a,this.mappingMethod=t,this._normalizeData=F8[t];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[t],t==="piecewise"?(np(n),V8(n)):t==="category"?n.categories?G8(n):np(n,!0):(Qe(t!=="linear"||n.dataExtent),np(n))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return Q(this._normalizeData,this)},r.listVisualTypes=function(){return Pt(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,a){dt(e)?A(e,t,a):t.call(a,e)},r.mapVisual=function(e,t,a){var n,i=U(e)?[]:dt(e)?{}:(n=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(e){var t={},a;return e&&Mu(r.visualHandlers,function(n,i){e.hasOwnProperty(i)&&(t[i]=e[i],a=!0)}),a?t:null},r.prepareVisualTypes=function(e){if(U(e))e=e.slice();else if(z8(e)){var t=[];Mu(e,function(a,n){t.push(n)}),e=t}else return[];return e.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,a){for(var n,i=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||J(l)&&l===e+"")return o;a&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,v=u.close;if(f){if(f[0]===-1/0){if(Uf(v[1],e,f[1]))return o}else if(f[1]===1/0){if(Uf(v[0],f[0],e))return o}else if(Uf(v[0],f[0],e)&&Uf(v[1],e,f[1]))return o;a&&c(f[0],o),a&&c(f[1],o)}}if(a)return e===1/0?t.length-1:e===-1/0?0:n;function c(h,d){var p=Math.abs(h-e);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:wl("color"),getColorMapper:function(){var e=this.option;return Q(e.mappingMethod==="category"?function(t,a){return!a&&(t=this._normalizeData(t)),Fl.call(this,t)}:function(t,a,n){var i=!!n;return!a&&(t=this._normalizeData(t)),n=zh(t,e.parsedVisual,n),i?n:Ra(n,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ra(zh(e,this.option.parsedVisual),"rgba")},category:Fl,piecewise:function(e,t){var a=By.call(this,t);return a==null&&(a=Ra(zh(e,this.option.parsedVisual),"rgba")),a},fixed:Bi}},colorHue:$f(function(e,t){return Un(e,t)}),colorSaturation:$f(function(e,t){return Un(e,null,t)}),colorLightness:$f(function(e,t){return Un(e,null,null,t)}),colorAlpha:$f(function(e,t){return Bv(e,t)}),decal:{applyVisual:wl("decal"),_normalizedToVisual:{linear:null,category:Fl,piecewise:null,fixed:null}},opacity:{applyVisual:wl("opacity"),_normalizedToVisual:Ny([0,1])},liftZ:{applyVisual:wl("liftZ"),_normalizedToVisual:{linear:Bi,category:Bi,piecewise:Bi,fixed:Bi}},symbol:{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("symbol",n)},_normalizedToVisual:{linear:gw,category:Fl,piecewise:function(e,t){var a=By.call(this,t);return a==null&&(a=gw.call(this,e)),a},fixed:Bi}},symbolSize:{applyVisual:wl("symbolSize"),_normalizedToVisual:Ny([0,1])}},r}();function V8(r){var e=r.pieceList;r.hasSpecialVisual=!1,A(e,function(t,a){t.originIndex=a,t.visual!=null&&(r.hasSpecialVisual=!0)})}function G8(r){var e=r.categories,t=r.categoryMap={},a=r.visual;if(Mu(e,function(o,s){t[o]=s}),!U(a)){var n=[];dt(a)?Mu(a,function(o,s){var l=t[s];n[l??xc]=o}):n[xc]=a,a=CP(r,n)}for(var i=e.length-1;i>=0;i--)a[i]==null&&(delete t[e[i]],e.pop())}function np(r,e){var t=r.visual,a=[];dt(t)?Mu(t,function(i){a.push(i)}):t!=null&&a.push(t);var n={color:1,symbol:1};!e&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),CP(r,a)}function $f(r){return{applyVisual:function(e,t,a){var n=this.mapValueToVisual(e);a("color",r(t("color"),n))},_normalizedToVisual:Ny([0,1])}}function gw(r){var e=this.option.visual;return e[Math.round(Wt(r,[0,1],[0,e.length-1],!0))]||{}}function wl(r){return function(e,t,a){a(r,this.mapValueToVisual(e))}}function Fl(r){var e=this.option.visual;return e[this.option.loop&&r!==xc?r%e.length:r]}function Bi(){return this.option.visual[0]}function Ny(r){return{linear:function(e){return Wt(e,r,this.option.visual,!0)},category:Fl,piecewise:function(e,t){var a=By.call(this,t);return a==null&&(a=Wt(e,r,this.option.visual,!0)),a},fixed:Bi}}function By(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var a=X0.findPieceIndex(r,t),n=t[a];if(n&&n.visual)return n.visual[this.type]}}function CP(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=Z(e,function(t){var a=dr(t);return a||[0,0,0,1]})),e}var F8={linear:function(r){return Wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=X0.findPieceIndex(r,e,!0);if(t!=null)return Wt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??xc},fixed:pe};function Uf(r,e,t){return r?e<=t:e<t}const Ye=X0;var H8="itemStyle",AP=Lt();const W8={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||MP(t,{},r.getViewRoot().getAncestors(),r)}};function MP(r,e,t,a){var n=r.getModel(),i=r.getLayout(),o=r.hostTree.data;if(!(!i||i.invisible||!i.isInView)){var s=n.getModel(H8),l=$8(s,e,a),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),v=s.get("borderColorSaturation"),c;v!=null&&(c=yw(l),f=U8(v,c)),u.stroke=f;var h=r.viewChildren;if(!h||!h.length)c=yw(l),u.fill=c;else{var d=Y8(r,n,i,s,l,h);A(h,function(p,g){if(p.depth>=t.length||p===t[p.depth]){var y=Z8(n,l,p,g,d,a);MP(p,y,t,a)}})}}}function $8(r,e,t){var a=$({},e),n=t.designatedVisualItemStyle;return A(["color","colorAlpha","colorSaturation"],function(i){n[i]=e[i];var o=r.get(i);n[i]=null,o!=null&&(a[i]=o)}),a}function yw(r){var e=ip(r,"color");if(e){var t=ip(r,"colorAlpha"),a=ip(r,"colorSaturation");return a&&(e=Un(e,null,null,a)),t&&(e=Bv(e,t)),e}}function U8(r,e){return e!=null?Un(e,null,null,r):null}function ip(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function Y8(r,e,t,a,n,i){if(!(!i||!i.length)){var o=op(e,"color")||n.color!=null&&n.color!=="none"&&(op(e,"colorAlpha")||op(e,"colorSaturation"));if(o){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 f=e.get("colorMappingBy"),v={type:o.name,dataExtent:u,visual:o.range};v.type==="color"&&(f==="index"||f==="id")?(v.mappingMethod="category",v.loop=!0):v.mappingMethod="linear";var c=new Ye(v);return AP(c).drColorMappingBy=f,c}}}function op(r,e){var t=r.get(e);return U(t)&&t.length?{name:e,range:t}:null}function Z8(r,e,t,a,n,i){var o=$({},e);if(n){var s=n.type,l=s==="color"&&AP(n).drColorMappingBy,u=l==="index"?a:l==="id"?i.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=n.mapValueToVisual(u)}return o}var Du=Math.max,bc=Math.min,mw=Ue,q0=A,DP=["itemStyle","borderWidth"],X8=["itemStyle","gapWidth"],q8=["upperLabel","show"],K8=["upperLabel","height"];const j8={seriesType:"treemap",reset:function(r,e,t,a){var n=r.option,i=Ie(r,t).refContainer,o=ne(r.getBoxLayoutParams(),i),s=n.size||[],l=j(mw(o.width,s[0]),i.width),u=j(mw(o.height,s[1]),i.height),f=a&&a.type,v=["treemapZoomToNode","treemapRootToNode"],c=Au(a,v,r),h=f==="treemapRender"||f==="treemapMove"?a.rootRect:null,d=r.getViewRoot(),p=bP(d);if(f!=="treemapMove"){var g=f==="treemapZoomToNode"?aU(r,c,d,l,u):h?[h.width,h.height]:[l,u],y=n.sort;y&&y!=="asc"&&y!=="desc"&&(y="desc");var m={squareRatio:n.squareRatio,sort:y,leafDepth:n.leafDepth};d.hostTree.clearLayouts();var _={x:0,y:0,width:g[0],height:g[1],area:g[0]*g[1]};d.setLayout(_),LP(d,m,!1,0),_=d.getLayout(),q0(p,function(b,x){var w=(p[x+1]||d).getValue();b.setLayout($({dataExtent:[w,w],borderWidth:0,upperHeight:0},_))})}var S=r.getData().tree.root;S.setLayout(nU(o,h,c),!0),r.setLayoutInfo(o),IP(S,new gt(-o.x,-o.y,t.getWidth(),t.getHeight()),p,d,0)}};function LP(r,e,t,a){var n,i;if(!r.isRemoved()){var o=r.getLayout();n=o.width,i=o.height;var s=r.getModel(),l=s.get(DP),u=s.get(X8)/2,f=PP(s),v=Math.max(l,f),c=l-u,h=v-u;r.setLayout({borderWidth:l,upperHeight:v,upperLabelHeight:f},!0),n=Du(n-2*c,0),i=Du(i-c-h,0);var d=n*i,p=J8(r,s,d,e,t,a);if(p.length){var g={x:c,y:h,width:n,height:i},y=bc(n,i),m=1/0,_=[];_.area=0;for(var S=0,b=p.length;S<b;){var x=p[S];_.push(x),_.area+=x.getLayout().area;var w=rU(_,y,e.squareRatio);w<=m?(S++,m=w):(_.area-=_.pop().getLayout().area,_w(_,y,g,u,!1),y=bc(g.width,g.height),_.length=_.area=0,m=1/0)}if(_.length&&_w(_,y,g,u,!0),!t){var T=s.get("childrenVisibleMin");T!=null&&d<T&&(t=!0)}for(var S=0,b=p.length;S<b;S++)LP(p[S],e,t,a+1)}}}function J8(r,e,t,a,n,i){var o=r.children||[],s=a.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=a.leafDepth!=null&&a.leafDepth<=i;if(n&&!l)return r.viewChildren=[];o=$t(o,function(h){return!h.isRemoved()}),tU(o,s);var u=eU(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=Q8(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,v=o.length;f<v;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function Q8(r,e,t,a,n){if(!a)return t;for(var i=r.get("visibleMin"),o=n.length,s=o,l=o-1;l>=0;l--){var u=n[a==="asc"?o-l-1:l].getValue();u/t*e<i&&(s=l,t-=u)}return a==="asc"?n.splice(0,o-s):n.splice(s,o-s),t}function tU(r,e){return e&&r.sort(function(t,a){var n=e==="asc"?t.getValue()-a.getValue():a.getValue()-t.getValue();return n===0?e==="asc"?t.dataIndex-a.dataIndex:a.dataIndex-t.dataIndex:n}),r}function eU(r,e,t){for(var a=0,n=0,i=e.length;n<i;n++)a+=e[n].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=[1/0,-1/0],q0(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:a,dataExtent:s}}function rU(r,e,t){for(var a=0,n=1/0,i=0,o=void 0,s=r.length;i<s;i++)o=r[i].getLayout().area,o&&(o<n&&(n=o),o>a&&(a=o));var l=r.area*r.area,u=e*e*t;return l?Du(u*a/l,l/(u*n)):1/0}function _w(r,e,t,a,n){var i=e===t.width?0:1,o=1-i,s=["x","y"],l=["width","height"],u=t[s[i]],f=e?r.area/e:0;(n||f>t[l[o]])&&(f=t[l[o]]);for(var v=0,c=r.length;v<c;v++){var h=r[v],d={},p=f?h.getLayout().area/f:0,g=d[l[o]]=Du(f-2*a,0),y=t[s[i]]+t[l[i]]-u,m=v===c-1||y<p?y:p,_=d[l[i]]=Du(m-2*a,0);d[s[o]]=t[s[o]]+bc(a,g/2),d[s[i]]=u+bc(a,_/2),u+=m,h.setLayout(d,!0)}t[s[o]]+=f,t[l[o]]-=f}function aU(r,e,t,a,n){var i=(e||{}).node,o=[a,n];if(!i||i===t)return o;for(var s,l=a*n,u=l*r.option.zoomToNodeRatio;s=i.parentNode;){for(var f=0,v=s.children,c=0,h=v.length;c<h;c++)f+=v[c].getValue();var d=i.getValue();if(d===0)return o;u*=f/d;var p=s.getModel(),g=p.get(DP),y=Math.max(g,PP(p));u+=4*g*g+(3*g+y)*Math.pow(u,.5),u>x1&&(u=x1),i=s}u<l&&(u=l);var m=Math.pow(u/l,.5);return[a*m,n*m]}function nU(r,e,t){if(e)return{x:e.x,y:e.y};var a={x:0,y:0};if(!t)return a;var n=t.node,i=n.getLayout();if(!i)return a;for(var o=[i.width/2,i.height/2],s=n;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function IP(r,e,t,a,n){var i=r.getLayout(),o=t[n],s=o&&o===r;if(!(o&&!s||n===t.length&&r!==a)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(i),isAboveViewRoot:s},!0);var l=new gt(e.x-i.x,e.y-i.y,e.width,e.height);q0(r.viewChildren||[],function(u){IP(u,l,t,a,n+1)})}}function PP(r){return r.get(q8)?r.get(K8):0}function iU(r){r.registerSeriesModel(w8),r.registerChartView(B8),r.registerVisual(W8),r.registerLayout(j8),S8(r)}function oU(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getGraph(),i=n.data,o=a.mapArray(a.getName);i.filterSelf(function(s){var l=i.getItemModel(s),u=l.getShallow("category");if(u!=null){Rt(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}function sU(r){var e={};r.eachSeriesByType("graph",function(t){var a=t.getCategoriesData(),n=t.getData(),i={};a.each(function(o){var s=a.getName(o);i["ec-"+s]=o;var l=a.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),a.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],v=0;v<f.length;v++){var c=l.getShallow(f[v],!0);c!=null&&a.setItemVisual(o,f[v],c)}}),a.count()&&n.each(function(o){var s=n.getItemModel(o),l=s.getShallow("category");if(l!=null){J(l)&&(l=i["ec-"+l]);var u=a.getItemVisual(l,"style"),f=n.ensureUniqueItemVisual(o,"style");$(f,u);for(var v=["symbol","symbolSize","symbolKeepAspect"],c=0;c<v.length;c++)n.setItemVisual(o,v[c],a.getItemVisual(l,v[c]))}})})}function Yf(r){return r instanceof Array||(r=[r,r]),r}function lU(r){r.eachSeriesByType("graph",function(e){var t=e.getGraph(),a=e.getEdgeData(),n=Yf(e.get("edgeSymbol")),i=Yf(e.get("edgeSymbolSize"));a.setVisual("fromSymbol",n&&n[0]),a.setVisual("toSymbol",n&&n[1]),a.setVisual("fromSymbolSize",i&&i[0]),a.setVisual("toSymbolSize",i&&i[1]),a.setVisual("style",e.getModel("lineStyle").getLineStyle()),a.each(function(o){var s=a.getItemModel(o),l=t.getEdgeByIndex(o),u=Yf(s.getShallow("symbol",!0)),f=Yf(s.getShallow("symbolSize",!0)),v=s.getModel("lineStyle").getLineStyle(),c=a.ensureUniqueItemVisual(o,"style");switch($(c,v),c.stroke){case"source":{var h=l.node1.getVisual("style");c.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");c.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}var zy="-->",bh=function(r){return r.get("autoCurveness")||null},RP=function(r,e){var t=bh(r),a=20,n=[];if(Rt(t))a=t;else if(U(t)){r.__curvenessList=t;return}e>a&&(a=e);var i=a%2?a+2:a+3;n=[];for(var o=0;o<i;o++)n.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=n},Lu=function(r,e,t){var a=[r.id,r.dataIndex].join("."),n=[e.id,e.dataIndex].join(".");return[t.uid,a,n].join(zy)},kP=function(r){var e=r.split(zy);return[e[0],e[2],e[1]].join(zy)},uU=function(r,e){var t=Lu(r.node1,r.node2,e);return e.__edgeMap[t]},fU=function(r,e){var t=Vy(Lu(r.node1,r.node2,e),e),a=Vy(Lu(r.node2,r.node1,e),e);return t+a},Vy=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function vU(r){bh(r)&&(r.__curvenessList=[],r.__edgeMap={},RP(r))}function cU(r,e,t,a){if(bh(t)){var n=Lu(r,e,t),i=t.__edgeMap,o=i[kP(n)];i[n]&&!o?i[n].isForward=!0:o&&i[n]&&(o.isForward=!0,i[n].isForward=!1),i[n]=i[n]||[],i[n].push(a)}}function K0(r,e,t,a){var n=bh(e),i=U(n);if(!n)return null;var o=uU(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=fU(r,e);RP(e,u),r.lineStyle=r.lineStyle||{};var f=Lu(r.node1,r.node2,e),v=e.__curvenessList,c=i||u%2?0:1;if(o.isForward)return v[c+s];var h=kP(f),d=Vy(h,e),p=v[s+d+c];return a?i?n&&n[0]===0?(d+c)%2?p:-p:((d%2?0:1)+c)%2?p:-p:(d+c)%2?p:-p:v[s+d+c]}function EP(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(a){var n=a.getModel();a.setLayout([+n.get("x"),+n.get("y")])}),j0(t,r)}}function j0(r,e){r.eachEdge(function(t,a){var n=wr(t.getModel().get(["lineStyle","curveness"]),-K0(t,e,a,!0),0),i=rn(t.node1.getLayout()),o=rn(t.node2.getLayout()),s=[i,o];+n&&s.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(s)})}function hU(r,e){r.eachSeriesByType("graph",function(t){var a=t.get("layout"),n=t.coordinateSystem;if(n&&n.type!=="view"){var i=t.getData(),o=[];A(n.dimensions,function(c){o=o.concat(i.mapDimensionsAll(c))});for(var s=0;s<i.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var v=i.get(o[f],s);isNaN(v)||(u=!0),l.push(v)}u?i.setItemLayout(s,n.dataToPoint(l)):i.setItemLayout(s,[NaN,NaN])}j0(i.graph,t)}else(!a||a==="none")&&EP(t)})}function Hl(r){var e=r.coordinateSystem;if(e.type!=="view")return 1;var t=r.option.nodeScaleRatio,a=e.scaleX,n=e.getZoom(),i=(n-1)*t+1;return i/a}function Wl(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var Sw=Math.PI,sp=[];function J0(r,e,t,a){var n=r.coordinateSystem;if(!(n&&n.type!=="view")){var i=n.getBoundingRect(),o=r.getData(),s=o.graph,l=i.width/2+i.x,u=i.height/2+i.y,f=Math.min(i.width,i.height)/2,v=o.count();if(o.setLayout({cx:l,cy:u}),!!v){if(t){var c=n.pointToData(a),h=c[0],d=c[1],p=[h-l,d-u];Bs(p,p),cv(p,p,f),t.setLayout([l+p[0],u+p[1]],!0);var g=r.get(["circular","rotateLabel"]);OP(t,g,l,u)}dU[e](r,s,o,f,l,u,v),s.eachEdge(function(y,m){var _=wr(y.getModel().get(["lineStyle","curveness"]),K0(y,r,m),0),S=rn(y.node1.getLayout()),b=rn(y.node2.getLayout()),x,w=(S[0]+b[0])/2,T=(S[1]+b[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([S,b,x])})}}}var dU={value:function(r,e,t,a,n,i,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var v=f.getValue("value"),c=u*(l?v:1)/2;s+=c,f.setLayout([a*Math.cos(s)+n,a*Math.sin(s)+i]),s+=c})},symbolSize:function(r,e,t,a,n,i,o){var s=0;sp.length=o;var l=Hl(r);e.eachNode(function(v){var c=Wl(v);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var h=Math.asin(c/2/a);isNaN(h)&&(h=Sw/2),sp[v.dataIndex]=h,s+=h*2});var u=(2*Sw-s)/o/2,f=0;e.eachNode(function(v){var c=u+sp[v.dataIndex];f+=c,(!v.getLayout()||!v.getLayout().fixed)&&v.setLayout([a*Math.cos(f)+n,a*Math.sin(f)+i]),f+=c})}};function OP(r,e,t,a){var n=r.getGraphicEl();if(n){var i=r.getModel(),o=i.get(["label","rotate"])||0,s=n.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-a,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var v=f?"left":"right";s.setTextConfig({rotation:-u,position:v,origin:"center"});var c=s.ensureState("emphasis");$(c.textConfig||(c.textConfig={}),{position:v})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function pU(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&J0(e,"symbolSize")})}var qo=sg;function gU(r,e,t){for(var a=r,n=e,i=t.rect,o=i.width,s=i.height,l=[i.x+o/2,i.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<a.length;f++){var v=a[f];v.p||(v.p=_o(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),v.pp=rn(v.p),v.edges=null}var c=t.friction==null?.6:t.friction,h=c,d,p;return{warmUp:function(){h=c*.8},setFixed:function(g){a[g].fixed=!0},setUnfixed:function(g){a[g].fixed=!1},beforeStep:function(g){d=g},afterStep:function(g){p=g},step:function(g){d&&d(a,n);for(var y=[],m=a.length,_=0;_<n.length;_++){var S=n[_];if(!S.ignoreForceLayout){var b=S.n1,x=S.n2;$i(y,x.p,b.p);var w=lg(y)-S.d,T=x.w/(b.w+x.w);isNaN(T)&&(T=0),Bs(y,y),!b.fixed&&qo(b.p,b.p,y,T*w*h),!x.fixed&&qo(x.p,x.p,y,-(1-T)*w*h)}}for(var _=0;_<m;_++){var C=a[_];C.fixed||($i(y,l,C.p),qo(C.p,C.p,y,u*h))}for(var _=0;_<m;_++)for(var b=a[_],M=_+1;M<m;M++){var x=a[M];$i(y,x.p,b.p);var w=lg(y);w===0&&(bm(y,Math.random()-.5,Math.random()-.5),w=1);var D=(b.rep+x.rep)/w/w;!b.fixed&&qo(b.pp,b.pp,y,D),!x.fixed&&qo(x.pp,x.pp,y,-D)}for(var I=[],_=0;_<m;_++){var C=a[_];C.fixed||($i(I,C.p,C.pp),qo(C.p,C.p,I,h),rr(C.pp,C.p))}h=h*.992;var L=h<.01;p&&p(a,n,L),g&&g(L)}}}function yU(r){r.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var a=e.preservedPoints||{},n=e.getGraph(),i=n.data,o=n.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?i.each(function(_){var S=i.getId(_);i.setItemLayout(_,a[S]||[NaN,NaN])}):!l||l==="none"?EP(e):l==="circular"&&J0(e,"value");var u=i.getDataExtent("value"),f=o.getDataExtent("value"),v=s.get("repulsion"),c=s.get("edgeLength"),h=U(v)?v:[v,v],d=U(c)?c:[c,c];d=[d[1],d[0]];var p=i.mapArray("value",function(_,S){var b=i.getItemLayout(S),x=Wt(_,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:i.getItemModel(S).get("fixed"),p:!b||isNaN(b[0])||isNaN(b[1])?null:b}}),g=o.mapArray("value",function(_,S){var b=n.getEdgeByIndex(S),x=Wt(_,f,d);isNaN(x)&&(x=(d[0]+d[1])/2);var w=b.getModel(),T=wr(b.getModel().get(["lineStyle","curveness"]),-K0(b,e,S,!0),0);return{n1:p[b.node1.dataIndex],n2:p[b.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=t.getBoundingRect(),m=gU(p,g,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});m.beforeStep(function(_,S){for(var b=0,x=_.length;b<x;b++)_[b].fixed&&rr(_[b].p,n.getNodeByIndex(b).getLayout())}),m.afterStep(function(_,S,b){for(var x=0,w=_.length;x<w;x++)_[x].fixed||n.getNodeByIndex(x).setLayout(_[x].p),a[i.getId(x)]=_[x].p;for(var x=0,w=S.length;x<w;x++){var T=S[x],C=n.getEdgeByIndex(x),M=T.n1.p,D=T.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],rr(I[0],M),rr(I[1],D),+T.curveness&&(I[2]=[(M[0]+D[0])/2-(M[1]-D[1])*T.curveness,(M[1]+D[1])/2-(D[0]-M[0])*T.curveness]),C.setLayout(I)}}),e.forceLayout=m,e.preservedPoints=a,m.step()}else e.forceLayout=null})}function mU(r,e,t){var a=Ie(r,e),n=$(r.getBoxLayoutParams(),{aspect:t}),i=ne(n,a.refContainer);return iL(r,i,t)}function _U(r,e){var t=[];return r.eachSeriesByType("graph",function(a){Vu({targetModel:a,coordSysType:"view",coordSysProvider:n,isDefaultDataCoordSys:!0});function n(){var i=a.getData(),o=i.mapArray(function(d){var p=i.getItemModel(d);return[+p.get("x"),+p.get("y")]}),s=[],l=[];Kc(o,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]),f=mU(a,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var v=l[0]-s[0],c=l[1]-s[1],h=new Io(null,{api:e,ecModel:r});return h.zoomLimit=a.get("scaleLimit"),h.setBoundingRect(s[0],s[1],v,c),h.setViewRect(f.x,f.y,f.width,f.height),h.setCenter(a.get("center")),h.setZoom(a.get("zoom")),t.push(h),h}}),t}var xw=Me.prototype,lp=rh.prototype,NP=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}();(function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(NP);function up(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var SU=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="ec-line",a}return e.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new NP},e.prototype.buildPath=function(t,a){up(a)?xw.buildPath.call(this,t,a):lp.buildPath.call(this,t,a)},e.prototype.pointAt=function(t){return up(this.shape)?xw.pointAt.call(this,t):lp.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var a=this.shape,n=up(a)?[a.x2-a.x1,a.y2-a.y1]:lp.tangentAt.call(this,t);return Bs(n,n)},e}(It);const BP=SU;var fp=["fromSymbol","toSymbol"];function bw(r){return"_"+r+"Type"}function ww(r,e,t){var a=e.getItemVisual(t,r);if(!a||a==="none")return a;var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Xs(n),u=Co(o||0,l);return a+l+u+(i||"")+(s||"")}function Tw(r,e,t){var a=e.getItemVisual(t,r);if(!(!a||a==="none")){var n=e.getItemVisual(t,r+"Size"),i=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=Xs(n),u=Co(o||0,l),f=be(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,f.name=r,f}}function xU(r){var e=new BP({name:"line",subPixelOptimize:!0});return Gy(e.shape,r),e}function Gy(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var bU=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createLine(t,a,n),i}return e.prototype._createLine=function(t,a,n){var i=t.hostModel,o=t.getItemLayout(a),s=t.getItemVisual(a,"z2"),l=xU(o);l.shape.percent=0,re(l,{z2:nt(s,0),shape:{percent:1}},i,a),this.add(l),A(fp,function(u){var f=Tw(u,t,a);this.add(f),this[bw(u)]=ww(u,t,a)},this),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(a),l={shape:{}};Gy(l.shape,s),Nt(o,l,i,a),A(fp,function(u){var f=ww(u,t,a),v=bw(u);if(this[v]!==f){this.remove(this.childOfName(u));var c=Tw(u,t,a);this.add(c)}this[v]=f},this),this._updateCommonStl(t,a,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,a,n){var i=t.hostModel,o=this.childOfName("line"),s=n&&n.emphasisLineStyle,l=n&&n.blurLineStyle,u=n&&n.selectLineStyle,f=n&&n.labelStatesModels,v=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),v=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),f=Le(d)}var g=t.getItemVisual(a,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,A(fp,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=g.opacity;for(var T=0;T<or.length;T++){var C=or[T],M=o.getState(C);if(M){var D=M.style||{},I=w.ensureState(C),L=I.style||(I.style={});D.stroke!=null&&(L[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(L.opacity=D.opacity)}}w.markRedraw()}},this);var m=i.getRawValue(a);Ee(this,f,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(x,w){return i.getFormattedLabel(x,w,t.dataType)}},inheritColor:y||F.color.neutral99,defaultOpacity:g.opacity,defaultText:(m==null?t.getName(a):isFinite(m)?me(m):m)+""});var _=this.getTextContent();if(_){var S=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var b=S.get("distance");U(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),ae(this,c,h,v)},e.prototype.highlight=function(){vn(this)},e.prototype.downplay=function(){cn(this)},e.prototype.updateLayout=function(t,a){this.setLinePoints(t.getItemLayout(a))},e.prototype.setLinePoints=function(t){var a=this.childOfName("line");Gy(a.shape,t),a.dirty()},e.prototype.beforeUpdate=function(){var t=this,a=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),i=t.getTextContent();if(!a&&!n&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),v=l.pointAt(u),c=$i([],v,f);Bs(c,c);function h(M,D){var I=M.__specifiedRotation;if(I==null){var L=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(L[1],L[0]))}else M.attr("rotation",I)}if(a&&(a.setPosition(f),h(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&(n.setPosition(v),h(n,1),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var d=void 0,p=void 0,g=i.__labelDistance,y=g[0]*o,m=g[1]*o,_=u/2,S=l.tangentAt(_),b=[S[1],-S[0]],x=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var w=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var T=-Math.atan2(S[1],S[0]);v[0]<f[0]&&(T=Math.PI+T),i.rotation=T}var C=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-m,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=m,p="top";break;default:C=0,p="middle"}switch(i.__position){case"end":i.x=c[0]*y+v[0],i.y=c[1]*m+v[1],d=c[0]>.8?"left":c[0]<-.8?"right":"center",p=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*y+f[0],i.y=-c[1]*m+f[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",p=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*w+f[0],i.y=f[1]+C,d=S[0]<0?"right":"left",i.originX=-y*w,i.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+C,d="center",i.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*w+v[0],i.y=v[1]+C,d=S[0]>=0?"right":"left",i.originX=y*w,i.originY=-C;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||p,align:i.__align||d})}},e}(ft);const Q0=bU;var wU=function(){function r(e){this.group=new ft,this._LineCtor=e||Q0}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var a=this,n=a.group,i=a._lineData;a._lineData=e,i||n.removeAll();var o=Cw(e);e.diff(i).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(i,e,l,s,o)}).remove(function(s){n.remove(i.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,a){t.updateLayout(e,a)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Cw(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t){this._progressiveEls=[];function a(s){!s.isGroup&&!TU(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var n=e.start;n<e.end;n++){var i=t.getItemLayout(n);if(vp(i)){var o=new this._LineCtor(t,n,this._seriesScope);o.traverse(a),this.group.add(o),t.setItemGraphicEl(n,o),this._progressiveEls.push(o)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){oi(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,a){var n=e.getItemLayout(t);if(vp(n)){var i=new this._LineCtor(e,t,a);e.setItemGraphicEl(t,i),this.group.add(i)}},r.prototype._doUpdate=function(e,t,a,n,i){var o=e.getItemGraphicEl(a);if(!vp(t.getItemLayout(n))){this.group.remove(o);return}o?o.updateData(t,n,i):o=new this._LineCtor(t,n,i),t.setItemGraphicEl(n,o),this.group.add(o)},r}();function TU(r){return r.animators&&r.animators.length>0}function Cw(r){var e=r.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:Le(e)}}function Aw(r){return isNaN(r[0])||isNaN(r[1])}function vp(r){return r&&!Aw(r[0])&&!Aw(r[1])}const t_=wU;var cp=[],hp=[],dp=[],Ko=Ve,pp=Ji,Mw=Math.abs;function Dw(r,e,t){for(var a=r[0],n=r[1],i=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){cp[0]=Ko(a[0],n[0],i[0],f),cp[1]=Ko(a[1],n[1],i[1],f);var v=Mw(pp(cp,e)-l);v<o&&(o=v,s=f)}for(var c=0;c<32;c++){var h=s+u;hp[0]=Ko(a[0],n[0],i[0],s),hp[1]=Ko(a[1],n[1],i[1],s),dp[0]=Ko(a[0],n[0],i[0],h),dp[1]=Ko(a[1],n[1],i[1],h);var v=pp(hp,e)-l;if(Mw(v)<.01)break;var d=pp(dp,e)-l;u/=2,v<0?d>=0?s=s+u:s=s-u:d>=0?s=s-u:s=s+u}return s}function gp(r,e){var t=[],a=nu,n=[[],[],[]],i=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),v=s.getVisual("toSymbol");u.__original||(u.__original=[rn(u[0]),rn(u[1])],u[2]&&u.__original.push(rn(u[2])));var c=u.__original;if(u[2]!=null){if(rr(n[0],c[0]),rr(n[1],c[2]),rr(n[2],c[1]),f&&f!=="none"){var h=Wl(s.node1),d=Dw(n,c[0],h*e);a(n[0][0],n[1][0],n[2][0],d,t),n[0][0]=t[3],n[1][0]=t[4],a(n[0][1],n[1][1],n[2][1],d,t),n[0][1]=t[3],n[1][1]=t[4]}if(v&&v!=="none"){var h=Wl(s.node2),d=Dw(n,c[1],h*e);a(n[0][0],n[1][0],n[2][0],d,t),n[1][0]=t[1],n[2][0]=t[2],a(n[0][1],n[1][1],n[2][1],d,t),n[1][1]=t[1],n[2][1]=t[2]}rr(u[0],n[0]),rr(u[1],n[2]),rr(u[2],n[1])}else{if(rr(i[0],c[0]),rr(i[1],c[1]),$i(o,i[1],i[0]),Bs(o,o),f&&f!=="none"){var h=Wl(s.node1);sg(i[0],i[0],o,h*e)}if(v&&v!=="none"){var h=Wl(s.node2);sg(i[1],i[1],o,-h*e)}rr(u[0],i[0]),rr(u[1],i[1])}})}var zP=Lt();function CU(r){if(r)return zP(r).bridge}function Lw(r,e){r&&(zP(r).bridge=e)}function Iw(r){return r.type==="view"}var AU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){var n=new Uu,i=new t_,o=this.group,s=new ft;this._controller=new Lo(a.getZr()),this._controllerHost={target:s},s.add(n.group),s.add(i.group),o.add(s),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,a,n){var i=this,o=t.coordinateSystem,s=!1;this._model=t,this._api=n,this._active=!0;var l=this._getThumbnailInfo();l&&l.bridge.reset(n);var u=this._symbolDraw,f=this._lineDraw;if(Iw(o)){var v={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?this._mainGroup.attr(v):Nt(this._mainGroup,v,t)}gp(t.getGraph(),Hl(t));var c=t.getData();u.updateData(c);var h=t.getEdgeData();f.updateData(h),this._updateNodeAndLinkScale(),this._updateController(null,t,n),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(s=!0,this._startForceLayoutIteration(d,n,p));var g=t.get("layout");c.graph.eachNode(function(S){var b=S.dataIndex,x=S.getGraphicEl(),w=S.getModel();if(x){x.off("drag").off("dragend");var T=w.get("draggable");T&&x.on("drag",function(M){switch(g){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,n,p),d.setFixed(b),c.setItemLayout(b,[x.x,x.y]);break;case"circular":c.setItemLayout(b,[x.x,x.y]),S.setLayout({fixed:!0},!0),J0(t,"symbolSize",S,[M.offsetX,M.offsetY]),i.updateLayout(t);break;case"none":default:c.setItemLayout(b,[x.x,x.y]),j0(t.getGraph(),t),i.updateLayout(t);break}}).on("dragend",function(){d&&d.setUnfixed(b)}),x.setDraggable(T,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(yt(x).focus=S.getAdjacentDataIndices())}}),c.graph.eachEdge(function(S){var b=S.getGraphicEl(),x=S.getModel().get(["emphasis","focus"]);b&&x==="adjacency"&&(yt(b).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),m=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(S){OP(S,y,m,_)}),this._firstRender=!1,s||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,a,n){var i=this,o=!1;(function s(){t.step(function(l){i.updateLayout(i._model),(l||!o)&&(o=!0,i._renderThumbnail(i._model,a,i._symbolDraw,i._lineDraw)),(i._layouting=!l)&&(n?i._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype._updateController=function(t,a,n){var i=this._controller,o=this._controllerHost,s=a.coordinateSystem;if(!Iw(s)){i.disable();return}i.enable(a.get("roam"),{api:n,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(l,u,f){return s.containPoint([u,f])},isInClip:function(l,u,f){return!t||t.contain(u,f)}}}),o.zoomLimit=a.get("scaleLimit"),o.zoom=s.getZoom(),i.off("pan").off("zoom").on("pan",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",dx:l.dx,dy:l.dy})}).on("zoom",function(l){n.dispatchAction({seriesId:a.id,type:"graphRoam",zoom:l.scale,originX:l.originX,originY:l.originY})})},e.prototype.updateViewOnPan=function(t,a,n){this._active&&(F0(this._controllerHost,n.dx,n.dy),this._updateThumbnailWindow())},e.prototype.updateViewOnZoom=function(t,a,n){this._active&&(H0(this._controllerHost,n.zoom,n.originX,n.originY),this._updateNodeAndLinkScale(),gp(t.getGraph(),Hl(t)),this._lineDraw.updateLayout(),a.updateLabelLayout(),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,a=t.getData(),n=Hl(t);a.eachItemGraphicEl(function(i,o){i&&i.setSymbolScale(n)})},e.prototype.updateLayout=function(t){this._active&&(gp(t.getGraph(),Hl(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,a=t.coordinateSystem;if(a.type==="view"){var n=CU(t);if(n)return{bridge:n,coordSys:a}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},e.prototype._renderThumbnail=function(t,a,n,i){var o=this._getThumbnailInfo();if(o){var s=new ft,l=n.group.children(),u=i.group.children(),f=new ft,v=new ft;s.add(v),s.add(f);for(var c=0;c<l.length;c++){var h=l[c],d=h.children()[0],p=h.x,g=h.y,y=ut(d.shape),m=$(y,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:g-d.scaleY/2}),_=ut(d.style),S=new d.constructor({shape:m,style:_,z2:151});v.add(S)}for(var c=0;c<u.length;c++){var h=u[c],b=h.children()[0],_=ut(b.style),m=ut(b.shape),x=new BP({style:_,shape:m,z2:151});f.add(x)}o.bridge.renderContent({api:a,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:o.coordSys.transform})}},e.type="graph",e}(Jt);const MU=AU;function jo(r){return"_EC_"+r}var DU=function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var a=this._nodesMap;if(!a[jo(e)]){var n=new zi(e,t);return n.hostGraph=this,this.nodes.push(n),a[jo(e)]=n,n}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[jo(e)]},r.prototype.addEdge=function(e,t,a){var n=this._nodesMap,i=this._edgesMap;if(Rt(e)&&(e=this.nodes[e]),Rt(t)&&(t=this.nodes[t]),e instanceof zi||(e=n[jo(e)]),t instanceof zi||(t=n[jo(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new VP(e,t,a);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),i[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof zi&&(e=e.id),t instanceof zi&&(t=t.id);var a=this._edgesMap;return this._directed?a[e+"-"+t]:a[e+"-"+t]||a[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var a=this.nodes,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&e.call(t,a[i],i)},r.prototype.eachEdge=function(e,t){for(var a=this.edges,n=a.length,i=0;i<n;i++)a[i].dataIndex>=0&&a[i].node1.dataIndex>=0&&a[i].node2.dataIndex>=0&&e.call(t,a[i],i)},r.prototype.breadthFirstTraverse=function(e,t,a,n){if(t instanceof zi||(t=this._nodesMap[jo(t)]),!!t){for(var i=a==="out"?"outEdges":a==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(n,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[i],o=0;o<u.length;o++){var f=u[o],v=f.node1===l?f.node2:f.node1;if(!v.__visited){if(e.call(n,v,l))return;s.push(v),v.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,a=this.nodes,n=this.edges,i=0,o=a.length;i<o;i++)a[i].dataIndex=-1;for(var i=0,o=e.count();i<o;i++)a[e.getRawIndex(i)].dataIndex=i;t.filterSelf(function(s){var l=n[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var i=0,o=n.length;i<o;i++)n[i].dataIndex=-1;for(var i=0,o=t.count();i<o;i++)n[t.getRawIndex(i)].dataIndex=i},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,a=this.edges,n=0;n<t.length;n++)e.addNode(t[n].id,t[n].dataIndex);for(var n=0;n<a.length;n++){var i=a[n];e.addEdge(i.node1.id,i.node2.id,i.dataIndex)}return e},r}(),zi=function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.data.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var a=this.edges[t];a.dataIndex<0||(e.edge.push(a.dataIndex),e.node.push(a.node1.dataIndex,a.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=at(),t=at(),a=0,n=this.edges.length;a<n;a++){var i=this.edges[a];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],s=[i.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,v=0,c=f.length,h=void 0,d=void 0;v<c;v++)h=f[v],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),o.push(h.node1))}for(l=0;l<s.length;){var p=s[l];l++,t.set(p.dataIndex,!0);for(var g=p.outEdges,v=0,y=g.length,m=void 0,_=void 0;v<y;v++)m=g[v],_=m.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(m.node2))}}}return{edge:e.keys(),node:t.keys()}},r}(),VP=function(){function r(e,t,a){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=a??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,a=t.edgeData.getItemModel(this.dataIndex);return a.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=at(),t=at();e.set(this.dataIndex,!0);for(var a=[this.node1],n=[this.node2],i=0;i<a.length;){var o=a[i];i++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,v=void 0;l<u;l++)f=o.inEdges[l],v=f.dataIndex,v>=0&&!e.hasKey(v)&&(e.set(v,!0),a.push(f.node1))}for(i=0;i<n.length;){var c=n[i];i++,t.set(c.dataIndex,!0);for(var h=c.outEdges,l=0,u=h.length,d=void 0,p=void 0;l<u;l++)d=c.outEdges[l],p=d.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),n.push(d.node2))}return{edge:e.keys(),node:t.keys()}},r}();function GP(r,e){return{getValue:function(t){var a=this[r][e];return a.getStore().get(a.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,a){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,a)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,a){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,a)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}we(zi,GP("hostGraph","data"));we(VP,GP("hostGraph","edgeData"));const LU=DU;function e_(r,e,t,a,n){for(var i=new LU(a),o=0;o<r.length;o++)i.addNode(Ue(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],v=f.source,c=f.target;i.addEdge(v,c,u)&&(l.push(f),s.push(Ue(Ae(f.id,null),v+" > "+c)),u++)}var h=t.get("coordinateSystem"),d;if(h==="cartesian2d"||h==="polar"||h==="matrix")d=_n(r,t);else{var p=Gu.get(h),g=p?p.dimensions||[]:[];bt(g,"value")<0&&g.concat(["value"]);var y=Hu(r,{coordDimensions:g,encodeDefine:t.getEncode()}).dimensions;d=new ir(y,t),d.initData(r)}var m=new ir(["value"],t);return m.initData(l,s),n&&n(d,m),SP({mainData:d,struct:i,structAttr:"graph",datas:{node:d,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),i.update(),i}var IU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var a=this;function n(){return a._categoriesData}this.legendVisualProvider=new Js(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),lo(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=this;if(i&&n){vU(this);var s=e_(i,n,this,!0,l);return A(s.edges,function(u){cU(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(d){var p=o._categoriesModels,g=d.getShallow("category"),y=p[g];return y&&(y.parentModel=d.parentModel,d.parentModel=y),d});var v=Bt.prototype.getModel;function c(d,p){var g=v.call(this,d,p);return g.resolveParentPath=h,g}f.wrapMethod("getItemModel",function(d){return d.resolveParentPath=h,d.getModel=c,d});function h(d){if(d&&(d[0]==="label"||d[1]==="label")){var p=d.slice();return d[0]==="label"?p[0]="edgeLabel":d[1]==="label"&&(p[1]="edgeLabel"),p}return d}}},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,a,n){if(n==="edge"){var i=this.getData(),o=this.getDataParams(t,n),s=i.graph.getEdgeByIndex(t),l=i.getName(s.node1.dataIndex),u=i.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),xe("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var v=FL({series:this,dataIndex:t,multipleSeries:a});return v},e.prototype._updateCategoriesData=function(){var t=Z(this.option.categories||[],function(n){return n.value!=null?n:$({value:0},n)}),a=new ir(["value"],this);a.initData(t),this._categoriesData=a,this._categoriesModels=a.mapArray(function(n){return a.getItemModel(n)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return r.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:F.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},e}(ie);const PU=IU;function RU(r){r.registerChartView(MU),r.registerSeriesModel(PU),r.registerProcessor(oU),r.registerVisual(sU),r.registerVisual(lU),r.registerLayout(hU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,pU),r.registerLayout(yU),r.registerCoordinateSystem("graphView",{dimensions:Io.dimensions,create:_U}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},pe),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},pe),r.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",query:e},function(n){var i=a.getViewOfSeriesModel(n);i&&(e.dx!=null&&e.dy!=null&&i.updateViewOnPan(n,a,e),e.zoom!=null&&e.originX!=null&&e.originY!=null&&i.updateViewOnZoom(n,a,e));var o=n.coordinateSystem,s=_h(o,e,n.get("scaleLimit"));n.setCenter&&n.setCenter(s.center),n.setZoom&&n.setZoom(s.zoom)})})}var kU=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;yt(i).dataType="node",i.z2=2;var o=new Ot;return i.setTextContent(o),i.updateData(t,a,n,!0),i}return e.prototype.updateData=function(t,a,n,i){var o=this,s=t.graph.getNodeByIndex(a),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),v=t.getItemLayout(a),c=$(Ia(u.getModel("itemStyle"),v,!0),v),h=this;if(isNaN(c.startAngle)){h.setShape(c);return}i?h.setShape(c):Nt(h,{shape:c},l,a);var d=$(Ia(u.getModel("itemStyle"),v,!0),v);o.setShape(d),o.useStyle(t.getItemVisual(a,"style")),De(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(a,h),De(h,u,"itemStyle");var p=f.get("focus");ae(this,p==="adjacency"?s.getAdjacentDataIndices():p,f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(t,a,n){var i=this.getTextContent(),o=n.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=a.getModel("label");i.ignore=!f.get("show");var v=Le(a),c=n.getVisual("style");Ee(i,v,{labelFetcher:{getFormattedLabel:function(m,_,S,b,x,w){return t.getFormattedLabel(m,_,"node",b,wr(x,v.normal&&v.normal.get("formatter"),a.get("name")),w)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h=f.get("position")||"outside",d=f.get("distance")||0,p;h==="outside"?p=o.r+d:p=(o.r+o.r0)/2,this.textConfig={inside:h!=="outside"};var g=h!=="outside"?f.get("align")||"center":l>0?"left":"right",y=h!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";i.attr({x:l*p+o.cx,y:u*p+o.cy,rotation:0,style:{align:g,verticalAlign:y}})},e}(sr);const Pw=kU;var EU=function(r){B(e,r);function e(t,a,n,i){var o=r.call(this)||this;return yt(o).dataType="edge",o.updateData(t,a,n,i,!0),o}return e.prototype.buildPath=function(t,a){t.moveTo(a.s1[0],a.s1[1]);var n=.7,i=a.clockwise;t.arc(a.cx,a.cy,a.r,a.sStartAngle,a.sEndAngle,!i),t.bezierCurveTo((a.cx-a.s2[0])*n+a.s2[0],(a.cy-a.s2[1])*n+a.s2[1],(a.cx-a.t1[0])*n+a.t1[0],(a.cy-a.t1[1])*n+a.t1[1],a.t1[0],a.t1[1]),t.arc(a.cx,a.cy,a.r,a.tStartAngle,a.tEndAngle,!i),t.bezierCurveTo((a.cx-a.t2[0])*n+a.t2[0],(a.cy-a.t2[1])*n+a.t2[1],(a.cx-a.s1[0])*n+a.s1[0],(a.cy-a.s1[1])*n+a.s1[1],a.s1[0],a.s1[1]),t.closePath()},e.prototype.updateData=function(t,a,n,i,o){var s=t.hostModel,l=a.graph.getEdgeByIndex(n),u=l.getLayout(),f=l.node1.getModel(),v=a.getItemModel(l.dataIndex),c=v.getModel("lineStyle"),h=v.getModel("emphasis"),d=h.get("focus"),p=$(Ia(f.getModel("itemStyle"),u,!0),u),g=this;if(isNaN(p.sStartAngle)||isNaN(p.tStartAngle)){g.setShape(p);return}o?(g.setShape(p),Rw(g,l,t,c)):(Ur(g),Rw(g,l,t,c),Nt(g,{shape:p},s,n)),ae(this,d==="adjacency"?l.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),De(g,v,"lineStyle"),a.setItemGraphicEl(l.dataIndex,g)},e}(It);function Rw(r,e,t,a){var n=e.node1,i=e.node2,o=r.style;r.setStyle(a.getLineStyle());var s=a.get("color");switch(s){case"source":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(n.dataIndex,"style").fill,u=t.getItemVisual(i.dataIndex,"style").fill;if(J(l)&&J(u)){var f=r.shape,v=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,h=(f.t1[0]+f.t2[0])/2,d=(f.t1[1]+f.t2[1])/2;o.fill=new Fs(v,c,h,d,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var OU=Math.PI/180,NU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*OU;if(i.diff(o).add(function(f){var v=i.getItemLayout(f);if(v){var c=new Pw(i,f,l);yt(c).dataIndex=f,s.add(c)}}).update(function(f,v){var c=o.getItemGraphicEl(v),h=i.getItemLayout(f);if(!h){c&&an(c,t,v);return}c?c.updateData(i,f,l):c=new Pw(i,f,l),s.add(c)}).remove(function(f){var v=o.getItemGraphicEl(f);v&&an(v,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=j(u[0],n.getWidth()),this.group.originY=j(u[1],n.getHeight()),re(this.group,{scaleX:1,scaleY:1},t)}this._data=i,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,a){var n=t.getData(),i=t.getEdgeData(),o=this._edgeData,s=this.group;i.diff(o).add(function(l){var u=new EU(n,i,l,a);yt(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,i,l,a),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&an(u,t,l)}).execute(),this._edgeData=i},e.prototype.dispose=function(){},e.type="chord",e}(Jt);const BU=NU;var zU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Js(Q(this.getData,this),Q(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[];if(i&&n){var o=e_(i,n,this,!0,s);return o.data}function s(l,u){var f=Bt.prototype.getModel;function v(h,d){var p=f.call(this,h,d);return p.resolveParentPath=c,p}u.wrapMethod("getItemModel",function(h){return h.resolveParentPath=c,h.getModel=v,h});function c(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){var i=this.getDataParams(t,n);if(n==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),xe("nameValue",{name:f.join(" > "),value:i.value,noValue:i.value==null})}return xe("nameValue",{name:i.name,value:i.value,noValue:i.value==null})},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(a==="node"){var i=this.getData(),o=this.getGraph().getNodeByIndex(t);if(n.name==null&&(n.name=i.getName(t)),n.value==null){var s=o.getLayout().value;n.value=s}}return n},e.type="series.chord",e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(ie);const VU=zU;var yp=Math.PI/180;function GU(r,e){r.eachSeriesByType("chord",function(t){FU(t,e)})}function FU(r,e){var t=r.getData(),a=t.graph,n=r.getEdgeData(),i=n.count();if(i){var o=nL(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,v=Math.max((r.get("padAngle")||0)*yp,0),c=Math.max((r.get("minAngle")||0)*yp,0),h=-r.get("startAngle")*yp,d=h+Math.PI*2,p=r.get("clockwise"),g=p?1:-1,y=[h,d];jc(y,!p);var m=y[0],_=y[1],S=_-m,b=t.getSum("value")===0&&n.getSum("value")===0,x=[],w=0;a.eachEdge(function(E){var z=b?1:E.getValue("value");b&&(z>0||c)&&(w+=2);var V=E.node1.dataIndex,H=E.node2.dataIndex;x[V]=(x[V]||0)+z,x[H]=(x[H]||0)+z});var T=0;if(a.eachNode(function(E){var z=E.getValue("value");isNaN(z)||(x[E.dataIndex]=Math.max(z,x[E.dataIndex]||0)),!b&&(x[E.dataIndex]>0||c)&&w++,T+=x[E.dataIndex]||0}),!(w===0||T===0)){v*w>=Math.abs(S)&&(v=Math.max(0,(Math.abs(S)-c*w)/w)),(v+c)*w>=Math.abs(S)&&(c=(Math.abs(S)-v*w)/w);var C=(S-v*w*g)/T,M=0,D=0,I=0;a.eachNode(function(E){var z=x[E.dataIndex]||0,V=C*(T?z:1)*g;Math.abs(V)<c?M+=c-Math.abs(V):(D+=Math.abs(V)-c,I+=Math.abs(V)),E.setLayout({angle:V,value:z})});var L=!1;if(M>D){var P=M/D;a.eachNode(function(E){var z=E.getLayout().angle;Math.abs(z)>=c?E.setLayout({angle:z*P,ratio:P},!0):E.setLayout({angle:c,ratio:c===0?1:z/c},!0)})}else a.eachNode(function(E){if(!L){var z=E.getLayout().angle,V=Math.min(z/I,1),H=V*M;z-H<c&&(L=!0)}});var k=M;a.eachNode(function(E){if(!(k<=0)){var z=E.getLayout().angle;if(z>c&&c>0){var V=L?1:Math.min(z/I,1),H=z-c,G=Math.min(H,Math.min(k,M*V));k-=G,E.setLayout({angle:z-G,ratio:(z-G)/z},!0)}else c>0&&E.setLayout({angle:c,ratio:z===0?1:c/z},!0)}});var R=m,N=[];a.eachNode(function(E){var z=Math.max(E.getLayout().angle,c);E.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:R,endAngle:R+z*g,clockwise:p},!0),N[E.dataIndex]=R,R+=(z+v)*g}),a.eachEdge(function(E){var z=b?1:E.getValue("value"),V=C*(T?z:1)*g,H=E.node1.dataIndex,G=N[H]||0,Y=Math.abs((E.node1.getLayout().ratio||1)*V),X=G+Y*g,ot=[s+f*Math.cos(G),l+f*Math.sin(G)],_t=[s+f*Math.cos(X),l+f*Math.sin(X)],At=E.node2.dataIndex,st=N[At]||0,et=Math.abs((E.node2.getLayout().ratio||1)*V),it=st+et*g,tt=[s+f*Math.cos(st),l+f*Math.sin(st)],O=[s+f*Math.cos(it),l+f*Math.sin(it)];E.setLayout({s1:ot,s2:_t,sStartAngle:G,sEndAngle:X,t1:tt,t2:O,tStartAngle:st,tEndAngle:it,cx:s,cy:l,r:f,value:z,clockwise:p}),N[H]=X,N[At]=it})}}}function HU(r){r.registerChartView(BU),r.registerSeriesModel(VU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,GU),r.registerProcessor(Ks("chord"))}var WU=function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r}(),$U=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="pointer",a}return e.prototype.getDefaultShape=function(){return new WU},e.prototype.buildPath=function(t,a){var n=Math.cos,i=Math.sin,o=a.r,s=a.width,l=a.angle,u=a.x-n(l)*s*(s>=o/3?1:2),f=a.y-i(l)*s*(s>=o/3?1:2);l=a.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(a.x+n(l)*s,a.y+i(l)*s),t.lineTo(a.x+n(a.angle)*o,a.y+i(a.angle)*o),t.lineTo(a.x-n(l)*s,a.y-i(l)*s),t.lineTo(u,f)},e}(It);const UU=$U;function YU(r,e){var t=r.get("center"),a=e.getWidth(),n=e.getHeight(),i=Math.min(a,n),o=j(t[0],e.getWidth()),s=j(t[1],e.getHeight()),l=j(r.get("radius"),i/2);return{cx:o,cy:s,r:l}}function Zf(r,e){var t=r==null?"":r+"";return e&&(J(e)?t=e.replace("{value}",t):lt(e)&&(t=e(r))),t}var ZU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),o=YU(t,n);this._renderMain(t,a,n,i,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,a,n,i,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,v=t.getModel("axisLine"),c=v.get("roundCap"),h=c?pc:sr,d=v.get("show"),p=v.getModel("lineStyle"),g=p.get("width"),y=[u,f];jc(y,!l),u=y[0],f=y[1];for(var m=f-u,_=u,S=[],b=0;d&&b<i.length;b++){var x=Math.min(Math.max(i[b][0],0),1);f=u+m*x;var w=new h({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-g,r:o.r},silent:!0});w.setStyle({fill:i[b][1]}),w.setStyle(p.getLineStyle(["color","width"])),S.push(w),_=f}S.reverse(),A(S,function(C){return s.add(C)});var T=function(C){if(C<=0)return i[0][1];var M;for(M=0;M<i.length;M++)if(i[M][0]>=C&&(M===0?0:i[M-1][0])<C)return i[M][1];return i[M-1][1]};this._renderTicks(t,a,n,T,o,u,f,l,g),this._renderTitleAndDetail(t,a,n,T,o),this._renderAnchor(t,o),this._renderPointer(t,a,n,T,o,u,f,l,g)},e.prototype._renderTicks=function(t,a,n,i,o,s,l,u,f){for(var v=this.group,c=o.cx,h=o.cy,d=o.r,p=+t.get("min"),g=+t.get("max"),y=t.getModel("splitLine"),m=t.getModel("axisTick"),_=t.getModel("axisLabel"),S=t.get("splitNumber"),b=m.get("splitNumber"),x=j(y.get("length"),d),w=j(m.get("length"),d),T=s,C=(l-s)/S,M=C/b,D=y.getModel("lineStyle").getLineStyle(),I=m.getModel("lineStyle").getLineStyle(),L=y.get("distance"),P,k,R=0;R<=S;R++){if(P=Math.cos(T),k=Math.sin(T),y.get("show")){var N=L?L+f:f,E=new Me({shape:{x1:P*(d-N)+c,y1:k*(d-N)+h,x2:P*(d-x-N)+c,y2:k*(d-x-N)+h},style:D,silent:!0});D.stroke==="auto"&&E.setStyle({stroke:i(R/S)}),v.add(E)}if(_.get("show")){var N=_.get("distance")+L,z=Zf(me(R/S*(g-p)+p),_.get("formatter")),V=i(R/S),H=P*(d-x-N)+c,G=k*(d-x-N)+h,Y=_.get("rotate"),X=0;Y==="radial"?(X=-T+2*Math.PI,X>Math.PI/2&&(X+=Math.PI)):Y==="tangential"?X=-T-Math.PI/2:Rt(Y)&&(X=Y*Math.PI/180),X===0?v.add(new Ot({style:jt(_,{text:z,x:H,y:G,verticalAlign:k<-.8?"top":k>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:V}),silent:!0})):v.add(new Ot({style:jt(_,{text:z,x:H,y:G,verticalAlign:"middle",align:"center"},{inheritColor:V}),silent:!0,originX:H,originY:G,rotation:X}))}if(m.get("show")&&R!==S){var N=m.get("distance");N=N?N+f:f;for(var ot=0;ot<=b;ot++){P=Math.cos(T),k=Math.sin(T);var _t=new Me({shape:{x1:P*(d-N)+c,y1:k*(d-N)+h,x2:P*(d-w-N)+c,y2:k*(d-w-N)+h},silent:!0,style:I});I.stroke==="auto"&&_t.setStyle({stroke:i((R+ot/b)/S)}),v.add(_t),T+=M}T-=M}else T+=C}},e.prototype._renderPointer=function(t,a,n,i,o,s,l,u,f){var v=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),g=t.getModel("progress"),y=g.get("show"),m=t.getData(),_=m.mapDimension("value"),S=+t.get("min"),b=+t.get("max"),x=[S,b],w=[s,l];function T(M,D){var I=m.getItemModel(M),L=I.getModel("pointer"),P=j(L.get("width"),o.r),k=j(L.get("length"),o.r),R=t.get(["pointer","icon"]),N=L.get("offsetCenter"),E=j(N[0],o.r),z=j(N[1],o.r),V=L.get("keepAspect"),H;return R?H=be(R,E-P/2,z-k,P,k,null,V):H=new UU({shape:{angle:-Math.PI/2,width:P,r:k,x:E,y:z}}),H.rotation=-(D+Math.PI/2),H.x=o.cx,H.y=o.cy,H}function C(M,D){var I=g.get("roundCap"),L=I?pc:sr,P=g.get("overlap"),k=P?g.get("width"):f/m.count(),R=P?o.r-k:o.r-(M+1)*k,N=P?o.r:o.r-M*k,E=new L({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:N}});return P&&(E.z2=Wt(m.get(_,M),[S,b],[100,0],!0)),E}(y||p)&&(m.diff(c).add(function(M){var D=m.get(_,M);if(p){var I=T(M,s);re(I,{rotation:-((isNaN(+D)?w[0]:Wt(D,x,w,!0))+Math.PI/2)},t),v.add(I),m.setItemGraphicEl(M,I)}if(y){var L=C(M,s),P=g.get("clip");re(L,{shape:{endAngle:Wt(D,x,w,P)}},t),v.add(L),Bg(t.seriesIndex,m.dataType,M,L),d[M]=L}}).update(function(M,D){var I=m.get(_,M);if(p){var L=c.getItemGraphicEl(D),P=L?L.rotation:s,k=T(M,P);k.rotation=P,Nt(k,{rotation:-((isNaN(+I)?w[0]:Wt(I,x,w,!0))+Math.PI/2)},t),v.add(k),m.setItemGraphicEl(M,k)}if(y){var R=h[D],N=R?R.shape.endAngle:s,E=C(M,N),z=g.get("clip");Nt(E,{shape:{endAngle:Wt(I,x,w,z)}},t),v.add(E),Bg(t.seriesIndex,m.dataType,M,E),d[M]=E}}).execute(),m.each(function(M){var D=m.getItemModel(M),I=D.getModel("emphasis"),L=I.get("focus"),P=I.get("blurScope"),k=I.get("disabled");if(p){var R=m.getItemGraphicEl(M),N=m.getItemVisual(M,"style"),E=N.fill;if(R instanceof Ze){var z=R.style;R.useStyle($({image:z.image,x:z.x,y:z.y,width:z.width,height:z.height},N))}else R.useStyle(N),R.type!=="pointer"&&R.setColor(E);R.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",i(Wt(m.get(_,M),x,[0,1],!0))),R.z2EmphasisLift=0,De(R,D),ae(R,L,P,k)}if(y){var V=d[M];V.useStyle(m.getItemVisual(M,"style")),V.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),V.z2EmphasisLift=0,De(V,D),ae(V,L,P,k)}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,a){var n=t.getModel("anchor"),i=n.get("show");if(i){var o=n.get("size"),s=n.get("icon"),l=n.get("offsetCenter"),u=n.get("keepAspect"),f=be(s,a.cx-o/2+j(l[0],a.r),a.cy-o/2+j(l[1],a.r),o,o,null,u);f.z2=n.get("showAbove")?1:0,f.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,a,n,i,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),v=+t.get("max"),c=new ft,h=[],d=[],p=t.isAnimationEnabled(),g=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new Ot({silent:!0}),d[y]=new Ot({silent:!0})}).update(function(y,m){h[y]=s._titleEls[m],d[y]=s._detailEls[m]}).execute(),l.each(function(y){var m=l.getItemModel(y),_=l.get(u,y),S=new ft,b=i(Wt(_,[f,v],[0,1],!0)),x=m.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+j(w[0],o.r),C=o.cy+j(w[1],o.r),M=h[y];M.attr({z2:g?0:2,style:jt(x,{x:T,y:C,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:b})}),S.add(M)}var D=m.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),L=o.cx+j(I[0],o.r),P=o.cy+j(I[1],o.r),k=j(D.get("width"),o.r),R=j(D.get("height"),o.r),N=t.get(["progress","show"])?l.getItemVisual(y,"style").fill:b,M=d[y],E=D.get("formatter");M.attr({z2:g?0:2,style:jt(D,{x:L,y:P,text:Zf(_,E),width:isNaN(k)?null:k,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:N})}),BD(M,{normal:D},_,function(V){return Zf(V,E)}),p&&zD(M,y,l,t,{getFormattedLabel:function(V,H,G,Y,X,ot){return Zf(ot?ot.interpolatedValue:_,E)}}),S.add(M)}c.add(S)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(Jt);const XU=ZU;var qU=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,a){return js(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,F.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:F.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:F.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:F.color.axisLabel,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:F.color.neutral00,borderWidth:0,borderColor:F.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:F.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:F.color.transparent,borderWidth:0,borderColor:F.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:F.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(ie);const KU=qU;function jU(r){r.registerChartView(XU),r.registerSeriesModel(KU)}var JU=["itemStyle","opacity"],QU=function(r){B(e,r);function e(t,a){var n=r.call(this)||this,i=n,o=new tr,s=new Ot;return i.setTextContent(s),n.setTextGuideLine(o),n.updateData(t,a,!0),n}return e.prototype.updateData=function(t,a,n){var i=this,o=t.hostModel,s=t.getItemModel(a),l=t.getItemLayout(a),u=s.getModel("emphasis"),f=s.get(JU);f=f??1,n||Ur(i),i.useStyle(t.getItemVisual(a,"style")),i.style.lineJoin="round",n?(i.setShape({points:l.points}),i.style.opacity=0,re(i,{style:{opacity:f}},o,a)):Nt(i,{style:{opacity:f},shape:{points:l.points}},o,a),De(i,s),this._updateLabel(t,a),ae(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,a){var n=this,i=this.getTextGuideLine(),o=n.getTextContent(),s=t.hostModel,l=t.getItemModel(a),u=t.getItemLayout(a),f=u.label,v=t.getItemVisual(a,"style"),c=v.fill;Ee(o,Le(l),{labelFetcher:t.hostModel,labelDataIndex:a,defaultOpacity:v.opacity,defaultText:t.getName(a)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var h=l.getModel("label"),d=h.get("color"),p=d==="inherit"?c:null;n.setTextConfig({local:!0,inside:!!f.inside,insideStroke:p,outsideFill:p});var g=f.linePoints;i.setShape({points:g}),n.textGuideLineConfig={anchor:g?new ct(g[0][0],g[0][1]):null},Nt(o,{style:{x:f.x,y:f.y}},s,a),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),D0(n,L0(l),{stroke:c})},e}(lr),t6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._data,s=this.group;i.diff(o).add(function(l){var u=new QU(i,l);i.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(i,l),s.add(f),i.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);an(u,t,l)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Jt);const e6=t6;var r6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Js(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,a){return js(this,{coordDimensions:["value"],encodeDefaulter:xt(o0,this)})},e.prototype._defaultLabelLine=function(t){lo(t,"labelLine",["show"]);var a=t.labelLine,n=t.emphasis.labelLine;a.show=a.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var a=this.getData(),n=r.prototype.getDataParams.call(this,t),i=a.mapDimension("value"),o=a.getSum(i);return n.percent=o?+(a.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,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:F.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:F.color.primary}}},e}(ie);const a6=r6;function n6(r,e){for(var t=r.mapDimension("value"),a=r.mapArray(t,function(l){return l}),n=[],i=e==="ascending",o=0,s=r.count();o<s;o++)n[o]=o;return lt(e)?n.sort(e):e!=="none"&&n.sort(function(l,u){return i?a[l]-a[u]:a[u]-a[l]}),n}function i6(r){var e=r.hostModel,t=e.get("orient");r.each(function(a){var n=r.getItemModel(a),i=n.getModel("label"),o=i.get("position"),s=n.getModel("labelLine"),l=r.getItemLayout(a),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",v,c,h,d;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,v="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,v="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,v="center"),d=[[c,h],[c,h]];else{var p=void 0,g=void 0,y=void 0,m=void 0,_=s.get("length");o==="left"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,y=p-_,c=y-5,v="right"):o==="right"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,y=p+_,c=y+5,v="left"):o==="top"?(p=(u[3][0]+u[0][0])/2,g=(u[3][1]+u[0][1])/2,m=g-_,h=m-5,v="center"):o==="bottom"?(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,m=g+_,h=m+5,v="center"):o==="rightTop"?(p=t==="horizontal"?u[3][0]:u[1][0],g=t==="horizontal"?u[3][1]:u[1][1],t==="horizontal"?(m=g-_,h=m-5,v="center"):(y=p+_,c=y+5,v="top")):o==="rightBottom"?(p=u[2][0],g=u[2][1],t==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="bottom")):o==="leftTop"?(p=u[0][0],g=t==="horizontal"?u[0][1]:u[1][1],t==="horizontal"?(m=g-_,h=m-5,v="center"):(y=p-_,c=y-5,v="right")):o==="leftBottom"?(p=t==="horizontal"?u[1][0]:u[3][0],g=t==="horizontal"?u[1][1]:u[2][1],t==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p-_,c=y-5,v="right")):(p=(u[1][0]+u[2][0])/2,g=(u[1][1]+u[2][1])/2,t==="horizontal"?(m=g+_,h=m+5,v="center"):(y=p+_,c=y+5,v="left")),t==="horizontal"?(y=p,c=y):(m=g,h=m),d=[[p,g],[y,m]]}l.label={linePoints:d,x:c,y:h,verticalAlign:"middle",textAlign:v,inside:f}})}function o6(r,e){r.eachSeriesByType("funnel",function(t){var a=t.getData(),n=a.mapDimension("value"),i=t.get("sort"),o=Ie(t,e),s=ne(t.getBoxLayoutParams(),o.refContainer),l=t.get("orient"),u=s.width,f=s.height,v=n6(a,i),c=s.x,h=s.y,d=l==="horizontal"?[j(t.get("minSize"),f),j(t.get("maxSize"),f)]:[j(t.get("minSize"),u),j(t.get("maxSize"),u)],p=a.getDataExtent(n),g=t.get("min"),y=t.get("max");g==null&&(g=Math.min(p[0],0)),y==null&&(y=p[1]);var m=t.get("funnelAlign"),_=t.get("gap"),S=l==="horizontal"?u:f,b=(S-_*(a.count()-1))/a.count(),x=function(k,R){if(l==="horizontal"){var N=a.get(n,k)||0,E=Wt(N,[g,y],d,!0),z=void 0;switch(m){case"top":z=h;break;case"center":z=h+(f-E)/2;break;case"bottom":z=h+(f-E);break}return[[R,z],[R,z+E]]}var V=a.get(n,k)||0,H=Wt(V,[g,y],d,!0),G;switch(m){case"left":G=c;break;case"center":G=c+(u-H)/2;break;case"right":G=c+u-H;break}return[[G,R],[G+H,R]]};i==="ascending"&&(b=-b,_=-_,l==="horizontal"?c+=u:h+=f,v=v.reverse());for(var w=0;w<v.length;w++){var T=v[w],C=v[w+1],M=a.getItemModel(T);if(l==="horizontal"){var D=M.get(["itemStyle","width"]);D==null?D=b:(D=j(D,u),i==="ascending"&&(D=-D));var I=x(T,c),L=x(C,c+D);c+=D+_,a.setItemLayout(T,{points:I.concat(L.slice().reverse())})}else{var P=M.get(["itemStyle","height"]);P==null?P=b:(P=j(P,f),i==="ascending"&&(P=-P));var I=x(T,h),L=x(C,h+P);h+=P+_,a.setItemLayout(T,{points:I.concat(L.slice().reverse())})}}i6(a)})}function s6(r){r.registerChartView(e6),r.registerSeriesModel(a6),r.registerLayout(o6),r.registerProcessor(Ks("funnel"))}var l6=.3,u6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new ft,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._dataGroup,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,v=Ew(t);s.diff(l).add(c).update(h).remove(d).execute();function c(g){var y=kw(s,o,g,f,u);mp(y,s,g,v)}function h(g,y){var m=l.getItemGraphicEl(y),_=FP(s,g,f,u);s.setItemGraphicEl(g,m),Nt(m,{shape:{points:_}},t,g),Ur(m),mp(m,s,g,v)}function d(g){var y=l.getItemGraphicEl(g);o.remove(y)}if(!this._initialized){this._initialized=!0;var p=f6(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(p)}this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,a,n){for(var i=a.getData(),o=a.coordinateSystem,s=o.dimensions,l=Ew(a),u=this._progressiveEls=[],f=t.start;f<t.end;f++){var v=kw(i,this._dataGroup,f,s,o);v.incremental=!0,mp(v,i,f,l),u.push(v)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Jt);function f6(r,e,t){var a=r.model,n=r.getRect(),i=new Dt({shape:{x:n.x,y:n.y,width:n.width,height:n.height}}),o=a.get("layout")==="horizontal"?"width":"height";return i.setShape(o,0),re(i,{shape:{width:n.width,height:n.height}},e,t),i}function FP(r,e,t,a){for(var n=[],i=0;i<t.length;i++){var o=t[i],s=r.get(r.mapDimension(o),e);v6(s,a.getAxis(o).type)||n.push(a.dataToPoint(s,o))}return n}function kw(r,e,t,a,n){var i=FP(r,t,a,n),o=new tr({shape:{points:i},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function Ew(r){var e=r.get("smooth",!0);return e===!0&&(e=l6),e=fn(e),je(e)&&(e=0),{smooth:e}}function mp(r,e,t,a){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",a.smooth);var n=e.getItemModel(t),i=n.getModel("emphasis");De(r,n,"lineStyle"),ae(r,i.get("focus"),i.get("blurScope"),i.get("disabled"))}function v6(r,e){return e==="category"?r==null:r==null||isNaN(r)}const c6=u6;var h6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,a){return _n(null,this,{useEncodeDefaulter:Q(d6,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var a=this.coordinateSystem,n=this.getData(),i=[];return a.eachActiveState(n,function(o,s){t===o&&i.push(n.getRawIndex(s))}),i},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}(ie);function d6(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return A(e.dimensions,function(a){var n=p6(a);t[a]=n}),t}}function p6(r){return+r.replace("dim","")}const g6=h6;var y6=["lineStyle","opacity"],m6={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,a={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(n,i){t.eachActiveState(i,function(o,s){var l=a[o];if(o==="normal"&&i.hasItemOption){var u=i.getItemModel(s).get(y6,!0);u!=null&&(l=u)}var f=i.ensureUniqueItemVisual(s,"style");f.opacity=l},n.start,n.end)}}}};const _6=m6;function S6(r){x6(r),b6(r)}function x6(r){if(!r.parallel){var e=!1;A(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function b6(r){var e=Zt(r.parallelAxis);A(e,function(t){if(dt(t)){var a=t.parallelIndex||0,n=Zt(r.parallel)[a];n&&n.parallelAxisDefault&&wt(t,n.parallelAxisDefault,!1)}})}var w6=5,T6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},A(C6,function(i,o){n.getZr().on(o,this._handlers[o]=Q(i,this))},this)),Zs(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){gu(this,"_throttledDispatchExpand"),A(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction($({type:"parallelAxisExpand"},t))},e.type="parallel",e}(se),C6={mousedown:function(r){_p(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(_p(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>w6)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!_p(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function _p(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const A6=T6;var M6=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&wt(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){A(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=$t(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);A(n,function(i){t.push("dim"+i.get("dim")),a.push(i.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}(kt);const D6=M6;var L6=function(r){B(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(fa);const I6=L6;function ei(r,e,t,a,n,i){r=r||0;var o=t[1]-t[0];if(n!=null&&(n=Jo(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(e[1]-e[0]);s=Jo(s,[0,o]),n=i=Jo(s,[n,i]),a=0}e[0]=Jo(e[0],t),e[1]=Jo(e[1],t);var l=Sp(e,a);e[a]+=r;var u=n||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[a]=Jo(e[a],f);var v;return v=Sp(e,a),n!=null&&(v.sign!==l.sign||v.span<n)&&(e[1-a]=e[a]+l.sign*n),v=Sp(e,a),i!=null&&v.span>i&&(e[1-a]=e[a]+v.sign*i),e}function Sp(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function Jo(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var xp=A,HP=Math.min,WP=Math.max,Ow=Math.floor,P6=Math.ceil,Nw=me,R6=Math.PI,k6=function(){function r(e,t,a){this.type="parallel",this._axesMap=at(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;xp(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new I6(o,dh(u),[0,0],u.get("type"),l)),v=f.type==="category";f.onBand=v&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();xp(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),Ds(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){var a=Ie(e,t).refContainer;this._rect=ne(e.getBoxLayoutParams(),a),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Xf(e.get("axisExpandWidth"),l),v=Xf(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>v&&v>1&&f>0&&s>0,h=e.get("axisExpandWindow"),d;if(h)d=Xf(h[1]-h[0],l),h[1]=h[0]+d;else{d=Xf(f*(v-1),l);var p=e.get("axisExpandCenter")||Ow(u/2);h=[f*p-d/2],h[1]=h[0]+d}var g=(s-d)/(u-v);g<3&&(g=0);var y=[Ow(Nw(h[0]/f,1))+1,P6(Nw(h[1]/f,1))-1],m=g/f*h[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),xp(a,function(o,s){var l=(n.axisExpandable?O6:E6)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:R6/2,vertical:0},v=[u[i].x+e.x,u[i].y+e.y],c=f[i],h=Ge();ni(h,h,c),Na(h,h,v),this._axesLayout[o]={position:v,rotation:c,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];A(o,function(g){s.push(e.mapDimension(g)),l.push(i.get(g).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var v=void 0;if(!u)v="normal";else{v="active";for(var c=e.getValues(s,f),h=0,d=o.length;h<d;h++){var p=l[h].getActiveState(c[h]);if(p==="inactive"){v="inactive";break}}}t(v,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return ra([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return ut(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,v=this._model.get("axisExpandSlideTriggerArea"),c=v[0]!=null;if(f)c&&f&&s<i*v[0]?(u="jump",l=s-i*v[2]):c&&f&&s>i*(1-v[0])?(u="jump",l=s-i*(1-v[2])):(l=s-i*v[1])>=0&&(l=s-i*(1-v[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?ei(l,n,o,"all"):u="none";else{var h=n[1]-n[0],d=o[1]*s/h;n=[WP(0,d-h/2)],n[1]=HP(o[1],n[0]+h),n[0]=n[1]-h}return{axisExpandWindow:n,behavior:u}},r}();function Xf(r,e){return HP(WP(r,e[0]),e[1])}function E6(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function O6(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const N6=k6;function B6(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new N6(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",fe).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var z6={create:B6};const V6=z6;var $P=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return fo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=ut(t);if(a)for(var n=a.length-1;n>=0;n--)Hr(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e}(kt);we($P,Wu);const Bw=$P;var go=!0,Iu=Math.min,ks=Math.max,G6=Math.pow,F6=1e4,H6=6,W6=6,zw="globalPan",$6={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},U6={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Vw={brushStyle:{lineWidth:2,stroke:F.color.backgroundTint,fill:F.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},Y6=0,Z6=function(r){B(e,r);function e(t){var a=r.call(this)||this;return a._track=[],a._covers=[],a._handlers={},a._zr=t,a.group=new ft,a._uid="brushController_"+Y6++,A(tY,function(n,i){this._handlers[i]=Q(n,this)},a),a}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var a=this._zr;this._enableGlobalPan||ZW(a,zw,this._uid),A(this._handlers,function(n,i){a.on(i,n)}),this._brushType=t.brushType,this._brushOption=wt(ut(Vw),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;XW(t,zw,this._uid),A(this._handlers,function(a,n){t.off(n,a)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var a=this._panels={};A(t,function(n){a[n.panelId]=ut(n)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var a=this.group;return this._zr.add(a),a.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=a.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Z(t,function(c){return wt(ut(Vw),c,!0)});var a="\0-brush-index-",n=this._covers,i=this._covers=[],o=this,s=this._creatingCover;return new hn(n,t,u,l).add(f).update(f).remove(v).execute(),this;function l(c,h){return(c.id!=null?c.id:a+h)+"-"+c.brushType}function u(c,h){return l(c.__brushOption,h)}function f(c,h){var d=t[c];if(h!=null&&n[h]===s)i[c]=n[h];else{var p=i[c]=h!=null?(n[h].__brushOption=d,n[h]):YP(o,UP(o,d));r_(o,p)}}function v(c){n[c]!==s&&o.group.remove(n[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),Fy(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Yr);function UP(r,e){var t=wh[e.brushType].createCover(r,e);return t.__brushOption=e,XP(t,e),r.group.add(t),t}function YP(r,e){var t=a_(e);return t.endCreating&&(t.endCreating(r,e),XP(e,e.__brushOption)),e}function ZP(r,e){var t=e.__brushOption;a_(e).updateCoverShape(r,e,t.range,t)}function XP(r,e){var t=e.z;t==null&&(t=F6),r.traverse(function(a){a.z=t,a.z2=t})}function r_(r,e){a_(e).updateCommon(r,e),ZP(r,e)}function a_(r){return wh[r.__brushOption.brushType]}function n_(r,e,t){var a=r._panels;if(!a)return go;var n,i=r._transform;return A(a,function(o){o.isTargetByCursor(e,t,i)&&(n=o)}),n}function qP(r,e){var t=r._panels;if(!t)return go;var a=e.__brushOption.panelId;return a!=null?t[a]:go}function Fy(r){var e=r._covers,t=e.length;return A(e,function(a){r.group.remove(a)},r),e.length=0,!!t}function yo(r,e){var t=Z(r._covers,function(a){var n=a.__brushOption,i=ut(n.range);return{brushType:n.brushType,panelId:n.panelId,range:i}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function X6(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],a=e[0],n=t[0]-a[0],i=t[1]-a[1],o=G6(n*n+i*i,.5);return o>H6}function KP(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function jP(r,e,t,a){var n=new ft;return n.add(new Dt({name:"main",style:i_(t),silent:!0,draggable:!0,cursor:"move",drift:xt(Gw,r,e,n,["n","s","w","e"]),ondragend:xt(yo,e,{isEnd:!0})})),A(a,function(i){n.add(new Dt({name:i.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xt(Gw,r,e,n,i),ondragend:xt(yo,e,{isEnd:!0})}))}),n}function JP(r,e,t,a){var n=a.brushStyle.lineWidth||0,i=ks(n,W6),o=t[0][0],s=t[1][0],l=o-n/2,u=s-n/2,f=t[0][1],v=t[1][1],c=f-i+n/2,h=v-i+n/2,d=f-o,p=v-s,g=d+n,y=p+n;qa(r,e,"main",o,s,d,p),a.transformable&&(qa(r,e,"w",l,u,i,y),qa(r,e,"e",c,u,i,y),qa(r,e,"n",l,u,g,i),qa(r,e,"s",l,h,g,i),qa(r,e,"nw",l,u,i,i),qa(r,e,"ne",c,u,i,i),qa(r,e,"sw",l,h,i,i),qa(r,e,"se",c,h,i,i))}function Hy(r,e){var t=e.__brushOption,a=t.transformable,n=e.childAt(0);n.useStyle(i_(t)),n.attr({silent:!a,cursor:a?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(i){var o=e.childOfName(i.join("")),s=i.length===1?Wy(r,i[0]):K6(r,i);o&&o.attr({silent:!a,invisible:!a,cursor:a?U6[s]+"-resize":null})})}function qa(r,e,t,a,n,i,o){var s=e.childOfName(t);s&&s.setShape(J6(o_(r,e,[[a,n],[a+i,n+o]])))}function i_(r){return ht({strokeNoScale:!0},r.brushStyle)}function QP(r,e,t,a){var n=[Iu(r,t),Iu(e,a)],i=[ks(r,t),ks(e,a)];return[[n[0],i[0]],[n[1],i[1]]]}function q6(r){return ao(r.group)}function Wy(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},a={left:"w",right:"e",top:"n",bottom:"s"},n=nh(t[e],q6(r));return a[n]}function K6(r,e){var t=[Wy(r,e[0]),Wy(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function Gw(r,e,t,a,n,i){var o=t.__brushOption,s=r.toRectRange(o.range),l=tR(e,n,i);A(a,function(u){var f=$6[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(QP(s[0][0],s[1][0],s[0][1],s[1][1])),r_(e,t),yo(e,{isEnd:!1})}function j6(r,e,t,a){var n=e.__brushOption.range,i=tR(r,t,a);A(n,function(o){o[0]+=i[0],o[1]+=i[1]}),r_(r,e),yo(r,{isEnd:!1})}function tR(r,e,t){var a=r.group,n=a.transformCoordToLocal(e,t),i=a.transformCoordToLocal(0,0);return[n[0]-i[0],n[1]-i[1]]}function o_(r,e,t){var a=qP(r,e);return a&&a!==go?a.clipPath(t,r._transform):ut(t)}function J6(r){var e=Iu(r[0][0],r[1][0]),t=Iu(r[0][1],r[1][1]),a=ks(r[0][0],r[1][0]),n=ks(r[0][1],r[1][1]);return{x:e,y:t,width:a-e,height:n-t}}function Q6(r,e,t){if(!(!r._brushType||eY(r,e.offsetX,e.offsetY))){var a=r._zr,n=r._covers,i=n_(r,e,t);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(i&&(i===go||s.panelId===i.panelId)&&wh[s.brushType].contain(n[o],t[0],t[1]))return}i&&a.setCursorStyle("crosshair")}}function $y(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Uy(r,e,t){return r.childOfName("main").contain(e,t)}function eR(r,e,t,a){var n=r._creatingCover,i=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),X6(r)||n){if(i&&!n){o.brushMode==="single"&&Fy(r);var l=ut(o);l.brushType=Fw(l.brushType,i),l.panelId=i===go?null:i.panelId,n=r._creatingCover=UP(r,l),r._covers.push(n)}if(n){var u=wh[Fw(r._brushType,i)],f=n.__brushOption;f.range=u.getCreatingRange(o_(r,n,r._track)),a&&(YP(r,n),u.updateCommon(r,n)),ZP(r,n),s={isEnd:a}}}else a&&o.brushMode==="single"&&o.removeOnClick&&n_(r,e,t)&&Fy(r)&&(s={isEnd:a,removeOnClick:!0});return s}function Fw(r,e){return r==="auto"?e.defaultBrushType:r}var tY={mousedown:function(r){if(this._dragging)Hw(this,r);else if(!r.target||!r.target.draggable){$y(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=n_(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,a=this.group.transformCoordToLocal(e,t);if(Q6(this,r,a),this._dragging){$y(r);var n=eR(this,r,a,!1);n&&yo(this,n)}},mouseup:function(r){Hw(this,r)}};function Hw(r,e){if(r._dragging){$y(e);var t=e.offsetX,a=e.offsetY,n=r.group.transformCoordToLocal(t,a),i=eR(r,e,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,i&&yo(r,i)}}function eY(r,e,t){var a=r._zr;return e<0||e>a.getWidth()||t<0||t>a.getHeight()}var wh={lineX:Ww(0),lineY:Ww(1),rect:{createCover:function(r,e){function t(a){return a}return jP({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=KP(r);return QP(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,a){JP(r,e,t,a)},updateCommon:Hy,contain:Uy},polygon:{createCover:function(r,e){var t=new ft;return t.add(new tr({name:"main",style:i_(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new lr({name:"main",draggable:!0,drift:xt(j6,r,e),ondragend:xt(yo,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,a){e.childAt(0).setShape({points:o_(r,e,t)})},updateCommon:Hy,contain:Uy}};function Ww(r){return{createCover:function(e,t){return jP({toRectRange:function(a){var n=[a,[0,100]];return r&&n.reverse(),n},fromRectRange:function(a){return a[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=KP(e),a=Iu(t[0][r],t[1][r]),n=ks(t[0][r],t[1][r]);return[a,n]},updateCoverShape:function(e,t,a,n){var i,o=qP(e,t);if(o!==go&&o.getLinearBrushOtherExtent)i=o.getLinearBrushOtherExtent(r);else{var s=e._zr;i=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[a,i];r&&l.reverse(),JP(e,t,l,n)},updateCommon:Hy,contain:Uy}}const s_=Z6;function rR(r){return r=l_(r),function(e){return RD(e,r)}}function aR(r,e){return r=l_(r),function(t){var a=e??t,n=a?r.width:r.height,i=a?r.x:r.y;return[i,i+(n||0)]}}function nR(r,e,t){var a=l_(r);return function(n,i){return a.contain(i[0],i[1])&&!sP(n,e,t)}}function l_(r){return gt.create(r)}var rY=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new s_(a.getZr())).on("brush",Q(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!aY(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new ft,this.group.add(this._axisGroup),!!t.get("show")){var s=iY(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,v=t.axis.dim,c=l.getAxisLayout(v),h=$({strokeContainThreshold:f},c),d=new dn(t,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,u,t,s,f,n),Nu(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),v=gt.create({x:l[0],y:-o/2,width:u,height:o});v.x-=f,v.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:rR(v),isTargetByCursor:nR(v,s,i),getLinearBrushOtherExtent:aR(v,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(nY(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=Z(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(se);function aY(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function nY(r){var e=r.axis;return Z(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function iY(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const oY=rY;var sY={type:"axisAreaSelect",event:"axisAreaSelected"};function lY(r){r.registerAction(sY,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var uY={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function iR(r){r.registerComponentView(A6),r.registerComponentModel(D6),r.registerCoordinateSystem("parallel",V6),r.registerPreprocessor(S6),r.registerComponentModel(Bw),r.registerComponentView(oY),Ps(r,"parallel",Bw,uY),lY(r)}function fY(r){Ct(iR),r.registerChartView(c6),r.registerSeriesModel(g6),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,_6)}var vY=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r}(),cY=function(r){B(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new vY},e.prototype.buildPath=function(t,a){var n=a.extent;t.moveTo(a.x1,a.y1),t.bezierCurveTo(a.cpx1,a.cpy1,a.cpx2,a.cpy2,a.x2,a.y2),a.orient==="vertical"?(t.lineTo(a.x2+n,a.y2),t.bezierCurveTo(a.cpx2+n,a.cpy2,a.cpx1+n,a.cpy1,a.x1+n,a.y1)):(t.lineTo(a.x2,a.y2+n),t.bezierCurveTo(a.cpx2,a.cpy2+n,a.cpx1,a.cpy1+n,a.x1,a.y1+n)),t.closePath()},e.prototype.highlight=function(){vn(this)},e.prototype.downplay=function(){cn(this)},e}(It),hY=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._mainGroup=new ft,t._focusAdjacencyDisabled=!1,t}return e.prototype.init=function(t,a){this._controller=new Lo(a.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(t,a,n){var i=this,o=t.getGraph(),s=this._mainGroup,l=t.layoutInfo,u=l.width,f=l.height,v=t.getData(),c=t.getData("edge"),h=t.get("orient");this._model=t,s.removeAll(),s.x=l.x,s.y=l.y,this._updateViewCoordSys(t,n),lP(t,n,s,this._controller,this._controllerHost,null),o.eachEdge(function(d){var p=new cY,g=yt(p);g.dataIndex=d.dataIndex,g.seriesIndex=t.seriesIndex,g.dataType="edge";var y=d.getModel(),m=y.getModel("lineStyle"),_=m.get("curveness"),S=d.node1.getLayout(),b=d.node1.getModel(),x=b.get("localX"),w=b.get("localY"),T=d.node2.getLayout(),C=d.node2.getModel(),M=C.get("localX"),D=C.get("localY"),I=d.getLayout(),L,P,k,R,N,E,z,V;p.shape.extent=Math.max(1,I.dy),p.shape.orient=h,h==="vertical"?(L=(x!=null?x*u:S.x)+I.sy,P=(w!=null?w*f:S.y)+S.dy,k=(M!=null?M*u:T.x)+I.ty,R=D!=null?D*f:T.y,N=L,E=P*(1-_)+R*_,z=k,V=P*_+R*(1-_)):(L=(x!=null?x*u:S.x)+S.dx,P=(w!=null?w*f:S.y)+I.sy,k=M!=null?M*u:T.x,R=(D!=null?D*f:T.y)+I.ty,N=L*(1-_)+k*_,E=P,z=L*_+k*(1-_),V=R),p.setShape({x1:L,y1:P,x2:k,y2:R,cpx1:N,cpy1:E,cpx2:z,cpy2:V}),p.useStyle(m.getItemStyle()),$w(p.style,h,d);var H=""+y.get("value"),G=Le(y,"edgeLabel");Ee(p,G,{labelFetcher:{getFormattedLabel:function(ot,_t,At,st,et,it){return t.getFormattedLabel(ot,_t,"edge",st,wr(et,G.normal&&G.normal.get("formatter"),H),it)}},labelDataIndex:d.dataIndex,defaultText:H}),p.setTextConfig({position:"inside"});var Y=y.getModel("emphasis");De(p,y,"lineStyle",function(ot){var _t=ot.getItemStyle();return $w(_t,h,d),_t}),s.add(p),c.setItemGraphicEl(d.dataIndex,p);var X=Y.get("focus");ae(p,X==="adjacency"?d.getAdjacentDataIndices():X==="trajectory"?d.getTrajectoryDataIndices():X,Y.get("blurScope"),Y.get("disabled"))}),o.eachNode(function(d){var p=d.getLayout(),g=d.getModel(),y=g.get("localX"),m=g.get("localY"),_=g.getModel("emphasis"),S=g.get(["itemStyle","borderRadius"])||0,b=new Dt({shape:{x:y!=null?y*u:p.x,y:m!=null?m*f:p.y,width:p.dx,height:p.dy,r:S},style:g.getModel("itemStyle").getItemStyle(),z2:10});Ee(b,Le(g),{labelFetcher:{getFormattedLabel:function(w,T){return t.getFormattedLabel(w,T,"node")}},labelDataIndex:d.dataIndex,defaultText:d.id}),b.disableLabelAnimation=!0,b.setStyle("fill",d.getVisual("color")),b.setStyle("decal",d.getVisual("style").decal),De(b,g),s.add(b),v.setItemGraphicEl(d.dataIndex,b),yt(b).dataType="node";var x=_.get("focus");ae(b,x==="adjacency"?d.getAdjacentDataIndices():x==="trajectory"?d.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),v.eachItemGraphicEl(function(d,p){var g=v.getItemModel(p);g.get("draggable")&&(d.drift=function(y,m){i._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=m,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:v.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/f})},d.ondragend=function(){i._focusAdjacencyDisabled=!1},d.draggable=!0,d.cursor="move")}),!this._data&&t.isAnimationEnabled()&&s.setClipPath(dY(s.getBoundingRect(),t,function(){s.removeClipPath()})),this._data=t.getData()},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._updateViewCoordSys=function(t,a){var n=t.layoutInfo,i=n.width,o=n.height,s=t.coordinateSystem=new Io(null,{api:a,ecModel:t.ecModel});s.zoomLimit=t.get("scaleLimit"),s.setBoundingRect(0,0,i,o),s.setCenter(t.get("center")),s.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY})},e.type="sankey",e}(Jt);function $w(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var a=t.node1.getVisual("color"),n=t.node2.getVisual("color");J(a)&&J(n)&&(r.fill=new Fs(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:a,offset:0},{color:n,offset:1}]))}}function dY(r,e,t){var a=new Dt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return re(a,{shape:{width:r.width+20}},e,t),a}const pY=hY;var gY=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){var n=t.edges||t.links||[],i=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Bt(o[l],this,a));var u=e_(i,n,this,!0,f);return u.data;function f(v,c){v.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getData().getItemLayout(d);if(g){var y=g.depth,m=p.levelModels[y];m&&(h.parentModel=m)}return h}),c.wrapMethod("getItemModel",function(h,d){var p=h.parentModel,g=p.getGraph().getEdgeByIndex(d),y=g.node1.getLayout();if(y){var m=y.depth,_=p.levelModels[m];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(t,a){var n=this.option.data||this.option.nodes,i=n[t];i.localX=a[0],i.localY=a[1]},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,a,n){function i(h){return isNaN(h)||h==null}if(n==="edge"){var o=this.getDataParams(t,n),s=o.data,l=o.value,u=s.source+" -- "+s.target;return xe("nameValue",{name:u,value:l,noValue:i(l)})}else{var f=this.getGraph().getNodeByIndex(t),v=f.getLayout().value,c=this.getDataParams(t,n).data.name;return xe("nameValue",{name:c!=null?c+"":null,value:v,noValue:i(v)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,a){var n=r.prototype.getDataParams.call(this,t,a);if(n.value==null&&a==="node"){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;n.value=o}return n},e.type="series.sankey",e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:F.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:F.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(ie);const yY=gY;function mY(r,e){r.eachSeriesByType("sankey",function(t){var a=t.get("nodeWidth"),n=t.get("nodeGap"),i=Ie(t,e).refContainer,o=ne(t.getBoxLayoutParams(),i);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,v=u.edges;SY(f);var c=$t(f,function(g){return g.getLayout().value===0}),h=c.length!==0?0:t.get("layoutIterations"),d=t.get("orient"),p=t.get("nodeAlign");_Y(f,v,a,n,s,l,h,d,p)})}function _Y(r,e,t,a,n,i,o,s,l){xY(r,e,t,n,i,s,l),CY(r,e,i,n,a,o,s),EY(r,s)}function SY(r){A(r,function(e){var t=qn(e.outEdges,wc),a=qn(e.inEdges,wc),n=e.getValue()||0,i=Math.max(t,a,n);e.setLayout({value:i},!0)})}function xY(r,e,t,a,n,i,o){for(var s=[],l=[],u=[],f=[],v=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var h=-1;u.length;){for(var d=0;d<u.length;d++){var p=u[d],g=p.hostGraph.data.getRawDataItem(p.dataIndex),y=g.depth!=null&&g.depth>=0;y&&g.depth>h&&(h=g.depth),p.setLayout({depth:y?g.depth:v},!0),i==="vertical"?p.setLayout({dy:t},!0):p.setLayout({dx:t},!0);for(var m=0;m<p.outEdges.length;m++){var _=p.outEdges[m],S=e.indexOf(_);s[S]=0;var b=_.node2,x=r.indexOf(b);--l[x]===0&&f.indexOf(b)<0&&f.push(b)}}++v,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=h>v-1?h:v-1;o&&o!=="left"&&bY(r,o,i,w);var T=i==="vertical"?(n-t)/w:(a-t)/w;TY(r,T,i)}function oR(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function bY(r,e,t,a){if(e==="right"){for(var n=[],i=r,o=0;i.length;){for(var s=0;s<i.length;s++){var l=i[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];n.indexOf(f.node1)<0&&n.push(f.node1)}}i=n,n=[],++o}A(r,function(v){oR(v)||v.setLayout({depth:Math.max(0,a-v.getLayout().skNodeHeight)},!0)})}else e==="justify"&&wY(r,a)}function wY(r,e){A(r,function(t){!oR(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function TY(r,e,t){A(r,function(a){var n=a.getLayout().depth*e;t==="vertical"?a.setLayout({y:n},!0):a.setLayout({x:n},!0)})}function CY(r,e,t,a,n,i,o){var s=AY(r,o);MY(s,e,t,a,n,o),bp(s,n,t,a,o);for(var l=1;i>0;i--)l*=.99,DY(s,l,o),bp(s,n,t,a,o),kY(s,l,o),bp(s,n,t,a,o)}function AY(r,e){var t=[],a=e==="vertical"?"y":"x",n=Rg(r,function(i){return i.getLayout()[a]});return n.keys.sort(function(i,o){return i-o}),A(n.keys,function(i){t.push(n.buckets.get(i))}),t}function MY(r,e,t,a,n,i){var o=1/0;A(r,function(s){var l=s.length,u=0;A(s,function(v){u+=v.getLayout().value});var f=i==="vertical"?(a-(l-1)*n)/u:(t-(l-1)*n)/u;f<o&&(o=f)}),A(r,function(s){A(s,function(l,u){var f=l.getLayout().value*o;i==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),A(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function bp(r,e,t,a,n){var i=n==="vertical"?"x":"y";A(r,function(o){o.sort(function(p,g){return p.getLayout()[i]-g.getLayout()[i]});for(var s,l,u,f=0,v=o.length,c=n==="vertical"?"dx":"dy",h=0;h<v;h++)l=o[h],u=f-l.getLayout()[i],u>0&&(s=l.getLayout()[i]+u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]+l.getLayout()[c]+e;var d=n==="vertical"?a:t;if(u=f-e-d,u>0){s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var h=v-2;h>=0;--h)l=o[h],u=l.getLayout()[i]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[i]-u,n==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[i]}})}function DY(r,e,t){A(r.slice().reverse(),function(a){A(a,function(n){if(n.outEdges.length){var i=qn(n.outEdges,LY,t)/qn(n.outEdges,wc);if(isNaN(i)){var o=n.outEdges.length;i=o?qn(n.outEdges,IY,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-ri(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ri(n,t))*e;n.setLayout({y:l},!0)}}})})}function LY(r,e){return ri(r.node2,e)*r.getValue()}function IY(r,e){return ri(r.node2,e)}function PY(r,e){return ri(r.node1,e)*r.getValue()}function RY(r,e){return ri(r.node1,e)}function ri(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function wc(r){return r.getValue()}function qn(r,e,t){for(var a=0,n=r.length,i=-1;++i<n;){var o=+e(r[i],t);isNaN(o)||(a+=o)}return a}function kY(r,e,t){A(r,function(a){A(a,function(n){if(n.inEdges.length){var i=qn(n.inEdges,PY,t)/qn(n.inEdges,wc);if(isNaN(i)){var o=n.inEdges.length;i=o?qn(n.inEdges,RY,t)/o:0}if(t==="vertical"){var s=n.getLayout().x+(i-ri(n,t))*e;n.setLayout({x:s},!0)}else{var l=n.getLayout().y+(i-ri(n,t))*e;n.setLayout({y:l},!0)}}})})}function EY(r,e){var t=e==="vertical"?"x":"y";A(r,function(a){a.outEdges.sort(function(n,i){return n.node2.getLayout()[t]-i.node2.getLayout()[t]}),a.inEdges.sort(function(n,i){return n.node1.getLayout()[t]-i.node1.getLayout()[t]})}),A(r,function(a){var n=0,i=0;A(a.outEdges,function(o){o.setLayout({sy:n},!0),n+=o.getLayout().dy}),A(a.inEdges,function(o){o.setLayout({ty:i},!0),i+=o.getLayout().dy})})}function OY(r){r.eachSeriesByType("sankey",function(e){var t=e.getGraph(),a=t.nodes,n=t.edges;if(a.length){var i=1/0,o=-1/0;A(a,function(s){var l=s.getLayout().value;l<i&&(i=l),l>o&&(o=l)}),A(a,function(s){var l=new Ye({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}n.length&&A(n,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function NY(r){r.registerChartView(pY),r.registerSeriesModel(yY),r.registerLayout(mY),r.registerVisual(OY),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(a){a.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),r.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(e,t,a){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(n){var i=n.coordinateSystem,o=_h(i,e,n.get("scaleLimit"));n.setCenter(o.center),n.setZoom(o.zoom)})})}var sR=function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var a,n=t.getComponent("xAxis",this.get("xAxisIndex")),i=t.getComponent("yAxis",this.get("yAxisIndex")),o=n.get("type"),s=i.get("type"),l;o==="category"?(e.layout="horizontal",a=n.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(e.layout="vertical",a=i.getOrdinalMeta(),l=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var u=["x","y"],f=e.layout==="horizontal"?0:1,v=this._baseAxisDim=u[f],c=u[1-f],h=[n,i],d=h[f].get("type"),p=h[1-f].get("type"),g=e.data;if(g&&l){var y=[];A(g,function(S,b){var x;U(S)?(x=S.slice(),S.unshift(b)):U(S.value)?(x=$({},S),x.value=x.value.slice(),S.value.unshift(b)):x=S,y.push(x)}),e.data=y}var m=this.defaultValueDimensions,_=[{name:v,type:ic(d),ordinalMeta:a,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:ic(p),dimsDef:m.slice()}];return js(this,{coordDimensions:_,dimensionsCount:m.length+1,encodeDefaulter:xt(cL,_,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r}(),lR=function(r){B(e,r);function e(){var t=r!==null&&r.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:F.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}},animationDuration:800},e}(ie);we(lR,sR,!0);const BY=lR;var zY=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.get("layout")==="horizontal"?1:0;i.diff(s).add(function(u){if(i.hasValue(u)){var f=i.getItemLayout(u),v=Uw(f,i,u,l,!0);i.setItemGraphicEl(u,v),o.add(v)}}).update(function(u,f){var v=s.getItemGraphicEl(f);if(!i.hasValue(u)){o.remove(v);return}var c=i.getItemLayout(u);v?(Ur(v),uR(c,v,i,u)):v=Uw(c,i,u,l),o.add(v),i.setItemGraphicEl(u,v)}).remove(function(u){var f=s.getItemGraphicEl(u);f&&o.remove(f)}).execute(),this._data=i},e.prototype.remove=function(t){var a=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(i){i&&a.remove(i)})},e.type="boxplot",e}(Jt),VY=function(){function r(){}return r}(),GY=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="boxplotBoxPath",a}return e.prototype.getDefaultShape=function(){return new VY},e.prototype.buildPath=function(t,a){var n=a.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),i++,t.lineTo(n[i][0],n[i][1])},e}(It);function Uw(r,e,t,a,n){var i=r.ends,o=new GY({shape:{points:n?FY(i,a,r):i}});return uR(r,o,e,t,n),o}function uR(r,e,t,a,n){var i=t.hostModel,o=xo[n?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},i,a),e.useStyle(t.getItemVisual(a,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(a),l=s.getModel("emphasis");De(e,s),ae(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function FY(r,e,t){return Z(r,function(a){return a=a.slice(),a[e]=t.initBaseline,a})}const HY=zY;var eu=A;function WY(r){var e=$Y(r);eu(e,function(t){var a=t.seriesModels;a.length&&(UY(t),eu(a,function(n,i){YY(n,t.boxOffsetList[i],t.boxWidthList[i])}))})}function $Y(r){var e=[],t=[];return r.eachSeriesByType("boxplot",function(a){var n=a.getBaseAxis(),i=bt(t,n);i<0&&(i=t.length,t[i]=n,e[i]={axis:n,seriesModels:[]}),e[i].seriesModels.push(a)}),e}function UY(r){var e=r.axis,t=r.seriesModels,a=t.length,n=r.boxWidthList=[],i=r.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;eu(t,function(d){l=Math.max(l,d.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}eu(t,function(d){var p=d.get("boxWidth");U(p)||(p=[p,p]),o.push([j(p[0],s)||0,j(p[1],s)||0])});var f=s*.8-2,v=f/a*.3,c=(f-v*(a-1))/a,h=c/2-f/2;eu(t,function(d,p){i.push(h),h+=v+c,n.push(Math.min(Math.max(c,o[p][0]),o[p][1]))})}function YY(r,e,t){var a=r.coordinateSystem,n=r.getData(),i=t/2,o=r.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=n.mapDimension(l[o]),f=n.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var v=0;v<n.count();v++){var c=n.get(u,v),h=_(c,f[2],v),d=_(c,f[0],v),p=_(c,f[1],v),g=_(c,f[3],v),y=_(c,f[4],v),m=[];S(m,p,!1),S(m,g,!0),m.push(d,p,y,g),b(m,d),b(m,y),b(m,h),n.setItemLayout(v,{initBaseline:h[s],ends:m})}function _(x,w,T){var C=n.get(w,T),M=[];M[o]=x,M[s]=C;var D;return isNaN(x)||isNaN(C)?D=[NaN,NaN]:(D=a.dataToPoint(M),D[o]+=e),D}function S(x,w,T){var C=w.slice(),M=w.slice();C[o]+=i,M[o]-=i,T?x.push(C,M):x.push(M,C)}function b(x,w){var T=w.slice(),C=w.slice();T[o]-=i,C[o]+=i,x.push(T,C)}}function ZY(r,e){e=e||{};for(var t=[],a=[],n=e.boundIQR,i=n==="none"||n===0,o=0;o<r.length;o++){var s=Hr(r[o].slice()),l=jh(s,.25),u=jh(s,.5),f=jh(s,.75),v=s[0],c=s[s.length-1],h=(n??1.5)*(f-l),d=i?v:Math.max(v,l-h),p=i?c:Math.min(c,f+h),g=e.itemNameFormatter,y=lt(g)?g({value:o}):J(g)?g.replace("{value}",o+""):o+"";t.push([y,d,l,u,f,p]);for(var m=0;m<s.length;m++){var _=s[m];if(_<d||_>p){var S=[y,_];a.push(S)}}}return{boxData:t,outliers:a}}var XY={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Fe){var a="";Gt(a)}var n=ZY(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}};function qY(r){r.registerSeriesModel(BY),r.registerChartView(HY),r.registerLayout(WY),r.registerTransform(XY)}var KY=["itemStyle","borderColor"],jY=["itemStyle","borderColor0"],JY=["itemStyle","borderColorDoji"],QY=["itemStyle","color"],t7=["itemStyle","color0"];function u_(r,e){return e.get(r>0?QY:t7)}function f_(r,e){return e.get(r===0?JY:r>0?KY:jY)}var e7={seriesType:"candlestick",plan:Ys(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(a,n){for(var i;(i=a.next())!=null;){var o=n.getItemModel(i),s=n.getItemLayout(i).sign,l=o.getItemStyle();l.fill=u_(s,o),l.stroke=f_(s,o)||l.fill;var u=n.ensureUniqueItemVisual(i,"style");$(u,l)}}}}}};const r7=e7;var a7=["color","borderColor"],n7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,a,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,a,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,a):this._incrementalRenderNormal(t,a)},e.prototype.eachRendered=function(t){oi(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var a=t.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},e.prototype._renderNormal=function(t){var a=t.getData(),n=this._data,i=this.group,o=a.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea();this._data||i.removeAll(),a.diff(n).add(function(f){if(a.hasValue(f)){var v=a.getItemLayout(f);if(s&&Yw(u,v))return;var c=wp(v,f,!0);re(c,{shape:{points:v.ends}},t,f),Tp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}}).update(function(f,v){var c=n.getItemGraphicEl(v);if(!a.hasValue(f)){i.remove(c);return}var h=a.getItemLayout(f);if(s&&Yw(u,h)){i.remove(c);return}c?(Nt(c,{shape:{points:h.ends}},t,f),Ur(c)):c=wp(h),Tp(c,a,f,o),i.add(c),a.setItemGraphicEl(f,c)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&i.remove(v)}).execute(),this._data=a},e.prototype._renderLarge=function(t){this._clear(),Zw(t,this.group);var a=t.get("clip",!0)?Yu(t.coordinateSystem,!1,t):null;a?this.group.setClipPath(a):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,a){for(var n=a.getData(),i=n.getLayout("isSimpleBox"),o;(o=t.next())!=null;){var s=n.getItemLayout(o),l=wp(s);Tp(l,n,o,i),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(t,a){Zw(a,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}(Jt),i7=function(){function r(){}return r}(),o7=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="normalCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new i7},e.prototype.buildPath=function(t,a){var n=a.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(It);function wp(r,e,t){var a=r.ends;return new o7({shape:{points:t?s7(a,r):a},z2:100})}function Yw(r,e){for(var t=!0,a=0;a<e.ends.length;a++)if(r.contain(e.ends[a][0],e.ends[a][1])){t=!1;break}return t}function Tp(r,e,t,a){var n=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0,r.__simpleBox=a,De(r,n);var i=e.getItemLayout(t).sign;A(r.states,function(s,l){var u=n.getModel(l),f=u_(i,u),v=f_(i,u)||f,c=s.style||(s.style={});f&&(c.fill=f),v&&(c.stroke=v)});var o=n.getModel("emphasis");ae(r,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function s7(r,e){return Z(r,function(t){return t=t.slice(),t[1]=e.initBaseline,t})}var l7=function(){function r(){}return r}(),Cp=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a.type="largeCandlestickBox",a}return e.prototype.getDefaultShape=function(){return new l7},e.prototype.buildPath=function(t,a){for(var n=a.points,i=0;i<n.length;)if(this.__sign===n[i++]){var o=n[i++];t.moveTo(o,n[i++]),t.lineTo(o,n[i++])}else i+=3},e}(It);function Zw(r,e,t,a){var n=r.getData(),i=n.getLayout("largePoints"),o=new Cp({shape:{points:i},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new Cp({shape:{points:i},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new Cp({shape:{points:i},__sign:0,ignoreCoarsePointer:!0});e.add(l),Ap(1,o,r),Ap(-1,s,r),Ap(0,l,r),a&&(o.incremental=!0,s.incremental=!0),t&&t.push(o,s)}function Ap(r,e,t,a){var n=f_(r,t)||u_(r,t),i=t.getModel("itemStyle").getItemStyle(a7);e.useStyle(i),e.style.fill=null,e.style.stroke=n}const u7=n7;var fR=function(r){B(e,r);function e(){var t=r!==null&&r.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,a,n){var i=a.getItemLayout(t);return i&&n.rect(i.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:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(ie);we(fR,sR,!0);const f7=fR;function v7(r){!r||!U(r.series)||A(r.series,function(e){dt(e)&&e.type==="k"&&(e.type="candlestick")})}var c7={seriesType:"candlestick",plan:Ys(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),a=h7(r,t),n=0,i=1,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[n])),l=Z(t.mapDimensionsAll(o[i]),t.getDimensionIndex,t),u=l[0],f=l[1],v=l[2],c=l[3];if(t.setLayout({candleWidth:a,isSimpleBox:a<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?d:h};function h(p,g){for(var y,m=g.getStore();(y=p.next())!=null;){var _=m.get(s,y),S=m.get(u,y),b=m.get(f,y),x=m.get(v,y),w=m.get(c,y),T=Math.min(S,b),C=Math.max(S,b),M=N(T,_),D=N(C,_),I=N(x,_),L=N(w,_),P=[];E(P,D,0),E(P,M,1),P.push(V(L),V(D),V(I),V(M));var k=g.getItemModel(y),R=!!k.get(["itemStyle","borderColorDoji"]);g.setItemLayout(y,{sign:Xw(m,y,S,b,f,R),initBaseline:S>b?D[i]:M[i],ends:P,brushRect:z(x,w,_)})}function N(H,G){var Y=[];return Y[n]=G,Y[i]=H,isNaN(G)||isNaN(H)?[NaN,NaN]:e.dataToPoint(Y)}function E(H,G,Y){var X=G.slice(),ot=G.slice();X[n]=xv(X[n]+a/2,1,!1),ot[n]=xv(ot[n]-a/2,1,!0),Y?H.push(X,ot):H.push(ot,X)}function z(H,G,Y){var X=N(H,Y),ot=N(G,Y);return X[n]-=a/2,ot[n]-=a/2,{x:X[0],y:X[1],width:a,height:ot[1]-X[1]}}function V(H){return H[n]=xv(H[n],1),H}}function d(p,g){for(var y=Da(p.count*4),m=0,_,S=[],b=[],x,w=g.getStore(),T=!!r.get(["itemStyle","borderColorDoji"]);(x=p.next())!=null;){var C=w.get(s,x),M=w.get(u,x),D=w.get(f,x),I=w.get(v,x),L=w.get(c,x);if(isNaN(C)||isNaN(I)||isNaN(L)){y[m++]=NaN,m+=3;continue}y[m++]=Xw(w,x,M,D,f,T),S[n]=C,S[i]=I,_=e.dataToPoint(S,null,b),y[m++]=_?_[0]:NaN,y[m++]=_?_[1]:NaN,S[i]=L,_=e.dataToPoint(S,null,b),y[m++]=_?_[1]:NaN}g.setLayout("largePoints",y)}}};function Xw(r,e,t,a,n,i){var o;return t>a?o=-1:t<a?o=1:o=i?0:e>0?r.get(n,e-1)<=a?1:-1:1,o}function h7(r,e){var t=r.getBaseAxis(),a,n=t.type==="category"?t.getBandWidth():(a=t.getExtent(),Math.abs(a[1]-a[0])/e.count()),i=j(nt(r.get("barMaxWidth"),n),n),o=j(nt(r.get("barMinWidth"),1),n),s=r.get("barWidth");return s!=null?j(s,n):Math.max(Math.min(n/2,i),o)}const d7=c7;function p7(r){r.registerChartView(u7),r.registerSeriesModel(f7),r.registerPreprocessor(v7),r.registerVisual(r7),r.registerLayout(d7)}function qw(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(a){a.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var g7=function(r){B(e,r);function e(t,a){var n=r.call(this)||this,i=new $u(t,a),o=new ft;return n.add(i),n.add(o),n.updateData(t,a),n}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var a=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),s=0;s<i;s++){var l=be(a,-1,-1,2,2,n);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/i*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(),o.add(l)}qw(o,t)},e.prototype.updateEffectAnimation=function(t){for(var a=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var s=i[o];if(a[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}qw(n,t)},e.prototype.highlight=function(){vn(this)},e.prototype.downplay=function(){cn(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,a){var n=this,i=t.hostModel;this.childAt(0).updateData(t,a);var o=this.childAt(1),s=t.getItemModel(a),l=t.getItemVisual(a,"symbol"),u=Xs(t.getItemVisual(a,"symbolSize")),f=t.getItemVisual(a,"style"),v=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(g){g.setStyle("fill",v)});var h=Co(t.getItemVisual(a,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var d=t.getItemVisual(a,"symbolRotate");o.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=i.get("showEffectOn"),p.rippleScale=s.get(["rippleEffect","scale"]),p.brushType=s.get(["rippleEffect","brushType"]),p.period=s.get(["rippleEffect","period"])*1e3,p.effectOffset=a/t.count(),p.z=i.getShallow("z")||0,p.zlevel=i.getShallow("zlevel")||0,p.symbolType=l,p.color=v,p.rippleEffectColor=s.get(["rippleEffect","color"]),p.rippleNumber=s.get(["rippleEffect","number"]),p.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(g){g==="emphasis"?p.showEffectOn!=="render"&&n.startEffectAnimation(p):g==="normal"&&p.showEffectOn!=="render"&&n.stopEffectAnimation()}),this._effectCfg=p,ae(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(ft);const y7=g7;var m7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new Uu(y7)},e.prototype.render=function(t,a,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},e.prototype._getClipShape=function(t){var a=t.coordinateSystem,n=a&&a.getArea&&a.getArea();return t.get("clip",!0)?n:null},e.prototype.updateTransform=function(t,a,n){var i=t.getData();this.group.dirty();var o=Zu("").reset(t,a,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(t){var a=t.coordinateSystem;a&&a.getRoamTransform&&(this.group.transform=FE(a.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,a){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Jt);const _7=m7;var S7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,a){return _n(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,a,n){return n.point(a.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}(ie);const x7=S7;function b7(r){r.registerChartView(_7),r.registerSeriesModel(x7),r.registerLayout(Zu("effectScatter"))}var w7=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;return i.add(i.createLine(t,a,n)),i._updateEffectSymbol(t,a),i}return e.prototype.createLine=function(t,a,n){return new Q0(t,a,n)},e.prototype._updateEffectSymbol=function(t,a){var n=t.getItemModel(a),i=n.getModel("effect"),o=i.get("symbolSize"),s=i.get("symbol");U(o)||(o=[o,o]);var l=t.getItemVisual(a,"style"),u=i.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=be(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(i.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,i,a))},e.prototype._updateEffectAnimation=function(t,a,n){var i=this.childAt(1);if(i){var o=t.getItemLayout(n),s=a.get("period")*1e3,l=a.get("loop"),u=a.get("roundTrip"),f=a.get("constantSpeed"),v=Ue(a.get("delay"),function(h){return h/t.count()*s/3});if(i.ignore=!0,this._updateAnimationPoints(i,o),f>0&&(s=this._getLineLength(i)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){i.stopAnimation();var c=void 0;lt(v)?c=v(n):c=v,i.__t>0&&(c=-s*i.__t),this._animateSymbol(i,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,a,n,i,o){if(a>0){t.__t=0;var s=this,l=t.animate("",i).when(o?a*2:a,{__t:o?2:1}).delay(n).during(function(){s._updateSymbolPosition(t)});i||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return En(t.__p1,t.__cp1)+En(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},e.prototype.updateData=function(t,a,n){this.childAt(0).updateData(t,a,n),this._updateEffectSymbol(t,a)},e.prototype._updateSymbolPosition=function(t){var a=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Ve,f=yg;s[0]=u(a[0],i[0],n[0],o),s[1]=u(a[1],i[1],n[1],o);var v=t.__t<1?f(a[0],i[0],n[0],o):f(n[0],i[0],a[0],1-o),c=t.__t<1?f(a[1],i[1],n[1],o):f(n[1],i[1],a[1],1-o);t.rotation=-Math.atan2(c,v)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=En(l,s)*1.05,o===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*En(a,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,a){this.childAt(0).updateLayout(t,a);var n=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,n,a)},e}(ft);const vR=w7;var T7=function(r){B(e,r);function e(t,a,n){var i=r.call(this)||this;return i._createPolyline(t,a,n),i}return e.prototype._createPolyline=function(t,a,n){var i=t.getItemLayout(a),o=new tr({shape:{points:i}});this.add(o),this._updateCommonStl(t,a,n)},e.prototype.updateData=function(t,a,n){var i=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(a)}};Nt(o,s,i,a),this._updateCommonStl(t,a,n)},e.prototype._updateCommonStl=function(t,a,n){var i=this.childAt(0),o=t.getItemModel(a),s=n&&n.emphasisLineStyle,l=n&&n.focus,u=n&&n.blurScope,f=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var v=o.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),f=v.get("disabled"),l=v.get("focus"),u=v.get("blurScope")}i.useStyle(t.getItemVisual(a,"style")),i.style.fill=null,i.style.strokeNoScale=!0;var c=i.ensureState("emphasis");c.style=s,ae(this,l,u,f)},e.prototype.updateLayout=function(t,a){var n=this.childAt(0);n.setShape("points",t.getItemLayout(a))},e}(ft);const cR=T7;var C7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,a,n){return new cR(t,a,n)},e.prototype._updateAnimationPoints=function(t,a){this._points=a;for(var n=[0],i=0,o=1;o<a.length;o++){var s=a[o-1],l=a[o];i+=En(s,l),n.push(i)}if(i===0){this._length=0;return}for(var o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var a=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var s=this._lastFrame,l;if(a<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(i[l]<=a);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(i[l]>a);l++);l=Math.min(l-1,o-2)}var f=(a-i[l])/(i[l+1]-i[l]),v=n[l],c=n[l+1];t.x=v[0]*(1-f)+f*c[0],t.y=v[1]*(1-f)+f*c[1];var h=t.__t<1?c[0]-v[0]:v[0]-c[0],d=t.__t<1?c[1]-v[1]:v[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=a,t.ignore=!1}},e}(vR);const A7=C7;var M7=function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r}(),D7=function(r){B(e,r);function e(t){var a=r.call(this,t)||this;return a._off=0,a.hoverDataIdx=-1,a}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:F.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new M7},e.prototype.buildPath=function(t,a){var n=a.segs,i=a.curveness,o;if(a.polyline)for(o=this._off;o<n.length;){var s=n[o++];if(s>0){t.moveTo(n[o++],n[o++]);for(var l=1;l<s;l++)t.lineTo(n[o++],n[o++])}}else for(o=this._off;o<n.length;){var u=n[o++],f=n[o++],v=n[o++],c=n[o++];if(t.moveTo(u,f),i>0){var h=(u+v)/2-(f-c)*i,d=(f+c)/2-(v-u)*i;t.quadraticCurveTo(h,d,v,c)}else t.lineTo(v,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,a){var n=this.shape,i=n.segs,o=n.curveness,s=this.style.lineWidth;if(n.polyline)for(var l=0,u=0;u<i.length;){var f=i[u++];if(f>0)for(var v=i[u++],c=i[u++],h=1;h<f;h++){var d=i[u++],p=i[u++];if(Rn(v,c,d,p,s,t,a))return l}l++}else for(var l=0,u=0;u<i.length;){var v=i[u++],c=i[u++],d=i[u++],p=i[u++];if(o>0){var g=(v+d)/2-(c-p)*o,y=(c+p)/2-(d-v)*o;if(UM(v,c,g,y,d,p,s,t,a))return l}else if(Rn(v,c,d,p,s,t,a))return l;l++}return-1},e.prototype.contain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();if(t=n[0],a=n[1],i.contain(t,a)){var o=this.hoverDataIdx=this.findDataIndex(t,a);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var a=this.shape,n=a.segs,i=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<n.length;){var f=n[u++],v=n[u++];i=Math.min(f,i),s=Math.max(f,s),o=Math.min(v,o),l=Math.max(v,l)}t=this._rect=new gt(i,o,s,l)}return t},e}(It),L7=function(){function r(){this.group=new ft}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t){var a=this._newAdded[0],n=t.getLayout("linesPoints"),i=a&&a.shape.segs;if(i&&i.length<2e4){var o=i.length,s=new Float32Array(o+n.length);s.set(i),s.set(n,o),a.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:n}),this._setCommon(l,t),l.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new D7({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,a){var n=t.hostModel;e.setShape({polyline:n.get("polyline"),curveness:n.get(["lineStyle","curveness"])}),e.useStyle(n.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var i=t.getVisual("style");i&&i.stroke&&e.setStyle("stroke",i.stroke),e.setStyle("fill",null);var o=yt(e);o.seriesIndex=n.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}();const I7=L7;var P7={seriesType:"lines",plan:Ys(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),a=r.pipelineContext.large;return{progress:function(n,i){var o=[];if(a){var s=void 0,l=n.end-n.start;if(t){for(var u=0,f=n.start;f<n.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var v=0,c=[],f=n.start;f<n.end;f++){var h=r.getLineCoords(f,o);t&&(s[v++]=h);for(var d=0;d<h;d++)c=e.dataToPoint(o[d],!1,c),s[v++]=c[0],s[v++]=c[1]}i.setLayout("linesPoints",s)}else for(var f=n.start;f<n.end;f++){var p=i.getItemModel(f),h=r.getLineCoords(f,o),g=[];if(t)for(var y=0;y<h;y++)g.push(e.dataToPoint(o[y]));else{g[0]=e.dataToPoint(o[0]),g[1]=e.dataToPoint(o[1]);var m=p.get(["lineStyle","curveness"]);+m&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*m,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*m])}i.setItemLayout(f,g)}}}}}};const hR=P7;var R7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=n.getZr(),f=u.painter.getType()==="svg";f||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&(f||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(i);var v=t.get("clip",!0)&&Yu(t.coordinateSystem,!1,t);v?this.group.setClipPath(v):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,a,n){var i=t.getData(),o=this._updateLineDraw(i,t);o.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,a,n){this._lineDraw.incrementalUpdate(t,a.getData()),this._finished=t.end===a.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,a,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=hR.reset(t,a,n);s.progress&&s.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,a){var n=this._lineDraw,i=this._showEffect(a),o=!!a.get("polyline"),s=a.pipelineContext,l=s.large;return(!n||i!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(n&&n.remove(),n=this._lineDraw=l?new I7:new t_(o?i?A7:cR:i?vR:Q0),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=l),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var a=t.getZr(),n=a.painter.getType()==="svg";!n&&this._lastZlevel!=null&&a.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,a){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(a)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.type="lines",e}(Jt);const k7=R7;var E7=typeof Uint32Array>"u"?Array:Uint32Array,O7=typeof Float64Array>"u"?Array:Float64Array;function Kw(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=Z(e,function(t){var a=[t[0].coord,t[1].coord],n={coords:a};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Sm([n,t[0],t[1]])}))}var N7=function(r){B(e,r);function e(){var t=r!==null&&r.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||[],Kw(t);var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(Kw(t),t.data){var a=this._processFlatCoordsArray(t.data);this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset,a.flatCoords&&(t.data=new Float32Array(a.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var a=this._processFlatCoordsArray(t.data);a.flatCoords&&(this._flatCoords?(this._flatCoords=au(this._flatCoords,a.flatCoords),this._flatCoordsOffset=au(this._flatCoordsOffset,a.flatCoordsOffset)):(this._flatCoords=a.flatCoords,this._flatCoordsOffset=a.flatCoordsOffset),t.data=new Float32Array(a.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var a=this.getData().getItemModel(t),n=a.option instanceof Array?a.option:a.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,a){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[t*2],i=this._flatCoordsOffset[t*2+1],o=0;o<i;o++)a[o]=a[o]||[],a[o][0]=this._flatCoords[n+o*2],a[o][1]=this._flatCoords[n+o*2+1];return i}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)a[o]=a[o]||[],a[o][0]=s[o][0],a[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var a=0;if(this._flatCoords&&(a=this._flatCoords.length),Rt(t[0])){for(var n=t.length,i=new E7(n),o=new O7(n),s=0,l=0,u=0,f=0;f<n;){u++;var v=t[f++];i[l++]=s+a,i[l++]=v;for(var c=0;c<v;c++){var h=t[f++],d=t[f++];o[s++]=h,o[s++]=d}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,a){var n=new ir(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(i,o,s,l){if(i instanceof Array)return NaN;n.hasItemOption=!0;var u=i.value;if(u!=null)return u instanceof Array?u[l]:u}),n},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getItemModel(t),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),xe("nameValue",{name:f.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"),a=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&a>0?a+"":""},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}(ie);const B7=N7;function qf(r){return r instanceof Array||(r=[r,r]),r}var z7={seriesType:"lines",reset:function(r){var e=qf(r.get("symbol")),t=qf(r.get("symbolSize")),a=r.getData();a.setVisual("fromSymbol",e&&e[0]),a.setVisual("toSymbol",e&&e[1]),a.setVisual("fromSymbolSize",t&&t[0]),a.setVisual("toSymbolSize",t&&t[1]);function n(i,o){var s=i.getItemModel(o),l=qf(s.getShallow("symbol",!0)),u=qf(s.getShallow("symbolSize",!0));l[0]&&i.setItemVisual(o,"fromSymbol",l[0]),l[1]&&i.setItemVisual(o,"toSymbol",l[1]),u[0]&&i.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&i.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:a.hasItemOption?n:null}}};const V7=z7;function G7(r){r.registerChartView(k7),r.registerSeriesModel(B7),r.registerLayout(hR),r.registerVisual(V7)}var F7=256,H7=function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=na.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,v=this.canvas,c=v.getContext("2d"),h=e.length;v.width=t,v.height=a;for(var d=0;d<h;++d){var p=e[d],g=p[0],y=p[1],m=p[2],_=n(m);c.globalAlpha=_,c.drawImage(s,g-f,y-f)}if(!v.width||!v.height)return v;for(var S=c.getImageData(0,0,v.width,v.height),b=S.data,x=0,w=b.length,T=this.minOpacity,C=this.maxOpacity,M=C-T;x<w;){var _=b[x+3]/256,D=Math.floor(_*(F7-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*M+T),b[x++]=I[D],b[x++]=I[D+1],b[x++]=I[D+2],b[x++]=I[D+3]*_*256}else x+=4}return c.putImageData(S,0,0),v},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=na.createCanvas()),t=this.pointSize+this.blurSize,a=t*2;e.width=a,e.height=a;var n=e.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=F.color.neutral99,n.beginPath(),n.arc(-t,t,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),e},r.prototype._getGradient=function(e,t){for(var a=this._gradientPixels,n=a[t]||(a[t]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r}();const W7=H7;function $7(r,e,t){var a=r[1]-r[0];e=Z(e,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=e.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&t[s]}}function U7(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(a){return a>=e[0]&&a<=e[1]}}function jw(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"}var Y7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,n,0,t.getData().count()):jw(o)&&this._renderOnGeo(o,t,i,n)},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,a,n,i){var o=a.coordinateSystem;o&&(jw(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){oi(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,a,n,i,o){var s=t.coordinateSystem,l=ti(s,"cartesian2d"),u=ti(s,"matrix"),f,v,c,h;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,v=p.getBandWidth()+.5,c=d.scale.getExtent(),h=p.scale.getExtent()}for(var g=this.group,y=t.getData(),m=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),S=t.getModel(["select","itemStyle"]).getItemStyle(),b=t.get(["itemStyle","borderRadius"]),x=Le(t),w=t.getModel("emphasis"),T=w.get("focus"),C=w.get("blurScope"),M=w.get("disabled"),D=l||u?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],I=n;I<i;I++){var L=void 0,P=y.getItemVisual(I,"style");if(l){var k=y.get(D[0],I),R=y.get(D[1],I);if(isNaN(y.get(D[2],I))||isNaN(k)||isNaN(R)||k<c[0]||k>c[1]||R<h[0]||R>h[1])continue;var N=s.dataToPoint([k,R]);L=new Dt({shape:{x:N[0]-f/2,y:N[1]-v/2,width:f,height:v},style:P})}else if(u){var E=s.dataToLayout([y.get(D[0],I),y.get(D[1],I)]).rect;if(je(E.x))continue;L=new Dt({z2:1,shape:E,style:P})}else{if(isNaN(y.get(D[1],I)))continue;var z=s.dataToLayout([y.get(D[0],I)]),E=z.contentRect||z.rect;if(je(E.x)||je(E.y))continue;L=new Dt({z2:1,shape:E,style:P})}if(y.hasItemOption){var V=y.getItemModel(I),H=V.getModel("emphasis");m=H.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=H.get("focus"),C=H.get("blurScope"),M=H.get("disabled"),x=Le(V)}L.shape.r=b;var G=t.getRawValue(I),Y="-";G&&G[2]!=null&&(Y=G[2]+""),Ee(L,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:Y}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,ae(L,T,C,M),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(I,L),this._progressiveEls&&this._progressiveEls.push(L)}},e.prototype._renderOnGeo=function(t,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new W7;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=t.getViewRect().clone(),v=t.getRoamTransform();f.applyTransform(v);var c=Math.max(f.x,0),h=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),g=d-c,y=p-h,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(w,T,C){var M=t.dataToPoint([w,T]);return M[0]-=c,M[1]-=h,M.push(C),M}),S=n.getExtent(),b=n.type==="visualMap.continuous"?U7(S,n.option.range):$7(S,n.getPieceList(),n.option.selected);u.update(_,g,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Ze({style:{width:g,height:y,x:c,y:h,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(Jt);const Z7=Y7;var X7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,a){return _n(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Gu.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","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:F.color.primary}}},e}(ie);const q7=X7;function K7(r){r.registerChartView(Z7),r.registerSeriesModel(q7)}var j7=["itemStyle","borderWidth"],Jw=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Mp=new ii,J7=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),v=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[v.x,v.x+v.width],[v.y,v.y+v.height]],isHorizontal:f,valueDim:Jw[+f],categoryDim:Jw[1-+f]};o.diff(s).add(function(d){if(o.hasValue(d)){var p=tT(o,d),g=Qw(o,d,p,c),y=eT(o,c,g);o.setItemGraphicEl(d,y),i.add(y),aT(y,c,g)}}).update(function(d,p){var g=s.getItemGraphicEl(p);if(!o.hasValue(d)){i.remove(g);return}var y=tT(o,d),m=Qw(o,d,y,c),_=_R(o,m);g&&_!==g.__pictorialShapeStr&&(i.remove(g),o.setItemGraphicEl(d,null),g=null),g?i9(g,c,m):g=eT(o,c,m,!0),o.setItemGraphicEl(d,g),g.__pictorialSymbolMeta=m,i.add(g),aT(g,c,m)}).remove(function(d){var p=s.getItemGraphicEl(d);p&&rT(s,d,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=t.get("clip",!0)?Yu(t.coordinateSystem,!1,t):null;return h?i.setClipPath(h):i.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,a){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(o){rT(i,yt(o).dataIndex,t,o)}):n.removeAll()},e.type="pictorialBar",e}(Jt);function Qw(r,e,t,a){var n=r.getItemLayout(e),i=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,v=t.isAnimationEnabled(),c={dataIndex:e,layout:n,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:i,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:v?t:null,hoverScale:v&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};Q7(t,i,n,a,c),t9(r,e,n,i,o,c.boundingLength,c.pxSign,f,a,c),e9(t,c.symbolScale,u,a,c);var h=c.symbolSize,d=Co(t.get("symbolOffset"),h);return r9(t,h,n,i,o,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,a,c),c}function Q7(r,e,t,a,n){var i=a.valueDim,o=r.get("symbolBoundingData"),s=a.coordSys.getOtherAxis(a.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[i.wh]<=0),f;if(U(o)){var v=[Dp(s,o[0])-l,Dp(s,o[1])-l];v[1]<v[0]&&v.reverse(),f=v[u]}else o!=null?f=Dp(s,o)-l:e?f=a.coordSysExtent[i.index][u]-l:f=t[i.wh];n.boundingLength=f,e&&(n.repeatCutLength=t[i.wh]);var c=i.xy==="x",h=s.inverse;n.pxSign=c&&!h||!c&&h?f>=0?1:-1:f>0?1:-1}function Dp(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function t9(r,e,t,a,n,i,o,s,l,u){var f=l.valueDim,v=l.categoryDim,c=Math.abs(t[v.wh]),h=r.getItemVisual(e,"symbolSize"),d;U(h)?d=h.slice():h==null?d=["100%","100%"]:d=[h,h],d[v.index]=j(d[v.index],c),d[f.index]=j(d[f.index],a?c:Math.abs(i)),u.symbolSize=d;var p=u.symbolScale=[d[0]/s,d[1]/s];p[f.index]*=(l.isHorizontal?-1:1)*o}function e9(r,e,t,a,n){var i=r.get(j7)||0;i&&(Mp.attr({scaleX:e[0],scaleY:e[1],rotation:t}),Mp.updateTransform(),i/=Mp.getLineScale(),i*=e[a.valueDim.index]),n.valueLineWidth=i||0}function r9(r,e,t,a,n,i,o,s,l,u,f,v){var c=f.categoryDim,h=f.valueDim,d=v.pxSign,p=Math.max(e[h.index]+s,0),g=p;if(a){var y=Math.abs(l),m=Ue(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=j(m,e[h.index]),b=Math.max(p+S*2,0),x=_?0:S*2,w=LM(a),T=w?a:nT((y+x)/b),C=y-T*p;S=C/2/(_?T:Math.max(T-1,1)),b=p+S*2,x=_?0:S*2,!w&&a!=="fixed"&&(T=u?nT((Math.abs(u)+x)/b):0),g=T*b-x,v.repeatTimes=T,v.symbolMargin=S}var M=d*(g/2),D=v.pathPosition=[];D[c.index]=t[c.wh]/2,D[h.index]=o==="start"?M:o==="end"?l-M:l/2,i&&(D[0]+=i[0],D[1]+=i[1]);var I=v.bundlePosition=[];I[c.index]=t[c.xy],I[h.index]=t[h.xy];var L=v.barRectShape=$({},t);L[h.wh]=d*Math.max(Math.abs(t[h.wh]),Math.abs(D[h.index]+M)),L[c.wh]=t[c.wh];var P=v.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[h.xy]=0,P[h.wh]=t[h.wh]}function dR(r){var e=r.symbolPatternSize,t=be(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function pR(r,e,t,a){var n=r.__pictorialBundle,i=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,v=i[e.valueDim.index]+o+t.symbolMargin*2;for(v_(r,function(p){p.__pictorialAnimationIndex=f,p.__pictorialRepeatTimes=u,f<u?xs(p,null,d(f),t,a):xs(p,null,{scaleX:0,scaleY:0},t,a,function(){n.remove(p)}),f++});f<u;f++){var c=dR(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,n.add(c);var h=d(f);xs(c,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},t,a)}function d(p){var g=s.slice(),y=t.pxSign,m=p;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-p),g[l.index]=v*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function gR(r,e,t,a){var n=r.__pictorialBundle,i=r.__pictorialMainPath;i?xs(i,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,a):(i=r.__pictorialMainPath=dR(t),n.add(i),xs(i,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,a))}function yR(r,e,t){var a=$({},e.barRectShape),n=r.__pictorialBarRect;n?xs(n,null,{shape:a},e,t):(n=r.__pictorialBarRect=new Dt({z2:2,shape:a,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function mR(r,e,t,a){if(t.symbolClip){var n=r.__pictorialClipPath,i=$({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(n)Nt(n,{shape:i},s,l);else{i[o.wh]=0,n=new Dt({shape:i}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=t.clipShape[o.wh],xo[a?"updateProps":"initProps"](n,{shape:u},s,l)}}}function tT(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=a9,t.isAnimationEnabled=n9,t}function a9(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function n9(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function eT(r,e,t,a){var n=new ft,i=new ft;return n.add(i),n.__pictorialBundle=i,i.x=t.bundlePosition[0],i.y=t.bundlePosition[1],t.symbolRepeat?pR(n,e,t):gR(n,e,t),yR(n,t,a),mR(n,e,t,a),n.__pictorialShapeStr=_R(r,t),n.__pictorialSymbolMeta=t,n}function i9(r,e,t){var a=t.animationModel,n=t.dataIndex,i=r.__pictorialBundle;Nt(i,{x:t.bundlePosition[0],y:t.bundlePosition[1]},a,n),t.symbolRepeat?pR(r,e,t,!0):gR(r,e,t,!0),yR(r,t,!0),mR(r,e,t,!0)}function rT(r,e,t,a){var n=a.__pictorialBarRect;n&&n.removeTextContent();var i=[];v_(a,function(o){i.push(o)}),a.__pictorialMainPath&&i.push(a.__pictorialMainPath),a.__pictorialClipPath&&(t=null),A(i,function(o){jn(o,{scaleX:0,scaleY:0},t,e,function(){a.parent&&a.parent.remove(a)})}),r.setItemGraphicEl(e,null)}function _R(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function v_(r,e,t){A(r.__pictorialBundle.children(),function(a){a!==r.__pictorialBarRect&&e.call(t,a)})}function xs(r,e,t,a,n,i){e&&r.attr(e),a.symbolClip&&!n?t&&r.attr(t):t&&xo[n?"updateProps":"initProps"](r,t,a.animationModel,a.dataIndex,i)}function aT(r,e,t){var a=t.dataIndex,n=t.itemModel,i=n.getModel("emphasis"),o=i.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=i.get("focus"),v=i.get("blurScope"),c=i.get("scale");v_(r,function(p){if(p instanceof Ze){var g=p.style;p.useStyle($({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else p.useStyle(t.style);var y=p.ensureState("emphasis");y.style=o,c&&(y.scaleX=p.scaleX*1.1,y.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=t.z2});var h=e.valueDim.posDesc[+(t.boundingLength>0)],d=r.__pictorialBarRect;d.ignoreClip=!0,Ee(d,Le(n),{labelFetcher:e.seriesModel,labelDataIndex:a,defaultText:Is(e.seriesModel.getData(),a),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:h}),ae(r,f,v,i.get("disabled"))}function nT(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const o9=J7;var s9=function(r){B(e,r);function e(){var t=r!==null&&r.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,r.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=si(dc.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:F.color.primary}}}),e}(dc);const l9=s9;function u9(r){r.registerChartView(o9),r.registerSeriesModel(l9),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,xt(E2,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,O2("pictorialBar"))}var f9=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._layers=[],t}return e.prototype.render=function(t,a,n){var i=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=i.getLayout("layoutInfo"),f=u.rect,v=u.boundaryGap;s.x=0,s.y=f.y+v[0];function c(g){return g.name}var h=new hn(this._layersSeries||[],l,c,c),d=[];h.add(Q(p,this,"add")).update(Q(p,this,"update")).remove(Q(p,this,"remove")).execute();function p(g,y,m){var _=o._layers;if(g==="remove"){s.remove(_[y]);return}for(var S=[],b=[],x,w=l[y].indices,T=0;T<w.length;T++){var C=i.getItemLayout(w[T]),M=C.x,D=C.y0,I=C.y;S.push(M,D),b.push(M,D+I),x=i.getItemVisual(w[T],"style")}var L,P=i.getItemLayout(w[0]),k=t.getModel("label"),R=k.get("margin"),N=t.getModel("emphasis");if(g==="add"){var E=d[y]=new ft;L=new MI({shape:{points:S,stackedOnPoints:b,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),E.add(L),s.add(E),t.isAnimationEnabled()&&L.setClipPath(v9(L.getBoundingRect(),t,function(){L.removeClipPath()}))}else{var E=_[m];L=E.childAt(0),s.add(E),d[y]=E,Nt(L,{shape:{points:S,stackedOnPoints:b}},t),Ur(L)}Ee(L,Le(t),{labelDataIndex:w[T-1],defaultText:i.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var z=L.getTextContent();z&&(z.x=P.x-R,z.y=P.y0+P.y/2),L.useStyle(x),i.setItemGraphicEl(y,L),De(L,t),ae(L,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=d},e.type="themeRiver",e}(Jt);function v9(r,e,t){var a=new Dt({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return re(a,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),a}const c9=f9;var Lp=2,h9=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Js(Q(this.getData,this),Q(this.getRawData,this))},e.prototype.fixData=function(t){var a=t.length,n={},i=Rg(t,function(c){return n.hasOwnProperty(c[0]+"")||(n[c[0]+""]=-1),c[2]}),o=[];i.buckets.each(function(c,h){o.push({name:h,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var v=o[l].dataList[f][0]+"";n[v]=l}for(var v in n)n.hasOwnProperty(v)&&n[v]!==l&&(n[v]=l,t[a]=[v,0,u],a++)}return t},e.prototype.getInitialData=function(t,a){for(var n=this.getReferringComponents("singleAxis",fe).models[0],i=n.get("type"),o=$t(t.data,function(d){return d[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=at(),f=0,v=0;v<s.length;++v)l.push(s[v][Lp]),u.get(s[v][Lp])||(u.set(s[v][Lp],f),f++);var c=Hu(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ic(i)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ir(c,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),a=t.count(),n=[],i=0;i<a;++i)n[i]=i;var o=t.mapDimension("single"),s=Rg(n,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(v,c){return t.get(o,v)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,a,n){U(t)||(t=t?[t]:[]);for(var i=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var v=Number.MAX_VALUE,c=-1,h=o[f].indices.length,d=0;d<h;++d){var p=i.get(t[0],o[f].indices[d]),g=Math.abs(p-a);g<=v&&(u=p,v=g,c=o[f].indices[d])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=i.getName(t),s=i.get(i.mapDimension("value"),t);return xe("nameValue",{name:o,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}(ie);const d9=h9;function p9(r,e){r.eachSeriesByType("themeRiver",function(t){var a=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();if(i.boundaryGap=s,l.orient==="horizontal"){s[0]=j(s[0],o.height),s[1]=j(s[1],o.height);var u=o.height-s[0]-s[1];iT(a,t,u)}else{s[0]=j(s[0],o.width),s[1]=j(s[1],o.width);var f=o.width-s[0]-s[1];iT(a,t,f)}a.setLayout("layoutInfo",i)})}function iT(r,e,t){if(r.count())for(var a=e.coordinateSystem,n=e.getLayerSeries(),i=r.mapDimension("single"),o=r.mapDimension("value"),s=Z(n,function(g){return Z(g.indices,function(y){var m=a.dataToPoint(r.get(i,y));return m[1]=r.get(o,y),m})}),l=g9(s),u=l.y0,f=t/l.max,v=n.length,c=n[0].indices.length,h,d=0;d<c;++d){h=u[d]*f,r.setItemLayout(n[0].indices[d],{layerIndex:0,x:s[0][d][0],y0:h,y:s[0][d][1]*f});for(var p=1;p<v;++p)h+=s[p-1][d][1]*f,r.setItemLayout(n[p].indices[d],{layerIndex:p,x:s[p][d][0],y0:h,y:s[p][d][1]*f})}}function g9(r){for(var e=r.length,t=r[0].length,a=[],n=[],i=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>i&&(i=s),a.push(s)}for(var u=0;u<t;++u)n[u]=(i-a[u])/2;i=0;for(var f=0;f<t;++f){var v=a[f]+n[f];v>i&&(i=v)}return{y0:n,max:i}}function y9(r){r.registerChartView(c9),r.registerSeriesModel(d9),r.registerLayout(p9),r.registerProcessor(Ks("themeRiver"))}var m9=2,_9=4,S9=function(r){B(e,r);function e(t,a,n,i){var o=r.call(this)||this;o.z2=m9,o.textConfig={inside:!0},yt(o).seriesIndex=a.seriesIndex;var s=new Ot({z2:_9,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,a,n,i),o}return e.prototype.updateData=function(t,a,n,i,o){this.node=a,a.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var s=this;yt(s).dataIndex=a.dataIndex;var l=a.getModel(),u=l.getModel("emphasis"),f=a.getLayout(),v=$({},f);v.label=null;var c=a.getVisual("style");c.lineJoin="bevel";var h=a.getVisual("decal");h&&(c.decal=Ms(h,o));var d=Ia(l.getModel("itemStyle"),v,!0);$(v,d),A(or,function(m){var _=s.ensureState(m),S=l.getModel([m,"itemStyle"]);_.style=S.getItemStyle();var b=Ia(S,v);b&&(_.shape=b)}),t?(s.setShape(v),s.shape.r=f.r0,re(s,{shape:{r:f.r}},n,a.dataIndex)):(Nt(s,{shape:v},n),Ur(s)),s.useStyle(c),this._updateLabel(n);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var g=u.get("focus"),y=g==="relative"?au(a.getAncestorsIndices(),a.getDescendantIndices()):g==="ancestor"?a.getAncestorsIndices():g==="descendant"?a.getDescendantIndices():g;ae(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var a=this,n=this.node.getModel(),i=n.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),v=this,c=v.getTextContent(),h=this.node.dataIndex,d=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(d!=null&&Math.abs(s)<d);c.ignore=!p,A(fu,function(y){var m=y==="normal"?n.getModel("label"):n.getModel([y,"label"]),_=y==="normal",S=_?c:c.ensureState(y),b=t.getFormattedLabel(h,y);_&&(b=b||a.node.name),S.style=jt(m,{},null,y!=="normal",!0),b&&(S.style.text=b);var x=m.get("show");x!=null&&!_&&(S.ignore=!x);var w=g(m,"position"),T=_?v:v.states[y],C=T.style.fill;T.textConfig={outsideFill:m.get("color")==="inherit"?C:null,inside:w!=="outside"};var M,D=g(m,"distance")||0,I=g(m,"align"),L=g(m,"rotate"),P=Math.PI*.5,k=Math.PI*1.5,R=xr(L==="tangential"?Math.PI/2-l:l),N=R>P&&!su(R-P)&&R<k;w==="outside"?(M=o.r+D,I=N?"right":"left"):!I||I==="center"?(s===2*Math.PI&&o.r0===0?M=0:M=(o.r+o.r0)/2,I="center"):I==="left"?(M=o.r0+D,I=N?"right":"left"):I==="right"&&(M=o.r-D,I=N?"left":"right"),S.style.align=I,S.style.verticalAlign=g(m,"verticalAlign")||"middle",S.x=M*u+o.cx,S.y=M*f+o.cy;var E=0;L==="radial"?E=xr(-l)+(N?Math.PI:0):L==="tangential"?E=xr(Math.PI/2-l)+(N?Math.PI:0):Rt(L)&&(E=L*Math.PI/180),S.rotation=xr(E)});function g(y,m){var _=y.get(m);return _??i.get(m)}c.dirtyStyle()},e}(sr);const oT=S9;var Yy="sunburstRootToNode",sT="sunburstHighlight",x9="sunburstUnhighlight";function b9(r){r.registerAction({type:Yy,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n,i){var o=Au(e,[Yy],n);if(o){var s=n.getViewRoot();s&&(e.direction=Z0(s,o.node)?"rollUp":"drillDown"),n.resetViewRoot(o.node)}}}),r.registerAction({type:sT,update:"none"},function(e,t,a){e=$({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},n);function n(i){var o=Au(e,[sT],i);o&&(e.dataIndex=o.node.dataIndex)}a.dispatchAction($(e,{type:"highlight"}))}),r.registerAction({type:x9,update:"updateView"},function(e,t,a){e=$({},e),a.dispatchAction($(e,{type:"downplay"}))})}var w9=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){var o=this;this.seriesModel=t,this.api=n,this.ecModel=a;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,v=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(m){c.push(m)});var h=this._oldChildren||[];d(c,h),y(l,u),this._initEvents(),this._oldChildren=c;function d(m,_){if(m.length===0&&_.length===0)return;new hn(_,m,S,S).add(b).update(b).remove(xt(b,null)).execute();function S(x){return x.getId()}function b(x,w){var T=x==null?null:m[x],C=w==null?null:_[w];p(T,C)}}function p(m,_){if(!v&&m&&!m.getValue()&&(m=null),m!==l&&_!==l){if(_&&_.piece)m?(_.piece.updateData(!1,m,t,a,n),s.setItemGraphicEl(m.dataIndex,_.piece)):g(_);else if(m){var S=new oT(m,t,a,n);f.add(S),s.setItemGraphicEl(m.dataIndex,S)}}}function g(m){m&&m.piece&&(f.remove(m.piece),m.piece=null)}function y(m,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,m,t,a,n):(o.virtualPiece=new oT(m,t,a,n),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(S){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(a){var n=!1,i=t.seriesModel.getViewRoot();i.eachNode(function(o){if(!n&&o.piece&&o.piece===a.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";jv(u,f)}}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Yy,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=t[0]-i.cx,s=t[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},e.type="sunburst",e}(Jt);const T9=w9;var C9=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,a){var n={name:t.name,children:t.data};SR(n);var i=this._levelModels=Z(t.levels||[],function(l){return new Bt(l,this,a)},this),o=Y0.createTree(n,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var v=o.getNodeByDataIndex(f),c=i[v.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var a=r.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return a.treePathInfo=xh(n,this),a},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 a=this.getRawData().tree.root;(!t||t!==a&&!a.contains(t))&&(this._viewRoot=a)},e.prototype.enableAriaDecal=function(){wP(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}(ie);function SR(r){var e=0;A(r.children,function(a){SR(a);var n=a.value;U(n)&&(n=n[0]),e+=n});var t=r.value;U(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),U(r.value)?r.value[0]=t:r.value=t}const A9=C9;var lT=Math.PI/180;function M9(r,e,t){e.eachSeriesByType(r,function(a){var n=a.get("center"),i=a.get("radius");U(i)||(i=[0,i]),U(n)||(n=[n,n]);var o=t.getWidth(),s=t.getHeight(),l=Math.min(o,s),u=j(n[0],o),f=j(n[1],s),v=j(i[0],l/2),c=j(i[1],l/2),h=-a.get("startAngle")*lT,d=a.get("minAngle")*lT,p=a.getData().tree.root,g=a.getViewRoot(),y=g.depth,m=a.get("sort");m!=null&&xR(g,m);var _=0;A(g.children,function(R){!isNaN(R.getValue())&&_++});var S=g.getValue(),b=Math.PI/(S||_)*2,x=g.depth>0,w=g.height-(x?-1:1),T=(c-v)/(w||1),C=a.get("clockwise"),M=a.get("stillShowZeroSum"),D=C?1:-1,I=function(R,N){if(R){var E=N;if(R!==p){var z=R.getValue(),V=S===0&&M?b:z*b;V<d&&(V=d),E=N+D*V;var H=R.depth-y-(x?-1:1),G=v+T*H,Y=v+T*(H+1),X=a.getLevelModel(R);if(X){var ot=X.get("r0",!0),_t=X.get("r",!0),At=X.get("radius",!0);At!=null&&(ot=At[0],_t=At[1]),ot!=null&&(G=j(ot,l/2)),_t!=null&&(Y=j(_t,l/2))}R.setLayout({angle:V,startAngle:N,endAngle:E,clockwise:C,cx:u,cy:f,r0:G,r:Y})}if(R.children&&R.children.length){var st=0;A(R.children,function(et){st+=I(et,N+st)})}return E-N}};if(x){var L=v,P=v+T,k=Math.PI*2;p.setLayout({angle:k,startAngle:h,endAngle:h+k,clockwise:C,cx:u,cy:f,r0:L,r:P})}I(g,h)})}function xR(r,e){var t=r.children||[];r.children=D9(t,e),t.length&&A(r.children,function(a){xR(a,e)})}function D9(r,e){if(lt(e)){var t=Z(r,function(n,i){var o=n.getValue();return{params:{depth:n.depth,height:n.height,dataIndex:n.dataIndex,getValue:function(){return o}},index:i}});return t.sort(function(n,i){return e(n.params,i.params)}),Z(t,function(n){return r[n.index]})}else{var a=e==="asc";return r.sort(function(n,i){var o=(n.getValue()-i.getValue())*(a?1:-1);return o===0?(n.dataIndex-i.dataIndex)*(a?-1:1):o})}}function L9(r){var e={};function t(a,n,i){if(a.depth===0)return F.color.neutral50;for(var o=a;o&&o.depth>1;)o=o.parentNode;var s=n.getColorFromPalette(o.name||o.dataIndex+"",e);return a.depth>1&&J(s)&&(s=Sg(s,(a.depth-1)/(i-1)*.5)),s}r.eachSeriesByType("sunburst",function(a){var n=a.getData(),i=n.tree;i.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,a,i.root.height));var u=n.ensureUniqueItemVisual(o.dataIndex,"style");$(u,l)})})}function I9(r){r.registerChartView(T9),r.registerSeriesModel(A9),r.registerLayout(xt(M9,"sunburst")),r.registerProcessor(xt(Ks,"sunburst")),r.registerVisual(L9),b9(r)}var uT={color:"fill",borderColor:"stroke"},P9={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},nn=Lt(),R9=function(r){B(e,r);function e(){var t=r!==null&&r.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,a){return _n(null,this)},e.prototype.getDataParams=function(t,a,n){var i=r.prototype.getDataParams.call(this,t,a);return n&&(i.info=nn(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(ie);const k9=R9;function E9(r,e){return e=e||[0,0],Z(["x","y"],function(t,a){var n=this.getAxis(t),i=e[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function O9(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Q(E9,r)}}}function N9(r,e){return e=e||[0,0],Z([0,1],function(t){var a=e[t],n=r[t]/2,i=[],o=[];return i[t]=a-n,o[t]=a+n,i[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function B9(r){var e=r.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:r.getZoom()},api:{coord:function(t){return r.dataToPoint(t)},size:Q(N9,r)}}}function z9(r,e){var t=this.getAxis(),a=e instanceof Array?e[0]:e,n=(r instanceof Array?r[0]:r)/2;return t.type==="category"?t.getBandWidth():Math.abs(t.dataToCoord(a-n)-t.dataToCoord(a+n))}function V9(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:Q(z9,r)}}}function G9(r,e){return e=e||[0,0],Z(["Radius","Angle"],function(t,a){var n="get"+t+"Axis",i=this[n](),o=e[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function F9(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),a=e.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),o=t.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Q(G9,r)}}}function H9(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function W9(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,a){return r.dataToPoint(t,a)},layout:function(t,a){return r.dataToLayout(t,a)}}}}function bR(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||rt(r,"text")))}function wR(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},rt(a,"text")&&(o.text=a.text),rt(a,"rich")&&(o.rich=a.rich),rt(a,"textFill")&&(o.fill=a.textFill),rt(a,"textStroke")&&(o.stroke=a.textStroke),rt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),rt(a,"fontSize")&&(o.fontSize=a.fontSize),rt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),rt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=rt(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),rt(a,"textPosition")&&(n.position=a.textPosition),rt(a,"textOffset")&&(n.offset=a.textOffset),rt(a,"textRotation")&&(n.rotation=a.textRotation),rt(a,"textDistance")&&(n.distance=a.textDistance)}return fT(o,r),A(o.rich,function(l){fT(l,l)}),{textConfig:n,textContent:i}}function fT(r,e){e&&(e.font=e.textFont||e.font,rt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),rt(e,"textAlign")&&(r.align=e.textAlign),rt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),rt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),rt(e,"textWidth")&&(r.width=e.textWidth),rt(e,"textHeight")&&(r.height=e.textHeight),rt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),rt(e,"textPadding")&&(r.padding=e.textPadding),rt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),rt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),rt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),rt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),rt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),rt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),rt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function vT(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||F.color.neutral99;cT(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||F.color.neutral00,!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||F.color.neutral00),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,A(e.rich,function(s){cT(s,s)}),a}function cT(r,e){e&&(rt(e,"fill")&&(r.textFill=e.fill),rt(e,"stroke")&&(r.textStroke=e.fill),rt(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),rt(e,"font")&&(r.font=e.font),rt(e,"fontStyle")&&(r.fontStyle=e.fontStyle),rt(e,"fontWeight")&&(r.fontWeight=e.fontWeight),rt(e,"fontSize")&&(r.fontSize=e.fontSize),rt(e,"fontFamily")&&(r.fontFamily=e.fontFamily),rt(e,"align")&&(r.textAlign=e.align),rt(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),rt(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),rt(e,"width")&&(r.textWidth=e.width),rt(e,"height")&&(r.textHeight=e.height),rt(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),rt(e,"padding")&&(r.textPadding=e.padding),rt(e,"borderColor")&&(r.textBorderColor=e.borderColor),rt(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),rt(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),rt(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),rt(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),rt(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),rt(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),rt(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),rt(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),rt(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),rt(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var TR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},hT=Pt(TR);Oa(Ba,function(r,e){return r[e]=1,r},{});Ba.join(", ");var Tc=["","style","shape","extra"],Es=Lt();function c_(r,e,t,a,n){var i=r+"Animation",o=Hs(r,a,n)||{},s=Es(e).userDuring;return o.duration>0&&(o.during=s?Q(X9,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),$(o,t[i]),o}function Lv(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=Es(r),u=e.style;l.userDuring=e.during;var f={},v={};if(K9(r,e,v),r.type==="compound")for(var c=r.shape.paths,h=e.shape.paths,d=0;d<h.length;d++){var p=h[d];Ip("shape",p,c[d])}else Ip("shape",e,v),Ip("extra",e,v);if(!i&&s&&(q9(r,e,f),dT("shape",r,e,f),dT("extra",r,e,f),j9(r,e,u,f)),v.style=u,$9(r,v,o),Y9(r,e),s)if(i){var g={};A(Tc,function(m){var _=m?e[m]:e;_&&_.enterFrom&&(m&&(g[m]=g[m]||{}),$(m?g[m]:g,_.enterFrom))});var y=c_("enter",r,e,t,n);y.duration>0&&r.animateFrom(g,y)}else U9(r,e,n||0,t,f);CR(r,e),u?r.dirty():r.markRedraw()}function CR(r,e){for(var t=Es(r).leaveToProps,a=0;a<Tc.length;a++){var n=Tc[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=Es(r).leaveToProps={}),n&&(t[n]=t[n]||{}),$(n?t[n]:t,i.leaveTo))}}function Th(r,e,t,a){if(r){var n=r.parent,i=Es(r).leaveToProps;if(i){var o=c_("update",r,e,t,0);o.done=function(){n&&n.remove(r),a&&a()},r.animateTo(i,o)}else n&&n.remove(r),a&&a()}}function so(r){return r==="all"}function $9(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function U9(r,e,t,a,n){if(n){var i=c_("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function Y9(r,e){rt(e,"silent")&&(r.silent=e.silent),rt(e,"ignore")&&(r.ignore=e.ignore),r instanceof $r&&rt(e,"invisible")&&(r.invisible=e.invisible),r instanceof It&&rt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var _a={},Z9={setTransform:function(r,e){return _a.el[r]=e,this},getTransform:function(r){return _a.el[r]},setShape:function(r,e){var t=_a.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=_a.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=_a.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=_a.el.style;if(e)return e[r]},setExtra:function(r,e){var t=_a.el.extra||(_a.el.extra={});return t[r]=e,this},getExtra:function(r){var e=_a.el.extra;if(e)return e[r]}};function X9(){var r=this,e=r.el;if(e){var t=Es(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}_a.el=e,a(Z9)}}function dT(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),so(l))$(o,i);else for(var u=Zt(l),f=0;f<u.length;f++){var v=u[f],c=i[v];o[v]=c}else if(so(s)||bt(s,r)>=0){!o&&(o=a[r]={});for(var h=Pt(i),f=0;f<h.length;f++){var v=h[f],c=i[v];J9(n[v],c)&&(o[v]=c)}}}}}function Ip(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=Pt(a),o=0;o<i.length;o++){var s=i[o];n[s]=Yl(a[s])}}function q9(r,e,t){for(var a=e.transition,n=so(a)?Ba:Zt(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function K9(r,e,t){for(var a=0;a<hT.length;a++){var n=hT[a],i=TR[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<Ba.length;a++){var s=Ba[a];e[s]!=null&&(t[s]=e[s])}}function j9(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!so(o)){var l=Zt(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],v=n[f];i[f]=v}}else if(r.getAnimationStyleProps&&(so(s)||so(o)||bt(s,"style")>=0)){var c=r.getAnimationStyleProps(),h=c?c.style:null;if(h){!i&&(i=a.style={});for(var d=Pt(t),u=0;u<d.length;u++){var f=d[u];if(h[f]){var v=n[f];i[f]=v}}}}}}}function J9(r,e){return Je(r)?r!==e:r!=null&&isFinite(r)}var AR=Lt(),Q9=["percent","easing","shape","style","extra"];function MR(r){r.stopAnimation("keyframe"),r.attr(AR(r))}function Cc(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(U(e)){A(e,function(s){Cc(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=Hs("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=AR(r);A(Tc,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),A(a,function(u){var f=r.animators,v=s?u[s]:u;if(v){var c=Pt(v);if(s||(c=$t(c,function(p){return bt(Q9,p)<0})),!!c.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<f.length;h++)f[h]!==l&&f[h].targetName===l.targetName&&f[h].stopTracks(c);s&&(o[s]=o[s]||{});var d=s?o[s]:o;A(c,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,v,c,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}var on="emphasis",Fn="normal",h_="blur",d_="select",ai=[Fn,on,h_,d_],Pp={normal:["itemStyle"],emphasis:[on,"itemStyle"],blur:[h_,"itemStyle"],select:[d_,"itemStyle"]},Rp={normal:["label"],emphasis:[on,"label"],blur:[h_,"label"],select:[d_,"label"]},tZ=["x","y"],eZ="e\0\0",Ir={normal:{},emphasis:{},blur:{},select:{}},rZ={cartesian2d:O9,geo:B9,single:V9,polar:F9,calendar:H9,matrix:W9};function Zy(r){return r instanceof It}function Xy(r){return r instanceof $r}function aZ(r,e){e.copyTransform(r),Xy(e)&&Xy(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,Zy(e)&&Zy(r)&&e.setShape(r.shape))}var nZ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=pT(t,s,a,n);o||l.removeAll(),s.diff(o).add(function(v){kp(n,null,v,u(v,i),t,l,s)}).remove(function(v){var c=o.getItemGraphicEl(v);c&&Th(c,nn(c).option,t)}).update(function(v,c){var h=o.getItemGraphicEl(c);kp(n,h,v,u(v,i),t,l,s)}).execute();var f=t.get("clip",!0)?Yu(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,a,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,a,n,i,o){var s=a.getData(),l=pT(a,s,n,i),u=this._progressiveEls=[];function f(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var v=t.start;v<t.end;v++){var c=kp(null,null,v,l(v,o),a,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){oi(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},e.type="custom",e}(Jt);const iZ=nZ;function p_(r){var e=r.type,t;if(e==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=IR(a);t=cu(i,null,n,a.layout||"center"),nn(t).customPathData=i}else if(e==="image")t=new Ze({}),nn(t).customImagePath=r.style.image;else if(e==="text")t=new Ot({});else if(e==="group")t=new ft;else if(e==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";Gt(o)}var s=Z(a.paths,function(f){if(f.type==="path")return cu(f.shape.pathData,f,null);var v=Xv(f.type);if(!v){var c="";Gt(c)}return new v});t=new ah({shape:{paths:s}})}else{var l=Xv(e);if(!l){var o="";Gt(o)}t=new l}return nn(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function g_(r,e,t,a,n,i,o){MR(e);var s=n&&n.normal.cfg;s&&e.setTextConfig(s),a&&a.transition==null&&(a.transition=tZ);var l=a&&a.style;if(l){if(e.type==="text"){var u=l;rt(u,"textFill")&&(u.fill=u.textFill),rt(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,v=Zy(e)?l.decal:null;r&&v&&(v.dirty=!0,f=Ms(v,r)),l.__decalPattern=f}if(Xy(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}Lv(e,a,i,{dataIndex:t,isInit:o,clearStyle:!0}),Cc(e,a.keyframeAnimation,i)}function DR(r,e,t,a,n){var i=e.isGroup?null:e,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),vo(i)}}function oZ(r,e,t){if(!r.isGroup){var a=r,n=t.currentZ,i=t.currentZLevel;a.z=n,a.zlevel=i;var o=e.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ai.length;s++)sZ(a,e,ai[s])}}function sZ(r,e,t){var a=t===Fn,n=a?e:Ac(e,t),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(t),o.z2=i||0)}function pT(r,e,t,a){var n=r.get("renderItem");if(typeof n=="string"){var i=bG(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):rZ[o.type](o));for(var l=ht({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:w,ordinalRawValue:x,styleEmphasis:T,visual:D,barLayout:I,currentSeriesIndices:L,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:lZ(r.getData()),itemPayload:r.get("itemPayload")||{}},f,v,c={},h={},d={},p={},g=0;g<ai.length;g++){var y=ai[g];d[y]=r.getModel(Pp[y]),p[y]=r.getModel(Rp[y])}function m(k){return k===f?v||(v=e.getItemModel(k)):e.getItemModel(k)}function _(k,R){return e.hasItemOption?k===f?c[R]||(c[R]=m(k).getModel(Pp[R])):m(k).getModel(Pp[R]):d[R]}function S(k,R){return e.hasItemOption?k===f?h[R]||(h[R]=m(k).getModel(Rp[R])):m(k).getModel(Rp[R]):p[R]}return function(k,R){return f=k,v=null,c={},h={},n&&n(ht({dataIndexInside:k,dataIndex:e.getRawIndex(k),actionType:R?R.type:null},u),l)};function b(k,R){return R==null&&(R=f),e.getStore().get(e.getDimensionIndex(k||0),R)}function x(k,R){R==null&&(R=f),k=k||0;var N=e.getDimensionInfo(k);if(!N){var E=e.getDimensionIndex(k);return E>=0?e.getStore().get(E,R):void 0}var z=e.get(N.name,R),V=N&&N.ordinalMeta;return V?V.categories[z]:z}function w(k,R){R==null&&(R=f);var N=e.getItemVisual(R,"style"),E=N&&N.fill,z=N&&N.opacity,V=_(R,Fn).getItemStyle();E!=null&&(V.fill=E),z!=null&&(V.opacity=z);var H={inheritColor:J(E)?E:F.color.neutral99},G=S(R,Fn),Y=jt(G,null,H,!1,!0);Y.text=G.getShallow("show")?nt(r.getFormattedLabel(R,Fn),Is(e,R)):null;var X=qv(G,H,!1);return M(k,V),V=vT(V,Y,X),k&&C(V,k),V.legacy=!0,V}function T(k,R){R==null&&(R=f);var N=_(R,on).getItemStyle(),E=S(R,on),z=jt(E,null,null,!0,!0);z.text=E.getShallow("show")?wr(r.getFormattedLabel(R,on),r.getFormattedLabel(R,Fn),Is(e,R)):null;var V=qv(E,null,!0);return M(k,N),N=vT(N,z,V),k&&C(N,k),N.legacy=!0,N}function C(k,R){for(var N in R)rt(R,N)&&(k[N]=R[N])}function M(k,R){k&&(k.textFill&&(R.textFill=k.textFill),k.textPosition&&(R.textPosition=k.textPosition))}function D(k,R){if(R==null&&(R=f),rt(uT,k)){var N=e.getItemVisual(R,"style");return N?N[uT[k]]:null}if(rt(P9,k))return e.getItemVisual(R,k)}function I(k){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return CF(ht({axis:R},k))}}function L(){return t.getCurrentSeriesIndices()}function P(k){return Xm(k,t)}}function lZ(r){var e={};return A(r.dimensions,function(t){var a=r.getDimensionInfo(t);if(!a.isExtraCoord){var n=a.coordDim,i=e[n]=e[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(t)}}),e}function kp(r,e,t,a,n,i,o){if(!a){i.remove(e);return}var s=y_(r,e,t,a,n,i);return s&&o.setItemGraphicEl(t,s),s&&ae(s,a.focus,a.blurScope,a.emphasisDisabled),s}function y_(r,e,t,a,n,i){var o=-1,s=e;e&&LR(e,a,n)&&(o=bt(i.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=p_(a),s&&aZ(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Ir.normal.cfg=Ir.normal.conOpt=Ir.emphasis.cfg=Ir.emphasis.conOpt=Ir.blur.cfg=Ir.blur.conOpt=Ir.select.cfg=Ir.select.conOpt=null,Ir.isLegacy=!1,fZ(u,t,a,n,l,Ir),uZ(u,t,a,n,l),g_(r,u,t,a,Ir,n,l),rt(a,"info")&&(nn(u).info=a.info);for(var f=0;f<ai.length;f++){var v=ai[f];if(v!==Fn){var c=Ac(a,v),h=m_(a,c,v);DR(v,u,c,h,Ir)}}return oZ(u,a,n),a.type==="group"&&vZ(r,u,t,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function LR(r,e,t){var a=nn(r),n=e.type,i=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&pZ(i)&&IR(i)!==a.customPathData||n==="image"&&rt(o,"image")&&o.image!==a.customImagePath}function uZ(r,e,t,a,n){var i=t.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&LR(o,i,a)&&(o=null),o||(o=p_(i),r.setClipPath(o)),g_(null,o,e,i,null,a,n)}}function fZ(r,e,t,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){gT(t,null,i),gT(t,on,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=p_(o),r.setTextContent(f)),g_(null,f,e,o,null,a,n);for(var v=o&&o.style,c=0;c<ai.length;c++){var h=ai[c];if(h!==Fn){var d=i[h].conOpt;DR(h,f,d,m_(o,d,h),null)}}v?f.dirty():f.markRedraw()}}}}function gT(r,e,t){var a=e?Ac(r,e):r,n=e?m_(r,a,on):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?e?Ac(s,e):s:null;if(n&&(t.isLegacy||bR(n,i,!!o,!!l))){t.isLegacy=!0;var u=wR(n,i,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var v=e?t[e]:t.normal;v.cfg=o,v.conOpt=l}function Ac(r,e){return e?r?r[e]:null:r}function m_(r,e,t){var a=e&&e.style;return a==null&&t===on&&r&&(a=r.styleEmphasis),a}function vZ(r,e,t,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){hZ({api:r,oldChildren:e.children()||[],newChildren:i||[],dataIndex:t,seriesModel:n,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var v=i[f],c=e.childAt(f);v?(v.ignore==null&&(v.ignore=!1),y_(r,c,t,v,n,e)):c.ignore=!0}for(var h=e.childCount()-1;h>=f;h--){var d=e.childAt(h);cZ(e,d,n)}}}function cZ(r,e,t){e&&Th(e,nn(r).option,t)}function hZ(r){new hn(r.oldChildren,r.newChildren,yT,yT,r).add(mT).update(mT).remove(dZ).execute()}function yT(r,e){var t=r&&r.name;return t??eZ+e}function mT(r,e){var t=this.context,a=r!=null?t.newChildren[r]:null,n=e!=null?t.oldChildren[e]:null;y_(t.api,n,t.dataIndex,a,t.seriesModel,t.group)}function dZ(r){var e=this.context,t=e.oldChildren[r];t&&Th(t,nn(t).option,e.seriesModel)}function IR(r){return r&&(r.pathData||r.d)}function pZ(r){return r&&(rt(r,"pathData")||rt(r,"d"))}function gZ(r){r.registerChartView(iZ),r.registerSeriesModel(k9)}var Hi=Lt(),_T=ut,Ep=Q,yZ=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,a,n){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,e,t,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var v=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new ft,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),a.getZr().add(s);else{var c=xt(ST,t,v);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}bT(s,t,!0),this._renderHandle(i)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var a=t.get("animation"),n=e.axis,i=n.type==="category",o=t.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=V0(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(e,t,a,n,i){},r.prototype.createPointerEl=function(e,t,a,n){var i=t.pointer;if(i){var o=Hi(e).pointerEl=new xo[i.type](_T(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,a,n){if(t.label){var i=Hi(e).labelEl=new Ot(_T(t.label));e.add(i),xT(i,n)}},r.prototype.updatePointerEl=function(e,t,a){var n=Hi(e).pointerEl;n&&t.pointer&&(n.setStyle(t.pointer.style),a(n,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,a,n){var i=Hi(e).labelEl;i&&(i.setStyle(t.label.style),a(i,{x:t.label.x,y:t.label.y}),xT(i,n))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=t.getModel("handle"),o=t.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Bu(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){un(u.event)},onmousedown:Ep(this._onHandleDragMove,this,0,0),drift:Ep(this._onHandleDragMove,this),ondragend:Ep(this._onHandleDragEnd,this)}),a.add(n)),bT(n,t,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,Zs(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){ST(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Op(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(Op(a),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(Op(n)),Hi(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.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"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),a=this._group,n=this._handle;t&&a&&(this._lastGraphicKey=null,a&&t.remove(a),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),gu(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,a){return a=a||0,{x:e[a],y:e[1-a],width:t[a],height:t[1-a]}},r}();function ST(r,e,t,a){PR(Hi(t).lastProp,a)||(Hi(t).lastProp=a,e?Nt(t,a,r):(t.stopAnimation(),t.attr(a)))}function PR(r,e){if(dt(r)&&dt(e)){var t=!0;return A(e,function(a,n){t=t&&PR(r[n],a)}),!!t}else return r===e}function xT(r,e){r[e.get(["label","show"])?"show":"hide"]()}function Op(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function bT(r,e,t){var a=e.get("z"),n=e.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=t)})}const __=yZ;function S_(r){var e=r.get("type"),t=r.getModel(e+"Style"),a;return e==="line"?(a=t.getLineStyle(),a.fill=null):e==="shadow"&&(a=t.getAreaStyle(),a.stroke=null),a}function RR(r,e,t,a,n){var i=t.get("value"),o=kR(i,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=zu(s.get("padding")||0),u=s.getFont(),f=Yc(o,u),v=n.position,c=f.width+l[1]+l[3],h=f.height+l[0]+l[2],d=n.align;d==="right"&&(v[0]-=c),d==="center"&&(v[0]-=c/2);var p=n.verticalAlign;p==="bottom"&&(v[1]-=h),p==="middle"&&(v[1]-=h/2),mZ(v,c,h,a);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:v[0],y:v[1],style:jt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function mZ(r,e,t,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+e,n)-e,r[1]=Math.min(r[1]+t,i)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function kR(r,e,t,a,n){r=e.scale.parse(r);var i=e.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:oc(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};A(a,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,v=u&&u.getDataParams(f);v&&s.seriesData.push(v)}),J(o)?i=o.replace("{value}",i):lt(o)&&(i=o(s))}return i}function x_(r,e,t){var a=Ge();return ni(a,a,t.rotation),Na(a,a,t.position),ra([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],a)}function ER(r,e,t,a,n,i){var o=dn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=n.get(["label","margin"]),RR(e,a,n,i,{position:x_(a.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function b_(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function OR(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function wT(r,e,t,a,n,i){return{cx:r,cy:e,r0:t,r:a,startAngle:n,endAngle:i,clockwise:!0}}var _Z=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=TT(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var c=S_(i),h=SZ[u](s,v,f);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=yc(l.getRect(),n);ER(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=yc(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=x_(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=TT(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,v=[t.x,t.y];v[f]+=a[f],v[f]=Math.min(l[1],v[f]),v[f]=Math.max(l[0],v[f]);var c=(u[1]+u[0])/2,h=[c,c];h[f]=v[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[f]}},e}(__);function TT(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var SZ={line:function(r,e,t){var a=b_([e,t[0]],[e,t[1]],CT(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=Math.max(1,r.getBandWidth()),n=t[1]-t[0];return{type:"Rect",shape:OR([e-a/2,t[0]],[a,n],CT(r))}}};function CT(r){return r.dim==="x"?0:1}const xZ=_Z;var bZ=function(r){B(e,r);function e(){var t=r!==null&&r.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:F.color.border,width:1,type:"dashed"},shadowStyle:{color:F.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:F.color.neutral00,padding:[5,7,5,7],backgroundColor:F.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:F.color.accent40,throttle:40}},e}(kt);const wZ=bZ;var en=Lt(),TZ=A;function NR(r,e,t){if(!zt.node){var a=e.getZr();en(a).records||(en(a).records={}),CZ(a,e);var n=en(a).records[r]||(en(a).records[r]={});n.handler=t}}function CZ(r,e){if(en(r).initialized)return;en(r).initialized=!0,t("click",xt(AT,"click")),t("mousemove",xt(AT,"mousemove")),t("globalout",MZ);function t(a,n){r.on(a,function(i){var o=DZ(e);TZ(en(r).records,function(s){s&&n(s,i,o.dispatchAction)}),AZ(o.pendings,e)})}}function AZ(r,e){var t=r.showTip.length,a=r.hideTip.length,n;t?n=r.showTip[t-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function MZ(r,e,t){r.handler("leave",null,t)}function AT(r,e,t,a){e.handler(r,t,a)}function DZ(r){var e={showTip:[],hideTip:[]},t=function(a){var n=e[a.type];n?n.push(a):(a.dispatchAction=t,r.dispatchAction(a))};return{dispatchAction:t,pendings:e}}function qy(r,e){if(!zt.node){var t=e.getZr(),a=(en(t).records||{})[r];a&&(en(t).records[r]=null)}}var LZ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=a.getComponent("tooltip"),o=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";NR("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,a){qy("axisPointer",a)},e.prototype.dispose=function(t,a){qy("axisPointer",a)},e.type="axisPointer",e}(se);const IZ=LZ;function BR(r,e){var t=[],a=r.seriesIndex,n;if(a==null||!(n=e.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=uo(i,r);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)t=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),v=f.dim,c=u.dim,h=v==="x"||v==="radius"?1:0,d=i.mapDimension(c),p=[];p[h]=i.get(d,o),p[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(p)||[]}else t=l.dataToPoint(i.getValues(Z(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var MT=Lt();function PZ(r,e,t){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Q(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Iv(n)&&(n=BR({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},e).point);var l=Iv(n),u=i.axesInfo,f=s.axesInfo,v=a==="leave"||Iv(n),c={},h={},d={list:[],map:{}},p={showPointer:xt(kZ,h),showTooltip:xt(EZ,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=zZ(u,S);if(!v&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&DT(S,T,p,!1,c)}})});var g={};return A(f,function(y,m){var _=y.linkGroup;_&&!h[m]&&A(_.axesInfo,function(S,b){var x=h[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,LT(S),LT(y)))),g[y.key]=w}})}),A(g,function(y,m){DT(f[m],y,p,!0,c)}),OZ(h,f,c),NZ(d,n,r,o),BZ(f,o,t),c}}function DT(r,e,t,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=RZ(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&$(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function RZ(r,e){var t=e.axis,a=t.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return A(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),v,c;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,r,t);c=h.dataIndices,v=h.nestestValue}else{if(c=l.indicesOfNearest(a,f[0],r,t.type==="category"?.5:null),!c.length)return;v=l.getData().get(f[0],c[0])}if(!(v==null||!isFinite(v))){var d=r-v,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=v,i.length=0),A(c,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:n}}function kZ(r,e,t,a){r[e.key]={value:t,payloadBatch:a}}function EZ(r,e,t,a){var n=t.payloadBatch,i=e.axis,o=i.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=Cu(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function OZ(r,e,t){var a=t.axesInfo=[];A(e,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function NZ(r,e,t,a){if(Iv(e)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function BZ(r,e,t){var a=t.getZr(),n="axisPointerLastHighlights",i=MT(a)[n]||{},o=MT(a)[n]={};A(r,function(u,f){var v=u.axisPointerModel.option;v.status==="show"&&u.triggerEmphasis&&A(v.seriesDataIndices,function(c){var h=c.seriesIndex+" | "+c.dataIndex;o[h]=c})});var s=[],l=[];A(i,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!i[f]&&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 zZ(r,e){for(var t=0;t<(r||[]).length;t++){var a=r[t];if(e.axis.dim===a.axisDim&&e.axis.model.componentIndex===a.axisIndex)return a}}function LT(r){var e=r.axis.model,t={},a=t.axisDim=r.axis.dim;return t.axisIndex=t[a+"AxisIndex"]=e.componentIndex,t.axisName=t[a+"AxisName"]=e.name,t.axisId=t[a+"AxisId"]=e.id,t}function Iv(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function qu(r){Do.registerAxisPointerClass("CartesianAxisPointer",xZ),r.registerComponentModel(wZ),r.registerComponentView(IZ),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!U(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=hW(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},PZ)}function VZ(r){Ct(iP),Ct(qu)}var GZ=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),v=s.dataToCoord(a),c=i.get("type");if(c&&c!=="none"){var h=S_(i),d=HZ[c](s,l,v,f);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=i.get(["label","margin"]),g=FZ(a,n,i,l,p);RR(t,n,i,o,g)},e}(__);function FZ(r,e,t,a,n){var i=e.axis,o=i.dataToCoord(r),s=a.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=a.getRadiusAxis().getExtent(),u,f,v;if(i.dim==="radius"){var c=Ge();ni(c,c,s),Na(c,c,[a.cx,a.cy]),u=ra([o,-n],c);var h=e.getModel("axisLabel").get("rotate")||0,d=dn.innerTextLayout(s,h*Math.PI/180,-1);f=d.textAlign,v=d.textVerticalAlign}else{var p=l[1];u=a.coordToPoint([p+n,o]);var g=a.cx,y=a.cy;f=Math.abs(u[0]-g)/p<.3?"center":u[0]>g?"left":"right",v=Math.abs(u[1]-y)/p<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:v}}var HZ={line:function(r,e,t,a){return r.dim==="angle"?{type:"Line",shape:b_(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,a){var n=Math.max(1,r.getBandWidth()),i=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:wT(e.cx,e.cy,a[0],a[1],(-t-n/2)*i,(-t+n/2)*i)}:{type:"Sector",shape:wT(e.cx,e.cy,t-n/2,t+n/2,0,Math.PI*2)}}};const WZ=GZ;var $Z=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var a,n=this.ecModel;return n.eachComponent(t,function(i){i.getCoordSysModel()===this&&(a=i)},this),a},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(kt);const UZ=$Z;var w_=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",fe).models[0]},e.type="polarAxis",e}(kt);we(w_,Wu);var YZ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}(w_),ZZ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}(w_),T_=function(r){B(e,r);function e(t,a){return r.call(this,"radius",t,a)||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e}(fa);T_.prototype.dataToRadius=fa.prototype.dataToCoord;T_.prototype.radiusToData=fa.prototype.coordToData;const XZ=T_;var qZ=Lt(),C_=function(r){B(e,r);function e(t,a){return r.call(this,"angle",t,a||[0,360])||this}return e.prototype.pointToData=function(t,a){return this.polar.pointToData(t,a)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,a=t.getLabelModel(),n=t.scale,i=n.getExtent(),o=n.count();if(i[1]-i[0]<1)return 0;var s=i[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Yc(s==null?"":s+"",a.getFont(),"center","top"),v=Math.max(f.height,7),c=v/u;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=qZ(t.model),p=d.lastAutoInterval,g=d.lastTickCount;return p!=null&&g!=null&&Math.abs(p-h)<=1&&Math.abs(g-o)<=1&&p>h?h=p:(d.lastTickCount=o,d.lastAutoInterval=h),h},e}(fa);C_.prototype.dataToAngle=fa.prototype.dataToCoord;C_.prototype.angleToData=fa.prototype.coordToData;const KZ=C_;var zR=["radius","angle"],jZ=function(){function r(e){this.dimensions=zR,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new XZ,this._angleAxis=new KZ,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],a=this._angleAxis,n=this._radiusAxis;return a.scale.type===e&&t.push(a),n.scale.type===e&&t.push(n),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,a){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],a)},r.prototype.pointToData=function(e,t,a){a=a||[];var n=this.pointToCoord(e);return a[0]=this._radiusAxis.radiusToData(n[0],t),a[1]=this._angleAxis.angleToData(n[1],t),a},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,a=e[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),s=Math.max(i[0],i[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+a*a);t/=l,a/=l;for(var u=Math.atan2(-a,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var a=e[0],n=e[1]/180*Math.PI;return t[0]=Math.cos(n)*a+this.cx,t[1]=-Math.sin(n)*a+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),a=t.getExtent().slice();a[0]>a[1]&&a.reverse();var n=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:a[0],r:a[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,v=u*u+f*f,c=this.r,h=this.r0;return c!==h&&v-o<=c*c&&v+o>=h*h},x:this.cx-a[1],y:this.cy-a[1],width:a[1]*2,height:a[1]*2}},r.prototype.convertToPixel=function(e,t,a){var n=IT(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=IT(t);return n===this?this.pointToData(a):null},r}();function IT(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const JZ=jZ;function QZ(r,e,t){var a=e.get("center"),n=Ie(e,t).refContainer;r.cx=j(a[0],n.width)+n.x,r.cy=j(a[1],n.height)+n.y;var i=r.getRadiusAxis(),o=Math.min(n.width,n.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:U(s)||(s=[0,s]);var l=[j(s[0],o),j(s[1],o)];i.inverse?i.setExtent(l[1],l[0]):i.setExtent(l[0],l[1])}function tX(r,e){var t=this,a=t.getAngleAxis(),n=t.getRadiusAxis();if(a.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();A(sc(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),A(sc(l,"angle"),function(u){a.scale.unionExtentFromData(l,u)})}}),Ds(a.scale,a.model),Ds(n.scale,n.model),a.type==="category"&&!a.onBand){var i=a.getExtent(),o=360/a.scale.count();a.inverse?i[1]+=o:i[1]-=o,a.setExtent(i[0],i[1])}}function eX(r){return r.mainType==="angleAxis"}function PT(r,e){var t;if(r.type=e.get("type"),r.scale=dh(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),eX(e)){r.inverse=r.inverse!==e.get("clockwise");var a=e.get("startAngle"),n=(t=e.get("endAngle"))!==null&&t!==void 0?t:a+(r.inverse?-360:360);r.setExtent(a,n)}e.axis=r,r.model=e}var rX={dimensions:zR,create:function(r,e){var t=[];return r.eachComponent("polar",function(a,n){var i=new JZ(n+"");i.update=tX;var o=i.getRadiusAxis(),s=i.getAngleAxis(),l=a.findAxisModel("radiusAxis"),u=a.findAxisModel("angleAxis");PT(o,l),PT(s,u),QZ(i,a,e),t.push(i),a.coordinateSystem=i,i.model=a}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="polar"){var n=a.getReferringComponents("polar",fe).models[0];a.coordinateSystem=n.coordinateSystem}}),t}};const aX=rX;var nX=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Kf(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var a=r.coordToPoint([e[0],t]),n=r.coordToPoint([e[1],t]);return{x1:a[0],y1:a[1],x2:n[0],y2:n[1]}}function jf(r){var e=r.getRadiusAxis();return e.inverse?0:1}function RT(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var iX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a){if(this.group.removeAll(),!!t.get("show")){var n=t.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),s=n.getTicksCoords({breakTicks:"none"}),l=n.getMinorTicksCoords(),u=Z(n.getViewLabels(),function(f){f=ut(f);var v=n.scale,c=v.type==="ordinal"?v.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});RT(u),RT(s),A(nX,function(f){t.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&oX[f](this.group,t,i,s,l,o,u)},this)}},e.type="angleAxis",e}(Do),oX={axisLine:function(r,e,t,a,n,i){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=jf(t),v=f?0:1,c,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";i[v]===0?c=new xo[h]({shape:{cx:t.cx,cy:t.cy,r:i[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new eh({shape:{cx:t.cx,cy:t.cy,r:i[f],r0:i[v]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,a,n,i){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=i[jf(t)],u=Z(a,function(f){return new Me({shape:Kf(t,[l,l+s],f.coord)})});r.add(Vr(u,{style:ht(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=i[jf(t)],f=[],v=0;v<n.length;v++)for(var c=0;c<n[v].length;c++)f.push(new Me({shape:Kf(t,[u,u+l],n[v][c].coord)}));r.add(Vr(f,{style:ht(s.getModel("lineStyle").getLineStyle(),ht(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,a,n,i,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");A(o,function(v,c){var h=l,d=v.tickValue,p=i[jf(t)],g=t.coordToPoint([p+u,v.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/p<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[d]){var b=s[d];dt(b)&&b.textStyle&&(h=new Bt(b.textStyle,l,l.ecModel))}var x=new Ot({silent:dn.isLabelSilent(e),style:jt(h,{x:g[0],y:g[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:v.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),mn({el:x,componentModel:e,itemName:v.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:v.rawLabel,tickIndex:c}}),f){var w=dn.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=v.rawLabel,yt(x).eventData=w}},this)},splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=0;v<a.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new Me({shape:Kf(t,i,a[v].coord)}))}for(var v=0;v<f.length;v++)r.add(Vr(f[v],{style:ht({stroke:l[v%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,a,n,i){if(n.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new Me({shape:Kf(t,i,n[u][f].coord)}));r.add(Vr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,a,n,i){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=Math.PI/180,c=-a[0].coord*v,h=Math.min(i[0],i[1]),d=Math.max(i[0],i[1]),p=e.get("clockwise"),g=1,y=a.length;g<=y;g++){var m=g===y?a[0].coord:a[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new sr({shape:{cx:t.cx,cy:t.cy,r0:h,r:d,startAngle:c,endAngle:-m*v,clockwise:p},silent:!0})),c=-m*v}for(var g=0;g<f.length;g++)r.add(Vr(f[g],{style:ht({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const sX=iX;var lX=["splitLine","splitArea","minorSplitLine"],uX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,o=this._axisGroup=new ft;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),v=s.getMinorTicksCoords(),c=u.getExtent()[0],h=s.getExtent(),d=vX(l,t,c),p=new dn(t,n,d);p.build(),o.add(p.group),Nu(i,o,t),A(lX,function(g){t.get([g,"show"])&&!s.scale.isBlank()&&fX[g](this.group,t,l,c,h,f,v)},this)}},e.type="radiusAxis",e}(Do),fX={splitLine:function(r,e,t,a,n,i){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),v=Math.PI/180,c=f.getExtent(),h=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var d=[],p=0;p<i.length;p++){var g=u++%l.length;d[g]=d[g]||[],d[g].push(new xo[h]({shape:{cx:t.cx,cy:t.cy,r:Math.max(i[p].coord,0),startAngle:-c[0]*v,endAngle:-c[1]*v,clockwise:f.inverse}}))}for(var p=0;p<d.length;p++)r.add(Vr(d[p],{style:ht({stroke:l[p%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,a,n,i,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var v=0;v<o[f].length;v++)u.push(new ii({shape:{cx:t.cx,cy:t.cy,r:o[f][v].coord}}));r.add(Vr(u,{style:ht({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,a,n,i){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],v=i[0].coord,c=1;c<i.length;c++){var h=u++%l.length;f[h]=f[h]||[],f[h].push(new sr({shape:{cx:t.cx,cy:t.cy,r0:v,r:i[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),v=i[c].coord}for(var c=0;c<f.length;c++)r.add(Vr(f[c],{style:ht({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function vX(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}const cX=uX;function VR(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function GR(r,e){return e.dim+r.model.componentIndex}function hX(r,e,t){var a={},n=dX($t(e.getSeriesByType(r),function(i){return!e.isSeriesFiltered(i)&&i.coordinateSystem&&i.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(i){if(i.coordinateSystem.type==="polar"){var o=i.getData(),s=i.coordinateSystem,l=s.getBaseAxis(),u=GR(s,l),f=VR(i),v=n[u][f],c=v.offset,h=v.width,d=s.getOtherAxis(l),p=i.coordinateSystem.cx,g=i.coordinateSystem.cy,y=i.get("barMinHeight")||0,m=i.get("barMinAngle")||0;a[f]=a[f]||[];for(var _=o.mapDimension(d.dim),S=o.mapDimension(l.dim),b=Jn(o,_),x=l.dim!=="radius"||!i.get("roundCap",!0),w=d.model,T=w.get("startValue"),C=d.dataToCoord(T||0),M=0,D=o.count();M<D;M++){var I=o.get(_,M),L=o.get(S,M),P=I>=0?"p":"n",k=C;b&&(a[f][L]||(a[f][L]={p:C,n:C}),k=a[f][L][P]);var R=void 0,N=void 0,E=void 0,z=void 0;if(d.dim==="radius"){var V=d.dataToCoord(I)-C,H=l.dataToCoord(L);Math.abs(V)<y&&(V=(V<0?-1:1)*y),R=k,N=k+V,E=H-c,z=E-h,b&&(a[f][L][P]=N)}else{var G=d.dataToCoord(I,x)-C,Y=l.dataToCoord(L);Math.abs(G)<m&&(G=(G<0?-1:1)*m),R=Y+c,N=R+h,E=k,z=k+G,b&&(a[f][L][P]=z)}o.setItemLayout(M,{cx:p,cy:g,r0:R,r:N,startAngle:-E*Math.PI/180,endAngle:-z*Math.PI/180,clockwise:E>=z})}}})}function dX(r){var e={};A(r,function(a,n){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=GR(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/i.count(),v=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=v.stacks;e[l]=v;var h=VR(a);c[h]||v.autoWidthCount++,c[h]=c[h]||{width:0,maxWidth:0};var d=j(a.get("barWidth"),f),p=j(a.get("barMaxWidth"),f),g=a.get("barGap"),y=a.get("barCategoryGap");d&&!c[h].width&&(d=Math.min(v.remainedWidth,d),c[h].width=d,v.remainedWidth-=d),p&&(c[h].maxWidth=p),g!=null&&(v.gap=g),y!=null&&(v.categoryGap=y)});var t={};return A(e,function(a,n){t[n]={};var i=a.stacks,o=a.bandWidth,s=j(a.categoryGap,o),l=j(a.gap,1),u=a.remainedWidth,f=a.autoWidthCount,v=(u-s)/(f+(f-1)*l);v=Math.max(v,0),A(i,function(p,g){var y=p.maxWidth;y&&y<v&&(y=Math.min(y,u),p.width&&(y=Math.min(y,p.width)),u-=y,p.width=y,f--)}),v=(u-s)/(f+(f-1)*l),v=Math.max(v,0);var c=0,h;A(i,function(p,g){p.width||(p.width=v),h=p,c+=p.width*(1+l)}),h&&(c-=h.width*l);var d=-c/2;A(i,function(p,g){t[n][g]=t[n][g]||{offset:d,width:p.width},d+=p.width*(1+l)})}),t}var pX={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},gX={splitNumber:5},yX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(se);function mX(r){Ct(qu),Do.registerAxisPointerClass("PolarAxisPointer",WZ),r.registerCoordinateSystem("polar",aX),r.registerComponentModel(UZ),r.registerComponentView(yX),Ps(r,"angle",YZ,pX),Ps(r,"radius",ZZ,gX),r.registerComponentView(sX),r.registerComponentView(cX),r.registerLayout(xt(hX,"bar"))}function Ky(r,e){e=e||{};var t=r.coordinateSystem,a=r.axis,n={},i=a.position,o=a.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]}};n.position=[o==="vertical"?u.vertical[i]:l[0],o==="horizontal"?u.horizontal[i]:l[3]];var f={horizontal:0,vertical:1};n.rotation=Math.PI/2*f[o];var v={top:-1,bottom:1,right:1,left:-1};n.labelDirection=n.tickDirection=n.nameDirection=v[i],r.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),Ue(e.labelInside,r.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var c=r.get(["axisLabel","rotate"]);return n.labelRotate=i==="top"?-c:c,n.z2=1,n}var _X=["splitArea","splitLine","breakArea"],SX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,a,n,i){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new ft;var l=Ky(t),u=new dn(t,n,l);u.build(),o.add(this._axisGroup),o.add(u.group),A(_X,function(f){t.get([f,"show"])&&xX[f](this,this.group,this._axisGroup,t,n)},this),Nu(s,this._axisGroup,t),r.prototype.render.call(this,t,a,n,i)},e.prototype.remove=function(){rP(this)},e.type="singleAxis",e}(Do),xX={splitLine:function(r,e,t,a,n){var i=a.axis;if(!i.scale.isBlank()){var o=a.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=a.coordinateSystem.getRect(),v=i.isHorizontal(),c=[],h=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],g=[],y=0;y<d.length;++y){var m=i.toGlobalCoord(d[y].coord);v?(p[0]=m,p[1]=f.y,g[0]=m,g[1]=f.y+f.height):(p[0]=f.x,p[1]=m,g[0]=f.x+f.width,g[1]=m);var _=new Me({shape:{x1:p[0],y1:p[1],x2:g[0],y2:g[1]},silent:!0});Cs(_.shape,u);var S=h++%l.length;c[S]=c[S]||[],c[S].push(_)}for(var b=s.getLineStyle(["color"]),y=0;y<c.length;++y)e.add(Vr(c[y],{style:ht({stroke:l[y%l.length]},b),silent:!0}))}},splitArea:function(r,e,t,a,n){eP(r,t,a,a)},breakArea:function(r,e,t,a,n){var i=Xu(),o=a.axis.scale;i&&o.type!=="ordinal"&&i.rectCoordBuildBreakAxis(e,r,a,a.coordinateSystem.getRect(),n)}};const bX=SX;var FR=function(r){B(e,r);function e(){var t=r!==null&&r.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}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(kt);we(FR,Wu.prototype);const Np=FR;var wX=function(r){B(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,a){return this.coordinateSystem.pointToData(t)[0]},e}(fa);const TX=wX;var HR=["single"],CX=function(){function r(e,t,a){this.type="single",this.dimension="single",this.dimensions=HR,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=this.dimension,i=new TX(n,dh(e),[0,0],e.get("type"),e.get("position")),o=i.type==="category";i.onBand=o&&e.get("boundaryGap"),i.inverse=e.get("inverse"),i.orient=e.get("orient"),e.axis=i,i.model=e,i.coordinateSystem=this,this._axis=i},r.prototype.update=function(e,t){e.eachSeries(function(a){if(a.coordinateSystem===this){var n=a.getData();A(n.mapDimensionsAll(this.dimension),function(i){this._axis.scale.unionExtentFromData(n,i)},this),Ds(this._axis.scale,this._axis.model)}},this)},r.prototype.resize=function(e,t){var a=Ie(e,t).refContainer;this._rect=ne(e.getBoxLayoutParams(),a),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,a=t.isHorizontal(),n=a?[0,e.width]:[0,e.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),this._updateAxisTransform(t,a?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var a=e.getExtent(),n=a[0]+a[1],i=e.isHorizontal();e.toGlobalCoord=i?function(o){return o+t}:function(o){return n-o+t},e.toLocalCoord=i?function(o){return o-t}:function(o){return n-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),a=this.getAxis(),n=a.orient;return n==="horizontal"?a.contain(a.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:a.contain(a.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,a){a=a||[];var n=this.getAxis();return a[0]=n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1])),a},r.prototype.dataToPoint=function(e,t,a){var n=this.getAxis(),i=this.getRect();a=a||[];var o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),a[o]=n.toGlobalCoord(n.dataToCoord(+e)),a[1-o]=o===0?i.y+i.height/2:i.x+i.width/2,a},r.prototype.convertToPixel=function(e,t,a){var n=kT(t);return n===this?this.dataToPoint(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=kT(t);return n===this?this.pointToData(a):null},r}();function kT(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function AX(r,e){var t=[];return r.eachComponent("singleAxis",function(a,n){var i=new CX(a,r,e);i.name="single_"+n,i.resize(a,e),a.coordinateSystem=i,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="singleAxis"){var n=a.getReferringComponents("singleAxis",fe).models[0];a.coordinateSystem=n&&n.coordinateSystem}}),t}var MX={create:AX,dimensions:HR};const DX=MX;var ET=["x","y"],LX=["width","height"],IX=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,a,n,i,o){var s=n.axis,l=s.coordinateSystem,u=Bp(l,1-Mc(s)),f=l.dataToPoint(a)[0],v=i.get("type");if(v&&v!=="none"){var c=S_(i),h=PX[v](s,f,u);h.style=c,t.graphicKey=h.type,t.pointer=h}var d=Ky(n);ER(a,t,d,n,i,o)},e.prototype.getHandleTransform=function(t,a,n){var i=Ky(a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=x_(a.axis,t,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,a,n,i){var o=n.axis,s=o.coordinateSystem,l=Mc(o),u=Bp(s,l),f=[t.x,t.y];f[l]+=a[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var v=Bp(s,1-l),c=(v[1]+v[0])/2,h=[c,c];return h[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(__),PX={line:function(r,e,t){var a=b_([e,t[0]],[e,t[1]],Mc(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t){var a=r.getBandWidth(),n=t[1]-t[0];return{type:"Rect",shape:OR([e-a/2,t[0]],[a,n],Mc(r))}}};function Mc(r){return r.isHorizontal()?0:1}function Bp(r,e){var t=r.getRect();return[t[ET[e]],t[ET[e]]+t[LX[e]]]}const RX=IX;var kX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e}(se);function EX(r){Ct(qu),Do.registerAxisPointerClass("SingleAxisPointer",RX),r.registerComponentView(kX),r.registerComponentView(bX),r.registerComponentModel(Np),Ps(r,"single",Np,Np.defaultOption),r.registerCoordinateSystem("single",DX)}var OX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=wo(t);r.prototype.init.apply(this,arguments),OT(t,i)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),OT(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:F.color.axisLine,width:1,type:"solid"}},itemStyle:{color:F.color.neutral00,borderWidth:1,borderColor:F.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:F.size.s,color:F.color.secondary},monthLabel:{show:!0,position:"start",margin:F.size.s,align:"center",formatter:null,color:F.color.secondary},yearLabel:{show:!0,position:null,margin:F.size.xl,formatter:null,color:F.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(kt);function OT(r,e){var t=r.cellSize,a;U(t)?a=t:a=r.cellSize=[t,t],a.length===1&&(a[1]=a[0]);var n=Z([0,1],function(i){return eV(e,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Va(r,e,{type:"box",ignoreSize:n})}const NX=OX;var BX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(t,s,i),this._renderLines(t,s,l,i),this._renderYearText(t,s,l,i),this._renderMonthText(t,u,l,i),this._renderWeekText(t,u,s,l,i)},e.prototype._renderDayRect=function(t,a,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,v=new Dt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(v)}},e.prototype._renderLines=function(t,a,n,i){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var v=a.start,c=0;v.time<=a.end.time;c++){d(v.formatedDate),c===0&&(v=s.getDateInfo(a.start.y+"-"+a.start.m));var h=v.date;h.setMonth(h.getMonth()+1),v=s.getDateInfo(h)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var g=o._getLinePointsOfOneWeek(t,p,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},e.prototype._getEdgesPoints=function(t,a,n){var i=[t[0].slice(),t[t.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},e.prototype._drawSplitline=function(t,a,n){var i=new tr({z2:20,shape:{points:t},style:a});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,a,n){for(var i=t.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,a){return J(t)&&t?Xz(t,a):lt(t)?t(a):a.nameMap},e.prototype._yearTextPositionControl=function(t,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,a,n,i){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,v=(u[0][1]+u[1][1])/2,c=n==="horizontal"?0:1,h={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],v],right:[u[c][0],v]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),g={start:a.start.y,end:a.end.y,nameMap:d},y=this._formatterLabel(p,g),m=new Ot({z2:30,style:jt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,h[l],n,l,s)),i.add(m)}},e.prototype._monthTextPositionControl=function(t,a,n,i,o){var s="left",l="top",u=t[0],f=t[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,a,n,i){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),v=[this._tlpoints,this._blpoints];(!s||J(s))&&(s&&(a=Zg(s)||a),s=a.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,h=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),g=0;g<v[c].length-1;g++){var y=v[c][g].slice(),m=this._firstDayOfMonth[g];if(d){var _=this._firstDayPoints[g];y[h]=(_[h]+v[0][g+1][h])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),T=new Ot({z2:30,style:$(jt(o,{text:w}),this._monthTextPositionControl(y,d,n,u,l)),silent:p});i.add(T)}}},e.prototype._weekTextPositionControl=function(t,a,n,i,o){var s="center",l="middle",u=t[0],f=t[1],v=n==="start";return a==="horizontal"?(u=u+i+(v?1:-1)*o[0]/2,s=v?"right":"left"):(f=f+i+(v?1:-1)*o[1]/2,l=v?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,a,n,i,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),v=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||J(f)){f&&(a=Zg(f)||a);var h=a.get(["time","dayOfWeekShort"]);f=h||Z(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];v=j(v,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,v=-v);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(d,y),_=l.dataToCalendarLayout([m.time],!1).center,S=y;S=Math.abs((y+c)%7);var b=new Ot({z2:30,style:$(jt(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,v,p)),silent:g});o.add(b)}}},e.type="calendar",e}(se);const zX=BX;var zp=864e5,VX=function(){function r(e,t,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=So(e);var t=e.getFullYear(),a=e.getMonth()+1,n=a<10?"0"+a:""+a,i=e.getDate(),o=i<10?"0"+i:""+i,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:n,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+n+"-"+o,date:e}},r.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))},r.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 a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];A([0,1],function(v){f(i,v)&&(o[n[v]]=i[v]*s[v])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ne(o,l);A([0,1],function(v){f(i,v)||(i[v]=u[n[v]]/s[v])});function f(v,c){return v[c]!=null&&v[c]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(e,t,a){a=a||[],U(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,o=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+zp))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(e,t);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,gt.copy(i,n),co(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(e,t){var a=this.dataToPoint(e,t);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,a=Math.floor((e[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,t-1,n):this._getDateByWeeksAndDay(t,a-1,n)},r.prototype.convertToPixel=function(e,t,a){var n=Vp(t);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(e,t,a){var n=Vp(t);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(e,t,a){var n=Vp(t);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(U(e)&&e.length===1&&(e=e[0]),U(e))t=e;else{var a=e.toString();if(/^\d{4}$/.test(a)&&(t=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);t=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(t=[a,a])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],a;t[0].time>t[1].time&&(a=!0,t.reverse());var n=Math.floor(t[1].time/zp)-Math.floor(t[0].time/zp)+1,i=new Date(t[0].time),o=i.getDate(),s=t[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-t[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-t[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+t[0].day+6)/7),v=a?-f+1:f-1;return a&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:n,weeks:f,nthWeek:v,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,a){var n=this._getRangeInfo(a);if(e>n.weeks||e===0&&t<n.fweek||e===n.weeks&&t>n.lweek)return null;var i=(e-1)*7-n.fweek+t,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(e,t){var a=[];return e.eachComponent("calendar",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){Vu({targetModel:i,coordSysType:"calendar",coordSysProvider:eL})}),a},r.dimensions=["time","value"],r}();function Vp(r){var e=r.calendarModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}const GX=VX;function FX(r){r.registerComponentModel(NX),r.registerComponentView(zX),r.registerCoordinateSystem("calendar",GX)}var Qa={level:1,leaf:2,nonLeaf:3},sn={none:0,all:1,body:2,corner:3};function jy(r,e,t){var a=e[mt[t]].getCell(r);return!a&&Rt(r)&&r<0&&(a=e[mt[1-t]].getUnitLayoutInfo(t,Math.round(r))),a}function WR(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function $R(r,e,t,a,n){NT(r[0],e,n,t,a,0),NT(r[1],e,n,t,a,1)}function NT(r,e,t,a,n,i){r[0]=1/0,r[1]=-1/0;var o=a[i],s=U(o)?o:[o],l=s.length,u=!!t;if(l>=1?(BT(r,e,s,u,n,i,0),l>1&&BT(r,e,s,u,n,i,l-1)):r[0]=r[1]=NaN,u){var f=-n[mt[1-i]].getLocatorCount(i),v=n[mt[i]].getLocatorCount(i)-1;t===sn.body?f=de(0,f):t===sn.corner&&(v=Tr(-1,v)),v<f&&(f=v=NaN),je(r[0])&&(r[0]=f),je(r[1])&&(r[1]=v),r[0]=de(Tr(r[0],v),f),r[1]=de(Tr(r[1],v),f)}}function BT(r,e,t,a,n,i,o){var s=jy(t[o],n,i);if(!s){r[0]=r[1]=NaN;return}var l=s.id[mt[i]],u=l,f=UX(s);f&&(u+=f.span[mt[i]]-1),r[0]=Tr(r[0],l,u),r[1]=de(r[1],l,u)}function Jf(r,e){return je(r[e][0])||je(r[e][1])}function zT(r,e,t,a){e=e||HX;for(var n=0;n<a;n++)e[n]=!1;for(;;){for(var i=!1,n=0;n<a;n++){var o=t[n];!e[n]&&o.cellMergeOwner&&WX(r,o.locatorRange)&&(e[n]=!0,i=!0)}if(!i)break}}var HX=[];function WX(r,e){return!VT(r[0],e[0])||!VT(r[1],e[1])?!1:(r[0][0]=Tr(r[0][0],e[0][0]),r[0][1]=de(r[0][1],e[0][1]),r[1][0]=Tr(r[1][0],e[1][0]),r[1][1]=de(r[1][1],e[1][1]),!0)}function VT(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function GT(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function $X(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function FT(r,e,t,a){var n=jy(e[a][0],t,a),i=jy(e[a][1],t,a);r[mt[a]]=r[Se[a]]=NaN,n&&i&&(r[mt[a]]=n.xy,r[Se[a]]=i.xy+i.wh-n.xy)}function Tl(r,e,t,a){return r[mt[e]]=t,r[mt[1-e]]=a,r}function UX(r){return r&&(r.type===Qa.leaf||r.type===Qa.nonLeaf)?r:null}function Dc(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var HT=function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=YX(e);var a=t.get("data",!0);a!=null&&!U(a)&&(a=[]),a?this._initByDimModelData(a):this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,a=t._cells,n=t._levels,i=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,v){var c=0;return u&&A(u,function(h,d){var p;J(h)?p={value:h}:dt(h)?(p=h,h.value!=null&&!J(h.value)&&(p={value:null})):p={value:null};var g={type:Qa.nonLeaf,ordinal:NaN,level:v,firstLeafLocator:f,id:new ct,span:Tl(new ct,t.dimIdx,1,1),option:p,xy:NaN,wh:NaN,dim:t,rect:Dc()};o++,(i[f]||(i[f]=[])).push(g),n[v]||(n[v]={type:Qa.level,xy:NaN,wh:NaN,option:null,id:new ct,dim:t});var y=s(p.children,f,v+1),m=Math.max(1,y);g.span[mt[t.dimIdx]]=m,c+=m,f+=m}),c}function l(){for(var u=[];a.length<o;)for(var f=0;f<i.length;f++){var v=i[f].pop();if(v){v.ordinal=u.length;var c=v.option.value;u.push(c),a.push(v),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,a);var h=t._ordinalMeta=new Su({categories:u,needCollect:!1,deduplication:!1});t._scale=new xu({ordinalMeta:h});for(var d=0;d<t._leavesCount;d++){var p=t._cells[d];p.type=Qa.leaf,p.span[mt[1-t.dimIdx]]=t._levels.length-p.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:Qa.level,xy:NaN,wh:NaN,option:null,id:new ct,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new Su({needCollect:!0,deduplication:!0,onCollect:function(a,n){var i=e._cells[n]={type:Qa.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new ct,span:Tl(new ct,e.dimIdx,1,1),option:{value:a+""},xy:NaN,wh:NaN,dim:e,rect:Dc()};e._leavesCount++,e._setCellId(i)}});e._scale=new xu({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,a=this.dimIdx;Tl(e.id,a,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;A(this._cells,function(a){Tl(a.id,t,a.firstLeafLocator,a.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,a=this._model.get("levels",!0);a=U(a)?a:[],A(this._levels,function(n,i){Tl(n.id,t,0,i-e),n.option=a[i]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,a,n){if(e=e||new Yn,t===this.dimIdx){var i=this._leavesCount,o=a!=null?Math.max(0,a):0;n=n!=null?Math.min(n,i):i,e.reset(this._cells,o,o+n)}else{var i=this._levels.length,o=a!=null?Math.max(0,a+i):0;n=n!=null?Math.min(n,i):i,e.reset(this._levels,o,o+n)}return e},r.prototype.resetCellIterator=function(e){return(e||new Yn).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new Yn).reset(this._levels,0)},r.prototype.getLayout=function(e,t,a){var n=this.getUnitLayoutInfo(t,a);e[mt[t]]=n?n.xy:NaN,e[Se[t]]=n?n.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return je(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r}();function YX(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),a=0;function n(s){var l;s!=null&&(l=s.match(t))&&(a=de(a,+l[1]+1))}function i(){return""+e+a++}function o(s,l){for(var u=at(),f=0;f<s.length;f++){var v=s[f];(v==null||u.get(v)!=null)&&(s[f]=v=i(),l[f].option=ht({value:v},l[f].option)),u.set(v,!0)}}return{calcDupBase:n,ensureValueUnique:o}}var WT=function(){function r(e,t,a){this._model=t,this._dims=a,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=at(),a()),t;function a(){var i=[],o=e._model.getShallow("data");o&&!U(o)&&(o=null),A(o,function(d,p){if(!(!dt(d)||!U(d.coord))){var g=WR([]),y=null;if($R(g,y,d.coord,e._dims,d.coordClamp?sn[e._kind]:sn.none),!(Jf(g,0)||Jf(g,1))){var m=d&&d.mergeCells,_={id:new ct,span:new ct,locatorRange:g,option:d,cellMergeOwner:m};GT(_,g),i.push(_)}}});for(var s=[],l=0;l<i.length;l++){var u=i[l];if(u.cellMergeOwner){var f=u.locatorRange;zT(f,s,i,l);for(var v=0;v<l;v++)s[v]&&(i[v].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=$({},u.option);c.coord=null;var h={id:new ct,span:new ct,locatorRange:f,option:c,cellMergeOwner:!0};GT(h,f),i.push(h)}}}A(i,function(d){var p=n(d.id.x,d.id.y);if(d.cellMergeOwner&&(p.cellMergeOwner=!0,p.span=d.span,p.locatorRange=d.locatorRange,p.spanRect=Dc(),e._cellMergeOwnerList.push(p)),!(!d.cellMergeOwner&&!d.option))for(var g=0;g<d.span.y;g++)for(var y=0;y<d.span.x;y++){var m=n(d.id.x+y,d.id.y+g);m.option=d.option,d.cellMergeOwner&&(m.inSpanOf=p)}})}function n(i,o){var s=$T(i,o),l=t.get(s);return l||(l=t.set(s,{id:new ct(i,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get($T(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!Jf(e,0)&&!Jf(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){Gp[0]=e[0][0],Gp[1]=e[1][0];var t=this.getCell(Gp),a=t&&t.inSpanOf;if(a){$X(e,a.locatorRange);return}}var n=this._cellMergeOwnerList;zT(e,null,n,n.length)},r}(),Gp=[];function $T(r,e){return r+"|"+e}var A_={show:!0,color:F.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function M_(r){return{color:"none",borderWidth:1,borderColor:r?"none":F.color.borderTint}}var UT={show:!0,label:A_,itemStyle:M_(!1),silent:void 0,dividerLineStyle:{width:1,color:F.color.border}},ZX={label:A_,itemStyle:M_(!1),silent:void 0},XX={label:A_,itemStyle:M_(!0),silent:void 0},qX={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:UT,y:UT,body:ZX,corner:XX,backgroundStyle:{color:"none",borderColor:F.color.axisLine,borderWidth:1}},KX=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new YT(this.get("x",!0)||{}),y:new YT(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var a=t.x.dim=new HT("x",t.x),n=t.y.dim=new HT("y",t.y),i={x:a,y:n};this._body=new WT("body",new Bt(this.getShallow("body")),i),this._corner=new WT("corner",new Bt(this.getShallow("corner")),i)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=qX,e}(kt),YT=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(Bt);const jX=KX;var Qf=Math.round,JX=0,QX=99,tq={normal:25,special:100},eq={normal:50,special:125},rq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a){this.group.removeAll();var n=this.group,i=t.coordinateSystem,o=i.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;aq(n,t,a),nq(n,t,u,f,a);var v=t.getShallow("borderZ2",!0),c=nt(v,QX),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var g=Jy(o.clone(),d,JX),y=Jy(o.clone(),p,c);g.silent=!0,y.silent=!0,n.add(g),n.add(y);var m=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);m&&_&&(u.shouldShow()&&n.add(ZT({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),h)),f.shouldShow()&&n.add(ZT({x1:m.xy,y1:o.y,x2:m.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e}(se);function aq(r,e,t){a(0),a(1);function a(n){var i=e.getDimensionModel(mt[n]),o=i.dim;if(o.shouldShow())for(var s=i.getModel("itemStyle"),l=i.getModel("label"),u=e.getShallow("tooltip",!0),f=[],v=o.resetCellIterator();v.next();){var c=v.item,h={};gt.copy(h,c.rect),bm(f,c.id.x,c.id.y),UR(f,e,r,t,c.option,s,l,i,h,c.option.value,eq,u)}}}function nq(r,e,t,a,n){i("body",e.getBody(),t,a),t.shouldShow()&&a.shouldShow()&&i("corner",e.getCorner(),a,t);function i(o,s,l,u){var f=new Bt(e.getShallow(o,!0)),v=f.getModel("itemStyle"),c=f.getModel("label"),h=new Yn,d=new Yn,p=[],g=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(d,1);d.next();)for(l.resetLayoutIterator(h,0);h.next();){var y=h.item,m=d.item;bm(p,y.id.x,m.id.y);var _=s.getCell(p);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var S={};_&&_.span?gt.copy(S,_.spanRect):(y.dim.getLayout(S,0,p[0]),m.dim.getLayout(S,1,p[1]));var b=_?_.option:null;UR(p,e,r,n,b,v,c,f,S,b?b.value:null,tq,g)}}}}function UR(r,e,t,a,n,i,o,s,l,u,f,v){var c;tv.option=n?n.itemStyle:null,tv.parentModel=i,Qo.option=n,Qo.parentModel=s;var h=nt(Qo.getShallow("z2"),n&&n.itemStyle?f.special:f.normal),d=v&&v.show,p=Jy(l,tv.getItemStyle(),h);t.add(p);var g=Qo.get("cursor");g!=null&&p.attr("cursor",g);var y;if(u!=null){var m=u+"";if(ts.option=n?n.label:null,ts.parentModel=o,ts.ecModel=a,Ee(p,{normal:ts},{defaultText:m,autoOverflowArea:!0,layoutRect:ut(p.shape)}),y=p.getTextContent(),y){y.z2=h+1;var _=y.style;if(_&&_.overflow&&_.overflow!=="none"&&_.lineOverflow){var S={};gt.copy(S,l),co(S,(((c=p.style)===null||c===void 0?void 0:c.lineWidth)||0)/2,!0,!0),p.updateInnerText(),y.getLocalTransform(ev),ia(ev,ev),gt.applyTransform(S,S,ev),y.setClipPath(new Dt({shape:S}))}}mn({el:p,componentModel:e,itemName:m,itemTooltipOption:v,formatterParamsExtra:{xyLocator:r.slice()}})}if(y){var b=ts.get("silent");b==null&&(b=!d),y.silent=b,y.ignoreHostSilent=!0}var x=Qo.get("silent");x==null&&(x=!p.style||p.style.fill==="none"||!p.style.fill),p.silent=x,Jh(Qo),Jh(tv),Jh(ts)}var Qo=new Bt,tv=new Bt,ts=new Bt,ev=[];function Jy(r,e,t){var a=e.lineWidth;if(a){var n=r.x+r.width,i=r.y+r.height;r.x=br(r.x,a,!0),r.y=br(r.y,a,!0),r.width=br(n,a,!0)-r.x,r.height=br(i,a,!0)-r.y}return new Dt({shape:r,style:e,z2:t})}function ZT(r,e,t){var a=e.lineWidth;return a&&(Qf(r.x1*2)===Qf(r.x2*2)&&(r.x1=r.x2=br(r.x1,a,!0)),Qf(r.y1*2)===Qf(r.y2*2)&&(r.y1=r.y2=br(r.y1,a,!0))),new Me({shape:r,style:e,silent:!0,z2:t})}const iq=rq;var oq=function(){function r(e,t,a){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var n=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:n.x.dim,y:n.y.dim},this._resize(e,a)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var a=[];return e.eachComponent("matrix",function(n){var i=new r(n,e,t);a.push(i),n.coordinateSystem=i}),e.eachComponent(function(n,i){Vu({targetModel:i,coordSysType:"matrix",coordSysProvider:eL})}),a},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var a=this._dims,n=this._dimModels,i=this._rect=ne(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});XT(n,a,i,0),XT(n,a,i,1),qT(0,a),qT(1,a),KT(this._model.getBody(),a),KT(this._model.getCorner(),a)},r.prototype.dataToPoint=function(e,t,a){return a=a||[],this.dataToLayout(e,t,Cl),a[0]=Cl.rect.x+Cl.rect.width/2,a[1]=Cl.rect.y+Cl.rect.height/2,a},r.prototype.dataToLayout=function(e,t,a){var n=this._dims;a=a||{};var i=a.rect=a.rect||{};i.x=i.y=i.width=i.height=NaN;var o=a.matrixXYLocatorRange=WR(a.matrixXYLocatorRange);return U(e)&&($R(o,null,e,n,nt(t&&t.clamp,sn.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==sn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==sn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),FT(i,o,n,0),FT(i,o,n,1)),a},r.prototype.pointToData=function(e,t,a){var n=this._dims;return jT(ya,0,n,e,t&&t.clamp),jT(ya,1,n,e,t&&t.clamp),a=a||[],a[0]=a[1]=NaN,ya.y===$e.inCorner&&ya.x===$e.inBody?JT(ya,a,0,n):ya.x===$e.inCorner&&ya.y===$e.inBody?JT(ya,a,1,n):(QT(ya,a,0,n),QT(ya,a,1,n)),a},r.prototype.convertToPixel=function(e,t,a,n){var i=Hp(t);return i===this?i.dataToPoint(a,n):void 0},r.prototype.convertToLayout=function(e,t,a,n){var i=Hp(t);return i===this?i.dataToLayout(a,n):void 0},r.prototype.convertFromPixel=function(e,t,a,n){var i=Hp(t);return i===this?i.pointToData(a,n):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r}(),Cl={rect:Dc()},rv=new Yn,Fp=new Yn;function XT(r,e,t,a){for(var n=1-a,i=e[mt[a]],o=e[mt[n]],s=o.shouldShow(),l=i.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,a);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[Se[a]],v=i.getLocatorCount(a)+o.getLocatorCount(a),c=new Bt,h=o.resetLevelIterator();h.next();)c.option=h.item.option,c.parentModel=r[mt[n]],g(h.item,s?c.get("levelSize"):0);for(var d=new Bt,p=i.resetCellIterator();p.next();)p.item.type===Qa.leaf&&(d.option=p.item.option,d.parentModel=void 0,g(p.item,d.get("size")));function g(w,T){var C=sq(T,a,t);je(C)||(w.wh=Qy(C,f),f=Qy(f-w.wh),v--)}var y=v?f/v:0,m=!v&&f>=1,_=t[mt[a]],S=i.getLocatorCount(a)-1,b=new Yn;for(o.resetLayoutIterator(b,a);b.next();)x(b.item);for(i.resetLayoutIterator(b,a);b.next();)x(b.item);function x(w){je(w.wh)&&(w.wh=y),w.xy=_,w.id[mt[a]]===S&&!m&&(w.wh=t[mt[a]]+t[Se[a]]-w.xy),_+=w.wh}}function qT(r,e){for(var t=e[mt[r]].resetCellIterator();t.next();){var a=t.item;Lc(a.rect,r,a.id,a.span,e),Lc(a.rect,1-r,a.id,a.span,e),a.type===Qa.nonLeaf&&(a.xy=a.rect[mt[r]],a.wh=a.rect[Se[r]])}}function KT(r,e){r.travelExistingCells(function(t){var a=t.span;if(a){var n=t.spanRect,i=t.id;Lc(n,0,i,a,e),Lc(n,1,i,a,e)}})}function Lc(r,e,t,a,n){r[Se[e]]=0;var i=t[mt[e]],o=i<0?n[mt[1-e]]:n[mt[e]],s=o.getUnitLayoutInfo(e,t[mt[e]]);if(r[mt[e]]=s.xy,r[Se[e]]=s.wh,a[mt[e]]>1){var l=o.getUnitLayoutInfo(e,t[mt[e]]+a[mt[e]]-1);r[Se[e]]=l.xy+l.wh-s.xy}}function sq(r,e,t){var a=Wv(r,t[Se[e]]);return Qy(a,t[Se[e]])}function Qy(r,e){return Math.max(Math.min(r,nt(e,1/0)),0)}function Hp(r){var e=r.matrixModel,t=r.seriesModel,a=e?e.coordinateSystem:t?t.coordinateSystem:null;return a}var $e={inBody:1,inCorner:2,outside:3},ya={x:null,y:null,point:[]};function jT(r,e,t,a,n){var i=t[mt[e]],o=t[mt[1-e]],s=i.getUnitLayoutInfo(e,i.getLocatorCount(e)-1),l=i.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,v=r.point[e]=a[e];if(!l&&!f){r[mt[e]]=$e.outside;return}if(n===sn.body){l?(r[mt[e]]=$e.inBody,v=Tr(s.xy+s.wh,de(l.xy,v)),r.point[e]=v):r[mt[e]]=$e.outside;return}else if(n===sn.corner){f?(r[mt[e]]=$e.inCorner,v=Tr(f.xy+f.wh,de(u.xy,v)),r.point[e]=v):r[mt[e]]=$e.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,h=u?u.xy:c,d=s?s.xy+s.wh:c;if(v<h){if(!n){r[mt[e]]=$e.outside;return}v=h}else if(v>d){if(!n){r[mt[e]]=$e.outside;return}v=d}r.point[e]=v,r[mt[e]]=c<=v&&v<=d?$e.inBody:h<=v&&v<=c?$e.inCorner:$e.outside}function JT(r,e,t,a){var n=1-t;if(r[mt[t]]!==$e.outside)for(a[mt[t]].resetCellIterator(Fp);Fp.next();){var i=Fp.item;if(tC(r.point[t],i.rect,t)&&tC(r.point[n],i.rect,n)){e[t]=i.ordinal,e[n]=i.id[mt[n]];return}}}function QT(r,e,t,a){if(r[mt[t]]!==$e.outside){var n=r[mt[t]]===$e.inCorner?a[mt[1-t]]:a[mt[t]];for(n.resetLayoutIterator(rv,t);rv.next();)if(lq(r.point[t],rv.item)){e[t]=rv.item.id[mt[t]];return}}}function lq(r,e){return e.xy<=r&&r<=e.xy+e.wh}function tC(r,e,t){return e[mt[t]]<=r&&r<=e[mt[t]]+e[Se[t]]}const uq=oq;function fq(r){r.registerComponentModel(jX),r.registerComponentView(iq),r.registerCoordinateSystem("matrix",uq)}function vq(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var a=e.parentOption;a?e.parentId=a.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function eC(r,e){var t;return A(e,function(a){r[a]!=null&&r[a]!=="auto"&&(t=!0)}),t}function cq(r,e,t){var a=$({},t),n=r[e],i=t.$action||"merge";i==="merge"?n?(wt(n,a,!0),Va(n,a,{ignoreSize:!0}),oL(t,n),av(t,n),av(t,n,"shape"),av(t,n,"style"),av(t,n,"extra"),t.clipPath=n.clipPath):r[e]=a:i==="replace"?r[e]=a:i==="remove"&&n&&(r[e]=null)}var YR=["transition","enterFrom","leaveTo"],hq=YR.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function av(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var a=t?YR:hq,n=0;n<a.length;n++){var i=a[n];r[i]==null&&e[i]!=null&&(r[i]=e[i])}}function dq(r,e){if(r&&(r.hv=e.hv=[eC(e,["left","right"]),eC(e,["top","bottom"])],r.type==="group")){var t=r,a=e;t.width==null&&(t.width=a.width=0),t.height==null&&(t.height=a.height=0)}}var pq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,a){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,a),this.option.elements=n},e.prototype.optionUpdated=function(t,a){var n=this.option,i=(a?n:t).elements,o=n.elements=a?[]:n.elements,s=[];this._flatten(i,s,null);var l=OM(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];A(l,function(f,v){var c=f.newOption;c&&(u.push(c),vq(f,c),cq(o,v,c),dq(o[v],c))},this),n.elements=$t(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,a,n){A(t,function(i){if(i){n&&(i.parentOption=n),a.push(i);var o=i.children;o&&o.length&&this._flatten(o,a,i),delete i.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(kt),rC={path:null,compoundPath:null,group:ft,image:Ze,text:Ot},Nr=Lt(),gq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=at()},e.prototype.render=function(t,a,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var a=t.useElOptionsToUpdate();if(a){var n=this._elMap,i=this.group,o=t.get("z"),s=t.get("zlevel");A(a,function(l){var u=Ae(l.id,null),f=u!=null?n.get(u):null,v=Ae(l.parentId,null),c=v!=null?n.get(v):i,h=l.type,d=l.style;h==="text"&&d&&l.hv&&l.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var p=l.textContent,g=l.textConfig;if(d&&bR(d,h,!!g,!!p)){var y=wR(d,h,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!p&&y.textContent&&(p=y.textContent)}var m=yq(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=aC(u,c,l.type,n):(w&&(Nr(w).isNew=!1),MR(w)),w&&(Lv(w,m,t,{isInit:x}),nC(w,l,o,s))}else if(b){Pv(f,l,n,t);var T=aC(u,c,l.type,n);T&&(Lv(T,m,t,{isInit:!0}),nC(T,l,o,s))}else _==="remove"&&(CR(f,l),Pv(f,l,n,t));var C=n.get(u);if(C&&p)if(S){var M=C.getTextContent();M?M.attr(p):C.setTextContent(new Ot(p))}else b&&C.setTextContent(new Ot(p));if(C){var D=l.clipPath;if(D){var I=D.type,L=void 0,x=!1;if(S){var P=C.getClipPath();x=!P||Nr(P).type!==I,L=x?tm(I):P}else b&&(x=!0,L=tm(I));C.setClipPath(L),Lv(L,D,t,{isInit:x}),Cc(L,D.keyframeAnimation,t)}var k=Nr(C);C.setTextConfig(g),k.option=l,mq(C,t,l),mn({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),Cc(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,a){for(var n=t.option.elements,i=this.group,o=this._elMap,s=a.getWidth(),l=a.getHeight(),u=["x","y"],f=0;f<n.length;f++){var v=n[f],c=Ae(v.id,null),h=c!=null?o.get(c):null;if(!(!h||!h.isGroup)){var d=h.parent,p=d===i,g=Nr(h),y=Nr(d);g.width=j(g.option.width,p?s:y.width)||0,g.height=j(g.option.height,p?l:y.height)||0}}for(var f=n.length-1;f>=0;f--){var v=n[f],c=Ae(v.id,null),h=c!=null?o.get(c):null;if(h){var d=h.parent,y=Nr(d),m=d===i?{width:s,height:l}:{width:y.width,height:y.height},_={},S=lh(h,v,m,null,{hv:v.hv,boundingMode:v.bounding},_);if(!Nr(h).isNew&&S){for(var b=v.transition,x={},w=0;w<u.length;w++){var T=u[w],C=_[T];b&&(so(b)||bt(b,T)>=0)?x[T]=C:h[T]=C}Nt(h,x,t,0)}else h.attr(_)}}},e.prototype._clear=function(){var t=this,a=this._elMap;a.each(function(n){Pv(n,Nr(n).option,a,t._lastGraphicModel)}),this._elMap=at()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(se);function tm(r){var e=rt(rC,r)?rC[r]:Xv(r),t=new e({});return Nr(t).type=r,t}function aC(r,e,t,a){var n=tm(t);return e.add(n),a.set(r,n),Nr(n).id=r,Nr(n).isNew=!0,n}function Pv(r,e,t,a){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(i){Pv(i,e,t,a)}),Th(r,e,a),t.removeKey(Nr(r).id))}function nC(r,e,t,a){r.isGroup||A([["cursor",$r.prototype.cursor],["zlevel",a||0],["z",t||0],["z2",0]],function(n){var i=n[0];rt(e,i)?r[i]=nt(e[i],n[1]):r[i]==null&&(r[i]=n[1])}),A(Pt(e),function(n){if(n.indexOf("on")===0){var i=e[n];r[n]=lt(i)?i:null}}),rt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function yq(r){return r=$({},r),A(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(rL),function(e){delete r[e]}),r}function mq(r,e,t){var a=yt(r).eventData;!r.silent&&!r.ignore&&!a&&(a=yt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),a&&(a.info=t.info)}function _q(r){r.registerComponentModel(pq),r.registerComponentView(gq),r.registerPreprocessor(function(e){var t=e.graphic;U(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var iC=["x","y","radius","angle","single"],Sq=["cartesian2d","polar","singleAxis"];function xq(r){var e=r.get("coordinateSystem");return bt(Sq,e)>=0}function Hn(r){return r+"Axis"}function bq(r,e){var t=at(),a=[],n=at();r.eachComponent({mainType:"dataZoom",query:e},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var v=!1;return f.eachTargetAxis(function(c,h){var d=t.get(c);d&&d[h]&&(v=!0)}),v}function u(f){f.eachTargetAxis(function(v,c){(t.get(v)||t.set(v,[]))[c]=!0})}return a}function ZR(r){var e=r.ecModel,t={infoList:[],infoMap:at()};return r.eachTargetAxis(function(a,n){var i=e.getComponent(Hn(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(i)}}}),t}var Wp=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r}(),wq=function(r){B(e,r);function e(){var t=r!==null&&r.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,a,n){var i=oC(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var a=oC(t);wt(this.option,t,!0),wt(this.settledOption,a,!0),this._doInit(a)},e.prototype._doInit=function(t){var a=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),a=this._targetAxisInfoMap=at(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var a=!1;return A(iC,function(n){var i=this.getReferringComponents(Hn(n),_N);if(i.specified){a=!0;var o=new Wp;A(i.models,function(s){o.add(s.componentIndex)}),t.set(n,o)}},this),a},e.prototype._fillAutoTargetAxisByOrient=function(t,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var v=u[0];if(v){var c=new Wp;if(c.add(v.componentIndex),t.set(f,c),i=!1,f==="x"||f==="y"){var h=v.getReferringComponents("grid",fe).models[0];h&&A(u,function(d){v.componentIndex!==d.componentIndex&&h===d.getReferringComponents("grid",fe).models[0]&&c.add(d.componentIndex)})}}}i&&A(iC,function(u){if(i){var f=n.findComponents({mainType:Hn(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var v=new Wp;v.add(f[0].componentIndex),t.set(u,v),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(a){!t&&(t=a)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var a=this._rangePropMode,n=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(i,o){var s=t[i[0]]!=null,l=t[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(a,n){t==null&&(t=this.ecModel.getComponent(Hn(a),n))},this),t},e.prototype.eachTargetAxis=function(t,a){this._targetAxisInfoMap.each(function(n,i){A(n.indexList,function(o){t.call(a,i,o)})})},e.prototype.getAxisProxy=function(t,a){var n=this.getAxisModel(t,a);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,a){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[a])return this.ecModel.getComponent(Hn(t),a)},e.prototype.setRawRange=function(t){var a=this.option,n=this.settledOption;A([["start","startValue"],["end","endValue"]],function(i){(t[i[0]]!=null||t[i[1]]!=null)&&(a[i[0]]=n[i[0]]=t[i[0]],a[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var a=this.option;A(["start","startValue","end","endValue"],function(n){a[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,a){if(t==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(t,a).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return 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}(kt);function oC(r){var e={};return A(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const Pu=wq;var Tq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(Pu);const Cq=Tq;var Aq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n,i){this.dataZoomModel=t,this.ecModel=a,this.api=n},e.type="dataZoom",e}(se);const D_=Aq;var Mq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e}(D_);const Dq=Mq;var ss=A,sC=Hr,Lq=function(){function r(e,t,a,n){this._dimName=e,this._axisIndex=t,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(xq(t)){var a=Hn(this._dimName),n=t.getReferringComponents(a,fe).models[0];n&&this._axisIndex===n.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ut(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ss(["start","end"],function(c,h){var d=e[c],p=e[c+"Value"];i[h]==="percent"?(d==null&&(d=o[h]),p=n.parse(Wt(d,o,t))):(u=!0,p=p==null?t[h]:n.parse(p),d=Wt(p,t,o)),l[h]=p==null||isNaN(p)?t[h]:p,s[h]=d==null||isNaN(d)?o[h]:d}),sC(l),sC(s);var f=this._minMaxSpan;u?v(l,s,t,o,!1):v(s,l,o,t,!0);function v(c,h,d,p,g){var y=g?"Span":"ValueSpan";ei(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)h[m]=Wt(c[m],d,p,!0),g&&(h[m]=n.parse(h[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Iq(this,this._dimName,t),this._updateMinMaxSpan();var a=this.calculateDataWindow(e.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=e.get("filterMode"),o=this._valueWindow;if(i==="none")return;ss(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var v=u.getStore(),c=Z(f,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var d,p,g,y=0;y<f.length;y++){var m=v.get(c[y],h),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(d=!0),b&&(p=!0)}return g&&d&&p})}else ss(f,function(h){if(i==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var d={};d[h]=o,u.selectRange(d)}});ss(f,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,a=this._dataExtent;ss(["min","max"],function(n){var i=t.get(n+"Span"),o=t.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=Wt(a[0]+o,a,[0,100],!0):i!=null&&(o=Wt(i,[0,100],a,!0)-a[0]),e[n+"Span"]=i,e[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,a=this._valueWindow;if(t){var n=AM(a,[0,500]);n=Math.min(n,20);var i=e.axis.scale.rawExtentInfo;t[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),t[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r}();function Iq(r,e,t){var a=[1/0,-1/0];ss(t,function(o){UF(a,o.getData(),e)});var n=r.getAxisModel(),i=H2(n.axis.scale,n,a).calculate();return[i.min,i.max]}const Pq=Lq;var Rq={getTargetSeries:function(r){function e(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(Hn(o),s);n(o,s,l,i)})})}e(function(n,i,o,s){o.__dzAxisProxy=null});var t=[];e(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Pq(n,i,s,r),t.push(o.__dzAxisProxy))});var a=at();return A(t,function(n){A(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).reset(t)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var a=t.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};const kq=Rq;function Eq(r){r.registerAction("dataZoom",function(e,t){var a=bq(t,e);A(a,function(n){n.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var lC=!1;function L_(r){lC||(lC=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,kq),Eq(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Oq(r){r.registerComponentModel(Cq),r.registerComponentView(Dq),L_(r)}var zr=function(){function r(){}return r}(),XR={};function ls(r,e){XR[r]=e}function qR(r){return XR[r]}var Nq=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;A(this.option.feature,function(a,n){var i=qR(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),wt(a,i.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:F.color.border,borderRadius:0,borderWidth:0,padding:F.size.m,itemSize:15,itemGap:F.size.s,showTitle:!0,iconStyle:{borderColor:F.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:F.color.accent50}},tooltip:{show:!1,position:"bottom"}},e}(kt);const Bq=Nq;function KR(r,e){var t=zu(e.get("padding")),a=e.getItemStyle(["color","opacity"]);a.fill=e.get("backgroundColor");var n=new Dt({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var zq=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features={}),v=[];A(u,function(m,_){v.push(_)}),new hn(this._featureNames||[],v).add(c).update(c).remove(xt(c,null)).execute(),this._featureNames=v;function c(m,_){var S=v[m],b=v[_],x=u[S],w=new Bt(x,t,t.ecModel),T;if(i&&i.newTitle!=null&&i.featureName===S&&(x.title=i.newTitle),S&&!b){if(Vq(S))T={onclick:w.option.onclick,featureName:S};else{var C=qR(S);if(!C)return;T=new C}f[S]=T}else if(T=f[b],!T)return;T.uid=$s("toolbox-feature"),T.model=w,T.ecModel=a,T.api=n;var M=T instanceof zr;if(!S&&b){M&&T.dispose&&T.dispose(a,n);return}if(!w.get("show")||M&&T.unusable){M&&T.remove&&T.remove(a,n);return}h(w,T,S),w.setIconStatus=function(D,I){var L=this.option,P=this.iconPaths;L.iconStatus=L.iconStatus||{},L.iconStatus[D]=I,P[D]&&(I==="emphasis"?vn:cn)(P[D])},T instanceof zr&&T.render&&T.render(w,a,n,i)}function h(m,_,S){var b=m.getModel("iconStyle"),x=m.getModel(["emphasis","iconStyle"]),w=_ instanceof zr&&_.getIcons?_.getIcons():m.get("icon"),T=m.get("title")||{},C,M;J(w)?(C={},C[S]=w):C=w,J(T)?(M={},M[S]=T):M=T;var D=m.iconPaths={};A(C,function(I,L){var P=Bu(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(b.getItemStyle());var k=P.ensureState("emphasis");k.style=x.getItemStyle();var R=new Ot({style:{text:M[L],align:x.get("textAlign"),borderRadius:x.get("textBorderRadius"),padding:x.get("textPadding"),fill:null,font:Xm({fontStyle:x.get("textFontStyle"),fontFamily:x.get("textFontFamily"),fontSize:x.get("textFontSize"),fontWeight:x.get("textFontWeight")},a)},ignore:!0});P.setTextContent(R),mn({el:P,componentModel:t,itemName:L,formatterParamsExtra:{title:M[L]}}),P.__title=M[L],P.on("mouseover",function(){var N=x.getItemStyle(),E=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:x.get("textFill")||N.fill||N.stroke||F.color.neutral99,backgroundColor:x.get("textBackgroundColor")}),P.setTextConfig({position:x.get("textPosition")||E}),R.ignore=!t.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){m.get(["iconStatus",L])!=="emphasis"&&n.leaveEmphasis(this),R.hide()}),(m.get(["iconStatus",L])==="emphasis"?vn:cn)(P),o.add(P),P.on("click",Q(_.onclick,_,a,n,L)),D[L]=P})}var d=Ie(t,n).refContainer,p=t.getBoxLayoutParams(),g=t.get("padding"),y=ne(p,d,g);no(t.get("orient"),o,t.get("itemGap"),y.width,y.height),lh(o,p,d,g),o.add(KR(o.getBoundingRect(),t)),l||o.eachChild(function(m){var _=m.__title,S=m.ensureState("emphasis"),b=S.textConfig||(S.textConfig={}),x=m.getTextContent(),w=x&&x.ensureState("emphasis");if(w&&!lt(w)&&_){var T=w.style||(w.style={}),C=Yc(_,Ot.makeFont(T)),M=m.x+o.x,D=m.y+o.y+s,I=!1;D+C.height>n.getHeight()&&(b.position="top",I=!0);var L=I?-5-C.height:s+10;M+C.width/2>n.getWidth()?(b.position=["100%",L],T.align="right"):M-C.width/2<0&&(b.position=[0,L],T.align="left")}})},e.prototype.updateView=function(t,a,n,i){A(this._features,function(o){o instanceof zr&&o.updateView&&o.updateView(o.model,a,n,i)})},e.prototype.remove=function(t,a){A(this._features,function(n){n instanceof zr&&n.remove&&n.remove(t,a)}),this.group.removeAll()},e.prototype.dispose=function(t,a){A(this._features,function(n){n instanceof zr&&n.dispose&&n.dispose(t,a)})},e.type="toolbox",e}(se);function Vq(r){return r.indexOf("my")===0}const Gq=zq;var Fq=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=a.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=a.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||F.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=zt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=i+"."+s,f.target="_blank",f.href=l;var v=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(v)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),h=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];h&&(d=window.atob(d));var p=i+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(d),b.close(),S.focus(),b.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=i}},e.getDefaultOption=function(t){var a={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:F.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return a},e}(zr);const Hq=Fq;var uC="__ec_magicType_stack__",Wq=[["line","bar"],["stack"]],$q=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,a=t.get("icon"),n={};return A(t.get("type"),function(i){a[i]&&(n[i]=a[i])}),n},e.getDefaultOption=function(t){var a={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return a},e.prototype.onclick=function(t,a,n){var i=this.model,o=i.get(["seriesIndex",n]);if(fC[n]){var s={series:[]},l=function(v){var c=v.subType,h=v.id,d=fC[n](c,h,v,i);d&&(ht(d,v.option),s.series.push(d));var p=v.coordinateSystem;if(p&&p.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=v.getReferringComponents(m,fe).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};A(Wq,function(v){bt(v,n)>=0&&A(v,function(c){i.setIconStatus(c,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=wt({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),i.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),a.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(zr),fC={line:function(r,e,t,a){if(r==="bar")return wt({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","line"])||{},!0)},bar:function(r,e,t,a){if(r==="line")return wt({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},a.get(["option","bar"])||{},!0)},stack:function(r,e,t,a){var n=t.get("stack")===uC;if(r==="line"||r==="bar")return a.setIconStatus("stack",n?"normal":"emphasis"),wt({id:e,stack:n?"":uC},a.get(["option","stack"])||{},!0)}};Fa({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const Uq=$q;var Ch=new Array(60).join("-"),Os="	";function Yq(r){var e={},t=[],a=[];return r.eachRawSeries(function(n){var i=n.coordinateSystem;if(i&&(i.type==="cartesian2d"||i.type==="polar")){var o=i.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},a.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(n)}else t.push(n)}else t.push(n)}),{seriesGroupByCategoryAxis:e,other:t,meta:a}}function Zq(r){var e=[];return A(r,function(t,a){var n=t.categoryAxis,i=t.valueAxis,o=i.dim,s=[" "].concat(Z(t.series,function(h){return h.name})),l=[n.model.getCategories()];A(t.series,function(h){var d=h.getRawData();l.push(h.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var u=[s.join(Os)],f=0;f<l[0].length;f++){for(var v=[],c=0;c<l.length;c++)v.push(l[c][f]);u.push(v.join(Os))}e.push(u.join(`
`))}),e.join(`

`+Ch+`

`)}function Xq(r){return Z(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+Os:"")+n.join(Os))}),a.join(`
`)}).join(`

`+Ch+`

`)}function qq(r){var e=Yq(r);return{value:$t([Zq(e.seriesGroupByCategoryAxis),Xq(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`

`+Ch+`

`),meta:e.meta}}function Ic(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kq(r){var e=r.slice(0,r.indexOf(`
`));if(e.indexOf(Os)>=0)return!0}var em=new RegExp("["+Os+"]+","g");function jq(r){for(var e=r.split(/\n+/g),t=Ic(e.shift()).split(em),a=[],n=Z(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Ic(e[i]).split(em);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function Jq(r){for(var e=r.split(/\n+/g),t=Ic(e.shift()),a=[],n=0;n<e.length;n++){var i=Ic(e[n]);if(i){var o=i.split(em),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function Qq(r,e){var t=r.split(new RegExp(`
*`+Ch+`
*`,"g")),a={series:[]};return A(t,function(n,i){if(Kq(n)){var o=jq(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=Jq(n);a.series.push(o)}}),a}var tK=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||F.color.neutral00;var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var v=i.get("optionToContent"),c=i.get("contentToOption"),h=qq(t);if(lt(v)){var d=v(a.getOption());J(d)?u.innerHTML=d:bs(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.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",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}hg(_,"click",x),hg(S,"click",function(){if(c==null&&v!=null||c!=null&&v==null){x();return}var w;try{lt(c)?w=c(u,a.getOption()):w=Qq(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={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:F.color.background,textColor:F.color.primary,textareaColor:F.color.background,textareaBorderColor:F.color.border,buttonColor:F.color.accent50,buttonTextColor:F.color.neutral00};return a},e}(zr);function eK(r,e){return Z(r,function(t,a){var n=e&&e[a];if(dt(n)&&!U(n)){var i=dt(t)&&!U(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=ht(t,n),o&&delete t.name,t}else return t})}Fa({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];A(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push($({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:eK(a.data,i)})}}),e.mergeOption(ht({series:t},r.newOption))});const rK=tK;var jR=A,JR=Lt();function aK(r,e){var t=I_(r);jR(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function nK(r){var e=I_(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return jR(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function iK(r){JR(r).snapshots=null}function oK(r){return I_(r).length}function I_(r){var e=JR(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var sK=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){iK(t),a.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var a={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return a},e}(zr);Fa({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const lK=sK;var uK=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],fK=function(){function r(e,t,a){var n=this;this._targetInfoList=[];var i=vC(t,e);A(vK,function(o,s){(!a||!a.include||bt(a.include,s)>=0)&&o(i,n._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(a,n,i){if((a.coordRanges||(a.coordRanges=[])).push(n),!a.coordRange){a.coordRange=n;var o=$p[a.brushType](0,i,n);a.__rangeOffset={offset:pC[a.brushType](o.values,a.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,a){A(e,function(n){var i=this.findTargetInfo(n,t);i&&i!==!0&&A(i.coordSyses,function(o){var s=$p[n.brushType](1,o,n.range,!0);a(n,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){A(e,function(a){var n=this.findTargetInfo(a,t);if(a.range=a.range||[],n&&n!==!0){a.panelId=n.panelId;var i=$p[a.brushType](0,n.coordSys,a.coordRange),o=a.__rangeOffset;a.range=o?pC[a.brushType](i.values,o.offset,cK(i.xyMinMax,o.xyMinMax)):i.values}},this)},r.prototype.makePanelOpts=function(e,t){return Z(this._targetInfoList,function(a){var n=a.getPanelRect();return{panelId:a.panelId,defaultBrushType:t?t(a):null,clipPath:rR(n),isTargetByCursor:nR(n,e,a.coordSysModel),getLinearBrushOtherExtent:aR(n)}})},r.prototype.controlSeries=function(e,t,a){var n=this.findTargetInfo(e,a);return n===!0||n&&bt(n.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var a=this._targetInfoList,n=vC(t,e),i=0;i<a.length;i++){var o=a[i],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<cC.length;l++)if(cC[l](n,o))return o}return!0},r}();function rm(r){return r[0]>r[1]&&r.reverse(),r}function vC(r,e){return ms(r,e,{includeMainTypes:uK})}var vK={grid:function(r,e){var t=r.xAxisModels,a=r.yAxisModels,n=r.gridModels,i=at(),o={},s={};!t&&!a&&!n||(A(t,function(l){var u=l.axis.grid.model;i.set(u.id,u),o[u.id]=!0}),A(a,function(l){var u=l.axis.grid.model;i.set(u.id,u),s[u.id]=!0}),A(n,function(l){i.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),i.each(function(l){var u=l.coordinateSystem,f=[];A(u.getCartesians(),function(v,c){(bt(t,v.getAxis("x").model)>=0||bt(a,v.getAxis("y").model)>=0)&&f.push(v)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:hC.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){A(r.geoModels,function(t){var a=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:a,coordSyses:[a],getPanelRect:hC.geo})})}},cC=[function(r,e){var t=r.xAxisModel,a=r.yAxisModel,n=r.gridModel;return!n&&t&&(n=t.axis.grid.model),!n&&a&&(n=a.axis.grid.model),n&&n===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],hC={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(ao(r)),e}},$p={lineX:xt(dC,0),lineY:xt(dC,1),rect:function(r,e,t,a){var n=r?e.pointToData([t[0][0],t[1][0]],a):e.dataToPoint([t[0][0],t[1][0]],a),i=r?e.pointToData([t[0][1],t[1][1]],a):e.dataToPoint([t[0][1],t[1][1]],a),o=[rm([n[0],i[0]]),rm([n[1],i[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,a){var n=[[1/0,-1/0],[1/0,-1/0]],i=Z(t,function(o){var s=r?e.pointToData(o,a):e.dataToPoint(o,a);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:i,xyMinMax:n}}};function dC(r,e,t,a){var n=t.getAxis(["x","y"][r]),i=rm(Z([0,1],function(s){return e?n.coordToData(n.toLocalCoord(a[s]),!0):n.toGlobalCoord(n.dataToCoord(a[s]))})),o=[];return o[r]=i,o[1-r]=[NaN,NaN],{values:i,xyMinMax:o}}var pC={lineX:xt(gC,0),lineY:xt(gC,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return Z(r,function(a,n){return[a[0]-t[0]*e[n][0],a[1]-t[1]*e[n][1]]})}};function gC(r,e,t,a){return[e[0]-a[r]*t[0],e[1]-a[r]*t[1]]}function cK(r,e){var t=yC(r),a=yC(e),n=[t[0]/a[0],t[1]/a[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function yC(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const P_=fK;var am=A,hK=dN("toolbox-dataZoom_"),dK=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n,i){this._brushController||(this._brushController=new s_(n.getZr()),this._brushController.on("brush",Q(this._onBrush,this)).mount()),yK(t,a,this,i,n),gK(t,a)},e.prototype.onclick=function(t,a,n){pK[n].call(this)},e.prototype.remove=function(t,a){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,a){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var a=t.areas;if(!t.isEnd||!a.length)return;var n={},i=this.ecModel;this._brushController.updateCovers([]);var o=new P_(R_(this.model),i,{include:["grid"]});o.matchOutputRanges(a,i,function(u,f,v){if(v.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",v,f[0]),s("y",v,f[1])):s({lineX:"x",lineY:"y"}[c],v,f)}}),aK(i,n),this._dispatchZoomAction(n);function s(u,f,v){var c=f.getAxis(u),h=c.model,d=l(u,h,i),p=d.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(v=ei(0,v.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(n[d.id]={dataZoomId:d.id,startValue:v[0],endValue:v[1]})}function l(u,f,v){var c;return v.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var d=h.getAxisModel(u,f.componentIndex);d&&(c=h)}),c}},e.prototype._dispatchZoomAction=function(t){var a=[];am(t,function(n,i){a.push(ut(n))}),a.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:a})},e.getDefaultOption=function(t){var a={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:F.color.backgroundTint}};return a},e}(zr),pK={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(nK(this.ecModel))}};function R_(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function gK(r,e){r.setIconStatus("back",oK(e)>1?"emphasis":"normal")}function yK(r,e,t,a,n){var i=t._isZoomActive;a&&a.type==="takeGlobalCursor"&&(i=a.key==="dataZoomSelect"?a.dataZoomSelectActive:!1),t._isZoomActive=i,r.setIconStatus("zoom",i?"emphasis":"normal");var o=new P_(R_(r),e,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(i&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}lV("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var a=e.getModel(t),n=[],i=R_(a),o=ms(r,i);am(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),am(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var v=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:a.get("filterMode",!0)||"filter",id:hK+u+v};c[f]=v,n.push(c)}return n});const mK=dK;function _K(r){r.registerComponentModel(Bq),r.registerComponentView(Gq),ls("saveAsImage",Hq),ls("magicType",Uq),ls("dataView",rK),ls("dataZoom",mK),ls("restore",lK),Ct(Oq)}var SK=function(r){B(e,r);function e(){var t=r!==null&&r.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,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:F.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:F.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:F.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:F.color.tertiary,fontSize:14}},e}(kt);const xK=SK;function QR(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function tk(r){if(zt.domSupported){for(var e=document.documentElement.style,t=0,a=r.length;t<a;t++)if(r[t]in e)return r[t]}}var ek=tk(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bK=tk(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function rk(r,e){if(!r)return e;e=jD(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function wK(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var TK=rk(bK,"transition"),k_=rk(ek,"transform"),CK="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(zt.transform3dSupported?"will-change:transform;":"");function AK(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function MK(r,e,t){if(!J(t)||t==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");e=po(e);var i=AK(t),o=Math.max(Math.round(n)*1.5,6),s="",l=k_+":",u;bt(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,v=o+n,c=v*Math.abs(Math.cos(f))+v*Math.abs(Math.sin(f)),h=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-v)/2)*100)/100;s+=";"+i+":-"+h+"px";var d=e+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function DK(r,e,t){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return t&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),e||(n=" "+r+"s "+a,i+=(i.length?",":"")+(zt.transformSupported?""+k_+n:",left"+n+",top"+n)),TK+":"+i}function mC(r,e,t){var a=r.toFixed(0)+"px",n=e.toFixed(0)+"px";if(!zt.transformSupported)return t?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=zt.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return t?"top:0;left:0;"+k_+":"+o+";":[["top",0],["left",0],[ek,o]]}function LK(r){var e=[],t=r.get("fontSize"),a=r.getTextColor();a&&e.push("color:"+a),e.push("font:"+r.getFont());var n=nt(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),A(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function IK(r,e,t,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),v=r.getModel("textStyle"),c=GL(r,"html"),h=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+h),e&&i>0&&n.push(DK(i,t,a)),o&&n.push("background-color:"+o),A(["width","color","radius"],function(d){var p="border-"+d,g=jD(p),y=r.get(g);y!=null&&n.push(p+":"+y+(d==="color"?"":"px"))}),n.push(LK(v)),c!=null&&n.push("padding:"+zu(c).join("px ")+"px"),n.join(";")+";"}function _C(r,e,t,a,n){var i=e&&e.painter;if(t){var o=i&&i.getViewportRoot();o&&LE(r,o,t,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var PK=function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,zt.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=e.getZr(),i=t.appendTo,o=i&&(J(i)?document.querySelector(i):bs(i)?i:lt(i)&&i(e.getDom()));_C(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(a),this._api=e,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();kr(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),a=wK(t,"position"),n=t.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=CK+IK(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+mC(i[0],i[1],!0)+("border-color:"+po(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,a,n,i){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(J(i)&&a.get("trigger")==="item"&&!QR(a)&&(s=MK(a,n,i)),J(e))o.innerHTML=e+s;else if(e){o.innerHTML="",U(e)||(e=[e]);for(var l=0;l<e.length;l++)bs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var a=this._styleCoord;if(_C(a,this._zr,this._container,e,t),a[0]!=null&&a[1]!=null){var n=this.el.style,i=mC(a[0],a[1]);A(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",zt.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;IE(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var a=t.parentNode;a&&a.removeChild(t)}this.el=this._container=null},r}();const RK=PK;var kK=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),xC(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,a,n,i){var o=this;dt(e)&&Gt(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Ot({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:GL(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),a=SC(e.style);return[t.width+a.left+a.right,t.height+a.top+a.bottom]},r.prototype.moveTo=function(e,t){var a=this.el;if(a){var n=this._styleCoord;xC(n,this._zr,e,t),e=n[0],t=n[1];var i=a.style,o=Pn(i.borderWidth||0),s=SC(i);a.x=e+o+s.left,a.y=t+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function Pn(r){return Math.max(0,r)}function SC(r){var e=Pn(r.shadowBlur||0),t=Pn(r.shadowOffsetX||0),a=Pn(r.shadowOffsetY||0);return{left:Pn(e-t),right:Pn(e+t),top:Pn(e-a),bottom:Pn(e+a)}}function xC(r,e,t,a){r[0]=t,r[1]=a,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const EK=kK;var OK=new Dt({shape:{x:-1,y:-1,width:2,height:2}}),NK=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){if(!(zt.node||!a.getDom())){var n=t.getComponent("tooltip"),i=this._renderMode=xN(n.get("renderMode"));this._tooltipContent=i==="richText"?new EK(a):new RK(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,a,n){if(!(zt.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?Zs(this,"_updatePosition",50,"fixRate"):gu(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,a=t.get("triggerOn");NR("itemTooltip",this._api,Q(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,a=this._ecModel,n=this._api,i=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(t,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,a,n,i){if(!(i.from===this.uid||zt.node||!n.getDom())){var o=bC(i,n);this._ticket="";var s=i.dataByCoordSys,l=GK(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=OK;f.x=i.x,f.y=i.y,f.update(),yt(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(t,a,n,i))return;var v=BR(i,a),c=v.point[0],h=v.point[1];c!=null&&h!=null&&this._tryShow({offsetX:c,offsetY:h,target:v.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},e.prototype.manuallyHideTip=function(t,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(bC(i,n))},e.prototype._manuallyAxisShowTip=function(t,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),v=Al([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},e.prototype._tryShow=function(t,a){var n=t.target,i=this._tooltipModel;if(i){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(n){var s=yt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;qi(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(yt(f).dataIndex!=null?l=f:yt(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,a):u?this._showComponentItemTooltip(t,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},e.prototype._showOrMove=function(t,a){var n=t.get("showDelay");a=Q(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},e.prototype._showAxisTooltip=function(t,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Al([a.tooltipOption],i),l=this._renderMode,u=[],f=xe("section",{blocks:[],noHeader:!0}),v=[],c=new Td;A(t,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=kR(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=xe("section",{header:x,noHeader:!Fr(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),A(_.seriesDataIndices,function(T){var C=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,D=C.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=oc(S.axis,{value:b}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",po(D.color),l);var I=ES(C.formatTooltip(M,!0,null)),L=I.frag;if(L){var P=Al([C],i).get("valueFormatter");w.blocks.push(P?$({valueFormatter:P},L):L)}I.text&&v.push(I.text),u.push(D)}})}})}),f.blocks.reverse(),v.reverse();var h=a.position,d=s.get("order"),p=GS(f,c,l,d,n.get("useUTC"),s.get("textStyle"));p&&v.unshift(p);var g=l==="richText"?`

`:"<br/>",y=v.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,c)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=yt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,v=o.dataType,c=u.getData(v),h=this._renderMode,d=t.positionDefault,p=Al([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,v),m=new Td;y.marker=m.makeTooltipMarker("item",po(y.color),h);var _=ES(u.formatTooltip(f,!1,v)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,w=x?GS(b?$({valueFormatter:b},x):x,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=yt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(J(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ut(l),l.content=Ke(l.content));var v=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&v.push(c),v.push({formatter:l.content});var h=t.positionDefault,d=Al(v,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Td;this._showOrMove(d,function(){var m=ut(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var v=this._tooltipContent;v.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var h=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(J(c)){var g=t.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=c,m&&(h=sh(y.axisValue,h,g)),h=JD(h,n,!0)}else if(lt(c)){var _=Q(function(S,b){S===this._ticket&&(v.setContent(b,f,t,p,l),this._updatePosition(t,l,o,s,v,n,u))},this);this._ticket=i,h=c(n,i,_)}else h=c;v.setContent(h,f,t,p,l),v.show(t,p),this._updatePosition(t,l,o,s,v,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var v=o.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),lt(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:v.slice()})),U(a))n=j(a[0],u),i=j(a[1],f);else if(dt(a)){var p=a;p.width=v[0],p.height=v[1];var g=ne(p,{width:u,height:f});n=g.x,i=g.y,c=null,h=null}else if(J(a)&&l){var y=VK(a,d,v,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=BK(n,i,o,u,f,c?null:20,h?null:20);n=y[0],i=y[1]}if(c&&(n-=wC(c)?v[0]/2:c==="right"?v[0]:0),h&&(i-=wC(h)?v[1]/2:h==="bottom"?v[1]:0),QR(t)){var y=zK(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},v=f.dataByAxis||[];o=o&&u.length===v.length,o&&A(u,function(c,h){var d=v[h]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&A(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,a){zt.node||!a.getDom()||(gu(this,"_updatePosition"),this._tooltipContent.dispose(),qy("itemTooltip",a))},e.type="tooltip",e}(se);function Al(r,e,t){var a=e.ecModel,n;t?(n=new Bt(t,a,a),n=new Bt(e.option,n,a)):n=e;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof Bt&&(o=o.get("tooltip",!0)),J(o)&&(o={formatter:o}),o&&(n=new Bt(o,n,a)))}return n}function bC(r,e){return r.dispatchAction||Q(e.dispatchAction,e)}function BK(r,e,t,a,n,i,o){var s=t.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(e+u+o>n?e-=u+o:e+=o),[r,e]}function zK(r,e,t,a,n){var i=t.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,e=Math.min(e+s,n)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function VK(r,e,t,a){var n=t[0],i=t[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-n/2,l=e.y+f/2-i/2;break;case"top":s=e.x+u/2-n/2,l=e.y-i-o;break;case"bottom":s=e.x+u/2-n/2,l=e.y+f+o;break;case"left":s=e.x-n-o,l=e.y+f/2-i/2;break;case"right":s=e.x+u+o,l=e.y+f/2-i/2}return[s,l]}function wC(r){return r==="center"||r==="middle"}function GK(r,e,t){var a=Rm(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=Vs(e,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=yt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}const FK=NK;function HK(r){Ct(qu),r.registerComponentModel(xK),r.registerComponentView(FK),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},pe),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},pe)}var WK=["rect","polygon","keep","clear"];function $K(r,e){var t=Zt(r?r.brush:[]);if(t.length){var a=[];A(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(a=a.concat(u))});var n=r&&r.toolbox;U(n)&&(n=n[0]),n||(n={feature:{}},r.toolbox=[n]);var i=n.feature||(n.feature={}),o=i.brush||(i.brush={}),s=o.type||(o.type=[]);s.push.apply(s,a),UK(s),e&&!s.length&&s.push.apply(s,WK)}}function UK(r){var e={};A(r,function(t){e[t]=1}),r.length=0,A(e,function(t,a){r.push(a)})}var TC=A;function CC(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function nm(r,e,t){var a={};return TC(e,function(i){var o=a[i]=n();TC(r[i],function(s,l){if(Ye.isValidType(l)){var u={type:l,visual:s};t&&t(u,i),o[l]=new Ye(u),l==="opacity"&&(u=ut(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ye(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function ak(r,e,t){var a;A(t,function(n){e.hasOwnProperty(n)&&CC(e[n])&&(a=!0)}),a&&A(t,function(n){e.hasOwnProperty(n)&&CC(e[n])?r[n]=ut(e[n]):delete r[n]})}function YK(r,e,t,a,n,i){var o={};A(r,function(v){var c=Ye.prepareVisualTypes(e[v]);o[v]=c});var s;function l(v){return g0(t,s,v)}function u(v,c){KL(t,s,v,c)}i==null?t.each(f):t.each([i],f);function f(v,c){s=i==null?v:c;var h=t.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var d=a.call(n,v),p=e[d],g=o[d],y=0,m=g.length;y<m;y++){var _=g[y];p[_]&&p[_].applyVisual(v,l,u)}}}function ZK(r,e,t,a){var n={};return A(r,function(i){var o=Ye.prepareVisualTypes(e[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return g0(s,v,b)}function f(b,x){KL(s,v,b,x)}for(var v,c=s.getStore();(v=o.next())!=null;){var h=s.getRawDataItem(v);if(!(h&&h.visualMap===!1))for(var d=a!=null?c.get(l,v):v,p=t(d),g=e[p],y=n[p],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(d,u,f)}}}}}function XK(r){var e=r.brushType,t={point:function(a){return AC[e].point(a,t,r)},rect:function(a){return AC[e].rect(a,t,r)}};return t}var AC={lineX:MC(0),lineY:MC(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&Gi(t.range,r[0],r[1])},rect:function(r,e,t){var a=t.range;if(!r||a.length<=1)return!1;var n=r.x,i=r.y,o=r.width,s=r.height,l=a[0];if(Gi(a,n,i)||Gi(a,n+o,i)||Gi(a,n,i+s)||Gi(a,n+o,i+s)||gt.create(r).contain(l[0],l[1])||Ol(n,i,n+o,i,a)||Ol(n,i,n,i+s,a)||Ol(n+o,i,n+o,i+s,a)||Ol(n,i+s,n+o,i+s,a))return!0}}};function MC(r){var e=["x","y"],t=["width","height"];return{point:function(a,n,i){if(a){var o=i.range,s=a[r];return Ml(s,o)}},rect:function(a,n,i){if(a){var o=i.range,s=[a[e[r]],a[e[r]]+a[t[r]]];return s[1]<s[0]&&s.reverse(),Ml(s[0],o)||Ml(s[1],o)||Ml(o[0],s)||Ml(o[1],s)}}}}function Ml(r,e){return e[0]<=r&&r<=e[1]}var DC=["inBrush","outOfBrush"],Up="__ecBrushSelect",im="__ecInBrushSelectEvent";function nk(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new P_(e.option,r);t.setInputRanges(e.areas,r)})}function qK(r,e,t){var a=[],n,i;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),nk(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ut(o.areas),selected:[]};a.push(l);var u=o.option,f=u.brushLink,v=[],c=[],h=[],d=!1;s||(n=u.throttleType,i=u.throttleDelay);var p=Z(o.areas,function(b){var x=QK[b.brushType],w=ht({boundingRect:x?x(b):void 0},b);return w.selectors=XK(w),w}),g=nm(o.option,DC,function(b){b.mappingMethod="fixed"});U(f)&&A(f,function(b){v[b]=1});function y(b){return f==="all"||!!v[b]}function m(b){return!!b.length}r.eachSeries(function(b,x){var w=h[x]=[];b.subType==="parallel"?_(b,x):S(b,x,w)});function _(b,x){var w=b.coordinateSystem;d=d||w.hasAxisBrushed(),y(x)&&w.eachActiveState(b.getData(),function(T,C){T==="active"&&(c[C]=1)})}function S(b,x,w){if(!(!b.brushSelector||JK(o,x))&&(A(p,function(C){o.brushTargetManager.controlSeries(C,b,r)&&w.push(C),d=d||m(w)}),y(x)&&m(w))){var T=b.getData();T.each(function(C){LC(b,w,T,C)&&(c[C]=1)})}}r.eachSeries(function(b,x){var w={seriesId:b.id,seriesIndex:x,seriesName:b.name,dataIndex:[]};l.selected.push(w);var T=h[x],C=b.getData(),M=y(x)?function(D){return c[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return LC(b,T,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(y(x)?d:m(T))&&YK(DC,g,C,M)})}),KK(e,n,i,a,t)}function KK(r,e,t,a,n){if(n){var i=r.getZr();if(!i[im]){i[Up]||(i[Up]=jK);var o=Zs(i,Up,t,e);o(r,a)}}}function jK(r,e){if(!r.isDisposed()){var t=r.getZr();t[im]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[im]=!1}}function LC(r,e,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(r.brushSelector(a,t,o.selectors,o))return!0}}function JK(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(U(t)?bt(t,e)<0:e!==t)}var QK={rect:function(r){return IC(r.range)},polygon:function(r){for(var e,t=r.range,a=0,n=t.length;a<n;a++){e=e||[[1/0,-1/0],[1/0,-1/0]];var i=t[a];i[0]<e[0][0]&&(e[0][0]=i[0]),i[0]>e[0][1]&&(e[0][1]=i[0]),i[1]<e[1][0]&&(e[1][0]=i[1]),i[1]>e[1][1]&&(e[1][1]=i[1])}return e&&IC(e)}};function IC(r){return new gt(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var tj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.ecModel=t,this.api=a,this.model,(this._brushController=new s_(a.getZr())).on("brush",Q(this._onBrush,this)).mount()},e.prototype.render=function(t,a,n,i){this.model=t,this._updateController(t,a,n,i)},e.prototype.updateTransform=function(t,a,n,i){nk(a),this._updateController(t,a,n,i)},e.prototype.updateVisual=function(t,a,n,i){this.updateTransform(t,a,n,i)},e.prototype.updateView=function(t,a,n,i){this._updateController(t,a,n,i)},e.prototype._updateController=function(t,a,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var a=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:a,areas:ut(n),$from:a}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:a,areas:ut(n),$from:a})},e.type="brush",e}(se);const ej=tj;var rj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&ak(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=Z(t,function(a){return PC(this.option,a)},this))},e.prototype.setBrushOption=function(t){this.brushOption=PC(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:F.color.backgroundTint,borderColor:F.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:F.color.disabled},e}(kt);function PC(r,e){return wt({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Bt(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}const aj=rj;var nj=["rect","polygon","lineX","lineY","keep","clear"],ij=function(r){B(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,a,n){var i,o,s;a.eachComponent({mainType:"brush"},function(l){i=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=i,this._brushMode=o,A(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,a,n){this.render(t,a,n)},e.prototype.getIcons=function(){var t=this.model,a=t.get("icon",!0),n={};return A(t.get("type",!0),function(i){a[i]&&(n[i]=a[i])}),n},e.prototype.onclick=function(t,a,n){var i=this._brushType,o=this._brushMode;n==="clear"?(a.dispatchAction({type:"axisAreaSelect",intervals:[]}),a.dispatchAction({type:"brush",command:"clear",areas:[]})):a.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?i:i===n?!1:n,brushMode:n==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var a={show:!0,type:nj.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 a},e}(zr);const oj=ij;function sj(r){r.registerComponentView(ej),r.registerComponentModel(aj),r.registerPreprocessor($K),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,qK),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(a){a.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},pe),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},pe),ls("brush",oj)}var lj=function(r){B(e,r);function e(){var t=r!==null&&r.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:"center",top:F.size.m,backgroundColor:F.color.transparent,borderColor:F.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:F.color.primary},subtextStyle:{fontSize:12,color:F.color.quaternary}},e}(kt),uj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this.group.removeAll(),!!t.get("show")){var i=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=nt(t.get("textBaseline"),t.get("textVerticalAlign")),f=new Ot({style:jt(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),v=f.getBoundingRect(),c=t.get("subtext"),h=new Ot({style:jt(s,{text:c,fill:s.getTextColor(),y:v.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!d&&!g,h.silent=!p&&!g,d&&f.on("click",function(){jv(d,"_"+t.get("target"))}),p&&h.on("click",function(){jv(p,"_"+t.get("subtarget"))}),yt(f).eventData=yt(h).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(f),c&&i.add(h);var y=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ie(t,n),S=ne(m,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),h.setStyle(b),y=i.getBoundingRect();var x=S.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var T=new Dt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});i.add(T)}},e.type="title",e}(se);function fj(r){r.registerComponentModel(lj),r.registerComponentView(uj)}var vj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var a=this._data.count();this.option.loop?t=(t%a+a)%a:(t>=a&&(t=a-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,a=t.data||[],n=t.axisType,i=this._names=[],o;n==="category"?(o=[],A(a,function(u,f){var v=Ae(zs(u),""),c;dt(u)?(c=ut(u),c.value=f):c=f,o.push(c),i.push(v)})):o=a;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new ir([{name:"value",type:s}],this);l.initData(o,i)},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:F.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:F.color.secondary},data:[]},e}(kt);const RC=vj;var ik=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=si(RC.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:F.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:F.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:F.color.tertiary},itemStyle:{color:F.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:F.color.accent50,borderColor:F.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:F.color.accent50,borderColor:F.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:F.color.accent60},itemStyle:{color:F.color.accent60,borderColor:F.color.accent60},controlStyle:{color:F.color.accent70,borderColor:F.color.accent70}},progress:{lineStyle:{color:F.color.accent30},itemStyle:{color:F.color.accent40}},data:[]}),e}(RC);we(ik,fh.prototype);const cj=ik;var hj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(se);const dj=hj;var pj=function(r){B(e,r);function e(t,a,n,i){var o=r.call(this,t,a,n)||this;return o.type=i||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(fa);const gj=pj;var Yp=Math.PI,kC=Lt(),yj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){this.api=a},e.prototype.render=function(t,a,n){if(this.model=t,this.api=n,this.ecModel=a,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(i,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return xe("nameValue",{noName:!0,value:f})},A(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](i,o,l,t)},this),this._renderAxisLabel(i,s,l,t),this._position(i,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,a){var n=t.get(["label","position"]),i=t.get("orient"),o=_j(t,a),s;n==null||n==="auto"?s=i==="horizontal"?o.y+o.height/2<a.getHeight()/2?"-":"+":o.x+o.width/2<a.getWidth()/2?"+":"-":J(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Yp/2},v=i==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show",!0),d=h?c.get("itemSize"):0,p=h?c.get("itemGap"):0,g=d+p,y=t.get(["label","rotate"])||0;y=y*Yp/180;var m,_,S,b=c.get("position",!0),x=h&&c.get("showPlayBtn",!0),w=h&&c.get("showPrevBtn",!0),T=h&&c.get("showNextBtn",!0),C=0,M=v;b==="left"||b==="bottom"?(x&&(m=[0,0],C+=g),w&&(_=[C,0],C+=g),T&&(S=[M-d,0],M-=g)):(x&&(m=[M-d,0],M-=g),w&&(_=[0,0],C+=g),T&&(S=[M-d,0],M-=g));var D=[C,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:v,orient:i,rotation:f[i],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[i],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:d,controlGap:p}},e.prototype._position=function(t,a){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Ge(),l=o.x,u=o.y+o.height;Na(s,s,[-l,-u]),ni(s,s,-Yp/2),Na(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),v=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=f[0][0];var p=t.labelPosOpt;if(p==null||J(p)){var g=p==="+"?0:1;_(h,v,f,1,g),_(d,c,f,1,1-g)}else{var g=p>=0?0:1;_(h,v,f,1,g),d[1]=h[1]+p}n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,y(n),y(i);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,T){S[w]+=x[w][T]-b[w][T]}},e.prototype._createAxis=function(t,a){var n=a.getData(),i=a.get("axisType"),o=mj(a,i);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new gj("value",o,t.axisExtent,i);return l.model=a,l},e.prototype._createGroup=function(t){var a=this[t]=new ft;return this.group.add(a),a},e.prototype._renderAxisLine=function(t,a,n,i){var o=n.getExtent();if(i.get(["lineStyle","show"])){var s=new Me({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:$({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});a.add(s);var l=this._progressLine=new Me({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:ht({lineCap:"round",lineWidth:s.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});a.add(l)}},e.prototype._renderAxisTick=function(t,a,n,i){var o=this,s=i.getData(),l=n.scale.getTicks();this._tickSymbols=[],A(l,function(u){var f=n.dataToCoord(u.value),v=s.getItemModel(u.value),c=v.getModel("itemStyle"),h=v.getModel(["emphasis","itemStyle"]),d=v.getModel(["progress","itemStyle"]),p={x:f,y:0,onclick:Q(o._changeTimeline,o,u.value)},g=EC(v,c,a,p);g.ensureState("emphasis").style=h.getItemStyle(),g.ensureState("progress").style=d.getItemStyle(),ro(g);var y=yt(g);v.get("tooltip")?(y.dataIndex=u.value,y.dataModel=i):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,a,n,i){var o=this,s=n.getLabelModel();if(s.get("show")){var l=i.getData(),u=n.getViewLabels();this._tickLabels=[],A(u,function(f){var v=f.tickValue,c=l.getItemModel(v),h=c.getModel("label"),d=c.getModel(["emphasis","label"]),p=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new Ot({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:Q(o._changeTimeline,o,v),silent:!1,style:jt(h,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=jt(d),y.ensureState("progress").style=jt(p),a.add(y),ro(y),kC(y).dataIndex=v,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,a,n,i){var o=t.controlSize,s=t.rotation,l=i.getModel("controlStyle").getItemStyle(),u=i.getModel(["emphasis","controlStyle"]).getItemStyle(),f=i.getPlayState(),v=i.get("inverse",!0);c(t.nextBtnPosition,"next",Q(this._changeTimeline,this,v?"-":"+")),c(t.prevBtnPosition,"prev",Q(this._changeTimeline,this,v?"+":"-")),c(t.playPosition,f?"stop":"play",Q(this._handlePlayClick,this,!f),!0);function c(h,d,p,g){if(h){var y=oa(nt(i.get(["controlStyle",d+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=Sj(i,d+"Icon",m,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:p});_.ensureState("emphasis").style=u,a.add(_),ro(_)}}},e.prototype._renderCurrentPointer=function(t,a,n,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(v){v.draggable=!0,v.drift=Q(u._handlePointerDrag,u),v.ondragend=Q(u._handlePointerDragend,u),OC(v,u._progressLine,s,n,i,!0)},onUpdate:function(v){OC(v,u._progressLine,s,n,i)}};this._currentPointer=EC(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,a,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,a){var n=this._toAxisCoord(t)[0],i=this._axis,o=Hr(i.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(a||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 a=t.model;t._changeTimeline(a.getCurrentIndex()+(a.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var a=this._mainGroup.getLocalTransform();return ra(t,a,!0)},e.prototype._findNearestTick=function(t){var a=this.model.getData(),n=1/0,i,o=this._axis;return a.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<n&&(n=f,i=l)}),i},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var a=this.model.getCurrentIndex();t==="+"?t=a+1:t==="-"&&(t=a-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),a=this._tickSymbols,n=this._tickLabels;if(a)for(var i=0;i<a.length;i++)a&&a[i]&&a[i].toggleState("progress",i<t);if(n)for(var i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",kC(n[i]).dataIndex<=t)},e.type="timeline.slider",e}(dj);function mj(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new xu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new G2({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Qn}}function _j(r,e){return ne(r.getBoxLayoutParams(),Ie(r,e).refContainer,r.get("padding"))}function Sj(r,e,t,a){var n=a.style,i=Bu(r.get(["controlStyle",e]),a||{},new gt(t[0],t[1],t[2],t[3]));return n&&i.setStyle(n),i}function EC(r,e,t,a,n,i){var o=e.get("color");if(n)n.setColor(o),t.add(n),i&&i.onUpdate(n);else{var s=r.get("symbol");n=be(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),t.add(n),i&&i.onCreate(n)}var l=e.getItemStyle(["color"]);n.setStyle(l),a=wt({rectHover:!0,z2:100},a,!0);var u=Xs(r.get("symbolSize"));a.scaleX=u[0]/2,a.scaleY=u[1]/2;var f=Co(r.get("symbolOffset"),u);f&&(a.x=(a.x||0)+f[0],a.y=(a.y||0)+f[1]);var v=r.get("symbolRotate");return a.rotation=(v||0)*Math.PI/180||0,n.attr(a),n.updateTransform(),n}function OC(r,e,t,a,n,i){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=a.dataToCoord(n.getData().get("value",t));if(i||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}const xj=yj;function bj(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,a){var n=t.getComponent("timeline");return n&&e.currentIndex!=null&&(n.setCurrentIndex(e.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),a.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),ht({currentIndex:n.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var a=t.getComponent("timeline");a&&e.playState!=null&&a.setPlayState(e.playState)})}function wj(r){var e=r&&r.timeline;U(e)||(e=e?[e]:[]),A(e,function(t){t&&Tj(t)})}function Tj(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),NC(r),Wi(r,"controlPosition")){var a=r.controlStyle||(r.controlStyle={});Wi(a,"position")||(a.position=r.controlPosition),a.position==="none"&&!Wi(a,"show")&&(a.show=!1,delete a.position),delete r.controlPosition}A(r.data||[],function(n){dt(n)&&!U(n)&&(!Wi(n,"value")&&Wi(n,"name")&&(n.value=n.name),NC(n))})}function NC(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),a=r.label||r.label||{},n=a.normal||(a.normal={}),i={normal:1,emphasis:1};A(a,function(o,s){!i[s]&&!Wi(n,s)&&(n[s]=o)}),t.label&&!Wi(a,"emphasis")&&(a.emphasis=t.label,delete t.label)}function Wi(r,e){return r.hasOwnProperty(e)}function Cj(r){r.registerComponentModel(cj),r.registerComponentView(xj),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),bj(r),r.registerPreprocessor(wj)}function E_(r,e){if(!r)return!1;for(var t=U(r)?r:[r],a=0;a<t.length;a++)if(t[a]&&t[a][e])return!0;return!1}function nv(r){lo(r,"label",["show"])}var iv=Lt(),ok=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(zt.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,a){this._mergeOption(t,a,!1,!1)},e.prototype._mergeOption=function(t,a,n,i){var o=this.mainType;n||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=iv(s)[o];if(!l||!l.data){iv(s)[o]=null;return}u?u._mergeOption(l,a,!0):(i&&nv(l),A(l.data,function(f){f instanceof Array?(nv(f[0]),nv(f[1])):nv(f)}),u=this.createMarkerModelFromSeries(l,this,a),$(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),iv(s)[o]=u},this)},e.prototype.formatTooltip=function(t,a,n){var i=this.getData(),o=this.getRawValue(t),s=i.getName(t);return xe("section",{header:this.name,blocks:[xe("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,a){var n=fh.prototype.getDataParams.call(this,t,a),i=this.__hostSeries;return i&&(n.seriesId=i.id,n.seriesName=i.name,n.seriesType=i.subType),n},e.getMarkerModelFromSeries=function(t,a){return iv(t)[a]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(kt);we(ok,fh.prototype);const gn=ok;var Aj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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}(gn);const Mj=Aj;function om(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function Dj(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ov(r,e,t,a,n,i,o){var s=[],l=Jn(e,n),u=l?e.getCalculationInfo("stackResultDimension"):n,f=Pc(e,u,r),v=e.hostModel,c=v.indicesOfNearest(t,u,f)[0];s[i]=e.get(a,c),s[o]=e.get(u,c);var h=e.get(n,c),d=Aa(e.get(n,c));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var sv={min:xt(ov,"min"),max:xt(ov,"max"),average:xt(ov,"average"),median:xt(ov,"median")};function Ru(r,e){if(e){var t=r.getData(),a=r.coordinateSystem,n=a&&a.dimensions;if(!Dj(e)&&!U(e.coord)&&U(n)){var i=sk(e,t,a,r);if(e=ut(e),e.type&&sv[e.type]&&i.baseAxis&&i.valueAxis){var o=bt(n,i.baseAxis.dim),s=bt(n,i.valueAxis.dim),l=sv[e.type](t,i.valueAxis.dim,i.baseDataDim,i.valueDataDim,o,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||!U(n)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&sv[e.type]){var f=a.getOtherAxis(u);f&&(e.value=Pc(t,t.mapDimension(f.dim),e.type))}}else for(var v=e.coord,c=0;c<2;c++)sv[v[c]]&&(v[c]=Pc(t,t.mapDimension(n[c]),v[c]));return e}}function sk(r,e,t,a){var n={};return r.valueIndex!=null||r.valueDim!=null?(n.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,n.valueAxis=t.getAxis(Lj(a,n.valueDataDim)),n.baseAxis=t.getOtherAxis(n.valueAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim)):(n.baseAxis=a.getBaseAxis(),n.valueAxis=t.getOtherAxis(n.baseAxis),n.baseDataDim=e.mapDimension(n.baseAxis.dim),n.valueDataDim=e.mapDimension(n.valueAxis.dim)),n}function Lj(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function ku(r,e){return r&&r.containData&&e.coord&&!om(e)?r.containData(e.coord):!0}function Ij(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!om(e)&&!om(t)?r.containZone(e.coord,t.coord):!0}function lk(r,e){return r?function(t,a,n,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Xn(o,e[i])}:function(t,a,n,i){return Xn(t.value,e[i])}}function Pc(r,e,t){if(t==="average"){var a=0,n=0;return r.each(e,function(i,o){isNaN(i)||(a+=i,n++)}),a/n}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var Zp=Lt(),Pj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=at()},e.prototype.render=function(t,a,n){var i=this,o=this.markerGroupMap;o.each(function(s){Zp(s).keep=!1}),a.eachSeries(function(s){var l=gn.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,a,n)}),o.each(function(s){!Zp(s).keep&&i.group.remove(s.group)}),Rj(a,o,this.type)},e.prototype.markKeep=function(t){Zp(t).keep=!0},e.prototype.toggleBlurSeries=function(t,a){var n=this;A(t,function(i){var o=gn.getMarkerModelFromSeries(i,n.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?nD(l):Gm(l))})}})},e.type="marker",e}(se);function Rj(r,e,t){r.eachSeries(function(a){var n=gn.getMarkerModelFromSeries(a,t),i=e.get(a.id);if(n&&i&&i.group){var o=ho(n),s=o.z,l=o.zlevel;ih(i.group,s,l)}})}const O_=Pj;function BC(r,e,t){var a=e.coordinateSystem,n=t.getWidth(),i=t.getHeight(),o=a&&a.getArea&&a.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:n,v=u?o?o.height:0:i,c=u&&o?o.x:0,h=u&&o?o.y:0,d,p=j(l.get("x"),f)+c,g=j(l.get("y"),v)+h;if(!isNaN(p)&&!isNaN(g))d=[p,g];else if(e.getMarkerPosition)d=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(a){var y=r.get(a.dimensions[0],s),m=r.get(a.dimensions[1],s);d=a.dataToPoint([y,m])}isNaN(p)||(d[0]=p),isNaN(g)||(d[1]=g),r.setItemLayout(s,d)})}var kj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=gn.getMarkerModelFromSeries(i,"markPoint");o&&(BC(o.getData(),i,n),this.markerGroupMap.get(i.id).updateLayout())},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Uu),v=Ej(o,t,a);a.setData(v),BC(a.getData(),t,i),v.each(function(c){var h=v.getItemModel(c),d=h.getShallow("symbol"),p=h.getShallow("symbolSize"),g=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),m=h.getShallow("symbolKeepAspect");if(lt(d)||lt(p)||lt(g)||lt(y)){var _=a.getRawValue(c),S=a.getDataParams(c);lt(d)&&(d=d(_,S)),lt(p)&&(p=p(_,S)),lt(g)&&(g=g(_,S)),lt(y)&&(y=y(_,S))}var b=h.getModel("itemStyle").getItemStyle(),x=h.get("z2"),w=Fu(l,"color");b.fill||(b.fill=w),v.setItemVisual(c,{z2:nt(x,0),symbol:d,symbolSize:p,symbolRotate:g,symbolOffset:y,symbolKeepAspect:m,style:b})}),f.updateData(v),this.group.add(f.group),v.eachItemGraphicEl(function(c){c.traverse(function(h){yt(h).dataModel=a})}),this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markPoint",e}(O_);function Ej(r,e,t){var a;r?a=Z(r&&r.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return $($({},l),{name:s,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ir(a,t),i=Z(t.get("data"),xt(Ru,e));r&&(i=$t(i,xt(ku,r)));var o=lk(!!r,a);return n.initData(i,null,o),n}const Oj=kj;function Nj(r){r.registerComponentModel(Mj),r.registerComponentView(Oj),r.registerPreprocessor(function(e){E_(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var Bj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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}(gn);const zj=Bj;var lv=Lt(),Vj=function(r,e,t,a){var n=r.getData(),i;if(U(a))i=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=e.getAxis(a.yAxis!=null?"y":"x"),l=Ue(a.yAxis,a.xAxis);else{var u=sk(a,n,e,r);s=u.valueAxis;var f=A2(n,u.valueDataDim);l=Pc(n,f,o)}var v=s.dim==="x"?0:1,c=1-v,h=ut(a),d={coord:[]};h.type=null,h.coord=[],h.coord[c]=-1/0,d.coord[c]=1/0;var p=t.get("precision");p>=0&&Rt(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[v]=d.coord[v]=l,i=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else i=[]}var g=[Ru(r,i[0]),Ru(r,i[1]),$({},i[2])];return g[2].type=g[2].type||null,wt(g[2],g[0]),wt(g[2],g[1]),g};function Rc(r){return!isNaN(r)&&!isFinite(r)}function zC(r,e,t,a){var n=1-r,i=a.dimensions[r];return Rc(e[n])&&Rc(t[n])&&e[r]===t[r]&&a.getAxis(i).containData(e[r])}function Gj(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,a=e[1].coord;if(t&&a&&(zC(1,t,a,r)||zC(0,t,a,r)))return!0}return ku(r,e[0])&&ku(r,e[1])}function Xp(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get("x"),n.getWidth()),u=j(o.get("y"),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=i.dimensions,v=r.get(f[0],e),c=r.get(f[1],e);s=i.dataToPoint([v,c])}if(ti(i,"cartesian2d")){var h=i.getAxis("x"),d=i.getAxis("y"),f=i.dimensions;Rc(r.get(f[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[t?0:1]):Rc(r.get(f[1],e))&&(s[1]=d.toGlobalCoord(d.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var Fj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=gn.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=lv(o).from,u=lv(o).to;l.each(function(f){Xp(l,f,!0,i,n),Xp(u,f,!1,i,n)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new t_);this.group.add(f.group);var v=Hj(o,t,a),c=v.from,h=v.to,d=v.line;lv(a).from=c,lv(a).to=h,a.setData(d);var p=a.get("symbol"),g=a.get("symbolSize"),y=a.get("symbolRotate"),m=a.get("symbolOffset");U(p)||(p=[p,p]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(m)||(m=[m,m]),v.from.each(function(S){_(c,S,!0),_(h,S,!1)}),d.each(function(S){var b=d.getItemModel(S),x=b.getModel("lineStyle").getLineStyle();d.setItemLayout(S,[c.getItemLayout(S),h.getItemLayout(S)]);var w=b.get("z2");x.stroke==null&&(x.stroke=c.getItemVisual(S,"style").fill),d.setItemVisual(S,{z2:nt(w,0),fromSymbolKeepAspect:c.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(S,"symbolOffset"),fromSymbolRotate:c.getItemVisual(S,"symbolRotate"),fromSymbolSize:c.getItemVisual(S,"symbolSize"),fromSymbol:c.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),f.updateData(d),v.line.eachItemGraphicEl(function(S){yt(S).dataModel=a,S.traverse(function(b){yt(b).dataModel=a})});function _(S,b,x){var w=S.getItemModel(b);Xp(S,b,x,t,i);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Fu(l,"color")),S.setItemVisual(b,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:nt(w.get("symbolOffset",!0),m[x?0:1]),symbolRotate:nt(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:nt(w.get("symbolSize"),g[x?0:1]),symbol:nt(w.get("symbol",!0),p[x?0:1]),style:T})}this.markKeep(f),f.group.silent=a.get("silent")||t.get("silent")},e.type="markLine",e}(O_);function Hj(r,e,t){var a;r?a=Z(r&&r.dimensions,function(u){var f=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return $($({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var n=new ir(a,t),i=new ir(a,t),o=new ir([],t),s=Z(t.get("data"),xt(Vj,e,r,t));r&&(s=$t(s,xt(Gj,r)));var l=lk(!!r,a);return n.initData(Z(s,function(u){return u[0]}),null,l),i.initData(Z(s,function(u){return u[1]}),null,l),o.initData(Z(s,function(u){return u[2]})),o.hasItemOption=!0,{from:n,to:i,line:o}}const Wj=Fj;function $j(r){r.registerComponentModel(zj),r.registerComponentView(Wj),r.registerPreprocessor(function(e){E_(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var Uj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,a,n){return new e(t,a,n)},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}(gn);const Yj=Uj;var uv=Lt(),Zj=function(r,e,t,a){var n=a[0],i=a[1];if(!(!n||!i)){var o=Ru(r,n),s=Ru(r,i),l=o.coord,u=s.coord;l[0]=Ue(l[0],-1/0),l[1]=Ue(l[1],-1/0),u[0]=Ue(u[0],1/0),u[1]=Ue(u[1],1/0);var f=Sm([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function kc(r){return!isNaN(r)&&!isFinite(r)}function VC(r,e,t,a){var n=1-r;return kc(e[n])&&kc(t[n])}function Xj(r,e){var t=e.coord[0],a=e.coord[1],n={coord:t,x:e.x0,y:e.y0},i={coord:a,x:e.x1,y:e.y1};return ti(r,"cartesian2d")?t&&a&&(VC(1,t,a)||VC(0,t,a))?!0:Ij(r,n,i):ku(r,n)||ku(r,i)}function GC(r,e,t,a,n){var i=a.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get(t[0]),n.getWidth()),u=j(o.get(t[1]),n.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition){var f=r.getValues(["x0","y0"],e),v=r.getValues(["x1","y1"],e),c=i.clampData(f),h=i.clampData(v),d=[];t[0]==="x0"?d[0]=c[0]>h[0]?v[0]:f[0]:d[0]=c[0]>h[0]?f[0]:v[0],t[1]==="y0"?d[1]=c[1]>h[1]?v[1]:f[1]:d[1]=c[1]>h[1]?f[1]:v[1],s=a.getMarkerPosition(d,t,!0)}else{var p=r.get(t[0],e),g=r.get(t[1],e),y=[p,g];i.clampData&&i.clampData(y,y),s=i.dataToPoint(y,!0)}if(ti(i,"cartesian2d")){var m=i.getAxis("x"),_=i.getAxis("y"),p=r.get(t[0],e),g=r.get(t[1],e);kc(p)?s[0]=m.toGlobalCoord(m.getExtent()[t[0]==="x0"?0:1]):kc(g)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var FC=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],qj=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,a,n){a.eachSeries(function(i){var o=gn.getMarkerModelFromSeries(i,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Z(FC,function(v){return GC(s,l,v,i,n)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,a,n,i){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new ft});this.group.add(f.group),this.markKeep(f);var v=Kj(o,t,a);a.setData(v),v.each(function(c){var h=Z(FC,function(M){return GC(v,c,M,t,i)}),d=o.getAxis("x").scale,p=o.getAxis("y").scale,g=d.getExtent(),y=p.getExtent(),m=[d.parse(v.get("x0",c)),d.parse(v.get("x1",c))],_=[p.parse(v.get("y0",c)),p.parse(v.get("y1",c))];Hr(m),Hr(_);var S=!(g[0]>m[1]||g[1]<m[0]||y[0]>_[1]||y[1]<_[0]),b=!S;v.setItemLayout(c,{points:h,allClipped:b});var x=v.getItemModel(c),w=x.getModel("itemStyle").getItemStyle(),T=x.get("z2"),C=Fu(l,"color");w.fill||(w.fill=C,J(w.fill)&&(w.fill=Bv(w.fill,.4))),w.stroke||(w.stroke=C),v.setItemVisual(c,"style",w),v.setItemVisual(c,"z2",nt(T,0))}),v.diff(uv(f).data).add(function(c){var h=v.getItemLayout(c),d=v.getItemVisual(c,"z2");if(!h.allClipped){var p=new lr({z2:nt(d,0),shape:{points:h.points}});v.setItemGraphicEl(c,p),f.group.add(p)}}).update(function(c,h){var d=uv(f).data.getItemGraphicEl(h),p=v.getItemLayout(c),g=v.getItemVisual(c,"z2");p.allClipped?d&&f.group.remove(d):(d?Nt(d,{z2:nt(g,0),shape:{points:p.points}},a,c):d=new lr({shape:{points:p.points}}),v.setItemGraphicEl(c,d),f.group.add(d))}).remove(function(c){var h=uv(f).data.getItemGraphicEl(c);f.group.remove(h)}).execute(),v.eachItemGraphicEl(function(c,h){var d=v.getItemModel(h),p=v.getItemVisual(h,"style");c.useStyle(v.getItemVisual(h,"style")),Ee(c,Le(d),{labelFetcher:a,labelDataIndex:h,defaultText:v.getName(h)||"",inheritColor:J(p.fill)?Bv(p.fill,1):F.color.neutral99}),De(c,d),ae(c,null,null,d.get(["emphasis","disabled"])),yt(c).dataModel=a}),uv(f).data=v,f.group.silent=a.get("silent")||t.get("silent")},e.type="markArea",e}(O_);function Kj(r,e,t){var a,n,i=["x0","y0","x1","y1"];if(r){var o=Z(r&&r.dimensions,function(u){var f=e.getData(),v=f.getDimensionInfo(f.mapDimension(u))||{};return $($({},v),{name:u,ordinalMeta:null})});n=Z(i,function(u,f){return{name:u,type:o[f%2].type}}),a=new ir(n,t)}else n=[{name:"value",type:"float"}],a=new ir(n,t);var s=Z(t.get("data"),xt(Zj,e,r,t));r&&(s=$t(s,xt(Xj,r)));var l=r?function(u,f,v,c){var h=u.coord[Math.floor(c/2)][c%2];return Xn(h,n[c])}:function(u,f,v,c){return Xn(u.value,n[c])};return a.initData(s,null,l),a.hasItemOption=!0,a}const jj=qj;function Jj(r){r.registerComponentModel(Yj),r.registerComponentView(jj),r.registerPreprocessor(function(e){E_(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Qj=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},tJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,a,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),this._updateSelector(t)},e.prototype._updateSelector=function(t){var a=t.selector,n=this.ecModel;a===!0&&(a=t.selector=["all","inverse"]),U(a)&&A(a,function(i,o){J(i)&&(i={type:i}),a[o]=wt(i,Qj(n,i.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var a=[],n=[];t.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var v=l.legendVisualProvider,c=v.getAllNames();t.isSeriesFiltered(l)||(n=n.concat(c)),c.length?a=a.concat(c):f=!0}else f=!0;f&&Pm(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=at(),s=Z(i,function(l){return(J(l)||Rt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Bt(l,this,this.ecModel))},this);this._data=$t(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;A(i,function(o){a[o.get("name")]=!1})}a[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,a=this.option.selected;A(t,function(n){a[n.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,a=this.option.selected;A(t,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},e.prototype.isSelected=function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&bt(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",bottom:F.size.m,align:"auto",backgroundColor:F.color.transparent,borderColor:F.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:F.color.disabled,inactiveBorderColor:F.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:F.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:F.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:F.color.tertiary,borderWidth:1,borderColor:F.color.border},emphasis:{selectorLabel:{show:!0,color:F.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(kt);const sm=tJ;var es=xt,lm=A,fv=ft,eJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new fv),this.group.add(this._selectorGroup=new fv),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=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(o,t,a,n,l,s,u);var f=Ie(t,n).refContainer,v=t.getBoxLayoutParams(),c=t.get("padding"),h=ne(v,f,c),d=this.layoutInner(t,o,h,i,l,u),p=ne(ht({width:d.width,height:d.height},v),f,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=KR(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this.getContentGroup(),f=at(),v=a.get("selectedMode"),c=a.get("triggerEvent"),h=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),lm(a.getData(),function(d,p){var g=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
`)){var m=new fv;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),w=S.getVisual("style"),T=this._createItem(_,y,p,d,a,t,b,w,x,v,i);T.on("click",es(HC,y,null,i,h)).on("mouseover",es(um,_.name,null,i,h)).on("mouseout",es(fm,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var M=yt(C);M.seriesIndex=_.seriesIndex,M.dataIndex=p,M.ssrType="legend"}),c&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var M=this;if(!f.get(y)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(y))return;var I=D.indexOfName(y),L=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),k=dr(L.fill);k&&k[3]===0&&(k[3]=.2,L=$($({},L),{fill:Ra(k,"rgba")}));var R=this._createItem(C,y,p,d,a,t,{},L,P,v,i);R.on("click",es(HC,null,y,i,h)).on("mouseover",es(um,null,y,i,h)).on("mouseout",es(fm,null,y,i,h)),n.ssr&&R.eachChild(function(N){var E=yt(N);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),c&&R.eachChild(function(N){M.packEventData(N,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};yt(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();lm(t,function(u){var f=u.type,v=new Ot({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(v);var c=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Ee(v,{normal:c,emphasis:h},{defaultText:u.title}),ro(v)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,v,c){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=rJ(f,i,l,u,h,g,c),b=new fv,x=i.getModel("textStyle");if(lt(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(aJ({itemWidth:d,itemHeight:p,icon:f,iconRotate:w,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,M=o.get("formatter"),D=a;J(M)&&M?D=M.replace("{name}",a??""):lt(M)&&(D=M(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ot({style:jt(x,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Dt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&mn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(k){k.silent=!0}),L.silent=!v,this.getContentGroup().add(b),ro(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();no(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),v=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){no("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:v[p]+=c[g]+d,h[1-p]+=f[y]/2-c[y]/2,u.x=h[0],u.y=h[1],l.x=v[0],l.y=v[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+h[1-p]),_}else return l.x=v[0],l.y=v[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(se);function rJ(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),lm(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",v=l.getShallow("decal");u.decal=!v||v==="inherit"?a.decal:Ms(v,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var c=e.getModel("lineStyle"),h=c.getLineStyle();if(s(h,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!i){var d=e.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=c.get("inactiveColor"),h.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function aJ(r){var e=r.icon||"roundRect",t=be(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=F.color.neutral00,t.style.lineWidth=2),t}function HC(r,e,t,a){fm(r,e,t,a),t.dispatchAction({type:"legendToggleSelect",name:r??e}),um(r,e,t,a)}function uk(r){for(var e=r.getZr().storage.getDisplayList(),t,a=0,n=e.length;a<n&&!(t=e[a].states.emphasis);)a++;return t&&t.hoverLayer}function um(r,e,t,a){uk(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:a})}function fm(r,e,t,a){uk(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:a})}const fk=eJ;function nJ(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var a=0;a<e.length;a++)if(!e[a].isSelected(t.name))return!1;return!0})}function Dl(r,e,t){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];t.eachComponent({mainType:"legend",query:e},function(s){a?s[r]():s[r](e.name),WC(s,n),i.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),WC(s,o)}),a?{selected:o,legendIndex:i}:{name:e.name,selected:o}}function WC(r,e){var t=e||{};return A(r.getData(),function(a){var n=a.get("name");if(!(n===`
`||n==="")){var i=r.isSelected(n);rt(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function iJ(r){r.registerAction("legendToggleSelect","legendselectchanged",xt(Dl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",xt(Dl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",xt(Dl,"inverseSelect")),r.registerAction("legendSelect","legendselected",xt(Dl,"select")),r.registerAction("legendUnSelect","legendunselected",xt(Dl,"unSelect"))}function vk(r){r.registerComponentModel(sm),r.registerComponentView(fk),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,nJ),r.registerSubTypeDefaulter("legend",function(){return"plain"}),iJ(r)}var oJ=function(r){B(e,r);function e(){var t=r!==null&&r.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,a,n){var i=wo(t);r.prototype.init.call(this,t,a,n),$C(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),$C(this,this.option,t)},e.type="legend.scroll",e.defaultOption=si(sm.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:F.color.accent50,pageIconInactiveColor:F.color.accent10,pageIconSize:15,pageTextStyle:{color:F.color.tertiary},animationDurationUpdate:800}),e}(sm);function $C(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Va(e,t,{type:"box",ignoreSize:!!n})}const sJ=oJ;var UC=ft,qp=["width","height"],Kp=["x","y"],lJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new UC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new UC)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,v=a.get("pageIconSize",!0),c=U(v)?v:[v,v];d("pagePrev",0);var h=a.getModel("pageTextStyle");f.add(new Ot({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Bu(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:Q(u._pageGo,u,y,a,i)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=qp[u],v=Kp[u],c=qp[1-u],h=Kp[1-u];o&&no("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=ut(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,c,h,v);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[v]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[h]=Math.min(m[h],p[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),v=this._containerGroup,c=this._controllerGroup;no(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),no("horizontal",c,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=nt(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),v.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:h[o],b[s]=Math.max(h[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),v.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],v.setClipPath(new Dt({shape:x})),v.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Nt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),b},e.prototype._pageGo=function(t,a,n){var i=this._getPageInfo(a)[t];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},e.prototype._updatePageInfoView=function(t,a){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var v=f+"DataIndex",c=a[v]!=null,h=n.childOfName(f);h&&(h.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),h.cursor=c?"pointer":"default")});var i=n.childOfName("pageText"),o=t.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",J(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var a=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,s=qp[o],l=Kp[o],u=this._findTargetItemIndex(a),f=n.children(),v=f[u],c=f.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return d;var p=S(v);d.contentPosition[o]=-p.s;for(var g=u+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+i||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=u-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+i}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===t&&(a=s)}),a??i},e.type="legend.scroll",e}(fk);const uJ=lJ;function fJ(r){r.registerAction("legendScroll","legendscroll",function(e,t){var a=e.scrollDataIndex;a!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(n){n.setScrollDataIndex(a)})})}function vJ(r){Ct(vk),r.registerComponentModel(sJ),r.registerComponentView(uJ),fJ(r)}function cJ(r){Ct(vk),Ct(vJ)}var hJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=si(Pu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(Pu);const dJ=hJ;var N_=Lt();function pJ(r,e,t){N_(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(e.uid);n&&(n.getRange=t)})}function gJ(r,e){for(var t=N_(r).coordSysRecordMap,a=t.keys(),n=0;n<a.length;n++){var i=a[n],o=t.get(i),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ck(t,o))}}}function ck(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function yJ(r,e){var t={model:e,containsPoint:xt(_J,e),dispatchAction:xt(mJ,r),dataZoomInfoMap:null,controller:null},a=t.controller=new Lo(r.getZr());return A(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];t.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function mJ(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function _J(r,e,t,a){return r.coordinateSystem.containPoint([t,a])}function SJ(r,e,t){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint}}}}function xJ(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var a=N_(t),n=a.coordSysRecordMap||(a.coordSysRecordMap=at());n.each(function(i){i.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=ZR(i);A(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,yJ(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=at());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ck(n,i);return}var f=SJ(l,i,t);o.enable(f.controlType,f.opt),Zs(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var bJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,a,n){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),pJ(n,t,{pan:Q(jp.pan,this),zoom:Q(jp.zoom,this),scrollMove:Q(jp.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gJ(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(D_),jp={zoom:function(r,e,t,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=Jp[e](null,[a.originX,a.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ei(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:YC(function(r,e,t,a,n,i){var o=Jp[a]([i.oldX,i.oldY],[i.newX,i.newY],e,n,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:YC(function(r,e,t,a,n,i){var o=Jp[a]([0,0],[i.scrollDelta,i.scrollDelta],e,n,t);return o.signal*(r[1]-r[0])*i.scrollDelta})};function YC(r){return function(e,t,a,n){var i=this.range,o=i.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,a,n);if(ei(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Jp={grid:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,e,t,a,n){var i=t.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,e,t,a,n){var i=t.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const wJ=bJ;function hk(r){L_(r),r.registerComponentModel(dJ),r.registerComponentView(wJ),xJ(r)}var TJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=si(Pu.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:F.color.accent10,borderRadius:0,backgroundColor:F.color.transparent,dataBackground:{lineStyle:{color:F.color.accent30,width:.5},areaStyle:{color:F.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:F.color.accent40,width:.5},areaStyle:{color:F.color.accent20,opacity:.3}},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:F.color.neutral00,borderColor:F.color.accent20},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:F.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:F.color.tertiary},brushSelect:!0,brushStyle:{color:F.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:F.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(Pu);const CJ=TJ;var Ll=Dt,AJ=1,Qp=30,MJ=7,Il="horizontal",ZC="vertical",DJ=5,LJ=["line","bar","candlestick","scatter"],IJ={easing:"cubicOut",duration:100,delay:0},PJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,a){this.api=a,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},e.prototype.render=function(t,a,n,i){if(r.prototype.render.apply(this,arguments),Zs(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}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){gu(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 a=this._displayables.sliderGroup=new ft;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(a),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,a=this.api,n=t.get("brushSelect"),i=n?MJ:0,o=Ie(t,a).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Il?{right:o.width-s.x-s.width,top:o.height-Qp-l-i,width:s.width,height:Qp}:{right:l,top:s.y,width:Qp,height:s.height},f=wo(t.option);A(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var v=ne(f,o);this._location={x:v.x,y:v.y},this._size=[v.width,v.height],this._orient===ZC&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Il&&!o?{scaleY:l?1:-1,scaleX:1}:n===Il&&o?{scaleY:l?1:-1,scaleX:-1}:n===ZC&&!o?{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=a.x-u.x,t.y=a.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Ll({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ll({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var a=this._size,n=this._shadowSize||[],i=t.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var v=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),h=(c[1]-c[0])*.3;c=[c[0]-h,c[1]+h];var d=[0,a[1]],p=[0,a[0]],g=[[a[0],0],[0,0]],y=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(v[1]-v[0]),S=t.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),w;o.each([t.thisDim,l],function(I,L,P){if(x>0&&P%x){S||(b+=m);return}b=S?(+I-v[0])*_:b+m;var k=L==null||isNaN(L)||L==="",R=k?0:Wt(L,c,d,!0);k&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!k&&w&&(g.push([b,0]),y.push([b,0])),k||(g.push([b,R]),y.push([b,R])),w=k}),u=this._shadowPolygonPts=g,f=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function C(I){var L=T.getModel(I?"selectedDataBackground":"dataBackground"),P=new ft,k=new lr({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new tr({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(k),P.add(R),P}for(var M=0;M<3;M++){var D=C(M===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,a=t.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();A(l,function(u){if(!n&&!(a!==!0&&bt(LJ,u.get("type"))<0)){var f=i.getComponent(Hn(o),s).axis,v=RJ(o),c,h=u.coordinateSystem;v!=null&&h.getOtherAxis&&(c=h.getOtherAxis(f).inverse),v=u.getData().mapDimension(v);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:v,otherAxisInverse:c}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,v=l.get("brushSelect"),c=a.filler=new Ll({silent:v,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Ll({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:AJ,fill:F.color.transparent}})),A([0,1],function(_){var S=l.get("handleIcon");!tc[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=be(S,-1,0,2,2,null,!0);b.attr({cursor:kJ(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=j(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ro(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var C=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;t.add(i[_]=new Ot({silent:!0,invisible:!D,style:jt(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var h=c;if(v){var d=j(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new Dt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),g=d*.8,y=a.moveHandleIcon=be(l.get("moveHandleIcon"),-g/2,-g/2,g,g,F.color.neutral00,!0);y.silent=!0,y.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));h=a.moveZone=new Dt({invisible:!0,shape:{y:s[1]-m,height:d+m}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:"default",drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[Wt(t[0],[0,100],a,!0),Wt(t[1],[0,100],a,!0)]},e.prototype._updateInterval=function(t,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ei(a,i,o,n.get("zoomLock")?"all":t,s.minSpan!=null?Wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Wt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Hr([Wt(i[0],o,l,!0),Wt(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var a=this._displayables,n=this._handleEnds,i=Hr(n.slice()),o=this._size;A([0,1],function(h){var d=a.handles[h],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[h]+(h?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var v=l[f],c=v.getClipPath();c||(c=new Dt,v.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,v=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(v[0],u),this._formatLabel(v[1],u)]}}var c=Hr(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(d){var p=ao(n.handles[d].parent,this.group),g=nh(d===0?"right":"left",p),y=this._handleWidth/2+DJ,m=ra([c[d]+(d===0?-y:y),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Il?"middle":g,align:o===Il?g:"center",text:s[d]})}},e.prototype._formatLabel=function(t,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=t==null||isNaN(t)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return lt(i)?i(t,s):J(i)?i.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=t||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onDragMove=function(t,a,n,i){this._dragging=!0,un(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ra([a,n],o,!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 a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var a=t.offsetX,n=t.offsetY;this._brushStart=new ct(a,n),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ei(0,l,o,0,u.minSpan!=null?Wt(u.minSpan,s,o,!0):null,u.maxSpan!=null?Wt(u.maxSpan,s,o,!0):null),this._range=Hr([Wt(l[0],o,s,!0),Wt(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(un(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Ll({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,a),f=l.transformCoordToLocal(s.x,s.y),v=this._size;u[0]=Math.max(Math.min(v[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:v[1]})},e.prototype._dispatchZoomAction=function(t){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?IJ:null,start:a[0],end:a[1]})},e.prototype._findCoordRect=function(){var t,a=ZR(this.dataZoomModel).infoList;if(!t&&a.length){var n=a[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),o=this.api.getHeight();t={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(D_);function RJ(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function kJ(r){return r==="vertical"?"ns-resize":"ew-resize"}const EJ=PJ;function dk(r){r.registerComponentModel(CJ),r.registerComponentView(EJ),L_(r)}function OJ(r){Ct(hk),Ct(dk)}var NJ={get:function(r,e,t){var a=ut((BJ[r]||{})[e]);return t&&U(a)?a[a.length-1]:a}},BJ={color:{active:["#006edd","#e0ffff"],inactive:[F.color.transparent]},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 pk=NJ;var XC=Ye.mapVisual,zJ=Ye.eachVisual,VJ=U,qC=A,GJ=Hr,FJ=Wt,HJ=function(r){B(e,r);function e(){var t=r!==null&&r.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,a,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,a){var n=this.option;!a&&ak(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var a=this.stateList;t=Q(t,this),this.controllerVisuals=nm(this.option.controller,a,t),this.targetVisuals=nm(this.option.target,a,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,a=this.option.seriesIndex;a==null&&t==null&&(a="all");var n=Vs(this.ecModel,"series",{index:a,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return Z(n,function(i){return i.componentIndex})},e.prototype.eachTargetSeries=function(t,a){A(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(a,i)},this)},e.prototype.isTargetSeries=function(t){var a=!1;return this.eachTargetSeries(function(n){n===t&&(a=!0)}),a},e.prototype.formatValueText=function(t,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],U(t)&&(t=t.slice(),u=!0);var f=a?t:u?[v(t[0]),v(t[1])]:v(t);if(J(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(lt(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?n[0]+" "+f[1]:t[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function v(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,a=GJ([t.min,t.max]);this._dataExtent=a},e.prototype.getDataDimensionIndex=function(t){var a=this.option.dimension;if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});wt(i,n),wt(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(v){VJ(a.color)&&!v.inRange&&(v.inRange={color:a.color.slice().reverse()}),v.inRange=v.inRange||{color:t.get("gradientColor")}}function u(v,c,h){var d=v[c],p=v[h];d&&!p&&(p=v[h]={},qC(d,function(g,y){if(Ye.isValidType(y)){var m=pk.get(y,"inactive",s);m!=null&&(p[y]=m,y==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(v){var c=(v.inRange||{}).symbol||(v.outOfRange||{}).symbol,h=(v.inRange||{}).symbolSize||(v.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),g=p||"roundRect";qC(this.stateList,function(y){var m=this.itemSize,_=v[y];_||(_=v[y]={color:s?d:[d]}),_.symbol==null&&(_.symbol=c&&ut(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=h&&ut(h)||(s?m[0]:[m[0],m[0]])),_.symbol=XC(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;zJ(S,function(x){x>b&&(b=x)}),_.symbolSize=XC(S,function(x){return FJ(x,[0,b],[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,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:F.color.transparent,borderColor:F.color.borderTint,contentColor:F.color.theme[0],inactiveColor:F.color.disabled,borderWidth:0,padding:F.size.m,textGap:10,precision:0,textStyle:{color:F.color.secondary}},e}(kt);const Ec=HJ;var KC=[20,140],WJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=KC[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=KC[1])},e.prototype._resetRange=function(){var t=this.getExtent(),a=this.option.range;!a||a.auto?(t.auto=1,this.option.range=t):U(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],t[0]),a[1]=Math.min(a[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),A(this.stateList,function(t){var a=this.option.controller[t].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),a=Hr((this.get("range")||[]).slice());return a[0]>t[1]&&(a[0]=t[1]),a[1]>t[1]&&(a[1]=t[1]),a[0]<t[0]&&(a[0]=t[0]),a[1]<t[0]&&(a[1]=t[0]),a},e.prototype.getValueState=function(t){var a=this.option.range,n=this.getExtent(),i=nt(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=t)&&(i&&a[1]>=n[1]||t<=a[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},e.prototype.getVisualMeta=function(t){var a=jC(this,"outOfRange",this.getExtent()),n=jC(this,"inRange",this.option.range.slice()),i=[];function o(h,d){i.push({value:h,color:t(h,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var v=1;s<u;s++,v=0)v&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var v=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(v&&(i.length&&o(i[i.length-1].value,"outOfRange"),v=0),o(a[l],"outOfRange"));var c=i.length;return{stops:i,outerColors:[c?i[0].color:"transparent",c?i[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=si(Ec.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:F.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:F.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:F.color.shadow}}),e}(Ec);function jC(r,e,t){if(t[0]===t[1])return t.slice();for(var a=200,n=(t[1]-t[0])/a,i=t[0],o=[],s=0;s<=a&&i<t[1];s++)o.push(i),i+=n;return o.push(t[1]),o}const $J=WJ;var UJ=function(r){B(e,r);function e(){var t=r!==null&&r.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,a){this.ecModel=t,this.api=a},e.prototype.render=function(t,a,n,i){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,a,n,i)},e.prototype.renderBackground=function(t){var a=this.visualMapModel,n=zu(a.get("padding")||0),i=t.getBoundingRect();t.add(new Dt({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function f(h,d){s[h]=d}var v=o.controllerVisuals[i||o.getValueState(t)],c=Ye.prepareVisualTypes(v);return A(c,function(h){var d=v[h];n.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=v.__alphaForOpacity),Ye.dependsOn(h,a)&&d&&d.applyVisual(t,u,f)}),s[a]},e.prototype.positionGroup=function(t){var a=this.visualMapModel,n=this.api,i=Ie(a,n).refContainer;lh(t,a.getBoxLayoutParams(),i)},e.prototype.doRender=function(t,a,n,i){},e.type="visualMap",e}(se);const gk=UJ;var JC=[["left","right","width"],["top","bottom","height"]];function yk(r,e,t){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:e.getWidth(),height:e.getHeight()},o=a.orient==="horizontal"?1:0,s=JC[o],l=[0,null,10],u={},f=0;f<3;f++)u[JC[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:a[s[f]];var v=[["x","width",3],["y","height",0]][o],c=ne(u,i,a.padding);return s[(c.margin[v[2]]||0)+c[v[0]]+c[v[1]]*.5<i[v[1]]*.5?0:1]}function Rv(r,e){return A(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var Sa=Wt,YJ=A,QC=Math.min,tg=Math.max,ZJ=12,XJ=6,qJ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,a){r.prototype.init.call(this,t,a),this._hoverLinkFromSeriesMouseOver=Q(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Q(this._hideIndicator,this)},e.prototype.doRender=function(t,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,a=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(a);var n=t.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},e.prototype._renderEndsText=function(t,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),v=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Ot({style:jt(h,{x:f[0],y:f[1],verticalAlign:h.get("verticalAlign")||(c==="horizontal"?"middle":v),align:h.get("align")||(c==="horizontal"?v:"center"),text:i})}))}},e.prototype._renderBar=function(t){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=yk(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new ft;u.add(f),f.add(n.outOfRange=tA()),f.add(n.inRange=tA(null,s?rA(this._orient):null,Q(this._dragHandle,this,"all",!1),Q(this._dragHandle,this,"all",!0))),f.setClipPath(new Dt({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var v=a.textStyleModel.getTextRect("国"),c=tg(v.width,v.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,c,o),this._createHandle(a,u,1,i,c,o)),this._createIndicator(a,u,i,c,o),t.add(u)},e.prototype._createHandle=function(t,a,n,i,o,s){var l=Q(this._dragHandle,this,n,!1),u=Q(this._dragHandle,this,n,!0),f=oa(t.get("handleSize"),i[0]),v=be(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=rA(this._orient);v.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){un(y.event)}}),v.x=i[0]/2,v.useStyle(t.getModel("handleStyle").getItemStyle()),v.setStyle({strokeNoScale:!0,strokeFirst:!0}),v.style.lineWidth*=2,v.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Yi(v,!0),a.add(v);var h=this.visualMapModel.textStyleModel,d=new Ot({cursor:c,draggable:!0,drift:l,onmousemove:function(y){un(y.event)},ondragend:u,style:jt(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],g=this._shapes;g.handleThumbs[n]=v,g.handleLabelPoints[n]=p,g.handleLabels[n]=d},e.prototype._createIndicator=function(t,a,n,i,o){var s=oa(t.get("indicatorSize"),n[0]),l=be(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof Ze){var f=l.style;l.useStyle($({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var v=this.visualMapModel.textStyleModel,c=new Ot({silent:!0,invisible:!0,style:jt(v,{x:0,y:0,text:""})});this.group.add(c);var h=[(o==="horizontal"?i/2:XJ)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():eA(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,a=this._dataInterval=t.getSelected(),n=t.getExtent(),i=[0,t.itemSize[1]];this._handleEnds=[Sa(a[0],n,i,!0),Sa(a[1],n,i,!0)]},e.prototype._updateInterval=function(t,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ei(a,i,o,t,0);var s=n.getExtent();this._dataInterval=[Sa(i[0],o,s,!0),Sa(i[1],o,s,!0)]},e.prototype._updateView=function(t){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Fs(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,a){var n=100,i=[],o=(t[1]-t[0])/n;i.push({color:this.getControllerVisual(t[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=t[0]+o*s;if(l>t[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(t[1],"color",a),offset:1}),i},e.prototype._createBarPoints=function(t,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-a[1],t[1]]]},e.prototype._createBarGroup=function(t){var a=this._orient,n=this.visualMapModel.get("inverse");return new ft(a==="horizontal"&&!n?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);YJ([0,1],function(v){var c=o[v];c.setStyle("fill",a.handlesColor[v]),c.y=t[v];var h=Sa(t[v],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var p=ra(n.handleLabelPoints[v],ao(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=g}s[v].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[v]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,v=f.indicator;if(v){v.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=Sa(t,s,u,!0),g=l[0]-d/2,y={x:v.x,y:v.y};v.y=p,v.x=g;var m=ra(f.indicatorLabelPoint,ao(v,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:p,style:{fill:h}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};v.x=y.x,v.y=y.y,v.animateTo(w,C),_.animateTo(T,C)}else v.attr(w),_.attr(T);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(a){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([a.offsetX,a.offsetY],t._shapes.mainGroup,!0,!0);i[1]=QC(tg(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[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,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();t=QC(tg(o[0],t),o[1]);var l=KJ(n,s,o),u=[t-l,t+l],f=Sa(t,o,s,!0),v=[Sa(u[0],o,s,!0),Sa(u[1],o,s,!0)];u[0]<o[0]&&(v[0]=-1/0),u[1]>o[1]&&(v[1]=1/0),a&&(v[0]===-1/0?this._showIndicator(f,v[1],"< ",l):v[1]===1/0?this._showIndicator(f,v[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,h=[];(a||eA(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(v));var d=yN(c,h);this._dispatchHighDown("downplay",Rv(d[0],n)),this._dispatchHighDown("highlight",Rv(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var a;if(qi(t.target,function(l){var u=yt(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Rv(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,a,n,i){var o=ao(a,i?null:this.group);return U(t)?ra(t,o,n):nh(t,o,n)},e.prototype._dispatchHighDown=function(t,a){a&&a.length&&this.api.dispatchAction({type:t,batch:a})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(gk);function tA(r,e,t,a){return new lr({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(n){un(n.event)},ondragend:a})}function KJ(r,e,t){var a=ZJ/2,n=r.get("hoverLinkDataSize");return n&&(a=Sa(n,e,t,!0)/2),a}function eA(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function rA(r){return r==="vertical"?"ns-resize":"ew-resize"}const jJ=qJ;var JJ={type:"selectDataRange",event:"dataRangeSelected",update:"update"},QJ=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},tQ=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||t.push(ZK(a.stateList,a.targetVisuals,Q(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),a=[];e.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Q(eQ,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(t);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function eQ(r,e,t,a){for(var n=e.targetVisuals[a],i=Ye.prepareVisualTypes(n),o={color:Fu(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,v,c)}return o.color;function v(h){return o[h]}function c(h,d){o[h]=d}}var aA=A;function rQ(r){var e=r&&r.visualMap;U(e)||(e=e?[e]:[]),aA(e,function(t){if(t){rs(t,"splitList")&&!rs(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var a=t.pieces;a&&U(a)&&aA(a,function(n){dt(n)&&(rs(n,"start")&&!rs(n,"min")&&(n.min=n.start),rs(n,"end")&&!rs(n,"max")&&(n.max=n.end))})}})}function rs(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var nA=!1;function mk(r){nA||(nA=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(JJ,QJ),A(tQ,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(rQ))}function _k(r){r.registerComponentModel($J),r.registerComponentView(jJ),mk(r)}var aQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],nQ[this._mode].call(this,this._pieceList),this._resetSelected(t,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ut(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Z(this._pieceList,function(l){return l=ut(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,a={},n=Ye.listVisualTypes(),i=this.isCategory();A(t.pieces,function(s){A(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),A(a,function(s,l){var u=!1;A(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&A(this.stateList,function(f){(t[f]||(t[f]={}))[l]=pk.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,a){var n=this.option,i=this._pieceList,o=(a?n:t).selected||{};if(n.selected=o,A(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;A(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!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=ut(t)},e.prototype.getValueState=function(t){var a=Ye.findPieceIndex(t,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ye.findPieceIndex(l,n);f===t&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},e.prototype.getRepresentValue=function(t){var a;if(this.isCategory())a=t.value;else if(t.value!=null)a=t.value;else{var n=t.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,v){var c=i.getRepresentValue({interval:f});v||(v=i.getValueState(c));var h=t(c,v);f[0]===-1/0?n[0]=h:f[1]===1/0?n[1]=h:a.push({value:f[0],color:h},{value:f[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return A(s,function(f){var v=f.interval;v&&(v[0]>u&&o([u,v[0]],"outOfRange"),o(v.slice()),u=v[1])},this),{stops:a,outerColors:n}},e.type="visualMap.piecewise",e.defaultOption=si(Ec.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}(Ec),nQ={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),a=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(t)!==i&&t<5;)t++;e.precision=t,i=+i.toFixed(t),e.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),b1(r),A(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;A(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),iA(e,r)},pieces:function(r){var e=this.option;A(e.pieces,function(t,a){dt(t)||(t={value:t});var n={text:"",index:a};if(t.label!=null&&(n.text=t.label),t.hasOwnProperty("value")){var i=n.value=t.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],v=0;v<2;v++){for(var c=[["gte","gt","min"],["lte","lt","max"]][v],h=0;h<3&&o[v]==null;h++)o[v]=t[c[h]],s[v]=l[h],f[v]=h===2;o[v]==null&&(o[v]=u[v])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Ye.retrieveVisuals(t),r.push(n)},this),iA(e,r),b1(r),A(r,function(t){var a=t.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,n)},this)}};function iA(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const iQ=aQ;var oQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=Ue(a.get("showLabel",!0),!u),v=!a.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),A(l.viewPieceList,function(c){var h=c.piece,d=new ft;d.onclick=Q(this._onItemClick,this,h),this._enableHoverLink(d,c.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],v),f){var g=this.visualMapModel.getValueState(p),y=i.get("align")||o;d.add(new Ot({style:jt(i,{x:y==="right"?-n:s[0]+n,y:s[1]/2,text:h.text,verticalAlign:i.get("verticalAlign")||"middle",align:y,opacity:nt(i.get("opacity"),g==="outOfRange"?.5:1)}),silent:v}))}t.add(d)},this),u&&this._renderEndsText(t,u[1],s,f,o),no(a.get("orient"),t,a.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,a){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:Rv(s.findTargetDataIndices(a),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,a=t.option;if(a.orient==="vertical")return yk(t,this.api,t.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},e.prototype._renderEndsText=function(t,a,n,i,o){if(a){var s=new ft,l=this.visualMapModel.textStyleModel;s.add(new Ot({style:jt(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,a=Z(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},e.prototype._createItemSymbol=function(t,a,n,i){var o=be(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,t.add(o)},e.prototype._onItemClick=function(t){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ut(n.selected),s=a.getSelectedMapKey(t);i==="single"||i===!0?(o[s]=!0,A(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(gk);const sQ=oQ;function Sk(r){r.registerComponentModel(iQ),r.registerComponentView(sQ),mk(r)}function lQ(r){Ct(_k),Ct(Sk)}var uQ=function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getMainProcessVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:ED(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var a=t.getViewOfComponentModel(this._thumbnailModel);a&&a.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r}(),fQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,a){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new uQ(this);if(this._target=null,this.ecModel.eachSeries(function(n){Lw(n,null)}),this.shouldShow()){var a=this.getTarget();Lw(a.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:F.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:F.color.neutral30,borderColor:F.color.neutral40,opacity:.3},z:10},e}(kt),vQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new Io),!this._isEnabled()){this._clear();return}this._renderVersion=n.getMainProcessVersion();var i=this.group;i.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=a.get("backgroundColor")||F.color.neutral00);var l=Ie(t,n).refContainer,u=ne(aL(t,!0),l),f=s.lineWidth||0,v=this._contentRect=co(u.clone(),f/2,!0,!0),c=new ft;i.add(c),c.setClipPath(new Dt({shape:v.plain()}));var h=this._targetGroup=new ft;c.add(h);var d=u.plain();d.r=o.getShallow("borderRadius",!0),i.add(this._bgRect=new Dt({style:s,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),g=p.getShallow("borderRadius",!0);c.add(this._windowRect=new Dt({shape:{x:0,y:0,width:0,height:0,r:g},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),sA(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),sA(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=this._targetGroup,n=this._coordSys,i=this._contentRect;if(a.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();a.add(o),this._bgRect.z2=t.z2Range.min-10,n.setBoundingRect(s.x,s.y,s.width,s.height);var l=ne({left:"center",top:"center",aspect:s.width/s.height},i);n.setViewRect(l.x,l.y,l.width,l.height),o.attr(n.getTransformInfo().raw),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var a=this._bridgeRendered;a&&a.renderVersion===t.renderVersion&&(a.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var a=ia([],t.targetTrans),n=Pa([],this._coordSys.transform,a);this._transThisToTarget=ia([],n);var i=t.viewportRect;i?i=i.clone():i=new gt(0,0,this._api.getWidth(),this._api.getHeight()),i.applyTransform(n);var o=this._windowRect,s=o.shape.r;o.setShape(ht({r:s},i))}},e.prototype._resetRoamController=function(t){var a=this,n=this._api,i=this._roamController;if(i||(i=this._roamController=new Lo(n.getZr())),!t||!this._isEnabled()){i.disable();return}i.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return a._contentRect.contain(s,l)}}}),i.off("pan").off("zoom").on("pan",Q(this._onPan,this)).on("zoom",Q(this._onZoom,this))},e.prototype._onPan=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ge([],[t.oldX,t.oldY],a),i=ge([],[t.oldX-t.dx,t.oldY-t.dy],a);this._api.dispatchAction(oA(this._model.getTarget().baseMapProvider,{dx:i[0]-n[0],dy:i[1]-n[1]}))}},e.prototype._onZoom=function(t){var a=this._transThisToTarget;if(!(!this._isEnabled()||!a)){var n=ge([],[t.originX,t.originY],a);this._api.dispatchAction(oA(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var a=t.getTarget().baseMapProvider;return!!a},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(se);function oA(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",a={type:t};return a[r.mainType+"Id"]=r.id,$(a,e),a}function sA(r,e){var t=ho(r);ih(e.group,t.z,t.zlevel)}function cQ(r){r.registerComponentModel(fQ),r.registerComponentView(vQ)}var hQ={label:{enabled:!0},decal:{show:!1}},lA=Lt(),dQ={};function pQ(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var a=ut(hQ);wt(a.label,r.getLocaleModel().get("aria"),!1),wt(t.option,a,!1),n(),i();function n(){var u=t.getModel("decal"),f=u.get("show");if(f){var v=at();r.eachSeries(function(c){if(!c.isColorBySeries()){var h=v.get(c.type);h||(h={},v.set(c.type,h)),lA(c).scope=h}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(lt(c.enableAriaDecal)){c.enableAriaDecal();return}var h=c.getData();if(c.isColorBySeries()){var m=Qg(c.ecModel,c.name,dQ,r.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",S(_,m))}else{var d=c.getRawData(),p={},g=lA(c).scope;h.each(function(b){var x=h.getRawIndex(b);p[x]=b});var y=d.count();d.each(function(b){var x=p[b],w=d.getName(b)||b+"",T=Qg(c.ecModel,w,g,y),C=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",S(C,T))})}function S(b,x){var w=b?$($({},x),b):x;return w.dirty=!0,w}})}}function i(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),v=t.getModel("label");if(v.option=ht(v.option,f),!!v.get("enabled")){if(u.setAttribute("role","img"),v.get("description")){u.setAttribute("aria-label",v.get("description"));return}var c=r.getSeriesCount(),h=v.get(["data","maxCount"])||10,d=v.get(["series","maxCount"])||10,p=Math.min(c,d),g;if(!(c<1)){var y=s();if(y){var m=v.get(["general","withTitle"]);g=o(m,{title:y})}else g=v.get(["general","withoutTitle"]);var _=[],S=c>1?v.get(["series","multiple","prefix"]):v.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(T,C){if(C<p){var M=void 0,D=T.get("name"),I=D?"withName":"withoutName";M=c>1?v.get(["series","multiple",I]):v.get(["series","single",I]),M=o(M,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var L=T.getData();if(L.count()>h){var P=v.get(["data","partialData"]);M+=o(P,{displayCnt:h})}else M+=v.get(["data","allData"]);for(var k=v.get(["data","separator","middle"]),R=v.get(["data","separator","end"]),N=v.get(["data","excludeDimensionId"]),E=[],z=0;z<L.count();z++)if(z<h){var V=L.getName(z),H=N?$t(L.getValues(z),function(Y,X){return bt(N,X)===-1}):L.getValues(z),G=v.get(["data",V?"withName":"withoutName"]);E.push(o(G,{name:V,value:H.join(k)}))}M+=E.join(k)+R,_.push(M)}});var b=v.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!J(u))return u;var v=u;return A(f,function(c,h){v=v.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),c)}),v}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function gQ(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},A(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function yQ(r){r.registerPreprocessor(gQ),r.registerVisual(r.PRIORITY.VISUAL.ARIA,pQ)}var uA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},mQ=function(){function r(e){var t=this._condVal=J(e)?new RegExp(e):_E(e)?e:null;if(t==null){var a="";Gt(a)}}return r.prototype.evaluate=function(e){var t=typeof e;return J(t)?this._condVal.test(e):Rt(t)?this._condVal.test(e+""):!1},r}(),_Q=function(){function r(){}return r.prototype.evaluate=function(){return this.value},r}(),SQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r}(),xQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r}(),bQ=function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r}(),wQ=function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,a=t(this.valueGetterParam),n=e?this.valueParser(a):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(e?n:a))return!1;return!0},r}();function B_(r,e){if(r===!0||r===!1){var t=new _Q;return t.value=r,t}var a="";return xk(r)||Gt(a),r.and?fA("and",r,e):r.or?fA("or",r,e):r.not?TQ(r,e):CQ(r,e)}function fA(r,e,t){var a=e[r],n="";U(a)||Gt(n),a.length||Gt(n);var i=r==="and"?new SQ:new xQ;return i.children=Z(a,function(o){return B_(o,t)}),i.children.length||Gt(n),i}function TQ(r,e){var t=r.not,a="";xk(t)||Gt(a);var n=new bQ;return n.child=B_(t,e),n.child||Gt(a),n}function CQ(r,e){for(var t="",a=e.prepareGetValue(r),n=[],i=Pt(r),o=r.parser,s=o?ML(o):null,l=0;l<i.length;l++){var u=i[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=rt(uA,u)?uA[u]:u,v=r[u],c=s?s(v):v,h=UV(f,c)||f==="reg"&&new mQ(c);h||Gt(t),n.push(h)}}n.length||Gt(t);var d=new wQ;return d.valueGetterParam=a,d.valueParser=s,d.getValue=e.getValue,d.subCondList=n,d}function xk(r){return dt(r)&&!Je(r)}var AQ=function(){function r(e,t){this._cond=B_(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r}();function MQ(r,e){return new AQ(r,e)}var DQ={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,a=MQ(r.config,{valueGetterAttrMap:at({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;rt(s,"dimension")||Gt(l);var f=e.getDimensionInfo(u);return f||Gt(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),n=[],i=0,o=e.count();i<o;i++)t=e.getRawDataItem(i),a.evaluate()&&n.push(t);return{data:n}}},LQ={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,a="",n=Zt(t);n.length||Gt(a);var i=[];A(n,function(f){var v=f.dimension,c=f.order,h=f.parser,d=f.incomparable;if(v==null&&Gt(a),c!=="asc"&&c!=="desc"&&Gt(a),d&&d!=="min"&&d!=="max"){var p="";Gt(p)}if(c!=="asc"&&c!=="desc"){var g="";Gt(g)}var y=e.getDimensionInfo(v);y||Gt(a);var m=h?ML(h):null;h&&!m&&Gt(a),i.push({dimIdx:y.index,parser:m,comparator:new LL(c,d)})});var o=e.sourceFormat;o!==Fe&&o!==Ar&&Gt(a);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,v){for(var c=0;c<i.length;c++){var h=i[c],d=e.retrieveValueFromItem(f,h.dimIdx),p=e.retrieveValueFromItem(v,h.dimIdx);h.parser&&(d=h.parser(d),p=h.parser(p));var g=h.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function IQ(r){r.registerTransform(DQ),r.registerTransform(LQ)}var PQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,a,n){r.prototype.init.call(this,t,a,n),this._sourceManager=new kL(this),zS(this)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),zS(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:aa},e}(kt),RQ=function(r){B(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(se);function kQ(r){r.registerComponentModel(PQ),r.registerComponentView(RQ)}var ma=za.CMD;function ps(r,e){return Math.abs(r-e)<1e-5}function vm(r){var e=r.data,t=r.len(),a=[],n,i=0,o=0,s=0,l=0;function u(L,P){n&&n.length>2&&a.push(n),n=[L,P]}function f(L,P,k,R){ps(L,k)&&ps(P,R)||n.push(L,P,k,R,k,R)}function v(L,P,k,R,N,E){var z=Math.abs(P-L),V=Math.tan(z/4)*4/3,H=P<L?-1:1,G=Math.cos(L),Y=Math.sin(L),X=Math.cos(P),ot=Math.sin(P),_t=G*N+k,At=Y*E+R,st=X*N+k,et=ot*E+R,it=N*V*H,tt=E*V*H;n.push(_t-it*Y,At+tt*G,st+it*ot,et-tt*X,st,et)}for(var c,h,d,p,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===ma.L||y===ma.C||y===ma.Q)&&(n=[s,l])),y){case ma.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case ma.L:c=e[g++],h=e[g++],f(i,o,c,h),i=c,o=h;break;case ma.C:n.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case ma.Q:c=e[g++],h=e[g++],d=e[g++],p=e[g++],n.push(i+2/3*(c-i),o+2/3*(h-o),d+2/3*(c-d),p+2/3*(h-p),d,p),i=d,o=p;break;case ma.A:var _=e[g++],S=e[g++],b=e[g++],x=e[g++],w=e[g++],T=e[g++]+w;g+=1;var C=!e[g++];c=Math.cos(w)*b+_,h=Math.sin(w)*x+S,m?(s=c,l=h,u(s,l)):f(i,o,c,h),i=Math.cos(T)*b+_,o=Math.sin(T)*x+S;for(var M=(C?-1:1)*Math.PI/2,D=w;C?D>T:D<T;D+=M){var I=C?Math.max(D+M,T):Math.min(D+M,T);v(D,I,_,S,b,x)}break;case ma.R:s=i=e[g++],l=o=e[g++],c=s+e[g++],h=l+e[g++],u(c,l),f(c,l,c,h),f(c,h,s,h),f(s,h,s,l),f(s,l,c,l);break;case ma.Z:n&&f(i,o,s,l),i=s,o=l;break}}return n&&n.length>2&&a.push(n),a}function cm(r,e,t,a,n,i,o,s,l,u){if(ps(r,t)&&ps(e,a)&&ps(n,o)&&ps(i,s)){l.push(o,s);return}var f=2/u,v=f*f,c=o-r,h=s-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=t-r,g=a-e,y=n-o,m=i-s,_=p*p+g*g,S=y*y+m*m;if(_<v&&S<v){l.push(o,s);return}var b=c*p+h*g,x=-c*y-h*m,w=_-b*b,T=S-x*x;if(w<v&&b>=0&&T<v&&x>=0){l.push(o,s);return}var C=[],M=[];Kn(r,t,n,o,.5,C),Kn(e,a,i,s,.5,M),cm(C[0],M[0],C[1],M[1],C[2],M[2],C[3],M[3],l,u),cm(C[4],M[4],C[5],M[5],C[6],M[6],C[7],M[7],l,u)}function EQ(r,e){var t=vm(r),a=[];e=e||1;for(var n=0;n<t.length;n++){var i=t[n],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var f=i[u++],v=i[u++],c=i[u++],h=i[u++],d=i[u++],p=i[u++];cm(s,l,f,v,c,h,d,p,o,e),s=d,l=p}a.push(o)}return a}function bk(r,e,t){var a=r[e],n=r[1-e],i=Math.abs(a/n),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,v=t-f;if(v>0)for(var u=0;u<v;u++)l[u%o]+=1;return l}function vA(r,e,t){for(var a=r.r0,n=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*n,u=n-a,f=l>Math.abs(u),v=bk([l,u],f?0:1,e),c=(f?s:u)/v.length,h=0;h<v.length;h++)for(var d=(f?u:s)/v[h],p=0;p<v[h];p++){var g={};f?(g.startAngle=i+c*h,g.endAngle=i+c*(h+1),g.r0=a+d*p,g.r=a+d*(p+1)):(g.startAngle=i+d*p,g.endAngle=i+d*(p+1),g.r0=a+c*h,g.r=a+c*(h+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function OQ(r,e,t){for(var a=r.width,n=r.height,i=a>n,o=bk([a,n],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",f=i?"y":"x",v=r[s]/o.length,c=0;c<o.length;c++)for(var h=r[l]/o[c],d=0;d<o[c];d++){var p={};p[u]=c*v,p[f]=d*h,p[s]=v,p[l]=h,p.x+=r.x,p.y+=r.y,t.push(p)}}function cA(r,e,t,a){return r*a-t*e}function NQ(r,e,t,a,n,i,o,s){var l=t-r,u=a-e,f=o-n,v=s-i,c=cA(f,v,l,u);if(Math.abs(c)<1e-6)return null;var h=r-n,d=e-i,p=cA(h,d,f,v)/c;return p<0||p>1?null:new ct(p*l+r,p*u+e)}function BQ(r,e,t){var a=new ct;ct.sub(a,t,e),a.normalize();var n=new ct;ct.sub(n,r,e);var i=n.dot(a);return i}function as(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function zQ(r,e,t){for(var a=r.length,n=[],i=0;i<a;i++){var o=r[i],s=r[(i+1)%a],l=NQ(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&n.push({projPt:BQ(l,e,t),pt:l,idx:i})}if(n.length<2)return[{points:r},{points:r}];n.sort(function(g,y){return g.projPt-y.projPt});var u=n[0],f=n[n.length-1];if(f.idx<u.idx){var v=u;u=f,f=v}for(var c=[u.pt.x,u.pt.y],h=[f.pt.x,f.pt.y],d=[c],p=[h],i=u.idx+1;i<=f.idx;i++)as(d,r[i].slice());as(d,h),as(d,c);for(var i=f.idx+1;i<=u.idx+a;i++)as(p,r[i%a].slice());return as(p,c),as(p,h),[{points:d},{points:p}]}function hA(r){var e=r.points,t=[],a=[];Kc(e,t,a);var n=new gt(t[0],t[1],a[0]-t[0],a[1]-t[1]),i=n.width,o=n.height,s=n.x,l=n.y,u=new ct,f=new ct;return i>o?(u.x=f.x=s+i/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+i),zQ(e,u,f)}function Oc(r,e,t,a){if(t===1)a.push(e);else{var n=Math.floor(t/2),i=r(e);Oc(r,i[0],n,a),Oc(r,i[1],t-n,a)}return a}function VQ(r,e){for(var t=[],a=0;a<e;a++)t.push(Hm(r));return t}function GQ(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function FQ(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function HQ(r,e){var t=[],a=r.shape,n;switch(r.type){case"rect":OQ(a,e,t),n=Dt;break;case"sector":vA(a,e,t),n=sr;break;case"circle":vA({r0:0,r:a.r,startAngle:0,endAngle:Math.PI*2,cx:a.cx,cy:a.cy},e,t),n=sr;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=Z(EQ(r.getUpdatedPathProxy(),o),function(y){return FQ(y)}),l=s.length;if(l===0)Oc(hA,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,v=Z(s,function(y){var m=[],_=[];Kc(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});v.sort(function(y,m){return m.area-y.area});for(var c=e,u=0;u<l;u++){var h=v[u];if(c<=0)break;var d=u===l-1?c:Math.ceil(h.area/f*e);d<0||(Oc(hA,{points:h.poly},d,t),c-=d)}}n=lr;break}if(!n)return VQ(r,e);for(var p=[],u=0;u<t.length;u++){var g=new n;g.setShape(t[u]),GQ(r,g),p.push(g)}return p}function WQ(r,e){var t=r.length,a=e.length;if(t===a)return[r,e];for(var n=[],i=[],o=t<a?r:e,s=Math.min(t,a),l=Math.abs(a-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,v=[o[0],o[1]],c=l,h=2;h<s;){var d=o[h-2],p=o[h-1],g=o[h++],y=o[h++],m=o[h++],_=o[h++],S=o[h++],b=o[h++];if(c<=0){v.push(g,y,m,_,S,b);continue}for(var x=Math.min(c,f-1)+1,w=1;w<=x;w++){var T=w/x;Kn(d,g,m,S,T,n),Kn(p,y,_,b,T,i),d=n[3],p=i[3],v.push(n[1],i[1],n[2],i[2],d,p),g=n[5],y=i[5],m=n[6],_=i[6]}c-=x-1}return o===r?[v,e]:[r,v]}function dA(r,e){for(var t=r.length,a=r[t-2],n=r[t-1],i=[],o=0;o<e.length;)i[o++]=a,i[o++]=n;return i}function $Q(r,e){for(var t,a,n,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,v=void 0;l?u?(t=WQ(l,u),f=t[0],v=t[1],a=f,n=v):(v=dA(n||l,l),f=l):(f=dA(a||u,u),v=u),i.push(f),o.push(v)}return[i,o]}function pA(r){for(var e=0,t=0,a=0,n=r.length,i=0,o=n-2;i<n;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],f=r[i+1],v=s*f-u*l;e+=v,t+=(s+u)*v,a+=(l+f)*v}return e===0?[r[0]||0,r[1]||0]:[t/e/3,a/e/3,e]}function UQ(r,e,t,a){for(var n=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<n;u++){for(var f=u*6,v=0,c=0;c<s;c+=2){var h=c===0?f:(f+c-2)%l+2,d=r[h]-t[0],p=r[h+1]-t[1],g=e[c]-a[0],y=e[c+1]-a[1],m=g-d,_=y-p;v+=m*m+_*_}v<i&&(i=v,o=u)}return o}function YQ(r){for(var e=[],t=r.length,a=0;a<t;a+=2)e[a]=r[t-a-2],e[a+1]=r[t-a-1];return e}function ZQ(r,e,t,a){for(var n=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=pA(s),f=pA(l);i==null&&(i=u[2]<0!=f[2]<0);var v=[],c=[],h=0,d=1/0,p=[],g=s.length;i&&(s=YQ(s));for(var y=UQ(s,l,u,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;v[_+2]=s[S]-u[0],v[_+3]=s[S+1]-u[1]}if(v[0]=s[y]-u[0],v[1]=s[y+1]-u[1],t>0)for(var b=a/t,x=-a/2;x<=a/2;x+=b){for(var w=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var M=v[_],D=v[_+1],I=l[_]-f[0],L=l[_+1]-f[1],P=I*T-L*w,k=I*w+L*T;p[_]=P,p[_+1]=k;var R=P-M,N=k-D;C+=R*R+N*N}if(C<d){d=C,h=x;for(var E=0;E<p.length;E++)c[E]=p[E]}}else for(var z=0;z<g;z+=2)c[z]=l[z]-f[0],c[z+1]=l[z+1]-f[1];n.push({from:v,to:c,fromCp:u,toCp:f,rotation:-h})}return n}function Nc(r){return r.__isCombineMorphing}var wk="__mOriginal_";function Bc(r,e,t){var a=wk+e,n=r[a]||r[e];r[a]||(r[a]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=n.apply(this,l),o&&o.apply(this,l),u}}function ru(r,e){var t=wk+e;r[t]&&(r[e]=r[t],r[t]=null)}function gA(r,e){for(var t=0;t<r.length;t++)for(var a=r[t],n=0;n<a.length;){var i=a[n],o=a[n+1];a[n++]=e[0]*i+e[2]*o+e[4],a[n++]=e[1]*i+e[3]*o+e[5]}}function Tk(r,e){var t=r.getUpdatedPathProxy(),a=e.getUpdatedPathProxy(),n=$Q(vm(t),vm(a)),i=n[0],o=n[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&gA(i,s),l&&gA(o,l),Bc(e,"updateTransform",{replace:u}),e.transform=null;var f=ZQ(i,o,10,Math.PI),v=[];Bc(e,"buildPath",{replace:function(c){for(var h=e.__morphT,d=1-h,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*h,b=y.fromCp,x=y.toCp,w=Math.sin(S),T=Math.cos(S);hv(p,b,x,h);for(var C=0;C<m.length;C+=2){var M=m[C],D=m[C+1],I=_[C],L=_[C+1],P=M*d+I*h,k=D*d+L*h;v[C]=P*T-k*w+p[0],v[C+1]=P*w+k*T+p[1]}var R=v[0],N=v[1];c.moveTo(R,N);for(var C=2;C<m.length;){var I=v[C++],L=v[C++],E=v[C++],z=v[C++],V=v[C++],H=v[C++];R===I&&N===L&&E===V&&z===H?c.lineTo(V,H):c.bezierCurveTo(I,L,E,z,V,H),R=V,N=H}}}})}function z_(r,e,t){if(!r||!e)return e;var a=t.done,n=t.during;Tk(r,e),e.__morphT=0;function i(){ru(e,"buildPath"),ru(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},ht({during:function(o){e.dirtyShape(),n&&n(o)},done:function(){i(),a&&a()}},t)),e}function XQ(r,e,t,a,n,i){var o=16;r=n===t?0:Math.round(32767*(r-t)/(n-t)),e=i===a?0:Math.round(32767*(e-a)/(i-a));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,v=0;(r&u)>0&&(f=1),(e&u)>0&&(v=1),s+=u*u*(3*f^v),v===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function zc(r){var e=1/0,t=1/0,a=-1/0,n=-1/0,i=Z(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),v=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(v,t),a=Math.max(f,a),n=Math.max(v,n),[f,v]}),o=Z(i,function(s,l){return{cp:s,z:XQ(s[0],s[1],e,t,a,n),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Ck(r){return HQ(r.path,r.count)}function hm(){return{fromIndividuals:[],toIndividuals:[],count:0}}function qQ(r,e,t){var a=[];function n(b){for(var x=0;x<b.length;x++){var w=b[x];Nc(w)?n(w.childrenRef()):w instanceof It&&a.push(w)}}n(r);var i=a.length;if(!i)return hm();var o=t.dividePath||Ck,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),hm();a=zc(a),s=zc(s);for(var l=t.done,u=t.during,f=t.individualDelay,v=new tn,c=0;c<i;c++){var h=a[c],d=s[c];d.parent=e,d.copyTransform(v),f||Tk(h,d)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function p(b){for(var x=0;x<s.length;x++)s[x].addSelfToZr(b)}Bc(e,"addSelfToZr",{after:function(b){p(b)}}),Bc(e,"removeSelfFromZr",{after:function(b){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,ru(e,"addSelfToZr"),ru(e,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},c=0;c<y;c++){var S=f?ht({delay:(t.delay||0)+f(c,y,a[c],s[c]),done:_},t):t;z_(a[c],s[c],S)}else e.__morphT=0,e.animateTo({__morphT:1},ht({during:function(b){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)ru(r[b],"updateTransform");l&&l()}},t));return e.__zr&&p(e.__zr),{fromIndividuals:a,toIndividuals:s,count:y}}function KQ(r,e,t){var a=e.length,n=[],i=t.dividePath||Ck;function o(h){for(var d=0;d<h.length;d++){var p=h[d];Nc(p)?o(p.childrenRef()):p instanceof It&&n.push(p)}}if(Nc(r)){o(r.childrenRef());var s=n.length;if(s<a)for(var l=0,u=s;u<a;u++)n.push(Hm(n[l++%s]));n.length=a}else{n=i({path:r,count:a});for(var f=r.getComputedTransform(),u=0;u<n.length;u++)n[u].setLocalTransform(f);if(n.length!==a)return console.error("Invalid morphing: unmatched splitted path"),hm()}n=zc(n),e=zc(e);for(var v=t.individualDelay,u=0;u<a;u++){var c=v?ht({delay:(t.delay||0)+v(u,a,n[u],e[u])},t):t;z_(n[u],e[u],c)}return{fromIndividuals:n,toIndividuals:e,count:e.length}}function yA(r){return U(r[0])}function mA(r,e){for(var t=[],a=r.length,n=0;n<a;n++)t.push({one:r[n],many:[]});for(var n=0;n<e.length;n++){var i=e[n].length,o=void 0;for(o=0;o<i;o++)t[o%a].many.push(e[n][o])}for(var s=0,n=a-1;n>=0;n--)if(!t[n].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[n].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var jQ={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),a=0;a<r.count;a++){var n=Hm(r.path);n.setStyle("opacity",t),e.push(n)}return e},split:null};function eg(r,e,t,a,n,i){if(!r.length||!e.length)return;var o=Hs("update",a,n);if(!(o&&o.duration>0))return;var s=a.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,f;yA(r)&&(u=r,f=e),yA(e)&&(u=e,f=r);function v(y,m,_,S,b){var x=y.many,w=y.one;if(x.length===1&&!b){var T=m?x[0]:w,C=m?w:x[0];if(Nc(T))v({many:[T],one:C},!0,_,S,!0);else{var M=s?ht({delay:s(_,S)},l):l;z_(T,C,M),i(T,C,T,C,M)}}else for(var D=ht({dividePath:jQ[t],individualDelay:s&&function(N,E,z,V){return s(N+_,S)}},l),I=m?qQ(x,w,D):KQ(w,x,D),L=I.fromIndividuals,P=I.toIndividuals,k=L.length,R=0;R<k;R++){var M=s?ht({delay:s(R,k)},l):l;i(L[R],P[R],m?x[R]:y.one,m?y.one:x[R],M)}}for(var c=u?u===r:r.length>e.length,h=u?mA(f,u):mA(c?e:r,[c?r:e]),d=0,p=0;p<h.length;p++)d+=h[p].many.length;for(var g=0,p=0;p<h.length;p++)v(h[p],c,g,d),g+=h[p].many.length}function Vi(r){if(!r)return[];if(U(r)){for(var e=[],t=0;t<r.length;t++)e.push(Vi(r[t]));return e}var a=[];return r.traverse(function(n){n instanceof It&&!n.disableMorphing&&!n.invisible&&!n.ignore&&a.push(n)}),a}var Ak=1e4,JQ=0,_A=1,SA=2,QQ=Lt();function ttt(r,e){for(var t=r.dimensions,a=0;a<t.length;a++){var n=r.getDimensionInfo(t[a]);if(n&&n.otherDims[e]===0)return t[a]}}function ett(r,e,t){var a=r.getDimensionInfo(t),n=a&&a.ordinalMeta;if(a){var i=r.get(a.name,e);return n&&n.categories[i]||i+""}}function xA(r,e,t,a){var n=a?"itemChildGroupId":"itemGroupId",i=ttt(r,n);if(i){var o=ett(r,e,i);return o}var s=r.getRawDataItem(e),l=a?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!a)return t||r.getId(e)}function bA(r){var e=[];return A(r,function(t){var a=t.data,n=t.dataGroupId;if(!(a.count()>Ak))for(var i=a.getIndices(),o=0;o<i.length;o++)e.push({data:a,groupId:xA(a,o,n,!1),childGroupId:xA(a,o,n,!0),divide:t.divide,dataIndex:o})}),e}function rg(r,e,t){r.traverse(function(a){a instanceof It&&re(a,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function ag(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function ns(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function rtt(r,e,t){var a=Hs("update",t,e);a&&r.traverse(function(n){if(n instanceof $r){var i=dz(n);i&&n.animateFrom({style:i},a)}})}function att(r,e){var t=r.length;if(t!==e.length)return!1;for(var a=0;a<t;a++){var n=r[a],i=e[a];if(n.data.getId(n.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function Mk(r,e,t){var a=bA(r),n=bA(e);function i(_,S,b,x,w){(b||_)&&S.animateFrom({style:b&&b!==_?$($({},b.style),_.style):_.style},w)}var o=!1,s=JQ,l=at(),u=at();a.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<n.length;f++){var v=n[f].groupId;if(u.get(v)){s=_A;break}var c=n[f].childGroupId;if(c&&l.get(c)){s=SA;break}}function h(_,S){return function(b){var x=b.data,w=b.dataIndex;return S?x.getId(w):_?s===_A?b.childGroupId:b.groupId:s===SA?b.childGroupId:b.groupId}}var d=att(a,n),p={};if(!d)for(var f=0;f<n.length;f++){var g=n[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var b=a[S],x=n[_],w=x.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&rtt(C,x.dataIndex,w);return}T&&p[T.id]||C&&(ns(C),T?(ns(T),ag(T),o=!0,eg(Vi(T),Vi(C),x.divide,w,_,i)):rg(C,w,_))}new hn(a,n,h(!0,d),h(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var b=n[_],x=b.data,w=x.hostModel,T=x.getItemGraphicEl(b.dataIndex),C=$t(Z(S,function(M){return a[M].data.getItemGraphicEl(a[M].dataIndex)}),function(M){return M&&M!==T&&!p[M.id]});T&&(ns(T),C.length?(A(C,function(M){ns(M),ag(M)}),o=!0,eg(Vi(C),Vi(T),b.divide,w,_,i)):rg(T,w,b.dataIndex))}).updateOneToMany(function(_,S){var b=a[S],x=b.data.getItemGraphicEl(b.dataIndex);if(!(x&&p[x.id])){var w=$t(Z(_,function(C){return n[C].data.getItemGraphicEl(n[C].dataIndex)}),function(C){return C&&C!==x}),T=n[_[0]].data.hostModel;w.length&&(A(w,function(C){return ns(C)}),x?(ns(x),ag(x),o=!0,eg(Vi(x),Vi(w),b.divide,T,_[0],i)):A(w,function(C){return rg(C,T,_[0])}))}}).updateManyToMany(function(_,S){new hn(S,_,function(b){return a[b].data.getId(a[b].dataIndex)},function(b){return n[b].data.getId(n[b].dataIndex)}).update(function(b,x){m(_[b],S[x])}).execute()}).execute(),o&&A(e,function(_){var S=_.data,b=S.hostModel,x=b&&t.getViewOfSeriesModel(b),w=Hs("update",b,0);x&&b.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(T){T instanceof It&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function wA(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function TA(r){return U(r)?r.sort().join(","):r}function kn(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function ntt(r,e){var t=at(),a=at(),n=at();return A(r.oldSeries,function(i,o){var s=r.oldDataGroupIds[o],l=r.oldData[o],u=wA(i),f=TA(u);a.set(f,{dataGroupId:s,data:l}),U(u)&&A(u,function(v){n.set(v,{key:f,dataGroupId:s,data:l})})}),A(e.updatedSeries,function(i){if(i.isUniversalTransitionEnabled()&&i.isAnimationEnabled()){var o=i.get("dataGroupId"),s=i.getData(),l=wA(i),u=TA(l),f=a.get(u);if(f)t.set(u,{oldSeries:[{dataGroupId:f.dataGroupId,divide:kn(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:kn(s),data:s}]});else if(U(l)){var v=[];A(l,function(d){var p=a.get(d);p.data&&v.push({dataGroupId:p.dataGroupId,divide:kn(p.data),data:p.data})}),v.length&&t.set(u,{oldSeries:v,newSeries:[{dataGroupId:o,data:s,divide:kn(s)}]})}else{var c=n.get(l);if(c){var h=t.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:kn(c.data)}],newSeries:[]},t.set(c.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:kn(s)})}}}}),t}function CA(r,e){for(var t=0;t<r.length;t++){var a=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(a)return t}}function itt(r,e,t,a){var n=[],i=[];A(Zt(r.from),function(o){var s=CA(e.oldSeries,o);s>=0&&n.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:kn(e.oldData[s]),groupIdDim:o.dimension})}),A(Zt(r.to),function(o){var s=CA(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:kn(l),groupIdDim:o.dimension})}}),n.length>0&&i.length>0&&Mk(n,i,a)}function ott(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,a){A(Zt(a.seriesTransition),function(n){A(Zt(n.to),function(i){for(var o=a.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Av]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,a){var n=QQ(t);if(n.oldSeries&&a.updatedSeries&&a.optionChanged){var i=a.seriesTransition;if(i)A(Zt(i),function(h){itt(h,n,a,t)});else{var o=ntt(n,a);A(o.keys(),function(h){var d=o.get(h);Mk(d.oldSeries,d.newSeries,t)})}A(a.updatedSeries,function(h){h[Av]&&(h[Av]=!1)})}for(var s=e.getSeries(),l=n.oldSeries=[],u=n.oldDataGroupIds=[],f=n.oldData=[],v=0;v<s.length;v++){var c=s[v].getData();c.count()<Ak&&(l.push(s[v]),u.push(s[v].get("dataGroupId")),f.push(c))}})}var stt=function(){function r(){this.breaks=[],this._elapsedExtent=[1/0,-1/0]}return r.prototype.setBreaks=function(e){this.breaks=e.breaks},r.prototype.update=function(e){utt(this,e);var t=this._elapsedExtent;t[0]=this.elapse(e[0]),t[1]=this.elapse(e[1])},r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var a=0;a<this.breaks.length;a++){var n=this.breaks[a];if(n.vmin<e&&e<n.vmax){var i=t(e,n.vmax);return i}}return 0},r.prototype.getExtentSpan=function(){return this._elapsedExtent[1]-this._elapsedExtent[0]},r.prototype.normalize=function(e){var t=this._elapsedExtent[1]-this._elapsedExtent[0];return t===0?.5:(this.elapse(e)-this._elapsedExtent[0])/t},r.prototype.scale=function(e){return this.unelapse(e*(this._elapsedExtent[1]-this._elapsedExtent[0])+this._elapsedExtent[0])},r.prototype.elapse=function(e){for(var t=AA,a=MA,n=!0,i=0;i<this.breaks.length;i++){var o=this.breaks[i];if(e<=o.vmax){e>o.vmin?t+=o.vmin-a+(e-o.vmin)/(o.vmax-o.vmin)*o.gapReal:t+=e-a,a=o.vmax,n=!1;break}t+=o.vmin-a+o.gapReal,a=o.vmax}return n&&(t+=e-a),t},r.prototype.unelapse=function(e){for(var t=AA,a=MA,n=!0,i=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=t+s.vmin-a,u=l+s.gapReal;if(e<=u){e>l?i=s.vmin+(e-l)/(u-l)*(s.vmax-s.vmin):i=a+e-t,a=s.vmax,n=!1;break}t=u,a=s.vmax}return n&&(i=a+e-t),i},r}();function ltt(){return new stt}var AA=0,MA=0;function utt(r,e){var t=0,a={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},n=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},i={S:{tpAbs:n(),tpPrct:n()},E:{tpAbs:n(),tpPrct:n()}};A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=V_(s,e);if(u){var f=u.vmin!==s.vmin,v=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&v))if(f||v){var h=f?"S":"E";i[h][l.type].has=!0,i[h][l.type].span=c,i[h][l.type].inExtFrac=c/(s.vmax-s.vmin),i[h][l.type].val=l.val}else a[l.type].span+=c,a[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(a.tpAbs.val-a.tpAbs.span)+(i.S.tpAbs.has?(i.S.tpAbs.val-i.S.tpAbs.span)*i.S.tpAbs.inExtFrac:0)+(i.E.tpAbs.has?(i.E.tpAbs.val-i.E.tpAbs.span)*i.E.tpAbs.inExtFrac:0)-a.tpPrct.span-(i.S.tpPrct.has?i.S.tpPrct.span*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.span*i.E.tpPrct.inExtFrac:0))/(1-a.tpPrct.val-(i.S.tpPrct.has?i.S.tpPrct.val*i.S.tpPrct.inExtFrac:0)-(i.E.tpPrct.has?i.E.tpPrct.val*i.E.tpPrct.inExtFrac:0));A(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?Math.max(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function ftt(r,e,t,a,n,i){r!=="no"&&A(t,function(o){var s=V_(o,i);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=a(u),v=n*3/4;f>s.vmin-v&&f<s.vmax+v&&(r!=="preserve_extent_bound"||f!==i[0]&&f!==i[1])&&e.splice(l,1)}})}function vtt(r,e,t,a){A(e,function(n){var i=V_(n,t);i&&(r.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:a?a(i):void 0}),r.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:a?a(i):void 0}))}),e.length&&r.sort(function(n,i){return n.value-i.value})}function V_(r,e){var t=Math.max(r.vmin,e[0]),a=Math.min(r.vmax,e[1]);return t<a||t===a&&t>e[0]&&t<e[1]?{vmin:t,vmax:a,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function dm(r,e,t){var a=[];if(!r)return{breaks:a};function n(o,s){return o>=0&&o<1-1e-5}A(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ut(o),vmin:e(o.start),vmax:e(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(J(o.gap)){var u=Fr(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;n(f)||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var v=e(o.gap);(!isFinite(v)||v<0)&&(v=0),s.gapParsed.type="tpAbs",s.gapParsed.val=v}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&A(["vmin","vmax"],function(h){s[h]<0&&(s[h]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}a.push(s)}}),a.sort(function(o,s){return o.vmin-s.vmin});var i=-1/0;return A(a,function(o,s){i>o.vmin&&(a[s]=null),i=o.vmax}),{breaks:a.filter(function(o){return!!o})}}function G_(r,e){return pm(e)===pm(r)}function pm(r){return r.start+"_\0_"+r.end}function ctt(r,e,t){var a=[];A(r,function(i,o){var s=e(i);s&&s.type==="vmin"&&a.push([o])}),A(r,function(i,o){var s=e(i);if(s&&s.type==="vmax"){var l=mo(a,function(u){return G_(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var n=[];return A(a,function(i){i.length===2&&n.push(t?i:[r[i[0]],r[i[1]]])}),n}function htt(r,e,t,a){var n,i;if(r.break){var o=r.break.parsedBreak,s=mo(t,function(v){return G_(v.breakOption,r.break.parsedBreak.breakOption)}),l=a(Math.pow(e,o.vmin),s.vmin),u=a(Math.pow(e,o.vmax),s.vmax),f={type:o.gapParsed.type,val:o.gapParsed.type==="tpAbs"?me(Math.pow(e,o.vmin+o.gapParsed.val))-l:o.gapParsed.val};n={type:r.break.type,parsedBreak:{breakOption:o.breakOption,vmin:l,vmax:u,gapParsed:f,gapReal:o.gapReal}},i=s[r.break.type]}return{brkRoundingCriterion:i,vBreak:n}}function dtt(r,e,t){var a={noNegative:!0},n=dm(r,t,a),i=dm(r,t,a),o=Math.log(e);return i.breaks=Z(i.breaks,function(s){var l=Math.log(s.vmin)/o,u=Math.log(s.vmax)/o,f={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?Math.log(s.vmin+s.gapParsed.val)/o-l:s.gapParsed.val};return{vmin:l,vmax:u,gapParsed:f,gapReal:s.gapReal,breakOption:s.breakOption}}),{parsedOriginal:n,parsedLogged:i}}var ptt={vmin:"start",vmax:"end"};function gtt(r,e){return e&&(r=r||{},r.break={type:ptt[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function ytt(){zz({createScaleBreakContext:ltt,pruneTicksByBreak:ftt,addBreaksToTicks:vtt,parseAxisBreakOption:dm,identifyAxisBreak:G_,serializeAxisBreakIdentifier:pm,retrieveAxisBreakPairs:ctt,getTicksLogTransformBreak:htt,logarithmicParseBreaksFromOption:dtt,makeAxisLabelFormatterParamBreak:gtt})}var DA=Lt();function mtt(r,e){var t=mo(r,function(a){return _e().identifyAxisBreak(a.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function _tt(r){A(r,function(e){return e.shouldRemove=!0})}function Stt(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function xtt(r,e,t,a,n){var i=t.axis;if(i.scale.isBlank()||!_e())return;var o=_e().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var v=s.get("expandOnClick"),c=s.get("zigzagZ"),h=s.getModel("itemStyle"),d=h.getItemStyle(),p=d.stroke,g=d.lineWidth,y=d.lineDash,m=d.fill,_=new ft({ignoreModelZ:!0}),S=i.isHorizontal(),b=DA(e).visualList||(DA(e).visualList=[]);_tt(b);for(var x=function(C){var M=o[C][0].break.parsedBreak,D=[];D[0]=i.toGlobalCoord(i.dataToCoord(M.vmin,!0)),D[1]=i.toGlobalCoord(i.dataToCoord(M.vmax,!0)),D[1]<D[0]&&D.reverse();var I=mtt(b,M);I.shouldRemove=!1;var L=new ft;T(I.zigzagRandomList,L,D[0],D[1],S,M),v&&L.on("click",function(){var P={type:yh,breaks:[{start:M.breakOption.start,end:M.breakOption.end}]};P[i.dim+"AxisIndex"]=t.componentIndex,n.dispatchAction(P)}),L.silent=!v,_.add(L)},w=0;w<o.length;w++)x(w);r.add(_),Stt(b);function T(C,M,D,I,L,P){var k={stroke:p,lineWidth:g,lineDash:y,fill:"none"},R=L?0:1,N=1-R,E=a[mt[N]]+a[Se[N]];function z(W){var q=[],K=[];q[R]=K[R]=W,q[N]=a[mt[N]],K[N]=E;var pt={x1:q[0],y1:q[1],x2:K[0],y2:K[1]};return Jc(pt,pt,{lineWidth:1}),q[0]=pt.x1,q[1]=pt.y1,q[R]}D=z(D),I=z(I);for(var V=[],H=[],G=!0,Y=a[mt[N]],X=0;;X++){var ot=Y===a[mt[N]],_t=Y>=E;_t&&(Y=E);var At=[],st=[];At[R]=D,st[R]=I,!ot&&!_t&&(At[R]+=G?-l:l,st[R]-=G?l:-l),At[N]=Y,st[N]=Y,V.push(At),H.push(st);var et=void 0;if(X<C.length?et=C[X]:(et=Math.random(),C.push(et)),Y+=et*(f-u)+u,G=!G,_t)break}var it=_e().serializeAxisBreakIdentifier(P.breakOption);if(M.add(new tr({anid:"break_a_"+it,shape:{points:V},style:k,z:c})),P.gapReal!==0){M.add(new tr({anid:"break_b_"+it,shape:{points:H},style:k,z:c}));var tt=H.slice();tt.reverse();var O=V.concat(tt);M.add(new lr({anid:"break_c_"+it,shape:{points:O},style:{fill:m,opacity:d.opacity},z:c}))}}}function btt(r,e,t,a){var n=r.axis,i=t.transform;Qe(a.style);var o=n.getExtent();n.inverse&&(o=o.slice(),o.reverse());var s=_e().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(g){return g.break},!1),l=Z(s,function(g){var y=g[0].break.parsedBreak,m=[n.dataToCoord(y.vmin,!0),n.dataToCoord(y.vmax,!0)];return m[0]>m[1]&&m.reverse(),{coordPair:m,brkId:_e().serializeAxisBreakIdentifier(y.breakOption)}});l.sort(function(g,y){return g.coordPair[0]-y.coordPair[0]});for(var u=o[0],f=null,v=0;v<l.length;v++){var c=l[v],h=Math.max(c.coordPair[0],o[0]),d=Math.min(c.coordPair[1],o[1]);u<=h&&p(u,h,f,c),u=d,f=c}u<=o[1]&&p(u,o[1],f,null);function p(g,y,m,_){function S(D,I){i&&(ge(D,D,i),ge(I,I,i))}function b(D,I){var L={x1:D[0],y1:D[1],x2:I[0],y2:I[1]};Jc(L,L,a.style),D[0]=L.x1,D[1]=L.y1,I[0]=L.x2,I[1]=L.y2}var x=[g,0],w=[y,0],T=[g,5],C=[y,5];S(x,T),b(x,T),S(w,C),b(w,C),b(x,w);var M=new Me($({shape:{x1:x[0],y1:x[1],x2:w[0],y2:w[1]}},a));e.add(M),M.anid="breakLine_"+(m?m.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function wtt(r,e,t){if(mo(t,function(m){return!m}))return;var a=new ct;if(!ph(t[0],t[1],a,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var n=Ge();ni(n,n,-e);var i=Z(t,function(m){return m.transform?Pa(Ge(),n,m.transform):n});function o(m){var _=t[0].localRect,S=new ct(_[Se[m]]*i[0][0],_[Se[m]]*i[0][1]);return Math.abs(S.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=Z(t,function(m,_){var S=m.localRect.clone();return S.applyTransform(i[_]),S}),u=new ct;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(n);var f=a.clone().transform(n),v=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(v+f.x)/2-u.x,h=Math.min(c,c-f.x),d=Math.max(c,c-f.x),p=d<0?d:h>0?h:0;s=(c-p)/f.x}var g=new ct,y=new ct;ct.scale(g,a,-s),ct.scale(y,a,1-s),my(t[0],g),my(t[1],y)}function Ttt(r,e){var t={breaks:[]};return A(e.breaks,function(a){if(a){var n=mo(r.get("breaks",!0),function(s){return _e().identifyAxisBreak(s,a)});if(n){var i=e.type,o={isExpanded:!!n.isExpanded};n.isExpanded=i===yh?!0:i===$I?!1:i===UI?!n.isExpanded:n.isExpanded,t.breaks.push({start:n.start,end:n.end,isExpanded:!!n.isExpanded,old:o})}}}),t}function Ctt(){k4({adjustBreakLabelPair:wtt,buildAxisBreakLine:btt,rectCoordBuildBreakAxis:xtt,updateModelAxisBreak:Ttt})}function Att(r){F4(r),ytt(),Ctt()}function Mtt(){lW(Dtt)}function Dtt(r,e){A(r,function(t){if(!t.model.get(["axisLabel","inside"])){var a=Ltt(t);if(a){var n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[n]-=a[n]+i,t.position==="top"?e.y+=a.height+i:t.position==="left"&&(e.x+=a.width+i)}}})}function Ltt(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var a,n,i=t.getExtent();t instanceof xu?n=t.count():(a=t.getTicks(),n=a.length);var o=r.getLabelModel(),s=qs(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var v=a?a[f]:{value:i[0]+f},c=s(v,f),h=o.getTextRect(c),d=p(h,o.get("rotate")||0);l?l.union(d):l=d}return l;function p(g,y){var m=y*Math.PI/180,_=g.width,S=g.height,b=_*Math.abs(Math.cos(m))+Math.abs(S*Math.sin(m)),x=_*Math.abs(Math.sin(m))+Math.abs(S*Math.cos(m)),w=new gt(g.x,g.y,b,x);return w}}Ct([yH]);Ct([fH]);Ct([FH,i4,m4,LW,YW,W$,_8,iU,RU,HU,jU,s6,fY,NY,qY,p7,b7,G7,K7,u9,y9,I9,gZ]);Ct(VZ);Ct(mX);Ct(mP);Ct(EX);Ct(iR);Ct(FX);Ct(fq);Ct(_q);Ct(_K);Ct(HK);Ct(qu);Ct(sj);Ct(fj);Ct(Cj);Ct(Nj);Ct($j);Ct(Jj);Ct(cJ);Ct(OJ);Ct(hk);Ct(dk);Ct(lQ);Ct(_k);Ct(Sk);Ct(cQ);Ct(yQ);Ct(IQ);Ct(kQ);Ct(ott);Ct(D3);Ct(Att);Ct(Mtt);Ct(IW);const Itt=r=>(VA("data-v-eb57f19b"),r=r(),GA(),r),Ptt={key:0,class:"loading-container"},Rtt={class:"loading-text"},ktt={key:1,class:"error-container"},Ett={key:2,class:"graph-container"},Ott={class:"control-panel"},Ntt={style:{display:"flex","align-items":"center",gap:"10px","flex-wrap":"wrap"}},Btt=Itt(()=>Mt("div",{style:{flex:"1 1 auto"}},null,-1)),ztt=LA({__name:"TagRelationGraph",props:{folders:{},lang:{}},emits:["searchTag","openCluster"],setup(r,{emit:e}){const t=r,a=Kt(!1),n=Kt(""),i=Kt(null),o=Kt(null),s=Kt(),l=Kt();let u=null,f=null,v=null,c=null,h={};const d=Kt("__all__"),p=Kt(""),g=Kt(3),y=Kt(""),m=Kt(200),_=Kt(0),S=Kt(0),b=Kt(!1),x=async()=>{try{if(document.fullscreenElement){await document.exitFullscreen();return}const V=l.value;if(!V||!V.requestFullscreen){Jr.warning(Ut("tagGraphFullscreenUnsupported"));return}await V.requestFullscreen()}catch(V){Jr.error((V==null?void 0:V.message)||Ut("tagGraphFullscreenFailed"))}},w=Rr(()=>{var Y;const H=(((Y=i.value)==null?void 0:Y.layers)??[]).map(X=>String(X.name??"")).filter(Boolean),G=Array.from(new Set(H));return[{label:Ut("tagGraphAllLayers"),value:"__all__"},...G.map(X=>({label:X,value:X}))]}),T=Rr(()=>{var H;return(((H=o.value)==null?void 0:H.layers)??[]).reduce((G,Y)=>{var X;return G+(((X=Y==null?void 0:Y.nodes)==null?void 0:X.length)??0)},0)}),C=Rr(()=>{var V,H;return((H=(V=o.value)==null?void 0:V.links)==null?void 0:H.length)??0}),M=["#4A90E2","#7B68EE","#50C878","#FF6B6B","#FFD700","#FF8C00"],D=V=>M[V%M.length],I=async()=>{var V,H;if(!t.folders||t.folders.length===0){n.value="No folders selected";return}a.value=!0,n.value="";try{const G={folder_paths:t.folders,lang:t.lang||"en"};i.value=await Fk(G),o.value={...i.value,layers:P(i.value.layers,m.value||200)}}catch(G){const Y=(H=(V=G.response)==null?void 0:V.data)==null?void 0:H.detail;n.value=typeof Y=="string"?Y:Y?JSON.stringify(Y):G.message||"Failed to load graph",Jr.error(n.value)}finally{a.value=!1}},L=()=>{s.value&&Dh(()=>{z()})},P=(V,H)=>{const G=[];for(const Y of V){let X=(Y==null?void 0:Y.nodes)??[];Number((Y==null?void 0:Y.level)??0)===1&&X.length>H&&(X=X.sort((_t,At)=>(At.size||0)-(_t.size||0)).slice(0,H)),X.length&&G.push({...Y,nodes:X})}return G},k=()=>{const V=i.value;if(!V)return;const H=(p.value||"").trim().toLowerCase(),G=d.value,Y=m.value||200;if(!y.value&&!H&&(G==="__all__"||!G)){o.value={...V,layers:P(V.layers,Y)},L();return}const X=new Map;for(const O of V.layers){const W=String((O==null?void 0:O.name)??""),q=Number((O==null?void 0:O.level)??0);for(const K of(O==null?void 0:O.nodes)??[]){const pt=String((K==null?void 0:K.id)??"");pt&&X.set(pt,{id:pt,label:String((K==null?void 0:K.label)??""),layerName:W,layerLevel:q,metadata:K==null?void 0:K.metadata})}}const ot=new Set;if(y.value)X.has(y.value)&&ot.add(y.value);else for(const[O,W]of X)G&&G!=="__all__"&&W.layerName!==G||H&&!`${W.label} ${O}`.toLowerCase().includes(H)||ot.add(O);const _t=V.links,At=new Map,st=(O,W)=>{!O||!W||(At.has(O)||At.set(O,new Set),At.get(O).add(W))};for(const O of _t){const W=String((O==null?void 0:O.source)??""),q=String((O==null?void 0:O.target)??"");!W||!q||(st(W,q),st(q,W))}const et=new Set;if(y.value){if(!X.get(y.value))return;const W=_.value,q=S.value,K=(St,Tt)=>{const Et=new Set([St]),Qt=[{id:St,d:0}];for(;Qt.length;){const Yt=Qt.shift();if(Yt.d>=Tt)continue;const He=At.get(Yt.id);if(!He)continue;const Oe=X.get(Yt.id),Mr=(Oe==null?void 0:Oe.layerLevel)??0;for(const Ft of He){if(Et.has(Ft))continue;const ue=X.get(Ft);((ue==null?void 0:ue.layerLevel)??0)>Mr&&(Et.add(Ft),et.add(Ft),Qt.push({id:Ft,d:Yt.d+1}))}}},pt=(St,Tt)=>{const Et=new Set([St]),Qt=[{id:St,d:0}];for(;Qt.length;){const Yt=Qt.shift();if(Yt.d>=Tt)continue;const He=At.get(Yt.id);if(!He)continue;const Oe=X.get(Yt.id),Mr=(Oe==null?void 0:Oe.layerLevel)??0;for(const Ft of He){if(Et.has(Ft))continue;const ue=X.get(Ft);((ue==null?void 0:ue.layerLevel)??0)<Mr&&(Et.add(Ft),et.add(Ft),Qt.push({id:Ft,d:Yt.d+1}))}}};et.add(y.value),W>0&&K(y.value,W),q>0&&pt(y.value,q)}else for(const O of ot)et.add(O);const it=[];for(const O of V.layers){let W=((O==null?void 0:O.nodes)??[]).filter(K=>et.has(String((K==null?void 0:K.id)??"")));Number((O==null?void 0:O.level)??0)===1&&W.length>Y&&(W=W.sort((K,pt)=>(pt.size||0)-(K.size||0)).slice(0,Y)),W.length&&it.push({...O,nodes:W})}const tt=_t.filter(O=>et.has(String((O==null?void 0:O.source)??""))&&et.has(String((O==null?void 0:O.target)??"")));o.value={layers:it,links:tt,stats:{...V.stats,total_links:tt.length}},L()},R=()=>{y.value="",k()},N=(V,H,G,Y)=>{d.value=H||"__all__",p.value=G||"",y.value=V,Y==="cluster"?(_.value=3,S.value=0):Y==="tag"?(_.value=2,S.value=1):Y==="abstract"?(_.value=1,S.value=2):(_.value=2,S.value=2),k()},E=()=>{d.value="__all__",p.value="",g.value=3,y.value="",i.value&&(o.value={...i.value,layers:P(i.value.layers,m.value||200)}),L()},z=()=>{if(!o.value||!s.value)return;u&&u.dispose(),u=VG(s.value);const H=[...o.value.layers].reverse(),G=[],Y=2400,X=120,ot=180;h={};const _t=[];for(const W of H){const q=W.nodes.length;if(q===0){_t.push(0);continue}const K=Math.max(.3,1-q/500),pt=X+(ot-X)*K,Tt=Math.ceil(Math.sqrt(q));_t.push(Tt*pt)}const At=[];let st=300;H.forEach((W,q)=>{const K=_t[q];if(K===0)return;const pt=_t[q+1]??K,St=.5,Tt=(K+pt)*St;At.push({startX:st,width:K}),st+=K+Tt}),H.forEach((W,q)=>{const K=W.nodes.length;if(K===0)return;const St=At[q].startX,Tt=Math.max(.3,1-K/500)*(W.name.toLowerCase().includes("abstract")?2:1),Et=X+(ot-X)*Tt,Yt=Math.ceil(Math.sqrt(K)),Oe=Math.ceil(K/Yt)*Et,Ft=W.nodes.reduce((Pe,Zr)=>Pe+Zr.id.charCodeAt(0),0)*7%500-250,ue=(Y-Oe)/2+Ft;W.nodes.forEach((Pe,Zr)=>{const Ha=Math.floor(Zr/Yt);let Wa=(Zr%Yt-(Yt-1)/2)*Et,va=Ha*Et;const Xt=Pe.id.split("").reduce((Mh,Bk)=>Mh+Bk.charCodeAt(0),0),$a=Xt*37.5%(Math.PI*2),Ah=Et*.8*(Xt*13%100)/100,Dk=Et*.4*(Xt*23%100)/100-Et*.2,Lk=Et*.4*(Xt*41%100)/100-Et*.2;Wa+=Dk,va+=Lk;const Ik=Wa+Math.cos($a)*Ah,Pk=va+Math.sin($a)*Ah,Rk=St+Et/2+Ik,kk=ue+Pk,F_=20,Ek=60,Ok=Math.sqrt(Pe.size)/5,Nk=Math.max(F_,Math.min(Ek,F_+Ok));G.push({id:Pe.id,name:Pe.label,x:Rk,y:kk,fixed:!0,symbolSize:Nk,value:Pe.size,category:W.level,itemStyle:{color:D(W.level)},label:{show:!0,fontSize:11,color:"#fff",position:"inside",overflow:"truncate",formatter:Mh=>Mh.name},metadata:Pe.metadata,layerName:W.name}),h[Pe.id]=G.length-1})});const et=o.value.links.map(W=>({source:W.source,target:W.target,value:W.weight,lineStyle:{width:Math.max(.5,Math.min(2,W.weight/100)),opacity:.3,curveness:.1}})),it=H.map(W=>({name:W.name})),tt={tooltip:{renderMode:"html",appendToBody:!1,className:"iib-tg-tooltip",backgroundColor:"rgba(15, 23, 42, 0.92)",borderColor:"rgba(255,255,255,0.14)",borderWidth:1,padding:[10,12],textStyle:{color:"#fff"},extraCssText:"border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.35); z-index: 9999;",triggerOn:"none",enterable:!0,formatter:W=>{if(W.dataType==="node"){const q=W.data,K=String(q.id||""),pt=q.metadata||{},St=Number(pt.image_count??q.value??0),Tt=pt.cluster_count!=null?Number(pt.cluster_count):null,Et=pt.level!=null?Number(pt.level):null,Qt=String(pt.type||""),Yt=[];!Number.isNaN(St)&&St>0&&Yt.push(`🖼️ ${St}`),Tt!=null&&!Number.isNaN(Tt)&&Yt.push(`🧩 ${Tt}`),Et!=null&&!Number.isNaN(Et)&&Yt.push(`🏷️ L${Et}`);const He=Qt==="tag",Oe=Qt==="tag"||Qt==="abstract"||Qt==="cluster",Mr=Qt==="cluster",Ft=[He?`<button data-action="search" data-nodeid="${K}" style="border:1px solid rgba(255,255,255,0.35); background: rgba(24,144,255,0.18); color:#fff; padding:4px 10px; border-radius:999px; cursor:pointer;">${Ut("search")}</button>`:"",Oe?`<button data-action="filter" data-nodeid="${K}" style="border:1px solid rgba(255,255,255,0.30); background: rgba(255,255,255,0.10); color:#fff; padding:4px 10px; border-radius:999px; cursor:pointer;">${Ut("tagGraphTooltipFilter")}</button>`:"",Mr?`<button data-action="openCluster" data-nodeid="${K}" style="border:1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); color:#fff; padding:4px 10px; border-radius:999px; cursor:pointer;">${Ut("tagGraphTooltipOpenCluster")}</button>`:"",`<button data-action="close" data-nodeid="${K}" style="border:1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.10); color:#fff; padding:4px 10px; border-radius:999px; cursor:pointer;">${Ut("close")}</button>`].filter(Boolean).join("");return`
            <div class="iib-tg-tip" data-nodeid="${K}" style="min-width: 180px;">
              <div style="font-weight: 700; margin-bottom: 6px; color:#fff;">${W.name}</div>
              <div style="display:flex; gap:10px; flex-wrap:wrap; font-size:12px; opacity:.9; color:#fff;">
                ${Yt.map(ue=>`<span>${ue}</span>`).join("")}
              </div>
              <div style="margin-top: 10px; display:flex; gap:8px; flex-wrap:wrap;">
                ${Ft}
              </div>
            </div>
          `}return""}},legend:[{data:it.map(W=>W.name),orient:"vertical",right:10,bottom:10,textStyle:{color:"#fff"}}],series:[{type:"graph",layout:"none",data:G,links:et,categories:it,roam:!0,scaleLimit:{min:.2,max:5},draggable:!1,blur:{itemStyle:{opacity:.15},lineStyle:{opacity:.08},label:{opacity:.25}},label:{show:!0,position:"inside",overflow:"truncate",color:"#fff"},lineStyle:{color:"source",curveness:.1},emphasis:{focus:"adjacency",lineStyle:{width:3}},zoom:1}]};u.setOption(tt);const O=()=>{u&&u.dispatchAction({type:"hideTip"})};u.on("click",W=>{var q,K,pt;if(W.dataType==="node"){const St=W.data;if(((q=St.metadata)==null?void 0:q.type)==="tag"){const Tt=h[String(St.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else if(((K=St.metadata)==null?void 0:K.type)==="cluster"){const Tt=h[String(St.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else if(((pt=St.metadata)==null?void 0:pt.type)==="abstract"){const Tt=h[String(St.id||"")];Tt!=null&&(u==null||u.dispatchAction({type:"showTip",seriesIndex:0,dataIndex:Tt}))}else Jr.info(`Abstract category: ${W.name}`)}}),u.getZr().on("click",W=>{W!=null&&W.target||O()}),v&&(document.removeEventListener("click",v,!0),v=null),v=W=>{var Tt,Et,Qt,Yt,He;const q=W.target;if(!q)return;const K=(Tt=q.closest)==null?void 0:Tt.call(q,"button[data-action]");if(K){const Oe=K.getAttribute("data-action")||"",Mr=K.getAttribute("data-nodeid")||"",Ft=h[Mr];if(Oe==="search"&&Ft!=null){const ue=G[Ft]&&G[Ft].name||"";ue&&(e("searchTag",ue),Jr.info(`${Ut("search")}: ${ue}`)),O()}else if(Oe==="filter"&&Ft!=null){const ue=G[Ft]&&G[Ft].layerName||"__all__",Pe=G[Ft]&&G[Ft].name||"",Zr=String(G[Ft]&&G[Ft].id||Mr),Ha=String(G[Ft]&&G[Ft].metadata&&G[Ft].metadata.type||"");d.value=ue||"__all__",p.value=Pe,N(Zr,String(ue||"__all__"),String(Pe||""),Ha),O()}else if(Oe==="openCluster"&&Ft!=null){const ue=G[Ft]&&G[Ft].metadata||{},Pe=G[Ft]&&G[Ft].name||"",Zr=Number(ue.image_count||0),Ha=String(((Qt=(Et=o.value)==null?void 0:Et.stats)==null?void 0:Qt.topic_cluster_cache_key)||""),Po=String(ue.cluster_id||"");if(!Ha||!Po){Jr.warning("Cluster data is incomplete, please re-generate clustering result"),O();return}(async()=>{const Wa=Jr.loading("Loading cluster images...",0);try{const va=await Wk({topic_cluster_cache_key:Ha,cluster_id:Po}),Xt=Array.isArray(va==null?void 0:va.paths)?va.paths:[];Xt.length?e("openCluster",{title:Pe,paths:Xt,size:Zr||Xt.length}):Jr.warning("No images found in this cluster"),O()}finally{Wa==null||Wa()}})()}else Oe==="close"&&O();W.preventDefault(),W.stopPropagation();return}if((Yt=q.closest)==null?void 0:Yt.call(q,".iib-tg-tip"))return;(((He=s.value)==null?void 0:He.contains(q))??!1)||O()},document.addEventListener("click",v,!0)};return gs(()=>t.folders,()=>{I()},{immediate:!0}),gs([o,s],()=>{o.value&&s.value&&Dh(()=>{z()})}),gs(m,()=>{o.value&&k()}),IA(()=>{f=()=>{u&&u.resize()},window.addEventListener("resize",f),c=()=>{b.value=!!document.fullscreenElement,Dh(()=>{u==null||u.resize()})},document.addEventListener("fullscreenchange",c)}),zk(()=>{f&&(window.removeEventListener("resize",f),f=null),c&&(document.removeEventListener("fullscreenchange",c),c=null),v&&(document.removeEventListener("click",v,!0),v=null),u&&u.dispose()}),(V,H)=>{const G=RA,Y=kA,X=EA,ot=Hk,_t=OA,At=NA,st=BA,et=zA;return te(),Ce("div",{ref_key:"fullscreenRef",ref:l,class:"tag-hierarchy-graph"},[a.value?(te(),Ce("div",Ptt,[Ht(G,{size:"large"}),Mt("div",Rtt,Vt(ve(Ut)("tagGraphGenerating")),1)])):n.value?(te(),Ce("div",ktt,[Ht(Y,{type:"error",message:n.value,"show-icon":""},null,8,["message"])])):i.value?(te(),Ce("div",Ett,[Mt("div",Ott,[Mt("div",Ntt,[Ht(ot,null,{default:le(()=>[Ht(X,null,{default:le(()=>{var it,tt;return[ze(Vt(ve(Ut)("tagGraphStatLayers"))+": "+Vt(((tt=(it=o.value)==null?void 0:it.layers)==null?void 0:tt.length)??0),1)]}),_:1}),Ht(X,null,{default:le(()=>[ze(Vt(ve(Ut)("tagGraphStatNodes"))+": "+Vt(T.value),1)]),_:1}),Ht(X,null,{default:le(()=>[ze(Vt(ve(Ut)("tagGraphStatLinks"))+": "+Vt(C.value),1)]),_:1})]),_:1}),Btt,Ht(ot,{size:8},{default:le(()=>[Ht(_t,{value:d.value,"onUpdate:value":H[0]||(H[0]=it=>d.value=it),options:w.value,style:{width:"140px"},getPopupContainer:it=>it.parentElement||it},null,8,["value","options","getPopupContainer"]),Ht(At,{value:p.value,"onUpdate:value":H[1]||(H[1]=it=>p.value=it),style:{width:"200px"},"allow-clear":"",placeholder:ve(Ut)("tagGraphFilterPlaceholder"),onKeydown:PA(R,["enter"])},null,8,["value","placeholder","onKeydown"]),Ht(st,{value:g.value,"onUpdate:value":H[2]||(H[2]=it=>g.value=it),size:"small",min:1,max:20,step:1,style:{width:"92px"},title:ve(Ut)("tagGraphFilterHopsTitle")},null,8,["value","title"]),Ht(st,{value:m.value,"onUpdate:value":H[3]||(H[3]=it=>m.value=it),size:"small",min:10,max:1e3,step:10,style:{width:"100px"},title:ve(Ut)("tagGraphKeywordLimitTitle")},null,8,["value","title"]),Ht(et,{size:"small",onClick:R},{default:le(()=>[ze(Vt(ve(Ut)("tagGraphFilterApply")),1)]),_:1}),Ht(et,{size:"small",onClick:E},{default:le(()=>[ze(Vt(ve(Ut)("tagGraphFilterReset")),1)]),_:1}),Ht(et,{size:"small",title:b.value?ve(Ut)("exitFullscreen"):ve(Ut)("fullscreen"),onClick:x},{default:le(()=>[b.value?(te(),Ka(ve(Vk),{key:0})):(te(),Ka(ve(Gk),{key:1}))]),_:1},8,["title"])]),_:1})])]),Mt("div",{ref_key:"chartRef",ref:s,class:"chart-container"},null,512)])):fr("",!0)],512)}}});const Vtt=FA(ztt,[["__scopeId","data-v-eb57f19b"]]),gr=r=>(VA("data-v-4ef869f3"),r=r(),GA(),r),Gtt={class:"topic-search"},Ftt={class:"toolbar"},Htt={class:"left"},Wtt={class:"title"},$tt=gr(()=>Mt("span",{class:"icon"},"🧠",-1)),Utt={class:"right"},Ytt={key:0,style:{opacity:"0.75"}},Ztt={class:"label"},Xtt={class:"label"},qtt={style:{display:"grid",gap:"6px"}},Ktt=gr(()=>Mt("span",{style:{"margin-right":"6px"}},"🔑",-1)),jtt={key:0},Jtt=gr(()=>Mt("span",{style:{"margin-right":"6px"}},"🧩",-1)),Qtt=gr(()=>Mt("span",{style:{"margin-right":"6px"}},"🐍",-1)),tet={style:{opacity:"0.85"}},eet=gr(()=>Mt("span",{style:{"margin-right":"6px"}},"💻",-1)),ret={key:2,style:{margin:"10px 0 0 0",position:"relative"}},aet={key:3,style:{margin:"10px 0 0 0",padding:"8px 12px",background:"#fffbe6",border:"1px solid #ffe58f","border-radius":"8px",display:"flex","align-items":"center",gap:"10px"}},net=gr(()=>Mt("span",null,"💾",-1)),iet=gr(()=>Mt("div",{style:{flex:"1"}},null,-1)),oet={key:4,style:{margin:"10px 0 0 0"}},set={style:{margin:"10px 0",display:"flex","align-items":"center",gap:"8px"}},uet=gr(()=>Mt("span",{style:{"font-size":"13px",color:"#666"}},"View:",-1)),fet={key:5},vet={key:0,style:{"margin-top":"10px"}},cet={key:1,class:"grid"},het=["onClick"],det={class:"card-top"},pet={class:"card-title line-clamp-1"},get={class:"card-count"},yet={class:"card-desc line-clamp-2"},met={key:2,class:"empty"},_et={class:"guide"},xet={class:"guide-row"},bet=gr(()=>Mt("span",{class:"guide-icon"},"🗂️",-1)),wet={class:"guide-text"},Tet={class:"guide-row"},Cet=gr(()=>Mt("span",{class:"guide-icon"},"🧠",-1)),Aet={class:"guide-text"},Met={class:"guide-row"},Det=gr(()=>Mt("span",{class:"guide-icon"},"🔎",-1)),Let={class:"guide-text"},Iet={class:"guide-row"},Pet=gr(()=>Mt("span",{class:"guide-icon"},"✨",-1)),Ret={class:"guide-text"},ket={class:"guide-row"},Eet=gr(()=>Mt("span",{class:"guide-icon"},"🚀",-1)),Oet={class:"guide-text"},Net={class:"guide-hint"},Bet=gr(()=>Mt("span",{class:"guide-icon"},"💡",-1)),zet={key:0,class:"guide-text"},Vet={key:1,class:"guide-text"},Get={key:6,style:{height:"calc(100vh - 300px)","min-height":"600px"}},Fet="iib_topic_search_hide_requirements_v1",Het="iib_topic_search_cache_collapsed_v1",ng="topic_search_scope",Wet=LA({__name:"TopicSearch",props:{tabIdx:{},paneIdx:{}},setup(r){const e=r,t=$k(),a=Kt(!1),n=Kt(.9),i=Kt(2),o=Kt(null),s=Kt(null),l=Kt(!1),u=H_(Fet,!0),f=()=>{u.value=!1},v=H_(Het,!1),c=()=>{v.value=!1},h=()=>{v.value=!0},d=Kt(null),p=Kt("");let g=null;const y=Rr(()=>{var W;const O=(W=d.value)==null?void 0:W.status;return O==="queued"||O==="running"}),m=Rr(()=>{var W;const O=String(((W=d.value)==null?void 0:W.stage)||"");return!O||O==="queued"||O==="init"?Ut("topicSearchJobQueued"):O==="embedding"?Ut("topicSearchJobStageEmbedding"):O==="clustering"?Ut("topicSearchJobStageClustering"):O==="titling"?Ut("topicSearchJobStageTitling"):O==="done"?Ut("topicSearchJobStageDone"):O==="error"?Ut("topicSearchJobStageError"):`${Ut("topicSearchJobStage")}: ${O}`}),_=Rr(()=>{var pt;const O=(pt=d.value)==null?void 0:pt.progress;if(!O)return 0;const W=Number(O.to_embed??0),q=Number(O.embedded_done??0);if(W<=0)return 0;const K=Math.floor(q/W*100);return Math.max(0,Math.min(100,K))}),S=Rr(()=>{var W,q,K,pt;const O=(W=d.value)==null?void 0:W.progress;if(!O)return"";if(((q=d.value)==null?void 0:q.stage)==="embedding"){const St=Number(O.embedded_done??0),Tt=Number(O.to_embed??0),Et=Number(O.scanned??0),Qt=String(O.folder??"");return Ut("topicSearchJobEmbeddingDesc",[St,Tt,Et,Qt])}if(((K=d.value)==null?void 0:K.stage)==="clustering"){const St=Number(O.items_done??0),Tt=Number(O.items_total??0);return Ut("topicSearchJobClusteringDesc",[St,Tt])}if(((pt=d.value)==null?void 0:pt.stage)==="titling"){const St=Number(O.clusters_done??0),Tt=Number(O.clusters_total??0);return Ut("topicSearchJobTitlingDesc",[St,Tt])}return""}),b=Kt(""),x=Kt(!1),w=Kt(null),T=Kt("clusters"),C=Kt(!1),M=Kt([]),D=Kt(!1),I=Kt(!1);let L=null,P="";const k=Rr(()=>(t.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q)}).map(W=>String((W==null?void 0:W.dir)??"")).filter(Boolean));gs(k,O=>{O!=null&&O.length&&(M.value=(M.value??[]).filter(W=>!O.includes(W)))},{immediate:!0});const R=Rr(()=>(t.quickMovePaths??[]).filter(W=>{const q=String((W==null?void 0:W.key)??"");return!(((W==null?void 0:W.types)??[]).includes("preset")&&["cwd","home","desktop"].includes(q))}).map(W=>({value:W.dir,label:W.zh||W.dir}))),N=Rr(()=>(M.value??[]).filter(Boolean).length),E=Rr(()=>(M.value??[]).filter(Boolean)),z=Rr(()=>{var O;return((O=o.value)==null?void 0:O.clusters)??[]}),V=async()=>{var q,K,pt;if(D.value)return;try{const St=await Xk();t.conf=St}catch{}const O=((q=t.conf)==null?void 0:q.app_fe_setting)||{},W=(K=O==null?void 0:O[ng])==null?void 0:K.folder_paths;Array.isArray(W)&&W.length&&!((pt=M.value)!=null&&pt.length)&&(M.value=W.map(St=>String(St)).filter(Boolean)),D.value=!0},H=async()=>{var W,q;if((W=t.conf)!=null&&W.is_readonly||!D.value)return;const O={folder_paths:E.value,updated_at:Date.now()};await qk(ng,O),(q=t.conf)!=null&&q.app_fe_setting&&(t.conf.app_fe_setting[ng]=O)},G=()=>{var W;if((W=t.conf)!=null&&W.is_readonly||!D.value)return;const O=JSON.stringify(E.value);O!==P&&(L&&clearTimeout(L),L=setTimeout(async()=>{I.value=!0;try{await H(),P=O}finally{I.value=!1}},500))},Y=()=>{g&&(clearInterval(g),g=null)},X=async()=>{const O=p.value;if(!O)return;const W=await aE(O);d.value=W,W.status==="done"?(Y(),a.value=!1,W.result&&(o.value=W.result),s.value=null):W.status==="error"&&(Y(),a.value=!1,Jr.error(W.error||Ut("topicSearchJobFailed")))},ot=async()=>{if(N.value)try{const O=await Kk({threshold:n.value,min_cluster_size:i.value,lang:t.lang,folder_paths:E.value});s.value=O,O.cache_hit&&O.result&&(o.value=O.result)}catch{}},_t=async()=>{var O;if(!((O=t.conf)!=null&&O.is_readonly)){if(!N.value){Jr.warning(Ut("topicSearchNeedScope")),C.value=!0;return}Y(),a.value=!0,d.value=null,p.value="";try{await jk();const W=await Jk({threshold:n.value,min_cluster_size:i.value,lang:t.lang,folder_paths:E.value});p.value=W.job_id,await X(),g=setInterval(()=>{X()},800)}catch(W){throw a.value=!1,W}}},At=async()=>{const O=(b.value||"").trim();if(O&&!x.value){if(!N.value){Jr.warning(Ut("topicSearchNeedScope")),C.value=!0;return}x.value=!0;try{w.value=await Qk({query:O,top_k:80,ensure_embed:!l.value,folder_paths:E.value}),l.value||(l.value=!0),st()}finally{x.value=!1}}},st=()=>{var pt;const O=(((pt=w.value)==null?void 0:pt.results)??[]).map(St=>St.path).filter(Boolean);if(!O.length)return;const W=`Query: ${b.value.trim()}（${O.length}）`,q={type:"topic-search-matched-image-grid",name:W,key:Date.now()+Ro(),id:Ro(),title:W,paths:O},K=t.tabList[e.tabIdx];K.panes.push(q),K.key=q.key},et=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}（${O.size}）`,key:Date.now()+Ro(),id:Ro(),title:O.title,paths:O.paths},q=t.tabList[e.tabIdx];q.panes.push(W),q.key=W.key},it=O=>{const W={type:"topic-search-matched-image-grid",name:`${O.title}（${O.size}）`,key:Date.now()+Ro(),id:Ro(),title:O.title,paths:O.paths},q=t.tabList[e.tabIdx];q.panes.push(W),q.key=W.key},tt=O=>{b.value=O,At()};return IA(()=>{(async()=>(await V(),N.value&&await ot()))()}),Uk(()=>{Y()}),gs(E,()=>{l.value=!1},{deep:!0}),gs(()=>E.value,()=>{G()},{deep:!0}),(O,W)=>{var Mr,Ft,ue,Pe,Zr,Ha,Po,Wa,va;const q=EA,K=zA,pt=NA,St=BA,Tt=kA,Et=tE,Qt=eE,Yt=RA,He=OA,Oe=rE;return te(),Ce("div",Gtt,[Mt("div",Ftt,[Mt("div",Htt,[Mt("div",Wtt,[$tt,Mt("span",null,Vt(O.$t("topicSearchTitleExperimental")),1)]),o.value?(te(),Ka(q,{key:0,color:"blue"},{default:le(()=>[ze("共 "+Vt(o.value.count)+" 张",1)]),_:1})):fr("",!0),o.value?(te(),Ka(q,{key:1,color:"geekblue"},{default:le(()=>[ze("主题 "+Vt(o.value.clusters.length),1)]),_:1})):fr("",!0),o.value?(te(),Ka(q,{key:2,color:"default"},{default:le(()=>[ze("噪声 "+Vt(o.value.noise.length),1)]),_:1})):fr("",!0)]),Mt("div",Utt,[Ht(K,{onClick:W[0]||(W[0]=Xt=>C.value=!0)},{default:le(()=>[ze(Vt(O.$t("topicSearchScope"))+" ",1),N.value?(te(),Ce("span",Ytt,"（"+Vt(N.value)+"）",1)):fr("",!0)]),_:1}),Ht(pt,{value:b.value,"onUpdate:value":W[1]||(W[1]=Xt=>b.value=Xt),style:{width:"min(420px, 72vw)"},placeholder:O.$t("topicSearchQueryPlaceholder"),disabled:x.value,onKeydown:PA(At,["enter"]),"allow-clear":""},null,8,["value","placeholder","disabled","onKeydown"]),Ht(K,{loading:x.value,onClick:At},{default:le(()=>[ze(Vt(O.$t("search")),1)]),_:1},8,["loading"]),(Ft=(Mr=w.value)==null?void 0:Mr.results)!=null&&Ft.length?(te(),Ka(K,{key:0,onClick:st},{default:le(()=>[ze(Vt(O.$t("topicSearchOpenResults")),1)]),_:1})):fr("",!0),Mt("span",Ztt,Vt(O.$t("topicSearchThreshold")),1),Ht(St,{value:n.value,"onUpdate:value":W[2]||(W[2]=Xt=>n.value=Xt),min:.5,max:.99,step:.01},null,8,["value"]),Mt("span",Xtt,Vt(O.$t("topicSearchMinClusterSize")),1),Ht(St,{value:i.value,"onUpdate:value":W[3]||(W[3]=Xt=>i.value=Xt),min:1,max:50,step:1},null,8,["value"]),Ht(K,{type:"primary",ghost:"",loading:a.value,disabled:(ue=ve(t).conf)==null?void 0:ue.is_readonly,onClick:_t},{default:le(()=>[ze(Vt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])])]),(Pe=ve(t).conf)!=null&&Pe.is_readonly?(te(),Ka(Tt,{key:0,type:"warning",message:O.$t("readonlyModeSettingPageDesc"),style:{margin:"12px 0"},"show-icon":""},null,8,["message"])):fr("",!0),ve(u)?(te(),Ka(Tt,{key:1,type:"info","show-icon":"",closable:"",style:{margin:"10px 0 0 0"},message:O.$t("topicSearchRequirementsTitle"),onClose:f},{description:le(()=>[Mt("div",qtt,[Mt("div",null,[Ktt,Mt("span",null,Vt(O.$t("topicSearchRequirementsOpenai")),1)]),ve(Yk)?(te(),Ce("div",jtt,[Jtt,Mt("span",null,Vt(O.$t("topicSearchRequirementsDepsDesktop")),1)])):(te(),Ce(W_,{key:1},[Mt("div",null,[Qtt,Mt("span",null,Vt(O.$t("topicSearchRequirementsDepsPython")),1)]),Mt("div",tet,[eet,Mt("span",null,Vt(O.$t("topicSearchRequirementsInstallCmd")),1)])],64))])]),_:1},8,["message"])):fr("",!0),(Zr=s.value)!=null&&Zr.cache_hit&&((Ha=s.value)!=null&&Ha.stale)&&!ve(v)?(te(),Ce("div",ret,[Ht(Tt,{type:"warning","show-icon":"",message:O.$t("topicSearchCacheStale"),description:O.$t("topicSearchCacheStaleDesc")},{action:le(()=>{var Xt;return[Ht(K,{size:"small",loading:a.value||y.value,disabled:(Xt=ve(t).conf)==null?void 0:Xt.is_readonly,onClick:_t},{default:le(()=>[ze(Vt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"])]}),_:1},8,["message","description"]),Ht(K,{size:"small",style:{position:"absolute",top:"8px",right:"8px","z-index":"1"},onClick:h},{default:le(()=>[ze(" ^ ")]),_:1})])):fr("",!0),(Po=s.value)!=null&&Po.cache_hit&&((Wa=s.value)!=null&&Wa.stale)&&ve(v)?(te(),Ce("div",aet,[net,Ht(K,{size:"small",loading:a.value||y.value,disabled:(va=ve(t).conf)==null?void 0:va.is_readonly,onClick:_t},{default:le(()=>[ze(Vt(O.$t("topicSearchCacheUpdate")),1)]),_:1},8,["loading","disabled"]),iet,Ht(K,{size:"small",onClick:c},{default:le(()=>[ze(" v ")]),_:1})])):fr("",!0),y.value?(te(),Ce("div",oet,[Ht(Tt,{type:"info","show-icon":"",message:m.value,description:S.value},null,8,["message","description"]),Ht(Et,{percent:_.value,size:"small",style:{"margin-top":"8px"}},null,8,["percent"])])):fr("",!0),Mt("div",set,[uet,Ht(Qt,{checked:T.value,"onUpdate:checked":W[4]||(W[4]=Xt=>T.value=Xt),"checked-value":"graph","un-checked-value":"clusters","checked-children":"Tag Graph","un-checked-children":"Clusters"},null,8,["checked"])]),T.value==="clusters"?(te(),Ce("div",fet,[Ht(Yt,{spinning:a.value},{default:le(()=>{var Xt;return[w.value?(te(),Ce("div",vet,[Ht(Tt,{type:"info",message:O.$t("topicSearchRecallMsg",[w.value.results.length,w.value.count,w.value.top_k]),"show-icon":""},null,8,["message"])])):fr("",!0),z.value.length?(te(),Ce("div",cet,[(te(!0),Ce(W_,null,Zk(z.value,$a=>(te(),Ce("div",{class:"card",key:$a.id,onClick:Ah=>et($a)},[Mt("div",det,[Mt("div",pet,Vt($a.title),1),Mt("div",get,Vt($a.size),1)]),Mt("div",yet,Vt($a.sample_prompt),1)],8,het))),128))])):(te(),Ce("div",met,[Ht(Tt,{type:"info","show-icon":"",message:O.$t("topicSearchGuideTitle"),style:{"margin-bottom":"10px"}},null,8,["message"]),Mt("div",_et,[Mt("div",xet,[bet,Mt("span",wet,Vt(O.$t("topicSearchGuideStep1")),1),Ht(K,{size:"small",onClick:W[5]||(W[5]=$a=>C.value=!0)},{default:le(()=>[ze(Vt(O.$t("topicSearchScope")),1)]),_:1})]),Mt("div",Tet,[Cet,Mt("span",Aet,Vt(O.$t("topicSearchGuideStep2")),1),Ht(K,{size:"small",loading:a.value,disabled:(Xt=ve(t).conf)==null?void 0:Xt.is_readonly,onClick:_t},{default:le(()=>[ze(Vt(O.$t("refresh")),1)]),_:1},8,["loading","disabled"])]),Mt("div",Met,[Det,Mt("span",Let,Vt(O.$t("topicSearchGuideStep3")),1)]),Mt("div",Iet,[Pet,Mt("span",Ret,Vt(O.$t("topicSearchGuideAdvantage1")),1)]),Mt("div",ket,[Eet,Mt("span",Oet,Vt(O.$t("topicSearchGuideAdvantage2")),1)]),Mt("div",Net,[Bet,N.value?(te(),Ce("span",Vet,Vt(O.$t("topicSearchGuideEmptyReasonNoTopics")),1)):(te(),Ce("span",zet,Vt(O.$t("topicSearchGuideEmptyReasonNoScope")),1))])])]))]}),_:1},8,["spinning"])])):T.value==="graph"?(te(),Ce("div",Get,[Ht(Vtt,{folders:E.value,lang:ve(t).lang,onSearchTag:tt,onOpenCluster:it},null,8,["folders","lang"])])):fr("",!0),Ht(Oe,{visible:C.value,"onUpdate:visible":W[7]||(W[7]=Xt=>C.value=Xt),title:O.$t("topicSearchScopeModalTitle"),"mask-closable":!0,onOk:W[8]||(W[8]=()=>{C.value=!1,H()})},{default:le(()=>[Ht(Tt,{type:"info","show-icon":"",message:O.$t("topicSearchScopeTip"),style:{"margin-bottom":"10px"}},null,8,["message"]),I.value?(te(),Ka(Tt,{key:0,type:"info","show-icon":"",message:O.$t("topicSearchSavingToBackend"),style:{"margin-bottom":"10px"}},null,8,["message"])):fr("",!0),Ht(He,{value:M.value,"onUpdate:value":W[6]||(W[6]=Xt=>M.value=Xt),mode:"multiple",style:{width:"100%"},options:R.value,placeholder:O.$t("topicSearchScopePlaceholder"),"max-tag-count":3,getPopupContainer:Xt=>Xt.parentElement||Xt,"allow-clear":""},null,8,["value","options","placeholder","getPopupContainer"])]),_:1},8,["visible","title"])])}}});const Uet=FA(Wet,[["__scopeId","data-v-4ef869f3"]]);export{Uet as default};
