codecharta-visualization 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +0,0 @@
1
- import{Wt as Tt$1,_t as LHe}from"./main-TLHAY4SS.js";var RT={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function CO(t){return t.replaceAll(/[&<>"']/g,e=>RT[e])}var rf=function(t,e){return rf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},rf(t,e)};function se(t,e){if(typeof e!=`function`&&e!==null)throw new TypeError(`Class extends value `+String(e)+` is not a constructor or null`);rf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var LT=(function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t})();var Ur=new((function(){function t(){this.browser=new LT,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 t})());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(Ur.wxa=!0,Ur.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Ur.worker=!0:!Ur.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Ur.node=!0,Ur.svgSupported=!0):NT(navigator.userAgent,Ur);function NT(t,e){var r=e.browser,i=t.match(/Firefox\/([\d.]+)/),n=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(`.`)[0]>18),o&&(r.weChat=!0),e.svgSupported=typeof SVGRect<`u`,e.touchEventsSupported=`ontouchstart`in window&&!r.ie&&!r.edge,e.pointerEventsSupported=`onpointerdown`in window&&(r.edge||r.ie&&+r.version>=11);if(e.domSupported=typeof document<`u`){var l=document.documentElement.style;e.transform3dSupported=(r.ie&&`transition`in l||r.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in l)&&!(`OTransition`in l),e.transformSupported=e.transform3dSupported||r.ie&&+r.version>=9}}var q=Ur;var os=12;var Pt=os+`px sans-serif`;var BT=20;var UT=100;var zT=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function FT(t){var e={};if(typeof JSON>`u`)return e;for(var r=0;r<t.length;r++){var i=String.fromCharCode(r+32);e[i]=(t.charCodeAt(r)-BT)/UT}return e}var VT=FT(zT);var Ie={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var t,e;return function(r,i){if(!t){var n=Ie.createCanvas();t=n&&n.getContext(`2d`)}if(t)return e!==i&&(e=t.font=i||Pt),t.measureText(r);r=r||``,i=i||Pt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||os,s=0;if(i.indexOf(`mono`)>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=VT[r[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(t,e,r){var i=new Image;return i.onload=e,i.onerror=r,i.src=t,i},getTime:function(){return Date.now?Date.now():+new Date}};var Ev=at([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(t,e){return t[`[object `+e+`]`]=!0,t},{});var Dv=at([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(t,e){return t[`[object `+e+`Array]`]=!0,t},{});var Aa=Object.prototype.toString;var ls=Array.prototype;var HT=ls.forEach;var GT=ls.filter;var af=ls.slice;var YT=ls.map;var bv=function(){}.constructor;var ss=bv?bv.prototype:null;var of=`__proto__`;var nf=2311;var WT=Math.pow(2,53)-1;function us(){return nf>=WT&&(nf=0),nf++}function _n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<`u`&&console.error.apply(console,t)}function G(t){if(t==null||typeof t!=`object`)return t;var e=t,r=Aa.call(t);if(r===`[object Array]`){if(!Ma(t)){e=[];for(var i=0,n=t.length;i<n;i++)e[i]=G(t[i])}}else if(Dv[r]){if(!Ma(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var i=0,n=t.length;i<n;i++)e[i]=t[i]}}}else if(!Ev[r]&&!Ma(t)&&!yn(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==of&&(e[o]=G(t[o]))}return e}function pe(t,e,r){if(!N(e)||!N(t))return r?G(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==of){var n=t[i],a=e[i];N(a)&&N(n)&&!L(a)&&!L(n)&&!yn(a)&&!yn(n)&&!Cv(a)&&!Cv(n)&&!Ma(a)&&!Ma(n)?pe(n,a,r):(r||!(i in t))&&(t[i]=G(e[i]))}return t}function R(t,e){if(Object.assign)Object.assign(t,e);else for(var r in e)e.hasOwnProperty(r)&&r!==of&&(t[r]=e[r]);return t}function Mv(t,e,r){t=t||{};for(var i=0;i<r.length;i++){var n=r[i];t[n]=e[n]}return t}function re(t,e,r){for(var i=ie(e),n=0,a=i.length;n<a;n++){var o=i[n];(r?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}Ie.createCanvas;function Z(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r}return-1}function fs(t,e){var r=t.prototype;function i(){}i.prototype=e.prototype,t.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(t.prototype[n]=r[n]);t.prototype.constructor=t,t.superClass=e}function nt(t,e,r){if(t=`prototype`in t?t.prototype:t,e=`prototype`in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),n=0;n<i.length;n++){var a=i[n];a!==`constructor`&&(r?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else re(t,e,r)}function ke(t){return!t||typeof t==`string`?!1:typeof t.length==`number`}function w(t,e,r){if(t&&e)if(t.forEach&&t.forEach===HT)t.forEach(e,r);else if(t.length===+t.length)for(var i=0,n=t.length;i<n;i++)e.call(r,t[i],i,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(r,t[a],a,t)}function U(t,e,r){if(!t)return[];if(!e)return cs(t);if(t.map&&t.map===YT)return t.map(e,r);for(var i=[],n=0,a=t.length;n<a;n++)i.push(e.call(r,t[n],n,t));return i}function at(t,e,r,i){if(t&&e){for(var n=0,a=t.length;n<a;n++)r=e.call(i,r,t[n],n,t);return r}}function Ce(t,e,r){if(!t)return[];if(!e)return cs(t);if(t.filter&&t.filter===GT)return t.filter(e,r);for(var i=[],n=0,a=t.length;n<a;n++)e.call(r,t[n],n,t)&&i.push(t[n]);return i}function ie(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);return e}function XT(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return t.apply(e,r.concat(af.call(arguments)))}}var oe=ss&&V(ss.bind)?ss.call.bind(ss.bind):XT;function Ee(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return function(){return t.apply(this,e.concat(af.call(arguments)))}}function L(t){return Array.isArray?Array.isArray(t):Aa.call(t)===`[object Array]`}function V(t){return typeof t==`function`}function P(t){return typeof t==`string`}function Oa(t){return Aa.call(t)===`[object String]`}function ae(t){return typeof t==`number`}function N(t){var e=typeof t;return e===`function`||!!t&&e===`object`}function Cv(t){return!!Ev[Aa.call(t)]}function De(t){return!!Dv[Aa.call(t)]}function yn(t){return typeof t==`object`&&typeof t.nodeType==`number`&&typeof t.ownerDocument==`object`}function zr(t){return t.colorStops!=null}function Av(t){return t.image!=null}function xn(t){return t!==t}function Sn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0,i=t.length;r<i;r++)if(t[r]!=null)return t[r]}function H(t,e){return t??e}function Yt(t,e,r){return t??e??r}function cs(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return af.apply(t,e)}function Tn(t){if(typeof t==`number`)return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function Be(t,e){if(!t)throw new Error(e)}function je(t){return t==null?null:typeof t.trim==`function`?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Ov=`__ec_primitive__`;function di(t){t[Ov]=!0}function Ma(t){return t[Ov]}var qT=(function(){function t(){this.data={}}return t.prototype.delete=function(e){var r=this.has(e);return r&&delete this.data[e],r},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,r){return this.data[e]=r,this},t.prototype.keys=function(){return ie(this.data)},t.prototype.forEach=function(e){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&e(r[i],i)},t})();var Iv=typeof Map==`function`;function KT(){return Iv?new Map:new qT}var ZT=(function(){function t(e){var r=L(e);this.data=KT();var i=this;e instanceof t?e.each(n):e&&w(e,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,r){return this.data.set(e,r),r},t.prototype.each=function(e,r){this.data.forEach(function(i,n){e.call(r,i,n)})},t.prototype.keys=function(){var e=this.data.keys();return Iv?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t})();function z(t){return new ZT(t)}function Rv(t,e){for(var r=new t.constructor(t.length+e.length),i=0;i<t.length;i++)r[i]=t[i];for(var n=t.length,i=0;i<e.length;i++)r[i+n]=e[i];return r}function Fr(t,e){var r;if(Object.create)r=Object.create(t);else{var i=function(){};i.prototype=t,r=new i}return e&&R(r,e),r}function ps(t){var e=t.style;e.webkitUserSelect=`none`,e.userSelect=`none`,e.webkitTapHighlightColor=`rgba(0,0,0,0)`,e[`-webkit-touch-callout`]=`none`}function Ue(t,e){return t.hasOwnProperty(e)}function we(){}var Lv=180/Math.PI;Number.EPSILON;var sf=function(t,e){return sf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r[n]=i[n])},sf(t,e)};function W(t,e){if(typeof e!=`function`&&e!==null)throw new TypeError(`Class extends value `+String(e)+` is not a constructor or null`);sf(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function Vr(t,e){return t??=0,e??=0,[t,e]}function Pv(t){return[t[0],t[1]]}function hs(t,e,r){return t[0]=e,t[1]=r,t}function lf(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function Nv(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function jT(t){return Math.sqrt(QT(t))}function QT(t){return t[0]*t[0]+t[1]*t[1]}function vs(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function kv(t,e){var r=jT(e);return r===0?(t[0]=0,t[1]=0):(t[0]=e[0]/r,t[1]=e[1]/r),t}function ds(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Bv=ds;function $T(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var mi=$T;function PO(t,e,r,i){return t[0]=e[0]+i*(r[0]-e[0]),t[1]=e[1]+i*(r[1]-e[1]),t}function dt(t,e,r){var i=e[0],n=e[1];return t[0]=r[0]*i+r[2]*n+r[4],t[1]=r[1]*i+r[3]*n+r[5],t}function gr(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function yr(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}var wn=(function(){function t(e,r){this.target=e,this.topTarget=r&&r.topTarget}return t})();var Uv=(function(){function t(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var r=e.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new wn(r,e),`dragstart`,e.event))},t.prototype._drag=function(e){var r=this._draggingTarget;if(r){var i=e.offsetX,n=e.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,e),this.handler.dispatchToElement(new wn(r,e),`drag`,e.event);var s=this.handler.findHover(i,n,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new wn(l,e),`dragleave`,e.event),s&&s!==l&&this.handler.dispatchToElement(new wn(s,e),`dragenter`,e.event))}},t.prototype._dragEnd=function(e){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new wn(r,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new wn(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},t})();var Qe=(function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r==`function`&&(n=i,i=r,r=null),!i||!e)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===i)return this;var l={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[e].push(l),this},t.prototype.isSilent=function(e){var r=this._$handlers;return!r||!r[e]||!r[e].length},t.prototype.off=function(e,r){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(r){if(i[e]){for(var n=[],a=0,o=i[e].length;a<o;a++)i[e][a].h!==r&&n.push(i[e][a]);i[e]=n}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},t.prototype.trigger=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t.prototype.triggerWithContext=function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[e],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t})();var tw=Math.log(2);function uf(t,e,r,i,n,a){var o=i+`-`+n,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~n)/tw);return t[r][l]}for(var u=i|1<<r,f=r+1;i&1<<f;)f++;for(var c=0,p=0,h=0;p<s;p++){var v=1<<p;v&n||(c+=(h%2?-1:1)*t[r][p]*uf(t,e-1,f,u,n|v,a),h++)}return a[o]=c,c}function ff(t,e){var r=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},n=uf(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*uf(r,7,o===0?1:0,1<<o,1<<s,i)/n*e[o];return function(l,u,f){var c=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/c,l[1]=(u*a[3]+f*a[4]+a[5])/c}}}var ms=`___zrEVENTSAVED`;var cf=[];function zv(t,e,r,i,n){return gs(cf,e,i,n,!0)&&gs(t,r,cf[0],cf[1])}function Fv(t,e){t&&r(t),e&&r(e);function r(i){var n=i[ms];n&&(n.clearMarkers&&n.clearMarkers(),delete i[ms])}}function gs(t,e,r,i,n){if(e.getBoundingClientRect&&q.domSupported&&!pf(e)){var a=e[ms]||(e[ms]={}),s=iw(rw(e,a),a,n);if(s)return s(t,r,i),!0}return!1}function rw(t,e){var r=e.markers;if(r)return r;r=e.markers=[];for(var i=[`left`,`right`],n=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,i[l]+`:0`,n[u]+`:0`,i[1-l]+`:auto`,n[1-u]+`:auto`,``].join(`!important;`),t.appendChild(o),r.push(o)}return e.clearMarkers=function(){w(r,function(f){f.parentNode&&f.parentNode.removeChild(f)})},r}function iw(t,e,r){for(var i=r?`invTrans`:`trans`,n=e[i],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=t[u].getBoundingClientRect(),c=2*u,p=f.left,h=f.top;o.push(p,h),l=l&&a&&p===a[c]&&h===a[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&n?n:(e.srcCoords=o,e[i]=r?ff(s,o):ff(o,s))}function pf(t){return t.nodeName.toUpperCase()===`CANVAS`}var nw=/([&<>"'])/g;var aw={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function He(t){return t==null?``:(t+``).replace(nw,function(e,r){return aw[r]})}var ow=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;var hf=[];var sw=q.browser.firefox&&+q.browser.version.split(`.`)[0]<39;function ys(t,e,r,i){return r=r||{},i?Vv(t,e,r):sw&&e.layerX!=null&&e.layerX!==e.offsetX?(r.zrX=e.layerX,r.zrY=e.layerY):e.offsetX!=null?(r.zrX=e.offsetX,r.zrY=e.offsetY):Vv(t,e,r),r}function Vv(t,e,r){if(q.domSupported&&t.getBoundingClientRect){var i=e.clientX,n=e.clientY;if(pf(t)){var a=t.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(gs(hf,t,i,n)){r.zrX=hf[0],r.zrY=hf[1];return}}r.zrX=r.zrY=0}function _s(t){return t||window.event}function mt(t,e,r){if(e=_s(e),e.zrX!=null)return e;var i=e.type;if(i&&i.indexOf(`touch`)>=0){var o=i!==`touchend`?e.targetTouches[0]:e.changedTouches[0];o&&ys(t,o,e,r)}else{ys(t,e,e,r);var a=lw(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&ow.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function lw(t){var e=t.wheelDelta;if(e)return e;var r=t.deltaX,i=t.deltaY;if(r==null||i==null)return e;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function Hv(t,e,r,i){t.addEventListener(e,r,i)}function Gv(t,e,r,i){t.removeEventListener(e,r,i)}var xs=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};var Wv=(function(){function t(){this._track=[]}return t.prototype.recognize=function(e,r,i){return this._doTrack(e,r,i),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,r,i){var n=e.touches;if(n){for(var a={points:[],touches:[],target:r,event:e},o=0,s=n.length;o<s;o++){var l=n[o],u=ys(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var r in df)if(df.hasOwnProperty(r)){var i=df[r](this._track,e);if(i)return i}},t})();function Yv(t){var e=t[1][0]-t[0][0],r=t[1][1]-t[0][1];return Math.sqrt(e*e+r*r)}function uw(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var df={pinch:function(t,e){var r=t.length;if(r){var i=(t[r-1]||{}).points,n=(t[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Yv(i)/Yv(n);!isFinite(a)&&(a=1),e.pinchScale=a;var o=uw(i);return e.pinchX=o[0],e.pinchY=o[1],{type:`pinch`,target:t[0].target,event:e}}}}};function ot(){return[1,0,0,1,0,0]}function _r(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ia(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Hr(t,e,r){var i=e[0]*r[0]+e[2]*r[1],n=e[1]*r[0]+e[3]*r[1],a=e[0]*r[2]+e[2]*r[3],o=e[1]*r[2]+e[3]*r[3],s=e[0]*r[4]+e[2]*r[5]+e[4],l=e[1]*r[4]+e[3]*r[5]+e[5];return t[0]=i,t[1]=n,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t}function Ra(t,e,r){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+r[0],t[5]=e[5]+r[1],t}function bn(t,e,r,i){i===void 0&&(i=[0,0]);var n=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(r),c=Math.cos(r);return t[0]=n*c+s*f,t[1]=-n*f+s*c,t[2]=a*c+l*f,t[3]=-a*f+c*l,t[4]=c*(o-i[0])+f*(u-i[1])+i[0],t[5]=c*(u-i[1])-f*(o-i[0])+i[1],t}function Xv(t,e,r){var i=r[0],n=r[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Gr(t,e){var r=e[0],i=e[2],n=e[4],a=e[1],o=e[3],s=e[5],l=r*o-a*i;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-i*l,t[3]=r*l,t[4]=(i*s-o*n)*l,t[5]=(a*n-r*s)*l,t):null}var de=(function(){function t(e,r){this.x=e||0,this.y=r||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,r){return this.x=e,this.y=r,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,r){this.x+=e.x*r,this.y+=e.y*r},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var r=this.x-e.x,i=this.y-e.y;return Math.sqrt(r*r+i*i)},t.prototype.distanceSquare=function(e){var r=this.x-e.x,i=this.y-e.y;return r*r+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var r=this.x,i=this.y;return this.x=e[0]*r+e[2]*i+e[4],this.y=e[1]*r+e[3]*i+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,r,i){e.x=r,e.y=i},t.copy=function(e,r){e.x=r.x,e.y=r.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,r){return e.x*r.x+e.y*r.y},t.add=function(e,r,i){e.x=r.x+i.x,e.y=r.y+i.y},t.sub=function(e,r,i){e.x=r.x-i.x,e.y=r.y-i.y},t.scale=function(e,r,i){e.x=r.x*i,e.y=r.y*i},t.scaleAndAdd=function(e,r,i,n){e.x=r.x+i.x*n,e.y=r.y+i.y*n},t.lerp=function(e,r,i,n){var a=1-n;e.x=a*r.x+n*i.x,e.y=a*r.y+n*i.y},t})();var Ti=Math.min;var Cn=Math.max;var yf=Math.abs;var qv=[`x`,`y`];var cw=[`width`,`height`];var yi=new de;var _i=new de;var xi=new de;var Si=new de;var Tt=xf();var Pa=Tt.minTv;var _f=Tt.maxTv;var Na=[0,0];var xr=(function(){function t(e,r,i,n){mf(this,e,r,i,n)}return t.set=function(e,r,i,n,a){return n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),e.x=r,e.y=i,e.width=n,e.height=a,e},t.prototype.union=function(e){var r=Ti(e.x,this.x),i=Ti(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Cn(e.x+e.width,this.x+this.width)-r:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Cn(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=r,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){return pw(ot(),this,e)},t.prototype.intersect=function(e,r,i){return t.intersect(this,e,r,i)},t.intersect=function(e,r,i,n){i&&de.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!e||!r)return!1;e instanceof t||(e=mf(hw,e.x,e.y,e.width,e.height)),r instanceof t||(r=mf(vw,r.x,r.y,r.width,r.height));var s=!!i;Tt.reset(n,s);var l=Tt.touchThreshold,u=e.x+l,f=e.x+e.width-l,c=e.y+l,p=e.y+e.height-l,h=r.x+l,v=r.x+r.width-l,g=r.y+l,d=r.y+r.height-l;if(u>f||c>p||h>v||g>d)return!1;var m=!(f<h||v<u||p<g||d<c);return(s||a)&&(Na[0]=Infinity,Na[1]=0,Zv(u,f,h,v,0,s,a,o),Zv(c,p,g,d,1,s,a,o),s&&de.copy(i,m?Tt.useDir?Tt.dirMinTv:Pa:_f)),m},t.contain=function(e,r,i){return r>=e.x&&r<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},t.prototype.contain=function(e,r){return t.contain(this,e,r)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){Kv(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(e,r){return e.x=r.x,e.y=r.y,e.width=r.width,e.height=r.height,e},t.applyTransform=function(e,r,i){if(!i){e!==r&&Kv(e,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];e.x=r.x*n+o,e.y=r.y*a+s,e.width=r.width*n,e.height=r.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}yi.x=xi.x=r.x,yi.y=Si.y=r.y,_i.x=Si.x=r.x+r.width,_i.y=xi.y=r.y+r.height,yi.transform(i),Si.transform(i),_i.transform(i),xi.transform(i),e.x=Ti(yi.x,_i.x,xi.x,Si.x),e.y=Ti(yi.y,_i.y,xi.y,Si.y);var l=Cn(yi.x,_i.x,xi.x,Si.x),u=Cn(yi.y,_i.y,xi.y,Si.y);e.width=l-e.x,e.height=u-e.y},t.calculateTransform=function(e,r,i){var n=i.width/r.width,a=i.height/r.height;return e=_r(e||[]),Ra(e,e,hs(gf,-r.x,-r.y)),Xv(e,e,hs(gf,n,a)),Ra(e,e,hs(gf,i.x,i.y)),e},t})();xr.create;var mf=xr.set;var Kv=xr.copy;var pw=xr.calculateTransform;xr.applyTransform;xr.contain;var hw=new xr(0,0,0,0);var vw=new xr(0,0,0,0);var gf=[];function Zv(t,e,r,i,n,a,o,s){var l=yf(e-r),u=yf(i-t),f=Ti(l,u),c=qv[n],p=qv[1-n],h=cw[n];e<r||i<t?l<u?(a&&(_f[c]=-l),s&&(o[c]=e,o[h]=0)):(a&&(_f[c]=u),s&&(o[c]=t,o[h]=0)):(o&&(o[c]=Cn(t,r),o[h]=Ti(e,i)-o[c]),a&&(f<Na[0]||Tt.useDir)&&(Na[0]=Ti(f,Na[0]),(l<u||!Tt.bidirectional)&&(Pa[c]=l,Pa[p]=0,Tt.useDir&&Tt.calcDirMTV()),(l>=u||!Tt.bidirectional)&&(Pa[c]=-u,Pa[p]=0,Tt.useDir&&Tt.calcDirMTV())))}function xf(){var t=0,e=new de,r=new de,i={minTv:new de,maxTv:new de,useDir:!1,dirMinTv:new de,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Cn(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(Infinity,Infinity),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),r.copy(i.minTv),t=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,l=Math.sin(t),u=Math.cos(t),f=l*a.y+u*a.x;if(n(f)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(r.x=s*u/f,r.y=s*l/f,n(r.x)&&n(r.y)){o.set(0,0);return}(i.bidirectional||e.dot(r)>0)&&r.len()<o.len()&&o.copy(r)}};function n(a){return yf(a)<1e-10}return i}var X=xr;var Qv=`silent`;function dw(t,e,r){return{type:t,event:r,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:mw}}function mw(){xs(this.event)}var gw=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.handler=null,r}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Qe);var ka=(function(){function t(e,r){this.x=e,this.y=r}return t})();var yw=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`];var Sf=new X(0,0,0,0);var $v=(function(t){W(e,t);function e(r,i,n,a,o){var s=t.call(this)||this;return s._hovered=new ka(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new gw,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new Uv(s),s}return e.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(w(yw,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},e.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Jv(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ka(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:`default`),s&&u!==s&&this.dispatchToElement(o,`mouseout`,r),this.dispatchToElement(l,`mousemove`,r),u&&u!==s&&this.dispatchToElement(l,`mouseover`,r)},e.prototype.mouseout=function(r){var i=r.zrEventControl;i!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,r),i!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:r})},e.prototype.resize=function(){this._hovered=new ka(0,0)},e.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},e.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o=`on`+i,s=dw(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]==`function`&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new ka(r,i);if(jv(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new X(r-u,i-u,l,l),c=a.length-1;c>=0;c--){var p=a[c];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(Sf.copy(p.getBoundingRect()),p.transform&&Sf.applyTransform(p.transform),Sf.intersect(f)&&s.push(p))}if(s.length){for(var h=4,v=Math.PI/12,g=Math.PI*2,d=0;d<u;d+=h)for(var m=0;m<g;m+=v)if(jv(s,o,r+d*Math.cos(m),i+d*Math.sin(m),n),o.target)return o}}return o},e.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new Wv);var n=this._gestureMgr;i===`start`&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i===`end`&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new ka;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e})(Qe);w([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(t){$v.prototype[t]=function(e){var r=e.zrX,i=e.zrY,n=Jv(this,r,i),a,o;if((t!==`mouseup`||!n)&&(a=this.findHover(r,i),o=a.target),t===`mousedown`)this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t===`mouseup`)this._upEl=o;else if(t===`click`){if(this._downEl!==this._upEl||!this._downPoint||Bv(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function _w(t,e,r){if(t[t.rectHover?`rectContain`:`contain`](e,r)){for(var i=t,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(e,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Qv:!0}return!1}function jv(t,e,r,i,n){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==n&&!o.ignore&&(s=_w(o,r,i))&&(!e.topTarget&&(e.topTarget=o),s!==Qv)){e.target=o;break}}}function Jv(t,e,r){var i=t.painter;return e<0||e>i.getWidth()||r<0||r>i.getHeight()}var ed=$v;var id=32;var Ba=7;function xw(t){for(var e=0;t>=id;)e|=t&1,t>>=1;return t+e}function td(t,e,r,i){var n=e+1;if(n===r)return 1;if(i(t[n++],t[e])<0){for(;n<r&&i(t[n],t[n-1])<0;)n++;Sw(t,e,n)}else for(;n<r&&i(t[n],t[n-1])>=0;)n++;return n-e}function Sw(t,e,r){for(r--;e<r;){var i=t[e];t[e++]=t[r],t[r--]=i}}function rd(t,e,r,i,n){for(i===e&&i++;i<r;i++){for(var a=t[i],o=e,s=i,l;o<s;)l=o+s>>>1,n(a,t[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function Tf(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])>0){for(s=i-n;l<s&&a(t,e[r+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&&a(t,e[r+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);a(t,e[r+f])>0?o=f+1:l=f}return l}function wf(t,e,r,i,n,a){var o=0,s=0,l=1;if(a(t,e[r+n])<0){for(s=n+1;l<s&&a(t,e[r+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=i-n;l<s&&a(t,e[r+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);a(t,e[r+f])<0?l=f:o=f+1}return l}function Tw(t,e){var r=Ba,i,n,a=0,o=[];i=[],n=[];function s(h,v){i[a]=h,n[a]=v,a+=1}function l(){for(;a>1;){var h=a-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(;a>1;){var h=a-2;h>0&&n[h-1]<n[h+1]&&h--,f(h)}}function f(h){var v=i[h],g=n[h],d=i[h+1],m=n[h+1];n[h]=g+m,h===a-3&&(i[h+1]=i[h+2],n[h+1]=n[h+2]),a--;var y=wf(t[d],t,v,g,0,e);v+=y,g-=y,g!==0&&(m=Tf(t[v+g-1],t,d,m,m-1,e),m!==0&&(g<=m?c(v,g,d,m):p(v,g,d,m)))}function c(h,v,g,d){var m=0;for(m=0;m<v;m++)o[m]=t[h+m];var y=0,_=g,x=h;if(t[x++]=t[_++],--d===0){for(m=0;m<v;m++)t[x+m]=o[y+m];return}if(v===1){for(m=0;m<d;m++)t[x+m]=t[_+m];t[x+d]=o[y];return}for(var S=r,T,C,E;;){T=0,C=0,E=!1;do if(e(t[_],o[y])<0){if(t[x++]=t[_++],C++,T=0,--d===0){E=!0;break}}else if(t[x++]=o[y++],T++,C=0,--v===1){E=!0;break}while((T|C)<S);if(E)break;do{if(T=wf(t[_],o,y,v,0,e),T!==0){for(m=0;m<T;m++)t[x+m]=o[y+m];if(x+=T,y+=T,v-=T,v<=1){E=!0;break}}if(t[x++]=t[_++],--d===0){E=!0;break}if(C=Tf(o[y],t,_,d,0,e),C!==0){for(m=0;m<C;m++)t[x+m]=t[_+m];if(x+=C,_+=C,d-=C,d===0){E=!0;break}}if(t[x++]=o[y++],--v===1){E=!0;break}S--}while(T>=Ba||C>=Ba);if(E)break;S<0&&(S=0),S+=2}if(r=S,r<1&&(r=1),v===1){for(m=0;m<d;m++)t[x+m]=t[_+m];t[x+d]=o[y]}else{if(v===0)throw new Error;for(m=0;m<v;m++)t[x+m]=o[y+m]}}function p(h,v,g,d){var m=0;for(m=0;m<d;m++)o[m]=t[g+m];var y=h+v-1,_=d-1,x=g+d-1,S=0,T=0;if(t[x--]=t[y--],--v===0){for(S=x-(d-1),m=0;m<d;m++)t[S+m]=o[m];return}if(d===1){for(x-=v,y-=v,T=x+1,S=y+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[_];return}for(var C=r;;){var E=0,b=0,D=!1;do if(e(o[_],t[y])<0){if(t[x--]=t[y--],E++,b=0,--v===0){D=!0;break}}else if(t[x--]=o[_--],b++,E=0,--d===1){D=!0;break}while((E|b)<C);if(D)break;do{if(E=v-wf(o[_],t,h,v,v-1,e),E!==0){for(x-=E,y-=E,v-=E,T=x+1,S=y+1,m=E-1;m>=0;m--)t[T+m]=t[S+m];if(v===0){D=!0;break}}if(t[x--]=o[_--],--d===1){D=!0;break}if(b=d-Tf(t[y],o,0,d,d-1,e),b!==0){for(x-=b,_-=b,d-=b,T=x+1,S=_+1,m=0;m<b;m++)t[T+m]=o[S+m];if(d<=1){D=!0;break}}if(t[x--]=t[y--],--v===0){D=!0;break}C--}while(E>=Ba||b>=Ba);if(D)break;C<0&&(C=0),C+=2}if(r=C,r<1&&(r=1),d===1){for(x-=v,y-=v,T=x+1,S=y+1,m=v-1;m>=0;m--)t[T+m]=t[S+m];t[x]=o[_]}else{if(d===0)throw new Error;for(S=x-(d-1),m=0;m<d;m++)t[S+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function wi(t,e,r,i){r||(r=0),i||(i=t.length);var n=i-r;if(!(n<2)){var a=0;if(n<id){a=td(t,r,i,e),rd(t,r,i,r+a,e);return}var o=Tw(t,e),s=xw(n);do{if(a=td(t,r,i,e),a<s){var l=n;l>s&&(l=s),rd(t,r,r+l,r+a,e),a=l}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var Re=1;var bi=2;var Yr=4;var nd=!1;function bf(){nd||(nd=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function ad(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var od=(function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ad}return t.prototype.traverse=function(e,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,r)},t.prototype.getDisplayList=function(e,r){r=r||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(r),i},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,e);i.length=this._displayListLen,wi(i,ad)},t.prototype._updateAndAddDisplayable=function(e,r,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var n=e.getClipPath(),a=r&&r.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(a||n)){if(s||(s=e.__clipPaths=[]),a)for(var l=0;l<r.length;l++)s[o++]=r[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 c=e.childrenRef(),p=0;p<c.length;p++){var h=c[p];e.__dirty&&(h.__dirty|=Re),this._updateAndAddDisplayable(h,s,i)}e.__dirty=0}else{var v=e;isNaN(v.z)&&(bf(),v.z=0),isNaN(v.z2)&&(bf(),v.z2=0),isNaN(v.zlevel)&&(bf(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var g=e.getDecalElement&&e.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,i)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var r=0,i=e.length;r<i;r++)this.delRoot(e[r]);return}var n=Z(this._roots,e);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t})();var Ua=q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Ss={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)))},elasticOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,r=.1,i=.4;return t===0?0:t===1?1:(!r||r<1?(r=1,e=i/4):e=i*Math.asin(1/r)/(2*Math.PI),(t*=2)<1?-.5*(r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)):r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ss.bounceOut(1-t)},bounceOut:function(t){return t<.36363636363636365?7.5625*t*t:t<.7272727272727273?7.5625*(t-=.5454545454545454)*t+.75:t<.9090909090909091?7.5625*(t-=.8181818181818182)*t+.9375:7.5625*(t-=.9545454545454546)*t+.984375},bounceInOut:function(t){return t<.5?Ss.bounceIn(t*2)*.5:Ss.bounceOut(t*2-1)*.5+.5}};var Ts=Ss;var ws=Math.pow;var Xr=Math.sqrt;var Cs=1e-8;var ud=1e-4;var ld=Xr(3);var bs=1/3;var tr=Vr();var Nt=Vr();var En=Vr();function Wr(t){return t>-Cs&&t<Cs}function fd(t){return t>Cs||t<-Cs}function Le(t,e,r,i,n){var a=1-n;return a*a*(a*t+3*n*e)+n*n*(n*i+3*a*r)}function Cf(t,e,r,i,n){var a=1-n;return 3*(((e-t)*a+2*(r-e)*n)*a+(i-r)*n*n)}function Es(t,e,r,i,n,a){var o=i+3*(e-r)-t,s=3*(r-e*2+t),l=3*(e-t),u=t-n,f=s*s-3*o*l,c=s*l-9*o*u,p=l*l-3*s*u,h=0;if(Wr(f)&&Wr(c))if(Wr(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var g=c*c-4*f*p;if(Wr(g)){var d=c/f,v=-s/o+d,m=-d/2;v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m)}else if(g>0){var y=Xr(g),_=f*s+1.5*o*(-c+y),x=f*s+1.5*o*(-c-y);_<0?_=-ws(-_,bs):_=ws(_,bs),x<0?x=-ws(-x,bs):x=ws(x,bs);var v=(-s-(_+x))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var S=(2*f*s-3*o*c)/(2*Xr(f*f*f)),T=Math.acos(S)/3,C=Xr(f),E=Math.cos(T),v=(-s-2*C*E)/(3*o),m=(-s+C*(E+ld*Math.sin(T)))/(3*o),b=(-s+C*(E-ld*Math.sin(T)))/(3*o);v>=0&&v<=1&&(a[h++]=v),m>=0&&m<=1&&(a[h++]=m),b>=0&&b<=1&&(a[h++]=b)}}return h}function Ds(t,e,r,i,n){var a=6*r-12*e+6*t,o=9*e+3*i-3*t-9*r,s=3*e-3*t,l=0;if(Wr(o)){if(fd(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(Wr(f))n[0]=-a/(2*o);else if(f>0){var c=Xr(f),u=(-a+c)/(2*o),p=(-a-c)/(2*o);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Dn(t,e,r,i,n,a){var o=(e-t)*n+t,s=(r-e)*n+e,l=(i-r)*n+r,u=(s-o)*n+o,f=(l-s)*n+s,c=(f-u)*n+u;a[0]=t,a[1]=o,a[2]=u,a[3]=c,a[4]=c,a[5]=f,a[6]=l,a[7]=i}function cd(t,e,r,i,n,a,o,s,l,u,f){var c,p=.005,h=Infinity,v,g,d,m;tr[0]=l,tr[1]=u;for(var y=0;y<1;y+=.05)Nt[0]=Le(t,r,n,o,y),Nt[1]=Le(e,i,a,s,y),d=mi(tr,Nt),d<h&&(c=y,h=d);h=Infinity;for(var _=0;_<32&&!(p<ud);_++)v=c-p,g=c+p,Nt[0]=Le(t,r,n,o,v),Nt[1]=Le(e,i,a,s,v),d=mi(Nt,tr),v>=0&&d<h?(c=v,h=d):(En[0]=Le(t,r,n,o,g),En[1]=Le(e,i,a,s,g),m=mi(En,tr),g<=1&&m<h?(c=g,h=m):p*=.5);return f&&(f[0]=Le(t,r,n,o,c),f[1]=Le(e,i,a,s,c)),Xr(h)}function pd(t,e,r,i,n,a,o,s,l){for(var u=t,f=e,c=0,p=1/l,h=1;h<=l;h++){var v=h*p,g=Le(t,r,n,o,v),d=Le(e,i,a,s,v),m=g-u,y=d-f;c+=Math.sqrt(m*m+y*y),u=g,f=d}return c}function Ge(t,e,r,i){var n=1-i;return n*(n*t+2*i*e)+i*i*r}function Ef(t,e,r,i){return 2*((1-i)*(e-t)+i*(r-e))}function hd(t,e,r,i,n){var a=t-2*e+r,o=2*(e-t),s=t-i,l=0;if(Wr(a)){if(fd(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(Wr(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var c=Xr(f),u=(-o+c)/(2*a),p=(-o-c)/(2*a);u>=0&&u<=1&&(n[l++]=u),p>=0&&p<=1&&(n[l++]=p)}}return l}function Ms(t,e,r){var i=t+r-2*e;return i===0?.5:(t-e)/i}function Mn(t,e,r,i,n){var a=(e-t)*i+t,o=(r-e)*i+e,s=(o-a)*i+a;n[0]=t,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function vd(t,e,r,i,n,a,o,s,l){var u,f=.005,c=Infinity;tr[0]=o,tr[1]=s;for(var p=0;p<1;p+=.05){Nt[0]=Ge(t,r,n,p),Nt[1]=Ge(e,i,a,p);var h=mi(tr,Nt);h<c&&(u=p,c=h)}c=Infinity;for(var v=0;v<32&&!(f<ud);v++){var g=u-f,d=u+f;Nt[0]=Ge(t,r,n,g),Nt[1]=Ge(e,i,a,g);var h=mi(Nt,tr);if(g>=0&&h<c)u=g,c=h;else{En[0]=Ge(t,r,n,d),En[1]=Ge(e,i,a,d);var m=mi(En,tr);d<=1&&m<c?(u=d,c=m):f*=.5}}return l&&(l[0]=Ge(t,r,n,u),l[1]=Ge(e,i,a,u)),Xr(c)}function dd(t,e,r,i,n,a,o){for(var s=t,l=e,u=0,f=1/o,c=1;c<=o;c++){var p=c*f,h=Ge(t,r,n,p),v=Ge(e,i,a,p),g=h-s,d=v-l;u+=Math.sqrt(g*g+d*d),s=h,l=v}return u}var bw=/cubic-bezier\(([0-9,\.e ]+)\)/;function As(t){var e=t&&bw.exec(t);if(e){var r=e[1].split(`,`),i=+je(r[0]),n=+je(r[1]),a=+je(r[2]),o=+je(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Es(0,i,a,1,l,s)&&Le(0,n,o,1,s[0])}}}var md=(function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||we,this.ondestroy=e.ondestroy||we,this.onrestart=e.onrestart||we,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,r){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=e-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:Ts[e]||As(e)},t})();var gd=(function(){function t(e){this.value=e}return t})();var Ew=(function(){function t(){this._len=0}return t.prototype.insert=function(e){var r=new gd(e);return this.insertEntry(r),r},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var r=e.prev,i=e.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t})();var rr=(function(){function t(e){this._list=new Ew,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,r){var i=this._list,n=this._map,a=null;if(n[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new gd(r),s.key=e,i.insertEntry(s),n[e]=s}return a},t.prototype.get=function(e){var r=this._map[e],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t})();var yd={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 za(t){return t=Math.round(t),t<0?0:t>255?255:t}function Mw(t){return t=Math.round(t),t<0?0:t>360?360:t}function _d(t){return t<0?0:t>1?1:t}function Mf(t){var e=t;return e.length&&e.charAt(e.length-1)===`%`?za(parseFloat(e)/100*255):za(parseInt(e,10))}function Ci(t){var e=t;return e.length&&e.charAt(e.length-1)===`%`?_d(parseFloat(e)/100):_d(parseFloat(e))}function Af(t,e,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?t+(e-t)*r*6:r*2<1?e:r*3<2?t+(e-t)*(2/3-r)*6:t}function kt(t,e,r,i,n){return t[0]=e,t[1]=r,t[2]=i,t[3]=n,t}function Of(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Td=new rr(20);var Os=null;function An(t,e){Os&&Of(Os,e),Os=Td.put(t,Os||e.slice())}function Sr(t,e){if(t){e=e||[];var r=Td.get(t);if(r)return Of(e,r);t=t+``;var i=t.replace(/ /g,``).toLowerCase();if(i in yd)return Of(e,yd[i]),An(t,e),e;var n=i.length;if(i.charAt(0)===`#`){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){kt(e,0,0,0,1);return}return kt(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),An(t,e),e}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){kt(e,0,0,0,1);return}return kt(e,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),An(t,e),e}return}var o=i.indexOf(`(`),s=i.indexOf(`)`);if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(`,`),f=1;switch(l){case`rgba`:if(u.length!==4)return u.length===3?kt(e,+u[0],+u[1],+u[2],1):kt(e,0,0,0,1);f=Ci(u.pop());case`rgb`:if(u.length>=3)return kt(e,Mf(u[0]),Mf(u[1]),Mf(u[2]),u.length===3?f:Ci(u[3])),An(t,e),e;kt(e,0,0,0,1);return;case`hsla`:if(u.length!==4){kt(e,0,0,0,1);return}return u[3]=Ci(u[3]),If(u,e),An(t,e),e;case`hsl`:if(u.length!==3){kt(e,0,0,0,1);return}return If(u,e),An(t,e),e;default:return}}kt(e,0,0,0,1)}}function If(t,e){var r=(parseFloat(t[0])%360+360)%360/360,i=Ci(t[1]),n=Ci(t[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return e=e||[],kt(e,za(Af(o,a,r+1/3)*255),za(Af(o,a,r)*255),za(Af(o,a,r-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function Aw(t){if(t){var e=t[0]/255,r=t[1]/255,i=t[2]/255,n=Math.min(e,r,i),a=Math.max(e,r,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-e)/6+o/2)/o,c=((a-r)/6+o/2)/o,p=((a-i)/6+o/2)/o;e===a?l=p-c:r===a?l=1/3+f-p:i===a&&(l=2/3+c-f),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function xd(t,e){var r=Sr(t);if(r){for(var i=0;i<3;i++)e<0?r[i]=r[i]*(1-e)|0:r[i]=(255-r[i])*e+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Is(r,r.length===4?`rgba`:`rgb`)}}function Fa(t,e,r,i){var n=Sr(t);if(t)return n=Aw(n),e!=null&&(n[0]=Mw(V(e)?e(n[0]):e)),r!=null&&(n[1]=Ci(V(r)?r(n[1]):r)),i!=null&&(n[2]=Ci(V(i)?i(n[2]):i)),Is(If(n),`rgba`)}function Is(t,e){if(!(!t||!t.length)){var r=t[0]+`,`+t[1]+`,`+t[2];return(e===`rgba`||e===`hsva`||e===`hsla`)&&(r+=`,`+t[3]),e+`(`+r+`)`}}function On(t,e){var r=Sr(t);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*e:0}var Sd=new rr(100);function Rf(t){if(P(t)){var e=Sd.get(t);return e||(e=xd(t,-.1),Sd.put(t,e)),e}else if(zr(t)){var r=R({},t);return r.colorStops=U(t.colorStops,function(i){return{offset:i.offset,color:xd(i.color,-.1)}}),r}return t}function wd(t){return t.type===`linear`}function bd(t){return t.type===`radial`}(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(t){return Buffer.from(t).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}})();var Pf=Array.prototype.slice;function Tr(t,e,r){return(e-t)*r+t}function Lf(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=Tr(e[a],r[a],i);return t}function Iw(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=Tr(e[o][s],r[o][s],i)}return t}function Rs(t,e,r,i){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+r[a]*i;return t}function Cd(t,e,r,i){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+r[o][s]*i}return t}function Rw(t,e){for(var r=t.length,i=e.length,n=r>i?e:t,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function Lw(t,e,r){var i=t,n=e;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o)if(a>o)i.length=o;else for(var l=a;l<o;l++)i.push(r===1?n[l]:Pf.call(n[l]));for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(r===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function Ga(t){if(ke(t)){var e=t.length;if(ke(t[0])){for(var r=[],i=0;i<e;i++)r.push(Pf.call(t[i]));return r}return Pf.call(t)}return t}function Ns(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],`rgba(`+t.join(`,`)+`)`}function Pw(t){return ke(t&&t[0])?2:1}var Ls=0;var ks=1;var Md=2;var Ha=3;var Nf=4;var kf=5;var Ed=6;function Dd(t){return t===Nf||t===kf}function Ps(t){return t===ks||t===Md}var Va=[0,0,0,0];var Nw=(function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ed,l=r;if(ke(r)){var u=Pw(r);s=u,(u===1&&!ae(r[0])||u===2&&!ae(r[0][0]))&&(o=!0)}else if(ae(r)&&!xn(r))s=Ls;else if(P(r))if(!isNaN(+r))s=Ls;else{var f=Sr(r);f&&(l=f,s=Ha)}else if(zr(r)){var c=R({},l);c.colorStops=U(r.colorStops,function(h){return{offset:h.offset,color:Sr(h.color)}}),wd(r)?s=Nf:bd(r)&&(s=kf),l=c}a===0?this.valType=s:(s!==this.valType||s===Ed)&&(o=!0),this.discrete=this.discrete||o;var p={time:e,value:l,rawValue:r,percent:0};return i&&(p.easing=i,p.easingFunc=V(i)?i:Ts[i]||As(i)),n.push(p),p},t.prototype.prepare=function(e,r){var i=this.keyframes;this._needsSort&&i.sort(function(g,d){return g.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=Ps(n),u=Dd(n),f=0;f<a;f++){var c=i[f],p=c.value,h=o.value;c.percent=c.time/e,s||(l&&f!==a-1?Lw(p,h,n):u&&Rw(p.colorStops,h.colorStops))}if(!s&&n!==kf&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var v=i[0].value,f=0;f<a;f++)n===Ls?i[f].additiveValue=i[f].value-v:n===Ha?i[f].additiveValue=Rs([],i[f].value,v,-1):Ps(n)&&(i[f].additiveValue=n===ks?Rs([],i[f].value,v,-1):Cd([],i[f].value,v,-1))}},t.prototype.step=function(e,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?`additiveValue`:`value`,a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Ha,f,c=this._lastFr,p=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)f=0;else if(r<this._lastFrP){for(f=p(c+1,s-1);f>=0&&!(o[f].percent<=r);f--);f=p(f,s-2)}else{for(f=c;f<s&&!(o[f].percent>r);f++);f=p(f-1,s-2)}v=o[f+1],h=o[f]}if(h&&v){this._lastFr=f,this._lastFrP=r;var d=v.percent-h.percent,m=d===0?1:p((r-h.percent)/d,1);v.easingFunc&&(m=v.easingFunc(m));var y=i?this._additiveValue:u?Va:e[l];if((Ps(a)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=m<1?h.rawValue:v.rawValue;else if(Ps(a))a===ks?Lf(y,h[n],v[n],m):Iw(y,h[n],v[n],m);else if(Dd(a)){var _=h[n],x=v[n],S=a===Nf;e[l]={type:S?`linear`:`radial`,x:Tr(_.x,x.x,m),y:Tr(_.y,x.y,m),colorStops:U(_.colorStops,function(C,E){var b=x.colorStops[E];return{offset:Tr(C.offset,b.offset,m),color:Ns(Lf([],C.color,b.color,m))}}),global:x.global},S?(e[l].x2=Tr(_.x2,x.x2,m),e[l].y2=Tr(_.y2,x.y2,m)):e[l].r=Tr(_.r,x.r,m)}else if(u)Lf(y,h[n],v[n],m),i||(e[l]=Ns(y));else{var T=Tr(h[n],v[n],m);i?this._additiveValue=T:e[l]=T}i&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var r=this.valType,i=this.propName,n=this._additiveValue;r===Ls?e[i]=e[i]+n:r===Ha?(Sr(e[i],Va),Rs(Va,Va,n,1),e[i]=Ns(Va)):r===ks?Rs(e[i],e[i],n,1):r===Md&&Cd(e[i],e[i],n,1)},t})();var Ya=(function(){function t(e,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=r,r&&n){_n(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=n,this._allowDiscrete=i}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,r,i){return this.whenWithKeys(e,r,ie(r),i)},t.prototype.whenWithKeys=function(e,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new Nw(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var c=f.keyframes,p=c[c.length-1];u=p&&p.value,f.valType===Ha&&u&&(u=Ns(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Ga(u),n),this._trackKeys.push(s)}l.addKeyframe(e,Ga(r[s]),n)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var r=e.length,i=0;i<r;i++)e[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,r=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)e[r[i]].setFinished()},t.prototype._getAdditiveTrack=function(e){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(e);a&&(r=a)}return r},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[f-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new md({life:n,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,d=0;d<v.length;d++)if(v[d]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,h);var m=r._onframeCbs;if(m)for(var d=0;d<m.length;d++)m[d](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),e&&p.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var r=this._clip;e&&r.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(r){return e._tracks[r]})},t.prototype.stopTracks=function(e,r){if(!e.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<e.length;a++){var o=i[e[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},t.prototype.saveTo=function(e,r,i){if(e){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[a]=Ga(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,r){r=r||ie(e);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t})();function Ei(){return new Date().getTime()}var Ad=(function(t){W(e,t);function e(r){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return e.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},e.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(r){if(r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},e.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},e.prototype.update=function(r){for(var i=Ei()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next;a.step(i,n)&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Ua(i),!r._paused&&r.update())}Ua(i)},e.prototype.start=function(){this._running||(this._time=Ei(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Ei(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Ei()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(r,i){i=i||{},this.start();var n=new Ya(r,i.loop);return this.addAnimator(n),n},e})(Qe);var Uw=300;var Bf=q.domSupported;var Uf=(function(){var t=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],e=[`touchstart`,`touchend`,`touchmove`],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:t,touch:e,pointer:U(t,function(n){var a=n.replace(`mouse`,`pointer`);return r.hasOwnProperty(a)?a:n})}})();var Od={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]};var Id=!1;function Vf(t){var e=t.pointerType;return e===`pen`||e===`touch`}function zw(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function zf(t){t&&(t.zrByTouch=!0)}function Fw(t,e){return mt(t.dom,new Vw(t,e),!0)}function Ld(t,e){for(var r=e,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==e&&r===t.painterRoot);)r=r.parentNode;return i}var Vw=(function(){function t(e,r){this.stopPropagation=we,this.stopImmediatePropagation=we,this.preventDefault=we,this.type=r.type,this.target=this.currentTarget=e.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return t})();var Wt={mousedown:function(t){t=mt(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger(`mousedown`,t)},mousemove:function(t){t=mt(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,t)},mouseup:function(t){t=mt(this.dom,t),this.__togglePointerCapture(!1),this.trigger(`mouseup`,t)},mouseout:function(t){t=mt(this.dom,t);var e=t.toElement||t.relatedTarget;Ld(this,e)||(this.__pointerCapturing&&(t.zrEventControl=`no_globalout`),this.trigger(`mouseout`,t))},wheel:function(t){Id=!0,t=mt(this.dom,t),this.trigger(`mousewheel`,t)},mousewheel:function(t){Id||(t=mt(this.dom,t),this.trigger(`mousewheel`,t))},touchstart:function(t){t=mt(this.dom,t),zf(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,`start`),Wt.mousemove.call(this,t),Wt.mousedown.call(this,t)},touchmove:function(t){t=mt(this.dom,t),zf(t),this.handler.processGesture(t,`change`),Wt.mousemove.call(this,t)},touchend:function(t){t=mt(this.dom,t),zf(t),this.handler.processGesture(t,`end`),Wt.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<Uw&&Wt.click.call(this,t)},pointerdown:function(t){Wt.mousedown.call(this,t)},pointermove:function(t){Vf(t)||Wt.mousemove.call(this,t)},pointerup:function(t){Wt.mouseup.call(this,t)},pointerout:function(t){Vf(t)||Wt.mouseout.call(this,t)}};w([`click`,`dblclick`,`contextmenu`],function(t){Wt[t]=function(e){e=mt(this.dom,e),this.trigger(t,e)}});var Hf={pointermove:function(t){Vf(t)||Hf.mousemove.call(this,t)},pointerup:function(t){Hf.mouseup.call(this,t)},mousemove:function(t){this.trigger(`mousemove`,t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,t),e&&(t.zrEventControl=`only_globalout`,this.trigger(`mouseout`,t))}};function Hw(t,e){var r=e.domHandlers;q.pointerEventsSupported?w(Uf.pointer,function(i){Bs(e,i,function(n){r[i].call(t,n)})}):(q.touchEventsSupported&&w(Uf.touch,function(i){Bs(e,i,function(n){r[i].call(t,n),zw(e)})}),w(Uf.mouse,function(i){Bs(e,i,function(n){n=_s(n),e.touching||r[i].call(t,n)})}))}function Gw(t,e){q.pointerEventsSupported?w(Od.pointer,r):q.touchEventsSupported||w(Od.mouse,r);function r(i){function n(a){a=_s(a),Ld(t,a.target)||(a=Fw(t,a),e.domHandlers[i].call(t,a))}Bs(e,i,n,{capture:!0})}}function Bs(t,e,r,i){t.mounted[e]=r,t.listenerOpts[e]=i,Hv(t.domTarget,e,r,i)}function Ff(t){var e=t.mounted;for(var r in e)e.hasOwnProperty(r)&&Gv(t.domTarget,r,e[r],t.listenerOpts[r]);t.mounted={}}var Rd=(function(){function t(e,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=r}return t})();var Pd=(function(t){W(e,t);function e(r,i){var n=t.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new Rd(r,Wt),Bf&&(n._globalHandlerScope=new Rd(document,Hf)),Hw(n,n._localHandlerScope),n}return e.prototype.dispose=function(){Ff(this._localHandlerScope),Bf&&Ff(this._globalHandlerScope)},e.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||`default`)},e.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Bf&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?Gw(this,i):Ff(i)}},e})(Qe);var Nd=1;q.hasGlobalWindow&&(Nd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Di=Nd;var Wa=.4;var Xa=`#333`;var qa=`#ccc`;var kd=`#eee`;var Bd=_r;var Ud=5e-5;function Mi(t){return t>Ud||t<-Ud}var Ai=[];var In=[];var Gf=ot();var Yf=Math.abs;var zd=(function(){function t(){}return t.prototype.getLocalTransform=function(e){return Ww(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Mi(this.rotation)||Mi(this.x)||Mi(this.y)||Mi(this.scaleX-1)||Mi(this.scaleY-1)||Mi(this.skewX)||Mi(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||e)){i&&(Bd(i),this.invTransform=null);return}i=i||ot(),r?this.getLocalTransform(i):Bd(i),e&&(r?Hr(i,e,i):Ia(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||ot(),Gr(this.invTransform,i)},t.prototype._resolveGlobalScaleRatio=function(e){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Ai);var i=Ai[0]<0?-1:1,n=Ai[1]<0?-1:1,a=((Ai[0]-i)*r+i)/Ai[0]||0,o=((Ai[1]-n)*r+n)/Ai[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}},t.prototype.getComputedTransform=function(){for(var e=this,r=[];e;)r.push(e),e=e.parent;for(;e=r.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var r=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],n=Math.atan2(e[1],e[0]),a=Math.PI/2+n-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+e[4],this.y=+e[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,r=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ot(),Hr(In,e.invTransform,r),r=In);var i=this.originX,n=this.originY;(i||n)&&(Gf[4]=i,Gf[5]=n,Hr(In,r,Gf),In[4]-=i,In[5]-=n,r=In),this.setLocalTransform(r)}},t.prototype.getGlobalScale=function(e){var r=this.transform;return e=e||[],r?(e[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),e[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(e[0]=-e[0]),r[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,r){var i=[e,r],n=this.invTransform;return n&&dt(i,i,n),i},t.prototype.transformCoordToGlobal=function(e,r){var i=[e,r],n=this.transform;return n&&dt(i,i,n),i},t.prototype.getLineScale=function(){var e=this.transform;return e&&Yf(e[0]-1)>1e-10&&Yf(e[3]-1)>1e-10?Math.sqrt(Yf(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){Ln(this,e)},t.getLocalTransform=function(e,r){r=r||[];var i=e.originX||0,n=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,c=e.y,p=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(i||n||s||l){var v=i+s,g=n+l;r[4]=-v*a-p*g*o,r[5]=-g*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=p*o,u&&bn(r,r,u),r[4]+=i+f,r[5]+=n+c,r},t.initDefaultProps=(function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),t})();var Ww=zd.getLocalTransform;var Rn=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Ln(t,e){return Mv(t,e,Rn)}var Pn=zd;function Xt(t){Us||(Us=new rr(100)),t=t||Pt;var e=Us.get(t);return e||(e={font:t,strWidthCache:new rr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Ie.measureText(`国`,t).width,asciiCharWidth:Ie.measureText(`a`,t).width},Us.put(t,e)),e}var Us;function Xw(t){if(!(Wf>=Fd)){t=t||Pt;for(var e=[],r=+new Date,i=0;i<=127;i++)e[i]=Ie.measureText(String.fromCharCode(i),t).width;var n=+new Date-r;return n>16?Wf=Fd:n>2&&Wf++,e}}var Wf=0;var Fd=5;function Xf(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=Xw(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?t.asciiWidthMap!=null?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function qt(t,e){var r=t.strWidthCache,i=r.get(e);return i??(i=Ie.measureText(e,t.font).width,r.put(e,i)),i}function Vd(t,e,r,i){var n=qt(Xt(e),t),a=Ka(e);return new X(qr(0,n,r),br(0,a,i),n,a)}function Hd(t,e,r,i){var n=((t||``)+``).split(`
2
- `);if(n.length===1)return Vd(n[0],e,r,i);for(var o=new X(0,0,0,0),s=0;s<n.length;s++){var l=Vd(n[s],e,r,i);s===0?o.copy(l):o.union(l)}return o}function qr(t,e,r,i){return r===`right`?i?t+=e:t-=e:r===`center`&&(i?t+=e/2:t-=e/2),t}function br(t,e,r,i){return r===`middle`?i?t+=e/2:t-=e/2:r===`bottom`&&(i?t+=e:t-=e),t}function Ka(t){return Xt(t).stWideCharWidth}function wr(t,e){return typeof t==`string`?t.lastIndexOf(`%`)>=0?parseFloat(t)/100*e:parseFloat(t):t}function zs(t,e,r){var i=e.position||`inside`,n=e.distance!=null?e.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,f=`left`,c=`top`;if(i instanceof Array)l+=wr(i[0],r.width),u+=wr(i[1],r.height),f=null,c=null;else switch(i){case`left`:l-=n,u+=s,f=`right`,c=`middle`;break;case`right`:l+=n+o,u+=s,c=`middle`;break;case`top`:l+=o/2,u-=n,f=`center`,c=`bottom`;break;case`bottom`:l+=o/2,u+=a+n,f=`center`;break;case`inside`:l+=o/2,u+=s,f=`center`,c=`middle`;break;case`insideLeft`:l+=n,u+=s,c=`middle`;break;case`insideRight`:l+=o-n,u+=s,f=`right`,c=`middle`;break;case`insideTop`:l+=o/2,u+=n,f=`center`;break;case`insideBottom`:l+=o/2,u+=a-n,f=`center`,c=`bottom`;break;case`insideTopLeft`:l+=n,u+=n;break;case`insideTopRight`:l+=o-n,u+=n,f=`right`;break;case`insideBottomLeft`:l+=n,u+=a-n,c=`bottom`;break;case`insideBottomRight`:l+=o-n,u+=a-n,f=`right`,c=`bottom`;break}return t=t||{},t.x=l,t.y=u,t.align=f,t.verticalAlign=c,t}var qf=`__zr_normal__`;var Kf=Rn.concat([`ignore`]);var Kw=at(Rn,function(t,e){return t[e]=!0,t},{ignore:!1});var Nn={};var Zw=new X(0,0,0,0);var Fs=[];var Vs=0;var kn=1;var Qf=(function(){function t(e){this.id=us(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,r,i){switch(this.draggable){case`horizontal`:r=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]+=r,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var r=this._textContent;if(r&&(!r.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;a.copyTransform(r);var f=i.position!=null,c=i.autoOverflowArea,p=void 0;if((c||f)&&(p=Zw,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Nn,i,p):zs(Nn,i,p),a.x=Nn.x,a.y=Nn.y,o=Nn.align,s=Nn.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var v=void 0,g=void 0;h===`center`?(v=p.width*.5,g=p.height*.5):(v=wr(h[0],p.width),g=wr(h[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+g+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var y=m.overflowRect=m.overflowRect||new X(0,0,0,0);a.getLocalTransform(Fs),Gr(Fs,Fs),X.copy(y,p),y.applyTransform(Fs)}else m.overflowRect=null;var _=i.inside==null?typeof i.position==`string`&&i.position.indexOf(`inside`)>=0:i.inside,x=void 0,S=void 0,T=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x===`auto`)&&(x=this.getInsideTextFill()),(S==null||S===`auto`)&&(S=this.getInsideTextStroke(x),T=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x===`auto`)&&(x=this.getOutsideFill()),(S==null||S===`auto`)&&(S=this.getOutsideStroke(x),T=!0)),x=x||`#000`,(x!==m.fill||S!==m.stroke||T!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=x,m.stroke=S,m.autoStroke=T,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Re,l&&r.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return`#fff`},t.prototype.getInsideTextStroke=function(e){return`#000`},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?qa:Xa},t.prototype.getOutsideStroke=function(e){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r==`string`&&Sr(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Is(i,`rgba`)},t.prototype.traverse=function(e,r){},t.prototype.attrKV=function(e,r){e===`textConfig`?this.setTextConfig(r):e===`textContent`?this.setTextContent(r):e===`clipPath`?this.setClipPath(r):e===`extra`?(this.extra=this.extra||{},R(this.extra,r)):this[e]=r},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,r){if(typeof e==`string`)this.attrKV(e,r);else if(N(e))for(var i=e,n=ie(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,e[o])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==qf)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var r=this._normalState;r||(r=this._normalState={}),e.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(e,r,Kf)},t.prototype._savePrimaryToNormal=function(e,r,i){for(var n=0;n<i.length;n++){var a=i[n];e[a]!=null&&!(a in r)&&(r[a]=this[a])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var r=this.states;return r[e]||(r[e]={}),r[e]},t.prototype.clearStates=function(e){this.useState(qf,!1,e)},t.prototype.useState=function(e,r,i,n){var a=e===qf;if(!(!this.hasState()&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Z(s,e)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){_n(`State `+e+` not exists.`);return}a||this.saveCurrentToNormalState(u);var f=this._textContent,c=Gd(this,f,u,n);c&&!this.__inHover&&(this.__inHover=c),this._applyStateObj(e,u,this._normalState,r,Wd(this,i,l),l);var p=this._textGuide;return f&&f.useState(e,r,i,!!c),p&&p.useState(e,r,i,!!c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~Re),u}}},t.prototype.useStates=function(e,r,i){if(!e.length)this.clearStates();else{var n=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&n.push(f)}var c=n[o-1],p=this._textContent,h=Gd(this,p,c,i);h&&!this.__inHover&&(this.__inHover=h);var v=this._mergeStates(n),g=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(e.join(`,`),v,this._normalState,!1,Wd(this,r,g),g);var d=this._textGuide;p&&p.useStates(e,r,!!h),d&&d.useStates(e,r,!!h),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Vs,this.__dirty&=~Re)}},t.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var r=e.__hostTarget;e=r?e.ignoreHostSilent?null:r:e.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var r=this.animators[e];r.targetName&&r.changeTarget(this[r.targetName])}},t.prototype.removeState=function(e){var r=Z(this.currentStates,e);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},t.prototype.replaceState=function(e,r,i){var n=this.currentStates.slice(),a=Z(n,e),o=Z(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},t.prototype.toggleState=function(e,r){r?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var r={},i,n=0;n<e.length;n++){var a=e[n];R(r,a),a.textConfig&&(i=i||{},R(i,a.textConfig))}return i&&(r.textConfig=i),r},t.prototype._applyStateObj=function(e,r,i,n,a,o){if(this.__inHover!==kn){var s=!(r&&n);r&&r.textConfig?(this.textConfig=R({},n?this.textConfig:i.textConfig),R(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<Kf.length;f++){var c=Kf[f],p=a&&Kw[c];r&&r[c]!=null?p?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!a)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||i)[v]:r||i)}u&&this._transitionState(e,l,o)}},t.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var r=this.__zr;r&&e.addSelfToZr(r),e.__zr=r,e.__hostTarget=this}},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var r=this._textContent;r!==e&&(r&&r!==e&&this.removeTextContent(),e.innerTransformable=new Pn,this._attachComponent(e),this._textContent=e,this.markRedraw())},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),R(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Re;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)e.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,r,i){var a=new Ya(e?this[e]:this,r,i);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,r){var i=this.__zr,n=this;e.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=Z(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!e||e===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,r,i){Zf(this,e,r,i)},t.prototype.animateFrom=function(e,r,i){Zf(this,e,r,i,!0)},t.prototype._transitionState=function(e,r,i,n){for(var a=Zf(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=(function(){var e=t.prototype;e.type=`element`,e.name=``,e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Vs,e.__dirty=Re;function n(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,c){Object.defineProperty(c,0,{get:function(){return f[s]},set:function(p){f[s]=p}}),Object.defineProperty(c,1,{get:function(){return f[l]},set:function(p){f[l]=p}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),t})();nt(Qf,Qe);nt(Qf,Pn);function Zf(t,e,r,i,n){r=r||{};var a=[];Xd(t,``,t,e,r,i,a,n);var o=a.length,s=!1,l=r.done,u=r.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},c=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var p=0;p<a.length;p++){var h=a[p];f&&h.done(f),c&&h.aborted(c),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function jf(t,e,r){for(var i=0;i<r;i++)t[i]=e[i]}function jw(t){return ke(t[0])}function Qw(t,e,r){if(ke(e[r]))if(ke(t[r])||(t[r]=[]),De(e[r])){var i=e[r].length;t[r].length!==i&&(t[r]=new e[r].constructor(i),jf(t[r],e[r],i))}else{var n=e[r],a=t[r],o=n.length;if(jw(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?jf(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else jf(a,n,o);a.length=n.length}else t[r]=e[r]}function $w(t,e){return t===e||ke(t)&&ke(e)&&Jw(t,e)}function Jw(t,e){var r=t.length;if(r!==e.length)return!1;for(var i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function Xd(t,e,r,i,n,a,o,s){for(var l=ie(i),u=n.duration,f=n.delay,c=n.additive,p=n.setToFinal,h=!N(a),v=t.animators,g=[],d=0;d<l.length;d++){var m=l[d],y=i[m];if(y!=null&&r[m]!=null&&(h||a[m]))if(N(y)&&!ke(y)&&!zr(y)){if(e){s||(r[m]=y,t.updateDuringAnimation(e));continue}Xd(t,m,r[m],y,n,a&&a[m],o,s)}else g.push(m);else s||(r[m]=y,t.updateDuringAnimation(e),g.push(m))}var _=g.length;if(!c&&_)for(var x=0;x<v.length;x++){var S=v[x];if(S.targetName===e){if(S.stopTracks(g)){var C=Z(v,S);v.splice(C,1)}}}if(n.force||(g=Ce(g,function(A){return!$w(i[A],r[A])}),_=g.length),_>0||n.force&&!o.length){var E=void 0,b=void 0,D=void 0;if(s){b={},p&&(E={});for(var x=0;x<_;x++){var m=g[x];b[m]=r[m],p?E[m]=i[m]:r[m]=i[m]}}else if(p){D={};for(var x=0;x<_;x++){var m=g[x];D[m]=Ga(r[m]),Qw(r,i,m)}}var S=new Ya(r,!1,!1,c?Ce(v,function(O){return O.targetName===e}):null);S.targetName=e,n.scope&&(S.scope=n.scope),p&&E&&S.whenWithKeys(0,E,g),D&&S.whenWithKeys(0,D,g),S.whenWithKeys(u??500,s?b:i,g).delay(f||0),t.addAnimator(S,e),o.push(S)}}function Gd(t,e,r,i){return!(r&&r.hoverLayer||i)||Yd(t)||e&&Yd(e)?Vs:kn}function Yd(t){return t.type===`text`||t.type===`tspan`}function Wd(t,e,r){return!e&&!t.__inHover&&r&&r.duration>0}var Hs=Qf;var qd=(function(t){W(e,t);function e(r){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(r){return this._children[r]},e.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},e.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},e.prototype.replace=function(r,i){var n=Z(this._children,r);return n>=0&&this.replaceAt(i,n),this},e.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},e.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Z(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},e.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},e.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(r)},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(r)},e.prototype.getBoundingRect=function(r){for(var i=new X(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(X.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Hs);qd.prototype.type=`group`;var We=qd;var Gs={};var Kd={};function eb(t){delete Kd[t]}function tb(t){if(!t)return!1;if(typeof t==`string`)return On(t,1)<Wa;if(t.colorStops){for(var e=t.colorStops,r=0,i=e.length,n=0;n<i;n++)r+=On(e[n].color,1);return r/=i,r<Wa}return!1}var rb=(function(){function t(e,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=r,this.id=e;var a=new od,o=i.renderer||`canvas`;Gs[o]||(o=ie(Gs)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Gs[o](r,a,i,e),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!q.node&&!q.worker&&!l?new Pd(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,c=f==null||f===`auto`?q.touchEventsSupported:!!f,p=44,h;c&&(h=H(i.pointerSize,p)),this.handler=new ed(a,s,u,s.root,h),this.animation=new Ad({stage:{update:l?null:function(){return n._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,r),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=tb(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(e){var r,i=Ei(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(r=!0,this._refresh({animUpdate:e,refresh:n,refreshHover:a}));var o=Ei();r?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,r){if(!this._disposed)return this.handler.findHover(e,r)},t.prototype.on=function(e,r,i){return this._disposed||this.handler.on(e,r,i),this},t.prototype.off=function(e,r){this._disposed||this.handler.off(e,r)},t.prototype.trigger=function(e,r){this._disposed||this.handler.trigger(e,r)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),r=0;r<e.length;r++)e[r]instanceof We&&e[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,eb(this.id))},t})();function $f(t,e){var r=new rb(us(),t,e);return Kd[r.id]=r,r}function Zd(t,e){Gs[t]=e}var Qd=1e-4;var Ys=20;function ab(t){return t.replace(/^\s+|\s+$/g,``)}var ze=Math.min;var he=Math.max;var st=Math.abs;var Kt=Math.round;var Cr=Math.floor;var Za=Math.ceil;var Oi=Math.pow;var Bn=Math.log;var Jf=Math.LN10;var ob=Math.PI;var sb=Math.random;function $d(t,e,r,i){var n=e[0],a=e[1],o=r[0],s=r[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(t<=n)return o;if(t>=a)return s}else{if(t>=n)return o;if(t<=a)return s}else{if(t===n)return o;if(t===a)return s}return(t-n)/l*u+o}var lt=lb;function lb(t,e,r){switch(t){case`center`:case`middle`:t=`50%`;break;case`left`:case`top`:t=`0%`;break;case`right`:case`bottom`:t=`100%`;break}return ub(t,e,r)}function ub(t,e,r){return P(t)?fb(t)?parseFloat(t)/100*e+(r||0):parseFloat(t):t==null?NaN:+t}function fb(t){return!!ab(t).match(/%$/)}function Me(t,e,r){return isNaN(e)?r?``+t:+t:(e=ze(he(0,e),Ys),t=(+t).toFixed(e),r?t:+t)}function Jd(t,e,r){return e??=10,Me(t,e,r)}function Ws(t){return t.sort(function(e,r){return e-r}),t}function wt(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,r=0;r<15;r++,e*=10)if(Kt(t*e)/e===t)return r}return ec(t)}function ec(t){var e=t.toString().toLowerCase(),r=e.indexOf(`e`),i=r>0?+e.slice(r+1):0,n=r>0?r:e.length,a=e.indexOf(`.`);return he(0,(a<0?0:n-1-a)-i)}function em(t,e){var r=Cr(Bn(t[1]-t[0])/Jf),i=Kt(Bn(st(e[1]-e[0]))/Jf),n=ze(he(-r+i,0),Ys);return isFinite(n)?n:Ys}function tm(t,e,r){if(!t[e])return 0;return cb(t,r)[e]||0}function cb(t,e){var r=at(t,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var i=Oi(10,e),n=U(t,function(h){return(isNaN(h)?0:h)/r*i*100}),a=i*100,o=U(n,function(h){return Cr(h)}),s=at(o,function(h,v){return h+v},0),l=U(n,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return U(o,function(h){return h/i})}function rm(t,e){var r=he(wt(t),wt(e)),i=t+e;return r>Ys?i:Me(i,r)}var im=Oi(2,53)-1;function ja(t){var e=ob*2;return(t%e+e)%e}function Ii(t){return t>-Qd&&t<Qd}var pb=/^(?:(\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 bt(t){if(t instanceof Date)return t;if(P(t)){var e=pb.exec(t);if(!e)return new Date(NaN);if(e[8]){var r=+e[4]||0;return e[8].toUpperCase()!==`Z`&&(r-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,r,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Kt(t))}function Xs(t){return Oi(10,Qa(t))}function Qa(t){if(t===0)return 0;var e=Cr(Bn(t)/Jf);return t/Oi(10,e)>=10&&e++,e}var hb=2;function Ri(t,e){var r=Qa(t),i=Oi(10,r),n=t/i,a;return e===hb?a=1:e?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,t=a*i,Me(t,-r)}function nm(t,e){var r=(t.length-1)*e+1,i=Cr(r),n=+t[i-1],a=r-i;return a?n+a*(t[i]-n):n}function am(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-Infinity,r=1,i=0;i<t.length;){for(var n=t[i].interval,a=t[i].close,o=0;o<2;o++)n[o]<=e&&(n[o]=e,a[o]=o?1:1-r),e=n[o],r=a[o];n[0]===n[1]&&a[0]*a[1]!==1?t.splice(i,1):i++}return t;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 Bt(t){var e=parseFloat(t);return e==t&&(e!==0||!P(t)||t.indexOf(`x`)<=0)?e:NaN}function $a(t){return!isNaN(Bt(t))}function Ja(){return Kt(sb()*9)}function om(t,e){return e===0?t:om(e,t%e)}function tc(t,e){return t==null?e:e==null?t:t*e/om(t,e)}function gt(t){return t!=null&&isFinite(t)}var vb=`[ECharts] `;var lm={};var db=typeof console<`u`&&console.warn&&console.log;function mb(t,e,r){if(db){if(r){if(lm[e])return;lm[e]=!0}console[t](vb+e)}}function rc(t,e){mb(`error`,t,e)}function Xe(t){throw new Error(t)}function um(t,e,r){return(e-t)*r+t}var fm=`series\0`;var gb=`\0_ec_\0`;function Se(t){return t instanceof Array?t:t==null?[]:[t]}function ic(t,e,r){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,n=r.length;i<n;i++){var a=r[i];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var nc=[`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 Er(t){return N(t)&&!L(t)&&!(t instanceof Date)?t.value:t}function cm(t){return N(t)&&!(t instanceof Array)}function pm(t,e,r){var i=r===`normalMerge`,n=r===`replaceMerge`,a=r===`replaceAll`;t=t||[],e=(e||[]).slice();var o=z();w(e,function(l,u){if(!N(l)){e[u]=null;return}});var s=yb(t,o,r);return(i||n)&&_b(s,t,o,e),i&&xb(s,e),i||n?Sb(s,e,n):a&&Tb(s,e),wb(s),s}function yb(t,e,r){var i=[];if(r===`replaceAll`)return i;for(var n=0;n<t.length;n++){var a=t[n];a&&a.id!=null&&e.set(a.id,n),i.push({existing:r===`replaceMerge`||Un(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function _b(t,e,r,i){w(i,function(n,a){if(!(!n||n.id==null)){var o=eo(n.id),s=r.get(o);if(s!=null){var l=t[s];Be(!l.newOption,`Duplicated option on id "`+o+`".`),l.newOption=n,l.existing=e[s],i[a]=null}}})}function xb(t,e){w(e,function(r,i){if(!(!r||r.name==null))for(var n=0;n<t.length;n++){var a=t[n].existing;if(!t[n].newOption&&a&&(a.id==null||r.id==null)&&!Un(r)&&!Un(a)&&hm(`name`,a,r)){t[n].newOption=r,e[i]=null;return}}})}function Sb(t,e,r){w(e,function(i){if(i){for(var n,a=0;(n=t[a])&&(n.newOption||Un(n.existing)||n.existing&&i.id!=null&&!hm(`id`,i,n.existing));)a++;n?(n.newOption=i,n.brandNew=r):t.push({newOption:i,brandNew:r,existing:null,keyInfo:null}),a++}})}function Tb(t,e){w(e,function(r){t.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function wb(t){var e=z();w(t,function(r){var i=r.existing;i&&e.set(i.id,r)}),w(t,function(r){var i=r.newOption;Be(!i||i.id==null||!e.get(i.id)||e.get(i.id)===r,`id duplicates: `+(i&&i.id)),i&&i.id!=null&&e.set(i.id,r),!r.keyInfo&&(r.keyInfo={})}),w(t,function(r,i){var n=r.existing,a=r.newOption,o=r.keyInfo;if(N(a)){if(o.name=a.name!=null?eo(a.name):n?n.name:fm+i,n)o.id=eo(n.id);else if(a.id!=null)o.id=eo(a.id);else{var s=0;do o.id=`\0`+o.name+`\0`+s++;while(e.get(o.id))}e.set(o.id,r)}})}function hm(t,e,r){var i=Ct(e[t],null),n=Ct(r[t],null);return i!=null&&n!=null&&i===n}function eo(t){return Ct(t,``)}function Ct(t,e){return t==null?e:P(t)?t:ae(t)||Oa(t)?t+``:e}function qs(t){var e=t.name;return!!(e&&e.indexOf(fm))}function Un(t){return t&&t.id!=null&&eo(t.id).indexOf(gb)===0}function vm(t,e,r){w(t,function(i){var n=i.newOption;N(n)&&(i.keyInfo.mainType=e,i.keyInfo.subType=bb(e,n,i.existing,r))})}function bb(t,e,r,i){return e.type?e.type:r?r.subType:i.determineSubType(t,e)}function Dr(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return L(e.dataIndex)?U(e.dataIndex,function(r){return t.indexOfRawIndex(r)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return L(e.name)?U(e.name,function(r){return t.indexOfName(r)}):t.indexOfName(e.name)}function K(){var t=`__ec_inner_`+Cb++;return function(e){return e[t]||(e[t]={})}}var Cb=Ja();function Ks(t,e,r){var i=to(e,r),n=i.mainTypeSpecified,a=i.queryOptionMap,s=i.others,l=r?r.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var c=Kr(t,f,u,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+`Models`]=c.models,s[f+`Model`]=c.models[0]}),s}function to(t,e){var r;if(P(t)){var i={};i[t+`Index`]=0,r=i}else r=t;var n=z(),a={},o=!1;return w(r,function(s,l){if(l===`dataIndex`||l===`dataIndexInside`){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||``).toLowerCase();if(!(!f||!c||e&&e.includeMainTypes&&Z(e.includeMainTypes,f)<0)){o=o||!!f;var p=n.get(f)||n.set(f,{});p[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var nr={useDefault:!0,enableAll:!1,enableNone:!1};function Kr(t,e,r,i){i=i||nr;var n=r.index,a=r.id,o=r.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=t.getComponent(e))?[l]:[],s}if(n===`none`||n===!1){if(i.enableNone)return s.models=[],s;n=-1}return n===`all`&&(i.enableAll?n=a=o=null:n=-1),s.models=t.queryComponents({mainType:e,index:n,id:a,name:o}),s}function dm(t,e,r){var i={};i[e+`Id`]=t[e+`Id`],i[e+`Index`]=t[e+`Index`],i[e+`Name`]=t[e+`Name`];var n={mainType:e,query:i};return r&&(n.subType=r),n}function ac(t,e,r){t.setAttribute?t.setAttribute(e,r):t[e]=r}function mm(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function gm(t){return t===`auto`?q.domSupported?`html`:`richText`:t||`html`}function ym(t,e,r,i,n){var a=e==null||e===`auto`;if(i==null)return i;if(ae(i)){var o=um(r||0,i,n);return Me(o,a?Math.max(wt(r||0),wt(i)):e)}else{if(P(i))return n<1?r:i;for(var s=[],l=r,u=i,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var p=t.getDimensionInfo(c);if(p&&p.type===`ordinal`)s[c]=(n<1&&l?l:u)[c];else{var h=l&&l[c]?l[c]:0,v=u[c],o=um(h,v,n);s[c]=Me(o,a?Math.max(wt(h),wt(v)):e)}}return s}}(function(){function t(){}return t.prototype.reset=function(e,r,i,n){return this._list=e,this._step=n=n||1,this._idx=r,this._end=i??(n>0?e.length:0),this.item=null,this.key=NaN,this},t.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},t})();function Et(){return[Infinity,-Infinity]}function oc(t,e){ir(e)&&e<t[0]&&(t[0]=e)}function sc(t,e){ir(e)&&e>t[1]&&(t[1]=e)}function ir(t){return t!=null&&isFinite(t)}function Li(t,e){return ir(t)&&ir(e)&&t<=e}function _m(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function xm(t){Li(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function Sm(){var t=`__ec_once_`+Eb++;return function(e,r){Ue(e,t)||(e[t]=1,r())}}var Eb=Ja();function ro(t,e,r){var i=z(),n=0;w(t,function(a){var o=e(a),s=i.get(o)||0;r&&r(a,s),!s&&!r&&(t[n++]=a),i.set(o,s+1)}),r||(t.length=n)}function Tm(t){return t.value+``}function wm(t,e,r){var i=t.getData().count();return{progressiveRender:r.progressiveEnabled&&e.incrementalPrepareRender&&i>=r.threshold,large:t.get(`large`)&&i>=t.get(`largeThreshold`),modDataCount:t.get(`progressiveChunkMode`)===`mod`?t.getData().count():null}}function SR(t,e){return{seriesType:t,overallReset:e}}function zn(t){return{overallReset:t}}var Db=`.`;var Pi=`___EC__COMPONENT__CONTAINER___`;var bm=`___EC__EXTENDED_CLASS___`;function yt(t){var e={main:``,sub:``};if(t){var r=t.split(Db);e.main=r[0]||``,e.sub=r[1]||``}return e}function Mb(t){Be(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),`componentType "`+t+`" illegal`)}function Cm(t){return!!(t&&t[bm])}function Vn(t,e){t.$constructor=t,t.extend=function(r){var i=this,n;return Ab(i)?n=(function(a){se(o,a);function o(){return a.apply(this,arguments)||this}return o})(i):(n=function(){(r.$constructor||i).apply(this,arguments)},fs(n,this)),R(n.prototype,r),n[bm]=!0,n.extend=this.extend,n.superCall=Ib,n.superApply=Rb,n.superClass=i,n}}function Ab(t){return V(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Zs(t,e){t.extend=e.extend}var Ob=Math.round(Math.random()*10);function Em(t){var e=[`__\0is_clz`,Ob++].join(`_`);t.prototype[e]=!0,t.isInstance=function(r){return!!(r&&r[e])}}function Ib(t,e){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,r)}function Rb(t,e,r){return this.superClass.prototype[e].apply(t,r)}function Zr(t){var e={};t.registerClass=function(i){var n=i.type||i.prototype.type;if(n){Mb(n),i.prototype.type=n;var a=yt(n);if(!a.sub)e[a.main]=i;else if(a.sub!==Pi){var o=r(a);o[a.sub]=i}}return i},t.getClass=function(i,n,a){var o=e[i];if(o&&o[Pi]&&(o=n?o[n]:null),a&&!o)throw new Error(n?`Component `+i+`.`+(n||``)+` is used but not imported.`:i+`.type should be specified.`);return o},t.getClassesByMainType=function(i){var n=yt(i),a=[],o=e[n.main];return o&&o[Pi]?w(o,function(s,l){l!==Pi&&a.push(s)}):a.push(o),a},t.hasClass=function(i){return!!e[yt(i).main]},t.getAllClassMainTypes=function(){var i=[];return w(e,function(n,a){i.push(a)}),i},t.hasSubTypes=function(i){var a=e[yt(i).main];return a&&a[Pi]};function r(i){var n=e[i.main];return(!n||!n[Pi])&&(n=e[i.main]={},n[Pi]=!0),n}}function ar(t,e){for(var r=0;r<t.length;r++)t[r][1]||(t[r][1]=t[r][0]);return e=e||!1,function(i,n,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(n&&Z(n,l)>=0||a&&Z(a,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var Pb=ar([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]);var Dm=(function(){function t(){}return t.prototype.getAreaStyle=function(e,r){return Pb(this,e,r)},t})();var uc=new rr(50);function Am(t){if(typeof t==`string`){var e=uc.get(t);return e&&e.image}else return t}function fc(t,e,r,i,n){if(t)if(typeof t==`string`){if(e&&e.__zrImageSrc===t||!r)return e;var a=uc.get(t),o={hostEl:r,cb:i,cbPayload:n};return a?(e=a.image,!Hn(e)&&a.pending.push(o)):(e=Ie.loadImage(t,Mm,Mm),e.__zrImageSrc=t,uc.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function Mm(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var r=t.pending[e],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}t.pending.length=0}function Hn(t){return t&&t.width&&t.height}var cc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function hc(t,e,r,i,n){var a={};return Lm(a,t,e,r,i,n),a.text}function Lm(t,e,r,i,n,a){if(!r){t.text=``,t.isTruncated=!1;return}var o=(e+``).split(`
3
- `);a=Pm(r,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)Nm(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join(`
4
- `),t.isTruncated=s}function Pm(t,e,r,i){i=i||{};var n=R({},i);r=H(r,`...`),n.maxIterations=H(i.maxIterations,2);var a=n.minChar=H(i.minChar,0),o=n.fontMeasureInfo=Xt(e),s=o.asciiCharWidth;n.placeholder=H(i.placeholder,``);for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var f=qt(o,r);return f>l&&(r=``,f=0),l=t-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=t,n}function Nm(t,e,r){var i=r.containerWidth,n=r.contentWidth,a=r.fontMeasureInfo;if(!i){t.textLine=``,t.isTruncated=!1;return}var o=qt(a,e);if(o<=i){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=r.maxIterations){e+=r.ellipsis;break}var l=s===0?kb(e,n,a):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=qt(a,e)}e===``&&(e=r.placeholder),t.textLine=e,t.isTruncated=!0}function kb(t,e,r){for(var i=0,n=0,a=t.length;n<a&&i<e;n++)i+=Xf(r,t.charCodeAt(n));return n}function km(t,e,r,i){var n=dc(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=a===`truncate`,c=Ka(u),p=H(e.lineHeight,c),h=e.lineOverflow===`truncate`,v=!1,g=e.width;g==null&&r!=null&&(g=r-s);var d=e.height;d==null&&i!=null&&(d=i-l);var m;g!=null&&(a===`break`||a===`breakAll`)?m=n?Um(n,e.font,g,a===`breakAll`,0).lines:[]:m=n?n.split(`
5
- `):[];var y=m.length*p;if(d??=y,y>d&&h){var _=Math.floor(d/p);v=v||m.length>_,m=m.slice(0,_),y=m.length*p}if(n&&f&&g!=null)for(var x=Pm(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},T=0;T<m.length;T++)Nm(S,m[T],x),m[T]=S.textLine,v=v||S.isTruncated;for(var C=d,E=0,b=Xt(u),T=0;T<m.length;T++)E=Math.max(qt(b,m[T]),E);g??=E;var D=g;return C+=l,D+=s,{lines:m,height:d,outerWidth:D,outerHeight:C,lineHeight:p,calculatedLineHeight:c,contentWidth:E,contentHeight:y,width:g,isTruncated:v}}var Bb=(function(){function t(){}return t})();var Om=(function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t})();var Ub=(function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t})();function Bm(t,e,r,i,n){var a=new Ub,o=dc(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&r!=null&&(f=r-l);var c=e.height;c==null&&i!=null&&(c=i-u);for(var p=e.overflow,h=(p===`break`||p===`breakAll`)&&f!=null?{width:f,accumWidth:0,breakAll:p===`breakAll`}:null,v=cc.lastIndex=0,g;(g=cc.exec(o))!=null;){var d=g.index;d>v&&pc(a,o.substring(v,d),e,h),pc(a,g[2],e,h,g[1]),v=cc.lastIndex}v<o.length&&pc(a,o.substring(v,o.length),e,h);var m=[],y=0,_=0,x=p===`truncate`,S=e.lineOverflow===`truncate`,T={};function C(be,xt,mr){be.width=xt,be.lineHeight=mr,y+=mr,_=Math.max(_,xt)}e:for(var E=0;E<a.lines.length;E++){for(var b=a.lines[E],D=0,A=0,O=0;O<b.tokens.length;O++){var M=b.tokens[O],I=M.styleName&&e.rich[M.styleName]||{},F=M.textPadding=I.padding,B=F?F[1]+F[3]:0,Y=M.font=I.font||e.font;M.contentHeight=Ka(Y);var ne=H(I.height,M.contentHeight);if(M.innerHeight=ne,F&&(ne+=F[0]+F[2]),M.height=ne,M.lineHeight=Yt(I.lineHeight,e.lineHeight,ne),M.align=I&&I.align||n,M.verticalAlign=I&&I.verticalAlign||`middle`,S&&c!=null&&y+M.lineHeight>c){var te=a.lines.length;O>0?(b.tokens=b.tokens.slice(0,O),C(b,A,D),a.lines=a.lines.slice(0,E+1)):a.lines=a.lines.slice(0,E),a.isTruncated=a.isTruncated||a.lines.length<te;break e}var Q=I.width,ee=Q==null||Q===`auto`;if(typeof Q==`string`&&Q.charAt(Q.length-1)===`%`)M.percentWidth=Q,m.push(M),M.contentWidth=qt(Xt(Y),M.text);else{if(ee){var ue=I.backgroundColor,fe=ue&&ue.image;fe&&(fe=Am(fe),Hn(fe)&&(M.width=Math.max(M.width,fe.width*ne/fe.height)))}var j=x&&f!=null?f-A:null;j!=null&&j<M.width?!ee||j<B?(M.text=``,M.width=M.contentWidth=0):(Lm(T,M.text,j-B,Y,e.ellipsis,{minChar:e.truncateMinChar}),M.text=T.text,a.isTruncated=a.isTruncated||T.isTruncated,M.width=M.contentWidth=qt(Xt(Y),M.text)):M.contentWidth=qt(Xt(Y),M.text)}M.width+=B,A+=M.width,I&&(D=Math.max(D,M.lineHeight))}C(b,A,D)}a.outerWidth=a.width=H(f,_),a.outerHeight=a.height=H(c,y),a.contentHeight=y,a.contentWidth=_,a.outerWidth+=l,a.outerHeight+=u;for(var E=0;E<m.length;E++){var M=m[E],ve=M.percentWidth;M.width=parseInt(ve,10)/100*a.width}return a}function pc(t,e,r,i,n){var a=e===``,o=n&&r.rich[n]||{},s=t.lines,l=o.font||r.font,u=!1,f,c;if(i){var p=o.padding,h=p?p[1]+p[3]:0;if(o.width!=null&&o.width!==`auto`){var v=wr(o.width,i.width)+h;s.length>0&&v+i.accumWidth>i.width&&(f=e.split(`
6
- `),u=!0),i.accumWidth=v}else{var g=Um(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+h,c=g.linesWidths,f=g.lines}}f||(f=e.split(`
7
- `));for(var d=Xt(l),m=0;m<f.length;m++){var y=f[m],_=new Bb;if(_.styleName=n,_.text=y,_.isLineHolder=!y&&!a,typeof o.width==`number`?_.width=o.width:_.width=c?c[m]:qt(d,y),!m&&!u){var x=(s[s.length-1]||(s[0]=new Om)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||a)&&x.push(_)}else s.push(new Om([_]))}}function zb(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var Fb=at(`,&?/;] `.split(``),function(t,e){return t[e]=!0,t},{});function Vb(t){return zb(t)?!!Fb[t]:!0}function Um(t,e,r,i,n){for(var a=[],o=[],s=``,l=``,u=0,f=0,c=Xt(e),p=0;p<t.length;p++){var h=t.charAt(p);if(h===`
8
- `){l&&(s+=l,f+=u),a.push(s),o.push(f),s=``,l=``,u=0,f=0;continue}var v=Xf(c,h.charCodeAt(0)),g=i?!1:!Vb(h);if(a.length?f+v>r:n+f+v>r){f?(s||l)&&(g?(s||(s=l,l=``,u=0,f=u),a.push(s),o.push(f-u),l+=h,u+=v,s=``,f=u):(l&&(s+=l,l=``,u=0),a.push(s),o.push(f),s=h,f=v)):g?(a.push(l),o.push(u),l=h,u=v):(a.push(h),o.push(v));continue}f+=v,g?(l+=h,u+=v):(l&&(s+=l,l=``,u=0),s+=h)}return l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}function vc(t,e,r,i,n,a){if(t.baseX=r,t.baseY=i,t.outerWidth=t.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;X.set(Im,qr(r,o,n),br(i,s,a),o,s),X.intersect(e,Im,null,Rm);var l=Rm.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=qr(l.x,l.width,n,!0),t.baseY=br(l.y,l.height,a,!0)}}var Im=new X(0,0,0,0);var Rm={outIntersectRect:{},clamp:!0};function dc(t){return t!=null?t+=``:t=``}function zm(t){var e=dc(t.text),r=t.font;return js(t,qt(Xt(r),e),Ka(r),null)}function js(t,e,r,i){var n=new X(qr(t.x||0,e,t.textAlign),br(t.y||0,r,t.textBaseline),e,r),a=i??(mc(t)?t.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function mc(t){var e=t.stroke;return e!=null&&e!==`none`&&t.lineWidth>0}var _c=`__zr_style_`+Math.round(Math.random()*10);var or={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`};var Ni={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};or[_c]=!0;var Fm=[`z`,`z2`,`invisible`];var Hb=[`invisible`];var Gb=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype._init=function(r){for(var i=ie(r),n=0;n<i.length;n++){var a=i[n];a===`style`?this.useStyle(r[a]):t.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(r){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yb(this,r,i)||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(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(r,i){return this.rectContain(r,i)},e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i);return this.getBoundingRect().contain(n[0],n[1])},e.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new X(0,0,0,0)),i?X.applyTransform(r,n,i):r.copy(n),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},e.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(r){return this.animate(`style`,r)},e.prototype.updateDuringAnimation=function(r){r===`style`?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(r,i){r!==`style`?t.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(r,i){return typeof r==`string`?this.style[r]=i:R(this.style,r),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=bi,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&bi)},e.prototype.styleUpdated=function(){this.__dirty&=~bi},e.prototype.createStyle=function(r){return Fr(or,r)},e.prototype.useStyle=function(r){r[_c]||(r=this.createStyle(r)),this.style=r,this.dirtyStyle()},e.prototype._useHoverStyle=function(r){this.__hoverStyle=r},e.prototype.isStyleObject=function(r){return r[_c]},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,Fm)},e.prototype._applyStateObj=function(r,i,n,a,o,s){t.prototype._applyStateObj.call(this,r,i,n,a,o,s);var l=!(i&&a),u=this.__inHover===kn,f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):l&&(f=n.style),f)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var p=ie(c),h=0;h<p.length;h++){var v=p[h];v in f&&(f[v]=f[v],this.style[v]=c[v])}for(var g=ie(f),h=0;h<g.length;h++){var v=g[h];this.style[v]=this.style[v]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var d=this.__inHover?Hb:Fm,h=0;h<d.length;h++){var v=d[h];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},e.prototype._mergeStyle=function(r,i){return R(r,i),r},e.prototype.getAnimationStyleProps=function(){return Ni},e.initDefaultProps=(function(){var r=e.prototype;r.type=`displayable`,r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor=`pointer`,r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Re|bi})(),e})(Hs);var gc=new X(0,0,0,0);var yc=new X(0,0,0,0);function Yb(t,e,r){return gc.copy(t.getBoundingRect()),t.transform&&gc.applyTransform(t.transform),yc.width=e,yc.height=r,!gc.intersect(yc)}var sr=Gb;var Ut=Math.min;var zt=Math.max;var xc=Math.sin;var Sc=Math.cos;var ki=Math.PI*2;var Qs=Vr();var $s=Vr();var Js=Vr();function Tc(t,e,r,i,n,a){n[0]=Ut(t,r),n[1]=Ut(e,i),a[0]=zt(t,r),a[1]=zt(e,i)}var Vm=[];var Hm=[];function Gm(t,e,r,i,n,a,o,s,l,u){var f=Ds,c=Le,p=f(t,r,n,o,Vm);l[0]=Infinity,l[1]=Infinity,u[0]=-Infinity,u[1]=-Infinity;for(var h=0;h<p;h++){var v=c(t,r,n,o,Vm[h]);l[0]=Ut(v,l[0]),u[0]=zt(v,u[0])}p=f(e,i,a,s,Hm);for(var h=0;h<p;h++){var g=c(e,i,a,s,Hm[h]);l[1]=Ut(g,l[1]),u[1]=zt(g,u[1])}l[0]=Ut(t,l[0]),u[0]=zt(t,u[0]),l[0]=Ut(o,l[0]),u[0]=zt(o,u[0]),l[1]=Ut(e,l[1]),u[1]=zt(e,u[1]),l[1]=Ut(s,l[1]),u[1]=zt(s,u[1])}function Ym(t,e,r,i,n,a,o,s){var l=Ms,u=Ge,f=zt(Ut(l(t,r,n),1),0),c=zt(Ut(l(e,i,a),1),0),p=u(t,r,n,f),h=u(e,i,a,c);o[0]=Ut(t,n,p),o[1]=Ut(e,a,h),s[0]=zt(t,n,p),s[1]=zt(e,a,h)}function Wm(t,e,r,i,n,a,o,s,l){var u=gr,f=yr,c=Math.abs(n-a);if(c%ki<1e-4&&c>1e-4){s[0]=t-r,s[1]=e-i,l[0]=t+r,l[1]=e+i;return}if(Qs[0]=Sc(n)*r+t,Qs[1]=xc(n)*i+e,$s[0]=Sc(a)*r+t,$s[1]=xc(a)*i+e,u(s,Qs,$s),f(l,Qs,$s),n=n%ki,n<0&&(n=n+ki),a=a%ki,a<0&&(a=a+ki),n>a&&!o?a+=ki:n<a&&o&&(n+=ki),o){var p=a;a=n,n=p}for(var h=0;h<a;h+=Math.PI/2)h>n&&(Js[0]=Sc(h)*r+t,Js[1]=xc(h)*i+e,u(s,Js,s),f(l,Js,l))}var me={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7};var Bi=[];var Ui=[];var lr=[];var jr=[];var ur=[];var fr=[];var wc=Math.min;var bc=Math.max;var zi=Math.cos;var Fi=Math.sin;var Mr=Math.abs;var Dc=Math.PI;var Qr=Dc*2;var Cc=typeof Float32Array<`u`;var io=[];function Ec(t){return Math.round(t/Dc*1e8)/1e8%2*Dc}function Wb(t,e){var r=Ec(t[0]);r<0&&(r+=Qr);var i=r-t[0],n=t[1];n+=i,!e&&n-r>=Qr?n=r+Qr:e&&r-n>=Qr?n=r-Qr:!e&&r>n?n=r+(Qr-Ec(r-n)):e&&r<n&&(n=r-(Qr-Ec(n-r))),t[0]=r,t[1]=n}var Zt=(function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,r,i){i=i||0,i>0&&(this._ux=Mr(i/Di/e)||0,this._uy=Mr(i/Di/r)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,r){return this._drawPendingPt(),this.addData(me.M,e,r),this._ctx&&this._ctx.moveTo(e,r),this._x0=e,this._y0=r,this._xi=e,this._yi=r,this},t.prototype.lineTo=function(e,r){var i=Mr(e-this._xi),n=Mr(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(me.L,e,r),this._ctx&&a&&this._ctx.lineTo(e,r),a)this._xi=e,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=r,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,r,i,n,a,o){return this._drawPendingPt(),this.addData(me.C,e,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(e,r,i,n,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,r,i,n){return this._drawPendingPt(),this.addData(me.Q,e,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(e,r,i,n),this._xi=i,this._yi=n,this},t.prototype.arc=function(e,r,i,n,a,o){this._drawPendingPt(),io[0]=n,io[1]=a,Wb(io,o),n=io[0],a=io[1];var s=a-n;return this.addData(me.A,e,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(e,r,i,n,a,o),this._xi=zi(a)*i+e,this._yi=Fi(a)*i+r,this},t.prototype.arcTo=function(e,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,r,i,n,a),this},t.prototype.rect=function(e,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,r,i,n),this.addData(me.R,e,r,i,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(me.Z);var e=this._ctx,r=this._x0,i=this._y0;return e&&e.closePath(),this._xi=r,this._yi=i,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){if(this._saveData){var r=e.length;!(this.data&&this.data.length===r)&&Cc&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=e[i];this._len=r}},t.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var r=e.length,i=0,n=this._len,a=0;a<r;a++)i+=e[a].len();var o=this.data;if(Cc&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<r;a++)for(var l=e[a].data,s=0;s<l.length;s++)this.data[n++]=l[s];this._len=n}},t.prototype.addData=function(e,r,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var c=0;c<arguments.length;c++)f[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],r=0;r<this._len;r++)e[r]=this.data[r];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Cc&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){lr[0]=lr[1]=ur[0]=ur[1]=Number.MAX_VALUE,jr[0]=jr[1]=fr[0]=fr[1]=-Number.MAX_VALUE;var e=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(r=e[o],i=e[o+1],n=r,a=i),s){case me.M:r=n=e[o++],i=a=e[o++],ur[0]=n,ur[1]=a,fr[0]=n,fr[1]=a;break;case me.L:Tc(r,i,e[o],e[o+1],ur,fr),r=e[o++],i=e[o++];break;case me.C:Gm(r,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],ur,fr),r=e[o++],i=e[o++];break;case me.Q:Ym(r,i,e[o++],e[o++],e[o],e[o+1],ur,fr),r=e[o++],i=e[o++];break;case me.A:var u=e[o++],f=e[o++],c=e[o++],p=e[o++],h=e[o++],v=e[o++]+h;o+=1;var g=!e[o++];l&&(n=zi(h)*c+u,a=Fi(h)*p+f),Wm(u,f,c,p,h,v,g,ur,fr),r=zi(v)*c+u,i=Fi(v)*p+f;break;case me.R:n=r=e[o++],a=i=e[o++];var d=e[o++],m=e[o++];Tc(n,a,n+d,a+m,ur,fr);break;case me.Z:r=n,i=a;break}gr(lr,lr,ur),yr(jr,jr,fr)}return o===0&&(lr[0]=lr[1]=jr[0]=jr[1]=0),new X(lr[0],lr[1],jr[0]-lr[0],jr[1]-lr[1])},t.prototype._calculateLength=function(){var e=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,c=0,p=0;p<r;){var h=e[p++],v=p===1;v&&(a=e[p],o=e[p+1],s=a,l=o);var g=-1;switch(h){case me.M:a=s=e[p++],o=l=e[p++];break;case me.L:var d=e[p++],m=e[p++],y=d-a,_=m-o;(Mr(y)>i||Mr(_)>n||p===r-1)&&(g=Math.sqrt(y*y+_*_),a=d,o=m);break;case me.C:var x=e[p++],S=e[p++],d=e[p++],m=e[p++],T=e[p++],C=e[p++];g=pd(a,o,x,S,d,m,T,C,10),a=T,o=C;break;case me.Q:var x=e[p++],S=e[p++],d=e[p++],m=e[p++];g=dd(a,o,x,S,d,m,10),a=d,o=m;break;case me.A:var E=e[p++],b=e[p++],D=e[p++],A=e[p++],O=e[p++],M=e[p++],I=M+O;p+=1,v&&(s=zi(O)*D+E,l=Fi(O)*A+b),g=bc(D,A)*wc(Qr,Math.abs(M)),a=zi(I)*D+E,o=Fi(I)*A+b;break;case me.R:s=a=e[p++],l=o=e[p++];var F=e[p++],B=e[p++];g=F*2+B*2;break;case me.Z:var y=s-a,_=l-o;g=Math.sqrt(y*y+_*_),a=s,o=l;break}g>=0&&(u[c++]=g,f+=g)}return this._pathLen=f,f},t.prototype.rebuildPath=function(e,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,c,p,h=r<1,v,g,d=0,m=0,y,_=0,x,S;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,y=r*g,!y)))e:for(var T=0;T<o;){var C=i[T++],E=T===1;switch(E&&(u=i[T],f=i[T+1],s=u,l=f),C!==me.L&&_>0&&(e.lineTo(x,S),_=0),C){case me.M:s=u=i[T++],l=f=i[T++],e.moveTo(u,f);break;case me.L:c=i[T++],p=i[T++];var b=Mr(c-u),D=Mr(p-f);if(b>n||D>a){if(h){var A=v[m++];if(d+A>y){var O=(y-d)/A;e.lineTo(u*(1-O)+c*O,f*(1-O)+p*O);break e}d+=A}e.lineTo(c,p),u=c,f=p,_=0}else{var M=b*b+D*D;M>_&&(x=c,S=p,_=M)}break;case me.C:var I=i[T++],F=i[T++],B=i[T++],Y=i[T++],ne=i[T++],te=i[T++];if(h){var A=v[m++];if(d+A>y){var O=(y-d)/A;Dn(u,I,B,ne,O,Bi),Dn(f,F,Y,te,O,Ui),e.bezierCurveTo(Bi[1],Ui[1],Bi[2],Ui[2],Bi[3],Ui[3]);break e}d+=A}e.bezierCurveTo(I,F,B,Y,ne,te),u=ne,f=te;break;case me.Q:var I=i[T++],F=i[T++],B=i[T++],Y=i[T++];if(h){var A=v[m++];if(d+A>y){var O=(y-d)/A;Mn(u,I,B,O,Bi),Mn(f,F,Y,O,Ui),e.quadraticCurveTo(Bi[1],Ui[1],Bi[2],Ui[2]);break e}d+=A}e.quadraticCurveTo(I,F,B,Y),u=B,f=Y;break;case me.A:var Q=i[T++],ee=i[T++],ue=i[T++],fe=i[T++],j=i[T++],ve=i[T++],be=i[T++],xt=!i[T++],mr=ue>fe?ue:fe,St=Mr(ue-fe)>.001,Ze=j+ve,$=!1;if(h){var A=v[m++];d+A>y&&(Ze=j+ve*(y-d)/A,$=!0),d+=A}if(St&&e.ellipse?e.ellipse(Q,ee,ue,fe,be,j,Ze,xt):e.arc(Q,ee,mr,j,Ze,xt),$)break e;E&&(s=zi(j)*ue+Q,l=Fi(j)*fe+ee),u=zi(Ze)*ue+Q,f=Fi(Ze)*fe+ee;break;case me.R:s=u=i[T],l=f=i[T+1],c=i[T++],p=i[T++];var ce=i[T++],vi=i[T++];if(h){var A=v[m++];if(d+A>y){var it=y-d;e.moveTo(c,p),e.lineTo(c+wc(it,ce),p),it-=ce,it>0&&e.lineTo(c+ce,p+wc(it,vi)),it-=vi,it>0&&e.lineTo(c+bc(ce-it,0),p+vi),it-=ce,it>0&&e.lineTo(c,p+bc(vi-it,0));break e}d+=A}e.rect(c,p,ce,vi);break;case me.Z:if(h){var A=v[m++];if(d+A>y){var O=(y-d)/A;e.lineTo(u*(1-O)+s*O,f*(1-O)+l*O);break e}d+=A}e.closePath(),u=s,f=l}}},t.prototype.clone=function(){var e=new t,r=this.data;return e.data=r.slice?r.slice():Array.prototype.slice.call(r),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=me,t.initDefaultProps=(function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),t})();function Vi(t,e,r,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=t;if(o>e+s&&o>i+s||o<e-s&&o<i-s||a>t+s&&a>r+s||a<t-s&&a<r-s)return!1;if(t!==r)l=(e-i)/(t-r),u=(t*i-r*e)/(t-r);else return Math.abs(a-t)<=s/2;var f=l*a-o+u;return f*f/(l*l+1)<=s/2*s/2}function Xm(t,e,r,i,n,a,o,s,l,u,f){if(l===0)return!1;var c=l;if(f>e+c&&f>i+c&&f>a+c&&f>s+c||f<e-c&&f<i-c&&f<a-c&&f<s-c||u>t+c&&u>r+c&&u>n+c&&u>o+c||u<t-c&&u<r-c&&u<n-c&&u<o-c)return!1;return cd(t,e,r,i,n,a,o,s,u,f,null)<=c/2}function qm(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>a+u||l<e-u&&l<i-u&&l<a-u||s>t+u&&s>r+u&&s>n+u||s<t-u&&s<r-u&&s<n-u)return!1;return vd(t,e,r,i,n,a,s,l,null)<=u/2}var Km=Math.PI*2;function no(t){return t%=Km,t<0&&(t+=Km),t}var ao=Math.PI*2;function Zm(t,e,r,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=t,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>r||f+u<r)return!1;if(Math.abs(i-n)%ao<1e-4)return!0;if(a){var c=i;i=no(n),n=no(c)}else i=no(i),n=no(n);i>n&&(n+=ao);var p=Math.atan2(l,s);return p<0&&(p+=ao),p>=i&&p<=n||p+ao>=i&&p+ao<=n}function Ar(t,e,r,i,n,a){if(a>e&&a>i||a<e&&a<i||i===e)return 0;var o=(a-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(r-t)+t;return l===n?Infinity:l>n?s:0}var $r=Zt.CMD;var Hi=Math.PI*2;var Qb=1e-4;function $b(t,e){return Math.abs(t-e)<Qb}var ut=[-1,-1,-1];var Ft=[-1,-1];function Jb(){var t=Ft[0];Ft[0]=Ft[1],Ft[1]=t}function e1(t,e,r,i,n,a,o,s,l,u){if(u>e&&u>i&&u>a&&u>s||u<e&&u<i&&u<a&&u<s)return 0;var f=Es(e,i,a,s,u,ut);if(f===0)return 0;for(var c=0,p=-1,h=void 0,v=void 0,g=0;g<f;g++){var d=ut[g],m=d===0||d===1?.5:1;Le(t,r,n,o,d)<l||(p<0&&(p=Ds(e,i,a,s,Ft),Ft[1]<Ft[0]&&p>1&&Jb(),h=Le(e,i,a,s,Ft[0]),p>1&&(v=Le(e,i,a,s,Ft[1]))),p===2?d<Ft[0]?c+=h<e?m:-m:d<Ft[1]?c+=v<h?m:-m:c+=s<v?m:-m:d<Ft[0]?c+=h<e?m:-m:c+=s<h?m:-m)}return c}function t1(t,e,r,i,n,a,o,s){if(s>e&&s>i&&s>a||s<e&&s<i&&s<a)return 0;var l=hd(e,i,a,s,ut);if(l===0)return 0;var u=Ms(e,i,a);if(u>=0&&u<=1){for(var f=0,c=Ge(e,i,a,u),p=0;p<l;p++){var h=ut[p]===0||ut[p]===1?.5:1,v=Ge(t,r,n,ut[p]);v<o||(ut[p]<u?f+=c<e?h:-h:f+=a<c?h:-h)}return f}else{var h=ut[0]===0||ut[0]===1?.5:1,v=Ge(t,r,n,ut[0]);return v<o?0:a<e?h:-h}}function r1(t,e,r,i,n,a,o,s){if(s-=e,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ut[0]=-l,ut[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Hi-1e-4){i=0,n=Hi;var f=a?1:-1;return o>=ut[0]+t&&o<=ut[1]+t?f:0}if(i>n){var c=i;i=n,n=c}i<0&&(i+=Hi,n+=Hi);for(var p=0,h=0;h<2;h++){var v=ut[h];if(v+t>o){var g=Math.atan2(s,v),f=a?1:-1;g<0&&(g=Hi+g),(g>=i&&g<=n||g+Hi>=i&&g+Hi<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),p+=f)}}return p}function jm(t,e,r,i,n){for(var a=t.data,o=t.len(),s=0,l=0,u=0,f=0,c=0,p,h,v=0;v<o;){var g=a[v++],d=v===1;switch(g===$r.M&&v>1&&(r||(s+=Ar(l,u,f,c,i,n))),d&&(l=a[v],u=a[v+1],f=l,c=u),g){case $r.M:f=a[v++],c=a[v++],l=f,u=c;break;case $r.L:if(r){if(Vi(l,u,a[v],a[v+1],e,i,n))return!0}else s+=Ar(l,u,a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case $r.C:if(r){if(Xm(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=e1(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case $r.Q:if(r){if(qm(l,u,a[v++],a[v++],a[v],a[v+1],e,i,n))return!0}else s+=t1(l,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;l=a[v++],u=a[v++];break;case $r.A:var m=a[v++],y=a[v++],_=a[v++],x=a[v++],S=a[v++],T=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(S)*_+m,h=Math.sin(S)*x+y,d?(f=p,c=h):s+=Ar(l,u,p,h,i,n);var E=(i-m)*x/_+m;if(r){if(Zm(m,y,x,S,S+T,C,e,E,n))return!0}else s+=r1(m,y,x,S,S+T,C,E,n);l=Math.cos(S+T)*_+m,u=Math.sin(S+T)*x+y;break;case $r.R:f=l=a[v++],c=u=a[v++];var b=a[v++],D=a[v++];if(p=f+b,h=c+D,r){if(Vi(f,c,p,c,e,i,n)||Vi(p,c,p,h,e,i,n)||Vi(p,h,f,h,e,i,n)||Vi(f,h,f,c,e,i,n))return!0}else s+=Ar(p,c,p,h,i,n),s+=Ar(f,h,f,c,i,n);break;case $r.Z:if(r){if(Vi(l,u,f,c,e,i,n))return!0}else s+=Ar(l,u,f,c,i,n);l=f,u=c;break}}return!r&&!$b(u,c)&&(s+=Ar(l,u,f,c,i,n)||0),s!==0}function Qm(t,e,r){return jm(t,0,!1,e,r)}function $m(t,e,r,i){return jm(t,e,!0,r,i)}var Ac=re({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},or);var n1={style:re({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ni.style)};var Mc=Rn.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]);var J=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.update=function(){var r=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new e;n.buildPath===e.prototype.buildPath&&(n.buildPath=function(l){r.buildPath(l,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Mc.length;++s)n[Mc[s]]=this[Mc[s]];n.__dirty|=Re}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(r){var i=ie(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o===`style`?this.style?R(this.style,s):this.useStyle(s):o===`shape`?R(this.shape,s):t.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!==`none`){if(P(r)){var i=On(r,0);return i>.5?Xa:i>.2?kd:qa}else if(r)return qa}return Xa},e.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(P(i)){var n=this.__zr;if(!!(n&&n.isDarkMode())===On(r,0)<Wa)return i}},e.prototype.buildPath=function(r,i,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Yr},e.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},e.prototype.createPathProxy=function(){this.path=new Zt(!1)},e.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i===`none`||!(r.lineWidth>0))},e.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!==`none`},e.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yr)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){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)),$m(s,l/u,r,i)))return!0}if(this.hasFill())return Qm(s,r,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(r){return this.animate(`shape`,r)},e.prototype.updateDuringAnimation=function(r){r===`style`?this.dirtyStyle():r===`shape`?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(r,i){r===`shape`?this.setShape(i):t.prototype.attrKV.call(this,r,i)},e.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r==`string`?n[r]=i:R(n,r),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yr)},e.prototype.createStyle=function(r){return Fr(Ac,r)},e.prototype._innerSaveToNormal=function(r){t.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=R({},this.shape))},e.prototype._applyStateObj=function(r,i,n,a,o,s){if(t.prototype._applyStateObj.call(this,r,i,n,a,o,s),this.__inHover!==kn){var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=R({},n.shape),R(u,i.shape)):(u=R({},a?this.shape:n.shape),R(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=R({},this.shape);for(var f={},c=ie(u),p=0;p<c.length;p++){var h=c[p];typeof u[h]==`object`?this.shape[h]=u[h]:f[h]=u[h]}this._transitionState(r,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(r){for(var i=t.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},e.prototype.getAnimationStyleProps=function(){return n1},e.prototype.isZeroArea=function(){return!1},e.extend=function(r){var i=(function(a){W(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return G(r.style)},o.prototype.getDefaultShape=function(){return G(r.shape)},o})(e);for(var n in r)typeof r[n]==`function`&&(i.prototype[n]=r[n]);return i},e.initDefaultProps=(function(){var r=e.prototype;r.type=`path`,r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Re|bi|Yr})(),e})(sr);var o1=re({strokeFirst:!0,font:Pt,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ac);var Jm=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return mc(this.style)},e.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!==`none`},e.prototype.createStyle=function(r){return Fr(o1,r)},e.prototype.setBoundingRect=function(r){this._rect=r},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=zm(this.style)),this._rect},e.initDefaultProps=(function(){var r=e.prototype;r.dirtyRectTolerance=10})(),e})(sr);Jm.prototype.type=`tspan`;var oo=Jm;var s1=re({x:0,y:0},or);var l1={style:re({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ni.style)};function u1(t){return!!(t&&typeof t!=`string`&&t.width&&t.height)}var eg=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(r){return Fr(s1,r)},e.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=u1(i.image)?i.image:this.__image;if(!a)return 0;var o=r===`width`?`height`:`width`,s=i[o];return s==null?a[r]:a[r]/a[o]*s},e.prototype.getWidth=function(){return this._getSize(`width`)},e.prototype.getHeight=function(){return this._getSize(`height`)},e.prototype.getAnimationStyleProps=function(){return l1},e.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new X(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},e})(sr);eg.prototype.type=`image`;var Vt=eg;function tg(t,e){var r=e.x,i=e.y,n=e.width,a=e.height,o=e.r,s,l,u,f;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o==`number`?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var c;s+l>n&&(c=s+l,s*=n/c,l*=n/c),u+f>n&&(c=u+f,u*=n/c,f*=n/c),l+u>a&&(c=l+u,l*=a/c,u*=a/c),s+f>a&&(c=s+f,s*=a/c,f*=a/c),t.moveTo(r+s,i),t.lineTo(r+n-l,i),l!==0&&t.arc(r+n-l,i+l,l,-Math.PI/2,0),t.lineTo(r+n,i+a-u),u!==0&&t.arc(r+n-u,i+a-u,u,0,Math.PI/2),t.lineTo(r+f,i+a),f!==0&&t.arc(r+f,i+a-f,f,Math.PI/2,Math.PI),t.lineTo(r,i+s),s!==0&&t.arc(r+s,i+s,s,Math.PI,Math.PI*1.5),t.closePath()}var Gn=Math.round;function el(t,e,r){if(e){var i=e.x1,n=e.x2,a=e.y1,o=e.y2;t.x1=i,t.x2=n,t.y1=a,t.y2=o;var s=r&&r.lineWidth;return s&&(Gn(i*2)===Gn(n*2)&&(t.x1=t.x2=Jr(i,s,!0)),Gn(a*2)===Gn(o*2)&&(t.y1=t.y2=Jr(a,s,!0))),t}}function tl(t,e,r){if(e){var i=e.x,n=e.y,a=e.width,o=e.height;t.x=i,t.y=n,t.width=a,t.height=o;var s=r&&r.lineWidth;return s&&(t.x=Jr(i,s,!0),t.y=Jr(n,s,!0),t.width=Math.max(Jr(i+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Jr(n+o,s,!1)-t.y,o===0?0:1)),t}}function Jr(t,e,r){if(!e)return t;var i=Gn(t*2);return(i+Gn(e))%2===0?i/2:(i+(r?1:-1))/2}var p1=(function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t})();var h1={};var rg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new p1},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=tl(h1,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?tg(r,i):r.rect(n,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(J);rg.prototype.type=`rect`;var Pe=rg;var ig={fill:`#000`};var ng=2;var cr={};var v1={style:re({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},Ni.style)};var pg=(function(t){W(e,t);function e(r){var i=t.call(this)||this;return i.type=`text`,i._children=[],i._defaultStyle=ig,i.attr(r),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):t.prototype.getLocalTransform.call(this,r)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,_1(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(r){t.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},e.prototype.removeSelfFromZr=function(r){t.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new X(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},e.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||ig},e.prototype.setTextContent=function(r){},e.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return R(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},e.prototype._mergeRich=function(r,i){for(var n=ie(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},R(r[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return v1},e.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||Pt,n=r.padding,a=this._defaultStyle,o=r.x||0,s=r.y||0,l=r.align||a.align||`left`,u=r.verticalAlign||a.verticalAlign||`top`;vc(cr,a.overflowRect,o,s,l,u),o=cr.baseX,s=cr.baseY;var c=km(cg(r),r,cr.outerWidth,cr.outerHeight),p=Oc(r),h=!!r.backgroundColor,v=c.outerHeight,g=c.outerWidth,d=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var y=o,_=br(s,c.contentHeight,u);if(p||n){var x=qr(o,g,l),S=br(s,v,u);p&&this._renderBackground(r,r,x,S,g,v)}_+=m/2,n&&(y=fg(o,l,n),u===`top`?_+=n[0]:u===`bottom`&&(_-=n[2]));for(var T=0,C=!1,E=!1,b=ug(`fill`in r?r.fill:(E=!0,a.fill)),D=lg(`stroke`in r?r.stroke:!h&&(!a.autoStroke||E)?(T=ng,C=!0,a.stroke):null),A=r.textShadowBlur>0,O=0;O<d.length;O++){var M=this._getOrCreateChild(oo),I=M.createStyle();M.useStyle(I),I.text=d[O],I.x=y,I.y=_,l&&(I.textAlign=l),I.textBaseline=`middle`,I.opacity=r.opacity,I.strokeFirst=!0,A&&(I.shadowBlur=r.textShadowBlur||0,I.shadowColor=r.textShadowColor||`transparent`,I.shadowOffsetX=r.textShadowOffsetX||0,I.shadowOffsetY=r.textShadowOffsetY||0),I.stroke=D,I.fill=b,D&&(I.lineWidth=r.lineWidth||T,I.lineDash=r.lineDash,I.lineDashOffset=r.lineDashOffset||0),I.font=i,og(I,r),_+=m,M.setBoundingRect(js(I,c.contentWidth,c.calculatedLineHeight,C?0:null))}},e.prototype._updateRichTexts=function(){var r=this.style,i=this._defaultStyle,n=r.align||i.align,a=r.verticalAlign||i.verticalAlign,o=r.x||0,s=r.y||0;vc(cr,i.overflowRect,o,s,n,a),o=cr.baseX,s=cr.baseY;var u=Bm(cg(r),r,cr.outerWidth,cr.outerHeight,n),f=u.width,c=u.outerWidth,p=u.outerHeight,h=r.padding;this.isTruncated=!!u.isTruncated;var v=qr(o,c,n),g=br(s,p,a),d=v,m=g;h&&(d+=h[3],m+=h[0]);var y=d+f;Oc(r)&&this._renderBackground(r,r,v,g,c,p);for(var _=!!r.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],T=S.tokens,C=T.length,E=S.lineHeight,b=S.width,D=0,A=d,O=y,M=C-1,I=void 0;D<C&&(I=T[D],!I.align||I.align===`left`);)this._placeToken(I,r,E,m,A,`left`,_),b-=I.width,A+=I.width,D++;for(;M>=0&&(I=T[M],I.align===`right`);)this._placeToken(I,r,E,m,O,`right`,_),b-=I.width,O-=I.width,M--;for(A+=(f-(A-d)-(y-O)-b)/2;D<=M;)I=T[D],this._placeToken(I,r,E,m,A+I.width/2,`center`,_),A+=I.width,D++;m+=E}},e.prototype._placeToken=function(r,i,n,a,o,s,l){var u=i.rich[r.styleName]||{};u.text=r.text;var f=r.verticalAlign,c=a+n/2;f===`top`?c=a+r.height/2:f===`bottom`&&(c=a+n-r.height/2);!r.isLineHolder&&Oc(u)&&this._renderBackground(u,i,s===`right`?o-r.width:s===`center`?o-r.width/2:o,c-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=fg(o,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(oo),d=g.createStyle();g.useStyle(d);var m=this._defaultStyle,y=!1,_=0,x=!1,S=ug(`fill`in u?u.fill:`fill`in i?i.fill:(y=!0,m.fill)),T=lg(`stroke`in u?u.stroke:`stroke`in i?i.stroke:!h&&!l&&(!m.autoStroke||y)?(_=ng,x=!0,m.stroke):null),C=u.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=c,C&&(d.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,d.shadowColor=u.textShadowColor||i.textShadowColor||`transparent`,d.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline=`middle`,d.font=r.font||Pt,d.opacity=Yt(u.opacity,i.opacity,1),og(d,u),T&&(d.lineWidth=Yt(u.lineWidth,i.lineWidth,_),d.lineDash=H(u.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=T),S&&(d.fill=S),g.setBoundingRect(js(d,r.contentWidth,r.contentHeight,x?0:null))},e.prototype._renderBackground=function(r,i,n,a,o,s){var l=r.backgroundColor,u=r.borderWidth,f=r.borderColor,c=l&&l.image,p=l&&!c,h=r.borderRadius,v=this,g,d;if(p||r.lineHeight||u&&f){g=this._getOrCreateChild(Pe),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=n,m.y=a,m.width=o,m.height=s,m.r=h,g.dirtyShape()}if(p){var y=g.style;y.fill=l||null,y.fillOpacity=H(r.fillOpacity,1)}else if(c){d=this._getOrCreateChild(Vt),d.onload=function(){v.dirtyStyle()};var _=d.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var y=g.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=H(r.strokeOpacity,1),y.lineDash=r.borderDash,y.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(g||d).style;x.shadowBlur=r.shadowBlur||0,x.shadowColor=r.shadowColor||`transparent`,x.shadowOffsetX=r.shadowOffsetX||0,x.shadowOffsetY=r.shadowOffsetY||0,x.opacity=Yt(r.opacity,i.opacity,1)},e.makeFont=function(r){var i=``;return y1(r)&&(i=[r.fontStyle,r.fontWeight,g1(r.fontSize),r.fontFamily||`sans-serif`].join(` `)),i&&je(i)||r.textFont||r.font},e})(sr);var d1={left:!0,right:1,center:1};var m1={top:1,bottom:1,middle:1};var ag=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function g1(t){return typeof t==`string`&&(t.indexOf(`px`)!==-1||t.indexOf(`rem`)!==-1||t.indexOf(`em`)!==-1)?t:isNaN(+t)?os+`px`:t+`px`}function og(t,e){for(var r=0;r<ag.length;r++){var i=ag[r],n=e[i];n!=null&&(t[i]=n)}}function y1(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function _1(t){return sg(t),w(t.rich,sg),t}function sg(t){if(t){t.font=pg.makeFont(t);var e=t.align;e===`middle`&&(e=`center`),t.align=e==null||d1[e]?e:`left`;var r=t.verticalAlign;r===`center`&&(r=`middle`),t.verticalAlign=r==null||m1[r]?r:`top`;t.padding&&(t.padding=Tn(t.padding))}}function lg(t,e){return t==null||e<=0||t===`transparent`||t===`none`?null:t.image||t.colorStops?`#000`:t}function ug(t){return t==null||t===`none`?null:t.image||t.colorStops?`#000`:t}function fg(t,e,r){return e===`right`?t-r[1]:e===`center`?t+r[3]/2-r[1]/2:t+r[3]}function cg(t){var e=t.text;return e!=null&&(e+=``),e}function Oc(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var $e=pg;var ge=K();var hg=function(t,e,r,i){if(i){var n=ge(i);n.dataIndex=r,n.dataType=e,n.seriesIndex=t,n.ssrType=`chart`,i.type===`group`&&i.traverse(function(a){var o=ge(a);o.seriesIndex=t,o.dataIndex=r,o.dataType=e,o.ssrType=`chart`})}};var so=`undefined`;var rl=`series`;var il=z([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]);var Ye=`original`;var Fe=`arrayRows`;var ft=`objectRows`;var Dt=`keyedColumns`;var Mt=`typedArray`;var Ic=`unknown`;var ct=`column`;var pr=`row`;var x1=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`];var S1=(function(){function t(e){w(x1,function(r){this[r]=oe(e[r],e)},this)}return t})();function vg(t,e){return e.mainType===rl?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var nl=S1;var dg=1;var mg={};var xg=K();var Pc=K();var Sg=0;var ol=1;var sl=2;var lo=[`emphasis`,`blur`,`select`];var T1=[`normal`,`emphasis`,`blur`,`select`];var w1=10;var b1=9;var ei=`highlight`;var uo=`downplay`;var fo=`select`;var ll=`unselect`;var co=`toggleSelect`;var ul=`selectchanged`;function Yn(t){return t!=null&&t!==`none`}function fl(t,e,r){t.onHoverStateChange&&(t.hoverState||0)!==r&&t.onHoverStateChange(e),t.hoverState=r}function Tg(t){fl(t,`emphasis`,sl)}function wg(t){t.hoverState===sl&&fl(t,`normal`,Sg)}function Nc(t){fl(t,`blur`,ol)}function bg(t){t.hoverState===ol&&fl(t,`normal`,Sg)}function C1(t){t.selected=!0}function E1(t){t.selected=!1}function gg(t,e,r){e(t,r)}function Or(t,e,r){gg(t,e,r),t.isGroup&&t.traverse(function(i){gg(i,e,r)})}function D1(t,e,r,i){for(var n=t.style,a={},o=0;o<e.length;o++){var s=e[o];a[s]=n[s]??(i&&i[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName===`style`&&u.saveTo(a,e)}return a}function M1(t,e,r,i){var n=r&&Z(r,`select`)>=0,a=!1;if(t instanceof J){var o=xg(t),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Yn(s)||Yn(l)){i=i||{};var u=i.style||{};u.fill===`inherit`?(a=!0,i=R({},i),u=R({},u),u.fill=s):!Yn(u.fill)&&Yn(s)?(a=!0,i=R({},i),u=R({},u),u.fill=Rf(s)):!Yn(u.stroke)&&Yn(l)&&(a||(i=R({},i),u=R({},u)),u.stroke=Rf(l)),i.style=u}}if(i&&i.z2==null){a||(i=R({},i));var f=t.z2EmphasisLift;i.z2=t.z2+(f??w1)}return i}function A1(t,e,r){if(r&&r.z2==null){r=R({},r);var i=t.z2SelectLift;r.z2=t.z2+(i??b1)}return r}function O1(t,e,r){var i=Z(t.currentStates,e)>=0,n=t.style.opacity,a=i?null:D1(t,[`opacity`],e,{opacity:1});r=r||{};var o=r.style||{};return o.opacity??(r=R({},r),o=R({opacity:i?n:a.opacity*.1},o),r.style=o),r}function Rc(t,e){var r=this.states[t];if(this.style){if(t===`emphasis`)return M1(this,t,e,r);if(t===`blur`)return O1(this,t,r);if(t===`select`)return A1(this,t,r)}return r}function I1(t){t.stateProxy=Rc;var e=t.getTextContent(),r=t.getTextGuideLine();e&&(e.stateProxy=Rc),r&&(r.stateProxy=Rc)}function yg(t,e){!Eg(t,e)&&!t.__highByOuter&&Or(t,Tg)}function _g(t,e){!Eg(t,e)&&!t.__highByOuter&&Or(t,wg)}function po(t,e){t.__highByOuter|=1<<(e||0),Or(t,Tg)}function ho(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&Or(t,wg)}function Cg(t){Or(t,Nc)}function kc(t){Or(t,bg)}function Bc(t){Or(t,C1)}function Uc(t){Or(t,E1)}function Eg(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function zc(t){var e=t.getModel(),r=[],i=[];e.eachComponent(function(n,a){var o=Pc(a),s=vg(t,a),l=n===`series`;!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){bg(u)}),l&&r.push(a)),o.isBlured=!1}),w(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(r,!1,e)})}function Lc(t,e,r,i){var n=i.getModel();r=r||`coordinateSystem`;function a(u,f){for(var c=0;c<f.length;c++){var p=u.getItemGraphicEl(f[c]);p&&kc(p)}}if(t!=null&&!(!e||e===`none`)){var o=n.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);if(!(r===`series`&&!f||r===`coordinateSystem`&&!(c&&s?c===s:f)||e===`series`&&f)){if(i.getViewOfSeriesModel(u).group.traverse(function(d){d.__highByOuter&&f&&e===`self`||Nc(d)}),ke(e))a(u.getData(),e);else if(N(e))for(var v=ie(e),g=0;g<v.length;g++)a(u.getData(v[g]),e[v[g]]);l.push(u),Pc(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!==`series`){var c=i.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function al(t,e,r){if(!(t==null||e==null)){var i=r.getModel().getComponent(t,e);if(i){Pc(i).isBlured=!0;var n=r.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Nc(a)})}}}function Dg(t,e,r){var i=t.seriesIndex,n=t.getData(e.dataType);if(n){var a=Dr(n,e);a=(L(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=ge(o);Lc(i,u.focus,u.blurScope,r)}else{var f=t.get([`emphasis`,`focus`]),c=t.get([`emphasis`,`blurScope`]);f!=null&&Lc(i,f,c,r)}}}function cl(t,e,r,i){var n={focusSelf:!1,dispatchers:null};if(t==null||t===`series`||e==null||r==null)return n;var a=i.getModel().getComponent(t,e);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(ge(s[u]).focus===`self`){l=!0;break}return{focusSelf:l,dispatchers:s}}function Mg(t,e,r){var i=ge(t),n=cl(i.componentMainType,i.componentIndex,i.componentHighDownName,r),a=n.dispatchers,o=n.focusSelf;a?(o&&al(i.componentMainType,i.componentIndex,r),w(a,function(s){return yg(s,e)})):(Lc(i.seriesIndex,i.focus,i.blurScope,r),i.focus===`self`&&al(i.componentMainType,i.componentIndex,r),yg(t,e))}function Ag(t,e,r){zc(r);var i=ge(t),n=cl(i.componentMainType,i.componentIndex,i.componentHighDownName,r).dispatchers;n?w(n,function(a){return _g(a,e)}):_g(t,e)}function Og(t,e,r){if(pl(e)){var i=e.dataType,a=Dr(t.getData(i),e);L(a)||(a=[a]),t[e.type===co?`toggleSelect`:e.type===fo?`select`:`unselect`](a,i)}}function Fc(t){w(t.getAllData(),function(r){var i=r.data,n=r.type;i.eachItemGraphicEl(function(a,o){t.isSelected(o,n)?Bc(a):Uc(a)})})}function Ig(t){var e=[];return t.eachSeries(function(r){w(r.getAllData(),function(n){n.data;var o=n.type,s=r.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:r.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function Vc(t,e,r){Rg(t,!0),Or(t,I1),L1(t,e,r)}function R1(t){Rg(t,!1)}function WL(t,e,r,i){i?R1(t):Vc(t,e,r)}function L1(t,e,r){var i=ge(t);e!=null?(i.focus=e,i.blurScope=r):i.focus&&(i.focus=null)}function Rg(t,e){var r=e===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!r||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!r)}function vo(t){return!!(t&&t.__highDownDispatcher)}function Lg(t){var e=mg[t];return e==null&&dg<=32&&(e=mg[t]=dg++),e}function pl(t){var e=t.type;return e===fo||e===ll||e===co}function Hc(t){var e=t.type;return e===ei||e===uo}function Pg(t){var e=xg(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var r=t.states.select||{};e.selectFill=r.style&&r.style.fill||null,e.selectStroke=r.style&&r.style.stroke||null}var ti={};LHe(ti,{Arc:()=>Wi,BezierCurve:()=>bo,BoundingRect:()=>X,Circle:()=>Gi,CompoundPath:()=>gl,Ellipse:()=>go,Group:()=>We,HOVER_LAYER_FOR_INCREMENTAL:()=>ap,HOVER_LAYER_FROM_THRESHOLD:()=>np,HOVER_LAYER_NO:()=>ip,Image:()=>Vt,IncrementalDisplayable:()=>Cl,Line:()=>vr,LinearGradient:()=>_l,OrientedBoundingRect:()=>bl,Path:()=>J,Point:()=>de,Polygon:()=>To,Polyline:()=>wo,RadialGradient:()=>xl,Rect:()=>Pe,Ring:()=>So,Sector:()=>xo,Text:()=>$e,WH:()=>rp,XY:()=>tp,applyTransform:()=>Al,calcZ2Range:()=>yC,clipPointsByRect:()=>cp,clipRectByRect:()=>pp,createIcon:()=>Do,decomposeTransform:()=>xC,ensureCopyRect:()=>jn,ensureCopyTransform:()=>Ll,expandOrShrinkRect:()=>Ol,extendPath:()=>sp,extendShape:()=>op,getCurrentCanvasPainter:()=>SC,getShapeClass:()=>lp,getTransform:()=>fp,groupTransition:()=>dC,initProps:()=>Kn,isBoundingRectAxisAligned:()=>Rl,isElementRemoved:()=>Ki,lineLineIntersect:()=>hy,linePolygonIntersect:()=>mC,makeImage:()=>Eo,makePath:()=>Zn,mergePath:()=>up,payloadDisableAnimation:()=>_C,registerShape:()=>At,removeElement:()=>Qc,removeElementWithFadeOut:()=>uy,resizePath:()=>Dl,retrieveZInfo:()=>vp,setTooltipConfig:()=>Il,subPixelOptimize:()=>pC,subPixelOptimizeLine:()=>Ml,subPixelOptimizeRect:()=>cC,transformDirection:()=>hC,traverseElements:()=>hp,traverseUpdateZ:()=>dp,updateProps:()=>Ir});var Wn=Zt.CMD;var P1=[[],[],[]];var Ng=Math.sqrt;var N1=Math.atan2;function Gc(t,e){if(e){var r=t.data,i=t.len(),n,a,o,s,l,u,f=Wn.M,c=Wn.C,p=Wn.L,h=Wn.R,v=Wn.A,g=Wn.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case f:a=1;break;case p:a=1;break;case c:a=3;break;case g:a=2;break;case v:var d=e[4],m=e[5],y=Ng(e[0]*e[0]+e[1]*e[1]),_=Ng(e[2]*e[2]+e[3]*e[3]),x=N1(-e[1]/_,e[0]/y);r[o]*=y,r[o++]+=d,r[o]*=_,r[o++]+=m,r[o++]*=y,r[o++]*=_,r[o++]+=x,r[o++]+=x,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],dt(u,u,e),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var S=P1[l];S[0]=r[o++],S[1]=r[o++],dt(S,S,e),r[s++]=S[0],r[s++]=S[1]}}t.increaseVersion()}}var Yc=Math.sqrt;var hl=Math.sin;var vl=Math.cos;var mo=Math.PI;function kg(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Wc(t,e){return(t[0]*e[0]+t[1]*e[1])/(kg(t)*kg(e))}function Bg(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Wc(t,e))}function Ug(t,e,r,i,n,a,o,s,l,u,f){var c=l*(mo/180),p=vl(c)*(t-r)/2+hl(c)*(e-i)/2,h=-1*hl(c)*(t-r)/2+vl(c)*(e-i)/2,v=p*p/(o*o)+h*h/(s*s);v>1&&(o*=Yc(v),s*=Yc(v));var g=(n===a?-1:1)*Yc((o*o*(s*s)-o*o*(h*h)-s*s*(p*p))/(o*o*(h*h)+s*s*(p*p)))||0,d=g*o*h/s,m=g*-s*p/o,y=(t+r)/2+vl(c)*d-hl(c)*m,_=(e+i)/2+hl(c)*d+vl(c)*m,x=Bg([1,0],[(p-d)/o,(h-m)/s]),S=[(p-d)/o,(h-m)/s],T=[(-1*p-d)/o,(-1*h-m)/s],C=Bg(S,T);if(Wc(S,T)<=-1&&(C=mo),Wc(S,T)>=1&&(C=0),C<0){var E=Math.round(C/mo*1e6)/1e6;C=mo*2+E%2*mo}f.addData(u,y,_,o,s,x,C,c,a)}var k1=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi;var B1=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function U1(t){var e=new Zt;if(!t)return e;var r=0,i=0,n=r,a=i,o,s=Zt.CMD,l=t.match(k1);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],c=f.charAt(0),p=void 0,h=f.match(B1)||[],v=h.length,g=0;g<v;g++)h[g]=parseFloat(h[g]);for(var d=0;d<v;){var m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,E=r,b=i,D=void 0,A=void 0;switch(c){case`l`:r+=h[d++],i+=h[d++],p=s.L,e.addData(p,r,i);break;case`L`:r=h[d++],i=h[d++],p=s.L,e.addData(p,r,i);break;case`m`:r+=h[d++],i+=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c=`l`;break;case`M`:r=h[d++],i=h[d++],p=s.M,e.addData(p,r,i),n=r,a=i,c=`L`;break;case`h`:r+=h[d++],p=s.L,e.addData(p,r,i);break;case`H`:r=h[d++],p=s.L,e.addData(p,r,i);break;case`v`:i+=h[d++],p=s.L,e.addData(p,r,i);break;case`V`:i=h[d++],p=s.L,e.addData(p,r,i);break;case`C`:p=s.C,e.addData(p,h[d++],h[d++],h[d++],h[d++],h[d++],h[d++]),r=h[d-2],i=h[d-1];break;case`c`:p=s.C,e.addData(p,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i,h[d++]+r,h[d++]+i),r+=h[d-2],i+=h[d-1];break;case`S`:m=r,y=i,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],y+=i-A[D-3]),p=s.C,E=h[d++],b=h[d++],r=h[d++],i=h[d++],e.addData(p,m,y,E,b,r,i);break;case`s`:m=r,y=i,D=e.len(),A=e.data,o===s.C&&(m+=r-A[D-4],y+=i-A[D-3]),p=s.C,E=r+h[d++],b=i+h[d++],r+=h[d++],i+=h[d++],e.addData(p,m,y,E,b,r,i);break;case`Q`:E=h[d++],b=h[d++],r=h[d++],i=h[d++],p=s.Q,e.addData(p,E,b,r,i);break;case`q`:E=h[d++]+r,b=h[d++]+i,r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,E,b,r,i);break;case`T`:m=r,y=i,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],y+=i-A[D-3]),r=h[d++],i=h[d++],p=s.Q,e.addData(p,m,y,r,i);break;case`t`:m=r,y=i,D=e.len(),A=e.data,o===s.Q&&(m+=r-A[D-4],y+=i-A[D-3]),r+=h[d++],i+=h[d++],p=s.Q,e.addData(p,m,y,r,i);break;case`A`:_=h[d++],x=h[d++],S=h[d++],T=h[d++],C=h[d++],E=r,b=i,r=h[d++],i=h[d++],p=s.A,Ug(E,b,r,i,T,C,_,x,S,p,e);break;case`a`:_=h[d++],x=h[d++],S=h[d++],T=h[d++],C=h[d++],E=r,b=i,r+=h[d++],i+=h[d++],p=s.A,Ug(E,b,r,i,T,C,_,x,S,p,e);break}}(c===`z`||c===`Z`)&&(p=s.Z,e.addData(p),r=n,i=a),o=p}return e.toStatic(),e}var zg=(function(t){W(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(r){},e})(J);function Fg(t){return t.setData!=null}function Vg(t,e){var r=U1(t),i=R({},e);return i.buildPath=function(n){var a=Fg(n);if(a&&n.canSave()){n.appendPath(r);var o=n.getContext();o&&n.rebuildPath(o,1)}else{var o=a?n.getContext():n;o&&r.rebuildPath(o,1)}},i.applyTransform=function(n){Gc(r,n),this.dirtyShape()},i}function Hg(t,e){return new zg(Vg(t,e))}function Gg(t,e){var r=Vg(t,e);return(function(n){W(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a})(zg)}function Yg(t,e){for(var r=[],i=t.length,n=0;n<i;n++){var a=t[n];r.push(a.getUpdatedPathProxy(!0))}var o=new J(e);return o.createPathProxy(),o.buildPath=function(s){if(Fg(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var F1=(function(){function t(){this.cx=0,this.cy=0,this.r=0}return t})();var Wg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new F1},e.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(J);Wg.prototype.type=`circle`;var Gi=Wg;var V1=(function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t})();var Xg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new V1},e.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),r.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),r.closePath()},e})(J);Xg.prototype.type=`ellipse`;var go=Xg;var Kg=Math.PI;var Xc=Kg*2;var Yi=Math.sin;var Xn=Math.cos;var H1=Math.acos;var Je=Math.atan2;var qg=Math.abs;var _o=Math.sqrt;var yo=Math.max;var hr=Math.min;var jt=1e-4;function G1(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=c*l-f*u;if(!(p*p<jt))return p=(f*(e-a)-c*(t-n))/p,[t+p*l,e+p*u]}function dl(t,e,r,i,n,a,o){var s=t-r,l=e-i,u=(o?a:-a)/_o(s*s+l*l),f=u*l,c=-u*s,p=t+f,h=e+c,v=r+f,g=i+c,d=(p+v)/2,m=(h+g)/2,y=v-p,_=g-h,x=y*y+_*_,S=n-a,T=p*g-v*h,C=(_<0?-1:1)*_o(yo(0,S*S*x-T*T)),E=(T*_-y*C)/x,b=(-T*y-_*C)/x,D=(T*_+y*C)/x,A=(-T*y+_*C)/x,O=E-d,M=b-m,I=D-d,F=A-m;return O*O+M*M>I*I+F*F&&(E=D,b=A),{cx:E,cy:b,x0:-f,y0:-c,x1:E*(n/S-1),y1:b*(n/S-1)}}function Y1(t){var e;if(L(t)){var r=t.length;if(!r)return t;r===1?e=[t[0],t[0],0,0]:r===2?e=[t[0],t[0],t[1],t[1]]:r===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function Zg(t,e){var r,i=yo(e.r,0),n=yo(e.r0||0,0),a=i>0;if(!(!a&&!(n>0))){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,c=e.cy,p=!!e.clockwise,h=qg(u-l),v=h>Xc&&h%Xc;if(v>jt&&(h=v),!(i>jt))t.moveTo(f,c);else if(h>Xc-jt)t.moveTo(f+i*Xn(l),c+i*Yi(l)),t.arc(f,c,i,l,u,!p),n>jt&&(t.moveTo(f+n*Xn(u),c+n*Yi(u)),t.arc(f,c,n,u,l,p));else{var g=void 0,d=void 0,m=void 0,y=void 0,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0,E=void 0,b=void 0,D=void 0,A=void 0,O=void 0,M=void 0,I=void 0,F=i*Xn(l),B=i*Yi(l),Y=n*Xn(u),ne=n*Yi(u),te=h>jt;if(te){var Q=e.cornerRadius;Q&&(r=Y1(Q),g=r[0],d=r[1],m=r[2],y=r[3]);var ee=qg(i-n)/2;if(_=hr(ee,m),x=hr(ee,y),S=hr(ee,g),T=hr(ee,d),b=C=yo(_,x),D=E=yo(S,T),(C>jt||E>jt)&&(A=i*Xn(u),O=i*Yi(u),M=n*Xn(l),I=n*Yi(l),h<Kg)){var ue=G1(F,B,M,I,A,O,Y,ne);if(ue){var fe=F-ue[0],j=B-ue[1],ve=A-ue[0],be=O-ue[1],xt=1/Yi(H1((fe*ve+j*be)/(_o(fe*fe+j*j)*_o(ve*ve+be*be)))/2),mr=_o(ue[0]*ue[0]+ue[1]*ue[1]);b=hr(C,(i-mr)/(xt+1)),D=hr(E,(n-mr)/(xt-1))}}}if(!te)t.moveTo(f+F,c+B);else if(b>jt){var St=hr(m,b),Ze=hr(y,b),$=dl(M,I,F,B,i,St,p),ce=dl(A,O,Y,ne,i,Ze,p);t.moveTo(f+$.cx+$.x0,c+$.cy+$.y0),b<C&&St===Ze?t.arc(f+$.cx,c+$.cy,b,Je($.y0,$.x0),Je(ce.y0,ce.x0),!p):(St>0&&t.arc(f+$.cx,c+$.cy,St,Je($.y0,$.x0),Je($.y1,$.x1),!p),t.arc(f,c,i,Je($.cy+$.y1,$.cx+$.x1),Je(ce.cy+ce.y1,ce.cx+ce.x1),!p),Ze>0&&t.arc(f+ce.cx,c+ce.cy,Ze,Je(ce.y1,ce.x1),Je(ce.y0,ce.x0),!p))}else t.moveTo(f+F,c+B),t.arc(f,c,i,l,u,!p);if(!(n>jt)||!te)t.lineTo(f+Y,c+ne);else if(D>jt){var St=hr(g,D),Ze=hr(d,D),$=dl(Y,ne,A,O,n,-Ze,p),ce=dl(F,B,M,I,n,-St,p);t.lineTo(f+$.cx+$.x0,c+$.cy+$.y0),D<E&&St===Ze?t.arc(f+$.cx,c+$.cy,D,Je($.y0,$.x0),Je(ce.y0,ce.x0),!p):(Ze>0&&t.arc(f+$.cx,c+$.cy,Ze,Je($.y0,$.x0),Je($.y1,$.x1),!p),t.arc(f,c,n,Je($.cy+$.y1,$.cx+$.x1),Je(ce.cy+ce.y1,ce.cx+ce.x1),p),St>0&&t.arc(f+ce.cx,c+ce.cy,St,Je(ce.y1,ce.x1),Je(ce.y0,ce.x0),!p))}else t.lineTo(f+Y,c+ne),t.arc(f,c,n,u,l,p)}t.closePath()}}}var X1=(function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t})();var jg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new X1},e.prototype.buildPath=function(r,i){Zg(r,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(J);jg.prototype.type=`sector`;var xo=jg;var q1=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t})();var Qg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new q1},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},e})(J);Qg.prototype.type=`ring`;var So=Qg;function qc(t,e,r,i){var n=[],a=[],o=[],s=[],l,u,f,c;if(i){f=[Infinity,Infinity],c=[-Infinity,-Infinity];for(var p=0,h=t.length;p<h;p++)gr(f,f,t[p]),yr(c,c,t[p]);gr(f,f,i[0]),yr(c,c,i[1])}for(var p=0,h=t.length;p<h;p++){var v=t[p];if(r)l=t[p?p-1:h-1],u=t[(p+1)%h];else if(p===0||p===h-1){n.push(Pv(t[p]));continue}else l=t[p-1],u=t[p+1];Nv(a,u,l),vs(a,a,e);var g=ds(v,l),d=ds(v,u),m=g+d;m!==0&&(g/=m,d/=m),vs(o,a,-g),vs(s,a,d);var y=lf([],v,o),_=lf([],v,s);i&&(yr(y,y,f),gr(y,y,c),yr(_,_,f),gr(_,_,c)),n.push(y),n.push(_)}return r&&n.push(n.shift()),n}function ml(t,e,r){var i=e.smooth,n=e.points;if(n&&n.length>=2){if(i){var a=qc(n,i,r,e.smoothConstraint);t.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{t.moveTo(n[0][0],n[0][1]);for(var s=1,c=n.length;s<c;s++)t.lineTo(n[s][0],n[s][1])}r&&t.closePath()}}var K1=(function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t})();var Jg=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultShape=function(){return new K1},e.prototype.buildPath=function(r,i){ml(r,i,!0)},e})(J);Jg.prototype.type=`polygon`;var To=Jg;var Z1=(function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t})();var ey=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},e.prototype.getDefaultShape=function(){return new Z1},e.prototype.buildPath=function(r,i){ml(r,i,!1)},e})(J);ey.prototype.type=`polyline`;var wo=ey;var j1={};var Q1=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t})();var ty=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},e.prototype.getDefaultShape=function(){return new Q1},e.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var l=el(j1,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(r.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,s))},e.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},e})(J);ty.prototype.type=`line`;var vr=ty;var _t=[];var $1=(function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t})();function ry(t,e,r){var i=t.cpx2,n=t.cpy2;return i!=null||n!=null?[(r?Cf:Le)(t.x1,t.cpx1,t.cpx2,t.x2,e),(r?Cf:Le)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(r?Ef:Ge)(t.x1,t.cpx1,t.x2,e),(r?Ef:Ge)(t.y1,t.cpy1,t.y2,e)]}var iy=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},e.prototype.getDefaultShape=function(){return new $1},e.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(r.moveTo(n,a),f==null||c==null?(p<1&&(Mn(n,l,o,p,_t),l=_t[1],o=_t[2],Mn(a,u,s,p,_t),u=_t[1],s=_t[2]),r.quadraticCurveTo(l,u,o,s)):(p<1&&(Dn(n,l,f,o,p,_t),l=_t[1],f=_t[2],o=_t[3],Dn(a,u,c,s,p,_t),u=_t[1],c=_t[2],s=_t[3]),r.bezierCurveTo(l,u,f,c,o,s)))},e.prototype.pointAt=function(r){return ry(this.shape,r,!1)},e.prototype.tangentAt=function(r){var i=ry(this.shape,r,!0);return kv(i,i)},e})(J);iy.prototype.type=`bezier-curve`;var bo=iy;var J1=(function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t})();var ny=(function(t){W(e,t);function e(r){return t.call(this,r)||this}return e.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},e.prototype.getDefaultShape=function(){return new J1},e.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),c=Math.sin(s);r.moveTo(f*o+n,c*o+a),r.arc(n,a,o,s,l,!u)},e})(J);ny.prototype.type=`arc`;var Wi=ny;var gl=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=`compound`,r}return e.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},e.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),J.prototype.getBoundingRect.call(this)},e})(J);var yl=(function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,r){this.colorStops.push({offset:e,color:r})},t})();var _l=(function(t){W(e,t);function e(r,i,n,a,o,s){var l=t.call(this,o)||this;return l.x=r??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type=`linear`,l.global=s||!1,l}return e})(yl);var xl=(function(t){W(e,t);function e(r,i,n,a,o){var s=t.call(this,a)||this;return s.x=r??.5,s.y=i??.5,s.r=n??.5,s.type=`radial`,s.global=o||!1,s}return e})(yl);var Kc=Math.min;var nC=Math.max;var Sl=Math.abs;var Xi=[0,0];var qi=[0,0];var qe=xf();var Tl=qe.minTv;var wl=qe.maxTv;var bl=(function(){function t(e,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new de;for(var i=0;i<2;i++)this._axes[i]=new de;e&&this.fromBoundingRect(e,r)}return t.prototype.fromBoundingRect=function(e,r){var i=this._corners,n=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),r)for(var u=0;u<4;u++)i[u].transform(r);de.sub(n[0],i[1],i[0]),de.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},t.prototype.intersect=function(e,r,i){var n=!0,a=!r;return r&&de.set(r,0,0),qe.reset(i,!a),!this._intersectCheckOneSide(this,e,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(e,this,a,-1)&&(n=!1,a)||!a&&!qe.negativeSize&&de.copy(r,n?qe.useDir?qe.dirMinTv:Tl:wl),n},t.prototype._intersectCheckOneSide=function(e,r,i,n){for(var a=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Xi),e._getProjMinMaxOnAxis(o,r._corners,qi),qe.negativeSize||Xi[1]<qi[0]||Xi[0]>qi[1]){if(a=!1,qe.negativeSize||i)return a;var l=Sl(qi[0]-Xi[1]),u=Sl(Xi[0]-qi[1]);Kc(l,u)>wl.len()&&(l<u?de.scale(wl,s,-l*n):de.scale(wl,s,u*n))}else if(!i){var l=Sl(qi[0]-Xi[1]),u=Sl(Xi[0]-qi[1]);(qe.useDir||Kc(l,u)<Tl.len())&&((l<u||!qe.bidirectional)&&(de.scale(Tl,s,l*n),qe.useDir&&qe.calcDirMTV()),(l>=u||!qe.bidirectional)&&(de.scale(Tl,s,-u*n),qe.useDir&&qe.calcDirMTV()))}}return a},t.prototype._getProjMinMaxOnAxis=function(e,r,i){for(var n=this._axes[e],a=this._origin,o=r[0].dot(n)+a[e],s=o,l=o,u=1;u<r.length;u++){var f=r[u].dot(n)+a[e];s=Kc(f,s),l=nC(f,l)}i[0]=s+qe.touchThreshold,i[1]=l-qe.touchThreshold,qe.negativeSize=i[1]<i[0]},t})();var Zc=0;var ay=1;var oy=2;var sy=1;var qn=0;var oC=[];var Cl=(function(t){W(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.notClear=!0,r.incremental=ay,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return e.prototype.traverse=function(r,i){r.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},e.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new X(Infinity,Infinity,-Infinity,-Infinity),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(oC)),r.union(a)}this._rect=r}return this._rect},e.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i);if(this.getBoundingRect().contain(n[0],n[1])){for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(r,i))return!0}return!1},e})(sr);var lC=K();function uC(t,e,r,i,n){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t===`update`;if(s){var u=void 0,f=void 0,c=void 0;i?(u=H(i.duration,200),f=H(i.easing,`cubicOut`),c=0):(u=e.getShallow(l?`animationDurationUpdate`:`animationDuration`),f=e.getShallow(l?`animationEasingUpdate`:`animationEasing`),c=e.getShallow(l?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(c=a.delay)),V(c)&&(c=c(r,n)),V(u)&&(u=u(r));return{duration:u||0,delay:c,easing:f}}else return null}function jc(t,e,r,i,n,a,o){var s=!1,l;V(n)?(o=a,a=n,n=null):N(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=t===`leave`;u||e.stopAnimation(`leave`);var f=uC(t,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,n):null);if(f&&f.duration>0){var c=f.duration,p=f.delay,h=f.easing,v={duration:c,delay:p||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(r,v):e.animateTo(r,v)}else e.stopAnimation(),!s&&e.attr(r),o&&o(1),a&&a()}function Ir(t,e,r,i,n,a){jc(`update`,t,e,r,i,n,a)}function Kn(t,e,r,i,n,a){jc(`enter`,t,e,r,i,n,a)}function Ki(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if(t.animators[e].scope===`leave`)return!0;return!1}function Qc(t,e,r,i,n,a){Ki(t)||jc(`leave`,t,e,r,i,n,a)}function ly(t,e,r,i){t.removeTextContent(),t.removeTextGuideLine(),Qc(t,{style:{opacity:0}},e,r,i)}function uy(t,e,r){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(n){n.isGroup||ly(n,e,r,i)}):ly(t,e,r,i)}function tN(t){lC(t).oldStyle=t.style}var Jc={};var tp=[`x`,`y`];var rp=[`width`,`height`];var ip=0;var np=1;var ap=2;function op(t){return J.extend(t)}var fC=Gg;function sp(t,e){return fC(t,e)}function At(t,e){Jc[t]=e}function lp(t){if(Jc.hasOwnProperty(t))return Jc[t]}function Zn(t,e,r,i){var n=Hg(t,e);return r&&(i===`center`&&(r=py(r,n.getBoundingRect())),Dl(n,r)),n}function Eo(t,e,r){var i=new Vt({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(n){if(r===`center`){var a={width:n.width,height:n.height};i.setStyle(py(e,a))}}});return i}function py(t,e){var r=e.width/e.height,i=t.height*r,n;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var up=Yg;function Dl(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function Ml(t,e){return el(t,t,{lineWidth:e}),t}function cC(t,e){return tl(t,t,e),t}var pC=Jr;function fp(t,e){for(var r=_r([]);t&&t!==e;)Hr(r,t.getLocalTransform(),r),t=t.parent;return r}function Al(t,e,r){return e&&!ke(e)&&(e=Pn.getLocalTransform(e)),r&&(e=Gr([],e)),dt([],t,e)}function hC(t,e,r){var i=e[4]===0||e[5]===0||e[0]===0?1:st(2*e[4]/e[0]),n=e[4]===0||e[5]===0||e[2]===0?1:st(2*e[4]/e[2]),a=[t===`left`?-i:t===`right`?i:0,t===`top`?-n:t===`bottom`?n:0];return a=Al(a,e,r),st(a[0])>st(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function fy(t){return!t.isGroup}function vC(t){return t.shape!=null}function dC(t,e,r){if(!t||!e)return;function i(o){var s={};return o.traverse(function(l){fy(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return vC(o)&&(s.shape=G(o.shape)),s}var a=i(t);e.traverse(function(o){if(fy(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Ir(o,l,r,ge(o).dataIndex)}}})}function cp(t,e){return U(t,function(r){var i=r[0];i=he(i,e.x),i=ze(i,e.x+e.width);var n=r[1];return n=he(n,e.y),n=ze(n,e.y+e.height),[i,n]})}function pp(t,e){var r=he(t.x,e.x),i=ze(t.x+t.width,e.x+e.width),n=he(t.y,e.y),a=ze(t.y+t.height,e.y+e.height);if(i>=r&&a>=n)return{x:r,y:n,width:i-r,height:a-n}}function Do(t,e,r){var i=R({rectHover:!0},e),n=i.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},t)return t.indexOf(`image://`)===0?(n.image=t.slice(8),re(n,r),new Vt(i)):Zn(t.replace(`path://`,``),i,r,`center`)}function mC(t,e,r,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(hy(t,e,r,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function hy(t,e,r,i,n,a,o,s){var l=r-t,u=i-e,f=o-n,c=s-a,p=$c(f,c,l,u);if(gC(p))return!1;var h=t-n,v=e-a,g=$c(h,v,l,u)/p;if(g<0||g>1)return!1;var d=$c(h,v,f,c)/p;return!(d<0||d>1)}function $c(t,e,r,i){return t*i-r*e}function gC(t){return t<=1e-6&&t>=-1e-6}function Ol(t,e,r,i,n){return e==null||(ae(e)?xe[0]=xe[1]=xe[2]=xe[3]=e:(xe[0]=e[0],xe[1]=e[1],xe[2]=e[2],xe[3]=e[3]),i&&(xe[0]=he(0,xe[0]),xe[1]=he(0,xe[1]),xe[2]=he(0,xe[2]),xe[3]=he(0,xe[3])),r&&(xe[0]=-xe[0],xe[1]=-xe[1],xe[2]=-xe[2],xe[3]=-xe[3]),cy(t,xe,`x`,`width`,3,1,n&&n[0]||0),cy(t,xe,`y`,`height`,0,2,n&&n[1]||0)),t}var xe=[0,0,0,0];function cy(t,e,r,i,n,a,o){var s=e[a]+e[n],l=t[i];t[i]+=s,o=he(0,ze(o,l)),t[i]<o?(t[i]=o,t[r]+=e[n]>=0?-e[n]:e[a]>=0?l+e[a]:st(s)>1e-8?(l-o)*e[n]/s:0):t[r]-=e[n]}function Il(t){var e=t.itemTooltipOption,r=t.componentModel,i=t.itemName,n=P(e)?{formatter:e}:e,a=r.mainType,o=r.componentIndex,s={componentType:a,name:i,$vars:[`name`]};s[a+`Index`]=o;var l=t.formatterParamsExtra;l&&w(ie(l),function(f){Ue(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=ge(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:re({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function ep(t,e){var r;t.isGroup&&(r=e(t)),r||t.traverse(e)}function hp(t,e){if(t)if(L(t))for(var r=0;r<t.length;r++)ep(t[r],e);else ep(t,e)}function Rl(t){return!t||st(t[1])<El&&st(t[2])<El||st(t[0])<El&&st(t[3])<El}var El=1e-5;function jn(t,e){return t?X.copy(t,e):e.clone()}function Ll(t,e){return e?Ia(t||ot(),e):void 0}function vp(t){return{z:t.get(`z`)||0,zlevel:t.get(`zlevel`)||0}}function yC(t){var e=-Infinity,r=Infinity;ep(t,function(a){i(a),i(a.getTextContent()),i(a.getTextGuideLine())});function i(a){if(!(!a||a.isGroup)){var o=a.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(a.states[o[s]]);n(a)}}function n(a){if(a){var o=a.z2;o>e&&(e=o),o<r&&(r=o)}}return r>e&&(r=e=0),{min:r,max:e}}function dp(t,e,r){vy(t,e,r,-Infinity)}function vy(t,e,r,i){if(t.ignoreModelZ)return i;var n=t.getTextContent(),a=t.getTextGuideLine();if(t.isGroup)for(var s=t.childrenRef(),l=0;l<s.length;l++)i=he(vy(s[l],e,r,i),i);else t.z=e,t.zlevel=r,i=he(t.z2||0,i);if(n&&(n.z=e,n.zlevel=r,isFinite(i)&&(n.z2=i+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=r,isFinite(i)&&(a.z2=i+(u&&u.showAbove?1:-1))}return i}function _C(t){return t.animation={duration:0},t}function xC(t,e){return e?Ia(Co.transform,e):_r(Co.transform),Co.decomposeTransform(),Ln(t,Co),t}var Co=new Pn;Co.transform=ot();function SC(t){var e=t.getZr().painter;return e.getType()===`canvas`?e:null}At(`circle`,Gi);At(`ellipse`,go);At(`sector`,xo);At(`ring`,So);At(`polygon`,To);At(`polyline`,wo);At(`rect`,Pe);At(`line`,vr);At(`bezierCurve`,bo);At(`arc`,Wi);var mp={};function TC(t,e){for(var r=0;r<lo.length;r++){var i=lo[r],n=e[i],a=t.ensureState(i);a.style=a.style||{},a.style.text=n}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function wC(t,e,r){var i=t.labelFetcher,n=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(n,`normal`,null,a,o&&o.get(`formatter`),r!=null?{interpolatedValue:r}:null)),s??=V(t.defaultText)?t.defaultText(n,t,r):t.defaultText;for(var l={normal:s},u=0;u<lo.length;u++){var f=lo[u],c=e[f];l[f]=H(i?i.getFormattedLabel(n,f,null,a,c&&c.get(`formatter`)):null,s)}return l}function ji(t,e,r,i,n){var a={};return bC(a,t,r,i,n),e&&R(a,e),a}function bC(t,e,r,i,n){r=r||mp;var a=e.ecModel,o=a&&a.option.textStyle,s=CC(e),l;if(s){l={};var u=`richInheritPlainLabel`,f=H(e.get(u),a?a.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var p=e.getModel([`rich`,c]);yy(l[c]={},p,o,e,f,r,i,n,!1,!0)}}l&&(t.rich=l);var h=e.get(`overflow`);h&&(t.overflow=h);var v=e.get(`lineOverflow`);v&&(t.lineOverflow=v);var g=t,d=e.get(`minMargin`);if(d!=null)d=ae(d)?d/2:0,g.margin=[d,d,d,d],g.__marginType=Zi.minMargin;else{var m=e.get(`textMargin`);m!=null&&(g.margin=Tn(m),g.__marginType=Zi.textMargin)}yy(t,e,o,null,null,r,i,n,!0,!1)}function CC(t){for(var e;t&&t!==t.ecModel;){var r=(t.option||mp).rich;if(r){e=e||{};for(var i=ie(r),n=0;n<i.length;n++){var a=i[n];e[a]=1}}t=t.parentModel}return e}var dy=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`];var my=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`];var gy=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function yy(t,e,r,i,n,a,o,s,l,u){r=!o&&r||mp;var f=a&&a.inheritColor,c=e.getShallow(`color`),p=e.getShallow(`textBorderColor`),h=H(e.getShallow(`opacity`),r.opacity);(c===`inherit`||c===`auto`)&&(f?c=f:c=null),(p===`inherit`||p===`auto`)&&(f?p=f:p=null),s||(c=c||r.color,p=p||r.textBorderColor),c!=null&&(t.fill=c),p!=null&&(t.stroke=p);var v=H(e.getShallow(`textBorderWidth`),r.textBorderWidth);v!=null&&(t.lineWidth=v);var g=H(e.getShallow(`textBorderType`),r.textBorderType);g!=null&&(t.lineDash=g);var d=H(e.getShallow(`textBorderDashOffset`),r.textBorderDashOffset);d!=null&&(t.lineDashOffset=d),!o&&h==null&&!u&&(h=a&&a.defaultOpacity),h!=null&&(t.opacity=h),!o&&!s&&t.fill==null&&a.inheritColor&&(t.fill=a.inheritColor);for(var m=0;m<dy.length;m++){var y=dy[m],_=n!==!1&&i?Yt(e.getShallow(y),i.getShallow(y),r[y]):H(e.getShallow(y),r[y]);_!=null&&(t[y]=_)}for(var m=0;m<my.length;m++){var y=my[m],_=e.getShallow(y);_!=null&&(t[y]=_)}if(t.verticalAlign==null){var x=e.getShallow(`baseline`);x!=null&&(t.verticalAlign=x)}if(!l||!a.disableBox){for(var m=0;m<gy.length;m++){var y=gy[m],_=e.getShallow(y);_!=null&&(t[y]=_)}var S=e.getShallow(`borderType`);S!=null&&(t.borderDash=S),(t.backgroundColor===`auto`||t.backgroundColor===`inherit`)&&f&&(t.backgroundColor=f),(t.borderColor===`auto`||t.borderColor===`inherit`)&&f&&(t.borderColor=f)}}function _y(t,e){var r=e&&e.getModel(`textStyle`);return je([t.fontStyle||r&&r.getShallow(`fontStyle`)||``,t.fontWeight||r&&r.getShallow(`fontWeight`)||``,(t.fontSize||r&&r.getShallow(`fontSize`)||12)+`px`,t.fontFamily||r&&r.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var EC=K();function PN(t,e,r,i,n){var a=EC(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=H(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var c=ym(r,a.precision,s,l,f);a.interpolatedValue=f===1?null:c;TC(t,wC({labelDataIndex:e,labelFetcher:n,defaultText:o?o(c):c+``},a.statesModels,c))}t.percent=0,(a.prevValue==null?Kn:Ir)(t,{percent:1},i,e,null,u)}var Zi={minMargin:1,textMargin:2};var DC=[`textStyle`,`color`];var gp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`];var yp=new $e;var xy=(function(){function t(){}return t.prototype.getTextColor=function(e){var r=this.ecModel;return this.getShallow(`color`)||(!e&&r?r.get(DC):null)},t.prototype.getFont=function(){return _y({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},t.prototype.getTextRect=function(e){for(var r={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},i=0;i<gp.length;i++)r[gp[i]]=this.getShallow(gp[i]);return yp.useStyle(r),yp.update(),yp.getBoundingRect()},t})();var _p=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]];var AC=ar(_p);var Sy=(function(){function t(){}return t.prototype.getLineStyle=function(e){return AC(this,e)},t})();var xp=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]];var OC=ar(xp);var Ty=(function(){function t(){}return t.prototype.getItemStyle=function(e,r){return OC(this,e,r)},t})();var Qi=(function(){function t(e,r,i){this.parentModel=r,this.ecModel=i,this.option=e}return t.prototype.init=function(e,r,i){for(var n=[],a=3;a<arguments.length;a++)n[a-3]=arguments[a]},t.prototype.mergeOption=function(e,r){pe(this.option,e,!0)},t.prototype.get=function(e,r){return e==null?this.option:this._doGet(this.parsePath(e),!r&&this.parentModel)},t.prototype.getShallow=function(e,r){var i=this.option,n=i==null?i:i[e];if(n==null&&!r){var a=this.parentModel;a&&(n=a.getShallow(e))}return n},t.prototype.getModel=function(e,r){var i=e!=null,n=i?this.parsePath(e):null,a=i?this._doGet(n):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new t(a,r,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(G(this.option))},t.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,r){var i=this.option;if(!e)return i;for(var n=0;n<e.length&&!(e[n]&&(i=i&&typeof i==`object`?i[e[n]]:null,i==null));n++);return i==null&&r&&(i=r._doGet(this.resolveParentPath(e),r.parentModel)),i},t})();Vn(Qi);Em(Qi);nt(Qi,Sy);nt(Qi,Ty);nt(Qi,Dm);nt(Qi,xy);var ye=Qi;var IC=Math.round(Math.random()*10);function ri(t){return[t||``,IC++].join(`_`)}function wy(t){var e={};t.registerSubTypeDefaulter=function(r,i){var n=yt(r);e[n.main]=i},t.determineSubType=function(r,i){var n=i.type;if(!n){var a=yt(r).main;t.hasSubTypes(r)&&e[a]&&(n=e[a](i))}return n}}function by(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),f=u.graph,c=u.noEntryList,p={};for(w(a,function(y){p[y]=!0});c.length;){var h=c.pop(),v=f[h],g=!!p[h];g&&(s.call(l,h,v.originalDeps.slice()),delete p[h]),w(v.successor,g?m:d)}w(p,function(){throw new Error(``)});function d(y){f[y].entryCount--,f[y].entryCount===0&&c.push(y)}function m(y){p[y]=!0,d(y)}};function r(a){var o={},s=[];return w(a,function(l){var u=i(o,l),c=n(u.originalDeps=e(l),a);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(p){Z(u.predecessor,p)<0&&u.predecessor.push(p);var h=i(o,p);Z(h.successor,p)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return w(a,function(l){Z(o,l)>=0&&s.push(l)}),s}}var Cy={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:`. `}}}};var Ey={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 Nl=`ZH`;var Tp=`EN`;var Qn=Tp;var Pl={};var wp={};var kl=q.domSupported?(function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Qn).toUpperCase().indexOf(Nl)>-1?Nl:Qn})():Qn;function Dy(t,e){t=t.toUpperCase(),wp[t]=new ye(e),Pl[t]=e}function My(t){if(P(t)){var e=Pl[t.toUpperCase()]||{};return t===Nl||t===Tp?G(e):pe(G(e),G(Pl[Qn]),!1)}else return pe(G(t),G(Pl[Qn]),!1)}function Ay(t){return wp[t]}function Oy(){return wp[Qn]}Dy(Tp,Cy);Dy(Nl,Ey);var RC=null;function Ae(){return RC}function Bl(t,e){var r=Ae(),i=e.breakOption,n=e.breakParsed;return!n&&r&&(n=r.parseAxisBreakOption(i,t)),n}function $i(t){var e=t.brk;return e?e.breaks:[]}function Iy(t){var e=t.brk;return e?e.hasBreaks():!1}var zl=1e3;var Fl=zl*60;var $n=Fl*60;var Ot=$n*24;var Cp=Ot*365;var bp={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`};var LC=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`;var Ul=`{yyyy}-{MM}-{dd}`;var Ep={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Ul,hour:Ul+` `+bp.hour,minute:Ul+` `+bp.minute,second:Ul+` `+bp.second,millisecond:LC};var Qt=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`];var Ry=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function et(t,e){return t+=``,`0000`.substr(0,e-t.length)+t}function Jn(t){switch(t){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return t}}function Ly(t){return t===Jn(t)}function Py(t){switch(t){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function Ji(t,e,r,i){var n=bt(t),a=n[Dp(r)](),o=n[Hl(r)]()+1,s=Math.floor((o-1)/3)+1,l=n[Gl(r)](),u=n[`get`+(r?`UTC`:``)+`Day`](),f=n[Yl(r)](),c=(f-1)%12+1,p=n[Wl(r)](),h=n[Xl(r)](),v=n[ql(r)](),g=f>=12?`pm`:`am`,d=g.toUpperCase(),y=(i instanceof ye?i:Ay(i||kl)||Oy()).getModel(`time`),_=y.get(`month`),x=y.get(`monthAbbr`),S=y.get(`dayOfWeek`),T=y.get(`dayOfWeekAbbr`);return(e||``).replace(/{a}/g,g+``).replace(/{A}/g,d+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,et(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,et(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,et(l,2)).replace(/{d}/g,l+``).replace(/{eeee}/g,S[u]).replace(/{ee}/g,T[u]).replace(/{e}/g,u+``).replace(/{HH}/g,et(f,2)).replace(/{H}/g,f+``).replace(/{hh}/g,et(c+``,2)).replace(/{h}/g,c+``).replace(/{mm}/g,et(p,2)).replace(/{m}/g,p+``).replace(/{ss}/g,et(h,2)).replace(/{s}/g,h+``).replace(/{SSS}/g,et(v,3)).replace(/{S}/g,v+``)}function Ny(t,e,r,i,n){var a=null;if(P(r))a=r;else if(V(r)){var o={time:t.time,level:t.time?t.time.level:0},s=Ae();s&&s.makeAxisLabelFormatterParamBreak(o,t.break),a=r(t.value,e,o)}else{var l=t.time;if(l){var u=r[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||``}else{var f=en(t.value,n);a=r[f][f][0]}}return Ji(new Date(t.value),a,n,i)}function en(t,e){var r=bt(t),i=r[Hl(e)]()+1,n=r[Gl(e)](),a=r[Yl(e)](),o=r[Wl(e)](),s=r[Xl(e)](),u=r[ql(e)]()===0,f=u&&s===0,c=f&&o===0,p=c&&a===0,h=p&&n===1;return h&&i===1?`year`:h?`month`:p?`day`:c?`hour`:f?`minute`:u?`second`:`millisecond`}function Vl(t,e,r){switch(e){case`year`:t[Mp(r)](0);case`month`:t[Ap(r)](1);case`day`:t[Op(r)](0);case`hour`:t[Ip(r)](0);case`minute`:t[Rp(r)](0);case`second`:t[Lp(r)](0)}return t}function Dp(t){return t?`getUTCFullYear`:`getFullYear`}function Hl(t){return t?`getUTCMonth`:`getMonth`}function Gl(t){return t?`getUTCDate`:`getDate`}function Yl(t){return t?`getUTCHours`:`getHours`}function Wl(t){return t?`getUTCMinutes`:`getMinutes`}function Xl(t){return t?`getUTCSeconds`:`getSeconds`}function ql(t){return t?`getUTCMilliseconds`:`getMilliseconds`}function ky(t){return t?`setUTCFullYear`:`setFullYear`}function Mp(t){return t?`setUTCMonth`:`setMonth`}function Ap(t){return t?`setUTCDate`:`setDate`}function Op(t){return t?`setUTCHours`:`setHours`}function Ip(t){return t?`setUTCMinutes`:`setMinutes`}function Rp(t){return t?`setUTCSeconds`:`setSeconds`}function Lp(t){return t?`setUTCMilliseconds`:`setMilliseconds`}function Pp(t,e,r,i,n,a,o,s){return new $e({style:{text:t,font:e,align:r,verticalAlign:i,padding:n,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}function Mo(t){if(!$a(t))return P(t)?t:`-`;var e=(t+``).split(`.`);return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(e.length>1?`.`+e[1]:``)}function ea(t,e){return t=(t||``).toLowerCase().replace(/-(.)/g,function(r,i){return i.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var ii=Tn;function Kl(t,e,r){var i=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function n(f){return f&&je(f)?f:`-`}function a(f){return gt(f)}var o=e===`time`,s=t instanceof Date;if(o||s){var l=o?bt(t):t;if(isNaN(+l)){if(s)return`-`}else return Ji(l,i,r)}if(e===`ordinal`)return Oa(t)?n(t):ae(t)&&a(t)?t+``:`-`;var u=Bt(t);return a(u)?Mo(u):Oa(t)?n(t):typeof t==`boolean`?t+``:`-`}var By=[`a`,`b`,`c`,`d`,`e`,`f`,`g`];var Np=function(t,e){return`{`+t+(e??``)+`}`};function ta(t,e,r){L(e)||(e=[e]);var i=e.length;if(!i)return``;for(var n=e[0].$vars||[],a=0;a<n.length;a++){var o=By[a];t=t.replace(Np(o),Np(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=e[s][n[l]];t=t.replace(Np(By[l],s),r?He(u):u)}return t}function Zl(t,e){var r=P(t)?{color:t,extraCssText:e}:t||{},i=r.color,n=r.type;e=r.extraCssText;var a=r.renderMode||`html`;if(!i)return``;if(a===`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:`+He(i)+`;`+(e||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+He(i)+`;`+(e||``)+`"></span>`;return{renderMode:a,content:`{`+(r.markerId||`markerX`)+`|} `,style:n===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Uy(t,e,r){(t===`week`||t===`month`||t===`quarter`||t===`half-year`||t===`year`)&&(t=`MM-dd
9
- yyyy`);var i=bt(e),n=r?`getUTC`:`get`,a=i[n+`FullYear`](),o=i[n+`Month`]()+1,s=i[n+`Date`](),l=i[n+`Hours`](),u=i[n+`Minutes`](),f=i[n+`Seconds`](),c=i[n+`Milliseconds`]();return t=t.replace(`MM`,et(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,et(a%100+``,2)).replace(`dd`,et(s,2)).replace(`d`,s).replace(`hh`,et(l,2)).replace(`h`,l).replace(`mm`,et(u,2)).replace(`m`,u).replace(`ss`,et(f,2)).replace(`s`,f).replace(`SSS`,et(c,3)),t}function zy(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function ni(t,e){return e=e||`transparent`,P(t)?t:N(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function m2(t,e){if(e===`_blank`||e===`blank`){var r=window.open();r.opener=null,r.location.href=t}else window.open(t,e)}var kp={};var Bp={};var PC=(function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(e,r){this._nonSeriesBoxMasterList=i(kp,!0),this._normalMasterList=i(Bp,!1);function i(n,a){var o=[];return w(n,function(s,l){var u=s.create(e,r);o=o.concat(u||[])}),o}},t.prototype.update=function(e,r){w(this._normalMasterList,function(i){i.update&&i.update(e,r)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(e,r){if(e===`matrix`||e===`calendar`){kp[e]=r;return}Bp[e]=r},t.get=function(e){return Bp[e]||kp[e]},t})();z();var Ao=PC;var Ql=w;var NC=[`left`,`right`,`top`,`bottom`,`width`,`height`];var jl=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Vy(t,e,r,i,n){var a=0,o=0;i??=Infinity,n??=Infinity;var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),c=e.childAt(u+1),p=c&&c.getBoundingRect(),h,v;if(t===`horizontal`){var g=f.width+(p?-p.x+f.x:0);h=a+g,h>i||l.newline?(a=0,h=g,o+=s+r,s=f.height):s=Math.max(s,f.height)}else{var d=f.height+(p?-p.y+f.y:0);v=o+d,v>n||l.newline?(a+=s+r,o=0,v=d,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t===`horizontal`?a=h+r:o=v+r)})}Ee(Vy,`vertical`);Ee(Vy,`horizontal`);function Hy(t,e){return{left:t.getShallow(`left`,e),top:t.getShallow(`top`,e),right:t.getShallow(`right`,e),bottom:t.getShallow(`bottom`,e),width:t.getShallow(`width`,e),height:t.getShallow(`height`,e)}}function $l(t,e,r){r=ii(r||0);var i=e.width,n=e.height,a=lt(t.left,i),o=lt(t.top,n),s=lt(t.right,i),l=lt(t.bottom,n),u=lt(t.width,i),f=lt(t.height,n),c=r[2]+r[0],p=r[1]+r[3],h=t.aspect;switch(isNaN(u)&&(u=i-s-p-a),isNaN(f)&&(f=n-l-c-o),h!=null&&(isNaN(u)&&isNaN(f)&&(h>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=h*f),isNaN(f)&&(f=u/h)),isNaN(a)&&(a=i-s-u-p),isNaN(o)&&(o=n-l-f-c),t.left||t.right){case`center`:a=i/2-u/2-r[3];break;case`right`:a=i-u-p;break}switch(t.top||t.bottom){case`middle`:case`center`:o=n/2-f/2-r[0];break;case`bottom`:o=n-f-c;break}a=a||0,o=o||0,isNaN(u)&&(u=i-p-a-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var v=new X((e.x||0)+a+r[3],(e.y||0)+o+r[0],u,f);return v.margin=r,v}function ra(t){var e=t.layoutMode||t.constructor.layoutMode;return N(e)?e:e?{type:e}:null}function ia(t,e,r){var i=r&&r.ignoreSize;!L(i)&&(i=[i,i]);var n=o(jl[0],0),a=o(jl[1],1);l(jl[0],t,n),l(jl[1],t,a);function o(u,f){var c={},p=0,h={},v=0,g=2;if(Ql(u,function(y){h[y]=t[y]}),Ql(u,function(y){Ue(e,y)&&(c[y]=h[y]=e[y]),s(c,y)&&p++,s(h,y)&&v++}),i[f])return s(e,u[1])?h[u[2]]=null:s(e,u[2])&&(h[u[1]]=null),h;if(v===g||!p)return h;if(p>=g)return c;for(var d=0;d<u.length;d++){var m=u[d];if(!Ue(c,m)&&Ue(t,m)){c[m]=t[m];break}}return c}function s(u,f){return u[f]!=null&&u[f]!==`auto`}function l(u,f,c){Ql(u,function(p){f[p]=c[p]})}}function Jl(t){return kC({},t)}function kC(t,e){return e&&t&&Ql(NC,function(r){Ue(e,r)&&(t[r]=e[r])}),t}var UC=K();var na=(function(t){se(e,t);function e(r,i,n){var a=t.call(this,r,i,n)||this;return a.uid=ri(`ec_cpt_model`),a}return e.prototype.init=function(r,i,n){this.mergeDefaultAndTheme(r,n)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=ra(this),a=n?Jl(r):{};pe(r,i.getTheme().get(this.mainType)),pe(r,this.getDefaultOption()),n&&ia(r,a,n)},e.prototype.mergeOption=function(r,i){pe(this.option,r,!0);var n=ra(this);n&&ia(this.option,r,n)},e.prototype.optionUpdated=function(r,i){},e.prototype.getDefaultOption=function(){var r=this.constructor;if(!Cm(r))return r.defaultOption;var i=UC(this);if(!i.defaultOption){for(var n=[],a=r;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=pe(s,n[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(r,i){var n=r+`Index`,a=r+`Id`;return Kr(this.ecModel,r,{index:this.get(n,!0),id:this.get(a,!0)},i)},e.prototype.getBoxLayoutParams=function(){return Hy(this,!1)},e.prototype.getZLevelKey=function(){return``},e.prototype.setZLevel=function(r){this.option.zlevel=r},e.protoInitialize=(function(){var r=e.prototype;r.type=`component`,r.id=``,r.name=``,r.mainType=``,r.subType=``,r.componentIndex=0})(),e})(ye);Zs(na,ye);Zr(na);wy(na);by(na,zC);function zC(t){var e=[];return w(na.getClassesByMainType(t),function(r){e=e.concat(r.dependencies||r.prototype.dependencies||[])}),e=U(e,function(r){return yt(r).main}),t!==`dataset`&&Z(e,`dataset`)<=0&&e.unshift(`dataset`),e}var _e=na;var tn={color:{},darkColor:{},size:{}};var Oe=tn.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)`};R(Oe,{primary:Oe.neutral80,secondary:Oe.neutral70,tertiary:Oe.neutral60,quaternary:Oe.neutral50,disabled:Oe.neutral20,border:Oe.neutral30,borderTint:Oe.neutral20,borderShade:Oe.neutral40,background:Oe.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Oe.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Oe.neutral70,axisLineTint:Oe.neutral40,axisTick:Oe.neutral70,axisTickMinor:Oe.neutral60,axisLabel:Oe.neutral70,axisSplitLine:Oe.neutral15,axisMinorSplitLine:Oe.neutral05});for(ai in Oe)Oe.hasOwnProperty(ai)&&(Up=Oe[ai],ai===`theme`?tn.darkColor.theme=Oe.theme.slice():ai===`highlight`?tn.darkColor.highlight=`rgba(255,231,130,0.4)`:ai.indexOf(`accent`)===0?tn.darkColor[ai]=Fa(Up,null,function(t){return t*.5},function(t){return Math.min(1,1.3-t)}):tn.darkColor[ai]=Fa(Up,null,function(t){return t*.9},function(t){return 1-Math.pow(t,1.5)}));var Up;var ai;tn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Te=tn;var Gy=``;typeof navigator<`u`&&(Gy=navigator.platform||``);var aa=`rgba(0, 0, 0, 0.2)`;var Yy=Te.color.theme[0];var FC=Fa(Yy,null,null,.9);var eu={darkMode:`auto`,colorBy:`series`,color:Te.color.theme,gradientColor:[FC,Yy],aria:{decal:{decals:[{color:aa,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:aa,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:aa,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:aa,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:aa,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:aa,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Gy.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 pt={Must:1,Might:2,Not:3};var Wy=K();function Xy(t){Wy(t).datasetMap=z()}function qy(t,e,r){var i={},n=zp(e);if(!n||!t)return i;var a=[],o=[],s=e.ecModel,l=Wy(s).datasetMap,u=n.uid+`_`+r.seriesLayoutBy,f,c;t=t.slice(),w(t,function(g,d){var m=N(g)?g:t[d]={name:g};m.type===`ordinal`&&f==null&&(f=d,c=v(m)),i[m.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(t,function(g,d){var m=g.name,y=v(g);if(f==null){var _=p.valueWayDim;h(i[m],_,y),h(o,_,y),p.valueWayDim+=y}else if(f===d)h(i[m],0,y),h(a,0,y);else{var _=p.categoryWayDim;h(i[m],_,y),h(o,_,y),p.categoryWayDim+=y}});function h(g,d,m){for(var y=0;y<m;y++)g.push(d+y)}function v(g){var d=g.dimsDef;return d?d.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function zp(t){if(!t.get(`data`,!0))return Kr(t.ecModel,`dataset`,{index:t.get(`datasetIndex`,!0),id:t.get(`datasetId`,!0)},nr).models[0]}function Ky(t){return!t.get(`transform`,!0)&&!t.get(`fromTransformResult`,!0)?[]:Kr(t.ecModel,`dataset`,{index:t.get(`fromDatasetIndex`,!0),id:t.get(`fromDatasetId`,!0)},nr).models}function tu(t,e){return VC(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function VC(t,e,r,i,n,a){var o,s=5;if(De(t))return pt.Not;var l,u;if(i){var f=i[a];N(f)?(l=f.name,u=f.type):P(f)&&(l=f)}if(u!=null)return u===`ordinal`?pt.Must:pt.Not;if(e===Fe){var c=t;if(r===pr){for(var p=c[a],h=0;h<(p||[]).length&&h<s;h++)if((o=x(p[n+h]))!=null)return o}else for(var h=0;h<c.length&&h<s;h++){var v=c[n+h];if(v&&(o=x(v[a]))!=null)return o}}else if(e===ft){var g=t;if(!l)return pt.Not;for(var h=0;h<g.length&&h<s;h++){var d=g[h];if(d&&(o=x(d[l]))!=null)return o}}else if(e===Dt){var m=t;if(!l)return pt.Not;var p=m[l];if(!p||De(p))return pt.Not;for(var h=0;h<p.length&&h<s;h++)if((o=x(p[h]))!=null)return o}else if(e===Ye)for(var y=t,h=0;h<y.length&&h<s;h++){var d=y[h],_=Er(d);if(!L(_))return pt.Not;if((o=x(_[a]))!=null)return o}function x(S){var T=P(S);if(S!=null&&isFinite(Number(S))&&S!==``)return T?pt.Might:pt.Not;if(T&&S!==`-`)return pt.Must}return pt.Not}var HC=z();function Zy(t,e,r){var i=HC.get(e);if(!i)return r;var n=i(t);if(!n)return r;return r.concat(n)}var jy=K();var GC=K();var Oo=(function(){function t(){}return t.prototype.getColorFromPalette=function(e,r,i){var n=Se(this.get(`color`,!0)),a=this.get(`colorLayer`,!0);return Qy(this,jy,n,a,e,r,i)},t.prototype.clearColorPalette=function(){WC(this,jy)},t})();function Fp(t,e,r,i){return Qy(t,GC,Se(t.get([`aria`,`decal`,`decals`])),null,e,r,i)}function YC(t,e){for(var r=t.length,i=0;i<r;i++)if(t[i].length>e)return t[i];return t[r-1]}function Qy(t,e,r,i,n,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?r:YC(i,o);if(f=f||r,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function WC(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var ru;var Io;var $y;var Jy=`\0_ec_inner`;var XC=1;var i_=(function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(r,i,n,a,o,s){a=a||{},this.option=null,this._theme=new ye(a),this._locale=new ye(o),this._optionManager=s},e.prototype.setOption=function(r,i,n){var a=r_(i);this._optionManager.setOption(r,n,a),this._resetOption(null,a)},e.prototype.resetOption=function(r,i){return this._resetOption(r,r_(i))},e.prototype._resetOption=function(r,i){var n=!1,a=this._optionManager;if(!r||r===`recreate`){var o=a.mountOption(r===`recreate`);!this.option||r===`recreate`?$y(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((r===`timeline`||r===`media`)&&this.restoreData(),!r||r===`recreate`||r===`timeline`){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!r||r===`recreate`||r===`media`){var l=a.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},e.prototype.mergeOption=function(r){this._mergeOption(r,null)},e.prototype._mergeOption=function(r,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=z(),u=i&&i.replaceMergeMainTypeMap;Xy(this),w(r,function(c,p){c!=null&&(_e.hasClass(p)?p&&(s.push(p),l.set(p,!0)):n[p]=n[p]==null?G(c):pe(n[p],c,!0))}),u&&u.each(function(c,p){_e.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),_e.topologicalTravel(s,_e.getAllClassMainTypes(),f,this);function f(c){var p=Zy(this,c,Se(r[c])),h=a.get(c),g=pm(h,p,h?u&&u.get(c)?`replaceMerge`:`normalMerge`:`replaceAll`);vm(g,c,_e),n[c]=null,a.set(c,null),o.set(c,0);var d=[],m=[],y=0,_;w(g,function(S,T){var C=S.existing,E=S.newOption;if(!E)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var b=c===`series`,D=_e.getClass(c,S.keyInfo.subType,!b);if(!D)return;if(c===`tooltip`){if(_)return;_=!0}if(C&&C.constructor===D)C.name=S.keyInfo.name,C.mergeOption(E,this),C.optionUpdated(E,!1);else{var M=R({componentIndex:T},S.keyInfo);C=new D(E,this,this,M),R(C,M),S.brandNew&&(C.__requireNewView=!0),C.init(E,this,this),C.optionUpdated(null,!0)}}C?(d.push(C.option),m.push(C),y++):(d.push(void 0),m.push(void 0))},this),n[c]=d,a.set(c,m),o.set(c,y),c===`series`&&ru(this)}this._seriesIndices||ru(this)},e.prototype.getOption=function(){var r=G(this.option);return w(r,function(i,n){if(_e.hasClass(n)){for(var a=Se(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Un(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[n]=a}}),delete r[Jy],r},e.prototype.setTheme=function(r){this._theme=new ye(r),this._resetOption(`recreate`,null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(r){this._payload=r},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(r,i){var n=this._componentsMap.get(r);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},e.prototype.queryComponents=function(r){var i=r.mainType;if(!i)return[];var n=r.index,a=r.id,o=r.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(Se(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=e_(`id`,a,s):o!=null?l=e_(`name`,o,s):l=Ce(s,function(u){return!!u}),t_(l,r)},e.prototype.findComponents=function(r){var i=r.query,n=r.mainType,a=s(i);return l(t_(a?this.queryComponents(a):Ce(this._componentsMap.get(n),function(u){return!!u}),r));function s(u){var f=n+`Index`,c=n+`Id`,p=n+`Name`;return u&&(u[f]!=null||u[c]!=null||u[p]!=null)?{mainType:n,index:u[f],id:u[c],name:u[p]}:null}function l(u){return r.filter?Ce(u,r.filter):u}},e.prototype.eachComponent=function(r,i,n){var a=this._componentsMap;if(V(r)){var o=i,s=r;a.each(function(c,p){for(var h=0;c&&h<c.length;h++){var v=c[h];v&&s.call(o,p,v,v.componentIndex)}})}else for(var l=P(r)?a.get(r):N(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},e.prototype.getSeriesByName=function(r){var i=Ct(r,null);return Ce(this._componentsMap.get(`series`),function(n){return!!n&&i!=null&&n.name===i})},e.prototype.getSeriesByIndex=function(r){return this._componentsMap.get(`series`)[r]},e.prototype.getSeriesByType=function(r){return Ce(this._componentsMap.get(`series`),function(i){return!!i&&i.subType===r})},e.prototype.getSeries=function(){return Ce(this._componentsMap.get(`series`),function(r){return!!r})},e.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},e.prototype.eachSeries=function(r,i){Io(this),w(this._seriesIndices,function(n){var a=this._componentsMap.get(`series`)[n];r.call(i,a,n)},this)},e.prototype.eachRawSeries=function(r,i){w(this._componentsMap.get(`series`),function(n){n&&r.call(i,n,n.componentIndex)})},e.prototype.eachSeriesByType=function(r,i,n){Io(this),w(this._seriesIndices,function(a){var o=this._componentsMap.get(`series`)[a];o.subType===r&&i.call(n,o,a)},this)},e.prototype.eachRawSeriesByType=function(r,i,n){return w(this.getSeriesByType(r),i,n)},e.prototype.isSeriesFiltered=function(r){return Io(this),this._seriesIndicesMap.get(r.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(r,i){Io(this);var n=[];w(this._seriesIndices,function(a){var o=this._componentsMap.get(`series`)[a];r.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=z(n)},e.prototype.restoreData=function(r){ru(this);var i=this._componentsMap,n=[];i.each(function(a,o){_e.hasClass(o)&&n.push(o)}),_e.topologicalTravel(n,_e.getAllClassMainTypes(),function(a){w(i.get(a),function(o){o&&(a!==`series`||!qC(o,r))&&o.restoreData()})})},e.internalField=(function(){ru=function(r){var i=r._seriesIndices=[];w(r._componentsMap.get(`series`),function(n){n&&i.push(n.componentIndex)}),r._seriesIndicesMap=z(i)},Io=function(r){},$y=function(r,i){r.option={},r.option[Jy]=XC,r._componentsMap=z({series:[]}),r._componentsCount=z();var n=i.aria;N(n)&&n.enabled==null&&(n.enabled=!0),KC(i,r._theme.option),pe(i,eu,!1),r._mergeOption(i,null)}})(),e})(ye);function qC(t,e){if(e){var r=e.seriesIndex,i=e.seriesId,n=e.seriesName;return r!=null&&t.componentIndex!==r||i!=null&&t.id!==i||n!=null&&t.name!==n}}function KC(t,e){var r=t.color&&!t.colorLayer;w(e,function(i,n){n===`colorLayer`&&r||n===`color`&&t.color||_e.hasClass(n)||(typeof i==`object`?t[n]=t[n]?pe(t[n],i,!1):G(i):t[n]??(t[n]=i))})}function e_(t,e,r){if(L(e)){var i=z();return w(e,function(a){if(a!=null)Ct(a,null)!=null&&i.set(a,!0)}),Ce(r,function(a){return a&&i.get(a[t])})}else{var n=Ct(e,null);return Ce(r,function(a){return a&&n!=null&&a[t]===n})}}function t_(t,e){return e.hasOwnProperty(`subType`)?Ce(t,function(r){return r&&r.subType===e.subType}):t}function r_(t){var e=z();return t&&w(Se(t.replaceMerge),function(r){e.set(r,!0)}),{replaceMergeMainTypeMap:e}}nt(i_,Oo);var iu=i_;var ZC=/^(min|max)?(.+)$/;var jC=(function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,r,i){e&&(w(Se(e.series),function(o){o&&o.data&&De(o.data)&&di(o.data)}),w(Se(e.dataset),function(o){o&&o.source&&De(o.source)&&di(o.source)})),e=G(e);var n=this._optionBackup,a=QC(e,r,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],G(e?r.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var r,i=this._timelineOptions;if(i.length){var n=e.getComponent(`timeline`);n&&(r=G(i[n.getCurrentIndex()]))}return r},t.prototype.getMediaOption=function(e){var r=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)$C(n[l].query,r,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!eE(o,this._currentMediaIndices)&&(s=U(o,function(f){return G(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},t})();function QC(t,e,r){var i=[],n,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,f=!!t.media,c=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((c||f)&&(t.options=t.media=null),a=t),f&&L(u)&&w(u,function(h){h&&h.option&&(h.query?i.push(h):n||(n=h))}),p(a),w(l,function(h){return p(h)}),w(i,function(h){return p(h.option)});function p(h){w(e,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function $C(t,e,r){var i={width:e,height:r,aspectratio:e/r},n=!0;return w(t,function(a,o){var s=o.match(ZC);if(!(!s||!s[1]||!s[2])){var l=s[1];JC(i[s[2].toLowerCase()],a,l)||(n=!1)}}),n}function JC(t,e,r){return r===`min`?t>=e:r===`max`?t<=e:t===e}function eE(t,e){return t.join(`,`)===e.join(`,`)}var n_=jC;var $t=w;var Lo=N;var a_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Vp(t){var e=t&&t.itemStyle;if(e)for(var r=0,i=a_.length;r<i;r++){var n=a_[r],a=e.normal,o=e.emphasis;a&&a[n]&&(t[n]=t[n]||{},t[n].normal?pe(t[n].normal,a[n]):t[n].normal=a[n],a[n]=null),o&&o[n]&&(t[n]=t[n]||{},t[n].emphasis?pe(t[n].emphasis,o[n]):t[n].emphasis=o[n],o[n]=null)}}function tt(t,e,r){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var i=t[e].normal,n=t[e].emphasis;i&&(r?(t[e].normal=t[e].emphasis=null,re(t[e],i)):t[e]=i),n&&(t.emphasis=t.emphasis||{},t.emphasis[e]=n,n.focus&&(t.emphasis.focus=n.focus),n.blurScope&&(t.emphasis.blurScope=n.blurScope))}}function Ro(t){tt(t,`itemStyle`),tt(t,`lineStyle`),tt(t,`areaStyle`),tt(t,`label`),tt(t,`labelLine`),tt(t,`upperLabel`),tt(t,`edgeLabel`)}function Ne(t,e){var r=Lo(t)&&t[e],i=Lo(r)&&r.textStyle;if(i)for(var n=0,a=nc.length;n<a;n++){var o=nc[n];i.hasOwnProperty(o)&&(r[o]=i[o])}}function Ht(t){t&&(Ro(t),Ne(t,`label`),t.emphasis&&Ne(t.emphasis,`label`))}function tE(t){if(Lo(t)){Vp(t),Ro(t),Ne(t,`label`),Ne(t,`upperLabel`),Ne(t,`edgeLabel`),t.emphasis&&(Ne(t.emphasis,`label`),Ne(t.emphasis,`upperLabel`),Ne(t.emphasis,`edgeLabel`));var e=t.markPoint;e&&(Vp(e),Ht(e));var r=t.markLine;r&&(Vp(r),Ht(r));var i=t.markArea;i&&Ht(i);var n=t.data;if(t.type===`graph`){n=n||t.nodes;var a=t.links||t.edges;if(a&&!De(a))for(var o=0;o<a.length;o++)Ht(a[o]);w(t.categories,function(u){Ro(u)})}if(n&&!De(n))for(var o=0;o<n.length;o++)Ht(n[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ht(s[o]);if(r=t.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)L(l[o])?(Ht(l[o][0]),Ht(l[o][1])):Ht(l[o]);t.type===`gauge`?(Ne(t,`axisLabel`),Ne(t,`title`),Ne(t,`detail`)):t.type===`treemap`?(tt(t.breadcrumb,`itemStyle`),w(t.levels,function(u){Ro(u)})):t.type===`tree`&&Ro(t.leaves)}}function Rr(t){return L(t)?t:t?[t]:[]}function o_(t){return(L(t)?t[0]:t)||{}}function Hp(t,e){$t(Rr(t.series),function(i){Lo(i)&&tE(i)});var r=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];e&&r.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),$t(r,function(i){$t(Rr(t[i]),function(n){n&&(Ne(n,`axisLabel`),Ne(n.axisPointer,`label`))})}),$t(Rr(t.parallel),function(i){var n=i&&i.parallelAxisDefault;Ne(n,`axisLabel`),Ne(n&&n.axisPointer,`label`)}),$t(Rr(t.calendar),function(i){tt(i,`itemStyle`),Ne(i,`dayLabel`),Ne(i,`monthLabel`),Ne(i,`yearLabel`)}),$t(Rr(t.radar),function(i){Ne(i,`name`),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),$t(Rr(t.geo),function(i){Lo(i)&&(Ht(i),$t(Rr(i.regions),function(n){Ht(n)}))}),$t(Rr(t.timeline),function(i){Ht(i),tt(i,`label`),tt(i,`itemStyle`),tt(i,`controlStyle`,!0);var n=i.data;L(n)&&w(n,function(a){N(a)&&(tt(a,`label`),tt(a,`itemStyle`))})}),$t(Rr(t.toolbox),function(i){tt(i,`iconStyle`),$t(i.feature,function(n){tt(n,`iconStyle`)})}),Ne(o_(t.axisPointer),`label`),Ne(o_(t.tooltip).axisPointer,`label`)}function rE(t,e){for(var r=e.split(`,`),i=t,n=0;n<r.length&&(i=i&&i[r[n]],i!=null);n++);return i}function iE(t,e,r,i){for(var n=e.split(`,`),a=t,o,s=0;s<n.length-1;s++)o=n[s],a[o]??(a[o]={}),a=a[o];(i||a[n[s]]==null)&&(a[n[s]]=r)}function s_(t){t&&w(nE,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var nE=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]];var aE=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`];var Gp=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Po(t){var e=t&&t.itemStyle;if(e)for(var r=0;r<Gp.length;r++){var i=Gp[r][1],n=Gp[r][0];e[i]!=null&&(e[n]=e[i])}}function l_(t){t&&t.alignTo===`edge`&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function u_(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function oE(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus??(t.emphasis.focus=`adjacency`))}function f_(t,e){if(t)for(var r=0;r<t.length;r++)e(t[r]),t[r]&&f_(t[r].children,e)}function nu(t,e){Hp(t,e),t.series=Se(t.series),w(t.series,function(r){if(N(r)){var i=r.type;if(i===`line`)r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(i===`pie`||i===`gauge`){r.clockWise!=null&&(r.clockwise=r.clockWise),l_(r.label);var n=r.data;if(n&&!De(n))for(var a=0;a<n.length;a++)l_(n[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(i===`gauge`){var o=rE(r,`pointer.color`);o!=null&&iE(r,`itemStyle.color`,o)}else if(i===`bar`){Po(r),Po(r.backgroundStyle),Po(r.emphasis);var n=r.data;if(n&&!De(n))for(var a=0;a<n.length;a++)typeof n[a]==`object`&&(Po(n[a]),Po(n[a]&&n[a].emphasis))}else if(i===`sunburst`){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),u_(r),f_(r.data,u_)}else i===`graph`||i===`sankey`?oE(r):i===`map`&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&re(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),s_(r)}}),t.dataRange&&(t.visualMap=t.dataRange),w(aE,function(r){var i=t[r];i&&(L(i)||(i=[i]),w(i,function(n){s_(n)}))})}var c_=zn(sE);function sE(t){var e=z();t.eachSeries(function(r){var i=r.get(`stack`);if(i){var n=e.get(i)||e.set(i,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo(`stackResultDimension`),stackedOverDimension:a.getCalculationInfo(`stackedOverDimension`),stackedDimension:a.getCalculationInfo(`stackedDimension`),stackedByDimension:a.getCalculationInfo(`stackedByDimension`),isStackedByIndex:a.getCalculationInfo(`isStackedByIndex`),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(r){if(r.length!==0)(r[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&r.reverse(),w(r,function(a,o){a.data.setCalculationInfo(`stackedOnSeries`,o>0?r[o-1].seriesModel:null)}),lE(r)})}function lE(t){w(t,function(e,r){var i=[],n=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(u,f,c){var p=o.get(e.stackedDimension,c);if(isNaN(p))return n;var h,v;s?v=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var g=NaN,d=r-1;d>=0;d--){var m=t[d];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,h)),v>=0){var y=m.data.getByRawIndex(m.stackResultDimension,v);if(l===`all`||l===`positive`&&y>0||l===`negative`&&y<0||l===`samesign`&&p>=0&&y>0||l===`samesign`&&p<=0&&y<0){p=rm(p,y),g=y;break}}}return i[0]=p,i[1]=g,i})})}var au=(function(){function t(e){this.data=e.data||(e.sourceFormat===Dt?{}:[]),this.sourceFormat=e.sourceFormat||Ic,this.seriesLayoutBy=e.seriesLayoutBy||ct,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var r=this.dimensionsDefine=e.dimensionsDefine;if(r)for(var i=0;i<r.length;i++){var n=r[i];n.type==null&&tu(this,i)===pt.Must&&(n.type=`ordinal`)}}return t})();function oa(t){return t instanceof au}function No(t,e,r){r=r||Yp(t);var i=e.seriesLayoutBy,n=uE(t,r,i,e.sourceHeader,e.dimensions);return new au({data:t,sourceFormat:r,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:G(e)})}function sa(t){return new au({data:t,sourceFormat:De(t)?Mt:Ye})}function v_(t){return new au({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:G(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Yp(t){var e=Ic;if(De(t))e=Mt;else if(L(t)){t.length===0&&(e=Fe);for(var r=0,i=t.length;r<i;r++){var n=t[r];if(n!=null){if(L(n)||De(n)){e=Fe;break}else if(N(n)){e=ft;break}}}}else if(N(t)){for(var a in t)if(Ue(t,a)&&ke(t[a])){e=Dt;break}}return e}function uE(t,e,r,i,n){var a,o;if(!t)return{dimensionsDefine:p_(n),startIndex:o,dimensionsDetectedCount:a};if(e===Fe){var s=t;i===`auto`||i==null?h_(function(u){u!=null&&u!==`-`&&(P(u)?o??=1:o=0)},r,s,10):o=ae(i)?i:i?1:0,!n&&o===1&&(n=[],h_(function(u,f){n[f]=u!=null?u+``:``},r,s,Infinity)),a=n?n.length:r===pr?s.length:s[0]?s[0].length:null}else if(e===ft)n||(n=fE(t));else if(e===Dt)n||(n=[],w(t,function(u,f){n.push(f)}));else if(e===Ye){var l=Er(t[0]);a=L(l)&&l.length||1}return{startIndex:o,dimensionsDefine:p_(n),dimensionsDetectedCount:a}}function fE(t){for(var e=0,r;e<t.length&&!(r=t[e++]););if(r)return ie(r)}function p_(t){if(t){var e=z();return U(t,function(r,i){r=N(r)?r:{name:r};var n={name:r.name,displayName:r.displayName,type:r.type};if(n.name==null)return n;n.name+=``,n.displayName??=n.name;var a=e.get(n.name);return a?n.name+=`-`+a.count++:e.set(n.name,{count:1}),n})}}function h_(t,e,r,i){if(e===pr)for(var n=0;n<r.length&&n<i;n++)t(r[n]?r[n][0]:null,n);else for(var a=r[0]||[],n=0;n<a.length&&n<i;n++)t(a[n],n)}function ou(t){var e=t.sourceFormat;return e===ft||e===Dt}var rn;var nn;var an;var on;var d_;var m_;var lu=(function(){function t(e,r){var i=oa(e)?e:sa(e);this._source=i;var n=this._data=i.data,a=i.sourceFormat;i.seriesLayoutBy;if(a===Mt&&(this._offset=0,this._dimSize=r,this._data=n),0);m_(this,n,i)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,r){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=(function(){var e=t.prototype;e.pure=!1,e.persistent=!0})(),t.internalField=(function(){var e;m_=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,h=d_[Zp(u,f)];if(R(o,h),u===Mt)o.getItem=r,o.count=n,o.fillStorage=i;else{o.getItem=oe(Xp(u,f),null,s,c,p);o.count=oe(qp(u,f),null,s,c,p)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},i=function(o,s,l,u){for(var f=this._data,c=this._dimSize,p=0;p<c;p++){for(var h=u[p],v=h[0]==null?Infinity:h[0],g=h[1]==null?-Infinity:h[1],d=s-o,m=l[p],y=0;y<d;y++){var _=f[y*c+p];m[o+y]=_,_<v&&(v=_),_>g&&(g=_)}h[0]=v,h[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};d_=(e={},e[Fe+`_`+ct]={pure:!0,appendData:a},e[Fe+`_`+pr]={pure:!0,appendData:function(){throw new Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[ft]={pure:!0,appendData:a},e[Dt]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},e[Ye]={appendData:a},e[Mt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),t})();var su=function(t){L(t)||rc(`series.data or dataset.source must be an array.`)};rn={},rn[Fe+`_`+ct]=su,rn[Fe+`_`+pr]=su,rn[ft]=su,rn[Dt]=function(t,e){for(var r=0;r<e.length;r++)e[r].name??rc(`dimension name must not be null/undefined.`)},rn[Ye]=su;var g_=function(t,e,r,i){return t[i]};var cE=(nn={},nn[Fe+`_`+ct]=function(t,e,r,i){return t[i+e]},nn[Fe+`_`+pr]=function(t,e,r,i,n){i+=e;for(var a=n||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},nn[ft]=g_,nn[Dt]=function(t,e,r,i,n){for(var a=n||[],o=0;o<r.length;o++){var s=r[o].name,l=s!=null?t[s]:null;a[o]=l?l[i]:null}return a},nn[Ye]=g_,nn);function Xp(t,e){return cE[Zp(t,e)]}var y_=function(t,e,r){return t.length};var pE=(an={},an[Fe+`_`+ct]=function(t,e,r){return Math.max(0,t.length-e)},an[Fe+`_`+pr]=function(t,e,r){var i=t[0];return i?Math.max(0,i.length-e):0},an[ft]=y_,an[Dt]=function(t,e,r){var i=r[0].name,n=i!=null?t[i]:null;return n?n.length:0},an[Ye]=y_,an);function qp(t,e){return pE[Zp(t,e)]}var Wp=function(t,e,r){return t[e]};var hE=(on={},on[Fe]=Wp,on[ft]=function(t,e,r){return t[r]},on[Dt]=Wp,on[Ye]=function(t,e,r){var i=Er(t);return i instanceof Array?i[e]:i},on[Mt]=Wp,on);function Kp(t){return hE[t]}function Zp(t,e){return t===Fe?t+`_`+e:t}function la(t,e,r){if(t){var i=t.getRawDataItem(e);if(i!=null){var n=t.getStore(),a=n.getSource().sourceFormat;if(r!=null){var o=t.getDimensionIndex(r),s=n.getDimensionProperty(o);return Kp(a)(i,o,s)}else{var l=i;return a===Ye&&(l=Er(i)),l}}}}var vE=/\{@(.+?)\}/g;var __=(function(){function t(){}return t.prototype.getDataParams=function(e,r){var i=this.getData(r),n=this.getRawValue(e,r),a=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,`style`),u=l&&l[i.getItemVisual(e,`drawType`)||`fill`],f=l&&l.stroke,c=this.mainType,p=c===`series`,h=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:n,color:u,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:[`seriesName`,`name`,`value`]}},t.prototype.getFormattedLabel=function(e,r,i,n,a,o){r=r||`normal`;var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),n!=null&&L(l.value)&&(l.value=l.value[n]),!a)a=s.getItemModel(e).get(r===`normal`?[`label`,`formatter`]:[r,`label`,`formatter`]);if(V(a))return l.status=r,l.dimensionIndex=n,a(l);if(P(a))return ta(a,l).replace(vE,function(c,p){var h=p.length,v=p;v.charAt(0)===`[`&&v.charAt(h-1)===`]`&&(v=+v.slice(1,h-1));var g=la(s,e,v);if(o&&L(o.interpolatedValue)){var d=s.getDimensionIndex(v);d>=0&&(g=o.interpolatedValue[d])}return g!=null?g+``:``})},t.prototype.getRawValue=function(e,r){return la(this.getData(r),e)},t.prototype.formatTooltip=function(e,r,i){},t})();function jp(t){var e,r;return N(t)?t.type&&(r=t):e=t,{text:e,frag:r}}function oi(t){return new dE(t)}var dE=(function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var r=this._upstream,i=e&&e.skip;if(this._dirty&&r){var n=this.context;n.data=n.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a=`reset`);function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||a===`reset`)&&(this._dirty=!1,c=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=e&&e.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var h=this._dueIndex,v=Math.min(p!=null?this._dueIndex+p:Infinity,this._dueEnd);if(!i&&(c||h<v)){var g=this._progress;if(L(g))for(var d=0;d<g.length;d++)this._doProgress(g[d],h,v,l,u);else this._doProgress(g,h,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,r,i,n,a){x_.reset(r,i,n,a),this._callingProgress=e,this._callingProgress({start:r,end:i,count:i-r,next:x_.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,i;!e&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(i=r.forceFirstProgress,r=r.progress),L(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t})();var x_=(function(){var t,e,r,i,n,a={reset:function(l,u,f,c){e=l,t=u,r=f,i=c,n=Math.ceil(i/r),a.next=r>1&&i>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var l=e%n*r+Math.ceil(e/n),u=e>=t?null:l<i?l:e;return e++,u}})();function ua(t,e){var r=e&&e.type;return r===`ordinal`?t:(r===`time`&&!ae(t)&&t!=null&&t!==`-`&&(t=+bt(t)),t==null||t===``?NaN:Number(t))}z({number:function(t){return parseFloat(t)},time:function(t){return+bt(t)},trim:function(t){return P(t)?je(t):t}});var mE={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}};(function(){function t(e,r){if(!ae(r))Xe(``);this._opFn=mE[e],this._rvalFloat=Bt(r)}return t.prototype.evaluate=function(e){return ae(e)?this._opFn(e,this._rvalFloat):this._opFn(Bt(e),this._rvalFloat)},t})();var S_=(function(){function t(e,r){var i=e===`desc`;this._resultLT=i?1:-1,r??=i?`min`:`max`,this._incomparable=r===`min`?-Infinity:Infinity}return t.prototype.evaluate=function(e,r){var i=ae(e)?e:Bt(e),n=ae(r)?r:Bt(r),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=P(e),l=P(r);s&&(i=l?e:0),l&&(n=s?r:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t})();(function(){function t(e,r){this._rval=r,this._isEQ=e,this._rvalTypeof=typeof r,this._rvalFloat=Bt(r)}return t.prototype.evaluate=function(e){var r=e===this._rval;if(!r){var i=typeof e;i!==this._rvalTypeof&&(i===`number`||this._rvalTypeof===`number`)&&(r=Bt(e)===this._rvalFloat)}return this._isEQ?r:!r},t})();function T_(t){var e=``,r=-Infinity,i=-Infinity,n=Infinity,a=Infinity;return t&&(t.g!=null&&(e+=`G`+t.g,r=t.g),t.ge!=null&&(e+=`GE`+t.ge,i=t.ge),t.l!=null&&(e+=`L`+t.l,n=t.l),t.le!=null&&(e+=`LE`+t.le,a=t.le)),{key:e,g:r,ge:i,l:n,le:a}}function w_(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var gE=(function(){function t(){}return t.prototype.getRawData=function(){throw new Error(`not supported`)},t.prototype.getRawDataItem=function(e){throw new Error(`not supported`)},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,r){},t.prototype.retrieveValueFromItem=function(e,r){},t.prototype.convertValue=function(e,r){return ua(e,r)},t})();function yE(t,e){var r=new gE,i=t.data,n=r.sourceFormat=t.sourceFormat,a=t.startIndex;t.seriesLayoutBy!==ct&&Xe(``);var s=[],l={},u=t.dimensionsDefine;if(u)w(u,function(g,d){var m=g.name,y={index:d,name:m,displayName:g.displayName};if(s.push(y),m!=null)Ue(l,m)&&Xe(``),l[m]=y});else for(var f=0;f<t.dimensionsDetectedCount;f++)s.push({index:f});var c=Xp(n,ct);e.__isBuiltIn&&(r.getRawDataItem=function(g){return c(i,a,s,g)},r.getRawData=oe(_E,null,t)),r.cloneRawData=oe(xE,null,t);r.count=oe(qp(n,ct),null,i,a,s);var h=Kp(n);r.retrieveValue=function(g,d){return v(c(i,a,s,g),d)};var v=r.retrieveValueFromItem=function(g,d){if(g!=null){var m=s[d];if(m)return h(g,d,m.name)}};return r.getDimensionInfo=oe(SE,null,s,l),r.cloneAllDimensionInfo=oe(TE,null,s),r}function _E(t){var e=t.sourceFormat;if(!Qp(e))Xe(``);return t.data}function xE(t){var e=t.sourceFormat,r=t.data;if(!Qp(e))Xe(``);if(e===Fe){for(var n=[],a=0,o=r.length;a<o;a++)n.push(r[a].slice());return n}else if(e===ft){for(var n=[],a=0,o=r.length;a<o;a++)n.push(R({},r[a]));return n}}function SE(t,e,r){if(r!=null){if(ae(r)||!isNaN(r)&&!Ue(e,r))return t[r];if(Ue(e,r))return e[r]}}function TE(t){return G(t)}var b_=z();function C_(t){t=G(t);var e=t.type,r=``;e||Xe(r);var i=e.split(`:`);i.length!==2&&Xe(r);var n=!1;i[0]===`echarts`&&(e=i[1],n=!0),t.__isBuiltIn=n,b_.set(e,t)}function E_(t,e,r){var i=Se(t),n=i.length;n||Xe(``);for(var o=0,s=n;o<s;o++){var l=i[o];e=wE(l,e,r,n===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function wE(t,e,r,i){var n=``;e.length||Xe(n),N(t)||Xe(n);var a=t.type,o=b_.get(a);o||Xe(n);var s=U(e,function(f){return yE(f,o)});return U(Se(o.transform({upstream:s[0],upstreamList:s,config:G(t.config)})),function(f,c){var p=``;N(f)||Xe(p),f.data||Xe(p);Qp(Yp(f.data))||Xe(p);var v,g=e[0];if(g&&c===0&&!f.dimensions){var d=g.startIndex;d&&(f.data=g.data.slice(0,d).concat(f.data)),v={seriesLayoutBy:ct,sourceHeader:d,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:ct,sourceHeader:0,dimensions:f.dimensions};return No(f.data,v,null)})}function Qp(t){return t===Fe||t===ft}var bE=typeof Uint32Array===so?Array:Uint32Array;var CE=typeof Uint16Array===so?Array:Uint16Array;var Jp=typeof Int32Array===so?Array:Int32Array;var D_=typeof Float64Array===so?Array:Float64Array;var A_={float:D_,int:Jp,ordinal:Array,number:Array,time:D_};var $p;function fa(t){return t>65535?bE:CE}function EE(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function M_(t,e,r,i,n){var a=A_[r||`float`];if(n){var o=t[e],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(i)}var ko=(function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=z()}return t.prototype.initData=function(e,r,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=e.getSource(),a=this.defaultDimValueGetter=$p[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[];ou(n);this._dimensions=U(r,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,r){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(e);if(a!=null){if(n[a].type===r)return a}else a=n.length;return n[a]={type:r},i.set(e,a),this._chunks[a]=new A_[r||`float`](this._rawCount),this._rawExtent[a]=Et(),a},t.prototype.collectOrdinalMeta=function(e,r){var i=this._chunks[e],n=this._dimensions[e],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[e]=Et());for(var l=a[e],u=o;u<s;u++){var f=i[u]=r.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=r,n.ordinalOffset=s,n.type=`ordinal`},t.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},t.prototype.getDimensionProperty=function(e){var r=this._dimensions[e];return r&&r.property},t.prototype.appendData=function(e){var r=this._provider,i=this.count();r.appendData(e);var n=r.count();return r.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(e,r){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,r||0),u=0;u<a;u++){var f=n[u];M_(i,u,f.type,l,!0)}for(var c=[],p=s;p<l;p++)for(var h=p-s,v=0;v<a;v++){var f=n[v],g=$p.arrayRows.call(this,e[h]||c,f.property,h,v);i[v][p]=g;var d=o[v];g<d[0]&&(d[0]=g),g>d[1]&&(d[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,r,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Et()),M_(a,f,c.type,r,i)}if(n.fillStorage)n.fillStorage(e,r,a,l);else for(var p=[],h=e;h<r;h++){p=n.getItem(h,p);for(var v=0;v<s;v++){var g=a[v],d=this._dimValueGetter(p,u[v],h,v);g[h]=d;var m=l[v];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=r,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,r){if(!(r>=0&&r<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(r)]:NaN},t.prototype.getValues=function(e,r){var i=[],n=[];if(r==null){r=e,e=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=e;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],r));return i},t.prototype.getByRawIndex=function(e,r){if(!(r>=0&&r<this._rawCount))return NaN;var i=this._chunks[e];return i?i[r]:NaN},t.prototype.getSum=function(e){var r=this._chunks[e],i=0;if(r)for(var n=0,a=this.count();n<a;n++){var o=this.get(e,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(e){var r=[];this.each([e],function(n){isNaN(n)||r.push(n)}),Ws(r);var i=this.count();return i===0?0:i%2===1?r[(i-1)/2]:(r[i/2]+r[i/2-1])/2},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var r=this._indices,i=r[e];if(i!=null&&i<this._count&&i===e)return e;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(r[o]<e)n=o+1;else if(r[o]>e)a=o-1;else return o}return-1},t.prototype.getIndices=function(){var e,r=this._indices;if(r){var i=r.constructor,n=this._count;if(i===Array){e=new i(n);for(var a=0;a<n;a++)e[a]=r[a]}else e=new i(r.buffer,0,n)}else{var i=fa(this._rawCount);e=new i(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,r){if(!this._count)return this;for(var i=this.clone(),n=i.count(),o=new(fa(i._rawCount))(n),s=[],l=e.length,u=0,f=e[0],c=i._chunks,p=0;p<n;p++){var h=void 0,v=i.getRawIndex(p);if(l===0)h=r(p);else if(l===1){var g=c[f][v];h=r(g,p)}else{for(var d=0;d<l;d++)s[d]=c[e[d]][v];s[d]=p,h=r.apply(null,s)}h&&(o[u++]=v)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(e){var r=this.clone(),i=r._count;if(!i)return this;var n=ie(e),a=n.length;if(!a)return this;var o=r.count(),l=new(fa(r._rawCount))(o),u=0,f=n[0],c=e[f][0],p=e[f][1],h=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var d=h[n[0]],m=0;m<i;m++){var y=d[m];(y>=c&&y<=p||isNaN(y))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var d=h[n[0]],_=h[n[1]],x=e[n[1]][0],S=e[n[1]][1],m=0;m<i;m++){var y=d[m],T=_[m];(y>=c&&y<=p||isNaN(y))&&(T>=x&&T<=S||isNaN(T))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var m=0;m<o;m++){var C=r.getRawIndex(m),y=h[n[0]][C];(y>=c&&y<=p||isNaN(y))&&(l[u++]=C)}else for(var m=0;m<o;m++){for(var E=!0,C=r.getRawIndex(m),b=0;b<a;b++){var D=n[b],y=h[D][C];(y<e[D][0]||y>e[D][1])&&(E=!1)}E&&(l[u++]=r.getRawIndex(m))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.map=function(e,r){var i=this.clone(e);return this._updateDims(i,e,r),i},t.prototype.modify=function(e,r){this._updateDims(this,e,r)},t.prototype._updateDims=function(e,r,i){for(var n=e._chunks,a=[],o=r.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<r.length;f++)u[r[f]]=Et();for(var c=0;c<s;c++){for(var p=e.getRawIndex(c),h=0;h<o;h++)l[h]=n[r[h]][p];l[o]=c;var v=i&&i.apply(null,l);if(v!=null){typeof v!=`object`&&(a[0]=v,v=a);for(var f=0;f<v.length;f++){var g=r[f],d=v[f],m=u[g],y=n[g];y&&(y[p]=d),d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}}}},t.prototype.lttbDownSample=function(e,r){var i=this.clone([e],!0),a=i._chunks[e],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),f,c,p,h=new(fa(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),d=Math.min(v+l*2,o),m=(d+g)/2,y=0,_=g;_<d;_++){var x=this.getRawIndex(_),S=a[x];isNaN(S)||(y+=S)}y/=d-g;var T=v,C=Math.min(v+l,o),E=v-1,b=a[u];f=-1,p=T;for(var D=-1,A=0,_=T;_<C;_++){var x=this.getRawIndex(_),S=a[x];if(isNaN(S)){A++,D<0&&(D=x);continue}c=Math.abs((E-m)*(S-b)-(E-_)*(y-b)),c>f&&(f=c,p=x)}A>0&&A<C-T&&(h[s++]=Math.min(D,p),p=Math.max(D,p)),h[s++]=p,u=p}return h[s++]=this.getRawIndex(o-1),i._count=s,i._indices=h,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(e,r){for(var i=this.clone([e],!0),n=i._chunks,a=Math.floor(1/r),o=n[e],s=this.count(),l=new(fa(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var c=f,p=o[this.getRawIndex(c)],h=f,v=o[this.getRawIndex(h)],g=a;f+a>s&&(g=s-f);for(var d=0;d<g;d++){var y=o[this.getRawIndex(f+d)];y<p&&(p=y,c=f+d),y>v&&(v=y,h=f+d)}var _=this.getRawIndex(c),x=this.getRawIndex(h);c<h?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},t.prototype.downSample=function(e,r,i,n){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[e],f=this.count(),c=a._rawExtent[e]=Et(),p=new(fa(this._rawCount))(Math.ceil(f/l)),h=0,v=0;v<f;v+=l){l>f-v&&(l=f-v,s.length=l);for(var g=0;g<l;g++)s[g]=u[this.getRawIndex(v+g)];var m=i(s),y=this.getRawIndex(Math.min(v+n(s,m)||0,f-1));u[y]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),p[h++]=y}return a._count=h,a._indices=p,a._updateGetRawIdx(),a},t.prototype.each=function(e,r){if(this._count)for(var i=e.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:r(a);break;case 1:r(n[e[0]][s],a);break;case 2:r(n[e[0]][s],n[e[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[e[l]][s];u[l]=a,r.apply(null,u)}}},t.prototype.getDataExtent=function(e,r){var i=this._chunks[e],n=Et();if(!i)return n;var a=this.count();if(!this._indices&&!r)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=T_(r),f=u.key,c=l[f];if(c)return c.slice();for(var p=n[0],h=n[1],v=0;v<a;v++){var d=i[this.getRawIndex(v)];(!r||w_(u,d))&&(d<p&&(p=d),d>h&&(h=d))}return l[f]=[p,h]},t.prototype.getRawDataItem=function(e){var r=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(r);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][r]);return i},t.prototype.clone=function(e,r){var i=new t,n=this._chunks,a=e&&at(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?EE(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),r||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=G(this._extent),e._rawExtent=G(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,r=void 0;if(e===Array){var i=this._indices.length;r=new e(i);for(var n=0;n<i;n++)r[n]=this._indices[n]}else r=new e(this._indices);return r}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=(function(){function e(r,i,n,a){return ua(r[a],this._dimensions[a])}$p={arrayRows:e,objectRows:function(r,i,n,a){return ua(r[i],this._dimensions[a])},keyedColumns:e,original:function(r,i,n,a){var o=r&&(r.value==null?r:r.value);return ua(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,i,n,a){return r[a]}}})(),t})();var fu=(function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,r){this._sourceList=e,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length,n,a;if(uu(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=r[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get(`data`,!0),l=De(s)?Mt:Ye,a=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},h=H(c.seriesLayoutBy,p.seriesLayoutBy)||null,v=H(c.sourceHeader,p.sourceHeader),g=H(c.dimensions,p.dimensions);n=h!==p.seriesLayoutBy||!!v!=!!p.sourceHeader||g?[No(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},l)]:[]}else{var m=e;if(i){var y=this._applyTransform(r);n=y.sourceList,a=y.upstreamSignList}else n=[No(m.get(`source`,!0),this._getSourceMetaRawOption(),null)],a=[]}this._setLocalSource(n,a)},t.prototype._applyTransform=function(e){var r=this._sourceHost,i=r.get(`transform`,!0),n=r.get(`fromTransformResult`,!0);if(n!=null)e.length!==1&&O_(``);var o,s=[],l=[];return w(e,function(u){u.prepareSource();var f=u.getSource(n||0);n!=null&&!f&&O_(``),s.push(f),l.push(u._getVersionSign())}),i?o=E_(i,s,{datasetIndex:r.componentIndex}):n!=null&&(o=[v_(s[0])]),{sourceList:o,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),r=0;r<e.length;r++){var i=e[r];if(i._isDirty()||this._upstreamSignList[r]!==i._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var r=this._sourceList[e];if(!r){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return r},t.prototype.getSharedDataStore=function(e){var r=e.makeStoreSchema();return this._innerGetDataStore(r.dimensions,e.source,r.hash)},t.prototype._innerGetDataStore=function(e,r,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];uu(this._sourceHost)&&l?s=l._innerGetDataStore(e,r,i):(s=new ko,s.initData(new lu(r,e.length),e)),o[i]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(uu(e)){var r=zp(e);return r?[r.getSourceManager()]:[]}else return U(Ky(e),function(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,r,i,n;if(uu(e))r=e.get(`seriesLayoutBy`,!0),i=e.get(`sourceHeader`,!0),n=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var a=e;r=a.get(`seriesLayoutBy`,!0),i=a.get(`sourceHeader`,!0),n=a.get(`dimensions`,!0)}return{seriesLayoutBy:r,sourceHeader:i,dimensions:n}},t})();function eh(t){t.option.transform&&di(t.option.transform)}function uu(t){return t.mainType===`series`}function O_(t){throw new Error(t)}var ME=`line-height:1`;function I_(t){var e=t.lineHeight;return e==null?ME:`line-height:`+He(e+``)+`px`}function R_(t,e){var r=t.color||Te.color.tertiary,i=t.fontSize||12,n=t.fontWeight||`400`,a=t.color||Te.color.secondary,o=t.fontSize||14,s=t.fontWeight||`900`;return e===`html`?{nameStyle:`font-size:`+He(i+``)+`px;color:`+He(r)+`;font-weight:`+He(n+``),valueStyle:`font-size:`+He(o+``)+`px;color:`+He(a)+`;font-weight:`+He(s+``)}:{nameStyle:{fontSize:i,fill:r,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var AE=[0,10,20,30];var OE=[``,`
10
- `,`
11
-
12
- `,`
13
-
14
-
15
- `];function sn(t,e){return e.type=t,e}function th(t){return t.type===`section`}function L_(t){return th(t)?IE:RE}function P_(t){if(th(t)){var e=0,r=t.blocks.length,i=r>1||r>0&&!t.noHeader;return w(t.blocks,function(n){var a=P_(n);a>=e&&(e=a+ +(i&&(!a||th(n)&&!n.noHeader)))}),e}return 0}function IE(t,e,r,i){var n=e.noHeader,a=LE(P_(e)),o=[],s=e.blocks||[];Be(!s||L(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:`asc`,valueDesc:`desc`};if(Ue(u,l)){var f=new S_(u[l],null);s.sort(function(g,d){return f.evaluate(g.sortParam,d.sortParam)})}else l===`seriesDesc`&&s.reverse()}w(s,function(g,d){var m=e.valueFormatter,y=L_(g)(m?R(R({},t),{valueFormatter:m}):t,g,d>0?a.html:0,i);y!=null&&o.push(y)});var c=t.renderMode===`richText`?o.join(a.richText):rh(i,o.join(``),n?r:a.html);if(n)return c;var p=Kl(e.header,`ordinal`,t.useUTC),h=R_(i,t.renderMode).nameStyle,v=I_(i);return t.renderMode===`richText`?N_(t,p,h)+a.richText+c:rh(i,`<div style="`+h+`;`+v+`;">`+He(p)+`</div>`+c,r)}function RE(t,e,r,i){var n=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(x){return x=L(x)?x:[x],U(x,function(S,T){return Kl(S,L(h)?h[T]:h,u)})};if(!(a&&o)){var c=s?``:t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Te.color.secondary,n),p=a?``:Kl(l,`ordinal`,u),h=e.valueType,v=o?[]:f(e.value,e.rawDataIndex),g=!s||!a,d=!s&&a,m=R_(i,n),y=m.nameStyle,_=m.valueStyle;return n===`richText`?(s?``:c)+(a?``:N_(t,p,y))+(o?``:kE(t,v,g,d,_)):rh(i,(s?``:c)+(a?``:PE(p,!s,y))+(o?``:NE(v,g,d,_)),r)}}function ih(t,e,r,i,n,a){if(t)return L_(t)({useUTC:n,renderMode:r,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,a)}function LE(t){return{html:AE[t],richText:OE[t]}}function rh(t,e,r){var i=`<div style="clear:both"></div>`,n=`margin: `+r+`px 0 0`,a=I_(t);return`<div style="`+n+`;`+a+`;">`+e+i+`</div>`}function PE(t,e,r){var i=e?`margin-left:2px`:``;return`<span style="`+r+`;`+i+`">`+He(t)+`</span>`}function NE(t,e,r,i){var a=e?`float:right;margin-left:`+(r?`10px`:`20px`):``;return t=L(t)?t:[t],`<span style="`+a+`;`+i+`">`+U(t,function(o){return He(o)}).join(`&nbsp;&nbsp;`)+`</span>`}function N_(t,e,r){return t.markupStyleCreator.wrapRichTextStyle(e,r)}function kE(t,e,r,i,n){var a=[n],o=i?10:20;return r&&a.push({padding:[0,0,0,o],align:`right`}),t.markupStyleCreator.wrapRichTextStyle(L(e)?e.join(` `):e,a)}function k_(t,e){var i=t.getData().getItemVisual(e,`style`)[t.visualDrawType];return ni(i)}function cu(t,e){return t.get(`padding`)??(e===`richText`?[8,10]:10)}var pu=(function(){function t(){this.richTextStyles={},this._nextStyleNameId=Ja()}return t.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,r,i){var n=i===`richText`?this._generateStyleName():null,a=Zl({color:r,type:e,renderMode:i,markerId:n});return P(a)?a:(this.richTextStyles[n]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,r){var i={};L(r)?w(r,function(a){return R(i,a)}):R(i,r);var n=this._generateStyleName();return this.richTextStyles[n]=i,`{`+n+`|`+e+`}`},t})();function B_(t){var e=t.series,r=t.dataIndex,i=t.multipleSeries,n=e.getData(),a=n.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=e.getRawValue(r),l=L(s),u=k_(e,r),f,c,p,h;if(o>1||l&&!o){var v=BE(s,e,r,a,u);f=v.inlineValues,c=v.inlineValueTypes,p=v.blocks,h=v.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);h=f=la(n,r,a[0]),c=g.type}else h=f=l?s[0]:s;var d=qs(e),m=d&&e.name||``,y=n.getName(r),_=i?m:y;return sn(`section`,{header:m,noHeader:i||!d,sortParam:h,blocks:[sn(`nameValue`,{markerType:`item`,markerColor:u,name:_,noName:!je(_),value:f,valueType:c,rawDataIndex:n.getRawIndex(r)})].concat(p||[])})}function BE(t,e,r,i,n){var a=e.getData(),o=at(t,function(c,p,h){var v=a.getDimensionInfo(h);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];i.length?w(i,function(c){f(la(a,r,c),c)}):w(t,f);function f(c,p){var h=a.getDimensionInfo(p);!h||h.otherDims.tooltip===!1||(o?u.push(sn(`nameValue`,{markerType:`subItem`,markerColor:n,name:h.displayName,value:c,valueType:h.type})):(s.push(c),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var si=K();function hu(t,e){return t.getName(e)||t.getId(e)}var UE=`__universalTransitionEnabled`;var vu=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return e.prototype.init=function(r,i,n){this.seriesIndex=this.componentIndex,this.dataTask=oi({count:FE,reset:VE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,n);(si(this).sourceManager=new fu(this)).prepareSource();var o=this.getInitialData(r,n);z_(o,this),this.dataTask.context.data=o,si(this).dataBeforeProcessed=o,U_(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(r,i){var n=ra(this),a=n?Jl(r):{},o=this.subType;_e.hasClass(o)&&(o+=`Series`),pe(r,i.getTheme().get(this.subType)),pe(r,this.getDefaultOption()),ic(r,`label`,[`show`]),this.fillDataTextStyle(r.data),n&&ia(r,a,n)},e.prototype.mergeOption=function(r,i){r=pe(this.option,r,!0),this.fillDataTextStyle(r.data);var n=ra(this);n&&ia(this.option,r,n);var a=si(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,i);z_(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,si(this).dataBeforeProcessed=o,U_(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(r){if(r&&!De(r))for(var i=[`show`],n=0;n<r.length;n++)r[n]&&r[n].label&&ic(r[n],`label`,i)},e.prototype.getInitialData=function(r,i){},e.prototype.appendData=function(r){this.getRawData().appendData(r.data)},e.prototype.getData=function(r){var i=nh(this);if(i){var n=i.context.data;return r==null||!n.getLinkedData?n:n.getLinkedData(r)}else return si(this).data},e.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},e.prototype.setData=function(r){var i=nh(this);if(i){var n=i.context;n.outputData=r,i!==this.dataTask&&(n.data=r)}si(this).data=r},e.prototype.getEncode=function(){var r=this.get(`encode`,!0);if(r)return z(r)},e.prototype.getSourceManager=function(){return si(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return si(this).dataBeforeProcessed},e.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},e.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},e.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},e.prototype.indicesOfNearest=function(r,i,n,a){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(r);if(!s||!l)return[];var u=l.dataToCoord(n);a??=Infinity;for(var f=[],c=Infinity,p=-1,h=0,v=o.getDimensionIndex(i),g=o.getStore(),d=0,m=g.count();d<m;d++){var y=g.get(v,d),x=u-l.dataToCoord(y),S=Math.abs(x);S<=a&&((S<c||S===c&&x>=0&&p<0)&&(c=S,p=x,h=0),x===p&&(f[h++]=d))}return f.length=h,f},e.prototype.formatTooltip=function(r,i,n){return B_({series:this,dataIndex:r,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(q.node&&!(r&&r.ssr))return!1;var i=this.getShallow(`animation`);return i&&this.getData().count()>this.getShallow(`animationThreshold`)&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(r,i,n){var a=this.ecModel,o=Oo.prototype.getColorFromPalette.call(this,r,i,n);return o||(o=a.getColorFromPalette(r,i,n)),o},e.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},e.prototype.getProgressive=function(){return this.get(`progressive`)},e.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},e.prototype.select=function(r,i){this._innerSelect(this.getData(i),r)},e.prototype.unselect=function(r,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=hu(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(r,i){for(var n=[],a=0;a<r.length;a++)n[0]=r[a],this.isSelected(r[a],i)?this.unselect(n,i):this.select(n,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,i=ie(r),n=[],a=0;a<i.length;a++){var o=r[i[a]];o>=0&&n.push(o)}return n},e.prototype.isSelected=function(r,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n===`all`||n[hu(a,r)])&&!a.getItemModel(r).get([`select`,`disabled`])},e.prototype.isUniversalTransitionEnabled=function(){if(this[UE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},e.prototype._innerSelect=function(r,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s===`series`)o.selectedMap=`all`;else if(s===`multiple`){N(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=i[f],p=hu(r,c);u[p]=!0,this._selectedDataIndicesMap[p]=r.getRawIndex(c)}}else if(s===`single`||s===!0){var h=i[l-1],p=hu(r,h);o.selectedMap=(n={},n[p]=!0,n),this._selectedDataIndicesMap=(a={},a[p]=r.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var i=[];r.hasItemOption&&r.each(function(n){var a=r.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(r,i)}},e.registerClass=function(r){return _e.registerClass(r)},e.protoInitialize=(function(){var r=e.prototype;r.type=`series.__base__`,r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol=`circle`,r.visualStyleAccessPath=`itemStyle`,r.visualDrawType=`fill`})(),e})(_e);nt(vu,__);nt(vu,Oo);Zs(vu,_e);function U_(t){var e=t.name;qs(t)||(t.name=zE(t)||e)}function zE(t){var e=t.getRawData(),r=e.mapDimensionsAll(`seriesName`),i=[];return w(r,function(n){var a=e.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(` `)}function FE(t){return t.model.getRawData().count()}function VE(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),HE}function HE(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function z_(t,e){w(Rv(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(r){t.wrapMethod(r,Ee(GE,e))})}function GE(t,e){var r=nh(t);return r&&r.setOutputEnd((e||this).count()),e}function nh(t){var e=(t.ecModel||{}).scheduler,r=e&&e.getPipeline(t.uid);if(r){var i=r.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(t.uid))}return i}}var Lr=vu;var ah=(function(){function t(){this.group=new We,this.uid=ri(`viewComponent`)}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){},t.prototype.updateLayout=function(e,r,i,n){},t.prototype.updateVisual=function(e,r,i,n){},t.prototype.toggleBlurSeries=function(e,r,i){},t.prototype.eachRendered=function(e){var r=this.group;r&&r.traverse(e)},t})();Vn(ah);Zr(ah);var It=ah;function oh(){var t=K();return function(e){var r=t(e),i=e.pipelineContext,n=!!r.large,a=!!r.progressiveRender,o=r.large=!!(i&&i.large),s=r.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&`reset`}}var H_=K();var YE=oh();var sh=(function(){function t(){this.group=new We,this.uid=ri(`viewChart`),this.renderTask=oi({plan:WE,reset:XE}),this.renderTask.context={view:this}}return t.prototype.init=function(e,r){},t.prototype.render=function(e,r,i,n){},t.prototype.highlight=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&V_(a,n,`emphasis`)},t.prototype.downplay=function(e,r,i,n){var a=e.getData(n&&n.dataType);a&&V_(a,n,`normal`)},t.prototype.remove=function(e,r){this.group.removeAll()},t.prototype.dispose=function(e,r){},t.prototype.updateView=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.updateVisual=function(e,r,i,n){this.render(e,r,i,n)},t.prototype.eachRendered=function(e){hp(this.group,e)},t.markUpdateMethod=function(e,r){H_(e).updateMethod=r},t.protoInitialize=(function(){var e=t.prototype;e.type=`chart`})(),t})();function F_(t,e,r){t&&vo(t)&&(e===`emphasis`?po:ho)(t,r)}function V_(t,e,r){var i=Dr(t,e),n=e&&e.highlightKey!=null?Lg(e.highlightKey):null;i!=null?w(Se(i),function(a){F_(t.getItemGraphicEl(a),r,n)}):t.eachItemGraphicEl(function(a){F_(a,r,n)})}Vn(sh,[`dispose`]);Zr(sh);function WE(t){return YE(t.model)}function XE(t){var e=t.model,r=t.ecModel,i=t.api,n=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=n&&H_(n).updateMethod,l=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return l!==`render`&&o[l](e,r,i,n),qE[l]}var qE={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}};var dr=sh;var du=`\0__throttleOriginMethod`;var G_=`\0__throttleRate`;var Y_=`\0__throttleType`;function lh(t,e,r){var i,n=0,a=0,o=null,s,l,u,f;e=e||0;function c(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var p=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];i=new Date().getTime(),l=this,u=h;var g=f||e,d=f||r;f=null,s=i-(d?n:a)-g,clearTimeout(o),d?o=setTimeout(c,g):s>=0?c():o=setTimeout(c,-s),n=i};return p.clear=function(){o&&(clearTimeout(o),o=null)},p.debounceNextCall=function(h){f=h},p}function mu(t,e,r,i){var n=t[e];if(n){var a=n[du]||n,o=n[Y_];if(n[G_]!==r||o!==i){if(r==null||!i)return t[e]=a;n=t[e]=lh(a,r,i===`debounce`),n[du]=a,n[Y_]=i,n[G_]=r}return n}}function Bo(t,e){var r=t[e];r&&r[du]&&(r.clear&&r.clear(),t[e]=r[du])}var W_=K();var X_={itemStyle:ar(xp,!0),lineStyle:ar(_p,!0)};var ZE={lineStyle:`stroke`,itemStyle:`fill`};function q_(t,e){return t.visualStyleMapper||X_[e]||(console.warn(`Unknown style type '`+e+`'.`),X_.itemStyle)}function K_(t,e){return t.visualDrawType||ZE[e]||(console.warn(`Unknown style type '`+e+`'.`),`fill`)}var Z_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData(),i=t.visualStyleAccessPath||`itemStyle`,n=t.getModel(i),o=q_(t,i)(n),s=n.getShallow(`decal`);s&&(r.setVisual(`decal`,s),s.dirty=!0);var l=K_(t,i),u=o[l],f=V(u)?u:null,c=o.fill===`auto`||o.stroke===`auto`;if(!o[l]||f||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=p,r.setVisual(`colorFromPalette`,!0)),o.fill=o.fill===`auto`||V(o.fill)?p:o.fill,o.stroke=o.stroke===`auto`||V(o.stroke)?p:o.stroke}if(r.setVisual(`style`,o),r.setVisual(`drawType`,l),!e.isSeriesFiltered(t)&&f)return r.setVisual(`colorFromPalette`,!1),{dataEach:function(h,v){var g=t.getDataParams(v),d=R({},o);d[l]=f(g),h.setItemVisual(v,`style`,d)}}}};var Uo=new ye;var j_={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var r=t.getData(),i=t.visualStyleAccessPath||`itemStyle`,n=q_(t,i),a=r.getVisual(`drawType`);return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Uo.option=l[i];var u=n(Uo);R(o.ensureUniqueItemVisual(s,`style`),u),Uo.option.decal&&(o.setItemVisual(s,`decal`,Uo.option.decal),Uo.option.decal.dirty=!0),a in u&&o.setItemVisual(s,`colorFromPalette`,!1)}}:null}}}};var Q_={performRawSeries:!0,overallReset:function(t){var e=z();t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.type+`-`+r.getColorBy();W_(r).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(r){if(!r.isColorBySeries()){var i=r.getRawData(),n={},a=r.getData(),o=W_(r).scope,l=K_(r,r.visualStyleAccessPath||`itemStyle`);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u];if(a.getItemVisual(f,`colorFromPalette`)){var p=a.ensureUniqueItemVisual(f,`style`),h=i.getName(u)||u+``,v=i.count();p[l]=r.getColorFromPalette(h,o,v)}})}})}};var gu=Math.PI;function uh(t,e){e=e||{},re(e,{text:`loading`,textColor:Te.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Te.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var r=new We,i=new Pe({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});r.add(i);var n=new $e({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Pe({style:{fill:`none`},textContent:n,textConfig:{position:`right`,distance:10},zlevel:e.zlevel,z:10001});r.add(a);var o;return e.showSpinner&&(o=new Wi({shape:{startAngle:-gu/2,endAngle:-gu/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:gu*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:gu*3/2}).delay(300).start(`circularInOut`),r.add(o)),r.resize=function(){var s=n.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=t.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},r.resize(),r}var jE=(function(){function t(e,r,i,n){this._stageTaskMap=z(),this.ecInstance=e,this.api=r,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return t.prototype.restoreData=function(e,r){e.restoreData(r),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},t.prototype.getPerformArgs=function(e,r){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),n=i.context,o=!r&&i.progressiveEnabled&&(!n||n.progressiveRender)&&e.__idxInPipeline>i.blockIndex?i.step:null,s=n&&n.modDataCount;return{step:o,modBy:s!=null?Math.ceil(s/o):null,modDataCount:s}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,r){var i=this._pipelineMap.get(e.uid);e.pipelineContext=i.context=e.__preparePipelineContext?e.__preparePipelineContext(r,i):wm(e,r,i)},t.prototype.restorePipelines=function(e,r){var i=this,n=i._pipelineMap=z();r.eachSeries(function(a){var o=e.painter.type===`canvas`&&a.getProgressive(),s=a.uid;n.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,r=this.api.getModel(),i=this.api;w(this._allHandlers,function(n){var a=e.get(n.uid)||e.set(n.uid,{});Be(!(n.reset&&n.overallReset),``),n.reset&&this._createSeriesStageTask(n,a,r,i),n.overallReset&&this._createOverallStageTask(n,a,r,i)},this)},t.prototype.prepareView=function(e,r,i,n){var a=e.renderTask,o=a.context;o.model=r,o.ecModel=i,o.api=n,a.__block=!e.incrementalPrepareRender,this._pipe(r,a)},t.prototype.performDataProcessorTasks=function(e,r){this._performStageTasks(this._dataProcessorHandlers,e,r,{block:!0})},t.prototype.performVisualTasks=function(e,r,i){this._performStageTasks(this._visualHandlers,e,r,i)},t.prototype._performStageTasks=function(e,r,i,n){n=n||{};var a=!1,o=this;w(e,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,p=f.overallTask;if(p){var h,v=p.agentStubMap;v.each(function(d){s(n,d)&&(d.dirty(),h=!0)}),h&&p.dirty(),o.updatePayload(p,i);var g=o.getPerformArgs(p,n.block);v.each(function(d){d.perform(g)}),p.perform(g)&&(a=!0)}else c&&c.each(function(d,m){s(n,d)&&d.dirty();var y=o.getPerformArgs(d,n.block);y.skip=!l.performRawSeries&&r.isSeriesFiltered(d.context.model),o.updatePayload(d,i),d.perform(y)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},t.prototype.performSeriesTasks=function(e){var r;e.eachSeries(function(i){r=i.dataTask.perform()||r}),this.unfinished=r||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var r=e.tail;do{if(r.__block){e.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},t.prototype.updatePayload=function(e,r){r!==`remain`&&(e.context.payload=r)},t.prototype._createSeriesStageTask=function(e,r,i,n){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=z(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(c){var p=c.uid,h=s.set(p,o&&o.get(p)||oi({plan:tD,reset:rD,count:nD}));h.context={model:c,ecModel:i,api:n,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(c,h)}},t.prototype._createOverallStageTask=function(e,r,i,n){var a=this,o=r.overallTask=r.overallTask||oi({reset:QE});o.context={ecModel:i,api:n,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=z(),u=e.seriesType,f=e.getTargetSeries,c=e.dirtyOnOverallProgress,p=!1;Be(!e.createOnAllSeries,``),u?i.eachRawSeriesByType(u,v):f?f(i,n).each(v):w(i.getSeries(),v);function v(g){var d=g.uid,m=l.set(d,s&&s.get(d)||(p=!0,oi({reset:$E,onDirty:eD})));m.context={model:g,dirtyOnOverallProgress:c},m.agent=o,m.__block=c,a._pipe(g,m)}p&&o.dirty()},t.prototype._pipe=function(e,r){var i=e.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=r),n.tail&&n.tail.pipe(r),n.tail=r,r.__idxInPipeline=n.count++,r.__pipeline=n},t.wrapStageHandler=function(e,r){return V(e)&&(e={overallReset:e,seriesType:aD(e)}),e.uid=ri(`stageHandler`),r&&(e.visualType=r),e},t})();function QE(t){t.overallReset(t.ecModel,t.api,t.payload)}function $E(t){return t.dirtyOnOverallProgress&&JE}function JE(){this.agent.dirty(),this.getDownstream().dirty()}function eD(){this.agent&&this.agent.dirty()}function tD(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function rD(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Se(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?U(e,function(r,i){return $_(i)}):iD}var iD=$_(0);function $_(t){return function(e,r){var i=r.data,n=r.resetDefines[t];if(n&&n.dataEach)for(var a=e.start;a<e.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(e,i)}}function nD(t){return t.data.count()}function aD(t){yu=null;try{t(zo,J_)}catch{}return yu}var zo={};var J_={};var yu;e0(zo,iu);e0(J_,nl);zo.eachSeriesByType=zo.eachRawSeriesByType=function(t){yu=t};zo.eachComponent=function(t){t.mainType===`series`&&t.subType&&(yu=t.subType)};function e0(t,e){for(var r in e.prototype)t[r]=we}var fh=jE;var k=Te.darkColor;var t0=k.background;var Fo=function(){return{axisLine:{lineStyle:{color:k.axisLine}},splitLine:{lineStyle:{color:k.axisSplitLine}},splitArea:{areaStyle:{color:[k.backgroundTint,k.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:k.axisMinorSplitLine}},axisLabel:{color:k.axisLabel},axisName:{}}};var r0={label:{color:k.secondary},itemStyle:{borderColor:k.borderTint},dividerLineStyle:{color:k.border}};var i0={darkMode:!0,color:k.theme,backgroundColor:t0,axisPointer:{lineStyle:{color:k.border},crossStyle:{color:k.borderShade},label:{color:k.tertiary}},legend:{textStyle:{color:k.secondary},pageTextStyle:{color:k.tertiary}},textStyle:{color:k.secondary},title:{textStyle:{color:k.primary},subtextStyle:{color:k.quaternary}},toolbox:{iconStyle:{borderColor:k.accent50},feature:{dataView:{backgroundColor:t0,textColor:k.primary,textareaColor:k.background,textareaBorderColor:k.border,buttonColor:k.accent50,buttonTextColor:k.neutral00}}},tooltip:{backgroundColor:k.neutral20,defaultBorderColor:k.border,textStyle:{color:k.tertiary}},dataZoom:{borderColor:k.accent10,textStyle:{color:k.tertiary},brushStyle:{color:k.backgroundTint},handleStyle:{color:k.neutral00,borderColor:k.accent20},moveHandleStyle:{color:k.accent40},emphasis:{handleStyle:{borderColor:k.accent50}},dataBackground:{lineStyle:{color:k.accent30},areaStyle:{color:k.accent20}},selectedDataBackground:{lineStyle:{color:k.accent50},areaStyle:{color:k.accent30}}},visualMap:{textStyle:{color:k.secondary},handleStyle:{borderColor:k.neutral30}},timeline:{lineStyle:{color:k.accent10},label:{color:k.tertiary},controlStyle:{color:k.accent30,borderColor:k.accent30}},calendar:{itemStyle:{color:k.neutral00,borderColor:k.neutral20},dayLabel:{color:k.tertiary},monthLabel:{color:k.secondary},yearLabel:{color:k.secondary}},matrix:{x:r0,y:r0,backgroundColor:{borderColor:k.axisLine},body:{itemStyle:{borderColor:k.borderTint}}},timeAxis:Fo(),logAxis:Fo(),valueAxis:Fo(),categoryAxis:Fo(),line:{symbol:`circle`},graph:{color:k.theme},gauge:{title:{color:k.secondary},axisLine:{lineStyle:{color:[[1,k.neutral05]]}},axisLabel:{color:k.axisLabel},detail:{color:k.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:k.background}},radar:(function(){var t=Fo();return t.axisName={color:k.axisLabel},t.axisLine.lineStyle.color=k.neutral20,t})(),treemap:{breadcrumb:{itemStyle:{color:k.neutral20,textStyle:{color:k.secondary}},emphasis:{itemStyle:{color:k.neutral30}}}},sunburst:{itemStyle:{borderColor:k.background}},map:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},label:{color:k.tertiary},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}}},geo:{itemStyle:{borderColor:k.border,areaColor:k.neutral10},emphasis:{label:{color:k.primary},itemStyle:{areaColor:k.highlight}},select:{label:{color:k.primary},itemStyle:{color:k.highlight}}}};i0.categoryAxis.splitLine.show=!1;var n0=i0;var a0=(function(){function t(){}return t.prototype.normalizeQuery=function(e){var r={},i={},n={};if(P(e)){var a=yt(e);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=[`Index`,`Name`,`Id`],s={name:1,dataIndex:1,dataType:1};w(e,function(l,u){for(var f=!1,c=0;c<o.length;c++){var p=o[c],h=u.lastIndexOf(p);if(h>0&&h===u.length-p.length){var v=u.slice(0,h);v!==`data`&&(r.mainType=v,r[p.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:r,dataQuery:i,otherQuery:n}},t.prototype.filter=function(e,r){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return f(l,o,`mainType`)&&f(l,o,`subType`)&&f(l,o,`index`,`componentIndex`)&&f(l,o,`name`)&&f(l,o,`id`)&&f(u,a,`name`)&&f(u,a,`dataIndex`)&&f(u,a,`dataType`)&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,r.otherQuery,n,a));function f(c,p,h,v){return c[h]==null||p[v||h]===c[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t})();var ch=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`];var o0=ch.concat([`symbolKeepAspect`]);var s0={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var r=t.getData();if(t.legendIcon&&r.setVisual(`legendIcon`,t.legendIcon),!t.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<ch.length;o++){var s=ch[o],l=t.get(s);V(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||t.defaultSymbol,r.setVisual(R({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get(`symbolKeepAspect`)},i)),e.isSeriesFiltered(t))return;var u=ie(n);function f(c,p){for(var h=t.getRawValue(p),v=t.getDataParams(p),g=0;g<u.length;g++){var d=u[g];c.setItemVisual(p,d,n[d](h,v))}}return{dataEach:a?f:null}}};var l0={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var r=t.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<o0.length;s++){var l=o0[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?i:null}}};function u0(t,e,r){switch(r){case`color`:return t.getItemVisual(e,`style`)[t.getVisual(`drawType`)];case`opacity`:return t.getItemVisual(e,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return t.getItemVisual(e,r);default:}}function f0(t,e){switch(e){case`color`:return t.getVisual(`style`)[t.getVisual(`drawType`)];case`opacity`:return t.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return t.getVisual(e);default:}}function ca(t,e,r,i,n){var a=t+e;r.isSilent(a)||i.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 c=o.getData(),p=Dr(c,n.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:L(p)?c.getName(p[0]):c.getName(p),selected:P(l)?l:R({},l)})}})}function c0(t,e,r){t.on(`selectchanged`,function(i){var n=r.getModel();i.isFromClick?(ca(`map`,`selectchanged`,e,n,i),ca(`pie`,`selectchanged`,e,n,i)):i.fromAction===`select`?(ca(`map`,`selected`,e,n,i),ca(`pie`,`selected`,e,n,i)):i.fromAction===`unselect`&&(ca(`map`,`unselected`,e,n,i),ca(`pie`,`unselected`,e,n,i))})}function ln(t,e,r){for(var i;t&&!(e(t)&&(i=t,r));)t=t.__hostTarget||t.parent;return i}var Rt=new Qe;var p0={};function h0(t,e){p0[t]=e}function v0(t){return p0[t]}var sD={};function d0(t,e){sD[t]=e}var ph=K();function m0(t){ph(t).prepare={}}function g0(t){ph(t).fullUpdate={}}function _u(t){return ph(t).fullUpdate}var lD=Math.round(Math.random()*9);var uD=typeof Object.defineProperty==`function`;var y0=(function(){function t(){this._id=`__ec_inner_`+lD++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,r){var i=this._guard(e);return uD?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},t})();var cD=J.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i+a),t.lineTo(r-n,i+a),t.closePath()}});var dD={line:vr,rect:Pe,roundRect:Pe,square:Pe,circle:Gi,diamond:J.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var r=e.cx,i=e.cy,n=e.width/2,a=e.height/2;t.moveTo(r,i-a),t.lineTo(r+n,i),t.lineTo(r,i+a),t.lineTo(r-n,i),t.closePath()}}),pin:J.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.x,i=e.y,n=e.width/5*3,a=Math.max(n,e.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),p=Math.cos(u),h=o*.6,v=o*.7;t.moveTo(r-f,l+s),t.arc(r,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(r+f-c*h,l+s+p*h,r,i-v,r,i),t.bezierCurveTo(r,i-v,r-f+c*h,l+s+p*h,r-f,l+s),t.closePath()}}),arrow:J.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var r=e.height,i=e.width,n=e.x,a=e.y,o=i/3*2;t.moveTo(n,a),t.lineTo(n+o,a+r),t.lineTo(n,a+r/4*3),t.lineTo(n-o,a+r),t.lineTo(n,a),t.closePath()}}),triangle:cD};var mD={line:function(t,e,r,i,n){n.x1=t,n.y1=e+i/2,n.x2=t+r,n.y2=e+i/2},rect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i},roundRect:function(t,e,r,i,n){n.x=t,n.y=e,n.width=r,n.height=i,n.r=Math.min(r,i)/4},square:function(t,e,r,i,n){var a=Math.min(r,i);n.x=t,n.y=e,n.width=a,n.height=a},circle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.r=Math.min(r,i)/2},diamond:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i},pin:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},arrow:function(t,e,r,i,n){n.x=t+r/2,n.y=e+i/2,n.width=r,n.height=i},triangle:function(t,e,r,i,n){n.cx=t+r/2,n.cy=e+i/2,n.width=r,n.height=i}};var hh={};w(dD,function(t,e){hh[e]=new t});var gD=J.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,r){var i=zs(t,e,r),n=this.shape;return n&&n.symbolType===`pin`&&e.position===`inside`&&(i.y=r.y+r.height*.4),i},buildPath:function(t,e,r){var i=e.symbolType;if(i!==`none`){var n=hh[i];n||(i=`rect`,n=hh[i]),mD[i](e.x,e.y,e.width,e.height,n.shape),n.buildPath(t,n.shape,r)}}});function yD(t,e){if(this.type!==`image`){var r=this.style;this.__isEmptyBrush?(r.stroke=t,r.fill=e||Te.color.neutral00,r.lineWidth=2):this.shape.symbolType===`line`?r.stroke=t:r.fill=t,this.markRedraw()}}function pa(t,e,r,i,n,a,o){var s=t.indexOf(`empty`)===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf(`image://`)===0?l=Eo(t.slice(8),new X(e,r,i,n),o?`center`:`cover`):t.indexOf(`path://`)===0?l=Zn(t.slice(7),{},new X(e,r,i,n),o?`center`:`cover`):l=new gD({shape:{symbolType:t,x:e,y:r,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=yD,a&&l.setColor(a),l}function _0(t,e){if(t!=null)return L(t)||(t=[t,t]),[lt(t[0],e[0])||0,lt(H(t[1],t[0]),e[1])||0]}function un(t){return isFinite(t)}function _D(t,e,r){var i=e.x==null?0:e.x,n=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=un(i)?i:0,n=un(n)?n:1,a=un(a)?a:0,o=un(o)?o:0;return t.createLinearGradient(i,a,n,o)}function xD(t,e,r){var i=r.width,n=r.height,a=Math.min(i,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*i+r.x,s=s*n+r.y,l=l*a),o=un(o)?o:.5,s=un(s)?s:.5,l=l>=0&&un(l)?l:.5;return t.createRadialGradient(o,s,0,o,s,l)}function Vo(t,e,r){for(var i=e.type===`radial`?xD(t,e,r):_D(t,e,r),n=e.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function x0(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var r=0;r<t.length;r++)if(t[r]!==e[r])return!0;return!1}function xu(t){return parseInt(t,10)}function Ho(t,e,r){var i=[`width`,`height`][e],n=[`clientWidth`,`clientHeight`][e],a=[`paddingLeft`,`paddingTop`][e],o=[`paddingRight`,`paddingBottom`][e];if(r[i]!=null&&r[i]!==`auto`)return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(t);return(t[n]||xu(s[i])||xu(t.style[i]))-(xu(s[a])||0)-(xu(s[o])||0)||0}function SD(t,e){return!t||t===`solid`||!(e>0)?null:t===`dashed`?[4*e,2*e]:t===`dotted`?[e]:ae(t)?[t]:L(t)?t:null}function vh(t){var e=t.style,r=e.lineDash&&e.lineWidth>0&&SD(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(r){var n=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;n&&n!==1&&(r=U(r,function(a){return a/n}),i/=n)}return[r,i]}var TD=new Zt(!0);function Su(t){var e=t.stroke;return!(e==null||e===`none`||!(t.lineWidth>0))}function S0(t){return typeof t==`string`&&t!==`none`}function Tu(t){var e=t.fill;return e!=null&&e!==`none`}function T0(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=r}else t.fill()}function w0(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var r=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=r}else t.stroke()}function wu(t,e,r){var i=fc(e.image,e.__image,r);if(Hn(i)){var n=t.createPattern(i,e.repeat||`repeat`);if(typeof DOMMatrix==`function`&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Lv),a.scaleSelf(e.scaleX||1,e.scaleY||1),n.setTransform(a)}return n}}function wD(t,e,r,i,n){var a,o=Su(r),s=Tu(r),l=r.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var c=e.path||TD,p=e.__dirty;if(!i){var h=r.fill,v=r.stroke,g=s&&!!h.colorStops,d=o&&!!v.colorStops,m=s&&!!h.image,y=o&&!!v.image,_=void 0,x=void 0,S=void 0,T=void 0,C=void 0;(g||d)&&(C=e.getBoundingRect()),g&&(_=p?Vo(t,h,C):e.__canvasFillGradient,e.__canvasFillGradient=_),d&&(x=p?Vo(t,v,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),m&&(S=p||!e.__canvasFillPattern?wu(t,h,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(T=p||!e.__canvasStrokePattern?wu(t,v,e):e.__canvasStrokePattern,e.__canvasStrokePattern=T),g?t.fillStyle=_:m&&(S?t.fillStyle=S:s=!1),d?t.strokeStyle=x:y&&(T?t.strokeStyle=T:o=!1)}var E=e.getGlobalScale();c.setScale(E[0],E[1],e.segmentIgnoreThreshold);var b,D;t.setLineDash&&r.lineDash&&(a=vh(e),b=a[0],D=a[1]);var A=!0;(f||p&Yr)&&(c.setDPR(t.dpr),u?c.setContext(null):(c.setContext(t),A=!1),c.reset(),e.buildPath(c,e.shape,i),c.toStatic(),e.pathUpdated()),A&&c.rebuildPath(t,u?l:1),b&&(t.setLineDash(b),t.lineDashOffset=D),i?(n.batchFill=s,n.batchStroke=o):r.strokeFirst?(o&&w0(t,r),s&&T0(t,r)):(s&&T0(t,r),o&&w0(t,r)),b&&t.setLineDash([])}function bD(t,e,r){var i=e.__image=fc(r.image,e.__image,e,e.onload);if(!(!i||!Hn(i))){var n=r.x||0,a=r.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var u=r.sx||0,f=r.sy||0;t.drawImage(i,u,f,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,f=r.sy,c=o-u,p=s-f;t.drawImage(i,u,f,c,p,n,a,o,s)}else t.drawImage(i,n,a,o,s)}}function CD(t,e,r){var i,n=r.text;if(n!=null&&(n+=``),n){t.font=r.font||Pt,t.textAlign=r.textAlign,t.textBaseline=r.textBaseline;var a=void 0,o=void 0;t.setLineDash&&r.lineDash&&(i=vh(e),a=i[0],o=i[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),r.strokeFirst?(Su(r)&&t.strokeText(n,r.x,r.y),Tu(r)&&t.fillText(n,r.x,r.y)):(Tu(r)&&t.fillText(n,r.x,r.y),Su(r)&&t.strokeText(n,r.x,r.y)),a&&t.setLineDash([])}}var b0=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];var C0=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function I0(t,e,r,i,n){var a=!1;if(!i&&(r=r||{},e===r))return!1;if(i||e.opacity!==r.opacity){ht(t,n),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?or.opacity:o}(i||e.blend!==r.blend)&&(a||(ht(t,n),a=!0),t.globalCompositeOperation=e.blend||or.blend);for(var s=0;s<b0.length;s++){var l=b0[s];(i||e[l]!==r[l])&&(a||(ht(t,n),a=!0),t[l]=t.dpr*(e[l]||0))}return(i||e.shadowColor!==r.shadowColor)&&(a||(ht(t,n),a=!0),t.shadowColor=e.shadowColor||or.shadowColor),a}function E0(t,e,r,i,n){var a=e.style,o=i?null:r&&r.style||{};if(a===o)return!1;var s=I0(t,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(ht(t,n),s=!0),S0(a.fill)&&(t.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(ht(t,n),s=!0),S0(a.stroke)&&(t.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(ht(t,n),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var u=a.lineWidth/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(ht(t,n),s=!0),t.lineWidth=u)}for(var f=0;f<C0.length;f++){var c=C0[f],p=c[0];(i||a[p]!==o[p])&&(s||(ht(t,n),s=!0),t[p]=a[p]||c[1])}return s}function ED(t,e,r,i,n){return I0(t,e.style,r&&r.style,i,n)}function R0(t,e){var r=e.transform,i=t.dpr||1;r?t.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):t.setTransform(i,0,0,i,0,0)}function DD(t,e,r){for(var i=!1,n=0;n<t.length;n++){var a=t[n];i=i||a.isZeroArea(),R0(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}r.allClipped=i}function MD(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var D0=1;var M0=2;var A0=3;var O0=4;function AD(t){var e=Tu(t),r=Su(t);return!(t.lineDash||!(+e^+r)||e&&typeof t.fill!=`string`||r&&typeof t.stroke!=`string`||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function ht(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function bu(t,e){var r={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};li(t,e,r),fn(t,r)}function li(t,e,r){var i=e.transform;if(!e.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){e.__dirty&=~Re,e.__isRendered=!1;return}var n=e.__clipPaths,a=r.prevElClipPaths,o=e.style,s=!1,l=!1;if((!a||x0(n,a))&&(a&&(ht(t,r),t.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),n&&n.length&&(ht(t,r),t.save(),DD(n,t,r),s=!0,r.prevElClipPaths=n)),r.allClipped){e.__dirty&=~Re,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(r.beforeBrushParam),e.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var f=e instanceof J&&e.autoBatch&&AD(o);s||MD(i,u.transform)?(ht(t,r),R0(t,e)):f||ht(t,r),e instanceof J?(r.lastDrawType!==D0&&(l=!0,r.lastDrawType=D0),E0(t,e,u,l,r),(!f||!r.batchFill&&!r.batchStroke)&&t.beginPath(),wD(t,e,o,f,r)):e instanceof oo?(r.lastDrawType!==A0&&(l=!0,r.lastDrawType=A0),E0(t,e,u,l,r),CD(t,e,o)):e instanceof Vt?(r.lastDrawType!==M0&&(l=!0,r.lastDrawType=M0),ED(t,e,u,l,r),bD(t,e,o)):e.getTemporalDisplayables&&(r.lastDrawType!==O0&&(l=!0,r.lastDrawType=O0),OD(t,e,r)),e.innerAfterBrush(),e.afterBrush&&(f&&ht(t,r),e.afterBrush()),r.prevEl=e,e.__dirty=0,e.__isRendered=!0}function fn(t,e){ht(t,e),e.prevElClipPaths&&t.restore()}function OD(t,e,r){var i=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),li(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}fn(t,a);for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(r.beforeBrushParam),l.innerBeforeBrush(),li(t,l,a),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}fn(t,a),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var dh=new y0;var L0=new rr(100);var P0=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function mh(t,e){if(t===`none`)return null;var r=e.getDevicePixelRatio(),i=e.getZr(),n=i.painter.type===`svg`;t.dirty&&dh.delete(t);var a=dh.get(t);if(a)return a;var o=re(t,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/r,dh.set(t,s),t.dirty=!1,s;function l(u){for(var f=[r],c=!0,p=0;p<P0.length;++p){var h=o[P0[p]];if(h!=null&&!L(h)&&!P(h)&&!ae(h)&&typeof h!=`boolean`){c=!1;break}f.push(h)}var v;if(c){v=f.join(`,`)+(n?`-svg`:``);var g=L0.get(v);g&&(n?u.svgElement=g:u.image=g)}var d=k0(o.dashArrayX),m=ID(o.dashArrayY),y=N0(o.symbol),_=RD(d),x=B0(m),S=!n&&Ie.createCanvas(),T=n&&{tag:`g`,attrs:{},key:`dcl`,children:[]},C=b(),E;S&&(S.width=C.width*r,S.height=C.height*r,E=S.getContext(`2d`)),D(),c&&L0.put(v,S||T),u.image=S,u.svgElement=T,u.svgWidth=C.width,u.svgHeight=C.height;function b(){for(var A=1,O=0,M=_.length;O<M;++O)A=tc(A,_[O]);for(var I=1,O=0,M=y.length;O<M;++O)I=tc(I,y[O].length);A*=I;var F=x*_.length*y.length;return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function D(){E&&(E.clearRect(0,0,S.width,S.height),o.backgroundColor&&(E.fillStyle=o.backgroundColor,E.fillRect(0,0,S.width,S.height)));for(var A=0,O=0;O<m.length;++O)A+=m[O];if(A<=0)return;for(var M=-x,I=0,F=0,B=0;M<C.height;){if(I%2===0){for(var Y=F/2%y.length,ne=0,te=0,Q=0;ne<C.width*2;){for(var ee=0,O=0;O<d[B].length;++O)ee+=d[B][O];if(ee<=0)break;if(te%2===0){var ue=(1-o.symbolSize)*.5,fe=ne+d[B][te]*ue,j=M+m[I]*ue,ve=d[B][te]*o.symbolSize,be=m[I]*o.symbolSize,xt=Q/2%y[Y].length;mr(fe,j,ve,be,y[Y][xt])}ne+=d[B][te],++Q,++te,te===d[B].length&&(te=0)}++B,B===d.length&&(B=0)}M+=m[I],++F,++I,I===m.length&&(I=0)}function mr(St,Ze,$,ce,vi){var it=n?1:r,Sv=pa(vi,St*it,Ze*it,$*it,ce*it,o.color,o.symbolKeepAspect);if(n){var Tv=i.painter.renderOneToVNode(Sv);Tv&&T.children.push(Tv)}else bu(E,Sv)}}}}function N0(t){if(!t||t.length===0)return[[`rect`]];if(P(t))return[[t]];for(var e=!0,r=0;r<t.length;++r)if(!P(t[r])){e=!1;break}if(e)return N0([t]);for(var i=[],r=0;r<t.length;++r)P(t[r])?i.push([t[r]]):i.push(t[r]);return i}function k0(t){if(!t||t.length===0)return[[0,0]];if(ae(t)){var e=Math.ceil(t);return[[e,e]]}for(var r=!0,i=0;i<t.length;++i)if(!ae(t[i])){r=!1;break}if(r)return k0([t]);for(var n=[],i=0;i<t.length;++i)if(ae(t[i])){var e=Math.ceil(t[i]);n.push([e,e])}else{var e=U(t[i],function(s){return Math.ceil(s)});e.length%2===1?n.push(e.concat(e)):n.push(e)}return n}function ID(t){if(!t||typeof t==`object`&&t.length===0)return[0,0];if(ae(t)){var e=Math.ceil(t);return[e,e]}var r=U(t,function(i){return Math.ceil(i)});return t.length%2?r.concat(r):r}function RD(t){return U(t,function(e){return B0(e)})}function B0(t){for(var e=0,r=0;r<t.length;++r)e+=t[r];return t.length%2===1?e*2:e}var U0=zn(LD);function LD(t,e){t.eachRawSeries(function(r){if(!t.isSeriesFiltered(r)){var i=r.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,`decal`);if(s){var l=i.ensureUniqueItemVisual(o,`style`);l.decal=mh(s,e)}});var n=i.getVisual(`decal`);if(n){var a=i.getVisual(`style`);a.decal=mh(n,e)}}})}var PD=1;var ND=800;var kD=900;var BD=920;var UD=1e3;var zD=2e3;var z0=5e3;var Z0=1e3;var FD=1100;var Mh=2e3;var j0=3e3;var VD=4e3;var Iu=4500;var HD=4600;var GD=5e3;var YD=6e3;var Q0=7e3;var $0={PROCESSOR:{SERIES_FILTER:ND,AXIS_STATISTICS:BD,FILTER:UD,STATISTIC:z0,STATISTICS:z0},VISUAL:{LAYOUT:Z0,PROGRESSIVE_LAYOUT:FD,GLOBAL:Mh,CHART:j0,POST_CHART_LAYOUT:HD,COMPONENT:VD,BRUSH:GD,CHART_ITEM:Iu,ARIA:YD,DECAL:Q0}};var Ve=`__flagInMainProcess`;var Cu=`__mainProcessVersion`;var Ke=`__pendingUpdate`;var gh=`__needsUpdateStatus`;var F0=/^[a-zA-Z0-9_]+$/;var yh=`__connectUpdateStatus`;var V0=0;var WD=1;var XD=2;function J0(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(this.isDisposed()){this.id;return}return tx(this,t,e)}}function ex(t){return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return tx(this,t,e)}}function tx(t,e,r){return r[0]=r[0]&&r[0].toLowerCase(),Qe.prototype[e].apply(t,r)}var rx=(function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(Qe);var ix=rx.prototype;ix.on=ex(`on`);ix.off=ex(`off`);var cn;var _h;var Eu;var Pr;var Du;var xh;var Sh;var ha;var va;var H0;var G0;var Th;var Y0;var Mu;var W0;var nx;var Gt;var X0;var da;var ax=(function(t){se(e,t);function e(r,i,n){var a=t.call(this,new a0)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},a.__v_skip=!0,a._dom=r;var o=`canvas`,s=`auto`,l=!1;if(a[Cu]=1,0);n.ssr;var f=a._zr=$f(r,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:H(n.useDirtyRect,l),useCoarsePointer:H(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=lh(oe(f.flush,f),17),a._updateTheme(i),a._locale=My(n.locale||kl),a._coordSysMgr=new Ao;var c=a._api=W0(a);function p(h,v){return h.__prio-v.__prio}return wi(Ou,p),wi(Ch,p),a._scheduler=new fh(a,c,Ch,Ou),a._messageCenter=new rx,a._initEvents(),a.resize=oe(a.resize,a),f.animation.on(`frame`,a._onframe,a),H0(f,a),G0(f,a),di(a),a}return e.prototype._onframe=function(){if(!this._disposed){var r=this._scheduler,i=this._model,n=this._api;if(X0(this),this[Ke]){var a=this[Ke].silent;this[Ve]=!0,da(this);try{cn(this),Pr.update.call(this,null,this[Ke].updateParams)}catch(l){throw this[Ve]=!1,this[Ke]=null,l}this._zr.flush(),this[Ve]=!1,this[Ke]=null,ha.call(this,a),va.call(this,a)}else if(r.unfinished){var o=PD;do{r.unfinished=!1;var s=Ie.getTime();r.performSeriesTasks(i),r.performDataProcessorTasks(i),xh(this,i),r.performVisualTasks(i),Mu(this,this._model,n,`remain`,{}),o-=Ie.getTime()-s}while(o>0&&r.unfinished);r.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(r,i,n){if(!this[Ve]){if(this._disposed){this.id;return}var a,o,s;if(N(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Ve]=!0,da(this),!this._model||i){var l=new n_(this._api),u=this._theme,f=this._model=new iu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},Eh);var c={seriesTransition:s,optionChanged:!0};if(n)this[Ke]={silent:a,updateParams:c},this[Ve]=!1,this.getZr().wakeUp();else{try{cn(this),Pr.update.call(this,null,c)}catch(p){throw this[Ke]=null,this[Ve]=!1,p}this._ssr||this._zr.flush(),this[Ke]=null,this[Ve]=!1,ha.call(this,a),va.call(this,a)}}},e.prototype.setTheme=function(r,i){if(!this[Ve]){if(this._disposed){this.id;return}var n=this._model;if(n){var a=i&&i.silent,o=null;this[Ke]&&(a??=this[Ke].silent,o=this[Ke].updateParams,this[Ke]=null),this[Ve]=!0,da(this);try{this._updateTheme(r),n.setTheme(this._theme),cn(this),Pr.update.call(this,{type:`setTheme`},o)}catch(s){throw this[Ve]=!1,s}this[Ve]=!1,ha.call(this,a),va.call(this,a)}}},e.prototype._updateTheme=function(r){P(r)&&(r=ox[r]),r&&(r=G(r),r&&nu(r,!0),this._theme=r)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||q.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},e.prototype.renderToCanvas=function(r){r=r||{};return this._zr.painter.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(r){r=r||{};return this._zr.painter.renderToString({useViewBox:r.useViewBox})},e.prototype.getSvgDataURL=function(){var r=this._zr;return w(r.storage.getDisplayList(),function(n){n.stopAnimation(null,!0)}),r.painter.toDataURL()},e.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var i=r.excludeComponents,n=this._model,a=[],o=this;w(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(r).toDataURL(`image/`+(r&&r.type||`png`));return w(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var i=r.type===`svg`,n=this.group,a=Math.min,o=Math.max,s=Infinity;if(q0[n]){var l=s,u=s,f=-s,c=-s,p=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();w(Go,function(_,x){if(_.group===n){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(G(r)),T=_.getDom().getBoundingClientRect();l=a(T.left,l),u=a(T.top,u),f=o(T.right,f),c=o(T.bottom,c),p.push({dom:S,left:T.left,top:T.top})}}),l*=h,u*=h,f*=h,c*=h;var v=f-l,g=c-u,d=Ie.createCanvas(),m=$f(d,{renderer:i?`svg`:`canvas`});if(m.resize({width:v,height:g}),i){var y=``;return w(p,function(_){var x=_.left-l,S=_.top-u;y+=`<g transform="translate(`+x+`,`+S+`)">`+_.dom+`</g>`}),m.painter.getSvgRoot().innerHTML=y,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Pe({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),w(p,function(_){var x=new Vt({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});m.add(x)}),m.refreshImmediately(),d.toDataURL(`image/`+(r&&r.type||`png`))}else return this.getDataURL(r)},e.prototype.convertToPixel=function(r,i,n){return Du(this,`convertToPixel`,r,i,n)},e.prototype.convertToLayout=function(r,i,n){return Du(this,`convertToLayout`,r,i,n)},e.prototype.convertFromPixel=function(r,i,n){return Du(this,`convertFromPixel`,r,i,n)},e.prototype.containPixel=function(r,i){if(this._disposed){this.id;return}var n=this._model,a;return w(Ks(n,r),function(s,l){l.indexOf(`Models`)>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l===`seriesModels`){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(a=a||c.containPoint(i,u))}},this)},this),!!a},e.prototype.getVisual=function(r,i){var n=this._model,a=Ks(n,r,{defaultMainType:`series`}),s=a.seriesModel.getData(),l=a.hasOwnProperty(`dataIndexInside`)?a.dataIndexInside:a.hasOwnProperty(`dataIndex`)?s.indexOfRawIndex(a.dataIndex):null;return l!=null?u0(s,l,i):f0(s,i)},e.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},e.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},e.prototype._initEvents=function(){var r=this;w(qD,function(n){var a=function(o){var s=r.getModel(),l=o.target,u;if(n===`globalout`?u={}:l&&ln(l,function(g){var d=ge(g);if(d&&d.dataIndex!=null){var m=d.dataModel||s.getSeriesByIndex(d.seriesIndex);return u=m&&m.getDataParams(d.dataIndex,d.dataType,l)||{},!0}else if(d.eventData)return u=R({},d.eventData),!0},!0),u){var c=u.componentType,p=u.componentIndex;(c===`markLine`||c===`markPoint`||c===`markArea`)&&(c=`series`,p=u.seriesIndex);var h=c&&p!=null&&s.getComponent(c,p),v=h&&r[h.mainType===`series`?`_chartsMap`:`_componentsMap`][h.__viewId];u.event=o,u.type=n,r._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:h,view:v},r.trigger(n,u)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)});var i=this._messageCenter;w(bh,function(n,a){i.on(a,function(o){r.trigger(a,o)})}),c0(i,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;this.getDom()&&ac(this.getDom(),Oh,``);var i=this,n=i._api,a=i._model;w(i._componentsViews,function(o){o.dispose(a,n)}),w(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Go[i.id]},e.prototype.resize=function(r){if(!this[Ve]){if(this._disposed){this.id;return}this._zr.resize(r);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption(`media`),a=r&&r.silent;this[Ke]&&(a??=this[Ke].silent,n=!0,this[Ke]=null),this[Ve]=!0,da(this);try{n&&cn(this),Pr.update.call(this,{type:`resize`,animation:R({duration:0},r&&r.animation)})}catch(o){throw this[Ve]=!1,o}this[Ve]=!1,ha.call(this,a),va.call(this,a)}}},e.prototype.showLoading=function(r,i){if(this._disposed){this.id;return}if(N(r)&&(i=r,r=``),r=r||`default`,this.hideLoading(),!!Dh[r]){var n=Dh[r](this._api,i),a=this._zr;this._loadingFX=n,a.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(r){var i=R({},r);return i.type=wh[r.type],i},e.prototype.dispatchAction=function(r,i){if(this._disposed){this.id;return}if(N(i)||(i={silent:!!i}),!!Au[r.type]&&this._model){if(this[Ve]){this._pendingActions.push(r);return}var n=i.silent;Sh.call(this,r,n);var a=i.flush;a?this._zr.flush():a!==!1&&q.browser.weChat&&this._throttledZrFlush(),ha.call(this,n),va.call(this,n)}},e.prototype.updateLabelLayout=function(){Rt.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(r){if(this._disposed){this.id;return}var i=r.seriesIndex;this.getModel().getSeriesByIndex(i).appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){cn=function(c){m0(c._model);var p=c._scheduler;p.restorePipelines(c._zr,c._model),p.prepareStageTasks(),_h(c,!0),_h(c,!1),p.plan()},_h=function(c,p){for(var h=c._model,v=c._scheduler,g=p?c._componentsViews:c._chartsViews,d=p?c._componentsMap:c._chartsMap,m=c._zr,y=c._api,_=0;_<g.length;_++)g[_].__alive=!1;p?h.eachComponent(function(T,C){T!==`series`&&x(C)}):h.eachSeries(x);function x(T){var C=T.__requireNewView;T.__requireNewView=!1;var E=`_ec_`+T.id+`_`+T.type,b=!C&&d[E];if(!b){var D=yt(T.type);b=new(p?It.getClass(D.main,D.sub):dr.getClass(D.sub)),b.init(h,y),d[E]=b,g.push(b),m.add(b.group)}T.__viewId=b.__id=E,b.__alive=!0,b.__model=T,b.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!p&&v.prepareView(b,T,h,y)}for(var _=0;_<g.length;){var S=g[_];S.__alive?_++:(!p&&S.renderTask.dispose(),m.remove(S.group),S.dispose(h,y),g.splice(_,1),d[S.__id]===S&&delete d[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Eu=function(c,p,h,v,g){var d=c._model;if(d.setUpdatePayload(h),!v){w([].concat(c._componentsViews).concat(c._chartsViews),x);return}var m=dm(h,v,g),y=h.excludeSeriesId,_;y!=null&&(_=z(),w(Se(y),function(S){var T=Ct(S,null);T!=null&&_.set(T,!0)})),d&&d.eachComponent(m,function(S){if(!(_&&_.get(S.id)!=null))if(Hc(h))if(S instanceof Lr)h.type===ei&&!h.notBlur&&!S.get([`emphasis`,`disabled`])&&Dg(S,h,c._api);else{var C=cl(S.mainType,S.componentIndex,h.name,c._api),E=C.focusSelf,b=C.dispatchers;h.type===ei&&E&&!h.notBlur&&al(S.mainType,S.componentIndex,c._api),b&&w(b,function(D){h.type===ei?po(D):ho(D)})}else pl(h)&&S instanceof Lr&&(Og(S,h,c._api),Fc(S),Gt(c))},c),d&&d.eachComponent(m,function(S){_&&_.get(S.id)!=null||x(c[v===`series`?`_chartsMap`:`_componentsMap`][S.__viewId])},c);function x(S){S&&S.__alive&&S[p]&&S[p](S.__model,d,c._api,h)}},Pr={prepareAndUpdate:function(c){cn(this),Pr.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,p){var h=this._model,v=this._api,g=this._zr,d=this._coordSysMgr,m=this._scheduler;if(h){g0(h),h.setUpdatePayload(c),m.restoreData(h,c),m.performSeriesTasks(h),d.create(h,v),Rt.trigger(`coordsys:aftercreate`,h,v),m.performDataProcessorTasks(h,c),xh(this,h),d.update(h,v),i(h),m.performVisualTasks(h,c);var y=h.get(`backgroundColor`)||`transparent`;g.setBackgroundColor(y);var _=h.get(`darkMode`);_!=null&&_!==`auto`&&g.setDarkMode(_),Th(this,h,v,c,p),Rt.trigger(`afterupdate`,h,v)}},updateTransform:function(c){var p=this,h=p._model,v=p._api;if(h){h.setUpdatePayload(c);var g=[];h.eachComponent(function(m,y){if(m!==rl){var _=p.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,h,v,c);x&&x.update&&g.push(_)}else g.push(_)}});var d=z();h.eachSeries(function(m){var y=p._chartsMap[m.__viewId],_=m.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(m,h,v,c);x&&x.update&&d.set(m.uid,1)}else d.set(m.uid,1)}),p._scheduler.performVisualTasks(h,c,{setDirty:!0,dirtyMap:d}),Mu(p,h,v,c,{},d),Rt.trigger(`afterupdate`,h,v)}},updateView:function(c){var p=this._model;p&&(p.setUpdatePayload(c),dr.markUpdateMethod(c,`updateView`),i(p),this._scheduler.performVisualTasks(p,c,{setDirty:!0}),Th(this,p,this._api,c,{}),Rt.trigger(`afterupdate`,p,this._api))},updateVisual:function(c){var p=this,h=this._model;h&&(h.setUpdatePayload(c),h.eachSeries(function(v){v.getData().clearAllVisual()}),dr.markUpdateMethod(c,`updateVisual`),i(h),this._scheduler.performVisualTasks(h,c,{visualType:`visual`,setDirty:!0}),h.eachComponent(function(v,g){if(v!==`series`){var d=p.getViewOfComponentModel(g);d&&d.__alive&&d.updateVisual(g,h,p._api,c)}}),h.eachSeries(function(v){p._chartsMap[v.__viewId].updateVisual(v,h,p._api,c)}),Rt.trigger(`afterupdate`,h,this._api))},updateLayout:function(c){Pr.update.call(this,c)}};function r(c,p,h,v,g){if(c._disposed){c.id;return}for(var d=c._model,m=c._coordSysMgr.getCoordinateSystems(),y,_=Ks(d,h),x=0;x<m.length;x++){var S=m[x];if(S[p]&&(y=S[p](d,_,v,g))!=null)return y}}Du=r,xh=function(c,p){var h=c._chartsMap,v=c._scheduler;p.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},Sh=function(c,p){var h=this,v=this.getModel(),g=c.type,d=c.escapeConnect,m=Au[g],y=(m.update||`update`).split(`:`),_=y.pop(),x=y[0]!=null&&yt(y[0]);this[Ve]=!0,da(this);var S=[c],T=!1;c.batch&&(T=!0,S=U(c.batch,function(B){return B=re(R({},B),c),B.batch=null,B}));var C=[],E,b=[],D=m.nonRefinedEventType,A=pl(c),O=Hc(c);if(O&&zc(this._api),w(S,function(B){var Y=m.action(B,v,h._api);if(m.refineEvent?b.push(Y):E=Y,E=E||R({},B),E.type=D,C.push(E),O){var ne=to(c),te=ne.queryOptionMap,ee=ne.mainTypeSpecified?te.keys()[0]:`series`;Eu(h,_,B,ee),Gt(h)}else A?(Eu(h,_,B,`series`),Gt(h)):x&&Eu(h,_,B,x.main,x.sub)}),_!==`none`&&!O&&!A&&!x)try{this[Ke]?(cn(this),Pr.update.call(this,c),this[Ke]=null):Pr[_].call(this,c)}catch(B){throw this[Ve]=!1,B}if(T?E={type:D,escapeConnect:d,batch:C}:E=C[0],this[Ve]=!1,!p){var M=void 0;if(m.refineEvent){var I=m.refineEvent(b,c,v,this._api).eventContent;Be(N(I)),M=re({type:m.refinedEventType},I),M.fromAction=c.type,M.fromActionPayload=c,M.escapeConnect=!0}var F=this._messageCenter;F.trigger(E.type,E),M&&F.trigger(M.type,M)}},ha=function(c){for(var p=this._pendingActions;p.length;){var h=p.shift();Sh.call(this,h,c)}},va=function(c){!c&&this.trigger(`updated`)},H0=function(c,p){c.on(`rendered`,function(h){p.trigger(`rendered`,h),c.animation.isFinished()&&!p[Ke]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger(`finished`):c.refresh()})},G0=function(c,p){c.on(`mouseover`,function(h){var v=h.target,g=ln(v,vo);g&&(Mg(g,h,p._api),Gt(p))}).on(`mouseout`,function(h){var v=h.target,g=ln(v,vo);g&&(Ag(g,h,p._api),Gt(p))}).on(`click`,function(h){var v=h.target,g=ln(v,function(y){return ge(y).dataIndex!=null},!0);if(g){var d=g.selected?`unselect`:`select`,m=ge(g);p._api.dispatchAction({type:d,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function i(c){c.clearColorPalette(),c.eachSeries(function(p){p.clearColorPalette()})}function n(c){var p=[],h=[],v=!1;if(c.eachComponent(function(y,_){var x=_.get(`zlevel`)||0,S=_.get(`z`)||0,T=_.getZLevelKey();v=v||!!T,(y===`series`?h:p).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:T})}),v){var g=p.concat(h),d,m;wi(g,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),w(g,function(y){var _=c.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;d!=null&&(x=Math.max(d,x)),S?(x===d&&S!==m&&x++,m=S):m&&(x===d&&x++,m=``),d=x,_.setZLevel(x)})}}Th=function(c,p,h,v,g){n(p),Y0(c,p,h,v,g),w(c._chartsViews,function(d){d.__alive=!1}),Mu(c,p,h,v,g),w(c._chartsViews,function(d){d.__alive||d.remove(p,h)})},Y0=function(c,p,h,v,g,d){w(d||c._componentsViews,function(m){var y=m.__model;u(y,m),m.render(y,p,h,v),l(y,m),f(y,m)})},Mu=function(c,p,h,v,g,d){var m=c._scheduler;g=R(g||{},{updatedSeries:p.getSeries()}),Rt.trigger(`series:beforeupdate`,p,h,g);var y=!1;p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;m.updatePayload(S,v),u(_,x),d&&d.get(_.uid)&&S.dirty(),S.perform(m.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get(`silent`),s(_,x),Fc(_)}),m.unfinished=y||m.unfinished,Rt.trigger(`series:layoutlabels`,p,h,g),Rt.trigger(`series:transition`,p,h,g),p.eachSeries(function(_){var x=c._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(c,p),Rt.trigger(`series:afterupdate`,p,h,g)},Gt=function(c){c[gh]=!0,c.getZr().wakeUp()},da=function(c){c[Cu]=(c[Cu]+1)%1e6},X0=function(c){c[gh]&&(c.getZr().storage.traverse(function(p){Ki(p)||a(p)}),c[gh]=!1)};function a(c){for(var p=[],h=c.currentStates,v=0;v<h.length;v++){var g=h[v];g===`emphasis`||g===`blur`||g===`select`||p.push(g)}c.selected&&c.states.select&&p.push(`select`),c.hoverState===sl&&c.states.emphasis?p.push(`emphasis`):c.hoverState===ol&&c.states.blur&&p.push(`blur`),c.useStates(p)}function o(c,p){var h=c._zr;if(h.painter.type===`canvas`){var v=h.storage,g=0;v.traverse(function(m){m.isGroup||g++});var d=g>H(p.get(`hoverLayerThreshold`),eu.hoverLayerThreshold)&&!q.node&&!q.worker;(c._usingTHL||d)&&(p.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=c._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==ap&&(x.hoverLayer=d?np:ip)})}}),c._usingTHL=d)}}function s(c,p){var h=c.get(`blendMode`)||null;p.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function l(c,p){if(!c.preventAutoZ){var h=vp(c);p.eachRendered(function(v){return dp(v,h.z,h.zlevel),!0})}}function u(c,p){p.eachRendered(function(h){if(!Ki(h)){var v=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(c,p){var h=c.getModel(`stateAnimation`),v=c.isAnimationEnabled(),g=h.get(`duration`),d=g>0?{duration:g,delay:h.get(`delay`),easing:h.get(`easing`)}:null;p.eachRendered(function(m){if(m.states&&m.states.emphasis){if(Ki(m))return;if(m instanceof J&&Pg(m),m.__dirty){var y=m.prevStates;y&&m.useStates(y)}if(v){m.stateTransition=d;var _=m.getTextContent(),x=m.getTextGuideLine();_&&(_.stateTransition=d),x&&(x.stateTransition=d)}m.__dirty&&a(m)}})}W0=function(c){return new((function(p){se(h,p);function h(){return p!==null&&p.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){po(v,g),Gt(c)},h.prototype.leaveEmphasis=function(v,g){ho(v,g),Gt(c)},h.prototype.enterBlur=function(v){Cg(v),Gt(c)},h.prototype.leaveBlur=function(v){kc(v),Gt(c)},h.prototype.enterSelect=function(v){Bc(v),Gt(c)},h.prototype.leaveSelect=function(v){Uc(v),Gt(c)},h.prototype.getModel=function(){return c.getModel()},h.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},h.prototype.getECUpdateCycleVersion=function(){return c[Cu]},h.prototype.usingTHL=function(){return c._usingTHL},h})(nl))(c)},nx=function(c){function p(h,v){for(var g=0;g<h.length;g++){var d=h[g];d[yh]=v}}w(wh,function(h,v){c._messageCenter.on(v,function(g){if(q0[c.group]&&c[yh]!==V0){if(g&&g.escapeConnect)return;var d=c.makeActionFromEvent(g),m=[];w(Go,function(y){y!==c&&y.group===c.group&&m.push(y)}),p(m,V0),w(m,function(y){y[yh]!==WD&&y.dispatchAction(d)}),p(m,XD)}})})}})(),e})(Qe);var Ah=ax.prototype;Ah.on=J0(`on`);Ah.off=J0(`off`);Ah.one=function(t,e,r){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),i.off(t,n)}this.on.call(this,t,n,r)};var qD=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];var Au={};var wh={};var bh={};var Ch=[];var Eh=[];var Ou=[];var ox={};var Dh={};var Go={};var q0={};var KD=+new Date-0;+new Date-0;var Oh=`_echarts_instance_`;function Wz(t,e,r){var i=!(r&&r.ssr);if(i){var n=ZD(t);if(n)return n}var a=new ax(t,e,r);return a.id=`ec_`+KD++,Go[a.id]=a,i&&ac(t,Oh,a.id),nx(a),Rt.trigger(`afterinit`,a),a}function ZD(t){return Go[mm(t,Oh)]}function sx(t,e){ox[t]=e}function Ih(t){Z(Eh,t)<0&&Eh.push(t)}function Rh(t,e){Lh(Ch,t,e,zD)}function lx(t){Ru(`afterinit`,t)}function ux(t){Ru(`afterupdate`,t)}function Ru(t,e){Rt.on(t,e)}function pn(t,e,r){var i,n,a,o,s;V(e)&&(r=e,e=``),N(t)?(i=t.type,n=t.event,o=t.update,s=t.publishNonRefinedEvent,r||(r=t.action),a=t.refineEvent):(i=t,n=e);function l(f){return f.toLowerCase()}n=l(n||i);var u=a?l(i):n;Au[i]||(Be(F0.test(i)&&F0.test(n)),a&&Be(n!==i),Au[i]={actionType:i,refinedEventType:n,nonRefinedEventType:u,update:o,action:r,refineEvent:a},bh[n]=1,a&&s&&(bh[u]=1),wh[u]=i)}function fx(t,e){Ao.register(t,e)}function cx(t,e){Lh(Ou,t,e,Z0,`layout`,!0)}function ui(t,e){Lh(Ou,t,e,j0,`visual`,!0)}var K0=[];function Lh(t,e,r,i,n,a){if((V(e)||N(e))&&(r=e,e=i),!(Z(K0,r)>=0)){K0.push(r);var o=fh.wrapStageHandler(r,n);o.__prio=e,o.__raw=r,t.push(o)}}function Ph(t,e){Dh[t]=e}function px(t,e,r){var i=v0(`registerMap`);i&&i(t,e,r)}var hx=C_;ui(Mh,Z_);ui(Iu,j_);ui(Iu,Q_);ui(Mh,s0);ui(Iu,l0);ui(Q0,U0);Ih(nu);Rh(kD,c_);Ph(`default`,uh);pn({type:ei,event:ei,update:ei},we);pn({type:uo,event:uo,update:uo},we);pn({type:fo,event:ul,update:fo,action:we,refineEvent:Nh,publishNonRefinedEvent:!0});pn({type:ll,event:ul,update:ll,action:we,refineEvent:Nh,publishNonRefinedEvent:!0});pn({type:co,event:ul,update:co,action:we,refineEvent:Nh,publishNonRefinedEvent:!0});function Nh(t,e,r,i){return{eventContent:{selected:Ig(r),isFromClick:e.isFromClick||!1}}}sx(`default`,{});sx(`dark`,n0);var vx=[];var jD={registerPreprocessor:Ih,registerProcessor:Rh,registerPostInit:lx,registerPostUpdate:ux,registerUpdateLifecycle:Ru,registerAction:pn,registerCoordinateSystem:fx,registerLayout:cx,registerVisual:ui,registerTransform:hx,registerLoading:Ph,registerMap:px,registerImpl:h0,PRIORITY:$0,ComponentModel:_e,ComponentView:It,SeriesModel:Lr,ChartView:dr,registerComponentModel:function(t){_e.registerClass(t)},registerComponentView:function(t){It.registerClass(t)},registerSeriesModel:function(t){Lr.registerClass(t)},registerChartView:function(t){dr.registerClass(t)},registerCustomSeries:function(t,e){d0(t,e)},registerSubTypeDefaulter:function(t,e){_e.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Zd(t,e)}};function Lu(t){if(L(t)){w(t,function(e){Lu(e)});return}Z(vx,t)>=0||(vx.push(t),V(t)&&(t={install:t}),t.install(jD))}function dx(t,e){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return QD(r,t,e),r.seriesInvolved&&JD(r,t),r}function QD(t,e,r){var i=e.getComponent(`tooltip`),n=e.getComponent(`axisPointer`),a=n.get(`link`,!0)||[],o=[];w(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ma(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model.getModel(`tooltip`,i);if(w(s.getAxes(),Ee(g,!1,null)),s.getTooltipAxes&&i&&c.get(`show`)){var p=c.get(`trigger`)===`axis`,h=c.get([`axisPointer`,`type`])===`cross`,v=s.getTooltipAxes(c.get([`axisPointer`,`axis`]));(p||h)&&w(v.baseAxes,Ee(g,h?`cross`:!0,p)),h&&w(v.otherAxes,Ee(g,`cross`,!1))}function g(d,m,y){var _=y.model.getModel(`axisPointer`,n),x=_.get(`show`);if(!(!x||x===`auto`&&!d&&!Bh(_))){m??=_.get(`triggerTooltip`),_=d?$D(y,c,n,e,d,m):_;var S=_.get(`snap`),T=_.get(`triggerEmphasis`),C=ma(y.model),E=m||S||y.type===`category`,b=t.axesInfo[C]={key:C,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:m,triggerEmphasis:T,involveSeries:E,snap:S,useHandle:Bh(_),seriesModels:[],linkGroup:null};u[C]=b,t.seriesInvolved=t.seriesInvolved||E;var D=eM(a,y);if(D!=null){var A=o[D]||(o[D]={axesInfo:{}});A.axesInfo[C]=b,A.mapper=a[D].mapper,b.linkGroup=A}}}})}function $D(t,e,r,i,n,a){var o=e.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],l={};w(s,function(p){l[p]=G(o.get(p))}),l.snap=t.type!==`category`&&!!a,o.get(`type`)===`cross`&&(l.type=`line`);var u=l.label||(l.label={});if(u.show??=!1,n===`cross`){if(u.show=o.get([`label`,`show`])??!0,!a){var c=l.lineStyle=o.get(`crossStyle`);c&&re(u,c.textStyle)}}return t.model.getModel(`axisPointer`,new ye(l,r,i))}function JD(t,e){e.eachSeries(function(r){var i=r.coordinateSystem,n=r.get([`tooltip`,`trigger`],!0),a=r.get([`tooltip`,`show`],!0);!i||!i.model||n===`none`||n===!1||n===`item`||a===!1||r.get([`axisPointer`,`show`],!0)===!1||w(t.coordSysAxesInfo[ma(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount??=0,o.seriesDataCount+=r.getData().count())})})}function eM(t,e){for(var r=e.model,i=e.dim,n=0;n<t.length;n++){var a=t[n]||{};if(kh(a[i+`AxisId`],r.id)||kh(a[i+`AxisIndex`],r.componentIndex)||kh(a[i+`AxisName`],r.name))return n}}function kh(t,e){return t===`all`||L(t)&&Z(t,e)>=0||t===e}function mx(t){var e=Pu(t);if(e){var r=e.axisPointerModel,i=e.axis.scale,n=r.option,a=r.get(`status`),o=r.get(`value`);o!=null&&(o=i.parse(o));var s=Bh(r);a??(n.status=s?`show`:`hide`);var l=i.getExtent();(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 Pu(t){var e=(t.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return e&&e.axesInfo[ma(t)]}function gx(t){var e=Pu(t);return e&&e.axisPointerModel}function Bh(t){return!!t.get([`handle`,`show`])}function ma(t){return t.type+`||`+t.id}var yx={};var _x=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n,a){this.axisPointerClass&&mx(r),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,n,!0)},e.prototype.updateAxisPointer=function(r,i,n,a){this._doUpdateAxisPointerClass(r,n,!1)},e.prototype.remove=function(r,i){var n=this._axisPointer;n&&n.remove(i)},e.prototype.dispose=function(r,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(r,i,n){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=gx(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},e.registerAxisPointerClass=function(r,i){yx[r]=i},e.getAxisPointerClass=function(r){return r&&yx[r]},e.type=`axis`,e})(It);var Lt=0;var ga=1;var Sx=ie({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});var ya=2;var Tx=3;function _a(t,e,r){var i;t=t||{};var n=Ae();if(n){var a=n.createBreakScaleMapper(e,r);a.hasBreaks()&&(w(Sx,function(o){a[o]&&(t[o]=oe(a[o],a))}),i=a)}return i??iM(t,r),{brk:i,mapper:t}}function Nu(t,e){w(Sx,function(r){t[r]=e[r]})}function ku(t,e){t.freeze=we}function Nr(t){return t.getExtentUnsafe(Lt,ya)}function zh(t,e){return t.getExtentUnsafe(ga,e)||t.getExtentUnsafe(Lt,e)}function bx(t){var e=zh(t,Tx);return e[1]-e[0]}function xa(t){var e=t.getExtentUnsafe(Lt,Tx);return e[1]-e[0]}function iM(t,e){var r=t||{},i=[];return r._extents=i,i[Lt]=e?e.slice():Et(),R(r,nM),r}var nM={needTransform:function(){return!1},normalize:function(t){var e=this._extents[ga]||this._extents[Lt];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[ga]||this._extents[Lt];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=zh(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[Lt].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){xx(this._extents,Lt,t,e)},setExtent2:function(t,e,r){var i=this._extents;i[t]||(i[t]=i[Lt].slice()),xx(i,t,e,r)},freeze:function(){}};function xx(t,e,r,i){Li(r,i)&&(t[e][0]=r,t[e][1]=i)}function Yo(t){return t.type===`interval`}function Sa(t){return t.type===`time`}function Ta(t){return t.type===`log`}function Jt(t){return t.type===`ordinal`}function fi(t){return wt(t)+2}function Wo(t,e){return Bn(t)/Bn(e)}function Bu(t,e,r){var i=r&&r.lookup;if(i){for(var n=0;n<i.from.length;n++)if(t===i.from[n])return i.to[n]}return Oi(e,t)}function Cx(t,e,r){var i=t.slice();if(i[0]===i[1]){var n=r&&r.ctnShp;if(i[0]!==0){var a=st(i[0]);e[1]||(i[1]+=a/2),i[0]-=a/2}else n&&(i[0]=-1),i[1]=1}return(!ir(i[0])||!ir(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function Ex(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function Xo(t,e){return t=t||e,Kt(he(t,1))}function Dx(t,e,r){var i=Nr(t),n=i[0],a=t.count(),o=Math.max((e||0)+1,1);n!==0&&o>1&&a/o>2&&(n=Math.round(Math.ceil(n/o)*o)),n!==i[0]&&l(i[0],!0,!0);for(var s=n;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,c){r({value:u,offInterval:f},c)}}Sm();var Fh=K();var Mx=-2;K();function aM(t,e){var r=t.model,i=Fh(_u(r.ecModel)).keyed,n=i&&i.get(e);return n&&n.get(r.uid)}function Ax(t,e){return Ix(aM(t,e))}function Ox(t,e){var r=[];return oM(t.model.ecModel,function(i){for(var n=0;n<e.length;n++)e[n]&&i.serByIdx[e[n].seriesIndex]&&r.push(Ix(i))}),r}function oM(t,e){var r=Fh(_u(t)).keyed;r&&r.each(function(i,n){i.each(function(a,o){e(a,n,o)})})}function Ix(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function Rx(t,e){var r=t.model,i=Fh(_u(r.ecModel)).keys;i&&w(i.get(r.uid),function(n){e(n)})}z();var sM=.8;function Uu(t,e){e=e||{};var r={w:NaN,w2:NaN},i=t.scale,n=e.fromStat,a=e.min,o=bx(i);gt(o)||(o=NaN);var s=t.getExtent(),l=st(s[1]-s[0]);return Jt(i)?lM(r,t,o,l):n&&uM(r,t,o,l,n),a!=null&&(r.w=gt(r.w)?he(a,r.w):a),r}function lM(t,e,r,i){var n=e.onBand,a=r+(n?1:0);a===0&&(a=1),t.w=i/a,!n&&r&&i&&(t.w2=t.w*r/i)}function uM(t,e,r,i,n){var a=!1,o=-Infinity;w(n.key?[Ax(e,n.key)]:Ox(e,n.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),a=!1):l===Mx&&(a=!0))}),gt(r)&&r>0&&gt(o)?(t.w=i/r*o,t.w2=o):a&&(t.w=i*sM,t.w2=t.w*r/i)}var hn=K();var Lx=G;var Vh=oe;var fM=(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,r,i,n){var a=r.get(`value`),o=r.get(`status`);if(this._axisModel=e,this._axisPointerModel=r,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o===`hide`){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,r,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(e,r);if(!s)s=this._group=new We,this.createPointerEl(s,u,e,r),this.createLabelEl(s,u,e,r),i.getZr().add(s);else{var p=Ee(Px,r,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,r)}kx(s,r,!0),this._renderHandle(a)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,r){var i=r.get(`animation`),n=e.axis,a=n.type===`category`,o=r.get(`snap`);if(!o&&!a)return!1;if(i===`auto`||i==null){var s=this.animationThreshold;if(a&&Uu(n).w>s)return!0;if(o){var l=Pu(e).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},t.prototype.makeElOption=function(e,r,i,n,a){},t.prototype.createPointerEl=function(e,r,i,n){var a=r.pointer;if(a){var o=hn(e).pointerEl=new ti[a.type](Lx(r.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,r,i,n){if(r.label){var a=hn(e).labelEl=new $e(Lx(r.label));e.add(a),Nx(a,n)}},t.prototype.updatePointerEl=function(e,r,i){var n=hn(e).pointerEl;n&&r.pointer&&(n.setStyle(r.pointer.style),i(n,{shape:r.pointer.shape}))},t.prototype.updateLabelEl=function(e,r,i,n){var a=hn(e).labelEl;a&&(a.setStyle(r.label.style),i(a,{x:r.label.x,y:r.label.y}),Nx(a,n))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=r.getModel(`handle`),o=r.get(`status`);if(!a.get(`show`)||!o||o===`hide`){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Do(a.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(u){xs(u.event)},onmousedown:Vh(this._onHandleDragMove,this,0,0),drift:Vh(this._onHandleDragMove,this),ondragend:Vh(this._onHandleDragEnd,this)}),i.add(n)),kx(n,r,!1),n.setStyle(a.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var l=a.get(`size`);L(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,mu(this,`_doDispatchAxisPointer`,a.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,r){Px(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Hh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,r){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(Hh(i),[e,r],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Hh(n)),hn(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var r=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;if(this._handle){var r=this._axisPointerModel.get(`value`);this._moveHandleToValue(r),this._api.dispatchAction({type:`hideTip`})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var r=e.getZr(),i=this._group,n=this._handle;r&&i&&(this._lastGraphicKey=null,i&&r.remove(i),n&&r.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,`_doDispatchAxisPointer`)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,r,i){return i=i||0,{x:e[i],y:e[1-i],width:r[i],height:r[1-i]}},t})();function Px(t,e,r,i){Bx(hn(r).lastProp,i)||(hn(r).lastProp=i,e?Ir(r,i,t):(r.stopAnimation(),r.attr(i)))}function Bx(t,e){if(N(t)&&N(e)){var r=!0;return w(e,function(i,n){r=r&&Bx(t[n],i)}),!!r}else return t===e}function Nx(t,e){t[e.get([`label`,`show`])?`show`:`hide`]()}function Hh(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function kx(t,e,r){var i=e.get(`z`),n=e.get(`zlevel`);t&&t.traverse(function(a){a.type!==`group`&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=r)})}var Ux=fM;var zx=(function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t})();Zr(zx);var vt=zx;var cM=0;var pM=(function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++cM,this._onCollect=e.onCollect}return t.createByAxisModel=function(e){var r=e.option,i=r.data,n=i&&U(i,hM);return new t({categories:n,needCollect:!n,deduplication:r.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var r,i=this._needCollect;if(!P(e)&&!i)return e;if(i&&!this._deduplication)return r=this.categories.length,this.categories[r]=e,this._onCollect&&this._onCollect(e,r),r;var n=this._getOrCreateMap();return r=n.get(e),r??(i?(r=this.categories.length,this.categories[r]=e,n.set(e,r),this._onCollect&&this._onCollect(e,r)):r=NaN),r},t.prototype._getOrCreateMap=function(){return this._map||(this._map=z(this.categories))},t})();function hM(t){return N(t)&&t.value!=null?t.value:t+``}var Gh=pM;var Fx=(function(t){se(e,t);function e(r){var i=t.call(this)||this;i.type=`ordinal`,i.parse=e.parse,Nu(i,e.decoratedMethods);var n=r.ordinalMeta;n||(n=new Gh({})),L(n)&&(n=new Gh({categories:U(n,function(o){return N(o)?o.value:o})})),i._ordinalMeta=n;var a=_a(null,null,r.extent||[0,n.categories.length-1]);return i._mapper=a.mapper,ku(i,a.mapper),i}return e.parse=function(r){return r==null?r=NaN:P(r)?(r=this._ordinalMeta.getOrdinal(r),r??=NaN):r=Kt(r),r},e.prototype.getTicks=function(){var r=[];return Dx(this,0,function(i){r.push(i)}),r},e.prototype.getMinorTicks=function(r){},e.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=r.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=ze(s,i.length);o<l;++o){var u=n[o]=i[o];a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n[o]=f,a[f]=o}},e.prototype._getTickNumber=function(r){var i=this._ticksByOrdinalNumber;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getRawOrdinalNumber=function(r){var i=this._ordinalNumbersByTick;return i&&r>=0&&r<i.length?i[r]:r},e.prototype.getLabel=function(r){if(!this.isBlank()){var i=this.getRawOrdinalNumber(r.value),n=this._ordinalMeta.categories[i];return n==null?``:n+``}},e.prototype.count=function(){var r=Nr(this._mapper);return r[1]-r[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type=`ordinal`,e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(r){return this._mapper.contain(this._getTickNumber(r))&&r>=0&&r<this._ordinalMeta.categories.length},normalize:function(r){return this._mapper.normalize(this._getTickNumber(r))},scale:function(r){return this.getRawOrdinalNumber(Kt(this._mapper.scale(r)))},transformIn:function(r,i){return this._mapper.transformIn(this._getTickNumber(r),i)},transformOut:function(r,i){return this.getRawOrdinalNumber(this._mapper.transformOut(r,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(r,i){return this._mapper.getExtentUnsafe(r,i)},setExtent:function(r,i){return this._mapper.setExtent(r,i)},setExtent2:function(r,i,n){return this._mapper.setExtent2(r,i,n)}},e})(vt);vt.registerClass(Fx);var Vx=Fx;function wa(t,e,r,i){for(var n=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<n.length;s++){var l=n[s],u=n[s-1];if(!(u.break||l.break)){for(var f=0,c=[],h=(l.value-u.value)/e,v=fi(h);f<e-1;){var g=Me(u.value+(f+1)*h,v);g>o[0]&&g<o[1]&&c.push(g),f++}var d=Ae();d&&d.pruneTicksByBreak(`auto`,c,r,function(m){return m},i,o),a.push(c)}}return a}var Hx=(function(t){se(e,t);function e(r){var i=t.call(this)||this;i.type=`interval`,i.parse=e.parse,r=r||{};return i.brk=_a(i,Bl(i,r),null).brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(r){return r==null||r===``?NaN:Number(r)},e.prototype.getConfig=function(){return G(this._cfg)},e.prototype.setConfig=function(r){var i=Nr(this);this._cfg=r=G(r),r.niceExtent??(r.niceExtent=i.slice()),r.intervalPrecision??(r.intervalPrecision=fi(r.interval))},e.prototype.getTicks=function(r){r=r||{};var i=this._cfg,n=i.interval,a=Nr(this),o=i.niceExtent,s=i.intervalPrecision,l=Ae(),u=this.brk,f=l&&u,c=[];if(!n)return c;if(r.breakTicks===`only_break`&&f)return l.addBreaksToTicks(c,u.breaks,a),c;var p=3e3;a[0]<o[0]&&c.push({value:r.expandToNicedExtent?Me(o[0]-n,s):a[0]});for(var h=function(_,x){return Kt((x-_)/n)},v=i.intervalCount,g=o[0],d=0;;d++){if(v==null){if(g>o[1]||!isFinite(g)||!isFinite(o[1]))break}else{if(d>v)break;g=ze(g,o[1]),d===v&&(g=o[1])}if(c.push({value:g}),g=Me(g+n,s),u){var m=u.calcNiceTickMultiple(g,h);m>=0&&(g=Me(g+m*n,s))}if(c.length>0&&g===c[c.length-1].value)break;if(c.length>p)return[]}var y=c.length?c[c.length-1].value:o[1];return a[1]>y&&c.push({value:r.expandToNicedExtent?Me(y+n,s):a[1]}),f&&l.pruneTicksByBreak(r.pruneByBreak,c,u.breaks,function(_){return _.value},i.interval,a),f&&r.breakTicks!==`none`&&l.addBreaksToTicks(c,u.breaks,a),c},e.prototype.getMinorTicks=function(r){return wa(this,r,$i(this),this._cfg.interval)},e.prototype.getLabel=function(r,i){if(r==null)return``;var n=i&&i.precision;n==null?n=wt(r.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision);return Mo(Me(r.value,n,!0))},e.type=`interval`,e})(vt);vt.registerClass(Hx);var vn=Hx;var vM=function(t,e,r,i){for(;r<i;){var n=r+i>>>1;t[n][1]<e?r=n+1:i=n}return r};var Yx=(function(t){se(e,t);function e(r){var i=t.call(this)||this;i.type=`time`,i.parse=e.parse,i._locale=r.locale,i._useUTC=r.useUTC,i._interval=0;return i.brk=_a(i,Bl(i,r),null).brk,i}return e.prototype.getLabel=function(r){return Ji(r.value,Ep[Py(Jn(this._minLevelUnit))]||Ep.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(r,i,n){return Ny(r,i,n,this._locale,this._useUTC)},e.prototype.getTicks=function(r){r=r||{};var i=this._interval,n=Nr(this),a=Ae(),o=this.brk,s=a&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&r.breakTicks===`only_break`)return Ae().addBreaksToTicks(l,o.breaks,n),l;l=SM(this._minLevelUnit,this._approxInterval,u,n,xa(this),o);var f=Qt.length-1,c=0;return w(l,function(p){p.time&&(f=Math.min(f,Z(Qt,p.time.upperTimeUnit)),c=Math.max(c,p.time.level))}),s&&Ae().pruneTicksByBreak(r.pruneByBreak,l,o.breaks,function(p){return p.value},this._approxInterval,n),s&&r.breakTicks!==`none`&&Ae().addBreaksToTicks(l,o.breaks,n,function(p){for(var h=Math.max(Z(Qt,en(p.vmin,u)),Z(Qt,en(p.vmax,u))),v=0,g=0;g<Qt.length;g++)if(!Wx(Qt[g],p.vmin,p.vmax,u)){v=g;break}var d=Math.min(v,f);return{level:c,lowerTimeUnit:Qt[Math.max(d,h)],upperTimeUnit:Qt[d]}}),l},e.prototype.getMinorTicks=function(r){return wa(this,r,$i(this),this._interval)},e.prototype.setTimeInterval=function(r){this._interval=r.interval,this._approxInterval=r.approxInterval,this._minLevelUnit=r.minLevelUnit},e.parse=function(r){return ae(r)?Math.round(r):+bt(r)},e.type=`time`,e})(vt);var zu=[[`second`,zl],[`minute`,Fl],[`hour`,$n],[`quarter-day`,$n*6],[`half-day`,$n*12],[`day`,Ot*1.2],[`half-week`,Ot*3.5],[`week`,Ot*7],[`month`,Ot*31],[`quarter`,Ot*95],[`half-year`,Cp/2],[`year`,Cp]];function Wx(t,e,r,i){return Vl(new Date(e),t,i).getTime()===Vl(new Date(r),t,i).getTime()}function dM(t,e){return t/=Ot,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function mM(t){var e=30*Ot;return t/=e,t>6?6:t>3?3:t>2?2:1}function gM(t){return t/=$n,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function Gx(t,e){return t/=e?Fl:zl,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function yM(t){return he(Ri(t,!0),1)}function _M(t,e,r){var i=Math.max(0,Z(Qt,e)-1);return Vl(new Date(t),Qt[i],r).getTime()}function xM(t,e){var r=new Date(0);r[t](1);var i=r.getTime();r[t](1+e);var n=r.getTime()-i;return function(a,o){return Math.max(0,Math.round((o-a)/n))}}function SM(t,e,r,i,n,a){var o=3e3,s=Ry,l=0;function u(B,Y,ne,te,Q,ee,ue){for(var fe=xM(Q,B),j=Y,ve=new Date(j);j<ne&&j<=i[1]&&(ue.push({value:j}),!(l++>o));)if(ve[Q](ve[te]()+B),j=ve.getTime(),a){var be=a.calcNiceTickMultiple(j,fe);be>0&&(ve[Q](ve[te]()+be*B),j=ve.getTime())}ue.push({value:j,notAdd:j>i[1]})}function f(B,Y,ne){var te=[],Q=!Y.length;if(!Wx(Jn(B),i[0],i[1],r)){Q&&(Y=[{value:_M(i[0],B,r)},{value:i[1]}]);for(var ee=0;ee<Y.length-1;ee++){var ue=Y[ee].value,fe=Y[ee+1].value;if(ue!==fe){var j=void 0,ve=void 0,be=void 0,xt=!1;switch(B){case`year`:j=Math.max(1,Math.round(e/Ot/365)),ve=Dp(r),be=ky(r);break;case`half-year`:case`quarter`:case`month`:j=mM(e),ve=Hl(r),be=Mp(r);break;case`week`:case`half-week`:case`day`:j=dM(e,31),ve=Gl(r),be=Ap(r),xt=!0;break;case`half-day`:case`quarter-day`:case`hour`:j=gM(e),ve=Yl(r),be=Op(r);break;case`minute`:j=Gx(e,!0),ve=Wl(r),be=Ip(r);break;case`second`:j=Gx(e,!1),ve=Xl(r),be=Rp(r);break;case`millisecond`:j=yM(e),ve=ql(r),be=Lp(r);break}fe>=i[0]&&ue<=i[1]&&u(j,ue,fe,ve,be,xt,te),B===`year`&&ne.length>1&&ee===0&&ne.unshift({value:ne[0].value-j})}}for(var ee=0;ee<te.length;ee++)ne.push(te[ee])}}for(var c=[],p=[],h=0,v=0,g=0;g<s.length;++g){var d=Jn(s[g]);if(Ly(s[g])){f(s[g],c[c.length-1]||[],p);if(d!==(s[g+1]?Jn(s[g+1]):null)){if(p.length){v=h,p.sort(function(B,Y){return B.value-Y.value});for(var y=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(y.push(p[_]),x>=i[0]&&x<=i[1]&&h++)}var S=n/e;if(h>S*1.5&&v>S/1.5||(c.push(y),h>S||t===s[g]))break}p=[]}}}for(var T=Ce(U(c,function(B){return Ce(B,function(Y){return Y.value>=i[0]&&Y.value<=i[1]&&!Y.notAdd})}),function(B){return B.length>0}),C=T.length-1,E=[],g=0;g<T.length;++g)for(var b=T[g],D=0;D<b.length;++D){var A=en(b[D].value,r);E.push({value:b[D].value,time:{level:C-g,upperTimeUnit:A,lowerTimeUnit:A}})}ro(E,Tm,null),E.sort(function(B,Y){return B.value-Y.value});var O=E[0],M=E[E.length-1],I=en(i[0],r),F=en(i[1],r);return(!O||O.value>i[0])&&E.unshift({value:i[0],time:{level:0,upperTimeUnit:I,lowerTimeUnit:I},notNice:!0}),(!M||M.value<i[1])&&E.push({value:i[1],time:{level:0,upperTimeUnit:F,lowerTimeUnit:F},notNice:!0}),E}var Xx=function(t,e){var r=t.getExtent();if(r[0]===r[1]&&(r[0]-=Ot,r[1]+=Ot),r[1]===-Infinity&&r[0]===Infinity){var i=new Date;r[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),r[0]=r[1]-Ot}t.setExtent(r[0],r[1]);var n=Xo(e.splitNumber,10),a=xa(t)/n,o=e.minInterval,s=e.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var l=zu.length,u=Math.min(vM(zu,a,0,l),l-1),f=zu[u][1],c=zu[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:f,minLevelUnit:c})};vt.registerClass(Yx);var qx=Yx;var Fu=0;var Vu=1;var TM=2;var Qx=(function(t){se(e,t);function e(r){var i=t.call(this)||this;i.type=`log`,i.parse=vn.parse,i.base=r.logBase||10;var n=[],a=[],o=i._lookup={from:n,to:a};n[Fu]=n[Vu]=a[Fu]=a[Vu]=NaN,Nu(i,e.mapperMethods);var s=Ae(),l=r.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},TM,u),i.powStub=new vn({breakParsed:u.original}),i.intervalStub=new vn({breakParsed:u.transformed}),ku(i,i.intervalStub),i}return e.prototype.getTicks=function(r){var i=this.base,n=this.powStub,a=Ae(),o=this.intervalStub,u={lookup:{from:o.getExtent(),to:n.getExtent()}};return U(o.getTicks(r||{}),function(f){var c=f.value,p=Bu(c,i,u),h;if(a){var v=a.getTicksBreakOutwardTransform(this,f,$i(n),this._lookup);v&&(h=v.vBreak,p=v.tickVal)}return{value:p,break:h}},this)},e.prototype.getMinorTicks=function(r){return wa(this,r,$i(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(r,i){return this.intervalStub.getLabel(r,i)},e.type=`log`,e.mapperMethods={needTransform:function(){return!0},normalize:function(r){return this.intervalStub.normalize(Wo(r,this.base))},scale:function(r){return Bu(this.intervalStub.scale(r),this.base,null)},transformIn:function(r,i){return r=Wo(r,this.base),i&&i.depth===ya?r:this.intervalStub.transformIn(r,i)},transformOut:function(r,i){var n=i?i.depth:null;return Kx.depth=n,Zx.lookup=this._lookup,Bu(n===ya?r:this.intervalStub.transformOut(r,Kx),this.base,Zx)},contain:function(r){return this.powStub.contain(r)},setExtent:function(r,i){this.setExtent2(Lt,r,i)},setExtent2:function(r,i,n){if(!(!Li(i,n)||i<=0||n<=0)){var a=jx,o=jx;if(r===Lt){var s=this._lookup;a=s.to,o=s.from}this.powStub.setExtent2(r,a[Fu]=i,a[Vu]=n);var l=this.base;this.intervalStub.setExtent2(r,o[Fu]=Wo(i,l),o[Vu]=Wo(n,l))}},getFilter:function(){return{g:0}},sanitize:function(r,i){return Li(i[0],i[1])&&gt(r)&&r<=0&&(r=i[0]),r},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(r,i){return i===null?this.powStub.getExtentUnsafe(r,null):this.intervalStub.getExtentUnsafe(r,i)}},e})(vt);vt.registerClass(Qx);var Kx={};var Zx={};var jx=[];var $x=Qx;var Jx={value:1,category:1,time:1,log:1};var wM=K();var bM={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`};var Yh=(function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=Xh(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return H(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var r=this.source.dimensionsDefine;if(r)return r[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,r=ou(this.source),i=!qh(e),n=``,a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=r?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var p=this.getSourceDimension(o);p&&(l=r?p.name:null,u=p.type)}a.push({property:l,type:u,ordinalMeta:f}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+=`$`,n+=bM[u]||`f`,f&&(n+=f.uid),n+=`$`}var h=this.source;return{dimensions:a,hash:[h.seriesLayoutBy,h.startIndex,n].join(`$$`)}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],r=0,i=0;r<this._fullDimCount;r++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(r);o&&(n=o.name)}e.push(n)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t})();function Hu(t){return t instanceof Yh}function Wh(t){for(var e=z(),r=0;r<(t||[]).length;r++){var i=t[r],n=N(i)?i.name:i;n!=null&&e.get(n)==null&&e.set(n,r)}return e}function Xh(t){var e=wM(t);return e.dimNameMap||(e.dimNameMap=Wh(t.dimensionsDefine))}function qh(t){return t>30}function Gu(t,e,r){r=r||{};var i=r.byIndex,n=r.stackedCoordDimension,a,o,s;CM(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get(`stack`)),u,f,c,p,h=!0;function v(x){return x.type!==`ordinal`&&x.type!==`time`}if(w(a,function(x,S){P(x)&&(a[S]=x={name:x}),v(x)||(h=!1)}),w(a,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&v(x)&&(!h||x.coordDim!==`x`&&x.coordDim!==`angle`)&&(!n||n===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){c=`__\0ecstackresult_`+t.id,p=`__\0ecstackedover_`+t.id,u&&(u.createInvertedIndices=!0);var g=f.coordDim,d=f.type,m=0;w(a,function(x){x.coordDim===g&&m++});var y={name:c,coordDim:g,coordDimIndex:m,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:p,coordDim:p,coordDimIndex:m+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(p,d),_.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(a.push(y),a.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:c}}function CM(t){return!Hu(t.schema)}function Kh(t,e){return!!e&&e===t.getCalculationInfo(`stackedDimension`)}function eS(t,e){return Kh(t,e)?t.getCalculationInfo(`stackResultDimension`):e}var EM=K();function tS(t){var e=t.get(`type`);return(e==null||!Ue(Jx,e)&&!vt.getClass(e))&&(e=`value`),e}function rS(t,e,r){var i=Ae(),n;switch(i&&(n=MM(t,e,r)),e){case`category`:return new Vx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:Et()});case`time`:return new qx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get(`useUTC`),breakOption:n});case`log`:return new $x({logBase:t.get(`logBase`),breakOption:n});case`value`:return new vn({breakOption:n});default:return new((vt.getClass(e))||vn)({})}}function iS(t){EM(t).noOnMyZero=!0}function Yu(t,e){var r=t.scale;return Jt(r)?r.getLabel(e):e.value}function DM(t){return t.get(`interval`)??`auto`}function nS(t){return t.type===`category`&&DM(t.getLabelModel())===0}function qo(t){return t===`middle`||t===`center`}function MM(t,e,r){var i=t.get(`breaks`,!0);if(i!=null){if(!Ae())return;if(!r||!AM(e))return;return i}}function AM(t){return t!==`category`}function aS(t,e,r,i,n,a){var o=Ta(t),s=o?t.intervalStub:t;if(s.setExtent(i[0],i[1]),o){var l=t.powStub,u={depth:ya},f=t.transformOut(i[0],u),c=t.transformOut(i[1],u),p=Ex(r,i);e[0]&&!p[0]&&(f=n[0]),e[1]&&!p[1]&&(c=n[1]),l.setExtent(f,c)}s.setConfig(a)}function Zh(t,e){return Jt(t)?t.getRawOrdinalNumber(e.value):e.value}var oS=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`];var OM=1;var Wu=2;var lS=OM|Wu;function Ko(t,e,r){r=r||lS,e?t.dirty|=r:t.dirty&=~r}function uS(t,e){return e=e||lS,t.dirty==null||!!(t.dirty&e)}function er(t){if(t)return uS(t)&&IM(t,t.label,t),t}function IM(t,e,r){var i=e.getComputedTransform();t.transform=Ll(t.transform,i);var n=t.localRect=jn(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=r&&r.marginForce,l=r&&r.minMarginForce,u=r&&r.marginDefault,f=a.__marginType;f==null&&u&&(o=u,f=Zi.textMargin);for(var c=0;c<4;c++)Qh[c]=f===Zi.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Zi.textMargin&&Ol(n,Qh,!1,!1);var p=t.rect=jn(t.rect,n);return i&&p.applyTransform(i),f===Zi.minMargin&&Ol(p,Qh,!1,!1),t.axisAligned=Rl(i),(t.label=t.label||{}).ignore=e.ignore,Ko(t,!1),Ko(t,!0,Wu),t}var Qh=[0,0,0,0];function fS(t,e,r){return t.transform=Ll(t.transform,r),t.localRect=jn(t.localRect,e),t.rect=jn(t.rect,e),r&&t.rect.applyTransform(r),t.axisAligned=Rl(r),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function cS(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var r=t.transform;r&&(r[4]+=e.x,r[5]+=e.y);var i=t.rect;i&&(i.x+=e.x,i.y+=e.y);var n=t.obb;n&&n.fromBoundingRect(t.localRect,r)}}function $h(t,e){for(var r=0;r<oS.length;r++){var i=oS[r];t[i]??(t[i]=e[i])}return er(t)}function sS(t){var e=t.obb;return(!e||uS(t,Wu))&&(t.obb=e=e||new bl,e.fromBoundingRect(t.localRect,t.transform),Ko(t,!1,Wu)),e}function jV(t,e,r,i,n){var a=t.length,o=tp[e],s=rp[e];if(a<2)return!1;t.sort(function(b,D){return b.rect[o]-D.rect[o]});for(var l=0,u,f=!1,c=0,p=0;p<a;p++){var h=t[p],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0);var g=Math.max(-u,0);c+=g,l=v[o]+v[s]}c>0&&n&&T(-c/a,0,a);var d=t[0],m=t[a-1],y,_;x(),y<0&&C(-y,.8),_<0&&C(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&E(-y),_<0&&E(_);function x(){y=d.rect[o]-r,_=i-m.rect[o]-m.rect[s]}function S(b,D,A){if(b<0){var O=Math.min(D,-b);if(O>0){T(O*A,0,a);var M=O+b;M<0&&C(-M*A,1)}else C(-b*A,1)}}function T(b,D,A){b!==0&&(f=!0);for(var O=D;O<A;O++){var M=t[O],I=M.rect;I[o]+=b,M.label[o]+=b}}function C(b,D){for(var A=[],O=0,M=1;M<a;M++){var I=t[M-1].rect,F=Math.max(t[M].rect[o]-I[o]-I[s],0);A.push(F),O+=F}if(O){var B=Math.min(Math.abs(b)/O,D);if(b>0)for(var M=0;M<a-1;M++){var Y=A[M]*B;T(Y,0,M+1)}else for(var M=a-1;M>0;M--){var Y=A[M-1]*B;T(-Y,M,a)}}}function E(b){var D=b<0?-1:1;b=Math.abs(b);for(var A=Math.ceil(b/(a-1)),O=0;O<a-1;O++)if(D>0?T(A,0,O+1):T(-A,a-O-1,a),b-=A,b<=0)return}return f}function QV(t){for(var e=0;e<t.length;e++){var r=t[e],i=r.defaultAttr,n=r.labelLine;r.label.attr(`ignore`,i.ignore),n&&n.attr(`ignore`,i.labelGuideIgnore)}}function pS(t){var e=[];t.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function r(u){if(!u.ignore){var f=u.ensureState(`emphasis`);f.ignore??=!1}u.ignore=!0}for(var i=0;i<t.length;i++){var n=er(t[i]);if(!n.label.ignore){for(var a=n.label,o=n.labelLine,s=!1,l=0;l<e.length;l++)if(Xu(n,e[l],null,{touchThreshold:.05})){s=!0;break}s?(r(a),o&&r(o)):e.push(n)}}}function Xu(t,e,r,i){return!t||!e||t.label&&t.label.ignore||e.label&&e.label.ignore||!t.rect.intersect(e.rect,r,i)?!1:t.axisAligned&&e.axisAligned?!0:sS(t).intersect(sS(e),r,i)}var RM=null;function Jh(){return RM}var hS=`expandAxisBreak`;K();K();var ev={estimate:1,determine:2};function dS(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}var ci=Math.PI;var LM=[[1,2,1,2],[5,3,5,3],[8,3,8,3]];var PM=[[0,1,0,1],[0,3,0,3],[0,3,0,3]];var Ca=K();var _S=K();var NM=(function(){function t(e){this.recordMap={},this.resolveAxisNameOverlap=e}return t.prototype.ensureRecord=function(e){var r=e.axis.dim,i=e.componentIndex,n=this.recordMap,a=n[r]||(n[r]=[]);return a[i]||(a[i]={ready:{}})},t})();function kM(t,e,r,i){var n=r.axis,a=e.ensureRecord(r),o=[],s,l=rv(t.axisName)&&qo(t.nameLocation);w(i,function(v){var g=er(v);if(!(!g||g.label.ignore)){o.push(g);var d=a.transGroup;l&&(d.transform?Gr(Zo,d.transform):_r(Zo),g.transform&&Hr(Zo,Zo,g.transform),X.copy(qu,g.localRect),qu.applyTransform(Zo),s?s.union(qu):X.copy(s=new X(0,0,0,0),qu))}});var u=Math.abs(a.dirVec.x)>.1?`x`:`y`,f=a.transGroup[u];if(o.sort(function(v,g){return Math.abs(v.label[u]-f)-Math.abs(g.label[u]-f)}),l&&s){var c=n.getExtent(),p=Math.min(c[0],c[1]),h=Math.max(c[0],c[1])-p;s.union(new X(p,0,h,1))}a.stOccupiedRect=s,a.labelInfoList=o}var Zo=ot();var qu=new X(0,0,0,0);var BM=function(t,e,r,i,n,a){if(qo(t.nameLocation)){var o=a.stOccupiedRect;o&&xS(fS({},o,a.transGroup.transform),i,n)}else UM(a.labelInfoList,a.dirVec,i,n)};function xS(t,e,r){var i=new de;Xu(t,e,i,{direction:Math.atan2(r.y,r.x),bidirectional:!1,touchThreshold:.05})&&cS(e,i)}function UM(t,e,r,i){for(var n=de.dot(i,e)>=0,a=0,o=t.length;a<o;a++){var s=t[n?a:o-1-a];s.label.ignore||xS(s,r,i)}}var dn=(function(){function t(e,r,i,n){this.group=new We,this._axisModel=e,this._api=r,this._local={},this._shared=n||new NM(BM),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(e){var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(e){var r=this._axisModel,i=r.getDefaultOption?r.getDefaultOption():{},n=H(e.axisName,r.get(`name`)),a=r.get(`nameMoveOverlap`);(a==null||a===`auto`)&&(a=H(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:H(e.nameDirection,1),tickDirection:H(e.tickDirection,1),labelDirection:H(e.labelDirection,1),labelOffset:H(e.labelOffset,0),silent:H(e.silent,!0),axisName:n,nameLocation:Yt(r.get(`nameLocation`),i.nameLocation,`end`),shouldNameMoveOverlap:rv(n)&&a,optionHideOverlap:r.get([`axisLabel`,`hideOverlap`]),showMinorTicks:r.get([`minorTick`,`show`])};this._cfg=o;var s=new We({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(r);l.transGroup=this._transformGroup,l.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(e,r){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(zM,function(n){e[n]&&FM[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,r||{})}),this},t.innerTextLayout=function(e,r,i){var n=ja(r-e),a,o;return Ii(n)?(o=i>0?`top`:`bottom`,a=`center`):Ii(n-ci)?(o=i>0?`bottom`:`top`,a=`center`):(o=`middle`,n>0&&n<ci?a=i>0?`right`:`left`:a=i>0?`left`:`right`),{rotation:n,textAlign:a,textVerticalAlign:o}},t.makeAxisEventDataBase=function(e){var r={componentType:e.mainType,componentIndex:e.componentIndex};return r[e.mainType+`Index`]=e.componentIndex,r},t.isLabelSilent=function(e){var r=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||r&&r.show)},t})();var zM=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`];var FM={axisLine:function(t,e,r,i,n,a,o){var l=i.get([`axisLine`,`show`]);if(l===`auto`&&(l=!0,t.raw.axisLineAutoShow!=null&&(l=!!t.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=a.transform,c=[u[0],0],p=[u[1],0],h=c[0]>p[0];f&&(dt(c,c,f),dt(p,p,f));var v=R({lineCap:`round`},i.getModel([`axisLine`,`lineStyle`]).getLineStyle()),g={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(i.get([`axisLine`,`breakLine`])&&Iy(i.axis.scale))Jh().buildAxisBreakLine(i,n,a,g);else{var d=new vr(R({shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]}},g));Ml(d.shape,d.style.lineWidth),d.anid=`line`,n.add(d)}var m=i.get([`axisLine`,`symbol`]);if(m!=null){var y=i.get([`axisLine`,`symbolSize`]);P(m)&&(m=[m,m]),(P(y)||ae(y))&&(y=[y,y]);var _=_0(i.get([`axisLine`,`symbolOffset`])||0,y),x=y[0],S=y[1];w([{rotate:t.rotation+Math.PI/2,offset:_[0],r:0},{rotate:t.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((c[0]-p[0])*(c[0]-p[0])+(c[1]-p[1])*(c[1]-p[1]))}],function(T,C){if(m[C]!==`none`&&m[C]!=null){var E=pa(m[C],-x/2,-S/2,x,S,v.stroke,!0),b=T.r+T.offset,D=h?p:c;E.attr({rotation:T.rotate,x:D[0]+b*Math.cos(t.rotation),y:D[1]-b*Math.sin(t.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabelEstimate:function(t,e,r,i,n,a,o,s){yS(e,n,s)&&gS(t,e,r,i,n,a,o,ev.estimate)},axisTickLabelDetermine:function(t,e,r,i,n,a,o,s){yS(e,n,s)&&gS(t,e,r,i,n,a,o,ev.determine);var f=YM(t,n,a,i);GM(t,e.labelLayoutList,f),WM(t,n,a,i,t.tickDirection)},axisName:function(t,e,r,i,n,a,o,s){var l=r.ensureRecord(i);e.nameEl&&(n.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=t.axisName;if(rv(f)){var c=t.nameLocation,p=t.nameDirection,h=i.getModel(`nameTextStyle`),v=i.get(`nameGap`)||0,g=i.axis.getExtent(),d=i.axis.inverse?-1:1,m=new de(0,0),y=new de(0,0);c===`start`?(m.x=g[0]-d*v,y.x=-d):c===`end`?(m.x=g[1]+d*v,y.x=d):(m.x=(g[0]+g[1])/2,m.y=t.labelOffset+p*v,y.y=p);var _=ot();y.transform(bn(_,_,t.rotation));var x=i.get(`nameRotate`);x!=null&&(x=x*ci/180);var S,T;qo(c)?S=dn.innerTextLayout(t.rotation,x??t.rotation,p):(S=VM(t.rotation,c,x||0,g),T=t.raw.axisNameAvailableWidth,T!=null&&(T=Math.abs(T/Math.sin(S.rotation)),!isFinite(T)&&(T=null)));var C=h.getFont(),E=i.get(`nameTruncate`,!0)||{},b=E.ellipsis,D=Sn(t.raw.nameTruncateMaxWidth,E.maxWidth,T),A=s.nameMarginLevel||0,O=new $e({x:m.x,y:m.y,rotation:S.rotation,silent:dn.isLabelSilent(i),style:ji(h,{text:f,font:C,overflow:`truncate`,width:D,ellipsis:b,fill:h.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),align:h.get(`align`)||S.textAlign,verticalAlign:h.get(`verticalAlign`)||S.textVerticalAlign}),z2:1});if(Il({el:O,componentModel:i,itemName:f}),O.__fullText=f,O.anid=`name`,i.get(`triggerEvent`)){var M=dn.makeAxisEventDataBase(i);M.targetType=`axisName`,M.name=f,ge(O).eventData=M}a.add(O),O.updateTransform(),e.nameEl=O;var I=l.nameLayout=er({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:qo(c)?LM[A]:PM[A]});if(l.nameLocation=c,n.add(O),O.decomposeTransform(),t.shouldNameMoveOverlap&&I){var F=r.ensureRecord(i);r.resolveAxisNameOverlap(t,r,i,I,y,F)}}}};function gS(t,e,r,i,n,a,o,s){TS(e)||XM(t,e,n,s,i,o);var l=e.labelLayoutList;qM(t,i,l,a),jM(i,t.rotation,l);var u=t.optionHideOverlap;HM(i,l,u),u&&pS(Ce(l,function(f){return f&&!f.label.ignore})),kM(t,r,i,l)}function VM(t,e,r,i){var n=ja(r-t),a,o,s=i[0]>i[1],l=e===`start`&&!s||e!==`start`&&s;return Ii(n-ci/2)?(o=l?`bottom`:`top`,a=`center`):Ii(n-ci*1.5)?(o=l?`top`:`bottom`,a=`center`):(o=`middle`,n<ci*1.5&&n>ci/2?a=l?`left`:`right`:a=l?`right`:`left`),{rotation:n,textAlign:a,textVerticalAlign:o}}function HM(t,e,r){var i=t.axis,n=t.get([`axisLabel`,`customValues`]);if(nS(i))return;function a(u,f,c){var p=er(e[f]),h=er(e[c]),v=i.scale;if(!(!p||!h)){if(u==null){if(!r&&n)return;var g=Ca(p.label).labelInfo.tick;if(Sa(v)&&g.notNice||Jt(v)&&g.offInterval){ba(p.label);return}}if(u===!1||p.suggestIgnore){ba(p.label);return}if(h.suggestIgnore){ba(h.label);return}var d=.1;if(!r){var m=[0,0,0,0];p=$h({marginForce:m},p),h=$h({marginForce:m},h)}Xu(p,h,null,{touchThreshold:d})&&ba(u?h.label:p.label)}}var o=t.get([`axisLabel`,`showMinLabel`]),s=t.get([`axisLabel`,`showMaxLabel`]),l=e.length;a(o,0,1),a(s,l-1,l-2)}function GM(t,e,r){t.showMinorTicks||w(e,function(i){if(i&&i.label.ignore)for(var n=0;n<r.length;n++){var a=r[n],o=_S(a),s=Ca(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){ba(a);return}}})}function ba(t){t&&(t.ignore=!0)}function SS(t,e,r,i,n){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,e&&(dt(o,o,e),dt(s,s,e));var f=new vr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ml(f.shape,f.style.lineWidth),f.anid=n+`_`+t[l].tickValue,a.push(f);var c=_S(f);c.onBand=!!t[l].onBand,c.tickValue=t[l].tickValue}return a}function YM(t,e,r,i){var n=i.axis,a=i.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,t.raw.axisTickAutoShow!=null&&(o=!!t.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),l=t.tickDirection*a.get(`length`),f=SS(n.getTicksCoords(),r.transform,l,re(s.getLineStyle(),{stroke:i.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),c=0;c<f.length;c++)e.add(f[c]);return f}function WM(t,e,r,i,n){var a=i.axis,o=i.getModel(`minorTick`);if(!(!t.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel(`lineStyle`),u=n*o.get(`length`),f=re(l.getLineStyle(),re(i.getModel(`axisTick`).getLineStyle(),{stroke:i.get([`axisLine`,`lineStyle`,`color`])})),c=0;c<s.length;c++)for(var p=SS(s[c],r.transform,u,f,`minorticks_`+c),h=0;h<p.length;h++)e.add(p[h])}}function yS(t,e,r){if(TS(t)){var n=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(r.noPxChange){for(var a=!0,o=0;o<n.length;o++)a=a&&n[o]();if(a)return!1}n.length&&(e.remove(t.labelGroup),tv(t,null,null,null))}return!0}function XM(t,e,r,i,n,a){var o=n.axis,s=Sn(t.raw.axisLabelShow,n.get([`axisLabel`,`show`])),l=new We;r.add(l);var u=dS(i);if(!s||o.scale.isBlank()){tv(e,[],l,u);return}var f=n.getModel(`axisLabel`),c=o.getViewLabels(u),p=(Sn(t.raw.labelRotate,f.get(`rotate`))||0)*ci/180,h=dn.innerTextLayout(t.rotation,p,t.labelDirection),v=n.getCategories&&n.getCategories(!0),g=[],d=n.get(`triggerEvent`),m=Infinity,y=-Infinity;w(c,function(x,S){var T,C=x.tick,E=x.formattedLabel,b=x.rawLabel,D=f,A=Zh(o.scale,C);if(v&&v[A]){var O=v[A];N(O)&&O.textStyle&&(D=new ye(O.textStyle,f,n.ecModel))}var M=D.getTextColor()||n.get([`axisLine`,`lineStyle`,`color`]),I=D.getShallow(`align`,!0)||h.textAlign,F=H(D.getShallow(`alignMinLabel`,!0),I),B=H(D.getShallow(`alignMaxLabel`,!0),I),Y=D.getShallow(`verticalAlign`,!0)||D.getShallow(`baseline`,!0)||h.textVerticalAlign,ne=H(D.getShallow(`verticalAlignMinLabel`,!0),Y),te=H(D.getShallow(`verticalAlignMaxLabel`,!0),Y),Q=10+(((T=C.time)===null||T===void 0?void 0:T.level)||0);m=Math.min(m,Q),y=Math.max(y,Q);var ee=new $e({x:0,y:0,rotation:0,silent:dn.isLabelSilent(n),z2:Q,style:ji(D,{text:E,align:S===0?F:S===c.length-1?B:I,verticalAlign:S===0?ne:S===c.length-1?te:Y,fill:V(M)?M(o.type===`category`?b:o.type===`value`?A+``:A,S):M})});ee.anid=`label_`+A;var ue=Ca(ee);if(ue.labelInfo=x,ue.layoutRotation=h.rotation,Il({el:ee,componentModel:n,itemName:E,formatterParamsExtra:{isTruncated:function(){return ee.isTruncated},value:b,tickIndex:S}}),d){var fe=dn.makeAxisEventDataBase(n);fe.targetType=`axisLabel`,fe.value=b,fe.tickIndex=S;var j=x.tick.break;if(j){var ve=j.parsedBreak;fe.break={start:ve.vmin,end:ve.vmax}}o.type===`category`&&(fe.dataIndex=A),ge(ee).eventData=fe,j&&ZM(n,a,ee,j)}g.push(ee),l.add(ee)});tv(e,U(g,function(x){return{label:x,priority:Ca(x).labelInfo.tick.break?x.z2+(y-m+1):x.z2,defaultAttr:{ignore:x.ignore}}}),l,u)}function TS(t){return!!t.labelLayoutList}function tv(t,e,r,i){t.labelLayoutList=e,t.labelGroup=r,t.axisLabelsCreationContext=i}function qM(t,e,r,i){var n=e.get([`axisLabel`,`margin`]);w(r,function(a,o){var s=er(a);if(s){var l=s.label,u=Ca(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ln(kr,KM);var f=e.axis;kr.x=f.dataToCoord(Zh(f.scale,u.labelInfo.tick)),kr.y=t.labelOffset+t.labelDirection*n,kr.rotation=u.layoutRotation,i.add(kr),kr.updateTransform(),i.remove(kr),kr.decomposeTransform(),Ln(l,kr),l.markRedraw(),Ko(s,!0),er(s)}})}var kr=new Pe;var KM=new Pe;function rv(t){return!!t}function ZM(t,e,r,i){r.on(`click`,function(n){var a={type:hS,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};a[t.axis.dim+`AxisIndex`]=t.componentIndex,e.dispatchAction(a)})}function jM(t,e,r){var i=Ae();if(i){var n=i.retrieveAxisBreakPairs(r,function(o){return o&&Ca(o.label).labelInfo.tick.break},!0),a=t.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&w(n,function(o){Jh().adjustBreakLabelPair(t.axis.inverse,e,[er(r[o[0]]),er(r[o[1]])])})}}var wS=dn;function bS(t){var e=t.get(`type`),r=t.getModel(e+`Style`),i;return e===`line`?(i=r.getLineStyle(),i.fill=null):e===`shadow`&&(i=r.getAreaStyle(),i.stroke=null),i}function QM(t,e,r,i,n){var o=iv(r.get(`value`),e.axis,e.ecModel,r.get(`seriesDataIndices`),{precision:r.get([`label`,`precision`]),formatter:r.get([`label`,`formatter`])}),s=r.getModel(`label`),l=ii(s.get(`padding`)||0),u=s.getFont(),f=Hd(o,u),c=n.position,p=f.width+l[1]+l[3],h=f.height+l[0]+l[2],v=n.align;v===`right`&&(c[0]-=p),v===`center`&&(c[0]-=p/2);var g=n.verticalAlign;g===`bottom`&&(c[1]-=h),g===`middle`&&(c[1]-=h/2),$M(c,p,h,i);var d=s.get(`backgroundColor`);(!d||d===`auto`)&&(d=e.get([`axisLine`,`lineStyle`,`color`])),t.label={x:c[0],y:c[1],style:ji(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:d}),z2:10}}function $M(t,e,r,i){var n=i.getWidth(),a=i.getHeight();t[0]=Math.min(t[0]+e,n)-e,t[1]=Math.min(t[1]+r,a)-r,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function iv(t,e,r,i,n){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:n.precision}),o=n.formatter;if(o){var s={value:Yu(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};w(i,function(l){var u=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),P(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function nv(t,e,r){var i=ot();return bn(i,i,r.rotation),Ra(i,i,r.position),Al([t.dataToCoord(e),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],i)}function CS(t,e,r,i,n,a){var o=wS.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=n.get([`label`,`margin`]),QM(e,i,n,a,{position:nv(i.axis,t,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ES(t,e,r){return r=r||0,{x1:t[r],y1:t[1-r],x2:e[r],y2:e[1-r]}}function DS(t,e,r){return r=r||0,{x:t[r],y:t[1-r],width:e[r],height:e[1-r]}}function MS(t,e,r){return Uu(t,{fromStat:{sers:U(e,function(i){return r.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function AS(t,e,r){return[he(ze(e[0],e[1]),t-r/2),ze(t+r/2,he(e[0],e[1]))]}function av(t,e,r){r=r||{};var i=e.axis,n={},a=i.getAxesOnZeroOf()[0],o=i.position,s=a?`onZero`:o,l=i.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get(`offset`)||0,p=l===`x`?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(a){var h=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(h,p[1]),p[0])}n.position=[l===`y`?p[f[s]]:u[0],l===`x`?p[f[s]]:u[3]],n.rotation=Math.PI/2*(l===`x`?0:1);n.labelDirection=n.tickDirection=n.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],n.labelOffset=a?p[f[o]]-p[f.onZero]:0,e.get([`axisTick`,`inside`])&&(n.tickDirection=-n.tickDirection),Sn(r.labelInside,e.get([`axisLabel`,`inside`]))&&(n.labelDirection=-n.labelDirection);var g=e.get([`axisLabel`,`rotate`]);return n.labelRotate=s===`top`?-g:g,n.z2=1,n}var eA=(function(t){se(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(r,i,n,a,o){var s=n.axis,l=s.grid,u=a.get(`type`),f=s.getGlobalExtent(),c=IS(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!==`none`){var h=bS(a),v=tA[u](s,p,f,c,a.get(`seriesDataIndices`),a.ecModel);v.style=h,r.graphicKey=v.type,r.pointer=v}CS(i,r,av(l.getRect(),n),n,a,o)},e.prototype.getHandleTransform=function(r,i,n){var a=av(i.axis.grid.getRect(),i,{labelInside:!1});a.labelMargin=n.get([`handle`,`margin`]);var o=nv(i.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(r,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=IS(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim===`x`?0:1,c=[r.x,r.y];c[f]+=i[f],c[f]=ze(l[1],c[f]),c[f]=he(l[0],c[f]);var p=(u[1]+u[0])/2,h=[p,p];h[f]=c[f];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][f]}},e})(Ux);function IS(t,e){var r={};return r[e.dim+`AxisIndex`]=e.index,t.getCartesian(r)}var tA={line:function(t,e,r,i){return{type:`Line`,subPixelOptimize:!0,shape:ES([e,i[0]],[e,i[1]],RS(t))}},shadow:function(t,e,r,i,n,a){var o=MS(t,n,a),s=i[1]-i[0],l=AS(e,r,o),u=l[0],f=l[1];return{type:`Rect`,shape:DS([u,i[0]],[f-u,s],RS(t))}}};function RS(t){return t.dim===`x`?0:1}var LS=eA;var PS=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=`axisPointer`,e.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Te.color.border,width:1,type:`dashed`},shadowStyle:{color:Te.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Te.color.neutral00,padding:[5,7,5,7],backgroundColor:Te.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:Te.color.accent40,throttle:40}},e})(_e);var Br=K();var iA=w;function Ku(t,e,r){if(!q.node){var i=e.getZr();Br(i).records||(Br(i).records={}),nA(i,e);var n=Br(i).records[t]||(Br(i).records[t]={});n.handler=r}}function nA(t,e){if(Br(t).initialized)return;Br(t).initialized=!0,r(`click`,Ee(ov,`click`)),r(`mousemove`,Ee(ov,`mousemove`)),r(`mousewheel`,Ee(ov,`mousewheel`)),r(`globalout`,oA);function r(i,n){t.on(i,function(a){var o=sA(e);iA(Br(t).records,function(s){s&&n(s,a,o.dispatchAction)}),aA(o.pendings,e)})}}function aA(t,e){var r=t.showTip.length,i=t.hideTip.length,n;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function oA(t,e,r){t.handler(`leave`,null,r)}function ov(t,e,r,i){e.handler(t,r,i)}function sA(t){var e={showTip:[],hideTip:[]},r=function(i){var n=e[i.type];n?n.push(i):(i.dispatchAction=r,t.dispatchAction(i))};return{dispatchAction:r,pendings:e}}function jo(t,e){if(!q.node){var r=e.getZr();(Br(r).records||{})[t]&&(Br(r).records[t]=null)}}var kS=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.render=function(r,i,n){var a=i.getComponent(`tooltip`),o=r.get(`triggerOn`)||a&&a.get(`triggerOn`)||`mousemove|click|mousewheel`;Ku(`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(r,i){jo(`axisPointer`,i)},e.prototype.dispose=function(r,i){jo(`axisPointer`,i)},e.type=`axisPointer`,e})(It);function Qo(t,e){var r=[],i=t.seriesIndex,n;if(i==null||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=Dr(a,t);if(o==null||o<0||L(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,p=u.dim,h=c===`x`||c===`radius`?1:0,v=a.mapDimension(p),g=[];g[h]=a.get(v,o),g[1-h]=a.get(a.getCalculationInfo(`stackResultDimension`),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(U(l.dimensions,function(m){return a.mapDimension(m)}),o))||[];else if(s){var d=s.getBoundingRect().clone();d.applyTransform(s.transform),r=[d.x+d.width/2,d.y+d.height/2]}return{point:r,el:s}}var BS=K();function sv(t,e,r){var i=t.currTrigger,n=[t.x,t.y],a=t,o=t.dispatchAction||oe(r.dispatchAction,r),s=e.getComponent(`axisPointer`).coordSysAxesInfo;if(s){Zu(n)&&(n=Qo({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=Zu(n),u=a.axesInfo,f=s.axesInfo,c=i===`leave`||Zu(n),p={},h={},v={list:[],map:{}},g={showPointer:Ee(fA,h),showTooltip:Ee(cA,v)};w(s.coordSysMap,function(m,y){var _=l||m.containPoint(n);w(s.coordSysAxesInfo[y],function(x,S){var T=x.axis,C=dA(u,x);if(!c&&_&&(!u||C)){var E=C&&C.value;E==null&&!l&&(E=T.pointToData(n)),E!=null&&US(x,E,g,!1,p)}})});var d={};return w(f,function(m,y){var _=m.linkGroup;_&&!h[y]&&w(_.axesInfo,function(x,S){var T=h[S];if(x!==m&&T){var C=T.value;_.mapper&&(C=m.axis.scale.parse(_.mapper(C,zS(x),zS(m)))),d[m.key]=C}})}),w(d,function(m,y){US(f[y],m,g,!0,p)}),pA(h,f,p),hA(v,n,t,o),vA(f,o,r),p}}function US(t,e,r,i,n){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){r.showPointer(t,e);return}var o=uA(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&R(n,s[0]),!i&&t.snap&&a.containData(l)&&l!=null&&(e=l),r.showPointer(t,e,s),r.showTooltip(t,o,l)}}function uA(t,e){var r=e.axis,i=r.dim,n=t,a=[],o=Number.MAX_VALUE,s=-1;return w(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),c,p;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,t,r);p=h.dataIndices,c=h.nestestValue}else{if(p=l.indicesOfNearest(i,f[0],t,r.type===`category`?.5:null),!p.length)return;c=l.getData().get(f[0],p[0])}if(gt(c)){var v=t-c,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,n=c,a.length=0),w(p,function(d){a.push({seriesIndex:l.seriesIndex,dataIndexInside:d,dataIndex:l.getData().getRawIndex(d)})}))}}),{payloadBatch:a,snapToValue:n}}function fA(t,e,r,i){t[e.key]={value:r,payloadBatch:i}}function cA(t,e,r,i){var n=r.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!n.length)){var l=e.coordSys.model,u=ma(l),f=t.map[u];f||(f=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:n.slice()})}}function pA(t,e,r){var i=r.axesInfo=[];w(e,function(n,a){var o=n.axisPointerModel.option,s=t[a];s?(!n.useHandle&&(o.status=`show`),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status=`hide`),o.status===`show`&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function hA(t,e,r,i){if(Zu(e)||!t.list.length){i({type:`hideTip`});return}var n=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:`showTip`,escapeConnect:!0,x:e[0],y:e[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:t.list})}function vA(t,e,r){var i=r.getZr(),n=`axisPointerLastHighlights`,a=BS(i)[n]||{},o=BS(i)[n]={};w(t,function(f,c){var p=f.axisPointerModel.option;p.status===`show`&&f.triggerEmphasis&&w(p.seriesDataIndices,function(h){o[h.seriesIndex+`|`+h.dataIndex]=h})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}w(a,function(f,c){!o[c]&&l.push(u(f))}),w(o,function(f,c){!a[c]&&s.push(u(f))}),l.length&&r.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function dA(t,e){for(var r=0;r<(t||[]).length;r++){var i=t[r];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function zS(t){var e=t.axis.model,r={},i=r.axisDim=t.axis.dim;return r.axisIndex=r[i+`AxisIndex`]=e.componentIndex,r.axisName=r[i+`AxisName`]=e.name,r.axisId=r[i+`AxisId`]=e.id,r}function Zu(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function FS(t){_x.registerAxisPointerClass(`CartesianAxisPointer`,LS),t.registerComponentModel(PS),t.registerComponentView(kS),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var r=e.axisPointer.link;r&&!L(r)&&(e.axisPointer.link=[r])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,r){e.getComponent(`axisPointer`).coordSysAxesInfo=dx(e,r)}}),t.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},sv)}var VS=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.type=`tooltip`,e.dependencies=[`axisPointer`],e.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Te.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Te.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Te.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Te.color.tertiary,fontSize:14}},e})(_e);function ju(t){var e=t.get(`confine`);return e!=null?!!e:t.get(`renderMode`)===`richText`}function HS(t){if(q.domSupported){for(var e=document.documentElement.style,r=0,i=t.length;r<i;r++)if(t[r]in e)return t[r]}}var lv=HS([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]);var GS=HS([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function uv(t,e){if(!t)return e;e=ea(e,!0);var r=t.indexOf(e);return t=r===-1?e:`-`+t.slice(0,r)+`-`+e,t.toLowerCase()}function YS(t,e){var r=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return r?e?r[e]:r:null}var gA=uv(GS,`transition`);var fv=uv(lv,`transform`);var yA=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(q.transform3dSupported?`will-change:transform;`:``);function _A(t){return t=t===`left`?`right`:t===`right`?`left`:t===`top`?`bottom`:`top`,t}function xA(t,e,r){if(!P(r)||r===`inside`)return``;var i=t.get(`backgroundColor`),n=t.get(`borderWidth`);e=ni(e);var a=_A(r),o=Math.max(Math.round(n)*1.5,6),s=``,l=fv+`:`,u;Z([`left`,`right`],a)>-1?(s+=`top:50%`,l+=`translateY(-50%) rotate(`+(u=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,l+=`translateX(-50%) rotate(`+(u=a===`top`?225:45)+`deg)`);var f=u*Math.PI/180,c=o+n,p=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),h=Math.round(((p-Math.SQRT2*n)/2+Math.SQRT2*n-(p-c)/2)*100)/100;s+=`;`+a+`:-`+h+`px`;var v=e+` solid `+n+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+l+`;`,`border-bottom:`+v,`border-right:`+v,`background-color:`+i+`;`].join(``)+`"></div>`}function SA(t,e,r){var i=`cubic-bezier(0.23,1,0.32,1)`,n=``,a=``;return r&&(n=` `+t/2+`s `+i,a=`opacity`+n+`,visibility`+n),e||(n=` `+t+`s `+i,a+=(a.length?`,`:``)+(q.transformSupported?``+fv+n:`,left`+n+`,top`+n)),gA+`:`+a}function WS(t,e,r){var i=t.toFixed(0)+`px`,n=e.toFixed(0)+`px`;if(!q.transformSupported)return r?`top:`+n+`;left:`+i+`;`:[[`top`,n],[`left`,i]];var a=q.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+i+`,`+n+(a?`,0`:``)+`)`;return r?`top:0;left:0;`+fv+`:`+o+`;`:[[`top`,0],[`left`,0],[lv,o]]}function TA(t){var e=[],r=t.get(`fontSize`),i=t.getTextColor();i&&e.push(`color:`+i),e.push(`font:`+t.getFont());var n=H(t.get(`lineHeight`),Math.round(r*3/2));r&&e.push(`line-height:`+n+`px`);var a=t.get(`textShadowColor`),o=t.get(`textShadowBlur`)||0,s=t.get(`textShadowOffsetX`)||0,l=t.get(`textShadowOffsetY`)||0;return a&&o&&e.push(`text-shadow:`+s+`px `+l+`px `+o+`px `+a),w([`decoration`,`align`],function(u){var f=t.get(u);f&&e.push(`text-`+u+`:`+f)}),e.join(`;`)}function wA(t,e,r,i){var n=[],a=t.get(`transitionDuration`),o=t.get(`backgroundColor`),s=t.get(`shadowBlur`),l=t.get(`shadowColor`),u=t.get(`shadowOffsetX`),f=t.get(`shadowOffsetY`),c=t.getModel(`textStyle`),p=cu(t,`html`),h=u+`px `+f+`px `+s+`px `+l;return n.push(`box-shadow:`+h),e&&a>0&&n.push(SA(a,r,i)),o&&n.push(`background-color:`+o),w([`width`,`color`,`radius`],function(v){var g=`border-`+v,d=ea(g),m=t.get(d);m!=null&&n.push(g+`:`+m+(v===`color`?``:`px`))}),n.push(TA(c)),p!=null&&n.push(`padding:`+ii(p).join(`px `)+`px`),n.join(`;`)+`;`}function XS(t,e,r,i,n){var a=e&&e.painter;if(r){var o=a&&a.getViewportRoot();o&&zv(t,o,r,i,n)}else{t[0]=i,t[1]=n;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var qS=(function(){function t(e,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,q.wxa)return null;var i=document.createElement(`div`);i.domBelongToZr=!0,this.el=i;var n=this._zr=e.getZr(),a=r.appendTo,o=a&&(P(a)?document.querySelector(a):yn(a)?a:V(a)&&a(e.getDom()));XS(this._styleCoord,n,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler;mt(n.painter.getViewportRoot(),l,!0),u.dispatch(`mousemove`,l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var r=this._api.getDom(),i=YS(r,`position`),n=r.style;n.position!==`absolute`&&i!==`absolute`&&(n.position=`relative`)}var a=e.get(`alwaysShowContent`);a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},t.prototype.show=function(e,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=yA+wA(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+WS(a[0],a[1],!0)+(`border-color:`+ni(r)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):n.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,r,i,n,a){var o=this.el;if(e==null){o.innerHTML=``;return}var s=``;if(P(a)&&i.get(`trigger`)===`item`&&!ju(i)&&(s=xA(i,n,a)),P(e))o.innerHTML=e+s;else if(e){o.innerHTML=``,L(e)||(e=[e]);for(var l=0;l<e.length;l++)yn(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement(`div`);u.innerHTML=s,o.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},t.prototype.moveTo=function(e,r){if(this.el){var i=this._styleCoord;if(XS(i,this._zr,this._container,e,r),i[0]!=null&&i[1]!=null){var n=this.el.style;w(WS(i[0],i[1]),function(o){n[o[0]]=o[1]})}}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){var e=this,r=this.el.style;this._enableDisplayTransition?(r.visibility=`hidden`,r.opacity=`0`):r.display=`none`,q.transform3dSupported&&(r.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;Fv(e&&e.painter&&e.painter.getViewportRoot(),this._container);var r=this.el;if(r){r.onmouseenter=r.onmousemove=r.onmouseleave=null;var i=r.parentNode;i&&i.removeChild(r)}this.el=this._container=null},t})();var CA=(function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),ZS(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var r=e.get(`alwaysShowContent`);r&&this._moveIfResized(),this._alwaysShowContent=r},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,r,i,n,a){var o=this;N(e)&&Xe(``),this.el&&this._zr.remove(this.el);var s=i.getModel(`textStyle`);this.el=new $e({style:{rich:r.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get(`textShadowColor`),fill:i.get([`textStyle`,`color`]),padding:cu(i,`richText`),verticalAlign:`top`,align:`left`},z:i.get(`z`)}),w([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(u){o.el.style[u]=i.get(u)}),w([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on(`mouseover`,function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on(`mouseout`,function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,r=this.el.getBoundingRect(),i=KS(e.style);return[r.width+i.left+i.right,r.height+i.top+i.bottom]},t.prototype.moveTo=function(e,r){var i=this.el;if(i){var n=this._styleCoord;ZS(n,this._zr,e,r),e=n[0],r=n[1];var a=i.style,o=pi(a.borderWidth||0),s=KS(a);i.x=e+o+s.left,i.y=r+o+s.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),r*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(oe(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t})();function pi(t){return Math.max(0,t)}function KS(t){var e=pi(t.shadowBlur||0),r=pi(t.shadowOffsetX||0),i=pi(t.shadowOffsetY||0);return{left:pi(e-r),right:pi(e+r),top:pi(e-i),bottom:pi(e+i)}}function ZS(t,e,r,i){t[0]=r,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var jS=CA;var EA=new Pe({shape:{x:-1,y:-1,width:2,height:2}});var DA=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=e.type,r}return e.prototype.init=function(r,i){if(!(q.node||!i.getDom())){var n=r.getComponent(`tooltip`),a=this._renderMode=gm(n.get(`renderMode`));this._tooltipContent=a===`richText`?new jS(i):new qS(i,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},e.prototype.render=function(r,i,n){if(!(q.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&r.get(`transitionDuration`)?mu(this,`_updatePosition`,50,`fixRate`):Bo(this,`_updatePosition`)}},e.prototype._initGlobalListener=function(){var i=this._tooltipModel.get(`triggerOn`);Ku(`itemTooltip`,this._api,oe(function(n,a,o){i!==`none`&&(i.indexOf(n)>=0?this._tryShow(a,o):n===`leave`&&this._hide(o))},this))},e.prototype._keepShow=function(){var r=this._tooltipModel,i=this._ecModel,n=this._api,a=r.get(`triggerOn`);if(r.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&a!==`none`&&a!==`click`){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(r,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(r,i,n,a){if(!(a.from===this.uid||q.node||!n.getDom())){var o=QS(a,n);this._ticket=``;var s=a.dataByCoordSys,l=IA(a,i,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:a.position,positionDefault:`bottom`},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=EA;f.x=a.x,f.y=a.y,f.update(),ge(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,i,n,a))return;var c=Qo(a,i),p=c.point[0],h=c.point[1];p!=null&&h!=null&&this._tryShow({offsetX:p,offsetY:h,target:c.el,position:a.position,positionDefault:`bottom`},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(r,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,a.from!==this.uid&&this._hide(QS(a,n))},e.prototype._manuallyAxisShowTip=function(r,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent(`axisPointer`).coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){if($o([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(r,i){var n=r.target;if(this._tooltipModel){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(n){if(ge(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;ln(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(ge(f).dataIndex!=null?l=f:ge(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(r,l,i):u?this._showComponentItemTooltip(r,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(r,i){var n=r.get(`showDelay`);i=oe(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},e.prototype._showAxisTooltip=function(r,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=$o([i.tooltipOption],a),l=this._renderMode,u=[],f=sn(`section`,{blocks:[],noHeader:!0}),c=[],p=new pu;w(r,function(y){w(y.dataByAxis,function(_){var x=n.getComponent(_.axisDim+`Axis`,_.axisIndex),S=_.value,T=x.axis,C=T.scale.parse(S);if(!(!x||S==null)){var E=iv(S,T,n,_.seriesDataIndices,_.valueLabelOpt),b=sn(`section`,{header:E,noHeader:!je(E),sortBlocks:!0,blocks:[]});f.blocks.push(b),w(_.seriesDataIndices,function(D){var A=n.getSeriesByIndex(D.seriesIndex),O=D.dataIndexInside,M=A.getDataParams(O);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Yu(x.axis,{value:C}),M.axisValueLabel=E,M.marker=p.makeTooltipMarker(`item`,ni(M.color),l);var I=jp(A.formatTooltip(O,!0,null)),F=I.frag;if(F){var B=$o([A],a).get(`valueFormatter`);b.blocks.push(B?R({valueFormatter:B},F):F)}I.text&&c.push(I.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var h=i.position,g=ih(f,p,l,s.get(`order`),n.get(`useUTC`),s.get(`textStyle`));g&&c.unshift(g);var d=l===`richText`?`
16
-
17
- `:`<br/>`,m=c.join(d);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+``,o[0],o[1],h,null,p)})},e.prototype._showSeriesItemTooltip=function(r,i,n){var a=this._ecModel,o=ge(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,p=u.getData(c),h=this._renderMode,v=r.positionDefault,g=$o([p.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),d=g.get(`trigger`);if(!(d!=null&&d!==`item`)){var m=u.getDataParams(f,c),y=new pu;m.marker=y.makeTooltipMarker(`item`,ni(m.color),h);var _=jp(u.formatTooltip(f,!1,c)),x=g.get(`order`),S=g.get(`valueFormatter`),T=_.frag,C=T?ih(S?R({valueFormatter:S},T):T,y,h,x,a.get(`useUTC`),g.get(`textStyle`)):_.text,E=`item_`+u.name+`_`+f;this._showOrMove(g,function(){this._showTooltipContent(g,C,m,E,r.offsetX,r.offsetY,r.position,r.target,y)}),n({type:`showTip`,dataIndexInside:f,dataIndex:p.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(r,i,n){var a=this._renderMode===`html`,o=ge(i),l=o.tooltipConfig.option||{},u=l.encodeHTMLContent;if(P(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=G(l),l.content=He(l.content));var c=[l],p=this._ecModel.getComponent(o.componentMainType,o.componentIndex);p&&c.push(p),c.push({formatter:l.content});var h=r.positionDefault,v=$o(c,this._tooltipModel,h?{position:h}:null),g=v.get(`content`),d=Math.random()+``,m=new pu;this._showOrMove(v,function(){var y=G(v.get(`formatterParams`)||{});this._showTooltipContent(v,g,y,d,r.offsetX,r.offsetY,r.position,i,m)}),n({type:`showTip`,from:this.uid})},e.prototype._showTooltipContent=function(r,i,n,a,o,s,l,u,f){if(this._ticket=``,!(!r.get(`showContent`)||!r.get(`show`))){var c=this._tooltipContent;c.setEnterable(r.get(`enterable`));var p=r.get(`formatter`);l=l||r.get(`position`);var h=i,g=this._getNearestPoint([o,s],n,r.get(`trigger`),r.get(`borderColor`),r.get(`defaultBorderColor`,!0)).color;if(p)if(P(p)){var d=r.ecModel.get(`useUTC`),m=L(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;h=p,y&&(h=Ji(m.axisValue,h,d)),h=ta(h,n,!0)}else if(V(p)){var _=oe(function(x,S){x===this._ticket&&(c.setContent(S,f,r,g,l),this._updatePosition(r,l,o,s,c,n,u))},this);this._ticket=a,h=p(n,a,_)}else h=p;c.setContent(h,f,r,g,l),c.show(r,g),this._updatePosition(r,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(r,i,n,a,o){if(n===`axis`||L(i))return{color:a||o};if(!L(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(r,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||r.get(`position`);var c=o.getSize(),p=r.get(`align`),h=r.get(`verticalAlign`),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),V(i)&&(i=i([n,a],s,o.el,v,{viewSize:[u,f],contentSize:c.slice()})),L(i))n=lt(i[0],u),a=lt(i[1],f);else if(N(i)){var g=i;g.width=c[0],g.height=c[1];var d=$l(g,{width:u,height:f});n=d.x,a=d.y,p=null,h=null}else if(P(i)&&l){var m=OA(i,v,c,r.get(`borderWidth`));n=m[0],a=m[1]}else{var m=MA(n,a,o,u,f,p?null:20,h?null:20);n=m[0],a=m[1]}if(p&&(n-=$S(p)?c[0]/2:p===`right`?c[0]:0),h&&(a-=$S(h)?c[1]/2:h===`bottom`?c[1]:0),ju(r)){var m=AA(n,a,o,u,f);n=m[0],a=m[1]}o.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(r,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===r.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],c=(r[l]||{}).dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(p,h){var v=c[h]||{},g=p.seriesDataIndices||[],d=v.seriesDataIndices||[];o=o&&p.value===v.value&&p.axisType===v.axisType&&p.axisId===v.axisId&&g.length===d.length,o&&w(g,function(m,y){var _=d[y];o=o&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&w(p.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],x=a[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=i,!!o},e.prototype._hide=function(r){this._lastDataByCoordSys=null,this._cbParamsList=null,r({type:`hideTip`,from:this.uid})},e.prototype.dispose=function(r,i){q.node||!i.getDom()||(Bo(this,`_updatePosition`),this._tooltipContent.dispose(),jo(`itemTooltip`,i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type=`tooltip`,e})(It);function $o(t,e,r){var i=e.ecModel,n;r?(n=new ye(r,i,i),n=new ye(e.option,n,i)):n=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof ye&&(o=o.get(`tooltip`,!0)),P(o)&&(o={formatter:o}),o&&(n=new ye(o,n,i)))}return n}function QS(t,e){return t.dispatchAction||oe(e.dispatchAction,e)}function MA(t,e,r,i,n,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>i?t-=l+a:t+=a),o!=null&&(e+u+o>n?e-=u+o:e+=o),[t,e]}function AA(t,e,r,i,n){var a=r.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,i)-o,e=Math.min(e+s,n)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function OA(t,e,r,i){var n=r[0],a=r[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(t){case`inside`:s=e.x+u/2-n/2,l=e.y+f/2-a/2;break;case`top`:s=e.x+u/2-n/2,l=e.y-a-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-a/2;break;case`right`:s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function $S(t){return t===`center`||t===`middle`}function IA(t,e,r){var i=to(t).queryOptionMap,n=i.keys()[0];if(!(!n||n===`series`)){var o=Kr(e,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=ge(u).tooltipConfig;if(f&&f.name===t.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}var JS=DA;function RA(t){Lu(FS),t.registerComponentModel(VS),t.registerComponentView(JS),t.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},we),t.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},we)}var LA={label:{enabled:!0},decal:{show:!1}};var eT=K();var tT=K();var rT=zn(PA);function PA(t,e){var r=t.getModel(`aria`);if(!r.get(`enabled`))return;var i=tT(t).scope||(tT(t).scope={}),n=G(LA);pe(n.label,t.getLocaleModel().get(`aria`),!1),pe(r.option,n,!1),a(),o();function a(){if(r.getModel(`decal`).get(`show`)){var p=z();t.eachSeries(function(h){h.isColorBySeries()||(eT(h).scope=p.get(h.type)||p.set(h.type,{}))}),t.eachSeries(function(h){if(V(h.enableAriaDecal)){h.enableAriaDecal();return}var v=h.getData();if(h.isColorBySeries()){var _=Fp(h.ecModel,h.name,i,t.getSeriesCount()),x=v.getVisual(`decal`);v.setVisual(`decal`,S(x,_))}else{var g=h.getRawData(),d={},m=eT(h).scope;v.each(function(T){var C=v.getRawIndex(T);d[C]=T});var y=g.count();g.each(function(T){var C=d[T],E=g.getName(T)||T+``,b=Fp(h.ecModel,E,m,y),D=v.getItemVisual(C,`decal`);v.setItemVisual(C,`decal`,S(D,b))})}function S(T,C){var E=T?R(R({},C),T):C;return E.dirty=!0,E}})}}function o(){var f=e.getZr().dom;if(f){var c=t.getLocaleModel().get(`aria`),p=r.getModel(`label`);if(p.option=re(p.option,c),!!p.get(`enabled`)){if(f.setAttribute(`role`,`img`),p.get(`description`)){f.setAttribute(`aria-label`,p.get(`description`));return}var h=t.getSeriesCount(),v=p.get([`data`,`maxCount`])||10,g=p.get([`series`,`maxCount`])||10,d=Math.min(h,g),m;if(!(h<1)){var y=l();if(y)m=s(p.get([`general`,`withTitle`]),{title:y});else m=p.get([`general`,`withoutTitle`]);var x=[],S=h>1?p.get([`series`,`multiple`,`prefix`]):p.get([`series`,`single`,`prefix`]);m+=s(S,{seriesCount:h}),t.eachSeries(function(b,D){if(D<d){var A=void 0,M=b.get(`name`)?`withName`:`withoutName`;A=h>1?p.get([`series`,`multiple`,M]):p.get([`series`,`single`,M]),A=s(A,{seriesId:b.seriesIndex,seriesName:b.get(`name`),seriesType:u(b.subType)});var I=b.getData();if(I.count()>v){var F=p.get([`data`,`partialData`]);A+=s(F,{displayCnt:v})}else A+=p.get([`data`,`allData`]);for(var B=p.get([`data`,`separator`,`middle`]),Y=p.get([`data`,`separator`,`end`]),ne=p.get([`data`,`excludeDimensionId`]),te=[],Q=0;Q<I.count();Q++)if(Q<v){var ee=I.getName(Q),ue=ne?Ce(I.getValues(Q),function(j,ve){return Z(ne,ve)===-1}):I.getValues(Q),fe=p.get([`data`,ee?`withName`:`withoutName`]);te.push(s(fe,{name:ee,value:ue.join(B)}))}A+=te.join(B)+Y,x.push(A)}});var T=p.getModel([`series`,`multiple`,`separator`]),C=T.get(`middle`),E=T.get(`end`);m+=x.join(C)+E,f.setAttribute(`aria-label`,m)}}}}function s(f,c){if(!P(f))return f;var p=f;return w(c,function(h,v){p=p.replace(new RegExp(`\\{\\s*`+v+`\\s*\\}`,`g`),h)}),p}function l(){var f=t.get(`title`);return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var c=t.getLocaleModel().get([`series`,`typeNames`]);return c[f]||c.chart}}function cv(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},w([`description`,`general`,`series`,`data`],function(r){e[r]!=null&&(e.label[r]=e[r])})}}function NA(t){t.registerPreprocessor(cv),t.registerVisual(t.PRIORITY.VISUAL.ARIA,rT)}var iT=(function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t})();K();var kA=3;var BA=(function(){function t(e,r,i,n,a){var o=Jt(e),s=o?r.getCategories().length:null,l;if(o){var u=r.getCategories(!0);l=u&&!u.length}var f=i.slice();(Yo(e)||Ta(e)||Sa(e))&&(oc(f,Jo(e,r.get(`dataMin`,!0))),sc(f,Jo(e,r.get(`dataMax`,!0)))),_m(f)||(f[0]=f[1]=NaN);var c=[],p=[!1,!1],h=r.get(`min`,!0);h===`dataMin`?(c[0]=f[0],p[0]=!0):(c[0]=Jo(e,V(h)?h({min:f[0],max:f[1]}):h),p[0]=c[0]!=null);var v=r.get(`max`,!0);v===`dataMax`?(c[1]=f[1],p[1]=!0):(c[1]=Jo(e,V(v)?v({min:f[0],max:f[1]}):v),p[1]=c[1]!=null);var g=UA(e,r),d=o?null:f[1]-f[0]||Math.abs(f[0]);c[0]??=o?l?f[0]:s?0:NaN:f[0]-g[0]*d,c[1]??=o?l?f[1]:s?s-1:NaN:f[1]+g[1]*d,!ir(c[0])&&(c[0]=NaN),!ir(c[1])&&(c[1]=NaN);var m=l||xn(c[0])||xn(c[1])||o&&!s,y=Yo(e),_=y&&r.needIncludeZero&&r.needIncludeZero();_&&(c[0]>0&&c[1]>0&&!p[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!p[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var S=Jo(e,r.get(`startValue`,!0)),T=S!=null;!gt(S)&&n&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),gt(S)&&(T||!y||_)&&(S<c[0]&&!p[0]?(c[0]=S,p[0]=!0):S>c[1]&&!p[1]&&(c[1]=S,p[1]=!0));nT(this._i={scale:e,dataMM:f,noZoomEffMM:c,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:S,isBlank:m,incl0:_,tggAxInv:x,ctnShp:a},c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var e=this._i,r=e.zoomMM,i=e.noZoomEffMM,n=e.zoomFixMM,a=e.fixMM,o={fixMM:a,zoomFixMM:n,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return r[0]!=null&&(s[0]=r[0],a[0]=n[0]=!0),r[1]!=null&&(s[1]=r[1],a[1]=n[1]=!0),nT(e,s),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(e,r){this._i.zoomMM[e]=r},t})();function nT(t,e){var r=t.scale,i=t.dataMM;r.sanitize&&(e[0]=r.sanitize(e[0],i),e[1]=r.sanitize(e[1],i),xm(e))}function Jo(t,e){return e==null?null:xn(e)?NaN:t.parse(e)}function UA(t,e){var r;if(Jt(t))r=[0,0];else{var i=e.get(`boundaryGap`);typeof i==`boolean`&&(i=null),r=L(i)?i:[i,i]}return[aT(r[0]),aT(r[1])]}function aT(t){return wr(typeof t==`boolean`?0:t,1)||0}function zA(t,e){var r=t.scale;FA(r,new BA(r,t.model,e,!1,!1),kA)}function FA(t,e,r){t.rawExtentInfo=e,e.from=r}var VA=z();function oT(t,e,r,i,n){t.rawExtentInfo||zA({scale:t,model:e},n||Et());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),i&&a.tggAxInv&&r&&!r.get(`legacyMinMaxDontInverseAxis`)&&(i.inverse=!i.inverse),a}function sT(t,e,r,i){if(r.ctnShp){var n;if(Rx(t,function(s){var l=VA.get(s);if(l){var u=l(t,i);u&&(n=n||[0,0],oc(n,u[0]),sc(n,u[1]),iS(t))}}),!!n){var a=e.getExtent();if(Jt(e))t.onBand||e.setExtent2(ga,ze(a[0],a[0]+n[0]),he(a[1],a[1]+n[1]));else{var o=a.slice();r.zoomFixMM[0]||(o[0]=ze(o[0],e.transformOut(e.transformIn(o[0],null)+n[0],null))),r.zoomFixMM[1]||(o[1]=he(o[1],e.transformOut(e.transformIn(o[1],null)+n[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(ga,o[0],o[1])}}}}function lT(t,e){var r=Ta(t),i=r?t.intervalStub:t,n=e.fixMinMax||[],a=r?t.getExtent():null,o=i.getExtent(),s=Cx(o,n,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=r?GA(i,e):HA(i,e),u=l.intervalPrecision,f=l.interval,c=e.userInterval;c!=null&&(l.interval=c,l.intervalPrecision=fi(c)),n[0]||(s[0]=Me(Cr(s[0]/f)*f,u)),n[1]||(s[1]=Me(Za(s[1]/f)*f,u)),c!=null&&(l.niceExtent=s.slice()),aS(t,n,o,s,a,l)}function HA(t,e){var r=Xo(e.splitNumber,5),i=xa(t),n=e.minInterval,a=e.maxInterval,o=Ri(i/r,!0);n!=null&&o<n&&(o=n),a!=null&&o>a&&(o=a);var s=fi(o),l=t.getExtent(),u=[Me(Za(l[0]/o)*o,s),Me(Cr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function GA(t,e){var r=Xo(e.splitNumber,10),i=t.getExtent(),n=xa(t),a=he(Xs(n),1);r/n*a<=.5&&(a*=10);var s=fi(a),l=[Me(Za(i[0]/a)*a,s),Me(Cr(i[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function uT(t,e,r,i,n){var a=oT(t,e,i,r,n),o=Yo(t)||Sa(t);YA(t,{splitNumber:e.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:e.get(`interval`),minInterval:o?e.get(`minInterval`):null,maxInterval:o?e.get(`maxInterval`):null,rawExtentResult:a}),r&&i&&sT(r,t,a,i)}function YA(t,e){WA[t.type](t,e)}var WA={interval:lT,log:lT,time:Xx,ordinal:we};var Ea=(function(){function t(e){this.otherDims={},e!=null&&R(this,e)}return t})();function fT(t,e){return Qu(t,e).dimensions}function Qu(t,e){oa(t)||(t=sa(t)),e=e||{};var r=e.coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],n=z(),a=[],o=qA(t,r,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&qh(o),l=i===t.dimensionsDefine,u=l?Xh(t):Wh(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(t,o));for(var c=z(f),p=new Jp(o),h=0;h<p.length;h++)p[h]=-1;function v(b){var D=p[b];if(D<0){var A=i[b],O=N(A)?A:{name:A},M=new Ea,I=O.name;I!=null&&u.get(I)!=null&&(M.name=M.displayName=I),O.type!=null&&(M.type=O.type),O.displayName!=null&&(M.displayName=O.displayName);return p[b]=a.length,M.storeDimIndex=b,a.push(M),M}return a[D]}if(!s)for(var h=0;h<o;h++)v(h);c.each(function(b,D){var A=Se(b).slice();if(A.length===1&&!P(A[0])&&A[0]<0){c.set(D,!1);return}var O=c.set(D,[]);w(A,function(M,I){var F=P(M)?u.get(M):M;F!=null&&F<o&&(O[I]=F,d(v(F),D,I))})});var g=0;w(r,function(b){var D,A,O,M;if(P(b))D=b,M={};else{M=b,D=M.name;var I=M.ordinalMeta;M.ordinalMeta=null,M=R({},M),M.ordinalMeta=I,A=M.dimsDef,O=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var F=c.get(D);if(F!==!1){if(F=Se(F),!F.length)for(var B=0;B<(A&&A.length||1);B++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&F.push(g++)}w(F,function(Y,ne){var te=v(Y);if(l&&M.type!=null&&(te.type=M.type),d(re(te,M),D,ne),te.name==null&&A){var Q=A[ne];!N(Q)&&(Q={name:Q}),te.name=te.displayName=Q.name,te.defaultTooltip=Q.defaultTooltip}O&&re(te.otherDims,O)})}});function d(b,D,A){il.get(D)!=null?b.otherDims[D]=A:(b.coordDim=D,b.coordDimIndex=A,n.set(D,!0))}var m=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=m?y||1:0;var x=m||`value`;function S(b){b.name??=b.coordDim}if(s)w(a,function(b){S(b)}),a.sort(function(b,D){return b.storeDimIndex-D.storeDimIndex});else for(var T=0;T<o;T++){var C=v(T);C.coordDim??(C.coordDim=KA(x,n,_),C.coordDimIndex=0,(!m||y<=0)&&(C.isExtraCoord=!0),y--),S(C),C.type==null&&(tu(t,T)===pt.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return ro(a,function(b){return b.name},function(b,D){D>0&&(b.name=b.name+(D-1))}),new Yh({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function qA(t,e,r,i){var n=Math.max(t.dimensionsDetectedCount||1,e.length,r.length,i||0);return w(e,function(a){var o;N(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function KA(t,e,r){if(r||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}function es(t){return t==null?0:t.length||1}function cT(t){return t}var pT=(function(){function t(e,r,i,n,a,o){this._old=e,this._new=r,this._oldKeyGetter=i||cT,this._newKeyGetter=n||cT,this.context=a,this._diffModeMultiple=o===`multiple`}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},t.prototype._executeOneToOne=function(){var e=this._old,r=this._new,i={},n=new Array(e.length),a=new Array(r.length);this._initIndexMap(e,null,n,`_oldKeyGetter`),this._initIndexMap(r,i,a,`_newKeyGetter`);for(var o=0;o<e.length;o++){var s=n[o],l=i[s],u=es(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},t.prototype._executeMultiple=function(){var e=this._old,r=this._new,i={},n={},a=[],o=[];this._initIndexMap(e,i,a,`_oldKeyGetter`),this._initIndexMap(r,n,o,`_newKeyGetter`);for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],c=es(u),p=es(f);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&p===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var h=0;h<c;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(e,r){for(var i=0;i<e.length;i++){var n=e[i],a=r[n],o=es(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[n]=null}},t.prototype._initIndexMap=function(e,r,i,n){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s=`_ec_`+this[n](e[o],o);if(a||(i[o]=s),!!r){var l=r[s],u=es(l);u===0?(r[s]=o,a&&i.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},t})();var jA=(function(){function t(e,r){this._encode=e,this._schema=r}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t})();function hT(t,e){var r={},i=r.encode={},n=z(),a=[],o=[],s={};w(t.dimensions,function(p){var h=t.getDimensionInfo(p),v=h.coordDim;if(v){var g=h.coordDimIndex;pv(i,v)[g]=p,h.isExtraCoord||(n.set(v,1),QA(h.type)&&(a[0]=p),pv(s,v)[g]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(p)}il.each(function(d,m){var y=pv(i,m),_=h.otherDims[m];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};n.each(function(p,h){var v=i[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=U(l,function(p){return t.getDimensionInfo(p).storeDimIndex}),r.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var c=i.tooltip;return c&&c.length?o=c.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,r.userOutput=new jA(s,e),r}function pv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function vT(t){return t===`category`?`ordinal`:t===`time`?`time`:`float`}function QA(t){return!(t===`ordinal`||t===`time`)}var ts=N;var hi=U;var $A=typeof Int32Array>`u`?Array:Int32Array;var JA=`e\0\0`;var dT=-1;var eO=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`];var tO=[`_approximateExtent`];var mT;var $u;var rs;var is;var hv;var ns;var vv;var dv=(function(){function t(e,r){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var i,n=!1;Hu(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(n=!0,i=e),i=i||[`x`,`y`];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var c=i[f],p=P(c)?new Ea({name:c}):c instanceof Ea?c:new Ea(c),h=p.name;p.type=p.type||`float`,p.coordDim||(p.coordDim=h,p.coordDimIndex=0);var v=p.otherDims=p.otherDims||{};o.push(h),a[h]=p,u[h]!=null&&(l=!0),p.createInvertedIndices&&(s[h]=[]),n&&(p.storeDimIndex=f),v.itemName===0&&(this._nameDimIdx=p.storeDimIndex),v.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=z();w(o,function(d){g.set(a[d].storeDimIndex,d)})}}return t.prototype.getDimension=function(e){var r=this._recognizeDimIndex(e);if(r==null)return e;if(r=e,!this._dimOmitted)return this.dimensions[r];var i=this._dimIdxToName.get(r);if(i!=null)return i;var n=this._schema.getSourceDimension(r);if(n)return n.name},t.prototype.getDimensionIndex=function(e){var r=this._recognizeDimIndex(e);if(r!=null)return r;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(ae(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var r=this._dimInfos;this._getDimInfo=e?function(i){return r.hasOwnProperty(i)?r[i]:void 0}:function(i){return r[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,r){var i=this._dimSummary;if(r==null)return i.encodeFirstDimNotExtra[e];var n=i.encode[e];return n?n[r]:null},t.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,r,i){var n=this,a;if(e instanceof ko&&(a=e),!a){var o=this.dimensions,s=oa(e)||ke(e)?new lu(e,o.length):e;a=new ko;var l=hi(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=hT(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var r=this._store.appendData(e);this._doInit(r[0],r[1])},t.prototype.appendValues=function(e,r){var i=this._store.appendValues(e,r&&r.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=r[l],o&&vv(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,r=this.dimensions,i=0;i<r.length;i++){var n=this._dimInfos[r[i]];n.ordinalMeta&&e.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Mt&&!e.fillStorage},t.prototype._doInit=function(e,r){if(!(e>=r)){var n=this._store.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList;if(n.getSource().sourceFormat===Ye&&!n.pure)for(var u=[],f=e;f<r;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&cm(c)&&(this.hasItemOption=!0),c){var p=c.name;a[f]==null&&p!=null&&(a[f]=Ct(p,null));var h=c.id;o[f]==null&&h!=null&&(o[f]=Ct(h,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<r;f++)vv(this,f);mT(this)}},t.prototype.getApproximateExtent=function(e,r){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),r)},t.prototype.setApproximateExtent=function(e,r){r=this.getDimension(r),this._approximateExtent[r]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,r){ts(e)?R(this._calculationInfo,e):this._calculationInfo[e]=r},t.prototype.getName=function(e){var r=this.getRawIndex(e),i=this._nameList[r];return i==null&&this._nameDimIdx!=null&&(i=rs(this,this._nameDimIdx,r)),i??=``,i},t.prototype._getCategory=function(e,r){var i=this._store.get(e,r),n=this._store.getOrdinalMeta(e);return n?n.categories[i]:i},t.prototype.getId=function(e){return $u(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.get(n.storeDimIndex,r)},t.prototype.getByRawIndex=function(e,r){var i=this._store,n=this._dimInfos[e];if(n)return i.getByRawIndex(n.storeDimIndex,r)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,r){var i=this,n=this._store;return L(e)?n.getValues(hi(e,function(a){return i._getStoreDimIndex(a)}),r):n.getValues(e)},t.prototype.hasValue=function(e){for(var r=this._dimSummary.dataDimIndicesOnCoord,i=0,n=r.length;i<n;i++)if(isNaN(this._store.get(r[i],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var r=0,i=this._store.count();r<i;r++)if(this.getName(r)===e)return r;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,r){var i=e&&this._invertedIndicesMap[e],n=i&&i[r];return n==null||isNaN(n)?dT:n},t.prototype.each=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]);var n=i||this,a=hi(is(e),this._getStoreDimIndex,this);this._store.each(a,n?oe(r,n):r)},t.prototype.filterSelf=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]);var n=i||this,a=hi(is(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?oe(r,n):r),this},t.prototype.selectRange=function(e){"use strict";var r=this,i={},n=ie(e),a=[];return w(n,function(o){var s=r._getStoreDimIndex(o);i[s]=e[o],a.push(s)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(e,r,i){"use strict";V(e)&&(i=r,r=e,e=[]),i=i||this;var n=[];return this.each(e,function(){n.push(r&&r.apply(this,arguments))},i),n},t.prototype.map=function(e,r,i,n){"use strict";var a=i||n||this,o=hi(is(e),this._getStoreDimIndex,this),s=ns(this);return s._store=this._store.map(o,a?oe(r,a):r),s},t.prototype.modify=function(e,r,i,n){var o=i||n||this,s=hi(is(e),this._getStoreDimIndex,this);this._store.modify(s,o?oe(r,o):r)},t.prototype.downSample=function(e,r,i,n){var a=ns(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),r,i,n),a},t.prototype.minmaxDownSample=function(e,r){var i=ns(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),r),i},t.prototype.lttbDownSample=function(e,r){var i=ns(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),r),i},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var r=this.hostModel;return new ye(this.getRawDataItem(e),r,r&&r.ecModel)},t.prototype.diff=function(e){var r=this;return new pT(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return $u(e,i)},function(i){return $u(r,i)})},t.prototype.getVisual=function(e){var r=this._visual;return r&&r[e]},t.prototype.setVisual=function(e,r){this._visual=this._visual||{},ts(e)?R(this._visual,e):this._visual[e]=r},t.prototype.getItemVisual=function(e,r){var i=this._itemVisuals[e];return(i&&i[r])??this.getVisual(r)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,r){var i=this._itemVisuals,n=i[e];n||(n=i[e]={});var a=n[r];return a??(a=this.getVisual(r),L(a)?a=a.slice():ts(a)&&(a=R({},a)),n[r]=a),a},t.prototype.setItemVisual=function(e,r,i){var n=this._itemVisuals[e]||{};this._itemVisuals[e]=n,ts(r)?R(n,r):n[r]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,r){ts(e)?R(this._layout,e):this._layout[e]=r},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,r,i){this._itemLayouts[e]=i?R(this._itemLayouts[e]||{},r):r},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,r){hg(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,r),this._graphicEls[e]=r},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,r){w(this._graphicEls,function(i,n){i&&e&&e.call(r,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:hi(this.dimensions,this._getDimInfo,this),this.hostModel)),hv(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,r){var i=this[e];V(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var n=i.apply(this,arguments);return r.apply(this,[n].concat(cs(arguments)))})},t.internalField=(function(){mT=function(e){var r=e._invertedIndicesMap;w(r,function(i,n){var a=e._dimInfos[n],o=a.ordinalMeta,s=e._store;if(o){i=r[n]=new $A(o.categories.length);for(var l=0;l<i.length;l++)i[l]=dT;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},rs=function(e,r,i){return Ct(e._getCategory(r,i),null)},$u=function(e,r){var i=e._idList[r];return i==null&&e._idDimIdx!=null&&(i=rs(e,e._idDimIdx,r)),i??=JA+r,i},is=function(e){return L(e)||(e=e!=null?[e]:[]),e},ns=function(e){var r=new t(e._schema?e._schema:hi(e.dimensions,e._getDimInfo,e),e.hostModel);return hv(r,e),r},hv=function(e,r){w(eO.concat(r.__wrappedMethods||[]),function(i){r.hasOwnProperty(i)&&(e[i]=r[i])}),e.__wrappedMethods=r.__wrappedMethods,w(tO,function(i){e[i]=G(r[i])}),e._calculationInfo=R({},r._calculationInfo)},vv=function(e,r){var i=e._nameList,n=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=i[r],l=n[r];if(s==null&&a!=null&&(i[r]=s=rs(e,a,r)),l==null&&o!=null&&(n[r]=l=rs(e,o,r)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+=`__ec__`+f),n[r]=l}}})(),t})();var iO=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=`dataset`,r}return e.prototype.init=function(r,i,n){t.prototype.init.call(this,r,i,n),this._sourceManager=new fu(this),eh(this)},e.prototype.mergeOption=function(r,i){t.prototype.mergeOption.call(this,r,i),eh(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type=`dataset`,e.defaultOption={seriesLayoutBy:ct},e})(_e);var nO=(function(t){se(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=`dataset`,r}return e.type=`dataset`,e})(It);function sG(t){t.registerComponentModel(iO),t.registerComponentView(nO)}var _T={};LHe(_T,{createDimensions:()=>fT,createList:()=>pO,createScale:()=>vO,createSymbol:()=>pa,createTextStyle:()=>mO,dataStack:()=>hO,enableHoverEmphasis:()=>Vc,getECData:()=>ge,getLayoutRect:()=>$l,mixinAxisModelCommonMethods:()=>dO});var aO=(function(){function t(e){this.coordSysDims=[],this.axisMap=z(),this.categoryAxisMap=z(),this.coordSysName=e}return t})();function gT(t){var e=t.get(`coordinateSystem`),r=new aO(e),i=oO[e];if(i)return i(t,r,r.axisMap,r.categoryAxisMap),r}var oO={cartesian2d:function(t,e,r,i){var n=t.getReferringComponents(`xAxis`,nr).models[0],a=t.getReferringComponents(`yAxis`,nr).models[0];e.coordSysDims=[`x`,`y`],r.set(`x`,n),r.set(`y`,a),Da(n)&&(i.set(`x`,n),e.firstCategoryDimIndex=0),Da(a)&&(i.set(`y`,a),e.firstCategoryDimIndex??=1)},singleAxis:function(t,e,r,i){var n=t.getReferringComponents(`singleAxis`,nr).models[0];e.coordSysDims=[`single`],r.set(`single`,n),Da(n)&&(i.set(`single`,n),e.firstCategoryDimIndex=0)},polar:function(t,e,r,i){var n=t.getReferringComponents(`polar`,nr).models[0],a=n.findAxisModel(`radiusAxis`),o=n.findAxisModel(`angleAxis`);e.coordSysDims=[`radius`,`angle`],r.set(`radius`,a),r.set(`angle`,o),Da(a)&&(i.set(`radius`,a),e.firstCategoryDimIndex=0),Da(o)&&(i.set(`angle`,o),e.firstCategoryDimIndex??=1)},geo:function(t,e,r,i){e.coordSysDims=[`lng`,`lat`]},parallel:function(t,e,r,i){var n=t.ecModel,a=n.getComponent(`parallel`,t.get(`parallelIndex`)),o=e.coordSysDims=a.dimensions.slice();w(a.parallelAxisIndex,function(s,l){var u=n.getComponent(`parallelAxis`,s),f=o[l];r.set(f,u),Da(u)&&(i.set(f,u),e.firstCategoryDimIndex??=l)})},matrix:function(t,e,r,i){var n=t.getReferringComponents(`matrix`,nr).models[0];e.coordSysDims=[`x`,`y`];var a=n.getDimensionModel(`x`),o=n.getDimensionModel(`y`);r.set(`x`,a),r.set(`y`,o),i.set(`x`,a),i.set(`y`,o)}};function Da(t){return t.get(`type`)===`category`}function sO(t,e){var r=t.get(`coordinateSystem`),i=Ao.get(r),n;return e&&e.coordSysDims&&(n=U(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s)o.type=vT(s.get(`type`));return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||[`x`,`y`]),n}function lO(t,e,r){var i,n;return r&&w(t,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(i??=o,a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(t[i].otherDims.itemName=0),i}function uO(t,e,r){r=r||{};var i=e.getSourceManager(),n,a=!1;t?(a=!0,n=sa(t)):(n=i.getSource(),a=n.sourceFormat===Ye);var o=gT(e),s=sO(e,o),l=r.useEncodeDefaulter,u=V(l)?l:l?Ee(qy,s,e):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},c=Qu(n,f),p=lO(c.dimensions,r.createInvertedIndices,o),h=a?null:i.getSharedDataStore(c),v=Gu(e,{schema:c,store:h}),g=new dv(c,e);g.setCalculationInfo(v);var d=p!=null&&fO(n)?function(m,y,_,x){return x===p?_:this.defaultDimValueGetter(m,y,_,x)}:null;return g.hasItemOption=!1,g.initData(a?n:h,null,d),g}function fO(t){if(t.sourceFormat===Ye)return!L(Er(cO(t.data||[])))}function cO(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var yT=uO;function pO(t){return yT(null,t)}var hO={isDimensionStacked:Kh,enableDataStack:Gu,getStackedDimension:eS};function vO(t,e){var r=e;e instanceof ye||(r=new ye(e));var i=tS(r),n=rS(r,i,!1);return t[1]<t[0]&&(t=t.slice().reverse()),uT(n,r,null,null,t),n}function dO(t){nt(t,iT)}function mO(t,e){return e=e||{},ji(t,null,null,e.state!==`normal`)}var xT={};LHe(xT,{MAX_SAFE_INTEGER:()=>im,asc:()=>Ws,getPercentWithPrecision:()=>tm,getPixelPrecision:()=>em,getPrecision:()=>wt,getPrecisionSafe:()=>ec,isNumeric:()=>$a,isRadianAroundZero:()=>Ii,linearMap:()=>$d,nice:()=>Ri,numericToNumber:()=>Bt,parseDate:()=>bt,parsePercent:()=>lt,quantile:()=>nm,quantity:()=>Xs,quantityExponent:()=>Qa,reformIntervals:()=>am,remRadian:()=>ja,round:()=>Jd});var ST={};LHe(ST,{Arc:()=>Wi,BezierCurve:()=>bo,BoundingRect:()=>X,Circle:()=>Gi,CompoundPath:()=>gl,Ellipse:()=>go,Group:()=>We,Image:()=>Vt,IncrementalDisplayable:()=>Cl,Line:()=>vr,LinearGradient:()=>_l,Polygon:()=>To,Polyline:()=>wo,RadialGradient:()=>xl,Rect:()=>Pe,Ring:()=>So,Sector:()=>xo,Text:()=>$e,clipPointsByRect:()=>cp,clipRectByRect:()=>pp,createIcon:()=>Do,extendPath:()=>sp,extendShape:()=>op,getShapeClass:()=>lp,getTransform:()=>fp,initProps:()=>Kn,makeImage:()=>Eo,makePath:()=>Zn,mergePath:()=>up,registerShape:()=>At,resizePath:()=>Dl,updateProps:()=>Ir});var TT={};LHe(TT,{addCommas:()=>Mo,capitalFirst:()=>zy,encodeHTML:()=>He,formatTime:()=>Uy,formatTpl:()=>ta,getTextRect:()=>Pp,getTooltipMarker:()=>Zl,normalizeCssArray:()=>ii,toCamelCase:()=>ea,truncateText:()=>hc});var wT={};LHe(wT,{bind:()=>oe,clone:()=>G,curry:()=>Ee,defaults:()=>re,each:()=>w,extend:()=>R,filter:()=>Ce,indexOf:()=>Z,inherits:()=>fs,isArray:()=>L,isFunction:()=>V,isObject:()=>N,isString:()=>P,map:()=>U,merge:()=>pe,reduce:()=>at});function WG(t){var e=Lr.extend(t);return Lr.registerClass(e),e}function XG(t){var e=dr.extend(t);return dr.registerClass(e),e}function bT(t,e,r){var i=Ie.createCanvas(),n=e.getWidth(),a=e.getHeight(),o=i.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=n+`px`,o.height=a+`px`,i.setAttribute(`data-zr-dom-id`,t)),i.width=n*r,i.height=a*r,i}function Ju(t){return!t.__cursors.get(Zc)}function CT(t){var e=t.__cursors.get(Zc);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var mv=(function(t){W(e,t);function e(r,i,n){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=qn,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0};var o;n=n||Di,typeof r==`string`?o=bT(r,i,n):N(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(ps(o),o.onselectstart=function(){return!1},s.padding=`0`,s.margin=`0`,s.borderWidth=`0`),a.painter=i,a.dpr=n,a}return e.prototype.afterBrush=function(){this.__prevIdx=CT(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=bT(`back-`+this.id,this.painter,r),this.ctxBack=this.domBack.getContext(`2d`),r!==1&&this.ctxBack.scale(r,r)},e.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new X(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new X(0,0,0,0);S.copy(x),o.push(S)}else{for(var T=!1,C=Infinity,E=0,b=0;b<o.length;++b){var D=o[b];if(D.intersect(x)){var A=new X(0,0,0,0);A.copy(D),A.union(x),o[b]=A,T=!0;break}else if(l){u.copy(x),u.union(D);var O=x.width*x.height,M=D.width*D.height,F=u.width*u.height-O-M;F<C&&(C=F,E=b)}}if(l&&(o[E].union(x),T=!0),!T){var S=new X(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var c=CT(this),p=c.startIdx;p<c.endIdx;++p){var h=r[p];if(h){var v=h.shouldBePainted(n,a,!0,!0),g=h.__isRendered&&(h.__dirty&Re||!v)?h.getPrevPaintRect():null;g&&f(g);var d=v&&(h.__dirty&Re||!h.__isRendered)?h.getPaintRect():null;d&&f(d)}}for(var m=this.__prevIdx,p=m.startIdx;p<m.endIdx;++p){var h=i[p],v=h&&h.shouldBePainted(n,a,!0,!0);if(h&&(!v||!h.__zr)&&h.__isRendered){var g=h.getPrevPaintRect();g&&f(g)}}var y;do{y=!1;for(var p=0;p<o.length;){if(o[p].isZero()){o.splice(p,1);continue}for(var _=p+1;_<o.length;)o[p].intersect(o[_])?(y=!0,o[p].union(o[_]),o.splice(_,1)):_++;p++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+`px`,o.height=i+`px`),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},e.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!r,f=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(a,0,0,s/c,l/c));var h=this.domBack;function v(g,d,m,y){if(o.clearRect(g,d,m,y),i&&i!==`transparent`){var _=void 0;if(zr(i))_=(i.global||i.__width===m&&i.__height===y)&&i.__canvasGradient||Vo(o,i,{x:0,y:0,width:m,height:y}),i.__canvasGradient=_,i.__width=m,i.__height=y;else Av(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,_=wu(o,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,d,m,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(h,g,d,m,y),o.restore())}!n||u?v(0,0,s,l):n.length&&w(n,function(g){v(g.x*c,g.y*c,g.width*c,g.height*c)})},e})(Qe);var ET=1e5;var mn=314159;var gv=void 0;var yO=1;var yv=2;function _O(t){return t?t.__builtin__?!0:!(typeof t.resize!=`function`||typeof t.refresh!=`function`):!1}function xO(t,e){var r=document.createElement(`div`);return r.style.cssText=[`position:relative`,`width:`+t+`px`,`height:`+e+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,r}function DT(t,e,r,i){var n=new mv(t,e,e.dpr);return n.zlevel=r,n.zlevel2=i,n.__builtin__=!0,MT(n),n}function MT(t){t.__cursorStack=[],t.__cursors=z()}function SO(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function TO(t,e){var r=t.__cursors,i=+e;return r.get(i)||(t.__cursorStack.push(i),r.set(i,SO({key:i})))}function ef(t,e){for(var r=t.__cursorStack,i=0;i<r.length;i++)e(t.__cursors.get(r[i]))}function _v(t,e){var r=t.layers;return r[e]||(r[e]=new Array(3))}function rt(t,e,r){for(var i=t.layerStack,n=0;n<i.length;n++){var a=i[n].zl,o=i[n].zl2,s=t.layers[a][o];(!r||(!(r&as)||s.__builtin__)&&(!(r&xv)||!s.__builtin__)&&(!(r&AT)||s!==t.hoverlayer))&&e(s,a,o,n)}}var as=1;var xv=2;var AT=4;var tf=as|AT;var OT=(function(){function t(e,r,i,n){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var a=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=i=R({},i||{}),this.dpr=i.devicePixelRatio||Di,this._singleCanvas=a,this.root=e;if(e.style&&(ps(e),e.innerHTML=``),this.storage=r,this._prevDisplayList=[],a){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var c=DT(l,this,mn,qn);c.initContext(),this._insertLayer(c,mn,qn,!0),this._domRoot=e}else{this._width=Ho(e,0,i),this._height=Ho(e,1,i);var s=this._domRoot=xO(this._width,this._height);e.appendChild(s)}}return t.prototype.getType=function(){return`canvas`},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var r;e&&!N(e)?r={paintAll:!!e}:r=e||{};var i=H(r.refresh,!0),n=H(r.refreshHover,!1);if(n&&(this._hoverLayerDirty=yv),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var a=this.storage.getDisplayList(!0);this._updateLayerStatus(a,r.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(a,o,this._redrawId);var s=this._backgroundColor;return rt(this._i,function(l,u,f,c){l.refresh&&l.refresh(c===0?s:null)},xv),this._opts.useDirtyRect&&(this._prevDisplayList=a.slice()),this},t.prototype._paintHoverList=function(e){var r=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=gv,i!==gv&&(!r&&i===yv&&(r=this._i.hoverlayer=this._ensureLayer(ET)),!!r)){r.clear();for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){a||(a=r.ctx,a.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),li(a,l,n),u&&(l.style=f)}}a&&(fn(a,n),a.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(ET)},t.prototype.paintOne=function(e,r){bu(e,r)},t.prototype._paintList=function(e,r,i){if(this._redrawId===i){var n=this._doPaintList(e,r);if(this._needsManuallyCompositing&&this._compositeManually(),n)rt(this._i,function(o){o.afterBrush&&o.afterBrush()},tf),this._paintHoverList(e);else{var a=this;Ua(function(){a._paintList(e,r,i)})}}},t.prototype._compositeManually=function(){var e=this._ensureLayer(mn).ctx,r=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,r,i),rt(this._i,function(n){n.virtual&&e.drawImage(n.dom,0,0,r,i)},as)},t.prototype._doPaintList=function(e,r){var i=this,n=!0;return rt(this._i,function(a){var o=!1;if(ef(a,function(c){(c.drawIdx<c.endIdx||c.notClearIdx>=0)&&(o=!0)}),!(!o&&!a.__dirty)){var s=i._opts.useDirtyRect&&!Ju(a)?a.createRepaintRects(e,r,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(a.__dirty){u=!1,a.__dirty=!1;var f=a.zlevel===l.zl&&a.zlevel2===l.zl2?i._backgroundColor:null;a.clear(!1,f,s)}ef(a,function(c){var p=i._paintPerCursor(a,c,e,s,u);n=n&&p})}},tf),q.wxa&&rt(this._i,function(a){a&&a.ctx&&a.ctx.draw&&a.ctx.draw()}),n},t.prototype._paintPerCursor=function(e,r,i,n,a){var o=e.ctx;if(n)if(!n.length)r.drawIdx=r.endIdx;else for(var s=this.dpr,l=0;l<n.length;++l){var u=n[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,r,i,u,a),o.restore()}else o.save(),this._paintPerCursorInRect(e,r,i,null,a),o.restore();return r.drawIdx>=r.endIdx},t.prototype._paintPerCursorInRect=function(e,r,i,n,a){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:a}},s=e.ctx,l=Ju(e),u=l&&Ie.getTime(),f=r.drawIdx,c=r.notClearIdx,p=c>=0?Math.min(c,f):f;p<r.endIdx;p++){var h=i[p];if(!(p<f&&!h.notClear)){if(h.__inHover&&(this._hoverLayerDirty=yv),n!=null){var v=h.getPaintRect();v&&v.intersect(n)&&(li(s,h,o),h.setPrevPaintRect(v))}else li(s,h,o);if(l){if(Ie.getTime()-u>15){p++;break}}}}fn(s,o),r.drawIdx=Math.max(p,f)},t.prototype.getLayer=function(e,r){return this._ensureLayer(e,0,r)},t.prototype._ensureLayer=function(e,r,i){r=r||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(e=mn,r=0);var a=_v(this._i,e)[r];return a||(a=DT(`zr_`+e+`.`+r,this,e,r),this._layerConfig[e]&&pe(a,this._layerConfig[e],!0),(i||n&&e!==mn)&&(a.virtual=!0),this._insertLayer(a,e,r,!1),a.initContext()),a},t.prototype.insertLayer=function(e,r){this._insertLayer(r,e,0,!1)},t.prototype._insertLayer=function(e,r,i,n){var a=this._i,o=a.layers,s=a.layerStack,l=this._domRoot,u=null;if(!(o[r]&&o[r][i])&&_O(e)){for(var f=s.length,c=0;c<f&&(s[c].zl<r||s[c].zl===r&&s[c].zl2<i);)c++;if(c>0&&(u=_v(a,s[c-1].zl)[s[c-1].zl2]),s.splice(c,0,{zl:r,zl2:i}),_v(a,r)[i]=e,!n&&!e.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(e.dom,p.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},t.prototype.eachLayer=function(e,r){return rt(this._i,function(i,n){e.call(r,i,n)})},t.prototype.eachBuiltinLayer=function(e,r){return rt(this._i,function(i,n){e.call(r,i,n)},as)},t.prototype.eachOtherLayer=function(e,r){return rt(this._i,function(i,n){e.call(r,i,n)},xv)},t.prototype.getLayers=function(){var e={};return rt(this._i,function(r,i,n){e[r.id]=r}),e},t.prototype._updateLayerStatus=function(e,r){var i=this;if(i._singleCanvas)for(var n=1;n<e.length;n++){var a=e[n];if(a.zlevel!==e[n-1].zlevel||a.incremental){i._needsManuallyCompositing=!0;break}}rt(i._i,function(d){d.__dirty=!1,ef(d,function(m){m.used=!1,m.endIdxNew=0,m.notClearIdx=-1})},tf);for(var o,s=null,l=null,u=!1,f=0,c=e.length;f<c;f++){var a=e[f],p=a.zlevel,h=a.incremental,v=void 0;if(o!==p&&(o=p,u=!1),h?(u=!0,v=sy):v=u?oy:qn,(!s||p!==s.zlevel||v!==s.zlevel2)&&(s=i._ensureLayer(p,v),l=null,!s.__builtin__)){_n(`ZLevel `+p+` has been used by unknown layer `+s.id);continue}if((!l||h!==l.key)&&(l=TO(s,h),!l.used))if(l.used=!0,!r&&l.first===a.id){var g=f-l.startIdx;l.startIdx=f,l.drawIdx+=g,l.endIdx+=g}else s.__dirty=!0,l.first=a.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,a.__dirty&Re&&!a.__inHover&&((!h||!a.notClear&&f<l.drawIdx)&&(s.__dirty=!0),h&&a.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}rt(i._i,function(d){for(var m=d.__cursorStack,y=d.__cursors,_=m.length-1;_>=0;_--){var x=y.get(m[_]);if(!x.used)d.__dirty=!0,y.removeKey(m[_]),m.splice(_,1);else{var S=x.endIdxNew;(Ju(d)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(d.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}d.__dirty&&(ef(d,function(T){T.drawIdx=T.startIdx}),i._hoverLayerDirty===gv&&(i._hoverLayerDirty=yO))},tf)},t.prototype.clear=function(){return rt(this._i,function(e){e.clear(),MT(e)},as),this},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,rt(this._i,function(r){r.setUnpainted()})},t.prototype.configLayer=function(e,r){if(r){var i=this._layerConfig;i[e]?pe(i[e],r,!0):i[e]=r,rt(this._i,function(n,a){pe(n,i[a],!0)})}},t.prototype.delLayer=function(e){for(var r=this._i.layerStack,i=this._i.layers,n=r.length-1;n>=0;n--){var a=r[n];if(a.zl===e){var o=i[e][a.zl2];if(o.__builtin__)continue;if(r.splice(n,1),i[e][a.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},t.prototype.resize=function(e,r){if(this._domRoot.style){var i=this._domRoot;i.style.display=`none`;var n=this._opts,a=this.root;e!=null&&(n.width=e),r!=null&&(n.height=r),e=Ho(a,0,n),r=Ho(a,1,n),i.style.display=``,(this._width!==e||r!==this._height)&&(i.style.width=e+`px`,i.style.height=r+`px`,rt(this._i,function(o){o.resize(e,r)}),this.refresh({paintAll:!0})),this._width=e,this._height=r}else{if(e==null||r==null)return;this._width=e,this._height=r,this._ensureLayer(mn).resize(e,r)}return this},t.prototype.clearLayer=function(e){w(this._i.layers[e],function(r){r&&!r.__builtin__&&r.clear()})},t.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[mn][0].dom;var r=new mv(`image`,this,e.pixelRatio||this.dpr);r.initContext(),r.clear(!1,e.backgroundColor||this._backgroundColor);var i=r.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;rt(this._i,function(c){c.__builtin__?i.drawImage(c.dom,0,0,n,a):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];li(i,f,o)}fn(i,o)}return r.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t})();function bO(t){t.registerPainter(`canvas`,OT)}var IT=class{constructor(){this.measuredSize=Tt$1({width:0,height:0},{equal:(e,r)=>e.width===r.width&&e.height===r.height}),this.size=this.measuredSize.asReadonly()}observe(e){this.disconnect(),this.measure(e),this.resizeObserver=new ResizeObserver(()=>this.measure(e)),this.resizeObserver.observe(e)}disconnect(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0}measure(e){this.measuredSize.set({width:e.clientWidth,height:e.clientHeight})}};function SY(t){t.preventDefault()}export{cx as $,Qu as A,U as B,Lu as C,xT as Ct,PO as D,PN as E,ye as Et,ST as F,X as G,WG as H,SY as I,Zt as J,XG as K,T1 as L,RA as M,Rv as N,Pn as O,SR as P,cd as Q,TT as R,Lr as S,wr as St,P as T,xo as Tt,WL as U,V,Wz as W,ae as X,_T as Y,bO as Z,J as _,tN as _t,CO as a,jV as at,Kn as b,wT as bt,EC as c,lt as ct,Gr as d,no as dt,de as et,H as f,pS as ft,Ir as g,se as gt,Ii as h,sG as ht,Bv as i,ie as it,R as j,QV as k,Ee as l,m2 as lt,Ih as m,re as mt,$h as n,dv as nt,Ce as o,ji as ot,IT as p,pT as pt,Z as q,Be as r,ge as rt,Ct as s,lo as st,$e as t,dr as tt,Fp as u,mh as ut,K as v,vd as vt,NA as w,xd as wt,L as x,wo as xt,Ki as y,w as yt,Te as z};