infobae-charts 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +15 -15
- package/dist/index.js +5561 -5331
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};require("react/jsx-runtime"),require("react");var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),a=new(function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(a.wxa=!0,a.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?a.worker=!0:!a.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(a.node=!0,a.svgSupported=!0):o(navigator.userAgent,a);function o(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var s=`12px sans-serif`,c=20,l=100,u=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function d(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-c)/l}return t}var f=d(u),p={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=p.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=f[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},m=re([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),h=re([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),g=Object.prototype.toString,_=Array.prototype,v=_.forEach,y=_.filter,b=_.slice,x=_.map,S=function(){}.constructor,C=S?S.prototype:null,w=`__proto__`,T=2311,E=2**53-1;function D(){return T>=E&&(T=0),T++}function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function k(e){if(typeof e!=`object`||!e)return e;var t=e,n=g.call(e);if(n===`[object Array]`){if(!Se(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=k(e[r])}}else if(h[n]){if(!Se(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!m[n]&&!Se(e)&&!de(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==w&&(t[o]=k(e[o]));return t}function A(e,t,n){if(!U(t)||!U(e))return n?k(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==w){var i=e[r],a=t[r];U(a)&&U(i)&&!B(a)&&!B(i)&&!de(a)&&!de(i)&&!le(a)&&!le(i)&&!Se(a)&&!Se(i)?A(i,a,n):(n||!(r in e))&&(e[r]=k(t[r]))}return e}function j(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==w&&(e[n]=t[n]);return e}function ee(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function M(e,t,n){for(var r=L(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}p.createCanvas;function N(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function te(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function ne(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else M(e,t,n)}function P(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function F(e,t,n){if(e&&t){if(e.forEach&&e.forEach===v)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function I(e,t,n){if(!e)return[];if(!t)return _e(e);if(e.map&&e.map===x)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function re(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function ie(e,t,n){if(!e)return[];if(!t)return _e(e);if(e.filter&&e.filter===y)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ae(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function L(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function oe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(b.call(arguments)))}}var R=C&&V(C.bind)?C.call.bind(C.bind):oe;function z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(b.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):g.call(e)===`[object Array]`}function V(e){return typeof e==`function`}function H(e){return typeof e==`string`}function se(e){return g.call(e)===`[object String]`}function ce(e){return typeof e==`number`}function U(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function le(e){return!!m[g.call(e)]}function ue(e){return!!h[g.call(e)]}function de(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function fe(e){return e.colorStops!=null}function pe(e){return g.call(e)===`[object RegExp]`}function me(e){return e!==e}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function W(e,t){return e??t}function ge(e,t,n){return e??t??n}function _e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return b.apply(e,t)}function ve(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function G(e,t){if(!e)throw Error(t)}function ye(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var be=`__ec_primitive__`;function xe(e){e[be]=!0}function Se(e){return e[be]}var Ce=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return L(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),we=typeof Map==`function`;function Te(){return we?new Map:new Ce}var Ee=function(){function e(t){var n=B(t);this.data=Te();var r=this;t instanceof e?t.each(i):t&&F(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return we?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new Ee(e)}function De(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Oe(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&j(n,t),n}function ke(e,t){return e.hasOwnProperty(t)}function Ae(){}var je=180/Math.PI;function Me(e,t){return e??=0,t??=0,[e,t]}function Ne(e){return[e[0],e[1]]}function Pe(e,t,n){return e[0]=t,e[1]=n,e}function Fe(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Ie(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Le(e){return Math.sqrt(Re(e))}function Re(e){return e[0]*e[0]+e[1]*e[1]}function ze(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Be(e,t){var n=Le(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ve(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var He=Ve;function Ue(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var We=Ue;function Ge(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Ke(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function qe(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Je=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ye=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Je(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Je(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Je(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Je(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Je(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Je(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Xe=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var c=r[s];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,t[0]);break;case 2:c.h.call(c.ctx,t[0],t[1]);break;default:c.h.apply(c.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,c=0;c<s;c++){var l=r[c];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(a){case 0:l.h.call(o);break;case 1:l.h.call(o,t[0]);break;case 2:l.h.call(o,t[0],t[1]);break;default:l.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),Ze=Math.log(2);function Qe(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Ze);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Qe(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function $e(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Qe(n,8,0,0,0,r);if(i!==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)*Qe(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var et=`___zrEVENTSAVED`,tt=[];function nt(e,t,n,r,i){return it(tt,t,r,i,!0)&&it(e,n,tt[0],tt[1])}function rt(e,t){e&&n(e),t&&n(t);function n(e){var t=e[et];t&&(t.clearMarkers&&t.clearMarkers(),delete e[et])}}function it(e,t,n,r,i){if(t.getBoundingClientRect&&a.domSupported&&!st(t)){var o=t[et]||(t[et]={}),s=ot(at(t,o),o,i);if(s)return s(e,n,r),!0}return!1}function at(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){F(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ot(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?$e(s,o):$e(o,s))}function st(e){return e.nodeName.toUpperCase()===`CANVAS`}var ct=/([&<>"'])/g,lt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function ut(e){return e==null?``:(e+``).replace(ct,function(e,t){return lt[t]})}var dt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ft=[],pt=a.browser.firefox&&+a.browser.version.split(`.`)[0]<39;function mt(e,t,n,r){return n||={},r?ht(e,t,n):pt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?ht(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function ht(e,t,n){if(a.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(st(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}if(it(ft,e,r,i)){n.zrX=ft[0],n.zrY=ft[1];return}}n.zrX=n.zrY=0}function gt(e){return e||window.event}function _t(e,t,n){if(t=gt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&mt(e,i,t,n)}else{mt(e,t,t,n);var a=vt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&dt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function vt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function yt(e,t,n,r){e.addEventListener(t,n,r)}function bt(e,t,n,r){e.removeEventListener(t,n,r)}var xt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},St=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=mt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Tt)if(Tt.hasOwnProperty(t)){var n=Tt[t](this._track,e);if(n)return n}},e}();function Ct(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function wt(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Tt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Ct(r)/Ct(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=wt(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Et(){return[1,0,0,1,0,0]}function Dt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ot(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function kt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function At(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function jt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Mt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Nt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var Pt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ft=Math.min,It=Math.max,Lt=Math.abs,Rt=[`x`,`y`],zt=[`width`,`height`],Bt=new Pt,Vt=new Pt,Ht=new Pt,Ut=new Pt,Wt=tn(),Gt=Wt.minTv,Kt=Wt.maxTv,qt=[0,0],q=function(){function e(e,t,n,r){Jt(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Ft(e.x,this.x),n=Ft(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?It(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?It(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Xt(Et(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Pt.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Jt(Zt,t.x,t.y,t.width,t.height)),n instanceof e||(n=Jt(Qt,n.x,n.y,n.width,n.height));var s=!!r;Wt.reset(i,s);var c=Wt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(qt[0]=1/0,qt[1]=0,en(l,u,p,m,0,s,a,o),en(d,f,h,g,1,s,a,o),s&&Pt.copy(r,_?Wt.useDir?Wt.dirMinTv:Gt:Kt)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Yt(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&Yt(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Bt.x=Ht.x=t.x,Bt.y=Ut.y=t.y,Vt.x=Ut.x=t.x+t.width,Vt.y=Ht.y=t.y+t.height,Bt.transform(n),Ut.transform(n),Vt.transform(n),Ht.transform(n),e.x=Ft(Bt.x,Vt.x,Ht.x,Ut.x),e.y=Ft(Bt.y,Vt.y,Ht.y,Ut.y);var s=It(Bt.x,Vt.x,Ht.x,Ut.x),c=It(Bt.y,Vt.y,Ht.y,Ut.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=Dt(e||[]),At(e,e,Pe($t,-t.x,-t.y)),Mt(e,e,Pe($t,r,i)),At(e,e,Pe($t,n.x,n.y)),e},e}();q.create;var Jt=q.set,Yt=q.copy,Xt=q.calculateTransform;q.applyTransform,q.contain;var Zt=new q(0,0,0,0),Qt=new q(0,0,0,0),$t=[];function en(e,t,n,r,i,a,o,s){var c=Lt(t-n),l=Lt(r-e),u=Ft(c,l),d=Rt[i],f=Rt[1-i],p=zt[i];t<n||r<e?c<l?(a&&(Kt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Kt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=It(e,n),o[p]=Ft(t,r)-o[d]),a&&(u<qt[0]||Wt.useDir)&&(qt[0]=Ft(u,qt[0]),(c<l||!Wt.bidirectional)&&(Gt[d]=c,Gt[f]=0,Wt.useDir&&Wt.calcDirMTV()),(c>=l||!Wt.bidirectional)&&(Gt[d]=-l,Gt[f]=0,Wt.useDir&&Wt.calcDirMTV())))}function tn(){var e=0,t=new Pt,n=new Pt,r={minTv:new Pt,maxTv:new Pt,useDir:!1,dirMinTv:new Pt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=It(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return Lt(e)<1e-10}return r}var nn=`silent`;function rn(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:an}}function an(){xt(this.event)}var on=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Xe),sn=function(){function e(e,t){this.x=e,this.y=t}return e}(),cn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],ln=new q(0,0,0,0),un=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new sn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new on,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Ye(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(F(cn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=pn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new sn(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new sn(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=rn(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new sn(e,t);if(fn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new q(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(ln.copy(u.getBoundingRect()),u.transform&&ln.applyTransform(u.transform),ln.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(fn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new St;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new sn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Xe);F([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){un.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=pn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||He(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function dn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||nn}return!1}function fn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=dn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==nn)){t.target=o;break}}}function pn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var mn=32,hn=7;function gn(e){for(var t=0;e>=mn;)t|=e&1,e>>=1;return e+t}function _n(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;vn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function vn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function yn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function bn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function xn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Sn(e,t){var n=hn,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=xn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=bn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=xn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=bn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=hn||m>=hn);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-xn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-bn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=hn||g>=hn);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Cn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<mn){a=_n(e,n,r,t),yn(e,n,r,n+a,t);return}var o=Sn(e,t),s=gn(i);do{if(a=_n(e,n,r,t),a<s){var c=i;c>s&&(c=s),yn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var wn=!1;function Tn(){wn||(wn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function En(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Dn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=En}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Cn(n,En)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Tn(),p.z=0),isNaN(p.z2)&&(Tn(),p.z2=0),isNaN(p.zlevel)&&(Tn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=N(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),On=a.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},kn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-kn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?kn.bounceIn(e*2)*.5:kn.bounceOut(e*2-1)*.5+.5}},An=Math.pow,jn=Math.sqrt,Mn=1e-8,Nn=1e-4,Pn=jn(3),Fn=1/3,In=Me(),Ln=Me(),Rn=Me();function zn(e){return e>-Mn&&e<Mn}function Bn(e){return e>Mn||e<-Mn}function Vn(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Hn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Un(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(zn(u)&&zn(d)){if(zn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(zn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=jn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-An(-y,Fn):An(y,Fn),b=b<0?-An(-b,Fn):An(b,Fn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*jn(u*u*u)),S=Math.acos(x)/3,C=jn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Pn*Math.sin(S)))/(3*o),T=(-s+C*(w-Pn*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Wn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(zn(o)){if(Bn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(zn(u))i[0]=-a/(2*o);else if(u>0){var d=jn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Gn(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Kn(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;In[0]=c,In[1]=l;for(var v=0;v<1;v+=.05)Ln[0]=Vn(e,n,i,o,v),Ln[1]=Vn(t,r,a,s,v),g=We(In,Ln),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Nn);y++)m=d-f,h=d+f,Ln[0]=Vn(e,n,i,o,m),Ln[1]=Vn(t,r,a,s,m),g=We(Ln,In),m>=0&&g<p?(d=m,p=g):(Rn[0]=Vn(e,n,i,o,h),Rn[1]=Vn(t,r,a,s,h),_=We(Rn,In),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Vn(e,n,i,o,d),u[1]=Vn(t,r,a,s,d)),jn(p)}function qn(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Vn(e,n,i,o,m),g=Vn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Jn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Yn(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Xn(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(zn(a)){if(Bn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(zn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=jn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function Zn(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Qn(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function $n(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;In[0]=o,In[1]=s;for(var f=0;f<1;f+=.05){Ln[0]=Jn(e,n,i,f),Ln[1]=Jn(t,r,a,f);var p=We(In,Ln);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Nn);m++){var h=l-u,g=l+u;Ln[0]=Jn(e,n,i,h),Ln[1]=Jn(t,r,a,h);var p=We(Ln,In);if(h>=0&&p<d)l=h,d=p;else{Rn[0]=Jn(e,n,i,g),Rn[1]=Jn(t,r,a,g);var _=We(Rn,In);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Jn(e,n,i,l),c[1]=Jn(t,r,a,l)),jn(d)}function er(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Jn(e,n,i,f),m=Jn(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var tr=/cubic-bezier\(([0-9,\.e ]+)\)/;function nr(e){var t=e&&tr.exec(e);if(t){var n=t[1].split(`,`),r=+ye(n[0]),i=+ye(n[1]),a=+ye(n[2]),o=+ye(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Un(0,r,a,1,e,s)&&Vn(0,i,o,1,s[0])}}}var rr=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ae,this.ondestroy=e.ondestroy||Ae,this.onrestart=e.onrestart||Ae,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=V(e)?e:kn[e]||nr(e)},e}(),ir=function(){function e(e){this.value=e}return e}(),ar=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ir(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),or=function(){function e(e){this._list=new ar,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new ir(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),sr={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 cr(e){return e=Math.round(e),e<0?0:e>255?255:e}function lr(e){return e=Math.round(e),e<0?0:e>360?360:e}function ur(e){return e<0?0:e>1?1:e}function dr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?cr(parseFloat(t)/100*255):cr(parseInt(t,10))}function fr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ur(parseFloat(t)/100):ur(parseFloat(t))}function pr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function mr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function hr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var gr=new or(20),_r=null;function vr(e,t){_r&&hr(_r,t),_r=gr.put(e,_r||t.slice())}function yr(e,t){if(e){t||=[];var n=gr.get(e);if(n)return hr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in sr)return hr(t,sr[r]),vr(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){mr(t,0,0,0,1);return}return mr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),vr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){mr(t,0,0,0,1);return}return mr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),vr(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?mr(t,+l[0],+l[1],+l[2],1):mr(t,0,0,0,1);u=fr(l.pop());case`rgb`:if(l.length>=3)return mr(t,dr(l[0]),dr(l[1]),dr(l[2]),l.length===3?u:fr(l[3])),vr(e,t),t;mr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){mr(t,0,0,0,1);return}return l[3]=fr(l[3]),br(l,t),vr(e,t),t;case`hsl`:if(l.length!==3){mr(t,0,0,0,1);return}return br(l,t),vr(e,t),t;default:return}}mr(t,0,0,0,1)}}function br(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=fr(e[1]),i=fr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],mr(t,cr(pr(o,a,n+1/3)*255),cr(pr(o,a,n)*255),cr(pr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function xr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function Sr(e,t){var n=yr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return wr(n,n.length===4?`rgba`:`rgb`)}}function Cr(e,t,n,r){var i=yr(e);if(e)return i=xr(i),t!=null&&(i[0]=lr(V(t)?t(i[0]):t)),n!=null&&(i[1]=fr(V(n)?n(i[1]):n)),r!=null&&(i[2]=fr(V(r)?r(i[2]):r)),wr(br(i),`rgba`)}function wr(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Tr(e,t){var n=yr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Er=new or(100);function Dr(e){if(H(e)){var t=Er.get(e);return t||(t=Sr(e,-.1),Er.put(e,t)),t}if(fe(e)){var n=j({},e);return n.colorStops=I(e.colorStops,function(e){return{offset:e.offset,color:Sr(e.color,-.1)}}),n}return e}var Or=Math.round;function kr(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=yr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Ar=1e-4;function jr(e){return e<Ar&&e>-Ar}function Mr(e){return Or(e*1e3)/1e3}function Nr(e){return Or(e*1e4)/1e4}function Pr(e){return`matrix(`+Mr(e[0])+`,`+Mr(e[1])+`,`+Mr(e[2])+`,`+Mr(e[3])+`,`+Nr(e[4])+`,`+Nr(e[5])+`)`}var Fr={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Ir(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function Lr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Rr(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function zr(e){return e&&!!e.image}function Br(e){return e&&!!e.svgElement}function Vr(e){return zr(e)||Br(e)}function Hr(e){return e.type===`linear`}function Ur(e){return e.type===`radial`}function Wr(e){return e&&(e.type===`linear`||e.type===`radial`)}function Gr(e){return`url(#`+e+`)`}function Kr(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function qr(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*je,i=W(e.scaleX,1),a=W(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Or(o*je)+`deg, `+Or(s*je)+`deg)`),c.join(` `)}var Jr=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return process.env.NODE_ENV!==`production`&&O(`Base64 isn't natively supported in the current environment.`),null}})(),Yr=Array.prototype.slice;function Xr(e,t,n){return(t-e)*n+e}function Zr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Xr(t[a],n[a],r);return e}function Qr(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Xr(t[o][s],n[o][s],r)}return e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ei(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function ti(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ni(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Yr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ri(e){if(P(e)){var t=e.length;if(P(e[0])){for(var n=[],r=0;r<t;r++)n.push(Yr.call(e[r]));return n}return Yr.call(e)}return e}function ii(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function ai(e){return P(e&&e[0])?2:1}var oi=0,si=1,ci=2,li=3,ui=4,di=5,fi=6;function pi(e){return e===ui||e===di}function mi(e){return e===si||e===ci}var hi=[0,0,0,0],gi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=fi,s=t;if(P(t)){var c=ai(t);o=c,(c===1&&!ce(t[0])||c===2&&!ce(t[0][0]))&&(a=!0)}else if(ce(t)&&!me(t))o=oi;else if(H(t)){if(!isNaN(+t))o=oi;else{var l=yr(t);l&&(s=l,o=li)}}else if(fe(t)){var u=j({},s);u.colorStops=I(t.colorStops,function(e){return{offset:e.offset,color:yr(e.color)}}),Hr(t)?o=ui:Ur(t)&&(o=di),s=u}i===0?this.valType=o:(o!==this.valType||o===fi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=V(n)?n:kn[n]||nr(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=mi(r),c=pi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ni(d,f,r):c&&ti(d.colorStops,f.colorStops))}if(!o&&r!==di&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===oi?n[l].additiveValue=n[l].value-p:r===li?n[l].additiveValue=$r([],n[l].value,p,-1):mi(r)&&(n[l].additiveValue=r===si?$r([],n[l].value,p,-1):ei([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===li,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?hi:e[s];if((mi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(mi(i))i===si?Zr(g,f[r],p[r],h):Qr(g,f[r],p[r],h);else if(pi(i)){var _=f[r],v=p[r],y=i===ui;e[s]={type:y?`linear`:`radial`,x:Xr(_.x,v.x,h),y:Xr(_.y,v.y,h),colorStops:I(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Xr(e.offset,n.offset,h),color:ii(Zr([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Xr(_.x2,v.x2,h),e[s].y2=Xr(_.y2,v.y2,h)):e[s].r=Xr(_.r,v.r,h)}else if(c)Zr(g,f[r],p[r],h),n||(e[s]=ii(g));else{var b=Xr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===oi?e[n]=e[n]+r:t===li?(yr(e[n],hi),$r(hi,hi,r,1),e[n]=ii(hi)):t===si?$r(e[n],e[n],r,1):t===ci&&ei(e[n],e[n],r,1)},e}(),_i=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){O(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,L(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new gi(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===li&&c&&(c=ii(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ri(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ri(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new rr({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return I(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ri(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=L(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function vi(){return new Date().getTime()}var yi=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=vi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(On(t),!e._paused&&e.update())}On(t)},t.prototype.start=function(){this._running||(this._time=vi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=vi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=vi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new _i(e,t.loop);return this.addAnimator(n),n},t}(Xe),bi=300,xi=a.domSupported,Si=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:I(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ci={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},wi=!1;function Ti(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Ei(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Di(e){e&&(e.zrByTouch=!0)}function Oi(e,t){return _t(e.dom,new Ai(e,t),!0)}function ki(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Ai=function(){function e(e,t){this.stopPropagation=Ae,this.stopImmediatePropagation=Ae,this.preventDefault=Ae,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),ji={mousedown:function(e){e=_t(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=_t(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=_t(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=_t(this.dom,e);var t=e.toElement||e.relatedTarget;ki(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){wi=!0,e=_t(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){wi||(e=_t(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=_t(this.dom,e),Di(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),ji.mousemove.call(this,e),ji.mousedown.call(this,e)},touchmove:function(e){e=_t(this.dom,e),Di(e),this.handler.processGesture(e,`change`),ji.mousemove.call(this,e)},touchend:function(e){e=_t(this.dom,e),Di(e),this.handler.processGesture(e,`end`),ji.mouseup.call(this,e),+new Date-this.__lastTouchMoment<bi&&ji.click.call(this,e)},pointerdown:function(e){ji.mousedown.call(this,e)},pointermove:function(e){Ti(e)||ji.mousemove.call(this,e)},pointerup:function(e){ji.mouseup.call(this,e)},pointerout:function(e){Ti(e)||ji.mouseout.call(this,e)}};F([`click`,`dblclick`,`contextmenu`],function(e){ji[e]=function(t){t=_t(this.dom,t),this.trigger(e,t)}});var Mi={pointermove:function(e){Ti(e)||Mi.mousemove.call(this,e)},pointerup:function(e){Mi.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Ni(e,t){var n=t.domHandlers;a.pointerEventsSupported?F(Si.pointer,function(r){Fi(t,r,function(t){n[r].call(e,t)})}):(a.touchEventsSupported&&F(Si.touch,function(r){Fi(t,r,function(i){n[r].call(e,i),Ei(t)})}),F(Si.mouse,function(r){Fi(t,r,function(i){i=gt(i),t.touching||n[r].call(e,i)})}))}function Pi(e,t){a.pointerEventsSupported?F(Ci.pointer,n):a.touchEventsSupported||F(Ci.mouse,n);function n(n){function r(r){r=gt(r),ki(e,r.target)||(r=Oi(e,r),t.domHandlers[n].call(e,r))}Fi(t,n,r,{capture:!0})}}function Fi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,yt(e.domTarget,t,n,r)}function Ii(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&bt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Li=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Ri=function(e){r(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Li(t,ji),xi&&(r._globalHandlerScope=new Li(document,Mi)),Ni(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ii(this._localHandlerScope),xi&&Ii(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,xi&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Pi(this,t):Ii(t)}},t}(Xe),zi=1;a.hasGlobalWindow&&(zi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Bi=zi,Vi=.4,Hi=`#333`,Ui=`#ccc`,Wi=`#eee`,Gi=Dt,Ki=5e-5;function qi(e){return e>Ki||e<-Ki}var Ji=[],Yi=[],Xi=Et(),Zi=Math.abs,Qi=function(){function e(){}return e.prototype.getLocalTransform=function(e){return $i(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return qi(this.rotation)||qi(this.x)||qi(this.y)||qi(this.scaleX-1)||qi(this.scaleY-1)||qi(this.skewX)||qi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Gi(n),this.invTransform=null);return}n||=Et(),t?this.getLocalTransform(n):Gi(n),e&&(t?kt(n,e,n):Ot(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Et(),Nt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Ji);var n=Ji[0]<0?-1:1,r=Ji[1]<0?-1:1,i=((Ji[0]-n)*t+n)/Ji[0]||0,a=((Ji[1]-r)*t+r)/Ji[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Et(),kt(Yi,e.invTransform,t),t=Yi);var n=this.originX,r=this.originY;(n||r)&&(Xi[4]=n,Xi[5]=r,kt(Yi,t,Xi),Yi[4]-=n,Yi[5]-=r,t=Yi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&Ge(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Ge(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&Zi(e[0]-1)>1e-10&&Zi(e[3]-1)>1e-10?Math.sqrt(Zi(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ta(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&jt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),$i=Qi.getLocalTransform,ea=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ta(e,t){return ee(e,t,ea)}function na(e){ra||=new or(100),e||=`12px sans-serif`;var t=ra.get(e);return t||(t={font:e,strWidthCache:new or(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:p.measureText(`国`,e).width,asciiCharWidth:p.measureText(`a`,e).width},ra.put(e,t)),t}var ra;function ia(e){if(!(aa>=oa)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=p.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?aa=oa:i>2&&aa++,t}}var aa=0,oa=5;function sa(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ia(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ca(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=p.measureText(t,e.font).width,n.put(t,r)),r}function la(e,t,n,r){var i=ca(na(t),e),a=pa(t);return new q(da(0,i,n),fa(0,a,r),i,a)}function ua(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
-
`);if(i.length===1)return la(i[0],t,n,r);for(var a=new q(0,0,0,0),o=0;o<i.length;o++){var s=la(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function da(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function fa(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function pa(e){return na(e).stWideCharWidth}function ma(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function ha(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=ma(r[0],n.width),l+=ma(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var ga=`__zr_normal__`,_a=ea.concat([`ignore`]),va=re(ea,function(e,t){return e[t]=!0,e},{ignore:!1}),ya={},ba=new q(0,0,0,0),xa=[],Sa=function(){function e(e){this.id=D(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=ba,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(ya,n,d):ha(ya,n,d),i.x=ya.x,i.y=ya.y,a=ya.align,o=ya.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=ma(f[0],d.width),m=ma(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new q(0,0,0,0);i.getLocalTransform(xa),Nt(xa,xa),q.copy(_,d),_.applyTransform(xa)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ui:Hi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&yr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,wr(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},j(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(U(e))for(var n=L(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,_a)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(ga,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ga;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(N(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){O(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Aa(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ma(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Aa(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ma(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=N(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=N(r,e),a=N(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];j(t,i),i.textConfig&&(n||={},j(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=j({},r?this.textConfig:n.textConfig),j(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<_a.length;l++){var u=_a[l],d=i&&va[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!==`production`)throw Error(`Text element has been added to zrender.`);return}if(e===this){if(process.env.NODE_ENV!==`production`)throw Error(`Recursive component attachment.`);return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!==`production`&&e.__zr&&!e.__hostTarget)throw Error(`Text element has been added to zrender.`);e.innerTransformable=new Qi,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},j(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if(process.env.NODE_ENV!==`production`&&!r){O(`Property "`+e+`" is not existed in element `+this.id);return}var i=new _i(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=N(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ca(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ca(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ca(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(console.warn(`DEPRECATED: '`+e+`' has been deprecated. use '`+t+`', '`+r+`' instead`),n[e+t+r]=!0)}function i(e,n,i,a){Object.defineProperty(t,e,{get:function(){if(process.env.NODE_ENV!==`production`&&r(e,i,a),!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){process.env.NODE_ENV!==`production`&&r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}});function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}}Object.defineProperty&&(i(`position`,`_legacyPos`,`x`,`y`),i(`scale`,`_legacyScale`,`scaleX`,`scaleY`),i(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();ne(Sa,Xe),ne(Sa,Qi);function Ca(e,t,n,r,i){n||={};var a=[];ka(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function wa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ta(e){return P(e[0])}function Ea(e,t,n){if(P(t[n])){if(P(e[n])||(e[n]=[]),ue(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),wa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ta(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?wa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else wa(a,i,o);a.length=i.length}}else e[n]=t[n]}function Da(e,t){return e===t||P(e)&&P(t)&&Oa(e,t)}function Oa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ka(e,t,n,r,i,a,o,s){for(var c=L(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!U(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(U(v)&&!P(v)&&!fe(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ka(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=N(m,x);m.splice(S,1)}}if(i.force||(h=ie(h,function(e){return!Da(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ri(n[_]),Ea(n,r,_)}}var x=new _i(n,!1,!1,d?ie(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Aa(e,t,n,r){return!(n&&n.hoverLayer||r)||ja(e)||t&&ja(t)?0:1}function ja(e){return e.type===`text`||e.type===`tspan`}function Ma(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Na=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),process.env.NODE_ENV!==`production`&&e.__hostTarget))throw`This elemenet has been used as an attachment`;return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=N(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=N(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new q(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(q.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(Sa);Na.prototype.type=`group`;var Pa={},Fa={};function Ia(e){delete Fa[e]}function La(e){if(!e)return!1;if(typeof e==`string`)return Tr(e,1)<Vi;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Tr(t[i].color,1);return n/=r,n<Vi}return!1}var Ra=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new Dn,o=n.renderer||`canvas`;if(Pa[o]||(o=L(Pa)[0]),process.env.NODE_ENV!==`production`&&!Pa[o])throw Error(`Renderer '`+o+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var s=new Pa[o](t,i,n,e),c=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var l=!a.node&&!a.worker&&!c?new Ri(s.getViewportRoot(),s.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?a.touchEventsSupported:!!u,f=44,p;d&&(p=W(n.pointerSize,f)),this.handler=new un(i,s,l,s.root,p),this.animation=new yi({stage:{update:c?null:function(){return r._flush(!1)}}}),c||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=La(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.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},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=vi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=vi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Na&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ia(this.id))},e}();function za(e,t){var n=new Ra(D(),e,t);return Fa[n.id]=n,n}function Ba(e,t){Pa[e]=t}var Va;function Ha(e){if(typeof Va==`function`)return Va(e)}function Ua(e){Va=e}var Wa=1e-4,Ga=20;function Ka(e){return e.replace(/^\s+|\s+$/g,``)}var qa=Math.min,J=Math.max,Ja=Math.abs,Ya=Math.round,Xa=Math.floor,Za=Math.ceil,Qa=Math.pow,$a=Math.log,eo=Math.LN10,to=Math.PI,no=Math.random;function ro(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var io=ao;function ao(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return oo(e,t,n)}function oo(e,t,n){return H(e)?so(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function so(e){return!!Ka(e).match(/%$/)}function Y(e,t,n){return process.env.NODE_ENV!==`production`&&G(t!=null),isNaN(t)?n?``+e:+e:(t=qa(J(0,t),Ga),e=(+e).toFixed(t),n?e:+e)}function co(e){return e.sort(function(e,t){return e-t}),e}function lo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Ya(e*t)/t===e)return n}return uo(e)}function uo(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return J(0,(a<0?0:i-1-a)-r)}function fo(e,t,n){var r=Ja(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=$a(2*Ja(n||1)*Ja(r))/eo,a=$a(Ja(t))/eo,o=J(0,Za(-i+a));return isFinite(o)||(o=NaN),o}function po(e,t){var n=J(lo(e),lo(t)),r=e+t;return n>Ga?r:Y(r,n)}var mo=Qa(2,53)-1;function ho(e){var t=to*2;return(e%t+t)%t}function go(e){return e>-Wa&&e<Wa}var _o=/^(?:(\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 vo(e){if(e instanceof Date)return e;if(H(e)){var t=_o.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Ya(e))}function yo(e){return Qa(10,bo(e))}function bo(e){if(e===0)return 0;var t=Xa($a(e)/eo);return e/Qa(10,t)>=10&&t++,t}function xo(e,t){var n=bo(e),r=Qa(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,Y(e,-n)}function So(e){var t=parseFloat(e);return t==e&&(t!==0||!H(e)||e.indexOf(`x`)<=0)?t:NaN}function Co(e){return!isNaN(So(e))}function wo(){return Ya(no()*9)}function To(e,t){return t===0?e:To(t,e%t)}function Eo(e,t){return e==null?t:t==null?e:e*t/To(e,t)}function Do(e){return e!=null&&isFinite(e)}var Oo=`[ECharts] `,ko={},Ao=typeof console<`u`&&console.warn&&console.log;function jo(e,t,n){if(Ao){if(n){if(ko[t])return;ko[t]=!0}console[e](Oo+t)}}function Mo(e,t){jo(`log`,e,t)}function No(e,t){jo(`warn`,e,t)}function X(e,t){jo(`error`,e,t)}function Po(e){process.env.NODE_ENV!==`production`&&jo(`warn`,`DEPRECATED: `+e,!0)}function Fo(e,t,n){process.env.NODE_ENV!==`production`&&Po((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Io(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=``;if(process.env.NODE_ENV!==`production`){var r=function(e){return e===void 0?`undefined`:e===1/0?`Infinity`:e===-1/0?`-Infinity`:me(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:V(e)?`function () { ... }`:pe(e)?e+``:null};n=I(e,function(e){if(H(e))return e;var t=r(e);if(t!=null)return t;if(typeof JSON<`u`&&JSON.stringify)try{return JSON.stringify(e,function(e,t){return r(t)??t})}catch{return`?`}return`?`}).join(` `)}return n}function Lo(e){throw Error(e)}var Ro=`series\0`,zo=`\0_ec_\0`;function Bo(e){return e instanceof Array?e:e==null?[]:[e]}function Vo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Ho=`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`.split(`.`);function Uo(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function Wo(e){return U(e)&&!(e instanceof Array)}function Go(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();F(t,function(e,n){if(!U(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!ns(e.id)&&ts(e.id),e.name!=null&&!ns(e.name)&&ts(e.name))});var s=Ko(e,o,n);return(r||i)&&qo(s,e,o,t),r&&Jo(s,t),r||i?Yo(s,t,i):a&&Xo(s,t),Zo(s),s}function Ko(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||is(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function qo(e,t,n,r){F(r,function(i,a){if(!(!i||i.id==null)){var o=$o(i.id),s=n.get(o);if(s!=null){var c=e[s];G(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Jo(e,t){F(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!is(n)&&!is(a)&&Qo(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Yo(e,t,n){F(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||is(r.existing)||r.existing&&t.id!=null&&!Qo(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Xo(e,t){F(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Zo(e){var t=K();F(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),F(e,function(e){var n=e.newOption;G(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),F(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(U(i)){if(a.name=i.name==null?r?r.name:Ro+n:$o(i.name),r)a.id=$o(r.id);else if(i.id!=null)a.id=$o(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function Qo(e,t,n){var r=es(t[e],null),i=es(n[e],null);return r!=null&&i!=null&&r===i}function $o(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return es(e,``)}function es(e,t){return e==null?t:H(e)?e:ce(e)||se(e)?e+``:t}function ts(e){process.env.NODE_ENV!==`production`&&No("`"+e+"` is invalid id or name. Must be a string or number.")}function ns(e){return se(e)||Co(e)}function rs(e){var t=e.name;return!!(t&&t.indexOf(Ro))}function is(e){return e&&e.id!=null&&$o(e.id).indexOf(zo)===0}function as(e,t,n){F(e,function(e){var r=e.newOption;U(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=os(t,r,e.existing,n))})}function os(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function ss(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?I(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?I(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function cs(){var e=`__ec_inner_`+ls++;return function(t){return t[e]||(t[e]={})}}var ls=wo();function us(e,t,n){var r=ds(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ps(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function ds(e,t){var n;if(H(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return F(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&N(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var fs={useDefault:!0,enableAll:!1,enableNone:!1};function ps(e,t,n,r){r||=fs;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;process.env.NODE_ENV!==`production`&&X('`"none"` or `false` is not a valid value on index option.'),i=-1}return i===`all`&&(r.enableAll?i=a=o=null:(process.env.NODE_ENV!==`production`&&X('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function ms(e,t,n){process.env.NODE_ENV!==`production`&&G(t);var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function hs(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function gs(e){return e===`auto`?a.domSupported?`html`:`richText`:e||`html`}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.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._step,!0)},e})();function _s(){return[1/0,-1/0]}function vs(e,t){Ss(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function ys(e,t){Ss(t)&&t<e[0]&&(e[0]=t)}function bs(e,t){Ss(t)&&t>e[1]&&(e[1]=t)}function xs(e,t){Cs(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Ss(e){return e!=null&&isFinite(e)}function Cs(e,t){return Ss(e)&&Ss(t)&&e<=t}function ws(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Ts(e){Cs(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Es(){var e=`__ec_once_`+Ds++;return function(t,n){process.env.NODE_ENV!==`production`&&G(t),ke(t,e)||(t[e]=1,n())}}var Ds=wo();function Os(e,t,n){var r=K(),i=0;F(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&G(H(o));var s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function ks(e){return process.env.NODE_ENV!==`production`&&G(e.value!=null),e.value+``}function As(e){return process.env.NODE_ENV!==`production`&&G(e!=null),e+``}function js(e,t){return W(t,!0)?e.seriesIndex+2:0}function Ms(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ns(e){return{overallReset:e}}var Ps=`.`,Fs=`___EC__COMPONENT__CONTAINER___`,Is=`___EC__EXTENDED_CLASS___`;function Ls(e){var t={main:``,sub:``};if(e){var n=e.split(Ps);t.main=n[0]||``,t.sub=n[1]||``}return t}function Rs(e){G(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function zs(e){return!!(e&&e[Is])}function Bs(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&F(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,i;return Vs(n)?i=function(e){r(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(i=function(){(e.$constructor||n).apply(this,arguments)},te(i,this)),j(i.prototype,e),i[Is]=!0,i.extend=this.extend,i.superCall=Gs,i.superApply=Ks,i.superClass=n,i}}function Vs(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Hs(e,t){e.extend=t.extend}var Us=Math.round(Math.random()*10);function Ws(e){var t=[`__\0is_clz`,Us++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&G(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function Gs(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Ks(e,t,n){return this.superClass.prototype[t].apply(e,n)}function qs(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Rs(r),e.prototype.type=r;var i=Ls(r);if(!i.sub)process.env.NODE_ENV!==`production`&&t[i.main]&&console.warn(i.main+` exists.`),t[i.main]=e;else if(i.sub!==Fs){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[Fs]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Ls(e),r=[],i=t[n.main];return i&&i[Fs]?F(i,function(e,t){t!==Fs&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ls(e).main]},e.getAllClassMainTypes=function(){var e=[];return F(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ls(e).main];return n&&n[Fs]};function n(e){var n=t[e.main];return(!n||!n[Fs])&&(n=t[e.main]={},n[Fs]=!0),n}}function Js(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&N(r,s)>=0||i&&N(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ys=Js([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Xs=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ys(this,e,t)},e}(),Zs=new or(50);function Qs(e){if(typeof e==`string`){var t=Zs.get(e);return t&&t.image}return e}function $s(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Zs.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!tc(t)&&a.pending.push(o)):(t=p.loadImage(e,ec,ec),t.__zrImageSrc=e,Zs.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function ec(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function tc(e){return e&&e.width&&e.height}var nc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function rc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
-
`);a=
|
|
4
|
-
`),e.isTruncated=s}function
|
|
5
|
-
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=
|
|
6
|
-
`),l=!0),r.accumWidth=m}else{var h=
|
|
7
|
-
`);for(var g=
|
|
8
|
-
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=sa(d,p.charCodeAt(0)),h=!r&&!hc(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function _c(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;q.set(vc,da(n,o,i),fa(r,s,a),o,s),q.intersect(t,vc,null,yc);var c=yc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=da(c.x,c.width,i,!0),e.baseY=fa(c.y,c.height,a,!0)}}var vc=new q(0,0,0,0),yc={outIntersectRect:{},clamp:!0};function bc(e){return e==null?e=``:e+=``}function xc(e){var t=bc(e.text),n=e.font;return Sc(e,ca(na(n),t),pa(n),null)}function Sc(e,t,n,r){var i=new q(da(e.x||0,t,e.textAlign),fa(e.y||0,n,e.textBaseline),t,n),a=r??(Cc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Cc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var wc=`__zr_style_`+Math.round(Math.random()*10),Tc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ec={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Tc[wc]=!0;var Dc=[`z`,`z2`,`invisible`],Oc=[`invisible`],kc=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Mc(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new q(0,0,0,0),t?q.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new q(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:j(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Oe(Tc,e)},t.prototype.useStyle=function(e){e[wc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[wc]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Dc)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=L(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=L(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Oc:Dc,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return j(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ec},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Sa),Ac=new q(0,0,0,0),jc=new q(0,0,0,0);function Mc(e,t,n){return Ac.copy(e.getBoundingRect()),e.transform&&Ac.applyTransform(e.transform),jc.width=t,jc.height=n,!Ac.intersect(jc)}var Nc=Math.min,Pc=Math.max,Fc=Math.sin,Ic=Math.cos,Lc=Math.PI*2,Rc=Me(),zc=Me(),Bc=Me();function Vc(e,t,n,r,i,a){i[0]=Nc(e,n),i[1]=Nc(t,r),a[0]=Pc(e,n),a[1]=Pc(t,r)}var Hc=[],Uc=[];function Wc(e,t,n,r,i,a,o,s,c,l){var u=Wn,d=Vn,f=u(e,n,i,o,Hc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Hc[p]);c[0]=Nc(m,c[0]),l[0]=Pc(m,l[0])}f=u(t,r,a,s,Uc);for(var p=0;p<f;p++){var h=d(t,r,a,s,Uc[p]);c[1]=Nc(h,c[1]),l[1]=Pc(h,l[1])}c[0]=Nc(e,c[0]),l[0]=Pc(e,l[0]),c[0]=Nc(o,c[0]),l[0]=Pc(o,l[0]),c[1]=Nc(t,c[1]),l[1]=Pc(t,l[1]),c[1]=Nc(s,c[1]),l[1]=Pc(s,l[1])}function Gc(e,t,n,r,i,a,o,s){var c=Zn,l=Jn,u=Pc(Nc(c(e,n,i),1),0),d=Pc(Nc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Nc(e,i,f),o[1]=Nc(t,a,p),s[0]=Pc(e,i,f),s[1]=Pc(t,a,p)}function Kc(e,t,n,r,i,a,o,s,c){var l=Ke,u=qe,d=Math.abs(i-a);if(d%Lc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Rc[0]=Ic(i)*n+e,Rc[1]=Fc(i)*r+t,zc[0]=Ic(a)*n+e,zc[1]=Fc(a)*r+t,l(s,Rc,zc),u(c,Rc,zc),i%=Lc,i<0&&(i+=Lc),a%=Lc,a<0&&(a+=Lc),i>a&&!o?a+=Lc:i<a&&o&&(i+=Lc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Bc[0]=Ic(p)*n+e,Bc[1]=Fc(p)*r+t,l(s,Bc,s),u(c,Bc,c))}var Z={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qc=[],Jc=[],Yc=[],Xc=[],Zc=[],Qc=[],$c=Math.min,el=Math.max,tl=Math.cos,nl=Math.sin,rl=Math.abs,il=Math.PI,al=il*2,ol=typeof Float32Array<`u`,sl=[];function cl(e){return Math.round(e/il*1e8)/1e8%2*il}function ll(e,t){var n=cl(e[0]);n<0&&(n+=al);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=al?i=n+al:t&&n-i>=al?i=n-al:!t&&n>i?i=n+(al-cl(n-i)):t&&n<i&&(i=n-(al-cl(i-n))),e[0]=n,e[1]=i}var ul=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=rl(n/Bi/e)||0,this._uy=rl(n/Bi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Z.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=rl(e-this._xi),r=rl(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Z.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Z.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Z.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),sl[0]=r,sl[1]=i,ll(sl,a),r=sl[0],i=sl[1];var o=i-r;return this.addData(Z.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=tl(i)*n+e,this._yi=nl(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Z.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Z.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&ol&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(ol&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,ol&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Yc[0]=Yc[1]=Zc[0]=Zc[1]=Number.MAX_VALUE,Xc[0]=Xc[1]=Qc[0]=Qc[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Z.M:t=r=e[a++],n=i=e[a++],Zc[0]=r,Zc[1]=i,Qc[0]=r,Qc[1]=i;break;case Z.L:Vc(t,n,e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Z.C:Wc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Z.Q:Gc(t,n,e[a++],e[a++],e[a],e[a+1],Zc,Qc),t=e[a++],n=e[a++];break;case Z.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=tl(f)*u+c,i=nl(f)*d+l),Kc(c,l,u,d,f,p,m,Zc,Qc),t=tl(p)*u+c,n=nl(p)*d+l;break;case Z.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Vc(r,i,r+h,i+g,Zc,Qc);break;case Z.Z:t=r,n=i}Ke(Yc,Yc,Zc),qe(Xc,Xc,Qc)}return a===0&&(Yc[0]=Yc[1]=Xc[0]=Xc[1]=0),new q(Yc[0],Yc[1],Xc[0]-Yc[0],Xc[1]-Yc[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Z.M:i=o=e[d++],a=s=e[d++];break;case Z.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(rl(_)>n||rl(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Z.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=qn(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Z.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=er(i,a,y,b,h,g,10),i=h,a=g;break;case Z.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=tl(D)*T+C,s=nl(D)*E+w),m=el(T,E)*$c(al,Math.abs(O)),i=tl(k)*T+C,a=nl(k)*E+w;break;case Z.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Z.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Z.L&&v>0&&(e.lineTo(y,b),v=0),S){case Z.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Z.L:u=n[x++],d=n[x++];var w=rl(u-c),T=rl(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Z.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Gn(c,k,j,M,D,qc),Gn(l,A,ee,N,D,Jc),e.bezierCurveTo(qc[1],Jc[1],qc[2],Jc[2],qc[3],Jc[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case Z.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Qn(c,k,j,D,qc),Qn(l,A,ee,D,Jc),e.quadraticCurveTo(qc[1],Jc[1],qc[2],Jc[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Z.A:var te=n[x++],ne=n[x++],P=n[x++],F=n[x++],I=n[x++],re=n[x++],ie=n[x++],ae=!n[x++],L=P>F?P:F,oe=rl(P-F)>.001,R=I+re,z=!1;if(f){var E=p[g++];h+E>_&&(R=I+re*(_-h)/E,z=!0),h+=E}if(oe&&e.ellipse?e.ellipse(te,ne,P,F,ie,I,R,ae):e.arc(te,ne,L,I,R,ae),z)break lo;C&&(o=tl(I)*P+te,s=nl(I)*F+ne),c=tl(R)*P+te,l=nl(R)*F+ne;break;case Z.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],V=n[x++];if(f){var E=p[g++];if(h+E>_){var H=_-h;e.moveTo(u,d),e.lineTo(u+$c(H,B),d),H-=B,H>0&&e.lineTo(u+B,d+$c(H,V)),H-=V,H>0&&e.lineTo(u+el(B-H,0),d+V),H-=B,H>0&&e.lineTo(u,d+el(V-H,0));break lo}h+=E}e.rect(u,d,B,V);break;case Z.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Z,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function dl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function fl(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Kn(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function pl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:$n(e,t,n,r,i,a,s,c,null)<=l/2}var ml=Math.PI*2;function hl(e){return e%=ml,e<0&&(e+=ml),e}var gl=Math.PI*2;function _l(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%gl<1e-4)return!0;if(a){var d=r;r=hl(i),i=hl(d)}else r=hl(r),i=hl(i);r>i&&(i+=gl);var f=Math.atan2(c,s);return f<0&&(f+=gl),f>=r&&f<=i||f+gl>=r&&f+gl<=i}function vl(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var yl=ul.CMD,bl=Math.PI*2,xl=1e-4;function Sl(e,t){return Math.abs(e-t)<xl}var Cl=[-1,-1,-1],wl=[-1,-1];function Tl(){var e=wl[0];wl[0]=wl[1],wl[1]=e}function El(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Un(t,r,a,s,l,Cl);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Cl[h],_=g===0||g===1?.5:1;Vn(e,n,i,o,g)<c||(f<0&&(f=Wn(t,r,a,s,wl),wl[1]<wl[0]&&f>1&&Tl(),p=Vn(t,r,a,s,wl[0]),f>1&&(m=Vn(t,r,a,s,wl[1]))),f===2?g<wl[0]?d+=p<t?_:-_:g<wl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<wl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Dl(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Xn(t,r,a,s,Cl);if(c===0)return 0;var l=Zn(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Jn(t,r,a,l),f=0;f<c;f++){var p=Cl[f]===0||Cl[f]===1?.5:1,m=Jn(e,n,i,Cl[f]);m<o||(Cl[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Cl[0]===0||Cl[0]===1?.5:1,m=Jn(e,n,i,Cl[0]);return m<o?0:a<t?p:-p}function Ol(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Cl[0]=-c,Cl[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=bl-1e-4){r=0,i=bl;var u=a?1:-1;return o>=Cl[0]+e&&o<=Cl[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=bl,i+=bl);for(var f=0,p=0;p<2;p++){var m=Cl[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=bl+h),(h>=r&&h<=i||h+bl>=r&&h+bl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function kl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===yl.M&&m>1&&(n||(s+=vl(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case yl.M:u=a[m++],d=a[m++],c=u,l=d;break;case yl.L:if(n){if(dl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=vl(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.C:if(n){if(fl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=El(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.Q:if(n){if(pl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Dl(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case yl.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=vl(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(_l(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Ol(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case yl.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(dl(u,d,f,d,t,r,i)||dl(f,d,f,p,t,r,i)||dl(f,p,u,p,t,r,i)||dl(u,p,u,d,t,r,i))return!0}else s+=vl(f,d,f,p,r,i),s+=vl(u,p,u,d,r,i);break;case yl.Z:if(n){if(dl(c,l,u,d,t,r,i))return!0}else s+=vl(c,l,u,d,r,i);c=u,l=d}}return!n&&!Sl(l,d)&&(s+=vl(c,l,u,d,r,i)||0),s!==0}function Al(e,t,n){return kl(e,0,!1,t,n)}function jl(e,t,n,r){return kl(e,t,!0,n,r)}var Ml=M({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Tc),Nl={style:M({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ec.style)},Pl=ea.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Fl=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<Pl.length;++s)i[Pl[s]]=this[Pl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=L(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?j(this.style,o):this.useStyle(o):a===`shape`?j(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(H(e)){var t=Tr(e,0);return t>.5?Hi:t>.2?Wi:Ui}if(e)return Ui}return Hi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Tr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ul(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),jl(a,o/s,e,t)))return!0}if(this.hasFill())return Al(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:j(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Oe(Ml,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=j({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=j({},r.shape),j(c,n.shape)):(c=j({},i?this.shape:r.shape),j(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=j({},this.shape);for(var l={},u=L(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Nl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){r(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return k(e.style)},n.prototype.getDefaultShape=function(){return k(e.shape)},n}(t);for(var i in e)typeof e[i]==`function`&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(kc),Il=M({strokeFirst:!0,font:s,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ml),Ll=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Cc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Oe(Il,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=xc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(kc);Ll.prototype.type=`tspan`;var Rl=M({x:0,y:0},Tc),zl={style:M({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ec.style)};function Bl(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Vl=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Oe(Rl,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Bl(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return zl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new q(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(kc);Vl.prototype.type=`image`;function Hl(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Ul=Math.round;function Wl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Ul(r*2)===Ul(i*2)&&(e.x1=e.x2=Kl(r,s,!0)),Ul(a*2)===Ul(o*2)&&(e.y1=e.y2=Kl(a,s,!0)),e):e}}function Gl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Kl(r,s,!0),e.y=Kl(i,s,!0),e.width=Math.max(Kl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Kl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Kl(e,t,n){if(!t)return e;var r=Ul(e*2);return(r+Ul(t))%2==0?r/2:(r+(n?1:-1))/2}var ql=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Jl={},Yl=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ql},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Gl(Jl,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?Hl(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Fl);Yl.prototype.type=`rect`;var Xl={fill:`#000`},Zl=2,Ql={},$l={style:M({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},Ec.style)},eu=function(e){r(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Xl,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,su(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new q(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Xl},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!==`production`)throw Error(`Can't attach text on another text`)},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return j(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=L(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},j(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return $l},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;_c(Ql,r.overflowRect,i,a,o,s),i=Ql.baseX,a=Ql.baseY;var c=sc(fu(e),e,Ql.outerWidth,Ql.outerHeight),l=pu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=fa(a,c.contentHeight,s);if(l||n){var _=da(i,f,o),v=fa(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=du(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=uu(`fill`in e?e.fill:(x=!0,r.fill)),C=lu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Zl,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Ll),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,au(D,e),g+=m,E.setBoundingRect(Sc(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;_c(Ql,t.overflowRect,i,a,n,r),i=Ql.baseX,a=Ql.baseY;var o=dc(fu(e),e,Ql.outerWidth,Ql.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=da(i,c,n),f=fa(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;pu(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&pu(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=du(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Ll),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=uu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=lu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Zl,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ge(s.opacity,t.opacity,1),au(p,s),y&&(p.lineWidth=ge(s.lineWidth,t.lineWidth,g),p.lineDash=W(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Sc(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(Yl),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=W(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Vl),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=W(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ge(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return ou(e)&&(t=[e.fontStyle,e.fontWeight,iu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&ye(t)||e.textFont||e.font},t}(kc),tu={left:!0,right:1,center:1},nu={top:1,bottom:1,middle:1},ru=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function iu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function au(e,t){for(var n=0;n<ru.length;n++){var r=ru[n],i=t[r];i!=null&&(e[r]=i)}}function ou(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function su(e){return cu(e),F(e.rich,cu),e}function cu(e){if(e){e.font=eu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||tu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||nu[n]?n:`top`,e.padding&&=ve(e.padding)}}function lu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function uu(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function du(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function fu(e){var t=e.text;return t!=null&&(t+=``),t}function pu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var mu=cs(),hu=function(e,t,n,r){if(r){var i=mu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=mu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},gu=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),_u=`original`,vu=`arrayRows`,yu=`objectRows`,bu=`keyedColumns`,xu=`typedArray`,Su=`unknown`,Cu=`column`,wu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Tu=function(){function e(e){F(wu,function(t){this[t]=R(e[t],e)},this)}return e}();function Eu(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Du=1,Ou={},ku=cs(),Au=cs(),ju=[`emphasis`,`blur`,`select`],Mu=[`normal`,`emphasis`,`blur`,`select`],Nu=`highlight`,Pu=`downplay`,Fu=`select`,Iu=`unselect`,Lu=`toggleSelect`,Ru=`selectchanged`;function zu(e){return e!=null&&e!==`none`}function Bu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Vu(e){Bu(e,`emphasis`,2)}function Hu(e){e.hoverState===2&&Bu(e,`normal`,0)}function Uu(e){Bu(e,`blur`,1)}function Wu(e){e.hoverState===1&&Bu(e,`normal`,0)}function Gu(e){e.selected=!0}function Ku(e){e.selected=!1}function qu(e,t,n){t(e,n)}function Ju(e,t,n){qu(e,t,n),e.isGroup&&e.traverse(function(e){qu(e,t,n)})}function Yu(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function Xu(e,t,n,r){var i=n&&N(n,`select`)>=0,a=!1;if(e instanceof Fl){var o=ku(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(zu(s)||zu(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=j({},r),l=j({},l),l.fill=s):!zu(l.fill)&&zu(s)?(a=!0,r=j({},r),l=j({},l),l.fill=Dr(s)):!zu(l.stroke)&&zu(c)&&(a||(r=j({},r),l=j({},l)),l.stroke=Dr(c)),r.style=l}}if(r&&r.z2==null){a||(r=j({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Zu(e,t,n){if(n&&n.z2==null){n=j({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Qu(e,t,n){var r=N(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Yu(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=j({},n),o=j({opacity:r?i:a.opacity*.1},o),n.style=o),n}function $u(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Xu(this,e,t,n);if(e===`blur`)return Qu(this,e,n);if(e===`select`)return Zu(this,e,n)}return n}function ed(e){e.stateProxy=$u;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=$u),n&&(n.stateProxy=$u)}function td(e,t){!ld(e,t)&&!e.__highByOuter&&Ju(e,Vu)}function nd(e,t){!ld(e,t)&&!e.__highByOuter&&Ju(e,Hu)}function rd(e,t){e.__highByOuter|=1<<(t||0),Ju(e,Vu)}function id(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ju(e,Hu)}function ad(e){Ju(e,Uu)}function od(e){Ju(e,Wu)}function sd(e){Ju(e,Gu)}function cd(e){Ju(e,Ku)}function ld(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function ud(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Au(i),o=Eu(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Wu(e)}),s&&n.push(i)),a.isBlured=!1}),F(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function dd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&od(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Uu(e)}),P(t))a(e.getData(),t);else if(U(t))for(var u=L(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Au(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function fd(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Au(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Uu(e)})}}}function pd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&X(`Unknown dataType `+t.dataType);return}var a=ss(i,t);a=(B(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=mu(o);dd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&dd(r,u,d,n)}}function md(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(process.env.NODE_ENV!==`production`&&!Od(s[l])&&X(`param should be highDownDispatcher`),mu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function hd(e,t,n){process.env.NODE_ENV!==`production`&&!Od(e)&&X(`param should be highDownDispatcher`);var r=mu(e),i=md(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&fd(r.componentMainType,r.componentIndex,n),F(a,function(e){return td(e,t)})):(dd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&fd(r.componentMainType,r.componentIndex,n),td(e,t))}function gd(e,t,n){process.env.NODE_ENV!==`production`&&!Od(e)&&X(`param should be highDownDispatcher`),ud(n);var r=mu(e),i=md(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?F(i,function(e){return nd(e,t)}):nd(e,t)}function _d(e,t,n){if(Ad(t)){var r=t.dataType,i=ss(e.getData(r),t);B(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function vd(e){F(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?sd(t):cd(t)})})}function yd(e){var t=[];return e.eachSeries(function(e){F(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function bd(e,t,n){Dd(e,!0),Ju(e,ed),Cd(e,t,n)}function xd(e){Dd(e,!1)}function Sd(e,t,n,r){r?xd(e):bd(e,t,n)}function Cd(e,t,n){var r=mu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var wd=[`emphasis`,`blur`,`select`],Td={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Ed(e,t,n,r){n||=`itemStyle`;for(var i=0;i<wd.length;i++){var a=wd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Td[n]]()}}function Dd(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Od(e){return!!(e&&e.__highDownDispatcher)}function kd(e){var t=Ou[e];return t==null&&Du<=32&&(t=Ou[e]=Du++),t}function Ad(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function jd(e){var t=e.type;return t===`highlight`||t===`downplay`}function Md(e){var t=ku(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Nd=ul.CMD,Pd=[[],[],[]],Fd=Math.sqrt,Id=Math.atan2;function Ld(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Nd.M,d=Nd.C,f=Nd.L,p=Nd.R,m=Nd.A,h=Nd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Fd(t[0]*t[0]+t[1]*t[1]),y=Fd(t[2]*t[2]+t[3]*t[3]),b=Id(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],Ge(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Ge(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Pd[c];x[0]=n[o++],x[1]=n[o++],Ge(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Rd=Math.sqrt,zd=Math.sin,Bd=Math.cos,Vd=Math.PI;function Hd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Ud(e,t){return(e[0]*t[0]+e[1]*t[1])/(Hd(e)*Hd(t))}function Wd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Ud(e,t))}function Gd(e,t,n,r,i,a,o,s,c,l,u){var d=Vd/180*c,f=Bd(d)*(e-n)/2+zd(d)*(t-r)/2,p=-1*zd(d)*(e-n)/2+Bd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Rd(m),s*=Rd(m));var h=(i===a?-1:1)*Rd((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Bd(d)*g-zd(d)*_,y=(t+r)/2+zd(d)*g+Bd(d)*_,b=Wd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Wd(x,S);if(Ud(x,S)<=-1&&(C=Vd),Ud(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Vd*1e6)/1e6;C=Vd*2+w%2*Vd}u.addData(l,v,y,o,s,b,C,d,a)}var Kd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,qd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jd(e){var t=new ul;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ul.CMD,c=e.match(Kd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(qd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Gd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Gd(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var Yd=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Fl);function Xd(e){return e.setData!=null}function Zd(e,t){var n=Jd(e),r=j({},t);return r.buildPath=function(e){var t=Xd(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Ld(n,e),this.dirtyShape()},r}function Qd(e,t){return new Yd(Zd(e,t))}function $d(e,t){var n=Zd(e,t);return function(e){r(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Yd)}function ef(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Fl(t);return o.createPathProxy(),o.buildPath=function(e){if(Xd(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var tf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),nf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tf},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Fl);nf.prototype.type=`circle`;var rf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),af=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rf},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Fl);af.prototype.type=`ellipse`;var of=Math.PI,sf=of*2,cf=Math.sin,lf=Math.cos,uf=Math.acos,df=Math.atan2,ff=Math.abs,pf=Math.sqrt,mf=Math.max,hf=Math.min,gf=1e-4;function _f(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<gf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function vf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/pf(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*pf(mf(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function yf(e){var t;if(B(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function bf(e,t){var n,r=mf(t.r,0),i=mf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=ff(c-s),p=f>sf&&f%sf;if(p>gf&&(f=p),!(r>gf))e.moveTo(l,u);else if(f>sf-gf)e.moveTo(l+r*lf(s),u+r*cf(s)),e.arc(l,u,r,s,c,!d),i>gf&&(e.moveTo(l+i*lf(c),u+i*cf(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*lf(s),j=r*cf(s),ee=i*lf(c),M=i*cf(c),N=f>gf;if(N){var te=t.cornerRadius;te&&(n=yf(te),m=n[0],h=n[1],g=n[2],_=n[3]);var ne=ff(r-i)/2;if(v=hf(ne,g),y=hf(ne,_),b=hf(ne,m),x=hf(ne,h),w=S=mf(v,y),T=C=mf(b,x),(S>gf||C>gf)&&(E=r*lf(c),D=r*cf(c),O=i*lf(s),k=i*cf(s),f<of)){var P=_f(A,j,O,k,E,D,ee,M);if(P){var F=A-P[0],I=j-P[1],re=E-P[0],ie=D-P[1],ae=1/cf(uf((F*re+I*ie)/(pf(F*F+I*I)*pf(re*re+ie*ie)))/2),L=pf(P[0]*P[0]+P[1]*P[1]);w=hf(S,(r-L)/(ae+1)),T=hf(C,(i-L)/(ae-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>gf){var oe=hf(g,w),R=hf(_,w),z=vf(O,k,A,j,r,oe,d),B=vf(E,D,ee,M,r,R,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&oe===R?e.arc(l+z.cx,u+z.cy,w,df(z.y0,z.x0),df(B.y0,B.x0),!d):(oe>0&&e.arc(l+z.cx,u+z.cy,oe,df(z.y0,z.x0),df(z.y1,z.x1),!d),e.arc(l,u,r,df(z.cy+z.y1,z.cx+z.x1),df(B.cy+B.y1,B.cx+B.x1),!d),R>0&&e.arc(l+B.cx,u+B.cy,R,df(B.y1,B.x1),df(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>gf)||!N)e.lineTo(l+ee,u+M);else if(T>gf){var oe=hf(m,T),R=hf(h,T),z=vf(ee,M,E,D,i,-R,d),B=vf(A,j,O,k,i,-oe,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&oe===R?e.arc(l+z.cx,u+z.cy,T,df(z.y0,z.x0),df(B.y0,B.x0),!d):(R>0&&e.arc(l+z.cx,u+z.cy,R,df(z.y0,z.x0),df(z.y1,z.x1),!d),e.arc(l,u,i,df(z.cy+z.y1,z.cx+z.x1),df(B.cy+B.y1,B.cx+B.x1),d),oe>0&&e.arc(l+B.cx,u+B.cy,oe,df(B.y1,B.x1),df(B.y0,B.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var xf=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Sf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new xf},t.prototype.buildPath=function(e,t){bf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Fl);Sf.prototype.type=`sector`;var Cf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),wf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Cf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Fl);wf.prototype.type=`ring`;function Tf(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Ke(u,u,e[f]),qe(d,d,e[f]);Ke(u,u,r[0]),qe(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Ne(e[f]));continue}else c=e[f-1],l=e[f+1];Ie(a,l,c),ze(a,a,t);var h=Ve(m,c),g=Ve(m,l),_=h+g;_!==0&&(h/=_,g/=_),ze(o,a,-h),ze(s,a,g);var v=Fe([],m,o),y=Fe([],m,s);r&&(qe(v,v,u),Ke(v,v,d),qe(y,y,u),Ke(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Ef(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Tf(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Df=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Of=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Df},t.prototype.buildPath=function(e,t){Ef(e,t,!0)},t}(Fl);Of.prototype.type=`polygon`;var kf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Af=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(e,t){Ef(e,t,!1)},t}(Fl);Af.prototype.type=`polyline`;var jf={},Mf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Nf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Mf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Wl(jf,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Fl);Nf.prototype.type=`line`;var Pf=[],Ff=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function If(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Hn:Vn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Hn:Vn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Yn:Jn)(e.x1,e.cpx1,e.x2,t),(n?Yn:Jn)(e.y1,e.cpy1,e.y2,t)]}var Lf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Ff},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Qn(n,o,i,u,Pf),o=Pf[1],i=Pf[2],Qn(r,s,a,u,Pf),s=Pf[1],a=Pf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Gn(n,o,c,i,u,Pf),o=Pf[1],c=Pf[2],i=Pf[3],Gn(r,s,l,a,u,Pf),s=Pf[1],l=Pf[2],a=Pf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return If(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=If(this.shape,e,!0);return Be(t,t)},t}(Fl);Lf.prototype.type=`bezier-curve`;var Rf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),zf=function(e){r(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Rf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Fl);zf.prototype.type=`arc`;var Bf=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Fl.prototype.getBoundingRect.call(this)},t}(Fl),Vf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Hf=function(e){r(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Vf),Uf=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Vf),Wf=Math.min,Gf=Math.max,Kf=Math.abs,qf=[0,0],Jf=[0,0],Yf=tn(),Xf=Yf.minTv,Zf=Yf.maxTv,Qf=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Pt;for(var n=0;n<2;n++)this._axes[n]=new Pt;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);Pt.sub(r[0],n[1],n[0]),Pt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&Pt.set(t,0,0),Yf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Yf.negativeSize&&Pt.copy(t,r?Yf.useDir?Yf.dirMinTv:Xf:Zf),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,qf),e._getProjMinMaxOnAxis(a,t._corners,Jf),Yf.negativeSize||qf[1]<Jf[0]||qf[0]>Jf[1]){if(i=!1,Yf.negativeSize||n)return i;var s=Kf(Jf[0]-qf[1]),c=Kf(qf[0]-Jf[1]);Wf(s,c)>Zf.len()&&(s<c?Pt.scale(Zf,o,-s*r):Pt.scale(Zf,o,c*r))}else if(!n){var s=Kf(Jf[0]-qf[1]),c=Kf(qf[0]-Jf[1]);(Yf.useDir||Wf(s,c)<Xf.len())&&((s<c||!Yf.bidirectional)&&(Pt.scale(Xf,o,s*r),Yf.useDir&&Yf.calcDirMTV()),(s>=c||!Yf.bidirectional)&&(Pt.scale(Xf,o,-c*r),Yf.useDir&&Yf.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Wf(l,o),s=Gf(l,s)}n[0]=o+Yf.touchThreshold,n[1]=s-Yf.touchThreshold,Yf.negativeSize=n[1]<n[0]},e}(),$f=[],ep=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new q(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform($f)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(kc),tp=cs();function np(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=W(r.duration,200),u=W(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),V(d)&&(d=d(n,i)),V(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function rp(e,t,n,r,i,a,o){var s=!1,c;V(i)?(o=a,a=i,i=null):U(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=np(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function ip(e,t,n,r,i,a){rp(`update`,e,t,n,r,i,a)}function ap(e,t,n,r,i,a){rp(`enter`,e,t,n,r,i,a)}function op(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function sp(e,t,n,r,i,a){op(e)||rp(`leave`,e,t,n,r,i,a)}function cp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),sp(e,{style:{opacity:0}},t,n,r)}function lp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||cp(e,t,n,r)}):cp(e,t,n,r)}function up(e){tp(e).oldStyle=e.style}var dp=t({Arc:()=>zf,BezierCurve:()=>Lf,BoundingRect:()=>q,Circle:()=>nf,CompoundPath:()=>Bf,Ellipse:()=>af,Group:()=>Na,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Vl,IncrementalDisplayable:()=>ep,Line:()=>Nf,LinearGradient:()=>Hf,OrientedBoundingRect:()=>Qf,Path:()=>Fl,Point:()=>Pt,Polygon:()=>Of,Polyline:()=>Af,RadialGradient:()=>Uf,Rect:()=>Yl,Ring:()=>wf,Sector:()=>Sf,Text:()=>eu,WH:()=>mp,XY:()=>pp,applyTransform:()=>kp,calcZ2Range:()=>Qp,clipPointsByRect:()=>Pp,clipRectByRect:()=>Fp,createIcon:()=>Ip,decomposeTransform:()=>nm,ensureCopyRect:()=>Yp,ensureCopyTransform:()=>Xp,expandOrShrinkRect:()=>Vp,extendPath:()=>_p,extendShape:()=>hp,getCurrentCanvasPainter:()=>im,getShapeClass:()=>yp,getTransform:()=>Op,groupTransition:()=>Np,initProps:()=>ap,isBoundingRectAxisAligned:()=>qp,isElementRemoved:()=>op,lineLineIntersect:()=>Rp,linePolygonIntersect:()=>Lp,makeImage:()=>xp,makePath:()=>bp,mergePath:()=>Cp,payloadDisableAnimation:()=>tm,registerShape:()=>vp,removeElement:()=>sp,removeElementWithFadeOut:()=>lp,resizePath:()=>wp,retrieveZInfo:()=>Zp,setTooltipConfig:()=>Wp,subPixelOptimize:()=>Dp,subPixelOptimizeLine:()=>Tp,subPixelOptimizeRect:()=>Ep,transformDirection:()=>Ap,traverseElements:()=>Kp,traverseUpdateZ:()=>$p,updateProps:()=>ip}),fp={},pp=[`x`,`y`],mp=[`width`,`height`];function hp(e){return Fl.extend(e)}var gp=$d;function _p(e,t){return gp(e,t)}function vp(e,t){fp[e]=t}function yp(e){if(fp.hasOwnProperty(e))return fp[e]}function bp(e,t,n,r){var i=Qd(e,t);return n&&(r===`center`&&(n=Sp(n,i.getBoundingRect())),wp(i,n)),i}function xp(e,t,n){var r=new Vl({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Sp(t,i))}}});return r}function Sp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Cp=ef;function wp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Tp(e,t){return Wl(e,e,{lineWidth:t}),e}function Ep(e,t){return Gl(e,e,t),e}var Dp=Kl;function Op(e,t){for(var n=Dt([]);e&&e!==t;)kt(n,e.getLocalTransform(),n),e=e.parent;return n}function kp(e,t,n){return t&&!P(t)&&(t=Qi.getLocalTransform(t)),n&&(t=Nt([],t)),Ge([],e,t)}function Ap(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ja(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ja(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=kp(a,t,n),Ja(a[0])>Ja(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function jp(e){return!e.isGroup}function Mp(e){return e.shape!=null}function Np(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){jp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Mp(e)&&(t.shape=k(e.shape)),t}var a=r(e);t.traverse(function(e){if(jp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),ip(e,r,n,mu(e).dataIndex)}}})}function Pp(e,t){return I(e,function(e){var n=e[0];n=J(n,t.x),n=qa(n,t.x+t.width);var r=e[1];return r=J(r,t.y),r=qa(r,t.y+t.height),[n,r]})}function Fp(e,t){var n=J(e.x,t.x),r=qa(e.x+e.width,t.x+t.width),i=J(e.y,t.y),a=qa(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Ip(e,t,n){var r=j({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),M(i,n),new Vl(r)):bp(e.replace(`path://`,``),r,n,`center`)}function Lp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Rp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Rp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=zp(u,d,c,l);if(Bp(f))return!1;var p=e-i,m=t-a,h=zp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=zp(p,m,u,d)/f;return!(g<0||g>1)}function zp(e,t,n,r){return e*r-n*t}function Bp(e){return e<=1e-6&&e>=-1e-6}function Vp(e,t,n,r,i){return t==null?e:(ce(t)?Hp[0]=Hp[1]=Hp[2]=Hp[3]=t:(process.env.NODE_ENV!==`production`&&G(t.length===4),Hp[0]=t[0],Hp[1]=t[1],Hp[2]=t[2],Hp[3]=t[3]),r&&(Hp[0]=J(0,Hp[0]),Hp[1]=J(0,Hp[1]),Hp[2]=J(0,Hp[2]),Hp[3]=J(0,Hp[3])),n&&(Hp[0]=-Hp[0],Hp[1]=-Hp[1],Hp[2]=-Hp[2],Hp[3]=-Hp[3]),Up(e,Hp,`x`,`width`,3,1,i&&i[0]||0),Up(e,Hp,`y`,`height`,0,2,i&&i[1]||0),e)}var Hp=[0,0,0,0];function Up(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=J(0,qa(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ja(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Wp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=H(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&F(L(c),function(e){ke(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=mu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:M({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Gp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Kp(e,t){if(e){if(B(e))for(var n=0;n<e.length;n++)Gp(e[n],t);else Gp(e,t)}}function qp(e){return!e||Ja(e[1])<Jp&&Ja(e[2])<Jp||Ja(e[0])<Jp&&Ja(e[3])<Jp}var Jp=1e-5;function Yp(e,t){return e?q.copy(e,t):t.clone()}function Xp(e,t){return t?Ot(e||Et(),t):void 0}function Zp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Qp(e){var t=-1/0,n=1/0;Gp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function $p(e,t,n){em(e,t,n,-1/0)}function em(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=J(em(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=J(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function tm(e){return e.animation={duration:0},e}function nm(e,t){return t?Ot(rm.transform,t):Dt(rm.transform),rm.decomposeTransform(),ta(e,rm),e}var rm=new Qi;rm.transform=Et();function im(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}vp(`circle`,nf),vp(`ellipse`,af),vp(`sector`,Sf),vp(`ring`,wf),vp(`polygon`,Of),vp(`polyline`,Af),vp(`rect`,Yl),vp(`line`,Nf),vp(`bezierCurve`,Lf),vp(`arc`,zf);var am={};function om(e,t){for(var n=0;n<ju.length;n++){var r=ju[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function sm(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=V(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<ju.length;l++){var u=ju[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function cm(e,t,n,r){n||=am;for(var i=e instanceof eu,a=!1,o=0;o<Mu.length;o++){var s=t[Mu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new eu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=sm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=um(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(dm(u,n,!1));for(var o=0;o<ju.length;o++){var p=ju[o],s=t[p];if(s){var m=c.ensureState(p),h=!!W(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=um(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=dm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(ym(c).setLabelText=function(e){var r=sm(n,t,e);om(c,r)})}else c&&(c.ignore=!0);e.dirty()}function lm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<ju.length;r++){var i=ju[r];n[i]=e.getModel([i,t])}return n}function um(e,t,n,r,i){var a={};return fm(a,e,n,r,i),t&&j(a,t),a}function dm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=W(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function fm(e,t,n,r,i){n||=am;var a=t.ecModel,o=a&&a.option.textStyle,s=pm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=W(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);_m(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=ce(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=xm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=ve(_),h.__marginType=xm.textMargin)}_m(e,t,o,null,null,n,r,i,!0,!1)}function pm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||am).rich;if(n){t||={};for(var r=L(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var mm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],hm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],gm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function _m(e,t,n,r,i,a,o,s,c,l){n=!o&&n||am;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=W(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&Fo(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&Fo(`color: 'auto'`,`color: 'inherit'`),f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=W(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=W(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=W(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<mm.length;_++){var v=mm[_],y=i!==!1&&r?ge(t.getShallow(v),r.getShallow(v),n[v]):W(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<hm.length;_++){var v=hm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<gm.length;_++){var v=gm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.backgroundColor===`auto`&&Fo(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&Fo(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function vm(e,t){var n=t&&t.getModel(`textStyle`);return ye([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var ym=cs();function bm(e,t,n,r){if(e){var i=ym(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var xm={minMargin:1,textMargin:2},Sm=[`textStyle`,`color`],Cm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],wm=new eu,Tm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Sm):null)},e.prototype.getFont=function(){return vm({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Cm.length;n++)t[Cm[n]]=this.getShallow(Cm[n]);return wm.useStyle(t),wm.update(),wm.getBoundingRect()},e}(),Em=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Dm=Js(Em),Om=function(){function e(){}return e.prototype.getLineStyle=function(e){return Dm(this,e)},e}(),km=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Am=Js(km),jm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Am(this,e,t)},e}(),Mm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){A(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(k(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!a.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Bs(Mm),Ws(Mm),ne(Mm,Om),ne(Mm,jm),ne(Mm,Xs),ne(Mm,Tm);var Nm=Math.round(Math.random()*10);function Pm(e){return[e||``,Nm++].join(`_`)}function Fm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ls(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ls(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Im(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(F(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),F(u.successor,d?p:f)}F(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Io(`Circular dependency may exists: `,c,e,t)),Error(n)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return F(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),F(c,function(e){N(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);N(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return F(e,function(e){N(t,e)>=0&&n.push(e)}),n}}function Lm(e,t){return A(A({},e,!0),t,!0)}var Rm={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:`. `}}}},zm={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:``}}}},Bm=`ZH`,Vm=`EN`,Hm=Vm,Um={},Wm={},Gm=a.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Hm).toUpperCase().indexOf(Bm)>-1?Bm:Hm}():Hm;function Km(e,t){e=e.toUpperCase(),Wm[e]=new Mm(t),Um[e]=t}function qm(e){if(H(e)){var t=Um[e.toUpperCase()]||{};return e===Bm||e===Vm?k(t):A(k(t),k(Um[Hm]),!1)}return A(k(e),k(Um[Hm]),!1)}function Jm(e){return Wm[e]}function Ym(){return Wm[Hm]}Km(Vm,Rm),Km(Bm,zm);var Xm=null;function Zm(){return Xm}function Qm(e,t){var n=Zm(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function $m(e){var t=e.brk;return t?t.breaks:[]}function eh(e){var t=e.brk;return t?t.hasBreaks():!1}var th=1e3,nh=th*60,rh=nh*60,ih=rh*24,ah=ih*365,oh={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},sh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},ch=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,lh=`{yyyy}-{MM}-{dd}`,uh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:lh,hour:lh+` `+sh.hour,minute:lh+` `+sh.minute,second:lh+` `+sh.second,millisecond:ch},dh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],fh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function ph(e){return!H(e)&&!V(e)?mh(e):e}function mh(e){e||={};var t={},n=!0;return F(dh,function(t){n&&=e[t]==null}),F(dh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=dh[s],l=U(a)&&!B(a)?a[c]:a,u=void 0;B(l)?(u=l.slice(),o=u[0]||``):H(l)?(o=l,u=[o]):(o==null?o=sh[r]:oh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function hh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function gh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function _h(e){return e===gh(e)}function vh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function yh(e,t,n,r){var i=vo(e),a=i[Ch(n)](),o=i[wh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Th(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Eh(n)](),d=(u-1)%12+1,f=i[Dh(n)](),p=i[Oh(n)](),m=i[kh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Mm?r:Jm(r||Gm)||Ym()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,hh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,hh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,hh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,hh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,hh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,hh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,hh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,hh(m,3)).replace(/{S}/g,m+``)}function bh(e,t,n,r,i){var a=null;if(H(n))a=n;else if(V(n)){var o={time:e.time,level:e.time?e.time.level:0},s=Zm();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=xh(e.value,i);a=n[u][u][0]}}return yh(new Date(e.value),a,i,r)}function xh(e,t){var n=vo(e),r=n[wh(t)]()+1,i=n[Th(t)](),a=n[Eh(t)](),o=n[Dh(t)](),s=n[Oh(t)](),c=n[kh(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Sh(e,t,n){switch(t){case`year`:e[jh(n)](0);case`month`:e[Mh(n)](1);case`day`:e[Nh(n)](0);case`hour`:e[Ph(n)](0);case`minute`:e[Fh(n)](0);case`second`:e[Ih(n)](0)}return e}function Ch(e){return e?`getUTCFullYear`:`getFullYear`}function wh(e){return e?`getUTCMonth`:`getMonth`}function Th(e){return e?`getUTCDate`:`getDate`}function Eh(e){return e?`getUTCHours`:`getHours`}function Dh(e){return e?`getUTCMinutes`:`getMinutes`}function Oh(e){return e?`getUTCSeconds`:`getSeconds`}function kh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Ah(e){return e?`setUTCFullYear`:`setFullYear`}function jh(e){return e?`setUTCMonth`:`setMonth`}function Mh(e){return e?`setUTCDate`:`setDate`}function Nh(e){return e?`setUTCHours`:`setHours`}function Ph(e){return e?`setUTCMinutes`:`setMinutes`}function Fh(e){return e?`setUTCSeconds`:`setSeconds`}function Ih(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Lh(e){if(!Co(e))return H(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Rh(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var zh=ve;function Bh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&ye(e)?e:`-`}function a(e){return Do(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?vo(e):e;if(!isNaN(+c))return yh(c,r,n);if(s)return`-`}if(t===`ordinal`)return se(e)?i(e):ce(e)&&a(e)?e+``:`-`;var l=So(e);return a(l)?Lh(l):se(e)?i(e):typeof e==`boolean`?e+``:`-`}var Vh=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Hh=function(e,t){return`{`+e+(t??``)+`}`};function Uh(e,t,n){B(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Vh[a];e=e.replace(Hh(o),Hh(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Hh(Vh[c],s),n?ut(l):l)}return e}function Wh(e,t){var n=H(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+ut(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+ut(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Gh(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Kh={},qh={},Jh=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Kh,!0),this._normalMasterList=n(qh,!1);function n(n,r){var i=[];return F(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&F(o,function(e){return G(!e.update)})}),i}},e.prototype.update=function(e,t){F(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Kh[e]=t;return}qh[e]=t},e.get=function(e){return qh[e]||Kh[e]},e}();function Yh(e){return!!Kh[e]}var Xh=K();function Zh(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Xh.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Qh(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=r!=null,a=0;if(n){var o=e.mainType===`series`;r??=o?`data`:`box`,r===`data`?(a=1,o||(process.env.NODE_ENV!==`production`&&i&&t&&X(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!Yh(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&X(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function $h(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&G(!!n);var o=Qh(t,!0),s=o.kind,c=o.coordSysType;if(i&&s!==1&&(s=1,c=n),s===0||c!==n)return 0;var l=r(n,t);return l?(s===1?(process.env.NODE_ENV!==`production`&&G(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||X(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var eg=F,tg=[`left`,`right`,`top`,`bottom`,`width`,`height`],ng=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function rg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}z(rg,`vertical`),z(rg,`horizontal`);function ig(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function ag(e,t,n){n=zh(n||0);var r=t.width,i=t.height,a=io(e.left,r),o=io(e.top,i),s=io(e.right,r),c=io(e.bottom,i),l=io(e.width,r),u=io(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new q((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var og={rect:1,point:2};function sg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Zh(e),l=c.coord,u=c.from;if(o.dataToLayout){a=og.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=og.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&X(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=og.rect,a===og.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function cg(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function lg(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(ng[0],0),a=o(ng[1],1);c(ng[0],e,i),c(ng[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(eg(n,function(t){c[t]=e[t]}),eg(n,function(e){ke(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!ke(a,f)&&ke(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){eg(e,function(e){t[e]=n[e]})}}function ug(e){return dg({},e)}function dg(e,t){return t&&e&&eg(tg,function(n){ke(t,n)&&(e[n]=t[n])}),e}var fg=cs(),pg=function(e){r(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Pm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cg(this),r=n?ug(e):{};A(e,t.getTheme().get(this.mainType)),A(e,this.getDefaultOption()),n&&lg(e,r,n)},t.prototype.mergeOption=function(e,t){A(this.option,e,!0);var n=cg(this);n&&lg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!zs(e))return e.defaultOption;var t=fg(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=A(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ps(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return ig(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Mm);Hs(pg,Mm),qs(pg),Fm(pg),Im(pg,mg);function mg(e){var t=[];return F(pg.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=I(t,function(e){return Ls(e).main}),e!==`dataset`&&N(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},hg=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var gg in j(hg,{primary:hg.neutral80,secondary:hg.neutral70,tertiary:hg.neutral60,quaternary:hg.neutral50,disabled:hg.neutral20,border:hg.neutral30,borderTint:hg.neutral20,borderShade:hg.neutral40,background:hg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:hg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:hg.neutral70,axisLineTint:hg.neutral40,axisTick:hg.neutral70,axisTickMinor:hg.neutral60,axisLabel:hg.neutral70,axisSplitLine:hg.neutral15,axisMinorSplitLine:hg.neutral05}),hg)if(hg.hasOwnProperty(gg)){var _g=hg[gg];gg===`theme`?Q.darkColor.theme=hg.theme.slice():gg===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:gg.indexOf(`accent`)===0?Q.darkColor[gg]=Cr(_g,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[gg]=Cr(_g,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var vg=``;typeof navigator<`u`&&(vg=navigator.platform||``);var yg=`rgba(0, 0, 0, 0.2)`,bg=Q.color.theme[0],xg=Cr(bg,null,null,.9),Sg={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[xg,bg],aria:{decal:{decals:[{color:yg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vg.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},Cg={Must:1,Might:2,Not:3},wg=cs();function Tg(e){wg(e).datasetMap=K()}function Eg(e,t,n){var r={},i=Dg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=wg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),F(e,function(t,n){var i=U(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});F(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Dg(e){if(!e.get(`data`,!0))return ps(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},fs).models[0]}function Og(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:ps(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},fs).models}function kg(e,t){return Ag(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Ag(e,t,n,r,i,a){var o,s=5;if(ue(e))return Cg.Not;var c,l;if(r){var u=r[a];U(u)?(c=u.name,l=u.type):H(u)&&(c=u)}if(l!=null)return l===`ordinal`?Cg.Must:Cg.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Cg.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Cg.Not;var f=_[c];if(!f||ue(f))return Cg.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Uo(g);if(!B(y))return Cg.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=H(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Cg.Might:Cg.Not;if(t&&e!==`-`)return Cg.Must}return Cg.Not}var jg=K();function Mg(e,t,n){var r=jg.get(t);if(!r)return n;var i=r(e);if(!i)return n;if(process.env.NODE_ENV!==`production`)for(var a=0;a<i.length;a++)G(is(i[a]));return n.concat(i)}var Ng=cs();cs();var Pg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Bo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Ig(this,Ng,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Lg(this,Ng)},e}();function Fg(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Ig(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Fg(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Lg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Rg,zg,Bg,Vg=`\0_ec_inner`,Hg=1,Ug={grid:`GridComponent`,polar:`PolarComponent`,geo:`GeoComponent`,singleAxis:`SingleAxisComponent`,parallel:`ParallelComponent`,calendar:`CalendarComponent`,matrix:`MatrixComponent`,graphic:`GraphicComponent`,toolbox:`ToolboxComponent`,tooltip:`TooltipComponent`,axisPointer:`AxisPointerComponent`,brush:`BrushComponent`,title:`TitleComponent`,timeline:`TimelineComponent`,markPoint:`MarkPointComponent`,markLine:`MarkLineComponent`,markArea:`MarkAreaComponent`,legend:`LegendComponent`,dataZoom:`DataZoomComponent`,visualMap:`VisualMapComponent`,xAxis:`GridComponent`,yAxis:`GridComponent`,angleAxis:`PolarComponent`,radiusAxis:`PolarComponent`},Wg={line:`LineChart`,bar:`BarChart`,pie:`PieChart`,scatter:`ScatterChart`,radar:`RadarChart`,map:`MapChart`,tree:`TreeChart`,treemap:`TreemapChart`,graph:`GraphChart`,chord:`ChordChart`,gauge:`GaugeChart`,funnel:`FunnelChart`,parallel:`ParallelChart`,sankey:`SankeyChart`,boxplot:`BoxplotChart`,candlestick:`CandlestickChart`,effectScatter:`EffectScatterChart`,lines:`LinesChart`,heatmap:`HeatmapChart`,pictorialBar:`PictorialBarChart`,themeRiver:`ThemeRiverChart`,sunburst:`SunburstChart`,custom:`CustomChart`},Gg={};function Kg(e){F(e,function(e,t){if(!pg.hasClass(t)){var n=Ug[t];n&&!Gg[n]&&(X(`Component `+t+` is used but not imported.
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};let n=require("react/jsx-runtime"),r=require("react");var i=`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`;function a({className:e,logoSrc:t=i,showBrand:r=!0,showLogo:a=!0,showSubtitle:o=!0,showTitle:s=!0,subtitle:c,title:l}){return r?(0,n.jsx)(`header`,{className:[`ibc-title`,e].filter(Boolean).join(` `),children:(0,n.jsxs)(`div`,{className:`ibc-title__row`,children:[(0,n.jsxs)(`div`,{className:`ibc-title__text`,children:[!s||!l?null:(0,n.jsx)(`p`,{className:`ibc-title__heading`,children:l}),!o||!c?null:(0,n.jsx)(`p`,{className:`ibc-title__subtitle`,children:c})]}),!a||!t?null:(0,n.jsx)(`div`,{className:`ibc-title__brand`,children:(0,n.jsx)(`img`,{className:`ibc-title__logo`,src:t,alt:`logo infobae of title component`,loading:`lazy`,decoding:`async`})})]})}):null}var o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);o(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var c=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),l=new(function(){function e(){this.browser=new c,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`}return e}());typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(l.wxa=!0,l.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?l.worker=!0:!l.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(l.node=!0,l.svgSupported=!0):u(navigator.userAgent,l);function u(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var d=`12px sans-serif`,f=20,p=100,m=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function h(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++){var r=String.fromCharCode(n+32);t[r]=(e.charCodeAt(n)-f)/p}return t}var g=h(m),_={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=_.createCanvas();e=i&&i.getContext(`2d`)}if(e)return t!==r&&(t=e.font=r||`12px sans-serif`),e.measureText(n);n||=``,r||=`12px sans-serif`;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||12,s=0;if(r.indexOf(`mono`)>=0)s=o*n.length;else for(var c=0;c<n.length;c++){var l=g[n[c]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},v=ae([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),y=ae([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),b=Object.prototype.toString,x=Array.prototype,S=x.forEach,C=x.filter,w=x.slice,T=x.map,E=function(){}.constructor,D=E?E.prototype:null,O=`__proto__`,k=2311,A=2**53-1;function j(){return k>=A&&(k=0),k++}function ee(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<`u`&&console.error.apply(console,e)}function M(e){if(typeof e!=`object`||!e)return e;var t=e,n=b.call(e);if(n===`[object Array]`){if(!we(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(y[n]){if(!we(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var r=0,i=e.length;r<i;r++)t[r]=e[r]}}}else if(!v[n]&&!we(e)&&!pe(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==O&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!G(t)||!G(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==O){var i=e[r],a=t[r];G(a)&&G(i)&&!H(a)&&!H(i)&&!pe(a)&&!pe(i)&&!de(a)&&!de(i)&&!we(a)&&!we(i)?N(i,a,n):(n||!(r in e))&&(e[r]=M(t[r]))}return e}function P(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==O&&(e[n]=t[n]);return e}function te(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}function F(e,t,n){for(var r=B(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}_.createCanvas;function I(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function ne(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}function re(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else F(e,t,n)}function ie(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function L(e,t,n){if(e&&t){if(e.forEach&&e.forEach===S)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function R(e,t,n){if(!e)return[];if(!t)return ye(e);if(e.map&&e.map===T)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function ae(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function oe(e,t,n){if(!e)return[];if(!t)return ye(e);if(e.filter&&e.filter===C)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function z(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function B(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function se(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(w.call(arguments)))}}var V=D&&U(D.bind)?D.call.bind(D.bind):se;function ce(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(w.call(arguments)))}}function H(e){return Array.isArray?Array.isArray(e):b.call(e)===`[object Array]`}function U(e){return typeof e==`function`}function W(e){return typeof e==`string`}function le(e){return b.call(e)===`[object String]`}function ue(e){return typeof e==`number`}function G(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function de(e){return!!v[b.call(e)]}function fe(e){return!!y[b.call(e)]}function pe(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function me(e){return e.colorStops!=null}function he(e){return b.call(e)===`[object RegExp]`}function ge(e){return e!==e}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e.length;n<r;n++)if(e[n]!=null)return e[n]}function K(e,t){return e??t}function ve(e,t,n){return e??t??n}function ye(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return w.apply(e,t)}function be(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function q(e,t){if(!e)throw Error(t)}function xe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Se=`__ec_primitive__`;function Ce(e){e[Se]=!0}function we(e){return e[Se]}var Te=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return B(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Ee=typeof Map==`function`;function De(){return Ee?new Map:new Te}var Oe=function(){function e(t){var n=H(t);this.data=De();var r=this;t instanceof e?t.each(i):t&&L(t,i);function i(e,t){n?r.set(e,t):r.set(t,e)}}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return Ee?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function J(e){return new Oe(e)}function ke(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];for(var i=e.length,r=0;r<t.length;r++)n[r+i]=t[r];return n}function Ae(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&P(n,t),n}function je(e,t){return e.hasOwnProperty(t)}function Me(){}var Ne=180/Math.PI;function Pe(e,t){return e??=0,t??=0,[e,t]}function Fe(e){return[e[0],e[1]]}function Ie(e,t,n){return e[0]=t,e[1]=n,e}function Le(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Re(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function ze(e){return Math.sqrt(Be(e))}function Be(e){return e[0]*e[0]+e[1]*e[1]}function Ve(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function He(e,t){var n=ze(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Ue(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var We=Ue;function Ge(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ke=Ge;function qe(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Je(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ye(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Xe=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Ze=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Xe(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Xe(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Xe(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Xe(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Xe(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Xe(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Qe=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=r.length,s=0;s<o;s++){var c=r[s];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,t[0]);break;case 2:c.h.call(c.ctx,t[0],t[1]);break;default:c.h.apply(c.ctx,t)}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var r=this._$handlers[e],i=this._$eventProcessor;if(r)for(var a=t.length,o=t[a-1],s=r.length,c=0;c<s;c++){var l=r[c];if(!(i&&i.filter&&l.query!=null&&!i.filter(e,l.query)))switch(a){case 0:l.h.call(o);break;case 1:l.h.call(o,t[0]);break;case 2:l.h.call(o,t[0],t[1]);break;default:l.h.apply(o,t.slice(1,a-1))}}return i&&i.afterTrigger&&i.afterTrigger(e),this},e}(),$e=Math.log(2);function et(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/$e);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*et(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function tt(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=et(n,8,0,0,0,r);if(i!==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)*et(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var nt=`___zrEVENTSAVED`,rt=[];function it(e,t,n,r,i){return ot(rt,t,r,i,!0)&&ot(e,n,rt[0],rt[1])}function at(e,t){e&&n(e),t&&n(t);function n(e){var t=e[nt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[nt])}}function ot(e,t,n,r,i){if(t.getBoundingClientRect&&l.domSupported&&!lt(t)){var a=t[nt]||(t[nt]={}),o=ct(st(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function st(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=o.style,c=a%2,l=(a>>1)%2;s.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[c]+`:0`,i[l]+`:0`,r[1-c]+`:auto`,i[1-l]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){L(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function ct(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?tt(s,o):tt(o,s))}function lt(e){return e.nodeName.toUpperCase()===`CANVAS`}var ut=/([&<>"'])/g,dt={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function ft(e){return e==null?``:(e+``).replace(ut,function(e,t){return dt[t]})}var pt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,mt=[],ht=l.browser.firefox&&+l.browser.version.split(`.`)[0]<39;function gt(e,t,n,r){return n||={},r?_t(e,t,n):ht&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?_t(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function _t(e,t,n){if(l.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(lt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(ot(mt,e,r,i)){n.zrX=mt[0],n.zrY=mt[1];return}}n.zrX=n.zrY=0}function vt(e){return e||window.event}function yt(e,t,n){if(t=vt(t),t.zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&>(e,i,t,n)}else{gt(e,t,t,n);var a=bt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&pt.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function bt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var i=Math.abs(r===0?n:r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function xt(e,t,n,r){e.addEventListener(t,n,r)}function St(e,t,n,r){e.removeEventListener(t,n,r)}var Ct=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},wt=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=gt(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in Dt)if(Dt.hasOwnProperty(t)){var n=Dt[t](this._track,e);if(n)return n}},e}();function Tt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Et(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Dt={pinch:function(e,t){var n=e.length;if(n){var r=(e[n-1]||{}).points,i=(e[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var a=Tt(r)/Tt(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Et(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Ot(){return[1,0,0,1,0,0]}function kt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function At(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function jt(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function Mt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Nt(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function Pt(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Ft(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var It=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Lt=Math.min,Rt=Math.max,zt=Math.abs,Bt=[`x`,`y`],Vt=[`width`,`height`],Ht=new It,Ut=new It,Wt=new It,Gt=new It,Kt=rn(),qt=Kt.minTv,Jt=Kt.maxTv,Yt=[0,0],Y=function(){function e(e,t,n,r){Xt(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=Lt(e.x,this.x),n=Lt(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Rt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?Rt(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return Qt(Ot(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&It.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Xt($t,t.x,t.y,t.width,t.height)),n instanceof e||(n=Xt(en,n.x,n.y,n.width,n.height));var s=!!r;Kt.reset(i,s);var c=Kt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Yt[0]=1/0,Yt[1]=0,nn(l,u,p,m,0,s,a,o),nn(d,f,h,g,1,s,a,o),s&&It.copy(r,_?Kt.useDir?Kt.dirMinTv:qt:Jt)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){Zt(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(!n){e!==t&&Zt(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Ht.x=Wt.x=t.x,Ht.y=Gt.y=t.y,Ut.x=Gt.x=t.x+t.width,Ut.y=Wt.y=t.y+t.height,Ht.transform(n),Gt.transform(n),Ut.transform(n),Wt.transform(n),e.x=Lt(Ht.x,Ut.x,Wt.x,Gt.x),e.y=Lt(Ht.y,Ut.y,Wt.y,Gt.y);var s=Rt(Ht.x,Ut.x,Wt.x,Gt.x),c=Rt(Ht.y,Ut.y,Wt.y,Gt.y);e.width=s-e.x,e.height=c-e.y},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return e=kt(e||[]),Mt(e,e,Ie(tn,-t.x,-t.y)),Pt(e,e,Ie(tn,r,i)),Mt(e,e,Ie(tn,n.x,n.y)),e},e}();Y.create;var Xt=Y.set,Zt=Y.copy,Qt=Y.calculateTransform;Y.applyTransform,Y.contain;var $t=new Y(0,0,0,0),en=new Y(0,0,0,0),tn=[];function nn(e,t,n,r,i,a,o,s){var c=zt(t-n),l=zt(r-e),u=Lt(c,l),d=Bt[i],f=Bt[1-i],p=Vt[i];t<n||r<e?c<l?(a&&(Jt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Jt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=Rt(e,n),o[p]=Lt(t,r)-o[d]),a&&(u<Yt[0]||Kt.useDir)&&(Yt[0]=Lt(u,Yt[0]),(c<l||!Kt.bidirectional)&&(qt[d]=c,qt[f]=0,Kt.useDir&&Kt.calcDirMTV()),(c>=l||!Kt.bidirectional)&&(qt[d]=-l,qt[f]=0,Kt.useDir&&Kt.calcDirMTV())))}function rn(){var e=0,t=new It,n=new It,r={minTv:new It,maxTv:new It,useDir:!1,dirMinTv:new It,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=Rt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;if(i(u)){i(a.x)&&i(a.y)&&o.set(0,0);return}if(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)){o.set(0,0);return}(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n)}};function i(e){return zt(e)<1e-10}return r}var an=`silent`;function on(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:sn}}function sn(){Ct(this.event)}var cn=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Qe),ln=function(){function e(e,t){this.x=e,this.y=t}return e}(),un=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],dn=new Y(0,0,0,0),fn=function(e){s(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new ln(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new cn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Ze(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(un,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=hn(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(i=this.findHover(i.x,i.y),a=i.target);var o=this._hovered=r?new ln(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new ln(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e||={};var r=e.target;if(!(r&&r.silent)){for(var i=`on`+t,a=on(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new ln(e,t);if(mn(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new Y(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u!==n&&!u.ignore&&!u.ignoreCoarsePointer&&(!u.parent||!u.parent.ignoreCoarsePointer)&&(dn.copy(u.getBoundingRect()),u.transform&&dn.applyTransform(u.transform),dn.intersect(c)&&a.push(u))}if(a.length){for(var d=4,f=Math.PI/12,p=Math.PI*2,m=0;m<s;m+=d)for(var h=0;h<p;h+=f)if(mn(a,i,e+m*Math.cos(h),t+m*Math.sin(h),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new wt;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new ln;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Qe);L([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){fn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=hn(this,n,r),a,o;if((e!==`mouseup`||!i)&&(a=this.findHover(n,r),o=a.target),e===`mousedown`)this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e===`mouseup`)this._upEl=o;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||We(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function pn(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||an}return!1}function mn(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=pn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==an)){t.target=o;break}}}function hn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var gn=32,_n=7;function vn(e){for(var t=0;e>=gn;)t|=e&1,e>>=1;return e+t}function yn(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;bn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function bn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function xn(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a=e[r],o=t,s=r,c;o<s;)c=o+s>>>1,i(a,e[c])<0?s=c:o=c+1;var l=r-o;switch(l){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;l>0;)e[o+l]=e[o+l-1],l--}e[o]=a}}function Sn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Cn(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,c=(c<<1)+1,c<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function wn(e,t){var n=_n,r,i,a=0,o=[];r=[],i=[];function s(e,t){r[a]=e,i[a]=t,a+=1}function c(){for(;a>1;){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]<i[e+1]&&e--;else if(i[e]>i[e+1])break;u(e)}}function l(){for(;a>1;){var e=a-2;e>0&&i[e-1]<i[e+1]&&e--,u(e)}}function u(n){var o=r[n],s=i[n],c=r[n+1],l=i[n+1];i[n]=s+l,n===a-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),a--;var u=Cn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Sn(e[o+s-1],e,c,l,l-1,t),l!==0&&(s<=l?d(o,s,c,l):f(o,s,c,l)))}function d(r,i,a,s){var c=0;for(c=0;c<i;c++)o[c]=e[r+c];var l=0,u=a,d=r;if(e[d++]=e[u++],--s===0){for(c=0;c<i;c++)e[d+c]=o[l+c];return}if(i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l];return}for(var f=n,p,m,h;;){p=0,m=0,h=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],m++,p=0,--s===0){h=!0;break}}else if(e[d++]=o[l++],p++,m=0,--i===1){h=!0;break}while((p|m)<f);if(h)break;do{if(p=Cn(e[u],o,l,i,0,t),p!==0){for(c=0;c<p;c++)e[d+c]=o[l+c];if(d+=p,l+=p,i-=p,i<=1){h=!0;break}}if(e[d++]=e[u++],--s===0){h=!0;break}if(m=Sn(o[l],e,u,s,0,t),m!==0){for(c=0;c<m;c++)e[d+c]=e[u+c];if(d+=m,u+=m,s-=m,s===0){h=!0;break}}if(e[d++]=o[l++],--i===1){h=!0;break}f--}while(p>=_n||m>=_n);if(h)break;f<0&&(f=0),f+=2}if(n=f,n<1&&(n=1),i===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else if(i===0)throw Error();else for(c=0;c<i;c++)e[d+c]=o[l+c]}function f(r,i,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=r+i-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--i===0){for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];return}if(s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u];return}for(var m=n;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--i===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if(h=i-Cn(o[u],e,r,i,i-1,t),h!==0){for(d-=h,l-=h,i-=h,p=d+1,f=l+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(i===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if(g=s-Sn(e[l],o,0,s,s-1,t),g!==0){for(d-=g,u-=g,s-=g,p=d+1,f=u+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--i===0){_=!0;break}m--}while(h>=_n||g>=_n);if(_)break;m<0&&(m=0),m+=2}if(n=m,n<1&&(n=1),s===1){for(d-=i,l-=i,p=d+1,f=l+1,c=i-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else if(s===0)throw Error();else for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}return{mergeRuns:c,forceMergeRuns:l,pushRun:s}}function Tn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<gn){a=yn(e,n,r,t),xn(e,n,r,n+a,t);return}var o=wn(e,t),s=vn(i);do{if(a=yn(e,n,r,t),a<s){var c=i;c>s&&(c=s),xn(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var En=!1;function Dn(){En||(En=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function On(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var kn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=On}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Tn(n,On)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&(Dn(),p.z=0),isNaN(p.z2)&&(Dn(),p.z2=0),isNaN(p.zlevel)&&(Dn(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var r=I(this._roots,e);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),An=l.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},jn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(-(2**(-10*(e-1)))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)):n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-jn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?jn.bounceIn(e*2)*.5:jn.bounceOut(e*2-1)*.5+.5}},Mn=Math.pow,Nn=Math.sqrt,Pn=1e-8,Fn=1e-4,In=Nn(3),Ln=1/3,Rn=Pe(),zn=Pe(),Bn=Pe();function Vn(e){return e>-Pn&&e<Pn}function Hn(e){return e>Pn||e<-Pn}function Un(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function Wn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Gn(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-t*2+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(Vn(u)&&Vn(d)){if(Vn(s))a[0]=0;else{var m=-c/s;m>=0&&m<=1&&(a[p++]=m)}}else{var h=d*d-4*u*f;if(Vn(h)){var g=d/u,m=-s/o+g,_=-g/2;m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_)}else if(h>0){var v=Nn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Mn(-y,Ln):Mn(y,Ln),b=b<0?-Mn(-b,Ln):Mn(b,Ln);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Nn(u*u*u)),S=Math.acos(x)/3,C=Nn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+In*Math.sin(S)))/(3*o),T=(-s+C*(w-In*Math.sin(S)))/(3*o);m>=0&&m<=1&&(a[p++]=m),_>=0&&_<=1&&(a[p++]=_),T>=0&&T<=1&&(a[p++]=T)}}return p}function Kn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(Vn(o)){if(Hn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(Vn(u))i[0]=-a/(2*o);else if(u>0){var d=Nn(u),l=(-a+d)/(2*o),f=(-a-d)/(2*o);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function qn(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function Jn(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Rn[0]=c,Rn[1]=l;for(var v=0;v<1;v+=.05)zn[0]=Un(e,n,i,o,v),zn[1]=Un(t,r,a,s,v),g=Ke(Rn,zn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Fn);y++)m=d-f,h=d+f,zn[0]=Un(e,n,i,o,m),zn[1]=Un(t,r,a,s,m),g=Ke(zn,Rn),m>=0&&g<p?(d=m,p=g):(Bn[0]=Un(e,n,i,o,h),Bn[1]=Un(t,r,a,s,h),_=Ke(Bn,Rn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Un(e,n,i,o,d),u[1]=Un(t,r,a,s,d)),Nn(p)}function Yn(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=Un(e,n,i,o,m),g=Un(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Xn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Zn(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Qn(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(Vn(a)){if(Hn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(Vn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Nn(u),l=(-o+d)/(2*a),f=(-o-d)/(2*a);l>=0&&l<=1&&(i[c++]=l),f>=0&&f<=1&&(i[c++]=f)}}return c}function $n(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function er(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function tr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Rn[0]=o,Rn[1]=s;for(var f=0;f<1;f+=.05){zn[0]=Xn(e,n,i,f),zn[1]=Xn(t,r,a,f);var p=Ke(Rn,zn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Fn);m++){var h=l-u,g=l+u;zn[0]=Xn(e,n,i,h),zn[1]=Xn(t,r,a,h);var p=Ke(zn,Rn);if(h>=0&&p<d)l=h,d=p;else{Bn[0]=Xn(e,n,i,g),Bn[1]=Xn(t,r,a,g);var _=Ke(Bn,Rn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Xn(e,n,i,l),c[1]=Xn(t,r,a,l)),Nn(d)}function nr(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Xn(e,n,i,f),m=Xn(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var rr=/cubic-bezier\(([0-9,\.e ]+)\)/;function ir(e){var t=e&&rr.exec(e);if(t){var n=t[1].split(`,`),r=+xe(n[0]),i=+xe(n[1]),a=+xe(n[2]),o=+xe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Gn(0,r,a,1,e,s)&&Un(0,i,o,1,s[0])}}}var ar=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Me,this.ondestroy=e.ondestroy||Me,this.onrestart=e.onrestart||Me,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),this._paused){this._pausedTime+=t;return}var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(this.loop){var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}else return!0}return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=U(e)?e:jn[e]||ir(e)},e}(),or=function(){function e(e){this.value=e}return e}(),sr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new or(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),cr=function(){function e(e){this._list=new sr,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new or(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),lr={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 ur(e){return e=Math.round(e),e<0?0:e>255?255:e}function dr(e){return e=Math.round(e),e<0?0:e>360?360:e}function fr(e){return e<0?0:e>1?1:e}function pr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ur(parseFloat(t)/100*255):ur(parseInt(t,10))}function mr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?fr(parseFloat(t)/100):fr(parseFloat(t))}function hr(e,t,n){return n<0?n+=1:n>1&&--n,n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function gr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function _r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var vr=new cr(20),yr=null;function br(e,t){yr&&_r(yr,t),yr=vr.put(e,yr||t.slice())}function xr(e,t){if(e){t||=[];var n=vr.get(e);if(n)return _r(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in lr)return _r(t,lr[r]),br(e,t),t;var i=r.length;if(r.charAt(0)===`#`){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){gr(t,0,0,0,1);return}return gr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),br(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){gr(t,0,0,0,1);return}return gr(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),br(e,t),t}return}var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===i){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?gr(t,+l[0],+l[1],+l[2],1):gr(t,0,0,0,1);u=mr(l.pop());case`rgb`:if(l.length>=3)return gr(t,pr(l[0]),pr(l[1]),pr(l[2]),l.length===3?u:mr(l[3])),br(e,t),t;gr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){gr(t,0,0,0,1);return}return l[3]=mr(l[3]),Sr(l,t),br(e,t),t;case`hsl`:if(l.length!==3){gr(t,0,0,0,1);return}return Sr(l,t),br(e,t),t;default:return}}gr(t,0,0,0,1)}}function Sr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=mr(e[1]),i=mr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],gr(t,ur(hr(o,a,n+1/3)*255),ur(hr(o,a,n)*255),ur(hr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Cr(e){if(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=a-i,s=(a+i)/2,c,l;if(o===0)c=0,l=0;else{l=s<.5?o/(a+i):o/(2-a-i);var u=((a-t)/6+o/2)/o,d=((a-n)/6+o/2)/o,f=((a-r)/6+o/2)/o;t===a?c=f-d:n===a?c=1/3+u-f:r===a&&(c=2/3+d-u),c<0&&(c+=1),c>1&&--c}var p=[c*360,l,s];return e[3]!=null&&p.push(e[3]),p}}function wr(e,t){var n=xr(e);if(n){for(var r=0;r<3;r++)t<0?n[r]=n[r]*(1-t)|0:n[r]=(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Er(n,n.length===4?`rgba`:`rgb`)}}function Tr(e,t,n,r){var i=xr(e);if(e)return i=Cr(i),t!=null&&(i[0]=dr(U(t)?t(i[0]):t)),n!=null&&(i[1]=mr(U(n)?n(i[1]):n)),r!=null&&(i[2]=mr(U(r)?r(i[2]):r)),Er(Sr(i),`rgba`)}function Er(e,t){if(!(!e||!e.length)){var n=e[0]+`,`+e[1]+`,`+e[2];return(t===`rgba`||t===`hsva`||t===`hsla`)&&(n+=`,`+e[3]),t+`(`+n+`)`}}function Dr(e,t){var n=xr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Or=new cr(100);function kr(e){if(W(e)){var t=Or.get(e);return t||(t=wr(e,-.1),Or.put(e,t)),t}if(me(e)){var n=P({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:wr(e.color,-.1)}}),n}return e}var Ar=Math.round;function jr(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=xr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Mr=1e-4;function Nr(e){return e<Mr&&e>-Mr}function Pr(e){return Ar(e*1e3)/1e3}function Fr(e){return Ar(e*1e4)/1e4}function Ir(e){return`matrix(`+Pr(e[0])+`,`+Pr(e[1])+`,`+Pr(e[2])+`,`+Pr(e[3])+`,`+Fr(e[4])+`,`+Fr(e[5])+`)`}var Lr={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Rr(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function zr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Br(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}function Vr(e){return e&&!!e.image}function Hr(e){return e&&!!e.svgElement}function Ur(e){return Vr(e)||Hr(e)}function Wr(e){return e.type===`linear`}function Gr(e){return e.type===`radial`}function Kr(e){return e&&(e.type===`linear`||e.type===`radial`)}function qr(e){return`url(#`+e+`)`}function Jr(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Yr(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ne,i=K(e.scaleX,1),a=K(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),(i!==1||a!==1)&&c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+Ar(o*Ne)+`deg, `+Ar(s*Ne)+`deg)`),c.join(` `)}var Xr=(function(){return typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return process.env.NODE_ENV!==`production`&&ee(`Base64 isn't natively supported in the current environment.`),null}})(),Zr=Array.prototype.slice;function Qr(e,t,n){return(t-e)*n+e}function $r(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Qr(t[a],n[a],r);return e}function ei(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Qr(t[o][s],n[o][s],r)}return e}function ti(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function ni(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function ri(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function ii(e,t,n){var r=e,i=t;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:Zr.call(i[s]))}for(var c=r[0]&&r[0].length,s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function ai(e){if(ie(e)){var t=e.length;if(ie(e[0])){for(var n=[],r=0;r<t;r++)n.push(Zr.call(e[r]));return n}return Zr.call(e)}return e}function oi(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function si(e){return ie(e&&e[0])?2:1}var ci=0,li=1,ui=2,di=3,fi=4,pi=5,mi=6;function hi(e){return e===fi||e===pi}function gi(e){return e===li||e===ui}var _i=[0,0,0,0],vi=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=mi,s=t;if(ie(t)){var c=si(t);o=c,(c===1&&!ue(t[0])||c===2&&!ue(t[0][0]))&&(a=!0)}else if(ue(t)&&!ge(t))o=ci;else if(W(t)){if(!isNaN(+t))o=ci;else{var l=xr(t);l&&(s=l,o=di)}}else if(me(t)){var u=P({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:xr(e.color)}}),Wr(t)?o=fi:Gr(t)&&(o=pi),s=u}i===0?this.valType=o:(o!==this.valType||o===mi)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=U(n)?n:jn[n]||ir(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=gi(r),c=hi(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?ii(d,f,r):c&&ri(d.colorStops,f.colorStops))}if(!o&&r!==pi&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,l=0;l<i;l++)r===ci?n[l].additiveValue=n[l].value-p:r===di?n[l].additiveValue=ti([],n[l].value,p,-1):gi(r)&&(n[l].additiveValue=r===li?ti([],n[l].value,p,-1):ni([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,r=n?`additiveValue`:`value`,i=this.valType,a=this.keyframes,o=a.length,s=this.propName,c=i===di,l,u=this._lastFr,d=Math.min,f,p;if(o===1)f=p=a[0];else{if(t<0)l=0;else if(t<this._lastFrP){for(l=d(u+1,o-1);l>=0&&!(a[l].percent<=t);l--);l=d(l,o-2)}else{for(l=u;l<o&&!(a[l].percent>t);l++);l=d(l-1,o-2)}p=a[l+1],f=a[l]}if(f&&p){this._lastFr=l,this._lastFrP=t;var m=p.percent-f.percent,h=m===0?1:d((t-f.percent)/m,1);p.easingFunc&&(h=p.easingFunc(h));var g=n?this._additiveValue:c?_i:e[s];if((gi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(gi(i))i===li?$r(g,f[r],p[r],h):ei(g,f[r],p[r],h);else if(hi(i)){var _=f[r],v=p[r],y=i===fi;e[s]={type:y?`linear`:`radial`,x:Qr(_.x,v.x,h),y:Qr(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Qr(e.offset,n.offset,h),color:oi($r([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Qr(_.x2,v.x2,h),e[s].y2=Qr(_.y2,v.y2,h)):e[s].r=Qr(_.r,v.r,h)}else if(c)$r(g,f[r],p[r],h),n||(e[s]=oi(g));else{var b=Qr(f[r],p[r],h);n?this._additiveValue=b:e[s]=b}n&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===ci?e[n]=e[n]+r:t===di?(xr(e[n],_i),ti(_i,_i,r,1),e[n]=oi(_i)):t===li?ti(e[n],e[n],r,1):t===ui&&ni(e[n],e[n],r,1)},e}(),yi=function(){function e(e,t,n,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r){ee(`Can' use additive animation on looped animation.`);return}this._additiveAnimators=r,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,B(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new vi(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===di&&c&&(c=oi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,ai(c),r),this._trackKeys.push(o)}s.addKeyframe(e,ai(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new ar({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(var a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(var a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return R(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var o=!0,i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(!(!a||a.isFinished())){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=ai(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=B(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function bi(){return new Date().getTime()}var xi=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=bi()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function t(){e._running&&(An(t),!e._paused&&e.update())}An(t)},t.prototype.start=function(){this._running||(this._time=bi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=bi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=bi()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new yi(e,t.loop);return this.addAnimator(n),n},t}(Qe),Si=300,Ci=l.domSupported,wi=(function(){var e=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],t=[`touchstart`,`touchend`,`touchmove`],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:e,touch:t,pointer:R(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Ti={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ei=!1;function Di(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Oi(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function ki(e){e&&(e.zrByTouch=!0)}function Ai(e,t){return yt(e.dom,new Mi(e,t),!0)}function ji(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Mi=function(){function e(e,t){this.stopPropagation=Me,this.stopImmediatePropagation=Me,this.preventDefault=Me,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Ni={mousedown:function(e){e=yt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=yt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=yt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=yt(this.dom,e);var t=e.toElement||e.relatedTarget;ji(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ei=!0,e=yt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ei||(e=yt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=yt(this.dom,e),ki(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ni.mousemove.call(this,e),Ni.mousedown.call(this,e)},touchmove:function(e){e=yt(this.dom,e),ki(e),this.handler.processGesture(e,`change`),Ni.mousemove.call(this,e)},touchend:function(e){e=yt(this.dom,e),ki(e),this.handler.processGesture(e,`end`),Ni.mouseup.call(this,e),+new Date-this.__lastTouchMoment<Si&&Ni.click.call(this,e)},pointerdown:function(e){Ni.mousedown.call(this,e)},pointermove:function(e){Di(e)||Ni.mousemove.call(this,e)},pointerup:function(e){Ni.mouseup.call(this,e)},pointerout:function(e){Di(e)||Ni.mouseout.call(this,e)}};L([`click`,`dblclick`,`contextmenu`],function(e){Ni[e]=function(t){t=yt(this.dom,t),this.trigger(e,t)}});var Pi={pointermove:function(e){Di(e)||Pi.mousemove.call(this,e)},pointerup:function(e){Pi.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Fi(e,t){var n=t.domHandlers;l.pointerEventsSupported?L(wi.pointer,function(r){Li(t,r,function(t){n[r].call(e,t)})}):(l.touchEventsSupported&&L(wi.touch,function(r){Li(t,r,function(i){n[r].call(e,i),Oi(t)})}),L(wi.mouse,function(r){Li(t,r,function(i){i=vt(i),t.touching||n[r].call(e,i)})}))}function Ii(e,t){l.pointerEventsSupported?L(Ti.pointer,n):l.touchEventsSupported||L(Ti.mouse,n);function n(n){function r(r){r=vt(r),ji(e,r.target)||(r=Ai(e,r),t.domHandlers[n].call(e,r))}Li(t,n,r,{capture:!0})}}function Li(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,xt(e.domTarget,t,n,r)}function Ri(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&St(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var zi=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),Bi=function(e){s(t,e);function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new zi(t,Ni),Ci&&(r._globalHandlerScope=new zi(document,Pi)),Fi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Ri(this._localHandlerScope),Ci&&Ri(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Ci&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ii(this,t):Ri(t)}},t}(Qe),Vi=1;l.hasGlobalWindow&&(Vi=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Hi=Vi,Ui=.4,Wi=`#333`,Gi=`#ccc`,Ki=`#eee`,qi=kt,Ji=5e-5;function Yi(e){return e>Ji||e<-Ji}var Xi=[],Zi=[],Qi=Ot(),$i=Math.abs,ea=function(){function e(){}return e.prototype.getLocalTransform=function(e){return ta(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return Yi(this.rotation)||Yi(this.x)||Yi(this.y)||Yi(this.scaleX-1)||Yi(this.scaleY-1)||Yi(this.skewX)||Yi(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(qi(n),this.invTransform=null);return}n||=Ot(),t?this.getLocalTransform(n):qi(n),e&&(t?jt(n,e,n):At(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Ot(),Ft(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Xi);var n=Xi[0]<0?-1:1,r=Xi[1]<0?-1:1,i=((Xi[0]-n)*t+n)/Xi[0]||0,a=((Xi[1]-r)*t+r)/Xi[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Ot(),jt(Zi,e.invTransform,t),t=Zi);var n=this.originX,r=this.originY;(n||r)&&(Qi[4]=n,Qi[5]=r,jt(Zi,t,Qi),Zi[4]-=n,Zi[5]-=r,t=Zi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&qe(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&qe(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&$i(e[0]-1)>1e-10&&$i(e[3]-1)>1e-10?Math.sqrt($i(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ra(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&Nt(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e}(),ta=ea.getLocalTransform,na=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ra(e,t){return te(e,t,na)}function ia(e){aa||=new cr(100),e||=`12px sans-serif`;var t=aa.get(e);return t||(t={font:e,strWidthCache:new cr(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:_.measureText(`国`,e).width,asciiCharWidth:_.measureText(`a`,e).width},aa.put(e,t)),t}var aa;function oa(e){if(!(sa>=ca)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=_.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?sa=ca:i>2&&sa++,t}}var sa=0,ca=5;function la(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=oa(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function ua(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=_.measureText(t,e.font).width,n.put(t,r)),r}function da(e,t,n,r){var i=ua(ia(t),e),a=ha(t);return new Y(pa(0,i,n),ma(0,a,r),i,a)}function fa(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return da(i[0],t,n,r);for(var a=new Y(0,0,0,0),o=0;o<i.length;o++){var s=da(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function pa(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ma(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function ha(e){return ia(e).stWideCharWidth}function ga(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function _a(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=ga(r[0],n.width),l+=ga(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var va=`__zr_normal__`,ya=na.concat([`ignore`]),ba=ae(na,function(e,t){return e[t]=!0,e},{ignore:!1}),xa={},Sa=new Y(0,0,0,0),Ca=[],wa=function(){function e(e){this.id=j(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=Sa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(xa,n,d):_a(xa,n,d),i.x=xa.x,i.y=xa.y,a=xa.align,o=xa.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=d.width*.5,m=d.height*.5):(p=ga(f[0],d.width),m=ga(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new Y(0,0,0,0);i.getLocalTransform(Ca),Ft(Ca,Ca),Y.copy(_,d),_.applyTransform(Ca)}else g.overflowRect=null;var v=n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=n.insideFill,b=n.insideStroke,(y==null||y===`auto`)&&(y=this.getInsideTextFill()),(b==null||b===`auto`)&&(b=this.getInsideTextStroke(y),x=!0)):(y=n.outsideFill,b=n.outsideStroke,(y==null||y===`auto`)&&(y=this.getOutsideFill()),(b==null||b===`auto`)&&(b=this.getOutsideStroke(y),x=!0)),y||=`#000`,(y!==g.fill||b!==g.stroke||x!==g.autoStroke||a!==g.align||o!==g.verticalAlign)&&(s=!0,g.fill=y,g.stroke=b,g.autoStroke=x,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gi:Wi},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&xr(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Er(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},P(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(G(e))for(var n=B(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,ya)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&!(i in t)&&(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(va,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===va;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(I(a,e)>=0&&(t||a.length===1))){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],!s&&!i){ee(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Ma(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Pa(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}}},e.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(var s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Ma(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Pa(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=I(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=I(r,e),a=I(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t={},n,r=0;r<e.length;r++){var i=e[r];P(t,i),i.textConfig&&(n||={},P(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=P({},r?this.textConfig:n.textConfig),P(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ya.length;l++){var u=ya[l],d=i&&ba[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(var l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!==`production`)throw Error(`Text element has been added to zrender.`);return}if(e===this){if(process.env.NODE_ENV!==`production`)throw Error(`Recursive component attachment.`);return}var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;if(t!==e){if(t&&t!==e&&this.removeTextContent(),process.env.NODE_ENV!==`production`&&e.__zr&&!e.__hostTarget)throw Error(`Text element has been added to zrender.`);e.innerTransformable=new ea,this._attachComponent(e),this._textContent=e,this.markRedraw()}},e.prototype.setTextConfig=function(e){this.textConfig||={},P(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=e?this[e]:this;if(process.env.NODE_ENV!==`production`&&!r){ee(`Property "`+e+`" is not existed in element `+this.id);return}var i=new yi(r,t,n);return e&&(i.targetName=e),this.addAnimator(i,e),i},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=I(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ta(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ta(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ta(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1;var n={};function r(e,t,r){n[e+t+r]||(console.warn(`DEPRECATED: '`+e+`' has been deprecated. use '`+t+`', '`+r+`' instead`),n[e+t+r]=!0)}function i(e,n,i,a){Object.defineProperty(t,e,{get:function(){if(process.env.NODE_ENV!==`production`&&r(e,i,a),!this[n]){var t=this[n]=[];o(this,t)}return this[n]},set:function(t){process.env.NODE_ENV!==`production`&&r(e,i,a),this[i]=t[0],this[a]=t[1],this[n]=t,o(this,t)}});function o(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[a]},set:function(t){e[a]=t}})}}Object.defineProperty&&(i(`position`,`_legacyPos`,`x`,`y`),i(`scale`,`_legacyScale`,`scaleX`,`scaleY`),i(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();re(wa,Qe),re(wa,ea);function Ta(e,t,n,r,i){n||={};var a=[];ja(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ea(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Da(e){return ie(e[0])}function Oa(e,t,n){if(ie(t[n])){if(ie(e[n])||(e[n]=[]),fe(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ea(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Da(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ea(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ea(a,i,o);a.length=i.length}}else e[n]=t[n]}function ka(e,t){return e===t||ie(e)&&ie(t)&&Aa(e,t)}function Aa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ja(e,t,n,r,i,a,o,s){for(var c=B(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!G(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(G(v)&&!ie(v)&&!me(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ja(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_)}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=I(m,x);m.splice(S,1)}}if(i.force||(h=oe(h,function(e){return!ka(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,T=void 0;if(s){w={},f&&(C={});for(var b=0;b<y;b++){var _=h[b];w[_]=n[_],f?C[_]=r[_]:n[_]=r[_]}}else if(f){T={};for(var b=0;b<y;b++){var _=h[b];T[_]=ai(n[_]),Oa(n,r,_)}}var x=new yi(n,!1,!1,d?oe(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),T&&x.whenWithKeys(0,T,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}function Ma(e,t,n,r){return!(n&&n.hoverLayer||r)||Na(e)||t&&Na(t)?0:1}function Na(e){return e.type===`text`||e.type===`tspan`}function Pa(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Fa=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),process.env.NODE_ENV!==`production`&&e.__hostTarget))throw`This elemenet has been used as an attachment`;return this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=I(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=I(n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new Y(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!(o.ignore||o.invisible)){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(Y.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(wa);Fa.prototype.type=`group`;var Ia={},La={};function Ra(e){delete La[e]}function za(e){if(!e)return!1;if(typeof e==`string`)return Dr(e,1)<Ui;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Dr(t[i].color,1);return n/=r,n<Ui}return!1}var Ba=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new kn,a=n.renderer||`canvas`;if(Ia[a]||(a=B(Ia)[0]),process.env.NODE_ENV!==`production`&&!Ia[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ia[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!l.node&&!l.worker&&!s?new Bi(o.getViewportRoot(),o.root):null,u=n.useCoarsePointer,d=u==null||u===`auto`?l.touchEventsSupported:!!u,f=44,p;d&&(p=K(n.pointerSize,f)),this.handler=new fn(i,o,c,o.root,p),this.animation=new xi({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return e.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=za(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.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},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=bi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=bi();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Fa&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ra(this.id))},e}();function Va(e,t){var n=new Ba(j(),e,t);return La[n.id]=n,n}function Ha(e,t){Ia[e]=t}var Ua;function Wa(e){if(typeof Ua==`function`)return Ua(e)}function Ga(e){Ua=e}var Ka=1e-4,qa=20;function Ja(e){return e.replace(/^\s+|\s+$/g,``)}var Ya=Math.min,X=Math.max,Xa=Math.abs,Za=Math.round,Qa=Math.floor,$a=Math.ceil,eo=Math.pow,to=Math.log,no=Math.LN10,ro=Math.PI,io=Math.random;function ao(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else if(e>=i)return o;else if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var oo=so;function so(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return co(e,t,n)}function co(e,t,n){return W(e)?lo(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function lo(e){return!!Ja(e).match(/%$/)}function uo(e,t,n){return process.env.NODE_ENV!==`production`&&q(t!=null),isNaN(t)?n?``+e:+e:(t=Ya(X(0,t),qa),e=(+e).toFixed(t),n?e:+e)}function fo(e){return e.sort(function(e,t){return e-t}),e}function po(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Za(e*t)/t===e)return n}return mo(e)}function mo(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return X(0,(a<0?0:i-1-a)-r)}function ho(e,t,n){var r=Xa(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=to(2*Xa(n||1)*Xa(r))/no,a=to(Xa(t))/no,o=X(0,$a(-i+a));return isFinite(o)||(o=NaN),o}function go(e,t){var n=X(po(e),po(t)),r=e+t;return n>qa?r:uo(r,n)}var _o=eo(2,53)-1;function vo(e){var t=ro*2;return(e%t+t)%t}function yo(e){return e>-Ka&&e<Ka}var bo=/^(?:(\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 xo(e){if(e instanceof Date)return e;if(W(e)){var t=bo.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Za(e))}function So(e){return eo(10,Co(e))}function Co(e){if(e===0)return 0;var t=Qa(to(e)/no);return e/eo(10,t)>=10&&t++,t}function wo(e,t){var n=Co(e),r=eo(10,n),i=e/r;return e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,uo(e,-n)}function To(e){var t=parseFloat(e);return t==e&&(t!==0||!W(e)||e.indexOf(`x`)<=0)?t:NaN}function Eo(e){return!isNaN(To(e))}function Do(){return Za(io()*9)}function Oo(e,t){return t===0?e:Oo(t,e%t)}function ko(e,t){return e==null?t:t==null?e:e*t/Oo(e,t)}function Ao(e){return e!=null&&isFinite(e)}var jo=`[ECharts] `,Mo={},No=typeof console<`u`&&console.warn&&console.log;function Po(e,t,n){if(No){if(n){if(Mo[t])return;Mo[t]=!0}console[e](jo+t)}}function Fo(e,t){Po(`log`,e,t)}function Io(e,t){Po(`warn`,e,t)}function Z(e,t){Po(`error`,e,t)}function Lo(e){process.env.NODE_ENV!==`production`&&Po(`warn`,`DEPRECATED: `+e,!0)}function Ro(e,t,n){process.env.NODE_ENV!==`production`&&Lo((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function zo(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=``;if(process.env.NODE_ENV!==`production`){var r=function(e){return e===void 0?`undefined`:e===1/0?`Infinity`:e===-1/0?`-Infinity`:ge(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:U(e)?`function () { ... }`:he(e)?e+``:null};n=R(e,function(e){if(W(e))return e;var t=r(e);if(t!=null)return t;if(typeof JSON<`u`&&JSON.stringify)try{return JSON.stringify(e,function(e,t){return r(t)??t})}catch{return`?`}return`?`}).join(` `)}return n}function Bo(e){throw Error(e)}var Vo=`series\0`,Ho=`\0_ec_\0`;function Uo(e){return e instanceof Array?e:e==null?[]:[e]}function Wo(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Go=`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`.split(`.`);function Ko(e){return G(e)&&!H(e)&&!(e instanceof Date)?e.value:e}function qo(e){return G(e)&&!(e instanceof Array)}function Jo(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=J();L(t,function(e,n){if(!G(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!as(e.id)&&is(e.id),e.name!=null&&!as(e.name)&&is(e.name))});var s=Yo(e,o,n);return(r||i)&&Xo(s,e,o,t),r&&Zo(s,t),r||i?Qo(s,t,i):a&&$o(s,t),es(s),s}function Yo(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||ss(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Xo(e,t,n,r){L(r,function(i,a){if(!(!i||i.id==null)){var o=ns(i.id),s=n.get(o);if(s!=null){var c=e[s];q(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Zo(e,t){L(t,function(n,r){if(!(!n||n.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!ss(n)&&!ss(a)&&ts(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Qo(e,t,n){L(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||ss(r.existing)||r.existing&&t.id!=null&&!ts(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function $o(e,t){L(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function es(e){var t=J();L(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),L(e,function(e){var n=e.newOption;q(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,`id duplicates: `+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),L(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(G(i)){if(a.name=i.name==null?r?r.name:Vo+n:ns(i.name),r)a.id=ns(r.id);else if(i.id!=null)a.id=ns(i.id);else{var o=0;do a.id=`\0`+a.name+`\0`+o++;while(t.get(a.id))}t.set(a.id,e)}})}function ts(e,t,n){var r=rs(t[e],null),i=rs(n[e],null);return r!=null&&i!=null&&r===i}function ns(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return rs(e,``)}function rs(e,t){return e==null?t:W(e)?e:ue(e)||le(e)?e+``:t}function is(e){process.env.NODE_ENV!==`production`&&Io("`"+e+"` is invalid id or name. Must be a string or number.")}function as(e){return le(e)||Eo(e)}function os(e){var t=e.name;return!!(t&&t.indexOf(Vo))}function ss(e){return e&&e.id!=null&&ns(e.id).indexOf(Ho)===0}function cs(e,t,n){L(e,function(e){var r=e.newOption;G(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=ls(t,r,e.existing,n))})}function ls(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function us(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return H(t.dataIndex)?R(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return H(t.name)?R(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function ds(){var e=`__ec_inner_`+fs++;return function(t){return t[e]||(t[e]={})}}var fs=Do();function ps(e,t,n){var r=ms(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=gs(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function ms(e,t){var n;if(W(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=J(),a={},o=!1;return L(n,function(e,n){if(n===`dataIndex`||n===`dataIndexInside`){a[n]=e;return}var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();if(!(!s||!c||t&&t.includeMainTypes&&I(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var hs={useDefault:!0,enableAll:!1,enableNone:!1};function gs(e,t,n,r){r||=hs;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||i===!1){if(r.enableNone)return s.models=[],s;process.env.NODE_ENV!==`production`&&Z('`"none"` or `false` is not a valid value on index option.'),i=-1}return i===`all`&&(r.enableAll?i=a=o=null:(process.env.NODE_ENV!==`production`&&Z('`"all"` is not a valid value on index option.'),i=-1)),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function _s(e,t,n){process.env.NODE_ENV!==`production`&&q(t);var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}function vs(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function ys(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function bs(e){return e===`auto`?l.domSupported?`html`:`richText`:e||`html`}(function(){function e(){}return e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.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._step,!0)},e})();function xs(){return[1/0,-1/0]}function Ss(e,t){Es(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Cs(e,t){Es(t)&&t<e[0]&&(e[0]=t)}function ws(e,t){Es(t)&&t>e[1]&&(e[1]=t)}function Ts(e,t){Ds(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Es(e){return e!=null&&isFinite(e)}function Ds(e,t){return Es(e)&&Es(t)&&e<=t}function Os(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function ks(e){Ds(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function As(){var e=`__ec_once_`+js++;return function(t,n){process.env.NODE_ENV!==`production`&&q(t),je(t,e)||(t[e]=1,n())}}var js=Do();function Ms(e,t,n){var r=J(),i=0;L(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&q(W(o));var s=r.get(o)||0;n&&n(a,s),!s&&!n&&(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function Ns(e){return process.env.NODE_ENV!==`production`&&q(e.value!=null),e.value+``}function Ps(e){return process.env.NODE_ENV!==`production`&&q(e!=null),e+``}function Fs(e,t){return K(t,!0)?e.seriesIndex+2:0}function Is(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function Ls(e){return{overallReset:e}}var Rs=`.`,zs=`___EC__COMPONENT__CONTAINER___`,Bs=`___EC__EXTENDED_CLASS___`;function Vs(e){var t={main:``,sub:``};if(e){var n=e.split(Rs);t.main=n[0]||``,t.sub=n[1]||``}return t}function Hs(e){q(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Us(e){return!!(e&&e[Bs])}function Ws(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&L(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,r;return Gs(n)?r=function(e){s(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},ne(r,this)),P(r.prototype,e),r[Bs]=!0,r.extend=this.extend,r.superCall=Ys,r.superApply=Xs,r.superClass=n,r}}function Gs(e){return U(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Ks(e,t){e.extend=t.extend}var qs=Math.round(Math.random()*10);function Js(e){var t=[`__\0is_clz`,qs++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&q(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function Ys(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[t].apply(e,n)}function Xs(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Zs(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Hs(r),e.prototype.type=r;var i=Vs(r);if(!i.sub)process.env.NODE_ENV!==`production`&&t[i.main]&&console.warn(i.main+` exists.`),t[i.main]=e;else if(i.sub!==zs){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[zs]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=Vs(e),r=[],i=t[n.main];return i&&i[zs]?L(i,function(e,t){t!==zs&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Vs(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Vs(e).main];return n&&n[zs]};function n(e){var n=t[e.main];return(!n||!n[zs])&&(n=t[e.main]={},n[zs]=!0),n}}function Qs(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&I(r,s)>=0||i&&I(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var $s=Qs([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),ec=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return $s(this,e,t)},e}(),tc=new cr(50);function nc(e){if(typeof e==`string`){var t=tc.get(e);return t&&t.image}return e}function rc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=tc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!ac(t)&&a.pending.push(o)):(t=_.loadImage(e,ic,ic),t.__zrImageSrc=e,tc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function ic(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ac(e){return e&&e.width&&e.height}var oc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function sc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
+
`);a=cc(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)lc(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function cc(e,t,n,r){r||={};var i=P({},r);n=K(n,`...`),i.maxIterations=K(r.maxIterations,2);var a=i.minChar=K(r.minChar,0),o=i.fontMeasureInfo=ia(t),s=o.asciiCharWidth;i.placeholder=K(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=ua(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function lc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=ua(a,t);if(o<=r){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?uc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=ua(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function uc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=la(n,e.charCodeAt(i));return i}function dc(e,t,n,r){var i=wc(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=ha(l),f=K(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g=t.height;g==null&&r!=null&&(g=r-c);var _=h!=null&&(a===`break`||a===`breakAll`)?i?bc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=cc(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)lc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=ia(l),S=0;S<_.length;S++)w=Math.max(ua(T,_[S]),w);h??=w;var E=h;return C+=c,E+=s,{lines:_,height:g,outerWidth:E,outerHeight:C,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}var fc=function(){function e(){}return e}(),pc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),mc=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function hc(e,t,n,r,i){var a=new mc,o=wc(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f=t.overflow,p=(f===`break`||f===`breakAll`)&&u!=null?{width:u,accumWidth:0,breakAll:f===`breakAll`}:null,m=oc.lastIndex=0,h;(h=oc.exec(o))!=null;){var g=h.index;g>m&&gc(a,o.substring(m,g),t,p),gc(a,h[2],t,p,h[1]),m=oc.lastIndex}m<o.length&&gc(a,o.substring(m,o.length),t,p);var _=[],v=0,y=0,b=f===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}outer:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=T.tokens[O],A=k.styleName&&t.rich[k.styleName]||{},j=k.textPadding=A.padding,ee=j?j[1]+j[3]:0,M=k.font=A.font||t.font;k.contentHeight=ha(M);var N=K(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=ve(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var P=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<P;break outer}var te=A.width,F=te==null||te===`auto`;if(typeof te==`string`&&te.charAt(te.length-1)===`%`)k.percentWidth=te,_.push(k),k.contentWidth=ua(ia(M),k.text);else{if(F){var I=A.backgroundColor,ne=I&&I.image;ne&&(ne=nc(ne),ac(ne)&&(k.width=Math.max(k.width,ne.width*N/ne.height)))}var re=b&&u!=null?u-D:null;re!=null&&re<k.width?!F||re<ee?(k.text=``,k.width=k.contentWidth=0):(sc(S,k.text,re-ee,M,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=ua(ia(M),k.text)):k.contentWidth=ua(ia(M),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=K(u,y),a.outerHeight=a.height=K(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],ie=k.percentWidth;k.width=parseInt(ie,10)/100*a.width}return a}function gc(e,t,n,r,i){var a=t===``,o=i&&n.rich[i]||{},s=e.lines,c=o.font||n.font,l=!1,u,d;if(r){var f=o.padding,p=f?f[1]+f[3]:0;if(o.width!=null&&o.width!==`auto`){var m=ga(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=bc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
7
|
+
`);for(var g=ia(c),_=0;_<u.length;_++){var v=u[_],y=new fc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:ua(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new pc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new pc([y]))}}function _c(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var vc=ae(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function yc(e){return!_c(e)||!!vc[e]}function bc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=ia(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=la(d,p.charCodeAt(0)),h=!r&&!yc(p);if(a.length?u+m>n:i+u+m>n){u?(s||c)&&(h?(s||(s=c,c=``,l=0,u=l),a.push(s),o.push(u-l),c+=p,l+=m,s=``,u=l):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m));continue}u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p)}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function xc(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=t.width*2,s=t.height*2;Y.set(Sc,pa(n,o,i),ma(r,s,a),o,s),Y.intersect(t,Sc,null,Cc);var c=Cc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=pa(c.x,c.width,i,!0),e.baseY=ma(c.y,c.height,a,!0)}}var Sc=new Y(0,0,0,0),Cc={outIntersectRect:{},clamp:!0};function wc(e){return e==null?e=``:e+=``}function Tc(e){var t=wc(e.text),n=e.font;return Ec(e,ua(ia(n),t),ha(n),null)}function Ec(e,t,n,r){var i=new Y(pa(e.x||0,t,e.textAlign),ma(e.y||0,n,e.textBaseline),t,n),a=r??(Dc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Dc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Oc=`__zr_style_`+Math.round(Math.random()*10),kc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ac={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};kc[Oc]=!0;var jc=[`z`,`z2`,`invisible`],Mc=[`invisible`],Nc=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=B(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Ic(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new Y(0,0,0,0),t?Y.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=i*2+Math.abs(a),e.height+=i*2+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+s*2),e.height=Math.ceil(e.height+1+s*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new Y(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:P(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&2)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Ae(kc,e)},t.prototype.useStyle=function(e){e[Oc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Oc]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,jc)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s=!(n&&i),c=this.__inHover===1,l;if(n&&n.style?a?i?l=n.style:(l=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(l,n.style)):s&&(l=r.style),l){if(a){var u=this.style;if(this.style=this.createStyle(s?{}:u),s)for(var d=B(u),f=0;f<d.length;f++){var p=d[f];p in l&&(l[p]=l[p],this.style[p]=u[p])}for(var m=B(l),f=0;f<m.length;f++){var p=m[f];this.style[p]=this.style[p]}this._transitionState(t,{style:l},o,this.getAnimationStyleProps())}else c?this._useHoverStyle(l):this.useStyle(l)}if(!c)for(var h=this.__inHover?Mc:jc,f=0;f<h.length;f++){var p=h[f];n&&n[p]!=null?this[p]=n[p]:s&&r[p]!=null&&(this[p]=r[p])}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.style&&(r||={},this._mergeStyle(r,a.style))}return r&&(n.style=r),n},t.prototype._mergeStyle=function(e,t){return P(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ac},t.initDefaultProps=(function(){var e=t.prototype;e.type=`displayable`,e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor=`pointer`,e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(wa),Pc=new Y(0,0,0,0),Fc=new Y(0,0,0,0);function Ic(e,t,n){return Pc.copy(e.getBoundingRect()),e.transform&&Pc.applyTransform(e.transform),Fc.width=t,Fc.height=n,!Pc.intersect(Fc)}var Lc=Math.min,Rc=Math.max,zc=Math.sin,Bc=Math.cos,Vc=Math.PI*2,Hc=Pe(),Uc=Pe(),Wc=Pe();function Gc(e,t,n,r,i,a){i[0]=Lc(e,n),i[1]=Lc(t,r),a[0]=Rc(e,n),a[1]=Rc(t,r)}var Kc=[],qc=[];function Jc(e,t,n,r,i,a,o,s,c,l){var u=Kn,d=Un,f=u(e,n,i,o,Kc);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,Kc[p]);c[0]=Lc(m,c[0]),l[0]=Rc(m,l[0])}f=u(t,r,a,s,qc);for(var p=0;p<f;p++){var h=d(t,r,a,s,qc[p]);c[1]=Lc(h,c[1]),l[1]=Rc(h,l[1])}c[0]=Lc(e,c[0]),l[0]=Rc(e,l[0]),c[0]=Lc(o,c[0]),l[0]=Rc(o,l[0]),c[1]=Lc(t,c[1]),l[1]=Rc(t,l[1]),c[1]=Lc(s,c[1]),l[1]=Rc(s,l[1])}function Yc(e,t,n,r,i,a,o,s){var c=$n,l=Xn,u=Rc(Lc(c(e,n,i),1),0),d=Rc(Lc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Lc(e,i,f),o[1]=Lc(t,a,p),s[0]=Rc(e,i,f),s[1]=Rc(t,a,p)}function Xc(e,t,n,r,i,a,o,s,c){var l=Je,u=Ye,d=Math.abs(i-a);if(d%Vc<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Hc[0]=Bc(i)*n+e,Hc[1]=zc(i)*r+t,Uc[0]=Bc(a)*n+e,Uc[1]=zc(a)*r+t,l(s,Hc,Uc),u(c,Hc,Uc),i%=Vc,i<0&&(i+=Vc),a%=Vc,a<0&&(a+=Vc),i>a&&!o?a+=Vc:i<a&&o&&(i+=Vc),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Wc[0]=Bc(p)*n+e,Wc[1]=zc(p)*r+t,l(s,Wc,s),u(c,Wc,c))}var Zc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Qc=[],$c=[],el=[],tl=[],nl=[],rl=[],il=Math.min,al=Math.max,ol=Math.cos,sl=Math.sin,cl=Math.abs,ll=Math.PI,ul=ll*2,dl=typeof Float32Array<`u`,fl=[];function pl(e){return Math.round(e/ll*1e8)/1e8%2*ll}function ml(e,t){var n=pl(e[0]);n<0&&(n+=ul);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=ul?i=n+ul:t&&n-i>=ul?i=n-ul:!t&&n>i?i=n+(ul-pl(n-i)):t&&n<i&&(i=n-(ul-pl(i-n))),e[0]=n,e[1]=i}var hl=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){n||=0,n>0&&(this._ux=cl(n/Hi/e)||0,this._uy=cl(n/Hi/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Zc.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=cl(e-this._xi),r=cl(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Zc.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Zc.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Zc.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),fl[0]=r,fl[1]=i,ml(fl,a),r=fl[0],i=fl[1];var o=i-r;return this.addData(Zc.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=ol(i)*n+e,this._yi=sl(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Zc.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Zc.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&dl&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(dl&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(var i=0;i<t;i++)for(var s=e[i].data,o=0;o<s.length;o++)this.data[r++]=s[o];this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,dl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){el[0]=el[1]=nl[0]=nl[1]=Number.MAX_VALUE,tl[0]=tl[1]=rl[0]=rl[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,r=0,i=0,a;for(a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(t=e[a],n=e[a+1],r=t,i=n),o){case Zc.M:t=r=e[a++],n=i=e[a++],nl[0]=r,nl[1]=i,rl[0]=r,rl[1]=i;break;case Zc.L:Gc(t,n,e[a],e[a+1],nl,rl),t=e[a++],n=e[a++];break;case Zc.C:Jc(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],nl,rl),t=e[a++],n=e[a++];break;case Zc.Q:Yc(t,n,e[a++],e[a++],e[a],e[a+1],nl,rl),t=e[a++],n=e[a++];break;case Zc.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=ol(f)*u+c,i=sl(f)*d+l),Xc(c,l,u,d,f,p,m,nl,rl),t=ol(p)*u+c,n=sl(p)*d+l;break;case Zc.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Gc(r,i,r+h,i+g,nl,rl);break;case Zc.Z:t=r,n=i}Je(el,el,nl),Ye(tl,tl,rl)}return a===0&&(el[0]=el[1]=tl[0]=tl[1]=0),new Y(el[0],el[1],tl[0]-el[0],tl[1]-el[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(i=e[d],a=e[d+1],o=i,s=a);var m=-1;switch(f){case Zc.M:i=o=e[d++],a=s=e[d++];break;case Zc.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(cl(_)>n||cl(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Zc.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Yn(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Zc.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=nr(i,a,y,b,h,g,10),i=h,a=g;break;case Zc.A:var C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=e[d++],k=O+D;d+=1,p&&(o=ol(D)*T+C,s=sl(D)*E+w),m=al(T,E)*il(ul,Math.abs(O)),i=ol(k)*T+C,a=sl(k)*E+w;break;case Zc.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Zc.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n=this.data,r=this._ux,i=this._uy,a=this._len,o,s,c,l,u,d,f=t<1,p,m,h=0,g=0,_,v=0,y,b;if(!(f&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=t*m,!_)))lo:for(var x=0;x<a;){var S=n[x++],C=x===1;switch(C&&(c=n[x],l=n[x+1],o=c,s=l),S!==Zc.L&&v>0&&(e.lineTo(y,b),v=0),S){case Zc.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Zc.L:u=n[x++],d=n[x++];var w=cl(u-c),T=cl(d-l);if(w>r||T>i){if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+u*D,l*(1-D)+d*D);break lo}h+=E}e.lineTo(u,d),c=u,l=d,v=0}else{var O=w*w+T*T;O>v&&(y=u,b=d,v=O)}break;case Zc.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],M=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;qn(c,k,j,M,D,Qc),qn(l,A,ee,N,D,$c),e.bezierCurveTo(Qc[1],$c[1],Qc[2],$c[2],Qc[3],$c[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,M,N),c=M,l=N;break;case Zc.Q:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;er(c,k,j,D,Qc),er(l,A,ee,D,$c),e.quadraticCurveTo(Qc[1],$c[1],Qc[2],$c[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case Zc.A:var P=n[x++],te=n[x++],F=n[x++],I=n[x++],ne=n[x++],re=n[x++],ie=n[x++],L=!n[x++],R=F>I?F:I,ae=cl(F-I)>.001,oe=ne+re,z=!1;if(f){var E=p[g++];h+E>_&&(oe=ne+re*(_-h)/E,z=!0),h+=E}if(ae&&e.ellipse?e.ellipse(P,te,F,I,ie,ne,oe,L):e.arc(P,te,R,ne,oe,L),z)break lo;C&&(o=ol(ne)*F+P,s=sl(ne)*I+te),c=ol(oe)*F+P,l=sl(oe)*I+te;break;case Zc.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var B=n[x++],se=n[x++];if(f){var E=p[g++];if(h+E>_){var V=_-h;e.moveTo(u,d),e.lineTo(u+il(V,B),d),V-=B,V>0&&e.lineTo(u+B,d+il(V,se)),V-=se,V>0&&e.lineTo(u+al(B-V,0),d+se),V-=B,V>0&&e.lineTo(u,d+al(se-V,0));break lo}h+=E}e.rect(u,d,B,se);break;case Zc.Z:if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;e.lineTo(c*(1-D)+o*D,l*(1-D)+s*D);break lo}h+=E}e.closePath(),c=o,l=s}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Zc,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function gl(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0,l=e;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e!==n)c=(t-r)/(e-n),l=(e*r-n*t)/(e-n);else return Math.abs(a-e)<=s/2;var u=c*a-o+l;return u*u/(c*c+1)<=s/2*s/2}function _l(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d?!1:Jn(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function vl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l?!1:tr(e,t,n,r,i,a,s,c,null)<=l/2}var yl=Math.PI*2;function bl(e){return e%=yl,e<0&&(e+=yl),e}var xl=Math.PI*2;function Sl(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%xl<1e-4)return!0;if(a){var d=r;r=bl(i),i=bl(d)}else r=bl(r),i=bl(i);r>i&&(i+=xl);var f=Math.atan2(c,s);return f<0&&(f+=xl),f>=r&&f<=i||f+xl>=r&&f+xl<=i}function Cl(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;(o===1||o===0)&&(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var wl=hl.CMD,Tl=Math.PI*2,El=1e-4;function Dl(e,t){return Math.abs(e-t)<El}var Ol=[-1,-1,-1],kl=[-1,-1];function Al(){var e=kl[0];kl[0]=kl[1],kl[1]=e}function jl(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=Gn(t,r,a,s,l,Ol);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ol[h],_=g===0||g===1?.5:1;Un(e,n,i,o,g)<c||(f<0&&(f=Kn(t,r,a,s,kl),kl[1]<kl[0]&&f>1&&Al(),p=Un(t,r,a,s,kl[0]),f>1&&(m=Un(t,r,a,s,kl[1]))),f===2?g<kl[0]?d+=p<t?_:-_:g<kl[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<kl[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Ml(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=Qn(t,r,a,s,Ol);if(c===0)return 0;var l=$n(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Xn(t,r,a,l),f=0;f<c;f++){var p=Ol[f]===0||Ol[f]===1?.5:1,m=Xn(e,n,i,Ol[f]);m<o||(Ol[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Ol[0]===0||Ol[0]===1?.5:1,m=Xn(e,n,i,Ol[0]);return m<o?0:a<t?p:-p}function Nl(e,t,n,r,i,a,o,s){if(s-=t,s>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Ol[0]=-c,Ol[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Tl-1e-4){r=0,i=Tl;var u=a?1:-1;return o>=Ol[0]+e&&o<=Ol[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Tl,i+=Tl);for(var f=0,p=0;p<2;p++){var m=Ol[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Tl+h),(h>=r&&h<=i||h+Tl>=r&&h+Tl<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Pl(e,t,n,r,i){for(var a=e.data,o=e.len(),s=0,c=0,l=0,u=0,d=0,f,p,m=0;m<o;){var h=a[m++],g=m===1;switch(h===wl.M&&m>1&&(n||(s+=Cl(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case wl.M:u=a[m++],d=a[m++],c=u,l=d;break;case wl.L:if(n){if(gl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Cl(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case wl.C:if(n){if(_l(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=jl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case wl.Q:if(n){if(vl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ml(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case wl.A:var _=a[m++],v=a[m++],y=a[m++],b=a[m++],x=a[m++],S=a[m++];m+=1;var C=!!(1-a[m++]);f=Math.cos(x)*y+_,p=Math.sin(x)*b+v,g?(u=f,d=p):s+=Cl(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Sl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Nl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case wl.R:u=c=a[m++],d=l=a[m++];var T=a[m++],E=a[m++];if(f=u+T,p=d+E,n){if(gl(u,d,f,d,t,r,i)||gl(f,d,f,p,t,r,i)||gl(f,p,u,p,t,r,i)||gl(u,p,u,d,t,r,i))return!0}else s+=Cl(f,d,f,p,r,i),s+=Cl(u,p,u,d,r,i);break;case wl.Z:if(n){if(gl(c,l,u,d,t,r,i))return!0}else s+=Cl(c,l,u,d,r,i);c=u,l=d}}return!n&&!Dl(l,d)&&(s+=Cl(c,l,u,d,r,i)||0),s!==0}function Fl(e,t,n){return Pl(e,0,!1,t,n)}function Il(e,t,n,r){return Pl(e,t,!0,n,r)}var Ll=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},kc),Rl={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ac.style)},zl=na.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Bl=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<zl.length;++s)i[zl[s]]=this[zl[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=B(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?P(this.style,o):this.useStyle(o):a===`shape`?P(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(W(e)){var t=Dr(e,0);return t>.5?Wi:t>.2?Ki:Gi}if(e)return Gi}return Wi},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(W(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Dr(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new hl(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&4)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),Il(a,o/s,e,t)))return!0}if(this.hasFill())return Fl(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:P(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Ae(Ll,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=P({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s=!(n&&i),c;if(n&&n.shape?a?i?c=n.shape:(c=P({},r.shape),P(c,n.shape)):(c=P({},i?this.shape:r.shape),P(c,n.shape)):s&&(c=r.shape),c){if(a){this.shape=P({},this.shape);for(var l={},u=B(c),d=0;d<u.length;d++){var f=u[d];typeof c[f]==`object`?this.shape[f]=c[f]:l[f]=c[f]}this._transitionState(t,{shape:l},o)}else this.shape=c,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n=e.prototype._mergeStates.call(this,t),r,i=0;i<t.length;i++){var a=t[i];a.shape&&(r||={},this._mergeStyle(r,a.shape))}return r&&(n.shape=r),n},t.prototype.getAnimationStyleProps=function(){return Rl},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){s(n,t);function n(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n.prototype.getDefaultStyle=function(){return M(e.style)},n.prototype.getDefaultShape=function(){return M(e.shape)},n}(t);for(var r in e)typeof e[r]==`function`&&(n.prototype[r]=e[r]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type=`path`,e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7})(),t}(Nc),Vl=F({strokeFirst:!0,font:d,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ll),Hl=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Dc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Ae(Vl,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Tc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Nc);Hl.prototype.type=`tspan`;var Ul=F({x:0,y:0},kc),Wl={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ac.style)};function Gl(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Kl=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ae(Ul,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=Gl(t.image)?t.image:this.__image;if(!r)return 0;var i=e===`width`?`height`:`width`,a=t[i];return a==null?r[e]:r[e]/r[i]*a},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return Wl},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new Y(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Nc);Kl.prototype.type=`image`;function ql(e,t){var n=t.x,r=t.y,i=t.width,a=t.height,o=t.r,s,c,l,u;i<0&&(n+=i,i=-i),a<0&&(r+=a,a=-a),typeof o==`number`?s=c=l=u=o:o instanceof Array?o.length===1?s=c=l=u=o[0]:o.length===2?(s=l=o[0],c=u=o[1]):o.length===3?(s=o[0],c=u=o[1],l=o[2]):(s=o[0],c=o[1],l=o[2],u=o[3]):s=c=l=u=0;var d;s+c>i&&(d=s+c,s*=i/d,c*=i/d),l+u>i&&(d=l+u,l*=i/d,u*=i/d),c+l>a&&(d=c+l,c*=a/d,l*=a/d),s+u>a&&(d=s+u,s*=a/d,u*=a/d),e.moveTo(n+s,r),e.lineTo(n+i-c,r),c!==0&&e.arc(n+i-c,r+c,c,-Math.PI/2,0),e.lineTo(n+i,r+a-l),l!==0&&e.arc(n+i-l,r+a-l,l,0,Math.PI/2),e.lineTo(n+u,r+a),u!==0&&e.arc(n+u,r+a-u,u,Math.PI/2,Math.PI),e.lineTo(n,r+s),s!==0&&e.arc(n+s,r+s,s,Math.PI,Math.PI*1.5),e.closePath()}var Jl=Math.round;function Yl(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s?(Jl(r*2)===Jl(i*2)&&(e.x1=e.x2=Zl(r,s,!0)),Jl(a*2)===Jl(o*2)&&(e.y1=e.y2=Zl(a,s,!0)),e):e}}function Xl(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s?(e.x=Zl(r,s,!0),e.y=Zl(i,s,!0),e.width=Math.max(Zl(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Zl(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Zl(e,t,n){if(!t)return e;var r=Jl(e*2);return(r+Jl(t))%2==0?r/2:(r+(n?1:-1))/2}var Ql=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),$l={},eu=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ql},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Xl($l,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?ql(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Bl);eu.prototype.type=`rect`;var tu={fill:`#000`},nu=2,ru={},iu={style:F({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},Ac.style)},au=function(e){s(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=tu,n.attr(t),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,fu(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new Y(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),r||=e.clone(),r.union(e)):(r||=o.clone(),r.union(o))}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||tu},t.prototype.setTextContent=function(e){if(process.env.NODE_ENV!==`production`)throw Error(`Can't attach text on another text`)},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return P(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=B(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},P(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return iu},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return(!t||!(t instanceof e))&&(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;xc(ru,r.overflowRect,i,a,o,s),i=ru.baseX,a=ru.baseY;var c=dc(_u(e),e,ru.outerWidth,ru.outerHeight),l=vu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=ma(a,c.contentHeight,s);if(l||n){var _=pa(i,f,o),v=ma(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=gu(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=hu(`fill`in e?e.fill:(x=!0,r.fill)),C=mu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=nu,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Hl),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,uu(D,e),g+=m,E.setBoundingRect(Ec(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;xc(ru,t.overflowRect,i,a,n,r),i=ru.baseX,a=ru.baseY;var o=hc(_u(e),e,ru.outerWidth,ru.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=pa(i,c,n),f=ma(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;vu(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(D=y[C],!D.align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E],D.align===`right`);)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&vu(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=gu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Hl),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=hu(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=mu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=nu,_=!0,m.stroke):null),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=ve(s.opacity,t.opacity,1),uu(p,s),y&&(p.lineWidth=ve(s.lineWidth,t.lineWidth,g),p.lineDash=K(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Ec(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o=e.backgroundColor,s=e.borderWidth,c=e.borderColor,l=o&&o.image,u=o&&!l,d=e.borderRadius,f=this,p,m;if(u||e.lineHeight||s&&c){p=this._getOrCreateChild(eu),p.useStyle(p.createStyle()),p.style.fill=null;var h=p.shape;h.x=n,h.y=r,h.width=i,h.height=a,h.r=d,p.dirtyShape()}if(u){var g=p.style;g.fill=o||null,g.fillOpacity=K(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(Kl),m.onload=function(){f.dirtyStyle()};var _=m.style;_.image=o.image,_.x=n,_.y=r,_.width=i,_.height=a}if(s&&c){var g=p.style;g.lineWidth=s,g.stroke=c,g.strokeOpacity=K(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var v=(p||m).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=ve(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return du(e)&&(t=[e.fontStyle,e.fontWeight,lu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&xe(t)||e.textFont||e.font},t}(Nc),ou={left:!0,right:1,center:1},su={top:1,bottom:1,middle:1},cu=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function lu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function uu(e,t){for(var n=0;n<cu.length;n++){var r=cu[n],i=t[r];i!=null&&(e[r]=i)}}function du(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function fu(e){return pu(e),L(e.rich,pu),e}function pu(e){if(e){e.font=au.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||ou[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||su[n]?n:`top`,e.padding&&=be(e.padding)}}function mu(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function hu(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function gu(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function _u(e){var t=e.text;return t!=null&&(t+=``),t}function vu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var yu=ds(),bu=function(e,t,n,r){if(r){var i=yu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=yu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},xu=J([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Su=`original`,Cu=`arrayRows`,wu=`objectRows`,Tu=`keyedColumns`,Eu=`typedArray`,Du=`unknown`,Ou=`column`,ku=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Au=function(){function e(e){L(ku,function(t){this[t]=V(e[t],e)},this)}return e}();function ju(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var Mu=1,Nu={},Pu=ds(),Fu=ds(),Iu=[`emphasis`,`blur`,`select`],Lu=[`normal`,`emphasis`,`blur`,`select`],Ru=`highlight`,zu=`downplay`,Bu=`select`,Vu=`unselect`,Hu=`toggleSelect`,Uu=`selectchanged`;function Wu(e){return e!=null&&e!==`none`}function Gu(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Ku(e){Gu(e,`emphasis`,2)}function qu(e){e.hoverState===2&&Gu(e,`normal`,0)}function Ju(e){Gu(e,`blur`,1)}function Yu(e){e.hoverState===1&&Gu(e,`normal`,0)}function Xu(e){e.selected=!0}function Zu(e){e.selected=!1}function Qu(e,t,n){t(e,n)}function $u(e,t,n){Qu(e,t,n),e.isGroup&&e.traverse(function(e){Qu(e,t,n)})}function ed(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(var o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}function td(e,t,n,r){var i=n&&I(n,`select`)>=0,a=!1;if(e instanceof Bl){var o=Pu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Wu(s)||Wu(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!Wu(l.fill)&&Wu(s)?(a=!0,r=P({},r),l=P({},l),l.fill=kr(s)):!Wu(l.stroke)&&Wu(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=kr(c)),r.style=l}}if(r&&r.z2==null){a||(r=P({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function nd(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function rd(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:ed(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=P({},n),o=P({opacity:r?i:a.opacity*.1},o),n.style=o),n}function id(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return td(this,e,t,n);if(e===`blur`)return rd(this,e,n);if(e===`select`)return nd(this,e,n)}return n}function ad(e){e.stateProxy=id;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=id),n&&(n.stateProxy=id)}function od(e,t){!md(e,t)&&!e.__highByOuter&&$u(e,Ku)}function sd(e,t){!md(e,t)&&!e.__highByOuter&&$u(e,qu)}function cd(e,t){e.__highByOuter|=1<<(t||0),$u(e,Ku)}function ld(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&$u(e,qu)}function ud(e){$u(e,Ju)}function dd(e){$u(e,Yu)}function fd(e){$u(e,Xu)}function pd(e){$u(e,Zu)}function md(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function hd(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Fu(i),o=ju(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Yu(e)}),s&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function gd(e,t,n,r){var i=r.getModel();n||=`coordinateSystem`;function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&dd(r)}}if(e!=null&&!(!t||t===`none`)){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||Ju(e)}),ie(t))a(e.getData(),t);else if(G(t))for(var u=B(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Fu(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function _d(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Fu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Ju(e)})}}}function vd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&Z(`Unknown dataType `+t.dataType);return}var a=us(i,t);a=(H(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=yu(o);gd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&gd(r,u,d,n)}}function yd(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),c,l=0;l<s.length;l++)if(process.env.NODE_ENV!==`production`&&!Nd(s[l])&&Z(`param should be highDownDispatcher`),yu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function bd(e,t,n){process.env.NODE_ENV!==`production`&&!Nd(e)&&Z(`param should be highDownDispatcher`);var r=yu(e),i=yd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&_d(r.componentMainType,r.componentIndex,n),L(a,function(e){return od(e,t)})):(gd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&_d(r.componentMainType,r.componentIndex,n),od(e,t))}function xd(e,t,n){process.env.NODE_ENV!==`production`&&!Nd(e)&&Z(`param should be highDownDispatcher`),hd(n);var r=yu(e),i=yd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,function(e){return sd(e,t)}):sd(e,t)}function Sd(e,t,n){if(Fd(t)){var r=t.dataType,i=us(e.getData(r),t);H(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Cd(e){L(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?fd(t):pd(t)})})}function wd(e){var t=[];return e.eachSeries(function(e){L(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Td(e,t,n){Md(e,!0),$u(e,ad),Od(e,t,n)}function Ed(e){Md(e,!1)}function Dd(e,t,n,r){r?Ed(e):Td(e,t,n)}function Od(e,t,n){var r=yu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var kd=[`emphasis`,`blur`,`select`],Ad={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function jd(e,t,n,r){n||=`itemStyle`;for(var i=0;i<kd.length;i++){var a=kd[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[Ad[n]]()}}function Md(e,t){var n=t===!1,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Nd(e){return!!(e&&e.__highDownDispatcher)}function Pd(e){var t=Nu[e];return t==null&&Mu<=32&&(t=Nu[e]=Mu++),t}function Fd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Id(e){var t=e.type;return t===`highlight`||t===`downplay`}function Ld(e){var t=Pu(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var Rd=hl.CMD,zd=[[],[],[]],Bd=Math.sqrt,Vd=Math.atan2;function Hd(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Rd.M,d=Rd.C,f=Rd.L,p=Rd.R,m=Rd.A,h=Rd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case u:a=1;break;case f:a=1;break;case d:a=3;break;case h:a=2;break;case m:var g=t[4],_=t[5],v=Bd(t[0]*t[0]+t[1]*t[1]),y=Bd(t[2]*t[2]+t[3]*t[3]),b=Vd(-t[1]/y,t[0]/v);n[o]*=v,n[o++]+=g,n[o]*=y,n[o++]+=_,n[o++]*=v,n[o++]*=y,n[o++]+=b,n[o++]+=b,o+=2,s=o;break;case p:l[0]=n[o++],l[1]=n[o++],qe(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],qe(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=zd[c];x[0]=n[o++],x[1]=n[o++],qe(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Ud=Math.sqrt,Wd=Math.sin,Gd=Math.cos,Kd=Math.PI;function qd(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Jd(e,t){return(e[0]*t[0]+e[1]*t[1])/(qd(e)*qd(t))}function Yd(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Jd(e,t))}function Xd(e,t,n,r,i,a,o,s,c,l,u){var d=Kd/180*c,f=Gd(d)*(e-n)/2+Wd(d)*(t-r)/2,p=-1*Wd(d)*(e-n)/2+Gd(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Ud(m),s*=Ud(m));var h=(i===a?-1:1)*Ud((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Gd(d)*g-Wd(d)*_,y=(t+r)/2+Wd(d)*g+Gd(d)*_,b=Yd([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Yd(x,S);if(Jd(x,S)<=-1&&(C=Kd),Jd(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Kd*1e6)/1e6;C=Kd*2+w%2*Kd}u.addData(l,v,y,o,s,b,C,d,a)}var Zd=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Qd=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function $d(e){var t=new hl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=hl.CMD,c=e.match(Zd);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Qd)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=n,T=r,E=void 0,D=void 0;switch(d){case`l`:n+=p[g++],r+=p[g++],f=s.L,t.addData(f,n,r);break;case`L`:n=p[g++],r=p[g++],f=s.L,t.addData(f,n,r);break;case`m`:n+=p[g++],r+=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`l`;break;case`M`:n=p[g++],r=p[g++],f=s.M,t.addData(f,n,r),i=n,a=r,d=`L`;break;case`h`:n+=p[g++],f=s.L,t.addData(f,n,r);break;case`H`:n=p[g++],f=s.L,t.addData(f,n,r);break;case`v`:r+=p[g++],f=s.L,t.addData(f,n,r);break;case`V`:r=p[g++],f=s.L,t.addData(f,n,r);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),n=p[g-2],r=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r,p[g++]+n,p[g++]+r),n+=p[g-2],r+=p[g-1];break;case`S`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=p[g++],T=p[g++],n=p[g++],r=p[g++],t.addData(f,_,v,w,T,n,r);break;case`s`:_=n,v=r,E=t.len(),D=t.data,o===s.C&&(_+=n-D[E-4],v+=r-D[E-3]),f=s.C,w=n+p[g++],T=r+p[g++],n+=p[g++],r+=p[g++],t.addData(f,_,v,w,T,n,r);break;case`Q`:w=p[g++],T=p[g++],n=p[g++],r=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`q`:w=p[g++]+n,T=p[g++]+r,n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,w,T,n,r);break;case`T`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n=p[g++],r=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`t`:_=n,v=r,E=t.len(),D=t.data,o===s.Q&&(_+=n-D[E-4],v+=r-D[E-3]),n+=p[g++],r+=p[g++],f=s.Q,t.addData(f,_,v,n,r);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n=p[g++],r=p[g++],f=s.A,Xd(w,T,n,r,S,C,y,b,x,f,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],w=n,T=r,n+=p[g++],r+=p[g++],f=s.A,Xd(w,T,n,r,S,C,y,b,x,f,t)}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var ef=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Bl);function tf(e){return e.setData!=null}function nf(e,t){var n=$d(e),r=P({},t);return r.buildPath=function(e){var t=tf(e);if(t&&e.canSave()){e.appendPath(n);var r=e.getContext();r&&e.rebuildPath(r,1)}else{var r=t?e.getContext():e;r&&n.rebuildPath(r,1)}},r.applyTransform=function(e){Hd(n,e),this.dirtyShape()},r}function rf(e,t){return new ef(nf(e,t))}function af(e,t){var n=nf(e,t);return function(e){s(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(ef)}function of(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Bl(t);return o.createPathProxy(),o.buildPath=function(e){if(tf(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var sf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),cf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sf},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,Math.PI*2)},t}(Bl);cf.prototype.type=`circle`;var lf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),uf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new lf},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(Bl);uf.prototype.type=`ellipse`;var df=Math.PI,ff=df*2,pf=Math.sin,mf=Math.cos,hf=Math.acos,gf=Math.atan2,_f=Math.abs,vf=Math.sqrt,yf=Math.max,bf=Math.min,xf=1e-4;function Sf(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<xf))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Cf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/vf(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*vf(yf(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function wf(e){var t;if(H(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Tf(e,t){var n,r=yf(t.r,0),i=yf(t.r0||0,0),a=r>0;if(!(!a&&!(i>0))){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!(isNaN(s)||isNaN(c))){var l=t.cx,u=t.cy,d=!!t.clockwise,f=_f(c-s),p=f>ff&&f%ff;if(p>xf&&(f=p),!(r>xf))e.moveTo(l,u);else if(f>ff-xf)e.moveTo(l+r*mf(s),u+r*pf(s)),e.arc(l,u,r,s,c,!d),i>xf&&(e.moveTo(l+i*mf(c),u+i*pf(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*mf(s),j=r*pf(s),ee=i*mf(c),M=i*pf(c),N=f>xf;if(N){var P=t.cornerRadius;P&&(n=wf(P),m=n[0],h=n[1],g=n[2],_=n[3]);var te=_f(r-i)/2;if(v=bf(te,g),y=bf(te,_),b=bf(te,m),x=bf(te,h),w=S=yf(v,y),T=C=yf(b,x),(S>xf||C>xf)&&(E=r*mf(c),D=r*pf(c),O=i*mf(s),k=i*pf(s),f<df)){var F=Sf(A,j,O,k,E,D,ee,M);if(F){var I=A-F[0],ne=j-F[1],re=E-F[0],ie=D-F[1],L=1/pf(hf((I*re+ne*ie)/(vf(I*I+ne*ne)*vf(re*re+ie*ie)))/2),R=vf(F[0]*F[0]+F[1]*F[1]);w=bf(S,(r-R)/(L+1)),T=bf(C,(i-R)/(L-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>xf){var ae=bf(g,w),oe=bf(_,w),z=Cf(O,k,A,j,r,ae,d),B=Cf(E,D,ee,M,r,oe,d);e.moveTo(l+z.cx+z.x0,u+z.cy+z.y0),w<S&&ae===oe?e.arc(l+z.cx,u+z.cy,w,gf(z.y0,z.x0),gf(B.y0,B.x0),!d):(ae>0&&e.arc(l+z.cx,u+z.cy,ae,gf(z.y0,z.x0),gf(z.y1,z.x1),!d),e.arc(l,u,r,gf(z.cy+z.y1,z.cx+z.x1),gf(B.cy+B.y1,B.cx+B.x1),!d),oe>0&&e.arc(l+B.cx,u+B.cy,oe,gf(B.y1,B.x1),gf(B.y0,B.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>xf)||!N)e.lineTo(l+ee,u+M);else if(T>xf){var ae=bf(m,T),oe=bf(h,T),z=Cf(ee,M,E,D,i,-oe,d),B=Cf(A,j,O,k,i,-ae,d);e.lineTo(l+z.cx+z.x0,u+z.cy+z.y0),T<C&&ae===oe?e.arc(l+z.cx,u+z.cy,T,gf(z.y0,z.x0),gf(B.y0,B.x0),!d):(oe>0&&e.arc(l+z.cx,u+z.cy,oe,gf(z.y0,z.x0),gf(z.y1,z.x1),!d),e.arc(l,u,i,gf(z.cy+z.y1,z.cx+z.x1),gf(B.cy+B.y1,B.cx+B.x1),d),ae>0&&e.arc(l+B.cx,u+B.cy,ae,gf(B.y1,B.x1),gf(B.y0,B.x0),!d))}else e.lineTo(l+ee,u+M),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Ef=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Df=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ef},t.prototype.buildPath=function(e,t){Tf(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Bl);Df.prototype.type=`sector`;var Of=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Of},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.PI*2;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(Bl);kf.prototype.type=`ring`;function Af(e,t,n,r){var i=[],a=[],o=[],s=[],c,l,u,d;if(r){u=[1/0,1/0],d=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Je(u,u,e[f]),Ye(d,d,e[f]);Je(u,u,r[0]),Ye(d,d,r[1])}for(var f=0,p=e.length;f<p;f++){var m=e[f];if(n)c=e[f?f-1:p-1],l=e[(f+1)%p];else if(f===0||f===p-1){i.push(Fe(e[f]));continue}else c=e[f-1],l=e[f+1];Re(a,l,c),Ve(a,a,t);var h=Ue(m,c),g=Ue(m,l),_=h+g;_!==0&&(h/=_,g/=_),Ve(o,a,-h),Ve(s,a,g);var v=Le([],m,o),y=Le([],m,s);r&&(Ye(v,v,u),Je(v,v,d),Ye(y,y,u),Je(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function jf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Af(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[s*2],l=a[s*2+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}var Mf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Nf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Mf},t.prototype.buildPath=function(e,t){jf(e,t,!0)},t}(Bl);Nf.prototype.type=`polygon`;var Pf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Ff=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Pf},t.prototype.buildPath=function(e,t){jf(e,t,!1)},t}(Bl);Ff.prototype.type=`polyline`;var If={},Lf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Rf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Lf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Yl(If,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(Bl);Rf.prototype.type=`line`;var zf=[],Bf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function Vf(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Wn:Un)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Wn:Un)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Zn:Xn)(e.x1,e.cpx1,e.x2,t),(n?Zn:Xn)(e.y1,e.cpy1,e.y2,t)]}var Hf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Bf},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(er(n,o,i,u,zf),o=zf[1],i=zf[2],er(r,s,a,u,zf),s=zf[1],a=zf[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(qn(n,o,c,i,u,zf),o=zf[1],c=zf[2],i=zf[3],qn(r,s,l,a,u,zf),s=zf[1],l=zf[2],a=zf[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Vf(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Vf(this.shape,e,!0);return He(t,t)},t}(Bl);Hf.prototype.type=`bezier-curve`;var Uf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Wf=function(e){s(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Uf},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(Bl);Wf.prototype.type=`arc`;var Gf=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bl.prototype.getBoundingRect.call(this)},t}(Bl),Kf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),qf=function(e){s(t,e);function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return t}(Kf),Jf=function(e){s(t,e);function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return t}(Kf),Yf=Math.min,Xf=Math.max,Zf=Math.abs,Qf=[0,0],$f=[0,0],ep=rn(),tp=ep.minTv,np=ep.maxTv,rp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new It;for(var n=0;n<2;n++)this._axes[n]=new It;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);It.sub(r[0],n[1],n[0]),It.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(var c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&It.set(t,0,0),ep.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!ep.negativeSize&&It.copy(t,r?ep.useDir?ep.dirMinTv:tp:np),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Qf),e._getProjMinMaxOnAxis(a,t._corners,$f),ep.negativeSize||Qf[1]<$f[0]||Qf[0]>$f[1]){if(i=!1,ep.negativeSize||n)return i;var s=Zf($f[0]-Qf[1]),c=Zf(Qf[0]-$f[1]);Yf(s,c)>np.len()&&(s<c?It.scale(np,o,-s*r):It.scale(np,o,c*r))}else if(!n){var s=Zf($f[0]-Qf[1]),c=Zf(Qf[0]-$f[1]);(ep.useDir||Yf(s,c)<tp.len())&&((s<c||!ep.bidirectional)&&(It.scale(tp,o,s*r),ep.useDir&&ep.calcDirMTV()),(s>=c||!ep.bidirectional)&&(It.scale(tp,o,-c*r),ep.useDir&&ep.calcDirMTV()))}}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=Yf(l,o),s=Xf(l,s)}n[0]=o+ep.touchThreshold,n[1]=s-ep.touchThreshold,ep.negativeSize=n[1]<n[0]},e}(),ip=[],ap=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(var t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var t=this._displayables[e];t.parent=this,t.update(),t.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var t=this._temporaryDisplayables[e];t.parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new Y(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ip)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(Nc),op=ds();function sp(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),c=e===`update`;if(s){var l=void 0,u=void 0,d=void 0;return r?(l=K(r.duration,200),u=K(r.easing,`cubicOut`),d=0):(l=t.getShallow(c?`animationDurationUpdate`:`animationDuration`),u=t.getShallow(c?`animationEasingUpdate`:`animationEasing`),d=t.getShallow(c?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(u=a.easing),a.delay!=null&&(d=a.delay)),U(d)&&(d=d(n,i)),U(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}return null}function cp(e,t,n,r,i,a,o){var s=!1,c;U(i)?(o=a,a=i,i=null):G(i)&&(a=i.cb,o=i.during,s=i.isFrom,c=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=sp(e,r,i,l?c||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d=u.duration,f=u.delay,p=u.easing,m={duration:d,delay:f||0,easing:p,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};s?t.animateFrom(n,m):t.animateTo(n,m)}else t.stopAnimation(),!s&&t.attr(n),o&&o(1),a&&a()}function lp(e,t,n,r,i,a){cp(`update`,e,t,n,r,i,a)}function up(e,t,n,r,i,a){cp(`enter`,e,t,n,r,i,a)}function dp(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function fp(e,t,n,r,i,a){dp(e)||cp(`leave`,e,t,n,r,i,a)}function pp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),fp(e,{style:{opacity:0}},t,n,r)}function mp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||pp(e,t,n,r)}):pp(e,t,n,r)}function hp(e){op(e).oldStyle=e.style}var gp=t({Arc:()=>Wf,BezierCurve:()=>Hf,BoundingRect:()=>Y,Circle:()=>cf,CompoundPath:()=>Gf,Ellipse:()=>uf,Group:()=>Fa,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>Kl,IncrementalDisplayable:()=>ap,Line:()=>Rf,LinearGradient:()=>qf,OrientedBoundingRect:()=>rp,Path:()=>Bl,Point:()=>It,Polygon:()=>Nf,Polyline:()=>Ff,RadialGradient:()=>Jf,Rect:()=>eu,Ring:()=>kf,Sector:()=>Df,Text:()=>au,WH:()=>yp,XY:()=>vp,applyTransform:()=>Pp,calcZ2Range:()=>rm,clipPointsByRect:()=>zp,clipRectByRect:()=>Bp,createIcon:()=>Vp,decomposeTransform:()=>sm,ensureCopyRect:()=>em,ensureCopyTransform:()=>tm,expandOrShrinkRect:()=>Kp,extendPath:()=>Sp,extendShape:()=>bp,getCurrentCanvasPainter:()=>lm,getShapeClass:()=>wp,getTransform:()=>Np,groupTransition:()=>Rp,initProps:()=>up,isBoundingRectAxisAligned:()=>Qp,isElementRemoved:()=>dp,lineLineIntersect:()=>Up,linePolygonIntersect:()=>Hp,makeImage:()=>Ep,makePath:()=>Tp,mergePath:()=>Op,payloadDisableAnimation:()=>om,registerShape:()=>Cp,removeElement:()=>fp,removeElementWithFadeOut:()=>mp,resizePath:()=>kp,retrieveZInfo:()=>nm,setTooltipConfig:()=>Yp,subPixelOptimize:()=>Mp,subPixelOptimizeLine:()=>Ap,subPixelOptimizeRect:()=>jp,transformDirection:()=>Fp,traverseElements:()=>Zp,traverseUpdateZ:()=>im,updateProps:()=>lp}),_p={},vp=[`x`,`y`],yp=[`width`,`height`];function bp(e){return Bl.extend(e)}var xp=af;function Sp(e,t){return xp(e,t)}function Cp(e,t){_p[e]=t}function wp(e){if(_p.hasOwnProperty(e))return _p[e]}function Tp(e,t,n,r){var i=rf(e,t);return n&&(r===`center`&&(n=Dp(n,i.getBoundingRect())),kp(i,n)),i}function Ep(e,t,n){var r=new Kl({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(Dp(t,i))}}});return r}function Dp(e,t){var n=t.width/t.height,r=e.height*n,i;r<=e.width?i=e.height:(r=e.width,i=r/n);var a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var Op=of;function kp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Ap(e,t){return Yl(e,e,{lineWidth:t}),e}function jp(e,t){return Xl(e,e,t),e}var Mp=Zl;function Np(e,t){for(var n=kt([]);e&&e!==t;)jt(n,e.getLocalTransform(),n),e=e.parent;return n}function Pp(e,t,n){return t&&!ie(t)&&(t=ea.getLocalTransform(t)),n&&(t=Ft([],t)),qe([],e,t)}function Fp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Xa(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Xa(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Pp(a,t,n),Xa(a[0])>Xa(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Ip(e){return!e.isGroup}function Lp(e){return e.shape!=null}function Rp(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Ip(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Lp(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Ip(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),lp(e,r,n,yu(e).dataIndex)}}})}function zp(e,t){return R(e,function(e){var n=e[0];n=X(n,t.x),n=Ya(n,t.x+t.width);var r=e[1];return r=X(r,t.y),r=Ya(r,t.y+t.height),[n,r]})}function Bp(e,t){var n=X(e.x,t.x),r=Ya(e.x+e.width,t.x+t.width),i=X(e.y,t.y),a=Ya(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Vp(e,t,n){var r=P({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),F(i,n),new Kl(r)):Tp(e.replace(`path://`,``),r,n,`center`)}function Hp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Up(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Up(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Wp(u,d,c,l);if(Gp(f))return!1;var p=e-i,m=t-a,h=Wp(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Wp(p,m,u,d)/f;return!(g<0||g>1)}function Wp(e,t,n,r){return e*r-n*t}function Gp(e){return e<=1e-6&&e>=-1e-6}function Kp(e,t,n,r,i){return t==null?e:(ue(t)?qp[0]=qp[1]=qp[2]=qp[3]=t:(process.env.NODE_ENV!==`production`&&q(t.length===4),qp[0]=t[0],qp[1]=t[1],qp[2]=t[2],qp[3]=t[3]),r&&(qp[0]=X(0,qp[0]),qp[1]=X(0,qp[1]),qp[2]=X(0,qp[2]),qp[3]=X(0,qp[3])),n&&(qp[0]=-qp[0],qp[1]=-qp[1],qp[2]=-qp[2],qp[3]=-qp[3]),Jp(e,qp,`x`,`width`,3,1,i&&i[0]||0),Jp(e,qp,`y`,`height`,0,2,i&&i[1]||0),e)}var qp=[0,0,0,0];function Jp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=X(0,Ya(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Xa(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Yp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=W(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&L(B(c),function(e){je(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=yu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Xp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Zp(e,t){if(e){if(H(e))for(var n=0;n<e.length;n++)Xp(e[n],t);else Xp(e,t)}}function Qp(e){return!e||Xa(e[1])<$p&&Xa(e[2])<$p||Xa(e[0])<$p&&Xa(e[3])<$p}var $p=1e-5;function em(e,t){return e?Y.copy(e,t):t.clone()}function tm(e,t){return t?At(e||Ot(),t):void 0}function nm(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function rm(e){var t=-1/0,n=1/0;Xp(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())});function r(e){if(!(!e||e.isGroup)){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return n>t&&(n=t=0),{min:n,max:t}}function im(e,t,n){am(e,t,n,-1/0)}function am(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=X(am(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=X(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function om(e){return e.animation={duration:0},e}function sm(e,t){return t?At(cm.transform,t):kt(cm.transform),cm.decomposeTransform(),ra(e,cm),e}var cm=new ea;cm.transform=Ot();function lm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Cp(`circle`,cf),Cp(`ellipse`,uf),Cp(`sector`,Df),Cp(`ring`,kf),Cp(`polygon`,Nf),Cp(`polyline`,Ff),Cp(`rect`,eu),Cp(`line`,Rf),Cp(`bezierCurve`,Hf),Cp(`arc`,Wf);var um={};function dm(e,t){for(var n=0;n<Iu.length;n++){var r=Iu[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function fm(e,t,n){var r=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;r&&(s=r.getFormattedLabel(i,`normal`,null,a,o&&o.get(`formatter`),n==null?null:{interpolatedValue:n})),s??=U(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Iu.length;l++){var u=Iu[l],d=t[u];c[u]=K(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function pm(e,t,n,r){n||=um;for(var i=e instanceof au,a=!1,o=0;o<Lu.length;o++){var s=t[Lu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new au,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=fm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=hm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(gm(u,n,!1));for(var o=0;o<Iu.length;o++){var p=Iu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!K(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=hm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=gm(s,n,!0)}}}c.silent=!!u.getShallow(`silent`),c.style.x!=null&&(f.x=c.style.x),c.style.y!=null&&(f.y=c.style.y),c.ignore=!d,c.useStyle(f),c.dirty(),n.enableTextSetter&&(wm(c).setLabelText=function(e){var r=fm(n,t,e);dm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function mm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Iu.length;r++){var i=Iu[r];n[i]=e.getModel([i,t])}return n}function hm(e,t,n,r,i){var a={};return _m(a,e,n,r,i),t&&P(a,t),a}function gm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=K(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return i=e.getShallow(`position`)||(n?null:`inside`),i===`outside`&&(i=t.defaultOutsidePosition||`top`),i!=null&&(r.position=i),s!=null&&(r.offset=s),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(r.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(r.layoutRect=t.layoutRect),r}function _m(e,t,n,r,i){n||=um;var a=t.ecModel,o=a&&a.option.textStyle,s=vm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=K(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Sm(c[d]={},f,o,t,u,n,r,i,!1,!0)}}c&&(e.rich=c);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=ue(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Em.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=be(_),h.__marginType=Em.textMargin)}Sm(e,t,o,null,null,n,r,i,!0,!1)}function vm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||um).rich;if(n){t||={};for(var r=B(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var ym=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],bm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],xm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Sm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||um;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=K(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&Ro(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&Ro(`color: 'auto'`,`color: 'inherit'`),f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=K(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=K(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=K(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!o&&p==null&&!l&&(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),!o&&!s&&e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<ym.length;_++){var v=ym[_],y=i!==!1&&r?ve(t.getShallow(v),r.getShallow(v),n[v]):K(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<bm.length;_++){var v=bm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}if(e.verticalAlign==null){var b=t.getShallow(`baseline`);b!=null&&(e.verticalAlign=b)}if(!c||!a.disableBox){for(var _=0;_<xm.length;_++){var v=xm[_],y=t.getShallow(v);y!=null&&(e[v]=y)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),(e.backgroundColor===`auto`||e.backgroundColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.backgroundColor===`auto`&&Ro(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&Ro(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function Cm(e,t){var n=t&&t.getModel(`textStyle`);return xe([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `))}var wm=ds();function Tm(e,t,n,r){if(e){var i=wm(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var Em={minMargin:1,textMargin:2},Dm=[`textStyle`,`color`],Om=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],km=new au,Am=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Dm):null)},e.prototype.getFont=function(){return Cm({fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},this.ecModel)},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<Om.length;n++)t[Om[n]]=this.getShallow(Om[n]);return km.useStyle(t),km.update(),km.getBoundingRect()},e}(),jm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Mm=Qs(jm),Nm=function(){function e(){}return e.prototype.getLineStyle=function(e){return Mm(this,e)},e}(),Pm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Fm=Qs(Pm),Im=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Fm(this,e,t)},e}(),Lm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},e.prototype.mergeOption=function(e,t){N(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null,a=r?this._doGet(i):this.option;return n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var e=this.constructor;return new e(M(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!l.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&!(e[r]&&(n=n&&typeof n==`object`?n[e[r]]:null,n==null));r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();Ws(Lm),Js(Lm),re(Lm,Nm),re(Lm,Im),re(Lm,ec),re(Lm,Am);var Rm=Math.round(Math.random()*10);function zm(e){return[e||``,Rm++].join(`_`)}function Bm(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Vs(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Vs(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Vm(e,t){e.topologicalTravel=function(e,t,r,i){if(!e.length)return;var a=n(t),o=a.graph,s=a.noEntryList,c={};for(L(e,function(e){c[e]=!0});s.length;){var l=s.pop(),u=o[l],d=!!c[l];d&&(r.call(i,l,u.originalDeps.slice()),delete c[l]),L(u.successor,d?p:f)}L(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=zo(`Circular dependency may exists: `,c,e,t)),Error(n)});function f(e){o[e].entryCount--,o[e].entryCount===0&&s.push(e)}function p(e){c[e]=!0,f(e)}};function n(e){var n={},a=[];return L(e,function(o){var s=r(n,o),c=i(s.originalDeps=t(o),e);s.entryCount=c.length,s.entryCount===0&&a.push(o),L(c,function(e){I(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);I(t.successor,e)<0&&t.successor.push(o)})}),{graph:n,noEntryList:a}}function r(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}function i(e,t){var n=[];return L(e,function(e){I(t,e)>=0&&n.push(e)}),n}}function Hm(e,t){return N(N({},e,!0),t,!0)}var Um={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:`. `}}}},Wm={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:``}}}},Gm=`ZH`,Km=`EN`,qm=Km,Jm={},Ym={},Xm=l.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||qm).toUpperCase().indexOf(Gm)>-1?Gm:qm}():qm;function Zm(e,t){e=e.toUpperCase(),Ym[e]=new Lm(t),Jm[e]=t}function Qm(e){if(W(e)){var t=Jm[e.toUpperCase()]||{};return e===Gm||e===Km?M(t):N(M(t),M(Jm[qm]),!1)}return N(M(e),M(Jm[qm]),!1)}function $m(e){return Ym[e]}function eh(){return Ym[qm]}Zm(Km,Um),Zm(Gm,Wm);var th=null;function nh(){return th}function rh(e,t){var n=nh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function ih(e){var t=e.brk;return t?t.breaks:[]}function ah(e){var t=e.brk;return t?t.hasBreaks():!1}var oh=1e3,sh=oh*60,ch=sh*60,lh=ch*24,uh=lh*365,dh={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},fh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},ph=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,mh=`{yyyy}-{MM}-{dd}`,hh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:mh,hour:mh+` `+fh.hour,minute:mh+` `+fh.minute,second:mh+` `+fh.second,millisecond:ph},gh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],_h=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function vh(e){return!W(e)&&!U(e)?yh(e):e}function yh(e){e||={};var t={},n=!0;return L(gh,function(t){n&&=e[t]==null}),L(gh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=gh[s],l=G(a)&&!H(a)?a[c]:a,u=void 0;H(l)?(u=l.slice(),o=u[0]||``):W(l)?(o=l,u=[o]):(o==null?o=fh[r]:dh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function bh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function xh(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Sh(e){return e===xh(e)}function Ch(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function wh(e,t,n,r){var i=xo(e),a=i[Oh(n)](),o=i[kh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Ah(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[jh(n)](),d=(u-1)%12+1,f=i[Mh(n)](),p=i[Nh(n)](),m=i[Ph(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Lm?r:$m(r||Xm)||eh()).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,bh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,bh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,bh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,bh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,bh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,bh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,bh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,bh(m,3)).replace(/{S}/g,m+``)}function Th(e,t,n,r,i){var a=null;if(W(n))a=n;else if(U(n)){var o={time:e.time,level:e.time?e.time.level:0},s=nh();s&&s.makeAxisLabelFormatterParamBreak(o,e.break),a=n(e.value,t,o)}else{var c=e.time;if(c){var l=n[c.lowerTimeUnit][c.upperTimeUnit];a=l[Math.min(c.level,l.length-1)]||``}else{var u=Eh(e.value,i);a=n[u][u][0]}}return wh(new Date(e.value),a,i,r)}function Eh(e,t){var n=xo(e),r=n[kh(t)]()+1,i=n[Ah(t)](),a=n[jh(t)](),o=n[Mh(t)](),s=n[Nh(t)](),c=n[Ph(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function Dh(e,t,n){switch(t){case`year`:e[Ih(n)](0);case`month`:e[Lh(n)](1);case`day`:e[Rh(n)](0);case`hour`:e[zh(n)](0);case`minute`:e[Bh(n)](0);case`second`:e[Vh(n)](0)}return e}function Oh(e){return e?`getUTCFullYear`:`getFullYear`}function kh(e){return e?`getUTCMonth`:`getMonth`}function Ah(e){return e?`getUTCDate`:`getDate`}function jh(e){return e?`getUTCHours`:`getHours`}function Mh(e){return e?`getUTCMinutes`:`getMinutes`}function Nh(e){return e?`getUTCSeconds`:`getSeconds`}function Ph(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Fh(e){return e?`setUTCFullYear`:`setFullYear`}function Ih(e){return e?`setUTCMonth`:`setMonth`}function Lh(e){return e?`setUTCDate`:`setDate`}function Rh(e){return e?`setUTCHours`:`setHours`}function zh(e){return e?`setUTCMinutes`:`setMinutes`}function Bh(e){return e?`setUTCSeconds`:`setSeconds`}function Vh(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function Hh(e){if(!Eo(e))return W(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Uh(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Wh=be;function Gh(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&xe(e)?e:`-`}function a(e){return Ao(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?xo(e):e;if(!isNaN(+c))return wh(c,r,n);if(s)return`-`}if(t===`ordinal`)return le(e)?i(e):ue(e)&&a(e)?e+``:`-`;var l=To(e);return a(l)?Hh(l):le(e)?i(e):typeof e==`boolean`?e+``:`-`}var Kh=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],qh=function(e,t){return`{`+e+(t??``)+`}`};function Jh(e,t,n){H(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Kh[a];e=e.replace(qh(o),qh(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(qh(Kh[c],s),n?ft(l):l)}return e}function Yh(e,t){var n=W(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+ft(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+ft(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}function Xh(e,t){return t||=`transparent`,W(e)?e:G(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Zh={},Qh={},$h=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Zh,!0),this._normalMasterList=n(Qh,!1);function n(n,r){var i=[];return L(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&L(o,function(e){return q(!e.update)})}),i}},e.prototype.update=function(e,t){L(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){if(e===`matrix`||e===`calendar`){Zh[e]=t;return}Qh[e]=t},e.get=function(e){return Qh[e]||Zh[e]},e}();function eg(e){return!!Zh[e]}var tg=J();function ng(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=tg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function rg(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=r!=null,a=0;if(n){var o=e.mainType===`series`;r??=o?`data`:`box`,r===`data`?(a=1,o||(process.env.NODE_ENV!==`production`&&i&&t&&Z(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!eg(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&Z(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function ig(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&q(!!n);var o=rg(t,!0),s=o.kind,c=o.coordSysType;if(i&&s!==1&&(s=1,c=n),s===0||c!==n)return 0;var l=r(n,t);return l?(s===1?(process.env.NODE_ENV!==`production`&&q(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||Z(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var ag=L,og=[`left`,`right`,`top`,`bottom`,`width`,`height`],sg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function cg(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u=c.getBoundingRect(),d=t.childAt(l+1),f=d&&d.getBoundingRect(),p,m;if(e===`horizontal`){var h=u.width+(f?-f.x+u.x:0);p=a+h,p>r||c.newline?(a=0,p=h,o+=s+n,s=u.height):s=Math.max(s,u.height)}else{var g=u.height+(f?-f.y+u.y:0);m=o+g,m>i||c.newline?(a+=s+n,o=0,m=g,s=u.width):s=Math.max(s,u.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=p+n:o=m+n)})}ce(cg,`vertical`),ce(cg,`horizontal`);function lg(e,t){return{left:e.getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)}}function ug(e,t,n){n=Wh(n||0);var r=t.width,i=t.height,a=oo(e.left,r),o=oo(e.top,i),s=oo(e.right,r),c=oo(e.bottom,i),l=oo(e.width,r),u=oo(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=r*.8:u=i*.8),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new Y((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var dg={rect:1,point:2};function fg(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=ng(e),l=c.coord,u=c.from;if(o.dataToLayout){a=dg.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=dg.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&Z(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=dg.rect,a===dg.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:s}}function pg(e){var t=e.layoutMode||e.constructor.layoutMode;return G(t)?t:t?{type:t}:null}function mg(e,t,n){var r=n&&n.ignoreSize;!H(r)&&(r=[r,r]);var i=o(sg[0],0),a=o(sg[1],1);c(sg[0],e,i),c(sg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(ag(n,function(t){c[t]=e[t]}),ag(n,function(e){je(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l===u||!o)return c;if(o>=u)return a;for(var d=0;d<n.length;d++){var f=n[d];if(!je(a,f)&&je(e,f)){a[f]=e[f];break}}return a}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){ag(e,function(e){t[e]=n[e]})}}function hg(e){return gg({},e)}function gg(e,t){return t&&e&&ag(og,function(n){je(t,n)&&(e[n]=t[n])}),e}var _g=ds(),vg=function(e){s(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=zm(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=pg(this),r=n?hg(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&mg(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=pg(this);n&&mg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Us(e))return e.defaultOption;var t=_g(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=N(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return gs(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return lg(this,!1)},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type=`component`,e.id=``,e.name=``,e.mainType=``,e.subType=``,e.componentIndex=0}(),t}(Lm);Ks(vg,Lm),Zs(vg),Bm(vg),Vm(vg,yg);function yg(e){var t=[];return L(vg.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return Vs(e).main}),e!==`dataset`&&I(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},bg=Q.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var xg in P(bg,{primary:bg.neutral80,secondary:bg.neutral70,tertiary:bg.neutral60,quaternary:bg.neutral50,disabled:bg.neutral20,border:bg.neutral30,borderTint:bg.neutral20,borderShade:bg.neutral40,background:bg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:bg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:bg.neutral70,axisLineTint:bg.neutral40,axisTick:bg.neutral70,axisTickMinor:bg.neutral60,axisLabel:bg.neutral70,axisSplitLine:bg.neutral15,axisMinorSplitLine:bg.neutral05}),bg)if(bg.hasOwnProperty(xg)){var Sg=bg[xg];xg===`theme`?Q.darkColor.theme=bg.theme.slice():xg===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:xg.indexOf(`accent`)===0?Q.darkColor[xg]=Tr(Sg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[xg]=Tr(Sg,null,function(e){return e*.9},function(e){return 1-e**1.5})}Q.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Cg=``;typeof navigator<`u`&&(Cg=navigator.platform||``);var wg=`rgba(0, 0, 0, 0.2)`,Tg=Q.color.theme[0],Eg=Tr(Tg,null,null,.9),Dg={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[Eg,Tg],aria:{decal:{decals:[{color:wg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Cg.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},Og={Must:1,Might:2,Not:3},kg=ds();function Ag(e){kg(e).datasetMap=J()}function jg(e,t,n){var r={},i=Mg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=kg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(e,function(t,n){var i=G(t)?t:e[n]={name:t};i.type===`ordinal`&&u==null&&(u=n,d=m(i)),r[i.name]=[]});var f=c.get(l)||c.set(l,{categoryWayDim:d,valueWayDim:0});L(e,function(e,t){var n=e.name,i=m(e);if(u==null){var s=f.valueWayDim;p(r[n],s,i),p(o,s,i),f.valueWayDim+=i}else if(u===t)p(r[n],0,i),p(a,0,i);else{var s=f.categoryWayDim;p(r[n],s,i),p(o,s,i),f.categoryWayDim+=i}});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function Mg(e){if(!e.get(`data`,!0))return gs(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},hs).models[0]}function Ng(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:gs(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},hs).models}function Pg(e,t){return Fg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Fg(e,t,n,r,i,a){var o,s=5;if(fe(e))return Og.Not;var c,l;if(r){var u=r[a];G(u)?(c=u.name,l=u.type):W(u)&&(c=u)}if(l!=null)return l===`ordinal`?Og.Must:Og.Not;if(t===`arrayRows`){var d=e;if(n===`row`){for(var f=d[a],p=0;p<(f||[]).length&&p<s;p++)if((o=b(f[i+p]))!=null)return o}else for(var p=0;p<d.length&&p<s;p++){var m=d[i+p];if(m&&(o=b(m[a]))!=null)return o}}else if(t===`objectRows`){var h=e;if(!c)return Og.Not;for(var p=0;p<h.length&&p<s;p++){var g=h[p];if(g&&(o=b(g[c]))!=null)return o}}else if(t===`keyedColumns`){var _=e;if(!c)return Og.Not;var f=_[c];if(!f||fe(f))return Og.Not;for(var p=0;p<f.length&&p<s;p++)if((o=b(f[p]))!=null)return o}else if(t===`original`)for(var v=e,p=0;p<v.length&&p<s;p++){var g=v[p],y=Ko(g);if(!H(y))return Og.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=W(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Og.Might:Og.Not;if(t&&e!==`-`)return Og.Must}return Og.Not}var Ig=J();function Lg(e,t,n){var r=Ig.get(t);if(!r)return n;var i=r(e);if(!i)return n;if(process.env.NODE_ENV!==`production`)for(var a=0;a<i.length;a++)q(ss(i[a]));return n.concat(i)}var Rg=ds();ds();var zg=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Uo(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Vg(this,Rg,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Hg(this,Rg)},e}();function Bg(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}function Vg(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o==null||!r?n:Bg(r,o);if(u||=n,!(!u||!u.length)){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}function Hg(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Ug,Wg,Gg,Kg=`\0_ec_inner`,qg=1,Jg={grid:`GridComponent`,polar:`PolarComponent`,geo:`GeoComponent`,singleAxis:`SingleAxisComponent`,parallel:`ParallelComponent`,calendar:`CalendarComponent`,matrix:`MatrixComponent`,graphic:`GraphicComponent`,toolbox:`ToolboxComponent`,tooltip:`TooltipComponent`,axisPointer:`AxisPointerComponent`,brush:`BrushComponent`,title:`TitleComponent`,timeline:`TimelineComponent`,markPoint:`MarkPointComponent`,markLine:`MarkLineComponent`,markArea:`MarkAreaComponent`,legend:`LegendComponent`,dataZoom:`DataZoomComponent`,visualMap:`VisualMapComponent`,xAxis:`GridComponent`,yAxis:`GridComponent`,angleAxis:`PolarComponent`,radiusAxis:`PolarComponent`},Yg={line:`LineChart`,bar:`BarChart`,pie:`PieChart`,scatter:`ScatterChart`,radar:`RadarChart`,map:`MapChart`,tree:`TreeChart`,treemap:`TreemapChart`,graph:`GraphChart`,chord:`ChordChart`,gauge:`GaugeChart`,funnel:`FunnelChart`,parallel:`ParallelChart`,sankey:`SankeyChart`,boxplot:`BoxplotChart`,candlestick:`CandlestickChart`,effectScatter:`EffectScatterChart`,lines:`LinesChart`,heatmap:`HeatmapChart`,pictorialBar:`PictorialBarChart`,themeRiver:`ThemeRiverChart`,sunburst:`SunburstChart`,custom:`CustomChart`},Xg={};function Zg(e){L(e,function(e,t){if(!vg.hasClass(t)){var n=Jg[t];n&&!Xg[n]&&(Z(`Component `+t+` is used but not imported.
|
|
9
9
|
import { `+n+` } from 'echarts/components';
|
|
10
|
-
echarts.use([`+n+`]);`),
|
|
10
|
+
echarts.use([`+n+`]);`),Xg[n]=!0)}})}var Qg=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Lm(r),this._locale=new Lm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(q(e!=null,`option is null/undefined`),q(e[Kg]!==qg,`please use chart.getOption()`));var r=r_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,r_(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);process.env.NODE_ENV!==`production`&&Zg(i),!this.option||e===`recreate`?Gg(this,i):(this.restoreData(),this._mergeOption(i,t)),n=!0}if((e===`timeline`||e===`media`)&&this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&L(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=J(),s=t&&t.replaceMergeMainTypeMap;Ag(this),L(e,function(e,t){e!=null&&(vg.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?M(e):N(n[t],e,!0))}),s&&s.each(function(e,t){vg.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),vg.topologicalTravel(a,vg.getAllClassMainTypes(),c,this);function c(t){var a=Lg(this,t,Uo(e[t])),o=r.get(t),c=Jo(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);cs(c,t,vg),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;L(c,function(e,n){var r=e.existing,i=e.newOption;if(!i)r&&(r.mergeOption({},this),r.optionUpdated({},!1));else{var a=t===`series`,o=vg.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=Yg[s];Xg[s]||(Xg[s]=!0,Z(c?`Series `+s+` is used but not imported.
|
|
11
11
|
import { `+c+` } from 'echarts/charts';
|
|
12
|
-
echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(No(`Currently only one tooltip component is allowed.`),!0));return}f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var m=j({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),j(r,m),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Rg(this)}this._seriesIndices||Rg(this)},t.prototype.getOption=function(){var e=k(this.option);return F(e,function(t,n){if(pg.hasClass(n)){for(var r=Bo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!is(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Vg],e},t.prototype.setTheme=function(e){this._theme=new Mm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?ie(a,function(e){return!!e}):Xg(`name`,i,a):Xg(`id`,r,a):(o=[],F(Bo(n),function(e){a[e]&&o.push(a[e])})),Zg(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Zg(r?this.queryComponents(r):ie(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?ie(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(V(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=H(e)?r.get(e):U(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=es(e,null);return ie(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return ie(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ie(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){zg(this),F(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){F(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){zg(this),F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return F(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return zg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){zg(this);var n=[];F(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){Rg(this);var t=this._componentsMap,n=[];t.each(function(e,t){pg.hasClass(t)&&n.push(t)}),pg.topologicalTravel(n,pg.getAllClassMainTypes(),function(n){F(t.get(n),function(t){t&&(n!==`series`||!Jg(t,e))&&t.restoreData()})})},t.internalField=function(){Rg=function(e){var t=e._seriesIndices=[];F(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},zg=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},Bg=function(e,t){e.option={},e.option[Vg]=Hg,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;U(n)&&n.enabled==null&&(n.enabled=!0),Yg(t,e._theme.option),A(t,Sg,!1),e._mergeOption(t,null)}}(),t}(Mm);function Jg(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function Yg(e,t){var n=e.color&&!e.colorLayer;F(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||pg.hasClass(r)||(typeof t==`object`?e[r]=e[r]?A(e[r],t,!1):k(t):e[r]??(e[r]=t))})}function Xg(e,t,n){if(B(t)){var r=K();return F(t,function(e){e!=null&&es(e,null)!=null&&r.set(e,!0)}),ie(n,function(t){return t&&r.get(t[e])})}var i=es(t,null);return ie(n,function(t){return t&&i!=null&&t[e]===i})}function Zg(e,t){return t.hasOwnProperty(`subType`)?ie(e,function(e){return e&&e.subType===t.subType}):e}function Qg(e){var t=K();return e&&F(Bo(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&G(pg.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ne(qg,Pg);var $g=/^(min|max)?(.+)$/,e_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(F(Bo(e.series),function(e){e&&e.data&&ue(e.data)&&xe(e.data)}),F(Bo(e.dataset),function(e){e&&e.source&&ue(e.source)&&xe(e.source)})),e=k(e);var r=this._optionBackup,i=t_(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],k(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=k(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)n_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!i_(a,this._currentMediaIndices)&&(o=I(a,function(e){return k(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function t_(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&(B(l)?F(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&U(e.query)&&U(e.query.option)&&X(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&X(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),F(c,function(e){return f(e)}),F(r,function(e){return f(e.option)});function f(e){F(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function n_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return F(e,function(e,t){var n=t.match($g);if(!(!n||!n[1]||!n[2])){var a=n[1];r_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function r_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function i_(e,t){return e.join(`,`)===t.join(`,`)}var a_=F,o_=U,s_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function c_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=s_.length;n<r;n++){var i=s_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&Fo(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?A(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&Fo(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?A(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function l_(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(process.env.NODE_ENV!==`production`&&Po(`'normal' hierarchy in `+t+` has been removed since 4.0. All style properties are configured in `+t+` directly now.`),n?(e[t].normal=e[t].emphasis=null,M(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&Po(t+`.emphasis has been changed to emphasis.`+t+` since 4.0`),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function u_(e){l_(e,`itemStyle`),l_(e,`lineStyle`),l_(e,`areaStyle`),l_(e,`label`),l_(e,`labelLine`),l_(e,`upperLabel`),l_(e,`edgeLabel`)}function d_(e,t){var n=o_(e)&&e[t],r=o_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Po(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=Ho.length;i<a;i++){var o=Ho[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function f_(e){e&&(u_(e),d_(e,`label`),e.emphasis&&d_(e.emphasis,`label`))}function p_(e){if(o_(e)){c_(e),u_(e),d_(e,`label`),d_(e,`upperLabel`),d_(e,`edgeLabel`),e.emphasis&&(d_(e.emphasis,`label`),d_(e.emphasis,`upperLabel`),d_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(c_(t),f_(t));var n=e.markLine;n&&(c_(n),f_(n));var r=e.markArea;r&&f_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ue(a))for(var o=0;o<a.length;o++)f_(a[o]);F(e.categories,function(e){u_(e)})}if(i&&!ue(i))for(var o=0;o<i.length;o++)f_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)f_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)B(c[o])?(f_(c[o][0]),f_(c[o][1])):f_(c[o]);e.type===`gauge`?(d_(e,`axisLabel`),d_(e,`title`),d_(e,`detail`)):e.type===`treemap`?(l_(e.breadcrumb,`itemStyle`),F(e.levels,function(e){u_(e)})):e.type===`tree`&&u_(e.leaves)}}function m_(e){return B(e)?e:e?[e]:[]}function h_(e){return(B(e)?e[0]:e)||{}}function g_(e,t){a_(m_(e.series),function(e){o_(e)&&p_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),a_(n,function(t){a_(m_(e[t]),function(e){e&&(d_(e,`axisLabel`),d_(e.axisPointer,`label`))})}),a_(m_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;d_(t,`axisLabel`),d_(t&&t.axisPointer,`label`)}),a_(m_(e.calendar),function(e){l_(e,`itemStyle`),d_(e,`dayLabel`),d_(e,`monthLabel`),d_(e,`yearLabel`)}),a_(m_(e.radar),function(e){d_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Po(`name property in radar component has been changed to axisName`)),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap,process.env.NODE_ENV!==`production`&&Po(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&a_(e.indicator,function(e){e.text&&Fo(`text`,`name`,`radar.indicator`)})}),a_(m_(e.geo),function(e){o_(e)&&(f_(e),a_(m_(e.regions),function(e){f_(e)}))}),a_(m_(e.timeline),function(e){f_(e),l_(e,`label`),l_(e,`itemStyle`),l_(e,`controlStyle`,!0);var t=e.data;B(t)&&F(t,function(e){U(e)&&(l_(e,`label`),l_(e,`itemStyle`))})}),a_(m_(e.toolbox),function(e){l_(e,`iconStyle`),a_(e.feature,function(e){l_(e,`iconStyle`)})}),d_(h_(e.axisPointer),`label`),d_(h_(e.tooltip).axisPointer,`label`)}function __(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function v_(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function y_(e){e&&F(b_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var b_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],x_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],S_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function C_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<S_.length;n++){var r=S_[n][1],i=S_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&Fo(r,i))}}function w_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&Fo(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function T_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&Fo(`downplay`,`blur`,`sunburst`))}function E_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&Fo(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function D_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&D_(e[n].children,t)}function O_(e,t){g_(e,t),e.series=Bo(e.series),F(e.series,function(e){if(U(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&Fo(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&Fo(`clockWise`,`clockwise`)),w_(e.label);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)w_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&Fo(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=__(e,`pointer.color`);i!=null&&v_(e,`itemStyle.color`,i)}else if(t===`bar`){C_(e),C_(e.backgroundStyle),C_(e.emphasis);var n=e.data;if(n&&!ue(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(C_(n[r]),C_(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a,process.env.NODE_ENV!==`production`&&Fo(`highlightPolicy`,`emphasis.focus`,`sunburst`))),T_(e),D_(e.data,T_)}else t===`graph`||t===`sankey`?E_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&Fo(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Po("`mapLocation` is not used anymore."),M(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&Fo(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),y_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),F(x_,function(t){var n=e[t];n&&(B(n)||(n=[n]),F(n,function(e){y_(e)}))})}var k_=Ns(A_);function A_(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),F(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),j_(e))})}function j_(e){F(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=po(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var M_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&kg(this,n)===Cg.Must&&(r.type=`ordinal`)}}return e}();function N_(e){return e instanceof M_}function P_(e,t,n){n||=L_(e);var r=t.seriesLayoutBy,i=R_(e,n,r,t.sourceHeader,t.dimensions);return new M_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:k(t)})}function F_(e){return new M_({data:e,sourceFormat:ue(e)?xu:_u})}function I_(e){return new M_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:k(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function L_(e){var t=Su;if(ue(e))t=xu;else if(B(e)){e.length===0&&(t=vu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(B(i)||ue(i)){t=vu;break}if(U(i)){t=yu;break}}}}else if(U(e)){for(var a in e)if(ke(e,a)&&P(e[a])){t=bu;break}}return t}function R_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:B_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?V_(function(e){e!=null&&e!==`-`&&(H(e)?o??=1:o=0)},n,s,10):o=ce(r)?r:+!!r,!i&&o===1&&(i=[],V_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=z_(e);else if(t===`keyedColumns`)i||(i=[],F(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Uo(e[0]);a=B(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&G(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:B_(i),dimensionsDetectedCount:a}}function z_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return L(n)}function B_(e){if(e){var t=K();return I(e,function(e,n){e=U(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function V_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function H_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var U_,W_,G_,K_,q_,J_,Y_=function(){function e(e,t){var n=N_(e)?e:F_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat,a=n.seriesLayoutBy;if(i===`typedArray`){if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Typed array data must specify dimension size`);this._offset=0,this._dimSize=t,this._data=r}if(process.env.NODE_ENV!==`production`){var o=Z_[sv(i,a)];o&&o(r,n.dimensionsDefine)}J_(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;J_=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=q_[sv(o,s)];process.env.NODE_ENV!==`production`&&G(u,`Invalide sourceFormat: `+o),j(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=R(ev(o,s),null,i,c,l),e.count=R(rv(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};q_=(e={},e[vu+`_`+Cu]={pure:!0,appendData:i},e[vu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[yu]={pure:!0,appendData:i},e[bu]={pure:!0,appendData:function(e){var t=this._data;F(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[_u]={appendData:i},e[xu]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&G(ue(e),`Added data must be TypedArray if data in initialization is TypedArray`),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),X_=function(e){B(e)||X(`series.data or dataset.source must be an array.`)},Z_=(U_={},U_[vu+`_`+Cu]=X_,U_[vu+`_row`]=X_,U_[yu]=X_,U_[bu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??X(`dimension name must not be null/undefined.`)},U_[_u]=X_,U_),Q_=function(e,t,n,r){return e[r]},$_=(W_={},W_[vu+`_`+Cu]=function(e,t,n,r){return e[r+t]},W_[vu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},W_[yu]=Q_,W_[bu]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},W_[_u]=Q_,W_);function ev(e,t){var n=$_[sv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var tv=function(e,t,n){return e.length},nv=(G_={},G_[vu+`_`+Cu]=function(e,t,n){return Math.max(0,e.length-t)},G_[vu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},G_[yu]=tv,G_[bu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},G_[_u]=tv,G_);function rv(e,t){var n=nv[sv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support count on "`+e+`", "`+t+`".`),n}var iv=function(e,t,n){return e[t]},av=(K_={},K_[vu]=iv,K_[yu]=function(e,t,n){return e[n]},K_[bu]=iv,K_[_u]=function(e,t,n){var r=Uo(e);return r instanceof Array?r[t]:r},K_[xu]=iv,K_);function ov(e){var t=av[e];return process.env.NODE_ENV!==`production`&&G(t,`Do not support get value on "`+e+`".`),t}function sv(e,t){return e===`arrayRows`?e+`_`+t:e}function cv(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return ov(a)(r,o,s)}var c=r;return a===`original`&&(c=Uo(r)),c}}}var lv=/\{@(.+?)\}/g,uv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&B(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),V(i))return s.status=t,s.dimensionIndex=r,i(s);if(H(i))return Uh(i,s).replace(lv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1),process.env.NODE_ENV!==`production`&&isNaN(i)&&X(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=cv(o,e,i);if(a&&B(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return cv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function dv(e){var t,n;return U(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Io(e)):t=e,{text:t,frag:n}}function fv(e){return new pv(e)}var pv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?(process.env.NODE_ENV!==`production`&&G(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&G(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(B(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;process.env.NODE_ENV!==`production`&&G(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){mv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:mv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),B(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){process.env.NODE_ENV!==`production`&&G(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),mv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function hv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ce(e)&&e!=null&&e!==`-`&&(e=+vo(e)),e==null||e===``?NaN:Number(e))}K({number:function(e){return parseFloat(e)},time:function(e){return+vo(e)},trim:function(e){return H(e)?ye(e):e}});var gv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){if(!ce(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),Lo(n)}this._opFn=gv[e],this._rvalFloat=So(t)}return e.prototype.evaluate=function(e){return ce(e)?this._opFn(e,this._rvalFloat):this._opFn(So(e),this._rvalFloat)},e})();var _v=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ce(e)?e:So(e),r=ce(t)?t:So(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=H(e),s=H(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=So(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=So(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function vv(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function yv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var bv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return hv(e,t)},e}();function xv(e,t){var n=new bv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o=``;e.seriesLayoutBy!==`column`&&(process.env.NODE_ENV!==`production`&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Lo(o));var s=[],c={},l=e.dimensionsDefine;if(l)F(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;ke(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),Lo(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=ev(i,Cu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=R(Sv,null,e)),n.cloneRawData=R(Cv,null,e),n.count=R(rv(i,Cu),null,r,a,s);var f=ov(i);n.retrieveValue=function(e,t){return p(d(r,a,s,e),t)};var p=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=s[t];if(n)return f(e,t,n.name)}};return n.getDimensionInfo=R(wv,null,s,c),n.cloneAllDimensionInfo=R(Tv,null,s),n}function Sv(e){var t=e.sourceFormat;if(!Av(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),Lo(n)}return e.data}function Cv(e){var t=e.sourceFormat,n=e.data;if(!Av(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),Lo(r)}if(t===`arrayRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===`objectRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(j({},n[a]));return i}}function wv(e,t,n){if(n!=null){if(ce(n)||!isNaN(n)&&!ke(t,n))return e[n];if(ke(t,n))return t[n]}}function Tv(e){return k(e)}var Ev=K();function Dv(e){e=k(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),Lo(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),Lo(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Ev.set(t,e)}function Ov(e,t,n){var r=Bo(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),Lo(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=kv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function kv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),Lo(i)),U(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),Lo(i));var a=e.type,o=Ev.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),Lo(i));var s=I(t,function(e){return xv(e,o)}),c=Bo(o.transform({upstream:s[0],upstreamList:s,config:k(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&Mo(I(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Io(e.data),`- transform result dimensions:`,Io(e.dimensions)].join(`
|
|
12
|
+
echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Io(`Currently only one tooltip component is allowed.`),!0));return}f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var m=P({componentIndex:n},e.keyInfo);r=new o(i,this,this,m),P(r,m),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}r?(l.push(r.option),u.push(r),d++):(l.push(void 0),u.push(void 0))},this),n[t]=l,r.set(t,u),i.set(t,d),t===`series`&&Ug(this)}this._seriesIndices||Ug(this)},t.prototype.getOption=function(){var e=M(this.option);return L(e,function(t,n){if(vg.hasClass(n)){for(var r=Uo(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!ss(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[Kg],e},t.prototype.setTheme=function(e){this._theme=new Lm(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n=e.index,r=e.id,i=e.name,a=this._componentsMap.get(t);if(!a||!a.length)return[];var o;return n==null?o=r==null?i==null?oe(a,function(e){return!!e}):t_(`name`,i,a):t_(`id`,r,a):(o=[],L(Uo(n),function(e){a[e]&&o.push(a[e])})),n_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(n_(r?this.queryComponents(r):oe(this._componentsMap.get(n),function(e){return!!e}),e));function i(e){var t=n+`Index`,r=n+`Id`,i=n+`Name`;return e&&(e[t]!=null||e[r]!=null||e[i]!=null)?{mainType:n,index:e[t],id:e[r],name:e[i]}:null}function a(t){return e.filter?oe(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(U(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=W(e)?r.get(e):G(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=rs(e,null);return oe(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return oe(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return oe(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Wg(this),L(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){L(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Wg(this),L(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return L(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Wg(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Wg(this);var n=[];L(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=J(n)},t.prototype.restoreData=function(e){Ug(this);var t=this._componentsMap,n=[];t.each(function(e,t){vg.hasClass(t)&&n.push(t)}),vg.topologicalTravel(n,vg.getAllClassMainTypes(),function(n){L(t.get(n),function(t){t&&(n!==`series`||!$g(t,e))&&t.restoreData()})})},t.internalField=function(){Ug=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=J(t)},Wg=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},Gg=function(e,t){e.option={},e.option[Kg]=qg,e._componentsMap=J({series:[]}),e._componentsCount=J();var n=t.aria;G(n)&&n.enabled==null&&(n.enabled=!0),e_(t,e._theme.option),N(t,Dg,!1),e._mergeOption(t,null)}}(),t}(Lm);function $g(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}function e_(e,t){var n=e.color&&!e.colorLayer;L(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||vg.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function t_(e,t,n){if(H(t)){var r=J();return L(t,function(e){e!=null&&rs(e,null)!=null&&r.set(e,!0)}),oe(n,function(t){return t&&r.get(t[e])})}var i=rs(t,null);return oe(n,function(t){return t&&i!=null&&t[e]===i})}function n_(e,t){return t.hasOwnProperty(`subType`)?oe(e,function(e){return e&&e.subType===t.subType}):e}function r_(e){var t=J();return e&&L(Uo(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&q(vg.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}re(Qg,zg);var i_=/^(min|max)?(.+)$/,a_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(Uo(e.series),function(e){e&&e.data&&fe(e.data)&&Ce(e.data)}),L(Uo(e.dataset),function(e){e&&e.source&&fe(e.source)&&Ce(e.source)})),e=M(e);var r=this._optionBackup,i=o_(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],M(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=M(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,c=r.length;s<c;s++)s_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!l_(a,this._currentMediaIndices)&&(o=R(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function o_(e,t,n){var r=[],i,a,o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((d||u)&&(e.options=e.media=null),a=e),u&&(H(l)?L(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&G(e.query)&&G(e.query.option)&&Z(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&Z(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),L(c,function(e){return f(e)}),L(r,function(e){return f(e.option)});function f(e){L(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function s_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,function(e,t){var n=t.match(i_);if(!(!n||!n[1]||!n[2])){var a=n[1];c_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function c_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function l_(e,t){return e.join(`,`)===t.join(`,`)}var u_=L,d_=G,f_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function p_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=f_.length;n<r;n++){var i=f_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&Ro(`itemStyle.normal.`+i,i),e[i]=e[i]||{},e[i].normal?N(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!==`production`&&Ro(`itemStyle.emphasis.`+i,`emphasis.`+i),e[i]=e[i]||{},e[i].emphasis?N(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function m_(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(process.env.NODE_ENV!==`production`&&Lo(`'normal' hierarchy in `+t+` has been removed since 4.0. All style properties are configured in `+t+` directly now.`),n?(e[t].normal=e[t].emphasis=null,F(e[t],r)):e[t]=r),i&&(process.env.NODE_ENV!==`production`&&Lo(t+`.emphasis has been changed to emphasis.`+t+` since 4.0`),e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function h_(e){m_(e,`itemStyle`),m_(e,`lineStyle`),m_(e,`areaStyle`),m_(e,`label`),m_(e,`labelLine`),m_(e,`upperLabel`),m_(e,`edgeLabel`)}function g_(e,t){var n=d_(e)&&e[t],r=d_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Lo(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=Go.length;i<a;i++){var o=Go[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function __(e){e&&(h_(e),g_(e,`label`),e.emphasis&&g_(e.emphasis,`label`))}function v_(e){if(d_(e)){p_(e),h_(e),g_(e,`label`),g_(e,`upperLabel`),g_(e,`edgeLabel`),e.emphasis&&(g_(e.emphasis,`label`),g_(e.emphasis,`upperLabel`),g_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(p_(t),__(t));var n=e.markLine;n&&(p_(n),__(n));var r=e.markArea;r&&__(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!fe(a))for(var o=0;o<a.length;o++)__(a[o]);L(e.categories,function(e){h_(e)})}if(i&&!fe(i))for(var o=0;o<i.length;o++)__(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)__(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)H(c[o])?(__(c[o][0]),__(c[o][1])):__(c[o]);e.type===`gauge`?(g_(e,`axisLabel`),g_(e,`title`),g_(e,`detail`)):e.type===`treemap`?(m_(e.breadcrumb,`itemStyle`),L(e.levels,function(e){h_(e)})):e.type===`tree`&&h_(e.leaves)}}function y_(e){return H(e)?e:e?[e]:[]}function b_(e){return(H(e)?e[0]:e)||{}}function x_(e,t){u_(y_(e.series),function(e){d_(e)&&v_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),u_(n,function(t){u_(y_(e[t]),function(e){e&&(g_(e,`axisLabel`),g_(e.axisPointer,`label`))})}),u_(y_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;g_(t,`axisLabel`),g_(t&&t.axisPointer,`label`)}),u_(y_(e.calendar),function(e){m_(e,`itemStyle`),g_(e,`dayLabel`),g_(e,`monthLabel`),g_(e,`yearLabel`)}),u_(y_(e.radar),function(e){g_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Lo(`name property in radar component has been changed to axisName`)),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap,process.env.NODE_ENV!==`production`&&Lo(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&u_(e.indicator,function(e){e.text&&Ro(`text`,`name`,`radar.indicator`)})}),u_(y_(e.geo),function(e){d_(e)&&(__(e),u_(y_(e.regions),function(e){__(e)}))}),u_(y_(e.timeline),function(e){__(e),m_(e,`label`),m_(e,`itemStyle`),m_(e,`controlStyle`,!0);var t=e.data;H(t)&&L(t,function(e){G(e)&&(m_(e,`label`),m_(e,`itemStyle`))})}),u_(y_(e.toolbox),function(e){m_(e,`iconStyle`),u_(e.feature,function(e){m_(e,`iconStyle`)})}),g_(b_(e.axisPointer),`label`),g_(b_(e.tooltip).axisPointer,`label`)}function S_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function C_(e,t,n,r){for(var i=t.split(`,`),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]??(a[o]={}),a=a[o];(r||a[i[s]]==null)&&(a[i[s]]=n)}function w_(e){e&&L(T_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var T_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],E_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],D_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function O_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<D_.length;n++){var r=D_[n][1],i=D_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&Ro(r,i))}}function k_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&Ro(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function A_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&Ro(`downplay`,`blur`,`sunburst`))}function j_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&Ro(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function M_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&M_(e[n].children,t)}function N_(e,t){x_(e,t),e.series=Uo(e.series),L(e.series,function(e){if(G(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&Ro(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&Ro(`clockWise`,`clockwise`)),k_(e.label);var n=e.data;if(n&&!fe(n))for(var r=0;r<n.length;r++)k_(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&Ro(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=S_(e,`pointer.color`);i!=null&&C_(e,`itemStyle.color`,i)}else if(t===`bar`){O_(e),O_(e.backgroundStyle),O_(e.emphasis);var n=e.data;if(n&&!fe(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(O_(n[r]),O_(n[r]&&n[r].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a,process.env.NODE_ENV!==`production`&&Ro(`highlightPolicy`,`emphasis.focus`,`sunburst`))),A_(e),M_(e.data,A_)}else t===`graph`||t===`sankey`?j_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&Ro(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Lo("`mapLocation` is not used anymore."),F(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(process.env.NODE_ENV!==`production`&&Ro(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),w_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),L(E_,function(t){var n=e[t];n&&(H(n)||(n=[n]),L(n,function(e){w_(e)}))})}var P_=Ls(F_);function F_(e){var t=J();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),L(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),I_(e))})}function I_(e){L(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d=o.get(t.stackedDimension,u);if(isNaN(d))return i;var f,p;s?p=o.getRawIndex(u):f=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(p=g.data.rawIndexOf(g.stackedByDimension,f)),p>=0){var _=g.data.getByRawIndex(g.stackResultDimension,p);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&d>=0&&_>0||c===`samesign`&&d<=0&&_<0){d=go(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var L_=function(){function e(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&Pg(this,n)===Og.Must&&(r.type=`ordinal`)}}return e}();function R_(e){return e instanceof L_}function z_(e,t,n){n||=H_(e);var r=t.seriesLayoutBy,i=U_(e,n,r,t.sourceHeader,t.dimensions);return new L_({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function B_(e){return new L_({data:e,sourceFormat:fe(e)?Eu:Su})}function V_(e){return new L_({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function H_(e){var t=Du;if(fe(e))t=Eu;else if(H(e)){e.length===0&&(t=Cu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(H(i)||fe(i)){t=Cu;break}if(G(i)){t=wu;break}}}}else if(G(e)){for(var a in e)if(je(e,a)&&ie(e[a])){t=Tu;break}}return t}function U_(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:G_(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?K_(function(e){e!=null&&e!==`-`&&(W(e)?o??=1:o=0)},n,s,10):o=ue(r)?r:+!!r,!i&&o===1&&(i=[],K_(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=W_(e);else if(t===`keyedColumns`)i||(i=[],L(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Ko(e[0]);a=H(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&q(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:G_(i),dimensionsDetectedCount:a}}function W_(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return B(n)}function G_(e){if(e){var t=J();return R(e,function(e,n){e=G(e)?e:{name:e};var r={name:e.name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function K_(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)e(a[i],i)}function q_(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var J_,Y_,X_,Z_,Q_,$_,ev=function(){function e(e,t){var n=R_(e)?e:B_(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat,a=n.seriesLayoutBy;if(i===`typedArray`){if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Typed array data must specify dimension size`);this._offset=0,this._dimSize=t,this._data=r}if(process.env.NODE_ENV!==`production`){var o=nv[fv(i,a)];o&&o(r,n.dimensionsDefine)}$_(this,r,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var e;$_=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=Q_[fv(o,s)];process.env.NODE_ENV!==`production`&&q(u,`Invalide sourceFormat: `+o),P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=V(av(o,s),null,i,c,l),e.count=V(cv(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};Q_=(e={},e[Cu+`_`+Ou]={pure:!0,appendData:i},e[Cu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[wu]={pure:!0,appendData:i},e[Tu]={pure:!0,appendData:function(e){var t=this._data;L(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Su]={appendData:i},e[Eu]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&q(fe(e),`Added data must be TypedArray if data in initialization is TypedArray`),this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},e);function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}}(),e}(),tv=function(e){H(e)||Z(`series.data or dataset.source must be an array.`)},nv=(J_={},J_[Cu+`_`+Ou]=tv,J_[Cu+`_row`]=tv,J_[wu]=tv,J_[Tu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Z(`dimension name must not be null/undefined.`)},J_[Su]=tv,J_),rv=function(e,t,n,r){return e[r]},iv=(Y_={},Y_[Cu+`_`+Ou]=function(e,t,n,r){return e[r+t]},Y_[Cu+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Y_[wu]=rv,Y_[Tu]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Y_[Su]=rv,Y_);function av(e,t){var n=iv[fv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var ov=function(e,t,n){return e.length},sv=(X_={},X_[Cu+`_`+Ou]=function(e,t,n){return Math.max(0,e.length-t)},X_[Cu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},X_[wu]=ov,X_[Tu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},X_[Su]=ov,X_);function cv(e,t){var n=sv[fv(e,t)];return process.env.NODE_ENV!==`production`&&q(n,`Do not support count on "`+e+`", "`+t+`".`),n}var lv=function(e,t,n){return e[t]},uv=(Z_={},Z_[Cu]=lv,Z_[wu]=function(e,t,n){return e[n]},Z_[Tu]=lv,Z_[Su]=function(e,t,n){var r=Ko(e);return r instanceof Array?r[t]:r},Z_[Eu]=lv,Z_);function dv(e){var t=uv[e];return process.env.NODE_ENV!==`production`&&q(t,`Do not support get value on "`+e+`".`),t}function fv(e,t){return e===`arrayRows`?e+`_`+t:e}function pv(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return dv(a)(r,o,s)}var c=r;return a===`original`&&(c=Ko(r)),c}}}var mv=/\{@(.+?)\}/g,hv=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);if(a&&(s.value=a.interpolatedValue),r!=null&&H(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),U(i))return s.status=t,s.dimensionIndex=r,i(s);if(W(i))return Jh(i,s).replace(mv,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1),process.env.NODE_ENV!==`production`&&isNaN(i)&&Z(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=pv(o,e,i);if(a&&H(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return pv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function gv(e){var t,n;return G(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+zo(e)):t=e,{text:t,frag:n}}function _v(e){return new vv(e)}var vv=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t=this._upstream,n=e&&e.skip;if(this._dirty&&t){var r=this.context;r.data=r.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var a=l(this._modBy),o=this._modDataCount||0,s=l(e&&e.modBy),c=e&&e.modDataCount||0;(a!==s||o!==c)&&(i=`reset`);function l(e){return!(e>=1)&&(e=1),e}var u;(this._dirty||i===`reset`)&&(this._dirty=!1,u=this._doReset(n)),this._modBy=s,this._modDataCount=c;var d=e&&e.step;if(t?(process.env.NODE_ENV!==`production`&&q(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&q(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!n&&(u||f<p)){var m=this._progress;if(H(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,s,c);else this._doProgress(m,f,p,s,c)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;process.env.NODE_ENV!==`production`&&q(g>=this._outputDueEnd),this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){yv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:yv.next},this.context)},e.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),H(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){process.env.NODE_ENV!==`production`&&q(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),yv=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function bv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ue(e)&&e!=null&&e!==`-`&&(e=+xo(e)),e==null||e===``?NaN:Number(e))}J({number:function(e){return parseFloat(e)},time:function(e){return+xo(e)},trim:function(e){return W(e)?xe(e):e}});var xv={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}};(function(){function e(e,t){if(!ue(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),Bo(n)}this._opFn=xv[e],this._rvalFloat=To(t)}return e.prototype.evaluate=function(e){return ue(e)?this._opFn(e,this._rvalFloat):this._opFn(To(e),this._rvalFloat)},e})();var Sv=function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=ue(e)?e:To(e),r=ue(t)?t:To(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=W(e),s=W(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}();(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=To(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n!==this._rvalTypeof&&(n===`number`||this._rvalTypeof===`number`)&&(t=To(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Cv(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function wv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Tv=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return bv(e,t)},e}();function Ev(e,t){var n=new Tv,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex,o=``;e.seriesLayoutBy!==`column`&&(process.env.NODE_ENV!==`production`&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Bo(o));var s=[],c={},l=e.dimensionsDefine;if(l)L(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;je(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),Bo(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=av(i,Ou);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=V(Dv,null,e)),n.cloneRawData=V(Ov,null,e),n.count=V(cv(i,Ou),null,r,a,s);var f=dv(i);n.retrieveValue=function(e,t){return p(d(r,a,s,e),t)};var p=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=s[t];if(n)return f(e,t,n.name)}};return n.getDimensionInfo=V(kv,null,s,c),n.cloneAllDimensionInfo=V(Av,null,s),n}function Dv(e){var t=e.sourceFormat;if(!Fv(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),Bo(n)}return e.data}function Ov(e){var t=e.sourceFormat,n=e.data;if(!Fv(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),Bo(r)}if(t===`arrayRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(t===`objectRows`){for(var i=[],a=0,o=n.length;a<o;a++)i.push(P({},n[a]));return i}}function kv(e,t,n){if(n!=null){if(ue(n)||!isNaN(n)&&!je(t,n))return e[n];if(je(t,n))return t[n]}}function Av(e){return M(e)}var jv=J();function Mv(e){e=M(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),Bo(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),Bo(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,jv.set(t,e)}function Nv(e,t,n){var r=Uo(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),Bo(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=Pv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Pv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),Bo(i)),G(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),Bo(i));var a=e.type,o=jv.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),Bo(i));var s=R(t,function(e){return Ev(e,o)}),c=Uo(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&Fo(R(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,zo(e.data),`- transform result dimensions:`,zo(e.dimensions)].join(`
|
|
13
13
|
`)}).join(`
|
|
14
|
-
`)),I(c,function(e,n){var r=``;U(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),Lo(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),Lo(r)),Av(L_(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),Lo(r));var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Cu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Cu,sourceHeader:0,dimensions:e.dimensions};return P_(e.data,i,null)})}function Av(e){return e===`arrayRows`||e===`objectRows`}var jv=typeof Uint32Array>`u`?Array:Uint32Array,Mv=typeof Uint16Array>`u`?Array:Uint16Array,Nv=typeof Int32Array>`u`?Array:Int32Array,Pv=typeof Float64Array>`u`?Array:Float64Array,Fv={float:Pv,int:Nv,ordinal:Array,number:Array,time:Pv},Iv;function Lv(e){return e>65535?jv:Mv}function Rv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function zv(e,t,n,r,i){var a=Fv[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Bv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&G(V(e.getItem)&&V(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Iv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=H_(r);this._dimensions=I(t,function(e){return process.env.NODE_ENV!==`production`&&a&&G(e.property!=null),{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Fv[t||`float`](this._rawCount),this._rawExtent[i]=_s(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=_s());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){process.env.NODE_ENV!==`production`&&G(!this._indices,`appendData can only be called on raw data.`);var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];zv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Iv.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=I(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=_s()),zv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),co(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Lv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Lv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=L(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Lv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=_s();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Lv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Lv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=_s(),d=new(Lv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=_s();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=vv(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||yv(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&re(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Rv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=k(this._extent),e._rawExtent=k(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return hv(e[r],this._dimensions[r])}Iv={arrayRows:e,objectRows:function(e,t,n,r){return hv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return hv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Vv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(Hv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=ue(o)?xu:_u,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=W(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=W(u.sourceHeader,d.sourceHeader),m=W(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[P_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[P_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&G(r&&i),this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);if(process.env.NODE_ENV!==`production`&&G(r!=null||n!=null),r!=null){var i=``;e.length!==1&&(process.env.NODE_ENV!==`production`&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),Uv(i))}var a,o=[],s=[];return F(e,function(e){e.prepareSource();var t=e.getSource(r||0),n=``;r!=null&&!t&&(process.env.NODE_ENV!==`production`&&(n="Can not retrieve result by `fromTransformResult`: "+r),Uv(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Ov(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[I_(o[0])]),{sourceList:a,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!==`production`&&G(Hv(this._sourceHost),`Can only call getDataStore on series source manager.`);var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];Hv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Bv,o.initData(new Y_(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Hv(e)){var t=Dg(e);return t?[t.getSourceManager()]:[]}return I(Og(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Hv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function Hv(e){return e.mainType===`series`}function Uv(e){throw Error(e)}var Wv=`line-height:1`;function Gv(e){var t=e.lineHeight;return t==null?Wv:`line-height:`+ut(t+``)+`px`}function Kv(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+ut(r+``)+`px;color:`+ut(n)+`;font-weight:`+ut(i+``),valueStyle:`font-size:`+ut(o+``)+`px;color:`+ut(a)+`;font-weight:`+ut(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var qv=[0,10,20,30],Jv=[``,`
|
|
14
|
+
`)),R(c,function(e,n){var r=``;G(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),Bo(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),Bo(r)),Fv(H_(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),Bo(r));var i,a=t[0];if(a&&n===0&&!e.dimensions){var o=a.startIndex;o&&(e.data=a.data.slice(0,o).concat(e.data)),i={seriesLayoutBy:Ou,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Ou,sourceHeader:0,dimensions:e.dimensions};return z_(e.data,i,null)})}function Fv(e){return e===`arrayRows`||e===`objectRows`}var Iv=typeof Uint32Array>`u`?Array:Uint32Array,Lv=typeof Uint16Array>`u`?Array:Uint16Array,Rv=typeof Int32Array>`u`?Array:Int32Array,zv=typeof Float64Array>`u`?Array:Float64Array,Bv={float:zv,int:Rv,ordinal:Array,number:Array,time:zv},Vv;function Hv(e){return e>65535?Iv:Lv}function Uv(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Wv(e,t,n,r,i){var a=Bv[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Gv=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=J()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&q(U(e.getItem)&&U(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Vv[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=q_(r);this._dimensions=R(t,function(e){return process.env.NODE_ENV!==`production`&&a&&q(e.property!=null),{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Bv[t||`float`](this._rawCount),this._rawExtent[i]=xs(),i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=xs());for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){process.env.NODE_ENV!==`production`&&q(!this._indices,`appendData can only be called on raw data.`);var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++){var l=r[c];Wv(n,c,l.type,s,!0)}for(var u=[],d=o;d<s;d++)for(var f=d-o,p=0;p<i;p++){var l=r[p],m=Vv.arrayRows.call(this,e[f]||u,l.property,f,p);n[p][d]=m;var h=a[p];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=R(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=xs()),Wv(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;for(var i=0,a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var r=0,i=this.count();r<i;r++){var a=this.get(e,r);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),fo(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else if(t[a]>e)i=a-1;else return a}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else{var n=Hv(this._rawCount);e=new n(this.count());for(var i=0;i<e.length;i++)e[i]=i}return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Hv(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1){var p=l[c][f];d=t(p,u)}else{for(var m=0;m<o;m++)a[m]=l[e[m]][f];a[m]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=B(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Hv(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++){var g=m[h];(g>=l&&g<=u||isNaN(g))&&(o[s++]=p),p++}f=!0}else if(i===2){for(var m=d[r[0]],_=d[r[1]],v=e[r[1]][0],y=e[r[1]][1],h=0;h<n;h++){var g=m[h],b=_[h];(g>=l&&g<=u||isNaN(g))&&(b>=v&&b<=y||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(var h=0;h<a;h++){var x=t.getRawIndex(h),g=d[r[0]][x];(g>=l&&g<=u||isNaN(g))&&(o[s++]=x)}else for(var h=0;h<a;h++){for(var S=!0,x=t.getRawIndex(h),C=0;C<i;C++){var w=r[C],g=d[w][x];(g<e[w][0]||g>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=xs();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null){typeof p!=`object`&&(i[0]=p,p=i);for(var l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}}},e.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),r=n._chunks[e],i=this.count(),a=0,o=Math.floor(1/t),s=this.getRawIndex(0),c,l,u,d=new(Hv(this._rawCount))(Math.min((Math.ceil(i/o)+2)*2,i));d[a++]=s;for(var f=1;f<i-1;f+=o){for(var p=Math.min(f+o,i-1),m=Math.min(f+o*2,i),h=(m+p)/2,g=0,_=p;_<m;_++){var v=this.getRawIndex(_),y=r[v];isNaN(y)||(g+=y)}g/=m-p;var b=f,x=Math.min(f+o,i),S=f-1,C=r[s];c=-1,u=b;for(var w=-1,T=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=r[v];if(isNaN(y)){T++,w<0&&(w=v);continue}l=Math.abs((S-h)*(y-C)-(S-_)*(g-C)),l>c&&(c=l,u=v)}T>0&&T<x-b&&(d[a++]=Math.min(w,u),u=Math.max(w,u)),d[a++]=u,s=u}return d[a++]=this.getRawIndex(i-1),n._count=a,n._indices=d,n.getRawIndex=this._getRawIdx,n},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Hv(this._rawCount))(Math.ceil(o/i)*2),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=xs(),d=new(Hv(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=xs();if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=Cv(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];(!t||wv(s,p))&&(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&ae(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Uv(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=M(this._extent),e._rawExtent=M(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return bv(e[r],this._dimensions[r])}Vv={arrayRows:e,objectRows:function(e,t,n,r){return bv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return bv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Kv=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),n=!!t.length,r,i;if(qv(e)){var a=e,o=void 0,s=void 0,c=void 0;if(n){var l=t[0];l.prepareSource(),c=l.getSource(),o=c.data,s=c.sourceFormat,i=[l._getVersionSign()]}else o=a.get(`data`,!0),s=fe(o)?Eu:Su,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=K(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=K(u.sourceHeader,d.sourceHeader),m=K(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[z_(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=e;if(n){var g=this._applyTransform(t);r=g.sourceList,i=g.upstreamSignList}else r=[z_(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&q(r&&i),this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);if(process.env.NODE_ENV!==`production`&&q(r!=null||n!=null),r!=null){var i=``;e.length!==1&&(process.env.NODE_ENV!==`production`&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),Jv(i))}var a,o=[],s=[];return L(e,function(e){e.prepareSource();var t=e.getSource(r||0),n=``;r!=null&&!t&&(process.env.NODE_ENV!==`production`&&(n="Can not retrieve result by `fromTransformResult`: "+r),Jv(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Nv(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[V_(o[0])]),{sourceList:a,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!==`production`&&q(qv(this._sourceHost),`Can only call getDataStore on series source manager.`);var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=0,i=this._storeList,a=i[r];a||=i[r]={};var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];qv(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Gv,o.initData(new ev(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(qv(e)){var t=Mg(e);return t?[t.getSourceManager()]:[]}return R(Ng(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(qv(e))t=e.get(`seriesLayoutBy`,!0),n=e.get(`sourceHeader`,!0),r=e.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=e;t=i.get(`seriesLayoutBy`,!0),n=i.get(`sourceHeader`,!0),r=i.get(`dimensions`,!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:r}},e}();function qv(e){return e.mainType===`series`}function Jv(e){throw Error(e)}var Yv=`line-height:1`;function Xv(e){var t=e.lineHeight;return t==null?Yv:`line-height:`+ft(t+``)+`px`}function Zv(e,t){var n=e.color||Q.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Q.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+ft(r+``)+`px;color:`+ft(n)+`;font-weight:`+ft(i+``),valueStyle:`font-size:`+ft(o+``)+`px;color:`+ft(a)+`;font-weight:`+ft(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Qv=[0,10,20,30],$v=[``,`
|
|
15
15
|
`,`
|
|
16
16
|
|
|
17
17
|
`,`
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
`];function Yv(e,t){return t.type=e,t}function Xv(e){return e.type===`section`}function Zv(e){return Xv(e)?$v:ey}function Qv(e){if(Xv(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return F(e.blocks,function(e){var n=Qv(e);n>=t&&(t=n+ +(r&&(!n||Xv(e)&&!e.noHeader)))}),t}return 0}function $v(e,t,n,r){var i=t.noHeader,a=ny(Qv(t)),o=[],s=t.blocks||[];G(!s||B(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ke(l,c)){var u=new _v(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}F(s,function(n,i){var s=t.valueFormatter,c=Zv(n)(s?j(j({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):ry(r,o.join(``),i?n:a.html);if(i)return d;var f=Bh(t.header,`ordinal`,e.useUTC),p=Kv(r,e.renderMode).nameStyle,m=Gv(r);return e.renderMode===`richText`?oy(e,f,p)+a.richText+d:ry(r,`<div style="`+p+`;`+m+`;">`+ut(f)+`</div>`+d,n)}function ey(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=B(e)?e:[e],I(e,function(e,t){return Bh(e,B(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Bh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Kv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:oy(e,f,v))+(o?``:sy(e,m,h,g,y)):ry(r,(s?``:d)+(a?``:iy(f,!s,v))+(o?``:ay(m,h,g,y)),n)}}function ty(e,t,n,r,i,a){if(e)return Zv(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function ny(e){return{html:qv[e],richText:Jv[e]}}function ry(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Gv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function iy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+ut(e)+`</span>`}function ay(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],`<span style="`+i+`;`+r+`">`+I(e,function(e){return ut(e)}).join(` `)+`</span>`}function oy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function sy(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(` `):t,a)}function cy(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Gh(n)}function ly(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var uy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=wo()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Wh({color:t,type:e,renderMode:n,markerId:r});return H(i)?i:(process.env.NODE_ENV!==`production`&&G(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};B(t)?F(t,function(e){return j(n,e)}):j(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function dy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=B(s),l=cy(t,n),u,d,f,p;if(o>1||c&&!o){var m=fy(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=cv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=rs(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Yv(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Yv(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!ye(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function fy(e,t,n,r,i){var a=t.getData(),o=re(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?F(r,function(e){u(cv(a,n,e),e)}):F(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Yv(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var py=cs();function my(e,t){return e.getName(t)||e.getId(t)}var hy=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=fv({count:vy,reset:yy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(py(this).sourceManager=new Vv(this)).prepareSource();var r=this.getInitialData(e,n);xy(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&G(r,`getInitialData returned invalid data.`),py(this).dataBeforeProcessed=r,gy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=cg(this),r=n?ug(e):{},i=this.subType;pg.hasClass(i)&&(i+=`Series`),A(e,t.getTheme().get(this.subType)),A(e,this.getDefaultOption()),Vo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&lg(e,r,n)},t.prototype.mergeOption=function(e,t){e=A(this.option,e,!0),this.fillDataTextStyle(e.data);var n=cg(this);n&&lg(this.option,e,n);var r=py(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);xy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,py(this).dataBeforeProcessed=i,gy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ue(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Vo(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Cy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return py(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Cy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}py(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return py(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return py(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return dy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(a.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=Pg.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=my(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=L(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[my(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){U(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=my(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=my(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return pg.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(pg);ne(hy,uv),ne(hy,Pg),Hs(hy,pg);function gy(e){var t=e.name;rs(e)||(e.name=_y(e)||t)}function _y(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return F(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function vy(e){return e.model.getRawData().count()}function yy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),by}function by(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xy(e,t){F(De(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,z(Sy,t))})}function Sy(e,t){var n=Cy(e);return n&&n.setOutputEnd((t||this).count()),t}function Cy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var wy=function(){function e(){this.group=new Na,this.uid=Pm(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Bs(wy),qs(wy);function Ty(){var e=cs();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var Ey=cs(),Dy=Ty(),Oy=function(){function e(){this.group=new Na,this.uid=Pm(`viewChart`),this.renderTask=fv({plan:jy,reset:My}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&X(`Unknown dataType `+r.dataType);return}Ay(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&X(`Unknown dataType `+r.dataType);return}Ay(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Kp(this.group,e)},e.markUpdateMethod=function(e,t){Ey(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function ky(e,t,n){e&&Od(e)&&(t===`emphasis`?rd:id)(e,n)}function Ay(e,t,n){var r=ss(e,t),i=t&&t.highlightKey!=null?kd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){ky(e,n,i)}):F(Bo(r),function(t){ky(e.getItemGraphicEl(t),n,i)})}Bs(Oy,[`dispose`]),qs(Oy);function jy(e){return Dy(e.model)}function My(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Ey(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ny[c]}var Ny={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Py=`\0__throttleOriginMethod`,Fy=`\0__throttleRate`,Iy=`\0__throttleType`;function Ly(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Ry(e,t,n,r){var i=e[t];if(i){var a=i[Py]||i,o=i[Iy];if(i[Fy]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Ly(a,n,r===`debounce`),i[Py]=a,i[Iy]=r,i[Fy]=n}return i}}function zy(e,t){var n=e[t];n&&n[Py]&&(n.clear&&n.clear(),e[t]=n[Py])}var By=cs(),Vy={itemStyle:Js(km,!0),lineStyle:Js(Em,!0)},Hy={lineStyle:`stroke`,itemStyle:`fill`};function Uy(e,t){return e.visualStyleMapper||Vy[t]||(console.warn(`Unknown style type '`+t+`'.`),Vy.itemStyle)}function Wy(e,t){return e.visualDrawType||Hy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Gy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Uy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Wy(e,r),c=a[s],l=V(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||V(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||V(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=j({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Ky=new Mm,qy={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Uy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Ky.option=n[r];var o=i(Ky);j(e.ensureUniqueItemVisual(t,`style`),o),Ky.option.decal&&(e.setItemVisual(t,`decal`,Ky.option.decal),Ky.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Jy={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();By(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=By(e).scope,a=Wy(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},Yy=Math.PI;function Xy(e,t){t||={},M(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Na,r=new Yl({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new eu({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Yl({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new zf({shape:{startAngle:-Yy/2,endAngle:-Yy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Yy*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Yy*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Zy=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Ms(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;F(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),G(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;F(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=K(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||fv({plan:nb,reset:rb,count:ob}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||fv({reset:Qy});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),G(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):F(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,fv({reset:$y,onDirty:tb})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return V(e)&&(e={overallReset:e,seriesType:sb(e)}),e.uid=Pm(`stageHandler`),t&&(e.visualType=t),e},e}();function Qy(e){e.overallReset(e.ecModel,e.api,e.payload)}function $y(e){return e.dirtyOnOverallProgress&&eb}function eb(){this.agent.dirty(),this.getDownstream().dirty()}function tb(){this.agent&&this.agent.dirty()}function nb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function rb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Bo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?I(t,function(e,t){return ab(t)}):ib}var ib=ab(0);function ab(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function ob(e){return e.data.count()}function sb(e){ub=null;try{e(cb,lb)}catch{}return ub}var cb={},lb={},ub;db(cb,qg),db(lb,Tu),cb.eachSeriesByType=cb.eachRawSeriesByType=function(e){ub=e},cb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(ub=e.subType)};function db(e,t){for(var n in t.prototype)e[n]=Ae}var $=Q.darkColor,fb=$.background,pb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},mb={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},hb={darkMode:!0,color:$.theme,backgroundColor:fb,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:fb,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:mb,y:mb,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:pb(),logAxis:pb(),valueAxis:pb(),categoryAxis:pb(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=pb();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};hb.categoryAxis.splitLine.show=!1;var gb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(H(e)){var i=Ls(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};F(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),_b=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],vb=_b.concat([`symbolKeepAspect`]),yb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<_b.length;o++){var s=_b[o],c=e.get(s);V(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(j({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=L(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},bb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<vb.length;r++){var i=vb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function xb(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function Sb(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}function Cb(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Po(`event `+a+` is deprecated.`),r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=ss(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:B(l)?c.getName(l[0]):c.getName(l),selected:H(r)?r:j({},r)})}}))}function wb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Cb(`map`,`selectchanged`,t,r,e),Cb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Cb(`map`,`selected`,t,r,e),Cb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Cb(`map`,`unselected`,t,r,e),Cb(`pie`,`unselected`,t,r,e))})}function Tb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Eb=new Xe,Db={};function Ob(e,t){process.env.NODE_ENV!==`production`&&Db[e]&&X(`Already has an implementation of `+e+`.`),Db[e]=t}function kb(e){return process.env.NODE_ENV!==`production`&&(Db[e]||X(`Implementation of `+e+` doesn't exists.`)),Db[e]}var Ab={};function jb(e,t){Ab[e]=t}var Mb=cs();function Nb(e){Mb(e).prepare={}}function Pb(e){Mb(e).fullUpdate={}}function Fb(e){return Mb(e).prepare}function Ib(e){return Mb(e).fullUpdate}var Lb=Math.round(Math.random()*9),Rb=typeof Object.defineProperty==`function`,zb=function(){function e(){this._id=`__ec_inner_`+Lb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Rb?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Bb=Fl.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Vb={line:Nf,rect:Yl,roundRect:Yl,square:Yl,circle:nf,diamond:Fl.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Fl.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Fl.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Bb},Hb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Ub={};F(Vb,function(e,t){Ub[t]=new e});var Wb=Fl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=ha(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Ub[r];i||=(r=`rect`,Ub[r]),Hb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Gb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Kb(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?xp(e.slice(8),new q(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?bp(e.slice(7),{},new q(t,n,r,i),o?`center`:`cover`):new Wb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Gb,a&&c.setColor(a),c}function qb(e,t){if(e!=null)return B(e)||(e=[e,e]),[io(e[0],t[0])||0,io(W(e[1],e[0]),t[1])||0]}function Jb(e){return isFinite(e)}function Yb(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=Jb(r)?r:0,i=Jb(i)?i:1,a=Jb(a)?a:0,o=Jb(o)?o:0,e.createLinearGradient(r,a,i,o)}function Xb(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=Jb(o)?o:.5,s=Jb(s)?s:.5,c=c>=0&&Jb(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Zb(e,t,n){for(var r=t.type===`radial`?Xb(e,t,n):Yb(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Qb(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function $b(e){return parseInt(e,10)}function ex(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||$b(s[r])||$b(e.style[r]))-($b(s[a])||0)-($b(s[o])||0)||0}function tx(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ce(e)?[e]:B(e)?e:null}function nx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&tx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=I(n,function(e){return e/i}),r/=i)}return[n,r]}var rx=new ul(!0);function ix(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function ax(e){return typeof e==`string`&&e!==`none`}function ox(e){var t=e.fill;return t!=null&&t!==`none`}function sx(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function cx(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function lx(e,t,n){var r=$s(t.image,t.__image,n);if(tc(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*je),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function ux(e,t,n,r,i){var a,o=ix(n),s=ox(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||rx,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?Zb(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Zb(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?lx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?lx(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=nx(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&cx(e,n),s&&sx(e,n)):(s&&sx(e,n),o&&cx(e,n)),T&&e.setLineDash([])}function dx(e,t,n){var r=t.__image=$s(n.image,t.__image,t,t.onload);if(!(!r||!tc(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function fx(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=nx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(ix(n)&&e.strokeText(i,n.x,n.y),ox(n)&&e.fillText(i,n.x,n.y)):(ox(n)&&e.fillText(i,n.x,n.y),ix(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var px=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],mx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function hx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Dx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Tc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Dx(e,i),!0),e.globalCompositeOperation=t.blend||Tc.blend);for(var s=0;s<px.length;s++){var c=px[s];(r||t[c]!==n[c])&&(a||=(Dx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Dx(e,i),!0),e.shadowColor=t.shadowColor||Tc.shadowColor),a}function gx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=hx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Dx(e,i),!0),ax(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Dx(e,i),!0),ax(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Dx(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Dx(e,i),!0),e.lineWidth=c)}for(var l=0;l<mx.length;l++){var u=mx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Dx(e,i),!0),e[d]=a[d]||u[1])}return s}function _x(e,t,n,r,i){return hx(e,t.style,n&&n.style,r,i)}function vx(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function yx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),vx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function bx(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var xx=1,Sx=2,Cx=3,Tx=4;function Ex(e){var t=ox(e),n=ix(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Dx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Ox(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};kx(e,t,n),Ax(e,n)}function kx(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||Qb(i,a))&&(a&&(Dx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Dx(e,n),e.save(),yx(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Fl&&t.autoBatch&&Ex(o);s||bx(r,l.transform)?(Dx(e,n),vx(e,t)):u||Dx(e,n),t instanceof Fl?(n.lastDrawType!==xx&&(c=!0,n.lastDrawType=xx),gx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),ux(e,t,o,u,n)):t instanceof Ll?(n.lastDrawType!==Cx&&(c=!0,n.lastDrawType=Cx),gx(e,t,l,c,n),fx(e,t,o)):t instanceof Vl?(n.lastDrawType!==Sx&&(c=!0,n.lastDrawType=Sx),_x(e,t,l,c,n),dx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Tx&&(c=!0,n.lastDrawType=Tx),jx(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Dx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ax(e,t){Dx(e,t),t.prevElClipPaths&&e.restore()}function jx(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),kx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Ax(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),kx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Ax(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Mx=new zb,Nx=new or(100),Px=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Fx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Mx.delete(e);var a=Mx.get(e);if(a)return a;var o=M(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Mx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Px.length;++s){var c=o[Px[s]];if(c!=null&&!B(c)&&!H(c)&&!ce(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Nx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Lx(o.dashArrayX),f=Rx(o.dashArrayY),m=Ix(o.symbol),h=zx(d),g=Bx(f),_=!i&&p.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&Nx.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=Eo(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=Eo(r,m[t].length);e*=r;var i=g*h.length*m.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,p=0,h=0,x=0;p<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=p+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}p+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Kb(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else Ox(b,u)}}}}function Ix(e){if(!e||e.length===0)return[[`rect`]];if(H(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!H(e[n])){t=!1;break}if(t)return Ix([e]);for(var r=[],n=0;n<e.length;++n)H(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Lx(e){if(!e||e.length===0)return[[0,0]];if(ce(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ce(e[r])){n=!1;break}if(n)return Lx([e]);for(var i=[],r=0;r<e.length;++r)if(ce(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=I(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Rx(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ce(e)){var t=Math.ceil(e);return[t,t]}var n=I(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function zx(e){return I(e,function(e){return Bx(e)})}function Bx(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Vx=Ns(Hx);function Hx(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Fx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Fx(i,t)}}})}var Ux=1,Wx=800,Gx=900,Kx=920,qx=1e3,Jx=2e3,Yx=5e3,Xx=1e3,Zx=1100,Qx=2e3,$x=3e3,eS=4e3,tS=4500,nS=4600,rS=5e3,iS=6e3,aS=7e3,oS={PROCESSOR:{SERIES_FILTER:Wx,AXIS_STATISTICS:Kx,FILTER:qx,STATISTIC:Yx,STATISTICS:Yx},VISUAL:{LAYOUT:Xx,PROGRESSIVE_LAYOUT:Zx,GLOBAL:Qx,CHART:$x,POST_CHART_LAYOUT:nS,COMPONENT:eS,BRUSH:rS,CHART_ITEM:tS,ARIA:iS,DECAL:aS}},sS=`__flagInMainProcess`,cS=`__mainProcessVersion`,lS=`__pendingUpdate`,uS=`__needsUpdateStatus`,dS=/^[a-zA-Z0-9_]+$/;function fS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){LS(this.id);return}return mS(this,e,t)}}function pS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return mS(this,e,t)}}function mS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Xe.prototype[t].apply(e,n)}var hS=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Xe),gS=hS.prototype;gS.on=pS(`on`),gS.off=pS(`off`);var _S,vS,yS,bS,xS,SS,CS,wS,TS,ES,DS,OS,kS,AS,jS,MS,NS,PS,FS=function(e){r(t,e);function t(t,n,r){var i=e.call(this,new gb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var o=`canvas`,s=`auto`,c=!1;if(i[cS]=1,process.env.NODE_ENV!==`production`){var l=a.hasGlobalWindow?window:global;l&&(o=W(l.__ECHARTS__DEFAULT__RENDERER__,o),s=W(l.__ECHARTS__DEFAULT__COARSE_POINTER,s),c=W(l.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,c))}r.ssr&&Ua(function(e){var t=mu(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var u=i._zr=za(t,{renderer:r.renderer||o,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:W(r.useDirtyRect,c),useCoarsePointer:W(r.useCoarsePointer,s),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Ly(R(u.flush,u),17),i._updateTheme(n),i._locale=qm(r.locale||Gm),i._coordSysMgr=new Jh;var d=i._api=jS(i);function f(e,t){return e.__prio-t.__prio}return Cn(US,f),Cn(VS,f),i._scheduler=new Zy(i,d,VS,US),i._messageCenter=new hS,i._initEvents(),i.resize=R(i.resize,i),u.animation.on(`frame`,i._onframe,i),ES(u,i),DS(u,i),xe(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(NS(this),this[lS]){var r=this[lS].silent;this[sS]=!0,PS(this);try{_S(this),bS.update.call(this,null,this[lS].updateParams)}catch(e){throw this[sS]=!1,this[lS]=null,e}this._zr.flush(),this[sS]=!1,this[lS]=null,wS.call(this,r),TS.call(this,r)}else if(e.unfinished){var i=Ux;do{e.unfinished=!1;var a=p.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),SS(this,t),e.performVisualTasks(t),AS(this,this._model,n,`remain`,{}),i-=p.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[sS]){process.env.NODE_ENV!==`production`&&X("`setOption` should not be called during main process.");return}if(this._disposed){LS(this.id);return}var r,i,a;if(U(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[sS]=!0,PS(this),!this._model||t){var o=new e_(this._api),s=this._theme,c=this._model=new qg;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},HS);var l={seriesTransition:a,optionChanged:!0};if(n)this[lS]={silent:r,updateParams:l},this[sS]=!1,this.getZr().wakeUp();else{try{_S(this),bS.update.call(this,null,l)}catch(e){throw this[lS]=null,this[sS]=!1,e}this._ssr||this._zr.flush(),this[lS]=null,this[sS]=!1,wS.call(this,r),TS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[sS]){process.env.NODE_ENV!==`production`&&X("`setTheme` should not be called during main process.");return}if(this._disposed){LS(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[lS]&&(r??=this[lS].silent,i=this[lS].updateParams,this[lS]=null),this[sS]=!0,PS(this);try{this._updateTheme(e),n.setTheme(this._theme),_S(this),bS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[sS]=!1,e}this[sS]=!1,wS.call(this,r),TS.call(this,r)}},t.prototype._updateTheme=function(e){H(e)&&(e=WS[e]),e&&(e=k(e),e&&O_(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||a.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Fo(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return F(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){LS(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;F(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return F(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){LS(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(qS[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();F(KS,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(k(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,m=l-s,h=p.createCanvas(),g=za(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:m}),t){var _=``;return F(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new Yl({shape:{x:0,y:0,width:f,height:m},style:{fill:e.connectedBackgroundColor}})),F(u,function(e){var t=new Vl({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return xS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return xS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return xS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){LS(this.id);return}var n=this._model,r;return F(us(n,e),function(e,n){n.indexOf(`Models`)>=0&&F(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint?r||=a.containPoint(t,e):process.env.NODE_ENV!==`production`&&No(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&No(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=us(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||No(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?Sb(a,t):xb(a,o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;F(IS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Tb(i,function(e){var t=mu(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=j({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&No(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;F(BS,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),wb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){LS(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){LS(this.id);return}this._disposed=!0,this.getDom()&&hs(this.getDom(),JS,``);var e=this,t=e._api,n=e._model;F(e._componentsViews,function(e){e.dispose(n,t)}),F(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete KS[e.id]},t.prototype.resize=function(e){if(this[sS]){process.env.NODE_ENV!==`production`&&X("`resize` should not be called during main process.");return}if(this._disposed){LS(this.id);return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[lS]&&(r??=this[lS].silent,n=!0,this[lS]=null),this[sS]=!0,PS(this);try{n&&_S(this),bS.update.call(this,{type:`resize`,animation:j({duration:0},e&&e.animation)})}catch(e){throw this[sS]=!1,e}this[sS]=!1,wS.call(this,r),TS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){LS(this.id);return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!GS[e]){process.env.NODE_ENV!==`production`&&No(`Loading effects `+e+` not exists.`);return}var n=GS[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){LS(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=j({},e);return t.type=zS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){LS(this.id);return}if(U(t)||(t={silent:!!t}),RS[e.type]&&this._model){if(this[sS]){this._pendingActions.push(e);return}var n=t.silent;CS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&a.browser.weChat&&this._throttledZrFlush(),wS.call(this,n),TS.call(this,n)}},t.prototype.updateLabelLayout=function(){Eb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){LS(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&G(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){_S=function(e){Nb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),vS(e,!0),vS(e,!1),t.plan()},vS=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Ls(e.type),f=t?wy.getClass(d.main,d.sub):Oy.getClass(d.sub);process.env.NODE_ENV!==`production`&&G(f,d.sub+` does not exist.`),u=new f,u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},yS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){F([].concat(e._componentsViews,e._chartsViews),l);return}var o=ms(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),F(Bo(s),function(e){var t=es(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(jd(n)){if(t instanceof hy)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&pd(t,n,e._api);else{var r=md(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&fd(t.mainType,t.componentIndex,e._api),a&&F(a,function(e){n.type===`highlight`?rd(e):id(e)})}}else Ad(n)&&t instanceof hy&&(_d(t,n,e._api),vd(t),MS(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},bS={prepareAndUpdate:function(e){_S(this),bS.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){Pb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),Eb.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),SS(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),OS(this,r,i,e,n),Eb.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),AS(t,n,r,e,{},a),Eb.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Oy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),OS(this,n,this._api,e,{}),Eb.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Oy.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),Eb.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){bS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){LS(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=us(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}process.env.NODE_ENV!==`production`&&No(`No coordinate system that supports `+t+` found by the given finder.`)}xS=e,SS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},CS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=RS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ls(s[0]);this[sS]=!0,PS(this);var u=[e],d=!1;e.batch&&(d=!0,u=I(e.batch,function(t){return t=M(j({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Ad(e),_=jd(e);if(_&&ud(this._api),F(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=j({},t),p.type=h,f.push(p),_){var a=ds(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;yS(n,c,t,u),MS(n)}else g?(yS(n,c,t,`series`),MS(n)):l&&yS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[lS]?(_S(this),bS.update.call(this,e),this[lS]=null):bS[c].call(this,e)}catch(e){throw this[sS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[sS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;G(U(y)),v=M({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},wS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();CS.call(this,n,e)}},TS=function(e){!e&&this.trigger(`updated`)},ES=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[lS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},DS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Tb(n,Od);r&&(hd(r,e,t._api),MS(t))}).on(`mouseout`,function(e){var n=e.target,r=Tb(n,Od);r&&(gd(r,e,t._api),MS(t))}).on(`click`,function(e){var n=e.target,r=Tb(n,function(e){return mu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=mu(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Cn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),F(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}OS=function(e,t,r,i,a){n(t),kS(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive=!1}),AS(e,t,r,i,a),F(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},kS=function(e,t,n,r,i,a){F(a||e._componentsViews,function(e){var i=e.__model;l(i,e),e.render(i,t,n,r),c(i,e),u(i,e)})},AS=function(e,t,n,r,i,a){var d=e._scheduler;i=j(i||{},{updatedSeries:t.getSeries()}),Eb.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),l(t,n),a&&a.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),s(t,n),vd(t)}),d.unfinished=f||d.unfinished,Eb.trigger(`series:layoutlabels`,t,n,i),Eb.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];c(t,n),u(t,n)}),o(e,t),Eb.trigger(`series:afterupdate`,t,n,i)},MS=function(e){e[uS]=!0,e.getZr().wakeUp()},PS=function(e){e[cS]=(e[cS]+1)%1e6},NS=function(e){e[uS]&&(e.getZr().storage.traverse(function(e){op(e)||i(e)}),e[uS]=!1)};function i(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function o(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var o=i>W(t.get(`hoverLayerThreshold`),Sg.hoverLayerThreshold)&&!a.node&&!a.worker;(e._usingTHL||o)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!o)})}}),e._usingTHL=o)}}function s(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function c(e,t){if(!e.preventAutoZ){var n=Zp(e);t.eachRendered(function(e){return $p(e,n.z,n.zlevel),!0})}}function l(e,t){t.eachRendered(function(e){if(!op(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function u(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(op(e))return;if(e instanceof Fl&&Md(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&i(e)}})}jS=function(e){return new(function(t){r(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){rd(t,n),MS(e)},n.prototype.leaveEmphasis=function(t,n){id(t,n),MS(e)},n.prototype.enterBlur=function(t){ad(t),MS(e)},n.prototype.leaveBlur=function(t){od(t),MS(e)},n.prototype.enterSelect=function(t){sd(t),MS(e)},n.prototype.leaveSelect=function(t){cd(t),MS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[cS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Tu))(e)}}(),t}(Xe).prototype;FS.on=fS(`on`),FS.off=fS(`off`),FS.one=function(e,t,n){var r=this;Po(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var IS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function LS(e){process.env.NODE_ENV!==`production`&&No(`Instance `+e+` has been disposed`)}var RS={},zS={},BS={},VS=[],HS=[],US=[],WS={},GS={},KS={},qS={};new Date-0,new Date-0;var JS=`_echarts_instance_`;function YS(e,t){WS[e]=t}function XS(e){N(HS,e)<0&&HS.push(e)}function ZS(e,t){oC(VS,e,t,Jx)}function QS(e){eC(`afterinit`,e)}function $S(e){eC(`afterupdate`,e)}function eC(e,t){Eb.on(e,t)}function tC(e,t,n){var r,i,a,o,s;V(t)&&(n=t,t=``),U(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;RS[r]||(G(dS.test(r)&&dS.test(i)),a&&G(i!==r),RS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},BS[i]=1,a&&s&&(BS[l]=1),process.env.NODE_ENV!==`production`&&zS[l]&&X(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),zS[l]=r)}function nC(e,t){Jh.register(e,t)}function rC(e,t){oC(US,e,t,Xx,`layout`,!0)}function iC(e,t){oC(US,e,t,$x,`visual`,!0)}var aC=[];function oC(e,t,n,r,i,a){if((V(t)||U(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);F(e,function(e){G(e.__raw!==n)})}if(!(N(aC,n)>=0)){aC.push(n);var o=Zy.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&G(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function sC(e,t){GS[e]=t}function cC(e,t,n){var r=kb(`registerMap`);r&&r(e,t,n)}var lC=Dv;iC(Qx,Gy),iC(tS,qy),iC(tS,Jy),iC(Qx,yb),iC(tS,bb),iC(aS,Vx),XS(O_),ZS(Gx,k_),sC(`default`,Xy),tC({type:Nu,event:Nu,update:Nu},Ae),tC({type:Pu,event:Pu,update:Pu},Ae),tC({type:Fu,event:Ru,update:Fu,action:Ae,refineEvent:uC,publishNonRefinedEvent:!0}),tC({type:Iu,event:Ru,update:Iu,action:Ae,refineEvent:uC,publishNonRefinedEvent:!0}),tC({type:Lu,event:Ru,update:Lu,action:Ae,refineEvent:uC,publishNonRefinedEvent:!0});function uC(e,t,n,r){return{eventContent:{selected:yd(n),isFromClick:t.isFromClick||!1}}}YS(`default`,{}),YS(`dark`,hb);function dC(e){return e==null?0:e.length||1}function fC(e){return e}var pC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||fC,this._newKeyGetter=r||fC,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=dC(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=dC(c),d=dC(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=dC(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=dC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),mC=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function hC(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};F(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&G(gu.get(c)==null);var l=n.coordDimIndex;gC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),vC(n.type)&&(a[0]=t),gC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}gu.each(function(e,t){var i=gC(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=I(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new mC(s,t),n}function gC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _C(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function vC(e){return e!==`ordinal`&&e!==`time`}var yC=function(){function e(e){this.otherDims={},e!=null&&j(this,e)}return e}(),bC=cs(),xC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},SC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=TC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return W(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=H_(this.source),n=!EC(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=xC[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function CC(e){return e instanceof SC}function wC(e){for(var t=K(),n=0;n<(e||[]).length;n++){var r=e[n],i=U(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function TC(e){var t=bC(e);return t.dimNameMap||=wC(e.dimensionsDefine)}function EC(e){return e>30}var DC=U,OC=I,kC=typeof Int32Array>`u`?Array:Int32Array,AC=`e\0\0`,jC=-1,MC=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],NC=[`_approximateExtent`],PC,FC,IC,LC,RC,zC,BC,VC=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;CC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=H(u)?new yC({name:u}):u instanceof yC?u:new yC(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),process.env.NODE_ENV!==`production`&&G(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=K();F(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ce(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Bv&&(i=e),!i){var a=this.dimensions,o=N_(e)||P(e)?new Y_(e,a.length):e;i=new Bv;var s=OC(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&BC(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&Wo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=es(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=es(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)BC(this,o);PC(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){DC(e)?j(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=IC(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return FC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return B(e)?r.getValues(OC(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?jC:r},e.prototype.each=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=OC(LC(e),this._getStoreDimIndex,this);this._store.each(i,r?R(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=OC(LC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?R(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=L(e),i=[];return F(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){"use strict";var i=n||r||this,a=OC(LC(e),this._getStoreDimIndex,this),o=zC(this);return o._store=this._store.map(a,i?R(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&F(LC(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=OC(LC(e),this._getStoreDimIndex,this);this._store.modify(o,a?R(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=zC(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=zC(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=zC(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Mm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new pC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return FC(e,t)},function(e){return FC(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},DC(e)?j(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),B(i)?i=i.slice():DC(i)&&(i=j({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,DC(t)?j(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){DC(e)?j(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?j(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){hu(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){F(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:OC(this.dimensions,this._getDimInfo,this),this.hostModel),RC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];V(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(_e(arguments)))})},e.internalField=function(){PC=function(e){var t=e._invertedIndicesMap;F(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new kC(a.categories.length);for(var s=0;s<n.length;s++)n[s]=jC;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},IC=function(e,t,n){return es(e._getCategory(t,n),null)},FC=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=IC(e,e._idDimIdx,t)),n??=AC+t,n},LC=function(e){return B(e)||(e=e==null?[]:[e]),e},zC=function(t){var n=new e(t._schema?t._schema:OC(t.dimensions,t._getDimInfo,t),t.hostModel);return RC(n,t),n},RC=function(e,t){F(MC.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,F(NC,function(n){e[n]=k(t[n])}),e._calculationInfo=j({},t._calculationInfo)},BC=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=IC(e,i,t)),s==null&&a!=null&&(r[t]=s=IC(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function HC(e,t){N_(e)||(e=F_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=UC(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&EC(o),c=r===e.dimensionsDefine,l=c?TC(e):wC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new Nv(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=U(n)?n:{name:n},o=new yC,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Bo(e).slice();if(n.length===1&&!H(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);F(n,function(e,n){var i=H(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;F(n,function(e){var t,n,r,i;if(H(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=j({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Bo(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}F(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(M(o,i),t,a),o.name==null&&n){var s=n[a];!U(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&M(o.otherDims,r)})}});function g(e,t,n){gu.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)F(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=WC(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(kg(e,S)===Cg.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Os(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new SC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function UC(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return F(t,function(e){var t;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function WC(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var GC=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function KC(e){var t=e.get(`coordinateSystem`),n=new GC(t),r=qC[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var qC={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,fs).models[0],a=e.getReferringComponents(`yAxis`,fs).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+he(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+he(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),JC(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),JC(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,fs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),JC(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,fs).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),JC(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),JC(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();F(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),JC(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,fs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function JC(e){return e.get(`type`)===`category`}function YC(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;XC(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(F(a,function(e,t){H(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),F(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;F(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function XC(e){return!CC(e.schema)}function ZC(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function QC(e,t){return ZC(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function $C(e,t){var n=e.get(`coordinateSystem`),r=Jh.get(n),i;return t&&t.coordSysDims&&(i=I(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_C(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function ew(e,t,n){var r,i;return n&&F(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function tw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=F_(e)):(i=r.getSource(),a=i.sourceFormat===_u);var o=KC(t),s=$C(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?z(Eg,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=HC(i,u),f=ew(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=YC(t,{schema:d,store:p}),h=new VC(d,t);h.setCalculationInfo(m);var g=f!=null&&nw(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function nw(e){if(e.sourceFormat===`original`)return!B(Uo(rw(e.data||[])))}function rw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var iw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();qs(iw);var aw=0,ow=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++aw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&I(r,sw);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!H(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=K(this.categories)},e}();function sw(e){return U(e)&&e.value!=null?e.value:e+``}var cw=L({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});function lw(e,t,n){var r;e||={};var i=Zm();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(F(cw,function(t){a[t]&&(e[t]=R(a[t],a))}),r=a)}return r??gw(e,n),{brk:r,mapper:e}}function uw(e,t){F(cw,function(n){e[n]=t[n]})}function dw(e,t){e.freeze=Ae,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function fw(e){return e.getExtentUnsafe(0,2)}function pw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function mw(e){var t=pw(e,3);return t[1]-t[0]}function hw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function gw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():_s(),j(n,_w),n}var _w={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=pw(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){process.env.NODE_ENV!==`production`&&G(!this._frozen),vw(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&G(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),vw(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function vw(e,t,n,r){Cs(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&X(`Invalid setExtent call - start: `+n+`, end: `+r)}function yw(e){return bw(e)||Sw(e)}function bw(e){return e.type===`interval`}function xw(e){return e.type===`time`}function Sw(e){return e.type===`log`}function Cw(e){return e.type===`ordinal`}function ww(e){var t=bo(e),n=Qa(10,t),r=Ya(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,Y(r*n,-t)}function Tw(e){return lo(e)+2}function Ew(e,t){return $a(e)/$a(t)}function Dw(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return Qa(t,e)}function Ow(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Ja(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Ss(r[0])||!Ss(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function kw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Aw(e,t){return e||=t,Ya(J(e,1))}function jw(e,t,n){var r=fw(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Mw=function(e){r(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,uw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new ow({}),B(i)&&(i=new ow({categories:I(i,function(e){return U(e)?e.value:e})})),r._ordinalMeta=i;var a=lw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,dw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:H(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Ya(e),e},t.prototype.getTicks=function(){var e=[];return jw(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=qa(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=fw(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Ya(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(iw);iw.registerClass(Mw);function Nw(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=Tw(f);u<t-1;){var m=Y(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Zm();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Pw=function(e){r(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=lw(r,Qm(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return k(this._cfg)},t.prototype.setConfig=function(e){var t=fw(this);process.env.NODE_ENV!==`production`&&(G(e.interval!=null),e.intervalCount!=null&&G(e.intervalCount>=-1&&e.intervalPrecision!=null&&!eh(this)),e.niceExtent!=null&&(G(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),G(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),G(Y(e.niceExtent[0]-e.niceExtent[1],lo(e.interval))<=e.interval))),this._cfg=e=k(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=Tw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=fw(this),i=t.niceExtent,a=t.intervalPrecision,o=Zm(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;process.env.NODE_ENV!==`production`&&G(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?Y(i[0]-n,a):r[0]});for(var d=function(e,t){return Ya((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=qa(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=Y(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=Y(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return process.env.NODE_ENV!==`production`&&No(`Exceed safe limit in IntervalScale["getTicks"].`),[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?Y(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return Nw(this,e,$m(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=lo(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Lh(Y(e.value,n,!0))},t.type=`interval`,t}(iw);iw.registerClass(Pw);var Fw=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Iw=function(e){r(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=lw(r,Qm(r,n),null).brk,r}return t.prototype.getLabel=function(e){return yh(e.value,uh[vh(gh(this._minLevelUnit))]||uh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return bh(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=fw(this),r=Zm(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Zm().addBreaksToTicks(o,i.breaks,n),o;o=Kw(this._minLevelUnit,this._approxInterval,s,n,hw(this),i);var c=dh.length-1,l=0;return F(o,function(e){e.time&&(c=Math.min(c,N(dh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Zm().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Zm().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(N(dh,xh(e.vmin,s)),N(dh,xh(e.vmax,s))),n=0,r=0;r<dh.length;r++)if(!Rw(dh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:dh[Math.max(i,t)],upperTimeUnit:dh[i]}}),o},t.prototype.getMinorTicks=function(e){return Nw(this,e,$m(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return ce(e)?Math.round(e):+vo(e)},t.type=`time`,t}(iw),Lw=[[`second`,th],[`minute`,nh],[`hour`,rh],[`quarter-day`,rh*6],[`half-day`,rh*12],[`day`,ih*1.2],[`half-week`,ih*3.5],[`week`,ih*7],[`month`,ih*31],[`quarter`,ih*95],[`half-year`,ah/2],[`year`,ah]];function Rw(e,t,n,r){return Sh(new Date(t),e,r).getTime()===Sh(new Date(n),e,r).getTime()}function zw(e,t){return e/=ih,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Bw(e){var t=30*ih;return e/=t,e>6?6:e>3?3:e>2?2:1}function Vw(e){return e/=rh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Hw(e,t){return e/=t?nh:th,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Uw(e){return J(xo(e,!0),1)}function Ww(e,t,n){var r=Math.max(0,N(dh,t)-1);return Sh(new Date(e),dh[r],n).getTime()}function Gw(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function Kw(e,t,n,r,i,a){var o=fh,s=0;function c(e,t,n,i,o,c,l){for(var u=Gw(o,e),d=t,f=new Date(d);d<n&&d<=r[1];){if(l.push({value:d}),s++>3e3){process.env.NODE_ENV!==`production`&&No(`Exceed safe limit in TimeScale["getTicks"].`);break}if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Rw(gh(e),r[0],r[1],n)){s&&(i=[{value:Ww(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/ih/365)),p=Ch(n),m=Ah(n);break;case`half-year`:case`quarter`:case`month`:f=Bw(t),p=wh(n),m=jh(n);break;case`week`:case`half-week`:case`day`:f=zw(t,31),p=Th(n),m=Mh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Vw(t),p=Eh(n),m=Nh(n);break;case`minute`:f=Hw(t,!0),p=Dh(n),m=Ph(n);break;case`second`:f=Hw(t,!1),p=Oh(n),m=Fh(n);break;case`millisecond`:f=Uw(t),p=kh(n),m=Ih(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=gh(o[m]);if(_h(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?gh(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=ie(I(u,function(e){return ie(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=xh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Os(S,ks,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=xh(r[0],n),k=xh(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var qw=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=ih,n[1]+=ih),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-ih}e.setExtent(n[0],n[1]);var i=Aw(t.splitNumber,10),a=hw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Lw.length,l=Math.min(Fw(Lw,a,0,c),c-1),u=Lw[l][1],d=Lw[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};iw.registerClass(Iw);var Jw=0,Yw=1,Xw=2,Zw=function(e){r(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Pw.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[Jw]=i[Yw]=a[Jw]=a[Yw]=NaN,uw(r,t.mapperMethods);var s=Zm(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},Xw,l),r.powStub=new Pw({breakParsed:l.original}),r.intervalStub=new Pw({breakParsed:l.transformed}),dw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Zm(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return I(i.getTicks(e||{}),function(e){var i=e.value,o=Dw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,$m(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return Nw(this,e,$m(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Ew(e,this.base))},scale:function(e){return Dw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Ew(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return Qw.depth=n,$w.lookup=this._lookup,Dw(n===2?e:this.intervalStub.transformOut(e,Qw),this.base,$w)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Cs(t,n)||t<=0||n<=0)){var r=eT,i=eT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[Jw]=t,r[Yw]=n);var o=this.base;this.intervalStub.setExtent2(e,i[Jw]=Ew(t,o),i[Yw]=Ew(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Cs(t[0],t[1])&&Do(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(iw);iw.registerClass(Zw);var Qw={},$w={},eT=[],tT={value:1,category:1,time:1,log:1},nT=cs();function rT(e){var t=e.get(`type`);return(t==null||!ke(tT,t)&&!iw.getClass(t))&&(t=`value`),t}function iT(e,t,n){var r=Zm(),i;switch(r&&(i=hT(e,t,n)),t){case`category`:return new Mw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:_s()});case`time`:return new Iw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new Zw({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Pw({breakOption:i});default:return new((iw.getClass(t))||Pw)({})}}function aT(e,t,n){var r=n?pw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Cs(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function oT(e){nT(e).noOnMyZero=!0}function sT(e){return nT(e).noOnMyZero}function cT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=ph(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(H(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(V(t)){if(e.type===`category`)return function(n,r){return t(lT(e,n),n.value-e.scale.getExtent()[0],null)};var r=Zm();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(lT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function lT(e,t){var n=e.scale;return Cw(n)?n.getLabel(t):t.value}function uT(e){return e.get(`interval`)??`auto`}function dT(e){return e.type===`category`&&uT(e.getLabelModel())===0}function fT(e,t){var n={};return F(e.mapDimensionsAll(t),function(t){n[QC(e,t)]=!0}),L(n)}function pT(e){return e===`middle`||e===`center`}function mT(e){return e.getShallow(`show`)}function hT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!Zm()){process.env.NODE_ENV!==`production`&&X('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!gT(t)){process.env.NODE_ENV!==`production`&&X(`Axis`+(e instanceof pg?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function gT(e){return e!==`category`}function _T(e,t,n,r,i,a){var o=Sw(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=kw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function vT(e,t){return Cw(e)?e.getRawOrdinalNumber(t.value):t.value}function yT(e,t){return Cw(e)&&!!t.get(`boundaryGap`)}var bT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),xT=Es(),ST=cs(),CT=cs(),wT;process.env.NODE_ENV!==`production`&&(wT=function(e){G(e&&e.model&&e.model.uid&&e.model.ecModel)});function TT(e,t){var n=e.model,r=ST(Ib(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function ET(e,t){return process.env.NODE_ENV!==`production`&&(G(t!=null),wT(e)),kT(TT(e,t))}function DT(e,t){process.env.NODE_ENV!==`production`&&wT(e);var n=[];return OT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(kT(e))}),n}function OT(e,t){var n=ST(Ib(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function kT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function AT(e,t){process.env.NODE_ENV!==`production`&&wT(e);var n=e.model.ecModel,r=ST(Ib(n)).axSer;r&&MT(n,r.get(e.model.uid),t)}function jT(e,t,n){process.env.NODE_ENV!==`production`&&(G(t!=null),wT(e));var r=TT(e,t);r&&MT(e.model.ecModel,r.sers,n)}function MT(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function NT(e,t,n){process.env.NODE_ENV!==`production`&&G(t!=null);var r=ST(Ib(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&G(e.sers.length>0),n(e.axis)})}function PT(e,t){process.env.NODE_ENV!==`production`&&wT(e);var n=e.model,r=ST(Ib(n.ecModel)).keys;r&&F(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=TT(e,n);G(r&&r.sers.length>0)}t(n)})}function FT(e){var t=CT(Fb(e)),n=t.keyed||=K();OT(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&<.liPosMinGap(e,t,o)})}function IT(e,t){LT[e]=t}var LT={};function RT(e,t,n){if(e){var r=t.ecModel,i=ST(Ib(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){wT(e);var o=i.axSerPairCheck||=K(),s=``+a+`|&`+t.uid;G(!o.get(s)),o.set(s,1)}var c=i.axSer||=K(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&G(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=HT.get(zT(d,f,n))||HT.get(zT(d,f,null));if(p){var m=i.keyed||=K(),h=i.keys||=K(),g=p.key,_=m.get(g)||m.set(g,K()),v=_.get(a);v||(v=_.set(a,{axis:e,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(e),(h.get(a)||h.set(a,[])).push(g)),v.sers.push(t),v.serByIdx[t.seriesIndex]=t}}}function zT(e,t,n){return e+`|&`+W(t,!0)+`|&`+(n||``)}function BT(e,t){var n=zT(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(G(t.seriesType&&t.key&&!VT.get(t.key)&&!HT.get(n)),VT.set(t.key,1)),HT.set(n,t),xT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:FT})})}var VT;process.env.NODE_ENV!==`production`&&(VT=K());var HT=K(),UT=cs(),WT=3,GT=function(){function e(e,t,n,r,i){var a=Cw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(bw(e)||Sw(e)||xw(e))&&(ys(l,qT(e,t.get(`dataMin`,!0))),bs(l,qT(e,t.get(`dataMax`,!0)))),ws(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=qT(e,V(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=qT(e,V(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=JT(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!Ss(u[0])&&(u[0]=NaN),!Ss(u[1])&&(u[1]=NaN);var g=s||me(u[0])||me(u[1])||a&&!o,_=bw(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=qT(e,t.get(`startValue`,!0)),x=b!=null;!Do(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Do(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),KT(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),KT(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function KT(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),Ts(t))}function qT(e,t){return t==null?null:me(t)?NaN:e.parse(t)}function JT(e,t){var n;if(Cw(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(process.env.NODE_ENV!==`production`&&r===!0&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.`),r=null),n=B(r)?r:[r,r]}return[YT(n[0]),YT(n[1])]}function YT(e){return ma(typeof e==`boolean`?0:e,1)||0}function XT(e){var t=UT(e.scale);return t.extent||=_s(),t}function ZT(e,t){XT(e).dimIdxInCoord=t.get(e.dim)}function QT(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&G(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&G(n.rawExtentInfo.from!==t||t===2);return}$T(n,e,i,r,t)}function $T(e,t,n,r,i){var a=XT(t),o=a.extent,s=!1;AT(t,function(r){if(r.boxCoordinateSystem){var i=Zh(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&X(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(B(i)){var l=i[c];l!=null&&!B(l)&&vs(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;F(fT(u,n),function(e){xs(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=aE(e,t,r);tE(e,new GT(e,r,o,s,c),i),a.extent=null}function eE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&G(!n.rawExtentInfo),tE(n,new GT(n,e.model,t,!1,!1),WT)}function tE(e,t,n){e.rawExtentInfo=t,t.from=n}function nE(e,t){process.env.NODE_ENV!==`production`&&G(!rE.get(e)),rE.set(e,t)}var rE=K();function iE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(!i||!e.rawExtentInfo),e.rawExtentInfo||eE({scale:e,model:t},i||_s());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function aE(e,t,n){var r=yT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return PT(t,function(e){a=!!rE.get(e)||a}),a}function oE(e,t,n,r){if(n.ctnShp){var i;if(PT(e,function(t){var n=rE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],ys(i,a[0]),bs(i,a[1]),oT(e))}}),i){var a=t.getExtent();if(Cw(t))e.onBand||t.setExtent2(1,qa(a[0],a[0]+i[0]),J(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=qa(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=J(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function sE(e,t){var n=Sw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Ow(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?lE(r,t):cE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=Tw(d)),i[0]||(s[0]=Y(Xa(s[0]/u)*u,l)),i[1]||(s[1]=Y(Za(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),_T(e,i,o,s,a,c)}function cE(e,t){var n=Aw(t.splitNumber,5),r=hw(e);process.env.NODE_ENV!==`production`&&G(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=xo(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=Tw(o),c=e.getExtent(),l=[Y(Za(c[0]/o)*o,s),Y(Xa(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function lE(e,t){var n=Aw(t.splitNumber,10),r=e.getExtent(),i=hw(e);process.env.NODE_ENV!==`production`&&G(isFinite(i)&&i>0);var a=J(yo(i),1);n/i*a<=.5&&(a*=10);var o=Tw(a),s=[Y(Za(r[0]/a)*a,o),Y(Xa(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function uE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&G(r&&i),dE(t,n,r,i,null)}function dE(e,t,n,r,i){var a=iE(e,t,r,n,i),o=bw(e)||xw(e);fE(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&oE(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function fE(e,t){pE[e.type](e,t)}var pE={interval:sE,log:sE,time:qw,ordinal:Ae},mE=[],hE={registerPreprocessor:XS,registerProcessor:ZS,registerPostInit:QS,registerPostUpdate:$S,registerUpdateLifecycle:eC,registerAction:tC,registerCoordinateSystem:nC,registerLayout:rC,registerVisual:iC,registerTransform:lC,registerLoading:sC,registerMap:cC,registerImpl:Ob,PRIORITY:oS,ComponentModel:pg,ComponentView:wy,SeriesModel:hy,ChartView:Oy,registerComponentModel:function(e){pg.registerClass(e)},registerComponentView:function(e){wy.registerClass(e)},registerSeriesModel:function(e){hy.registerClass(e)},registerChartView:function(e){Oy.registerClass(e)},registerCustomSeries:function(e,t){jb(e,t)},registerSubTypeDefaulter:function(e,t){pg.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ba(e,t)}};function gE(e){if(B(e)){F(e,function(e){gE(e)});return}N(mE,e)>=0||(mE.push(e),V(e)&&(e={install:e}),e.install(hE))}var _E=cs(),vE=cs(),yE={estimate:1,determine:2};function bE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function xE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:I(CE(n,r),function(t,n){return{formattedLabel:cT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?wE(e,t):DE(e)}function SE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:CE(i,r)}:e.type===`category`?EE(e,t):{ticks:r.getTicks(n)}}function CE(e,t){var n=t.getExtent(),r=[];return F(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Os(r,As,null),co(r),I(r,function(e){return{value:e}})}function wE(e,t){var n=e.getLabelModel(),r=TE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function TE(e,t,n){var r=kE(e),i=uT(t),a=n.kind===yE.estimate;if(!a){var o=jE(r,i);if(o)return o}var s,c;V(i)?s=RE(e,i,!1):(c=i===`auto`?NE(e,n):i,s=RE(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return ME(r,i,l),!0}):ME(r,i,l),l}function EE(e,t){var n=OE(e),r=uT(t),i=jE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=RE(e,r,!0);else if(r===`auto`){var s=TE(e,e.getLabelModel(),bE(yE.determine));o=s.labelCategoryInterval,a=I(s.labels,function(e){return e.tick})}else o=r,a=RE(e,o,!0);return ME(n,r,{ticks:a,tickCategoryInterval:o})}function DE(e){var t=e.scale.getTicks(),n=cT(e);return{labels:I(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var OE=AE(`axisTick`),kE=AE(`axisLabel`);function AE(e){return function(t){return vE(t)[e]||(vE(t)[e]={list:[]})}}function jE(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function ME(e,t,n){return e.list.push({key:t,value:n}),n}function NE(e,t){if(t.kind===yE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return vE(e).autoInterval=n,!0}),n}return vE(e).autoInterval??(vE(e).autoInterval=e.calculateCategoryInterval(t))}function PE(e,t){var n=t.kind,r=LE(e),i=cT(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=ua(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===yE.estimate?(t.out.noPxChangeTryDetermine.push(R(FE,null,e,S,c)),S):IE(e,S,c)??S}function FE(e,t,n){return IE(e,t,n)==null}function IE(e,t,n){var r=_E(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function LE(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function RE(e,t,n){var r=cT(e),i=e.scale,a=[],o=V(t);return jw(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var zE=.8;function BE(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=mw(r);Do(o)||(o=NaN);var s=e.getExtent(),c=Ja(s[1]-s[0]);return Cw(r)?VE(n,e,o,c):i?HE(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&G(!1),a!=null&&(n.w=Do(n.w)?J(a,n.w):a),n}function VE(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function HE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(i);var a=!1,o=-1/0;F(i.key?[ET(t,i.key)]:DT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Do(n)&&n>0&&Do(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*zE,e.w2=e.w*n/r)}var UE=[0,1],WE=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ro(e,UE,GE(this),t)},e.prototype.coordToData=function(e,t){var n=ro(e,GE(this),UE,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=I(SE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(vT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=KE(this,n,r);return I(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Cw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),I(this.scale.getMinorTicks(e),function(e){return I(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=bE(yE.determine),xE(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return BE(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=bE(yE.determine),PE(this,e)},e}();function GE(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function KE(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=BE(e).w;if(!i)return!1;F(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var qE=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],JE=1,YE=2,XE=JE|YE;function ZE(e,t,n){n||=XE,t?e.dirty|=n:e.dirty&=~n}function QE(e,t){return t||=XE,e.dirty==null||!!(e.dirty&t)}function $E(e){if(e)return QE(e)&&eD(e,e.label,e),e}function eD(e,t,n){var r=t.getComputedTransform();e.transform=Xp(e.transform,r);var i=e.localRect=Yp(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=xm.textMargin);for(var d=0;d<4;d++)tD[d]=u===xm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===xm.textMargin&&Vp(i,tD,!1,!1);var f=e.rect=Yp(e.rect,i);return r&&f.applyTransform(r),u===xm.minMargin&&Vp(f,tD,!1,!1),e.axisAligned=qp(r),(e.label=e.label||{}).ignore=t.ignore,ZE(e,!1),ZE(e,!0,YE),e}var tD=[0,0,0,0];function nD(e,t,n){return e.transform=Xp(e.transform,n),e.localRect=Yp(e.localRect,t),e.rect=Yp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=qp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function rD(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function iD(e,t){for(var n=0;n<qE.length;n++){var r=qE[n];e[r]??(e[r]=t[r])}return $E(e)}function aD(e){var t=e.obb;return(!t||QE(e,YE))&&(e.obb=t||=new Qf,t.fromBoundingRect(e.localRect,e.transform),ZE(e,!1,YE)),t}function oD(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=$E(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(sD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function sD(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:aD(e).intersect(aD(t),n,r)}var cD={left:0,right:0,top:0,bottom:0},lD=[`25%`,`25%`],uD=`cartesian2d`,dD=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=ug(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&lg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&lg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:cD,outerBoundsContain:`all`,outerBoundsClampWidth:lD[0],outerBoundsClampHeight:lD[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(pg),fD=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,fs).models[0]},t.type=`cartesian2dAxis`,t}(pg);ne(fD,bT);var pD={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},mD=A({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},pD),hD=A({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},pD),gD={category:mD,value:hD,time:A({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},hD),log:M({logBase:10},hD)},_D=null;function vD(){return _D}function yD(e,t,n,i){F(tT,function(a,o){var s=A(A({},gD[o],!0),i,!0),c=function(e){r(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+o,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=cg(this),r=n?ug(e):{};A(e,t.getTheme().get(o+`Axis`)),A(e,this.getDefaultOption()),e.type=bD(e),n&&lg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=ow.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=vD();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+o,n.defaultOption=s,n}(n);e.registerComponentModel(c)}),e.registerSubTypeDefaulter(t+`Axis`,bD)}function bD(e){return e.type||(e.data?`category`:`value`)}var xD=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return I(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ie(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),SD=[`x`,`y`];function CD(e){return(e.type===`interval`||e.type===`time`)&&!eh(e)}var wD=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=uD,t.dimensions=SD,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!CD(e)||!CD(t))){var n=pw(e,null),r=pw(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Nt([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new q(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Ge(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Ge(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new q(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(xD),TD=function(e){r(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(WE),ED=`expandAxisBreak`,DD=Math.PI,OD=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],kD=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],AD=cs(),jD=cs(),MD=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function ND(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=rO(e.axisName)&&pT(e.nameLocation);F(r,function(e){var t=$E(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Nt(PD,n.transform):Dt(PD),t.transform&&kt(PD,PD,t.transform),q.copy(FD,t.localRect),FD.applyTransform(PD),s?s.union(FD):q.copy(s=new q(0,0,0,0),FD))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new q(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var PD=Et(),FD=new q(0,0,0,0),ID=function(e,t,n,r,i,a){if(pT(e.nameLocation)){var o=a.stOccupiedRect;o&&LD(nD({},o,a.transGroup.transform),r,i)}else RD(a.labelInfoList,a.dirVec,r,i)};function LD(e,t,n){var r=new Pt;sD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&rD(t,r)}function RD(e,t,n,r){for(var i=Pt.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||LD(s,n,r)}}var zD=function(){function e(e,t,n,r){this.group=new Na,this._axisModel=e,this._api=t,this._local={},this._shared=r||new MD(ID),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;G(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=W(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=W(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:W(e.nameDirection,1),tickDirection:W(e.tickDirection,1),labelDirection:W(e.labelDirection,1),labelOffset:W(e.labelOffset,0),silent:W(e.silent,!0),axisName:r,nameLocation:ge(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:rO(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(G(a.position!=null),G(a.rotation!=null)),this._cfg=a;var o=new Na({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new Pt(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},F(BD,function(r){e[r]&&VD[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=ho(t-e),i,a;return go(r)?(a=n>0?`top`:`bottom`,i=`center`):go(r-DD)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<DD?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),BD=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],VD={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;G(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(Ge(d,d,u),Ge(f,f,u));var m=j({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&eh(r.axis.scale))vD().buildAxisBreakLine(r,i,a,h);else{var g=new Nf(j({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Tp(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);H(_)&&(_=[_,_]),(H(v)||ce(v))&&(v=[v,v]);var y=qb(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];F([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=Kb(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;G(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}XD(t,i,s)&&HD(e,t,n,r,i,a,o,yE.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}XD(t,i,s)&&HD(e,t,n,r,i,a,o,yE.determine);var l=JD(e,i,a,r);GD(e,t.labelLayoutList,l),YD(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;G(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(rO(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new Pt(0,0),v=new Pt(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=Et();v.transform(jt(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*DD/180);var x,S;pT(d)?x=zD.innerTextLayout(e.rotation,b??e.rotation,f):(x=UD(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=he(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new eu({x:_.x,y:_.y,rotation:x.rotation,silent:zD.isLabelSilent(r),style:um(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(Wp({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=zD.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,mu(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=$E({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:pT(d)?OD[D]:kD[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&G(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function HD(e,t,n,r,i,a,o,s){QD(t)||ZD(e,t,i,s,r,o);var c=t.labelLayoutList;eO(e,r,c,a),aO(r,e.rotation,c);var l=e.optionHideOverlap;WD(r,c,l),l&&oD(ie(c,function(e){return e&&!e.label.ignore})),ND(e,n,r,c)}function UD(e,t,n,r){var i=ho(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return go(i-DD/2)?(o=c?`bottom`:`top`,a=`center`):go(i-DD*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<DD*1.5&&i>DD/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function WD(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(dT(r))return;function a(e,a,o){var s=$E(t[a]),c=$E(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=AD(s.label).labelInfo.tick;if(xw(l)&&u.notNice||Cw(l)&&u.offInterval){KD(s.label);return}}if(e===!1||s.suggestIgnore){KD(s.label);return}if(c.suggestIgnore){KD(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=iD({marginForce:f},s),c=iD({marginForce:f},c)}sD(s,c,null,{touchThreshold:d})&&KD(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function GD(e,t,n){e.showMinorTicks||F(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=jD(r),a=AD(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){KD(r);return}}})}function KD(e){e&&(e.ignore=!0)}function qD(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Ge(o,o,t),Ge(s,s,t));var u=new Nf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Tp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=jD(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function JD(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=qD(i.getTicksCoords(),n.transform,c,M(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function YD(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=M(c.getLineStyle(),M(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=qD(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function XD(e,t,n){if(QD(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&G(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),$D(e,null,null,null))}return!0}function ZD(e,t,n,r,i,a){var o=i.axis,s=he(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Na;n.add(c);var l=bE(r);if(!s||o.scale.isBlank()){$D(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(he(e.raw.labelRotate,u.get(`rotate`))||0)*DD/180,p=zD.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;F(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=vT(o.scale,n);if(m&&m[f]){var y=m[f];U(y)&&y.textStyle&&(l=new Mm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=W(l.getShallow(`alignMinLabel`,!0),x),C=W(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=W(l.getShallow(`verticalAlignMinLabel`,!0),w),E=W(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new eu({x:0,y:0,rotation:0,silent:zD.isLabelSilent(i),z2:D,style:um(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:V(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=AD(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Wp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=zD.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),mu(O).eventData=A,j&&iO(i,a,O,j)}h.push(O),c.add(O)}),$D(t,I(h,function(e){return{label:e,priority:AD(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function QD(e){return!!e.labelLayoutList}function $D(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function eO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);F(n,function(n,a){var o=$E(n);if(o){var s=o.label,c=AD(s);o.suggestIgnore=s.ignore,s.ignore=!1,ta(tO,nO);var l=t.axis;tO.x=l.dataToCoord(vT(l.scale,c.labelInfo.tick)),tO.y=e.labelOffset+e.labelDirection*i,tO.rotation=c.layoutRotation,r.add(tO),tO.updateTransform(),r.remove(tO),tO.decomposeTransform(),ta(s,tO),s.markRedraw(),ZE(o,!0),$E(o)}})}var tO=new Yl,nO=new Yl;function rO(e){return!!e}function iO(e,t,n,r){n.on(`click`,function(n){var i={type:ED,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function aO(e,t,n){var r=Zm();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&AD(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&F(i,function(r){vD().adjustBreakLabelPair(e.axis.inverse,t,[$E(n[r[0]]),$E(n[r[1]])])})}}function oO(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),he(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function sO(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function cO(e){var t={xAxisModel:null,yAxisModel:null};return F(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,fs).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+ge(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function lO(e,t,n,r,i,a){for(var o=oO(e,n),s=!1,c=!1,l=0;l<t.length;l++)yw(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new zD(n,r,o,i)}function uO(e,t,n){var r=oO(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();F(L(r),function(e){e!==`position`&&e!==`labelOffset`&&G(r[e]===i[e])})}e.updateCfg(r)}function dO(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&G(n&&r&&(n instanceof Pw||n instanceof Zw)&&(t instanceof Pw||t instanceof Zw));var i=iE(n,r,r.ecModel,e,null),a=Sw(n),o=Sw(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1;process.env.NODE_ENV!==`production`&&(G(!eh(t)&&!eh(n)),G(d>0),G(u.length===l.length),G(l[0].value<=l[d].value),G(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(G(u[1].value===l[1].value),G(u[d-1].value===l[d-1].value)));var f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Ja(l[0].value-l[1].value),g=Ja(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}process.env.NODE_ENV!==`production`&&G(m>=1);var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Ow(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*J(c,2):ww(E),D=Tw(E);process.env.NODE_ENV!==`production`&&n>=t&&No("incorrect impl in `scaleCalcAlign`.")}function j(){w=Y(k-E*f,D)}function ee(){T=Y(O+E*p,D)}function M(){k=f?Y(w+E*f,D):w}function N(){O=p?Y(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var te=e.getExtent(),ne=Ja(te[1]-te[0]);D=fo([T,w],ne,.5/m),M(),N(),Do(D)&&(E=Y(E,D))}else{var P=C[1]-C[0];E=a?J(yo(P),1):xo(P/m,2),D=Tw(E),b[0]?(w=C[0],A(function(){if(M(),O=Y(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=Y(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=Y(Za(C[0]/E)*E,D),O=Y(Xa(C[1]/E)*E,D);var e=Ya((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Xa(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=Y(k-E*n[0],D),O=Y(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}_T(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var fO=[[3,1],[0,2]],pO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SD,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;F(this._axesList,function(e){QT(e,1);var t=e.scale;Cw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=L(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):uE(i)}F(n,function(e){vO(e,e.__alignTo)?uE(e):dO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};F(n.x,function(e){hO(n,`y`,e,i)}),F(n.y,function(e){hO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=sg(e,t),i=this._rect=ag(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(bO(a,i),!n){var c=wO(i,o,a,s,t),l=void 0;if(s)SO?(SO(this._axesList,i),bO(a,i)):(process.env.NODE_ENV!==`production`&&Mo("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=CO(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=EO(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=CO(d,f,p,i,a,c,r))}TO(i,a,yE.determine,null,l,r),F(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,fs).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,fs).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,N(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,F(o.x,function(t,n){F(o.y,function(i,a){var o=`x`+n+`y`+a,s=new wD(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),_O(o.x),_O(o.y);function c(t){return function(n,r){if(mO(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=rT(n),u=new TD(t,iT(n,l,!0),[0,0],l,c);u.onBand=yT(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return F(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);N(t,i)<0&&t.push(i),N(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),F(o._axesList,function(t){ZT(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;$h({targetModel:e,coordSysType:uD,coordSysProvider:r});function r(){var r=cO(e),i=r.xAxisModel,a=r.yAxisModel;t=i.axis,n=a.axis;var o=i.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`Grid "`+ge(i.get(`gridIndex`),i.get(`gridId`),0)+`" not found`);if(i.getCoordSysModel()!==a.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return o.coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(RT(t,e,uD),RT(n,e,uD))},this),r},e.dimensions=SD,e.dimIdxMap=wC(SD),e}();function mO(e,t){return e.getCoordSysModel()===t}function hO(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)gO(s,i[c])&&(a=i[c]);else for(var l in i)if(ke(i,l)&&gO(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function gO(e,t){if(!t)return!1;var n=t.scale,r=aT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&sT(t)&&(i=!1),i}function _O(e){for(var t=L(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];yw(a.scale)&&hT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&F(r,function(e){e.__alignTo=n})}function vO(e,t){return eh(e.scale)||eh(t.scale)||t.scale.getTicks().length<2}function yO(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function bO(e,t){F(e.x,function(e){return xO(e,t.x,t.width)}),F(e.y,function(e){return xO(e,t.y,t.height)})}function xO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),yO(e,t)}var SO;function CO(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&G(t===`all`||t===`axisLabel`),TO(r,i,yE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ae(s,function(e){return e>0})==null;return Vp(r,s,!0,!0,n),bO(i,r),c;function l(e){F(i[pp[e]],function(t){if(mT(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(vT(t.scale,AD(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=pT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[pp[n]]-t[pp[n]],a=t[mp[n]]+t[pp[n]]-(e[mp[n]]+e[pp[n]]);i=d(i,1-r),a=d(a,r);var o=fO[n][0],c=fO[n][1];s[o]=J(s[o],i),s[c]=J(s[c],a)}function d(e,t){return e>0&&!me(t)&&t>1e-4&&(e/=t),e}}function wO(e,t,n,r,i){var a=new MD(DO);return F(n,function(n){return F(n,function(n){if(mT(n.model)){var o=!r;n.axisBuilder=lO(e,t,n.model,i,a,o)}})}),a}function TO(e,t,n,r,i,a){var o=n===yE.determine;F(t,function(t){return F(t,function(t){mT(t.model)&&(uO(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[pp[1-t]]=e[mp[t]]<=a.refContainer[mp[t]]*.5?0:1-t==1?2:1}F(t,function(e,t){return F(e,function(e){mT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function EO(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=ag(e.get(`outerBounds`,!0)||cD,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&X(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:N([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&X(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[oo(W(e.get(`outerBoundsClampWidth`,!0),lD[0]),t.width),oo(W(e.get(`outerBoundsClampHeight`,!0),lD[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var DO=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;ID(e,t,n,r,i,a),pT(e.nameLocation)||F(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&RD(e.labelInfoList,e.dirVec,r,i)})};function OO(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return kO(n,e,t),n.seriesInvolved&&jO(n,e),n}function kO(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];F(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=RO(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(F(n.getAxes(),z(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&F(f.baseAxes,z(p,!d||`cross`,u)),d&&F(f.otherAxes,z(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!LO(d))){s??=d.get(`triggerTooltip`),d=r?AO(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=RO(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:LO(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=MO(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function AO(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};F(s,function(e){c[e]=k(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&M(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Mm(c,n,r))}function jO(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||F(e.coordSysAxesInfo[RO(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function MO(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(NO(a[r+`AxisId`],n.id)||NO(a[r+`AxisIndex`],n.componentIndex)||NO(a[r+`AxisName`],n.name))return i}}function NO(e,t){return e===`all`||B(e)&&N(e,t)>=0||e===t}function PO(e){var t=FO(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=LO(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function FO(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[RO(e)]}function IO(e){var t=FO(e);return t&&t.axisPointerModel}function LO(e){return!!e.get([`handle`,`show`])}function RO(e){return e.type+`||`+e.id}var zO={},BO=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&PO(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=IO(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(process.env.NODE_ENV!==`production`&&zO[e])throw Error(`axisPointer `+e+` exists`);zO[e]=t},t.getAxisPointerClass=function(e){return e&&zO[e]},t.type=`axis`,t}(wy),VO=cs();function HO(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=VO(e).splitAreaColors,f=K(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=B(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new Yl({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:M({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}VO(e).splitAreaColors=f}}}function UO(e){VO(e).splitAreaColors=null}var WO=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],GO=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Na,this.group.add(this._axisGroup),mT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),F(WO,function(e){t.get([e,`show`])&&KO[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Np(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){UO(this)},t.type=`cartesianAxis`,t}(BO),KO={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=B(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Nf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:M({stroke:c[x]},_),silent:!0});Tp(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Nf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Tp(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){HO(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=vD(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},qO=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(GO),JO=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=qO.type,t}return t.type=`yAxis`,t}(GO),YO=function(e){r(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new Yl({shape:e.coordinateSystem.getRect(),style:M({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(wy),XO={offset:0};function ZO(e){e.registerComponentView(YO),e.registerComponentModel(dD),e.registerCoordinateSystem(`cartesian2d`,pO),yD(e,`x`,fD,XO),yD(e,`y`,fD,XO),e.registerComponentView(qO),e.registerComponentView(JO),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var QO=cs(),$O=k,ek=R,tk=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Na,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=z(nk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}ok(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&BE(r).w>o)return!0;if(a){var s=FO(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=QO(e).pointerEl=new dp[i.type]($O(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=QO(e).labelEl=new eu($O(t.label));e.add(i),ik(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=QO(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=QO(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ik(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Ip(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){xt(e.event)},onmousedown:ek(this._onHandleDragMove,this,0,0),drift:ek(this._onHandleDragMove,this),ondragend:ek(this._onHandleDragEnd,this)}),n.add(r)),ok(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);B(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ry(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){nk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,ak(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(ak(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(ak(r)),QO(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),zy(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function nk(e,t,n,r){rk(QO(n).lastProp,r)||(QO(n).lastProp=r,t?ip(n,r,e):(n.stopAnimation(),n.attr(r)))}function rk(e,t){if(U(e)&&U(t)){var n=!0;return F(t,function(t,r){n&&=rk(e[r],t)}),!!n}return e===t}function ik(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function ak(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ok(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function sk(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function ck(e,t,n,r,i){var a=uk(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=zh(o.get(`padding`)||0),c=o.getFont(),l=ua(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),lk(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:um(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function lk(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function uk(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:lT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};F(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function dk(e,t,n){var r=Et();return jt(r,r,n.rotation),At(r,r,n.position),kp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function fk(e,t,n,r,i,a){var o=zD.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),ck(t,r,i,a,{position:dk(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function pk(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function mk(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function hk(e,t,n){return BE(e,{fromStat:{sers:I(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function gk(e,t,n){return[J(qa(t[0],t[1]),e-n/2),qa(e+n/2,J(t[0],t[1]))]}var _k=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=vk(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=sk(r),f=yk[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}fk(t,e,oO(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=oO(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=dk(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=vk(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=qa(o[1],l[c]),l[c]=J(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(tk);function vk(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var yk={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:pk([t,r[0]],[t,r[1]],bk(e))}},shadow:function(e,t,n,r,i,a){var o=hk(e,i,a),s=r[1]-r[0],c=gk(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:mk([l,r[0]],[u-l,s],bk(e))}}};function bk(e){return e.dim===`x`?0:1}var xk=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(pg),Sk=cs(),Ck=F;function wk(e,t,n){if(!a.node){var r=t.getZr();Sk(r).records||(Sk(r).records={}),Tk(r,t);var i=Sk(r).records[e]||(Sk(r).records[e]={});i.handler=n}}function Tk(e,t){if(Sk(e).initialized)return;Sk(e).initialized=!0,n(`click`,z(Ok,`click`)),n(`mousemove`,z(Ok,`mousemove`)),n(`mousewheel`,z(Ok,`mousewheel`)),n(`globalout`,Dk);function n(n,r){e.on(n,function(n){var i=kk(t);Ck(Sk(e).records,function(e){e&&r(e,n,i.dispatchAction)}),Ek(i.pendings,t)})}}function Ek(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Dk(e,t,n){e.handler(`leave`,null,n)}function Ok(e,t,n,r){t.handler(e,n,r)}function kk(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Ak(e,t){if(!a.node){var n=t.getZr();(Sk(n).records||{})[e]&&(Sk(n).records[e]=null)}}var jk=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;wk(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){Ak(`axisPointer`,t)},t.prototype.dispose=function(e,t){Ak(`axisPointer`,t)},t.type=`axisPointer`,t}(wy);function Mk(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ss(a,e);if(o==null||o<0||B(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(I(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var Nk=cs();function Pk(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||R(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){Wk(i)&&(i=Mk({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=Wk(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||Wk(i),f={},p={},m={list:[],map:{}},h={showPointer:z(Lk,p),showTooltip:z(Rk,m)};F(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);F(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=Hk(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&Fk(e,o,h,!1,f)}})});var g={};return F(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&F(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,Uk(t),Uk(e)))),g[e.key]=a}})}),F(g,function(e,t){Fk(u[t],e,h,!0,f)}),zk(p,u,f),Bk(m,i,e,o),Vk(u,o,n),f}}function Fk(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=Ik(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function Ik(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return F(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Do(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),F(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function Lk(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Rk(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=RO(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function zk(e,t,n){var r=n.axesInfo=[];F(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function Bk(e,t,n,r){if(Wk(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Vk(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=Nk(r)[i]||{},o=Nk(r)[i]={};F(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&F(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}F(a,function(e,t){!o[t]&&c.push(l(e))}),F(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function Hk(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function Uk(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function Wk(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Gk(e){BO.registerAxisPointerClass(`CartesianAxisPointer`,_k),e.registerComponentModel(xk),e.registerComponentView(jk),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!B(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=OO(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Pk)}function Kk(e){gE(ZO),gE(Gk)}var qk=typeof Float32Array<`u`?Float32Array:void 0,Jk=typeof Float64Array<`u`?Float64Array:void 0;function Yk(e){return Xk({ctor:qk},e).arr}function Xk(e,t){process.env.NODE_ENV!==`production`&&G(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>mo&&(t=mo),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch(e){process.env.NODE_ENV!==`production`&&X(e)}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function Zk(){IT(`liPosMinGap`,Qk)}function Qk(e,t,n){var r=K(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=vv(u);function f(n){MT(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}Xk($k,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||yv(d,a))&&(l&&(a=c.transformIn(a,null)),$k.arr[m++]=a)}});var h=$k.typed?$k.arr.subarray(0,m):($k.arr.length=m,$k.arr);$k.typed?h.sort():co(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Do(g)?g:m>0?-2:-1,n.serUids=r}var $k=Xk({ctor:Jk},50);function eA(e){return function(t,n){var r=BE(t,{fromStat:{key:e}});if(Do(r.w2))return[-r.w2/2,r.w2/2]}}function tA(e,t){return e+`|&`+t}function nA(e){return Zk(),{liPosMinGap:!Cw(e.scale)}}function rA(e,t,n,r){BT(e,{key:t,seriesType:n,coordSysType:r,getMetrics:nA})}function iA(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&G(Do(t)),t}var aA=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.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:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(pg);function oA(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function sA(e){if(a.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var cA=sA([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),lA=sA([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function uA(e,t){if(!e)return t;t=Rh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function dA(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var fA=uA(lA,`transition`),pA=uA(cA,`transform`),mA=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(a.transform3dSupported?`will-change:transform;`:``);function hA(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function gA(e,t,n){if(!H(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Gh(t);var a=hA(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=pA+`:`,l;N([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function _A(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,o=``;return n&&(i=` `+e/2+`s `+r,o=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,o+=(o.length?`,`:``)+(a.transformSupported?``+pA+i:`,left`+i+`,top`+i)),fA+`:`+o}function vA(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!a.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var o=a.transform3dSupported,s=`translate`+(o?`3d`:``)+`(`+r+`,`+i+(o?`,0`:``)+`)`;return n?`top:0;left:0;`+pA+`:`+s+`;`:[[`top`,0],[`left`,0],[cA,s]]}function yA(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=W(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),F([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function bA(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=ly(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(_A(a,n,r)),o&&i.push(`background-color:`+o),F([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Rh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(yA(d)),f!=null&&i.push(`padding:`+zh(f).join(`px `)+`px`),i.join(`;`)+`;`}function xA(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&nt(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var SA=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,a.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(H(i)?document.querySelector(i):de(i)?i:V(i)&&i(e.getDom()));xA(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!s._enterable){var t=r.handler;_t(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=dA(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=mA+bA(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+vA(i[0],i[1],!0)+(`border-color:`+Gh(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(H(i)&&n.get(`trigger`)===`item`&&!oA(n)&&(o=gA(n,r,i)),H(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,B(e)||(e=[e]);for(var s=0;s<e.length;s++)de(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(xA(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;F(vA(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,a.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;rt(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),CA=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),EA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;U(e)&&Lo(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new eu({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:ly(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),F([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),F([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=TA(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;EA(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=wA(i.borderWidth||0),o=TA(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(R(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function wA(e){return Math.max(0,e)}function TA(e){var t=wA(e.shadowBlur||0),n=wA(e.shadowOffsetX||0),r=wA(e.shadowOffsetY||0);return{left:wA(t-n),right:wA(t+n),top:wA(t-r),bottom:wA(t+r)}}function EA(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var DA=new Yl({shape:{x:-1,y:-1,width:2,height:2}}),OA=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(a.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=gs(n.get(`renderMode`));this._tooltipContent=r===`richText`?new CA(t):new SA(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(a.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Ry(this,`_updatePosition`,50,`fixRate`):zy(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);wk(`itemTooltip`,this._api,R(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||a.node||!n.getDom())){var i=AA(r,n);this._ticket=``;var o=r.dataByCoordSys,s=FA(r,t,n);if(s){var c=s.el.getBoundingRect().clone();c.applyTransform(s.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:s.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var l=DA;l.x=r.x,l.y=r.y,l.update(),mu(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=Mk(r,t),d=u.point[0],f=u.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:u.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(AA(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&kA([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(mu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Tb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(mu(e).dataIndex==null?mu(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=R(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=kA([t.tooltipOption],r),o=this._renderMode,s=[],c=Yv(`section`,{blocks:[],noHeader:!0}),l=[],u=new uy;F(e,function(e){F(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=uk(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Yv(`section`,{header:f,noHeader:!ye(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),F(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=lT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Gh(m.color),o);var h=dv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=kA([a],r).get(`valueFormatter`);p.blocks.push(_?j({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=ty(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
20
|
+
`];function ey(e,t){return t.type=e,t}function ty(e){return e.type===`section`}function ny(e){return ty(e)?iy:ay}function ry(e){if(ty(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=ry(e);n>=t&&(t=n+ +(r&&(!n||ty(e)&&!e.noHeader)))}),t}return 0}function iy(e,t,n,r){var i=t.noHeader,a=sy(ry(t)),o=[],s=t.blocks||[];q(!s||H(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(je(l,c)){var u=new Sv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}L(s,function(n,i){var s=t.valueFormatter,c=ny(n)(s?P(P({},e),{valueFormatter:s}):e,n,i>0?a.html:0,r);c!=null&&o.push(c)});var d=e.renderMode===`richText`?o.join(a.richText):cy(r,o.join(``),i?n:a.html);if(i)return d;var f=Gh(t.header,`ordinal`,e.useUTC),p=Zv(r,e.renderMode).nameStyle,m=Xv(r);return e.renderMode===`richText`?dy(e,f,p)+a.richText+d:cy(r,`<div style="`+p+`;`+m+`;">`+ft(f)+`</div>`+d,n)}function ay(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return e=H(e)?e:[e],R(e,function(e,t){return Gh(e,H(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Gh(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Zv(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:dy(e,f,v))+(o?``:fy(e,m,h,g,y)):cy(r,(s?``:d)+(a?``:ly(f,!s,v))+(o?``:uy(m,h,g,y)),n)}}function oy(e,t,n,r,i,a){if(e)return ny(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function sy(e){return{html:Qv[e],richText:$v[e]}}function cy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=Xv(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function ly(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+ft(e)+`</span>`}function uy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=H(e)?e:[e],`<span style="`+i+`;`+r+`">`+R(e,function(e){return ft(e)}).join(` `)+`</span>`}function dy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function fy(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(H(t)?t.join(` `):t,a)}function py(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Xh(n)}function my(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var hy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Do()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=Yh({color:t,type:e,renderMode:n,markerId:r});return W(i)?i:(process.env.NODE_ENV!==`production`&&q(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};H(t)?L(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function gy(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll(`defaultedTooltip`),o=a.length,s=t.getRawValue(n),c=H(s),l=py(t,n),u,d,f,p;if(o>1||c&&!o){var m=_y(s,t,n,a,l);u=m.inlineValues,d=m.inlineValueTypes,f=m.blocks,p=m.inlineValues[0]}else if(o){var h=i.getDimensionInfo(a[0]);p=u=pv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=os(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return ey(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[ey(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!xe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function _y(e,t,n,r,i){var a=t.getData(),o=ae(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||=r&&r.tooltip!==!1&&r.displayName!=null},!1),s=[],c=[],l=[];r.length?L(r,function(e){u(pv(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(ey(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return{inlineValues:s,inlineValueTypes:c,blocks:l}}var vy=ds();function yy(e,t){return e.getName(t)||e.getId(t)}var by=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=_v({count:Cy,reset:wy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(vy(this).sourceManager=new Kv(this)).prepareSource();var r=this.getInitialData(e,n);Ey(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&q(r,`getInitialData returned invalid data.`),vy(this).dataBeforeProcessed=r,xy(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=pg(this),r=n?hg(e):{},i=this.subType;vg.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),Wo(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&mg(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=pg(this);n&&mg(this.option,e,n);var r=vy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Ey(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,vy(this).dataBeforeProcessed=i,xy(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!fe(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Wo(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Oy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return vy(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Oy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}vy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return J(e)},t.prototype.getSourceManager=function(){return vy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return vy(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return gy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(l.node&&!(e&&e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=zg.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var a=0;a<e.length;a++){var o=e[a],s=yy(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=B(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[yy(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return e?e===!0||e&&e.enabled:!1},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(!(!a||!o)){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){G(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=yy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=yy(e,d);i.selectedMap=(n={},n[u]=!0,n),this._selectedDataIndicesMap=(r={},r[u]=e.getRawIndex(d),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return vg.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type=`series.__base__`,e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol=`circle`,e.visualStyleAccessPath=`itemStyle`,e.visualDrawType=`fill`}(),t}(vg);re(by,hv),re(by,zg),Ks(by,vg);function xy(e){var t=e.name;os(e)||(e.name=Sy(e)||t)}function Sy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return L(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function Cy(e){return e.model.getRawData().count()}function wy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Ty}function Ty(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ey(e,t){L(ke(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,ce(Dy,t))})}function Dy(e,t){var n=Oy(e);return n&&n.setOutputEnd((t||this).count()),t}function Oy(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}var ky=function(){function e(){this.group=new Fa,this.uid=zm(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();Ws(ky),Zs(ky);function Ay(){var e=ds();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&`reset`}}var jy=ds(),My=Ay(),Ny=function(){function e(){this.group=new Fa,this.uid=zm(`viewChart`),this.renderTask=_v({plan:Iy,reset:Ly}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){if(process.env.NODE_ENV!==`production`)throw Error(`render method must been implemented`)},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Z(`Unknown dataType `+r.dataType);return}Fy(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);if(!i){process.env.NODE_ENV!==`production`&&Z(`Unknown dataType `+r.dataType);return}Fy(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Zp(this.group,e)},e.markUpdateMethod=function(e,t){jy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Py(e,t,n){e&&Nd(e)&&(t===`emphasis`?cd:ld)(e,n)}function Fy(e,t,n){var r=us(e,t),i=t&&t.highlightKey!=null?Pd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Py(e,n,i)}):L(Uo(r),function(t){Py(e.getItemGraphicEl(t),n,i)})}Ws(Ny,[`dispose`]),Zs(Ny);function Iy(e){return My(e.model)}function Ly(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&jy(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ry[c]}var Ry={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},zy=`\0__throttleOriginMethod`,By=`\0__throttleRate`,Vy=`\0__throttleType`;function Hy(e,t,n){var r,i=0,a=0,o=null,s,c,l,u;t||=0;function d(){a=new Date().getTime(),o=null,e.apply(c,l||[])}var f=function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];r=new Date().getTime(),c=this,l=e;var p=u||t,m=u||n;u=null,s=r-(m?i:a)-p,clearTimeout(o),m?o=setTimeout(d,p):s>=0?d():o=setTimeout(d,-s),i=r};return f.clear=function(){o&&=(clearTimeout(o),null)},f.debounceNextCall=function(e){u=e},f}function Uy(e,t,n,r){var i=e[t];if(i){var a=i[zy]||i,o=i[Vy];if(i[By]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Hy(a,n,r===`debounce`),i[zy]=a,i[Vy]=r,i[By]=n}return i}}function Wy(e,t){var n=e[t];n&&n[zy]&&(n.clear&&n.clear(),e[t]=n[zy])}var Gy=ds(),Ky={itemStyle:Qs(Pm,!0),lineStyle:Qs(jm,!0)},qy={lineStyle:`stroke`,itemStyle:`fill`};function Jy(e,t){return e.visualStyleMapper||Ky[t]||(console.warn(`Unknown style type '`+t+`'.`),Ky.itemStyle)}function Yy(e,t){return e.visualDrawType||qy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Xy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Jy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Yy(e,r),c=a[s],l=U(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||U(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||U(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Zy=new Lm,Qy={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Jy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Zy.option=n[r];var o=i(Zy);P(e.ensureUniqueItemVisual(t,`style`),o),Zy.option.decal&&(e.setItemVisual(t,`decal`,Zy.option.decal),Zy.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},$y={performRawSeries:!0,overallReset:function(e){var t=J();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Gy(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Gy(e).scope,a=Yy(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},eb=Math.PI;function tb(e,t){t||={},F(t,{text:`loading`,textColor:Q.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Q.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Fa,r=new eu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new au({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new eu({style:{fill:`none`},textContent:i,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});n.add(a);var o;return t.showSpinner&&(o=new Wf({shape:{startAngle:-eb/2,endAngle:-eb/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:eb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:eb*3/2}).delay(300).start(`circularInOut`),n.add(o)),n.resize=function(){var n=i.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-s*2-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&o.setShape({cx:c,cy:l}),a.setShape({x:c-s,y:l-s,width:s*2,height:s*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var nb=function(){function e(e,t,n,r){this._stageTaskMap=J(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):Is(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=J();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;L(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{}),a=``;process.env.NODE_ENV!==`production`&&(a=`"reset" and "overallReset" must not be both specified.`),q(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;L(e,function(e,s){if(!(r.visualType&&r.visualType!==e.visualType)){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}});function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=J(),s=e.seriesType,c=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l);function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||_v({plan:sb,reset:cb,count:db}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||_v({reset:rb});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=J(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1,f=``;process.env.NODE_ENV!==`production`&&(f=`"createOnAllSeries" is not supported for "overallReset", because it will block all streams.`),q(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):L(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,_v({reset:ib,onDirty:ob})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return U(e)&&(e={overallReset:e,seriesType:fb(e)}),e.uid=zm(`stageHandler`),t&&(e.visualType=t),e},e}();function rb(e){e.overallReset(e.ecModel,e.api,e.payload)}function ib(e){return e.dirtyOnOverallProgress&&ab}function ab(){this.agent.dirty(),this.getDownstream().dirty()}function ob(){this.agent&&this.agent.dirty()}function sb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function cb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Uo(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return ub(t)}):lb}var lb=ub(0);function ub(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function db(e){return e.data.count()}function fb(e){hb=null;try{e(pb,mb)}catch{}return hb}var pb={},mb={},hb;gb(pb,Qg),gb(mb,Au),pb.eachSeriesByType=pb.eachRawSeriesByType=function(e){hb=e},pb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(hb=e.subType)};function gb(e,t){for(var n in t.prototype)e[n]=Me}var $=Q.darkColor,_b=$.background,vb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},yb={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},bb={darkMode:!0,color:$.theme,backgroundColor:_b,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:_b,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:yb,y:yb,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:vb(),logAxis:vb(),valueAxis:vb(),categoryAxis:vb(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:function(){var e=vb();return e.axisName={color:$.axisLabel},e.axisLine.lineStyle.color=$.neutral20,e}(),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};bb.categoryAxis.splitLine.show=!1;var xb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(W(e)){var i=Vs(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};L(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Sb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Cb=Sb.concat([`symbolKeepAspect`]),wb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),!e.hasSymbolVisual)return;for(var r={},i={},a=!1,o=0;o<Sb.length;o++){var s=Sb[o],c=e.get(s);U(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(P({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=B(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},Tb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<Cb.length;r++){var i=Cb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Eb(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+n)}}function Db(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t);default:process.env.NODE_ENV!==`production`&&console.warn(`Unknown visual type `+t)}}function Ob(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Lo(`event `+a+` is deprecated.`),r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=us(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:H(l)?c.getName(l[0]):c.getName(l),selected:W(r)?r:P({},r)})}}))}function kb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Ob(`map`,`selectchanged`,t,r,e),Ob(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Ob(`map`,`selected`,t,r,e),Ob(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Ob(`map`,`unselected`,t,r,e),Ob(`pie`,`unselected`,t,r,e))})}function Ab(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var jb=new Qe,Mb={};function Nb(e,t){process.env.NODE_ENV!==`production`&&Mb[e]&&Z(`Already has an implementation of `+e+`.`),Mb[e]=t}function Pb(e){return process.env.NODE_ENV!==`production`&&(Mb[e]||Z(`Implementation of `+e+` doesn't exists.`)),Mb[e]}var Fb={};function Ib(e,t){Fb[e]=t}var Lb=ds();function Rb(e){Lb(e).prepare={}}function zb(e){Lb(e).fullUpdate={}}function Bb(e){return Lb(e).prepare}function Vb(e){return Lb(e).fullUpdate}var Hb=Math.round(Math.random()*9),Ub=typeof Object.defineProperty==`function`,Wb=function(){function e(){this._id=`__ec_inner_`+Hb++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Ub?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),Gb=Bl.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),Kb={line:Rf,rect:eu,roundRect:eu,square:eu,circle:cf,diamond:Bl.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),pin:Bl.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=o*.6,m=o*.7;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,Math.PI*2+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),arrow:Bl.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),triangle:Gb},qb={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},Jb={};L(Kb,function(e,t){Jb[t]=new e});var Yb=Bl.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=_a(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+n.height*.4),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=Jb[r];i||=(r=`rect`,Jb[r]),qb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function Xb(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Q.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function Zb(e,t,n,r,i,a,o){var s=e.indexOf(`empty`)===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var c=e.indexOf(`image://`)===0?Ep(e.slice(8),new Y(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Tp(e.slice(7),{},new Y(t,n,r,i),o?`center`:`cover`):new Yb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=Xb,a&&c.setColor(a),c}function Qb(e,t){if(e!=null)return H(e)||(e=[e,e]),[oo(e[0],t[0])||0,oo(K(e[1],e[0]),t[1])||0]}function $b(e){return isFinite(e)}function ex(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=$b(r)?r:0,i=$b(i)?i:1,a=$b(a)?a:0,o=$b(o)?o:0,e.createLinearGradient(r,a,i,o)}function tx(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=$b(o)?o:.5,s=$b(s)?s:.5,c=c>=0&&$b(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function nx(e,t,n){for(var r=t.type===`radial`?tx(e,t,n):ex(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function rx(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function ix(e){return parseInt(e,10)}function ax(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||ix(s[r])||ix(e.style[r]))-(ix(s[a])||0)-(ix(s[o])||0)||0}function ox(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ue(e)?[e]:H(e)?e:null}function sx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&ox(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=R(n,function(e){return e/i}),r/=i)}return[n,r]}var cx=new hl(!0);function lx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function ux(e){return typeof e==`string`&&e!==`none`}function dx(e){var t=e.fill;return t!=null&&t!==`none`}function fx(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function px(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function mx(e,t,n){var r=rc(t.image,t.__image,n);if(ac(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Ne),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function hx(e,t,n,r,i){var a,o=lx(n),s=dx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||cx,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?nx(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?nx(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?mx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?mx(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w=t.getGlobalScale();d.setScale(w[0],w[1],t.segmentIgnoreThreshold);var T,E;e.setLineDash&&n.lineDash&&(a=sx(t),T=a[0],E=a[1]);var D=!0;(u||f&4)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),T&&(e.setLineDash(T),e.lineDashOffset=E),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&px(e,n),s&&fx(e,n)):(s&&fx(e,n),o&&px(e,n)),T&&e.setLineDash([])}function gx(e,t,n){var r=t.__image=rc(n.image,t.__image,t,t.onload);if(!(!r||!ac(r))){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var l=n.sx,u=n.sy,d=o-l,f=s-u;e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}function _x(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(r=sx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(lx(n)&&e.strokeText(i,n.x,n.y),dx(n)&&e.fillText(i,n.x,n.y)):(dx(n)&&e.fillText(i,n.x,n.y),lx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var vx=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],yx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function bx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Mx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?kc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Mx(e,i),!0),e.globalCompositeOperation=t.blend||kc.blend);for(var s=0;s<vx.length;s++){var c=vx[s];(r||t[c]!==n[c])&&(a||=(Mx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Mx(e,i),!0),e.shadowColor=t.shadowColor||kc.shadowColor),a}function xx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=bx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Mx(e,i),!0),ux(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Mx(e,i),!0),ux(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Mx(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(Mx(e,i),!0),e.lineWidth=c)}for(var l=0;l<yx.length;l++){var u=yx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Mx(e,i),!0),e[d]=a[d]||u[1])}return s}function Sx(e,t,n,r,i){return bx(e,t.style,n&&n.style,r,i)}function Cx(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function Tx(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Cx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Ex(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var Dx=1,Ox=2,kx=3,Ax=4;function jx(e){var t=dx(e),n=lx(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Mx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Nx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Px(e,t,n),Fx(e,n)}function Px(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if((!a||rx(i,a))&&(a&&(Mx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Mx(e,n),e.save(),Tx(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped){t.__dirty&=-2,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Bl&&t.autoBatch&&jx(o);s||Ex(r,l.transform)?(Mx(e,n),Cx(e,t)):u||Mx(e,n),t instanceof Bl?(n.lastDrawType!==Dx&&(c=!0,n.lastDrawType=Dx),xx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),hx(e,t,o,u,n)):t instanceof Hl?(n.lastDrawType!==kx&&(c=!0,n.lastDrawType=kx),xx(e,t,l,c,n),_x(e,t,o)):t instanceof Kl?(n.lastDrawType!==Ox&&(c=!0,n.lastDrawType=Ox),Sx(e,t,l,c,n),gx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==Ax&&(c=!0,n.lastDrawType=Ax),Ix(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Mx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Fx(e,t){Mx(e,t),t.prevElClipPaths&&e.restore()}function Ix(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Px(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Fx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Px(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Fx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Lx=new Wb,Rx=new cr(100),zx=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Bx(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Lx.delete(e);var a=Lx.get(e);if(a)return a;var o=F(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return c(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Lx.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<zx.length;++s){var c=o[zx[s]];if(c!=null&&!H(c)&&!W(c)&&!ue(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=Rx.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=Hx(o.dashArrayX),f=Ux(o.dashArrayY),p=Vx(o.symbol),m=Wx(d),h=Gx(f),g=!i&&_.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;g&&(g.width=y.width*n,g.height=y.height*n,b=g.getContext(`2d`)),S(),a&&Rx.put(l,g||v),e.image=g,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=ko(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=ko(r,p[t].length);e*=r;var i=h*m.length*p.length;if(process.env.NODE_ENV!==`production`){var a=function(e){console.warn(`Calculated decal size is greater than `+e+` due to decal option settings so `+e+` is used for the decal size. Please consider changing the decal option to make a smaller decal or set `+e+` to be larger to avoid incontinuity.`)};e>o.maxTileWidth&&a(`maxTileWidth`),i>o.maxTileHeight&&a(`maxTileHeight`)}return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,g.width,g.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,g.width,g.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-h,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%p.length,m=0,_=0,x=0;m<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(_%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][_]*C,T=a+f[s]*C,E=d[l][_]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][_],++x,++_,_===d[l].length&&(_=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=Zb(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else Nx(b,u)}}}}function Vx(e){if(!e||e.length===0)return[[`rect`]];if(W(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!W(e[n])){t=!1;break}if(t)return Vx([e]);for(var r=[],n=0;n<e.length;++n)W(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Hx(e){if(!e||e.length===0)return[[0,0]];if(ue(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ue(e[r])){n=!1;break}if(n)return Hx([e]);for(var i=[],r=0;r<e.length;++r)if(ue(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=R(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Ux(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ue(e)){var t=Math.ceil(e);return[t,t]}var n=R(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function Wx(e){return R(e,function(e){return Gx(e)})}function Gx(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var Kx=Ls(qx);function qx(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);if(n){var i=r.ensureUniqueItemVisual(e,`style`);i.decal=Bx(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Bx(i,t)}}})}var Jx=1,Yx=800,Xx=900,Zx=920,Qx=1e3,$x=2e3,eS=5e3,tS=1e3,nS=1100,rS=2e3,iS=3e3,aS=4e3,oS=4500,sS=4600,cS=5e3,lS=6e3,uS=7e3,dS={PROCESSOR:{SERIES_FILTER:Yx,AXIS_STATISTICS:Zx,FILTER:Qx,STATISTIC:eS,STATISTICS:eS},VISUAL:{LAYOUT:tS,PROGRESSIVE_LAYOUT:nS,GLOBAL:rS,CHART:iS,POST_CHART_LAYOUT:sS,COMPONENT:aS,BRUSH:cS,CHART_ITEM:oS,ARIA:lS,DECAL:uS}},fS=`__flagInMainProcess`,pS=`__mainProcessVersion`,mS=`__pendingUpdate`,hS=`__needsUpdateStatus`,gS=/^[a-zA-Z0-9_]+$/,_S=`__connectUpdateStatus`,vS=0,yS=1,bS=2;function xS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){JS(this.id);return}return CS(this,e,t)}}function SS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return CS(this,e,t)}}function CS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Qe.prototype[t].apply(e,n)}var wS=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qe),TS=wS.prototype;TS.on=SS(`on`),TS.off=SS(`off`);var ES,DS,OS,kS,AS,jS,MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS,US,WS,GS=function(e){s(t,e);function t(t,n,r){var i=e.call(this,new xb)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t;var a=`canvas`,o=`auto`,s=!1;if(i[pS]=1,process.env.NODE_ENV!==`production`){var c=l.hasGlobalWindow?window:global;c&&(a=K(c.__ECHARTS__DEFAULT__RENDERER__,a),o=K(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=K(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&Ga(function(e){var t=yu(e),n=t.dataIndex;if(n!=null){var r=J();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var u=i._zr=Va(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:K(r.useDirtyRect,s),useCoarsePointer:K(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Hy(V(u.flush,u),17),i._updateTheme(n),i._locale=Qm(r.locale||Xm),i._coordSysMgr=new $h;var d=i._api=BS(i);function f(e,t){return e.__prio-t.__prio}return Tn(eC,f),Tn(QS,f),i._scheduler=new nb(i,d,QS,eC),i._messageCenter=new wS,i._initEvents(),i.resize=V(i.resize,i),u.animation.on(`frame`,i._onframe,i),FS(u,i),IS(u,i),Ce(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(US(this),this[mS]){var r=this[mS].silent;this[fS]=!0,WS(this);try{ES(this),kS.update.call(this,null,this[mS].updateParams)}catch(e){throw this[fS]=!1,this[mS]=null,e}this._zr.flush(),this[fS]=!1,this[mS]=null,NS.call(this,r),PS.call(this,r)}else if(e.unfinished){var i=Jx;do{e.unfinished=!1;var a=_.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),jS(this,t),e.performVisualTasks(t),zS(this,this._model,n,`remain`,{}),i-=_.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(this[fS]){process.env.NODE_ENV!==`production`&&Z("`setOption` should not be called during main process.");return}if(this._disposed){JS(this.id);return}var r,i,a;if(G(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[fS]=!0,WS(this),!this._model||t){var o=new a_(this._api),s=this._theme,c=this._model=new Qg;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},$S);var l={seriesTransition:a,optionChanged:!0};if(n)this[mS]={silent:r,updateParams:l},this[fS]=!1,this.getZr().wakeUp();else{try{ES(this),kS.update.call(this,null,l)}catch(e){throw this[mS]=null,this[fS]=!1,e}this._ssr||this._zr.flush(),this[mS]=null,this[fS]=!1,NS.call(this,r),PS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[fS]){process.env.NODE_ENV!==`production`&&Z("`setTheme` should not be called during main process.");return}if(this._disposed){JS(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[mS]&&(r??=this[mS].silent,i=this[mS].updateParams,this[mS]=null),this[fS]=!0,WS(this);try{this._updateTheme(e),n.setTheme(this._theme),ES(this),kS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[fS]=!1,e}this[fS]=!1,NS.call(this,r),PS.call(this,r)}},t.prototype._updateTheme=function(e){W(e)&&(e=tC[e]),e&&(e=M(e),e&&N_(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||l.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Ro(`getRenderedCanvas`,`renderToCanvas`),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`canvas`)throw Error(`renderToCanvas can only be used in the canvas renderer.`);return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e||={};var t=this._zr.painter;if(process.env.NODE_ENV!==`production`&&t.type!==`svg`)throw Error(`renderToSVGString can only be used in the svg renderer.`);return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return L(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){JS(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;L(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return L(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){JS(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(iC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();L(rC,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(M(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),l=i(p.bottom,l),u.push({dom:f,left:p.left,top:p.top})}}),o*=d,s*=d,c*=d,l*=d;var f=c-o,p=l-s,m=_.createCanvas(),h=Va(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return L(u,function(e){var t=e.left-o,n=e.top-s;g+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),h.painter.getSvgRoot().innerHTML=g,e.connectedBackgroundColor&&h.painter.setBackgroundColor(e.connectedBackgroundColor),h.refreshImmediately(),h.painter.toDataURL()}return e.connectedBackgroundColor&&h.add(new eu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new Kl({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});h.add(t)}),h.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return AS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return AS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return AS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){JS(this.id);return}var n=this._model,r;return L(ps(n,e),function(e,n){n.indexOf(`Models`)>=0&&L(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)r||=!!i.containPoint(t);else if(n===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint?r||=a.containPoint(t,e):process.env.NODE_ENV!==`production`&&Io(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Io(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=ps(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Io(`There is no specified series model`));var a=i.getData(),o=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?a.indexOfRawIndex(r.dataIndex):null;return o==null?Db(a,t):Eb(a,o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;L(qS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&Ab(i,function(e){var t=yu(e);if(t&&t.dataIndex!=null){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return a=n&&n.getDataParams(t.dataIndex,t.dataType,i)||{},!0}if(t.eventData)return a=P({},t.eventData),!0},!0),a){var s=a.componentType,c=a.componentIndex;(s===`markLine`||s===`markPoint`||s===`markArea`)&&(s=`series`,c=a.seriesIndex);var l=s&&c!=null&&r.getComponent(s,c),u=l&&e[l.mainType===`series`?`_chartsMap`:`_componentsMap`][l.__viewId];process.env.NODE_ENV!==`production`&&!o&&!(l&&u)&&Io(`model or view can not be found by params`),a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:l,view:u},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;L(ZS,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),kb(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){JS(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){JS(this.id);return}this._disposed=!0,this.getDom()&&vs(this.getDom(),oC,``);var e=this,t=e._api,n=e._model;L(e._componentsViews,function(e){e.dispose(n,t)}),L(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete rC[e.id]},t.prototype.resize=function(e){if(this[fS]){process.env.NODE_ENV!==`production`&&Z("`resize` should not be called during main process.");return}if(this._disposed){JS(this.id);return}this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[mS]&&(r??=this[mS].silent,n=!0,this[mS]=null),this[fS]=!0,WS(this);try{n&&ES(this),kS.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[fS]=!1,e}this[fS]=!1,NS.call(this,r),PS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){JS(this.id);return}if(G(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!nC[e]){process.env.NODE_ENV!==`production`&&Io(`Loading effects `+e+` not exists.`);return}var n=nC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){JS(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=P({},e);return t.type=XS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){JS(this.id);return}if(G(t)||(t={silent:!!t}),YS[e.type]&&this._model){if(this[fS]){this._pendingActions.push(e);return}var n=t.silent;MS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&l.browser.weChat&&this._throttledZrFlush(),NS.call(this,n),PS.call(this,n)}},t.prototype.updateLabelLayout=function(){jb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){JS(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&q(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ES=function(e){Rb(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),DS(e,!0),DS(e,!1),t.plan()},DS=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l);function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=Vs(e.type),f=t?ky.getClass(d.main,d.sub):Ny.getClass(d.sub);process.env.NODE_ENV!==`production`&&q(f,d.sub+` does not exist.`),u=new f,u.init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(var c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},OS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){L([].concat(e._componentsViews,e._chartsViews),l);return}var o=_s(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=J(),L(Uo(s),function(e){var t=rs(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Id(n)){if(t instanceof by)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&vd(t,n,e._api);else{var r=yd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&_d(t.mainType,t.componentIndex,e._api),a&&L(a,function(e){n.type===`highlight`?cd(e):ld(e)})}}else Fd(n)&&t instanceof by&&(Sd(t,n,e._api),Cd(t),HS(e))}},e),a&&a.eachComponent(o,function(t){c&&c.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},kS={prepareAndUpdate:function(e){ES(this),kS.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(e,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){zb(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),jb.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),jS(this,r),o.update(r,i),t(r),s.performVisualTasks(r,e);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),LS(this,r,i,e,n),jb.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=J();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),zS(t,n,r,e,{},a),jb.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Ny.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),LS(this,n,this._api,e,{}),jb.trigger(`afterupdate`,n,this._api))},updateVisual:function(e){var n=this,r=this._model;r&&(r.setUpdatePayload(e),r.eachSeries(function(e){e.getData().clearAllVisual()}),Ny.markUpdateMethod(e,`updateVisual`),t(r),this._scheduler.performVisualTasks(r,e,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(t,i){if(t!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,e)}}),r.eachSeries(function(t){n._chartsMap[t.__viewId].updateVisual(t,r,n._api,e)}),jb.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){kS.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){JS(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ps(a,n),l=0;l<o.length;l++){var u=o[l];if(u[t]&&(s=u[t](a,c,r,i))!=null)return s}process.env.NODE_ENV!==`production`&&Io(`No coordinate system that supports `+t+` found by the given finder.`)}AS=e,jS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},MS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=YS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Vs(s[0]);this[fS]=!0,WS(this);var u=[e],d=!1;e.batch&&(d=!0,u=R(e.batch,function(t){return t=F(P({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Fd(e),_=Id(e);if(_&&hd(this._api),L(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=P({},t),p.type=h,f.push(p),_){var a=ms(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;OS(n,c,t,u),HS(n)}else g?(OS(n,c,t,`series`),HS(n)):l&&OS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[mS]?(ES(this),kS.update.call(this,e),this[mS]=null):kS[c].call(this,e)}catch(e){throw this[fS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[fS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;q(G(y)),v=F({type:o.refinedEventType},y),v.fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(p.type,p),v&&b.trigger(v.type,v)}},NS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();MS.call(this,n,e)}},PS=function(e){!e&&this.trigger(`updated`)},FS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[mS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},IS=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=Ab(n,Nd);r&&(bd(r,e,t._api),HS(t))}).on(`mouseout`,function(e){var n=e.target,r=Ab(n,Nd);r&&(xd(r,e,t._api),HS(t))}).on(`click`,function(e){var n=e.target,r=Ab(n,function(e){return yu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=yu(r);t._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}})};function t(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function n(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i=t.concat(n),a,o;Tn(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),L(i,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,i=t.key;a!=null&&(r=Math.max(a,r)),i?(r===a&&i!==o&&r++,o=i):o&&=(r===a&&r++,``),a=r,n.setZLevel(r)})}}LS=function(e,t,r,i,a){n(t),RS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive=!1}),zS(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},RS=function(e,t,n,r,i,a){L(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),o(i,e),u(i,e)})},zS=function(e,t,n,r,s,l){var d=e._scheduler;s=P(s||{},{updatedSeries:t.getSeries()}),jb.trigger(`series:beforeupdate`,t,n,s);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),c(t,n),l&&l.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Cd(t)}),d.unfinished=f||d.unfinished,jb.trigger(`series:layoutlabels`,t,n,s),jb.trigger(`series:transition`,t,n,s),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),u(t,n)}),i(e,t),jb.trigger(`series:afterupdate`,t,n,s)},HS=function(e){e[hS]=!0,e.getZr().wakeUp()},WS=function(e){e[pS]=(e[pS]+1)%1e6},US=function(e){e[hS]&&(e.getZr().storage.traverse(function(e){dp(e)||r(e)}),e[hS]=!1)};function r(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function i(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,i=0;r.traverse(function(e){e.isGroup||i++});var a=i>K(t.get(`hoverLayerThreshold`),Dg.hoverLayerThreshold)&&!l.node&&!l.worker;(e._usingTHL||a)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!a)})}}),e._usingTHL=a)}}function a(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function o(e,t){if(!e.preventAutoZ){var n=nm(e);t.eachRendered(function(e){return im(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!dp(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function u(e,t){var n=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(dp(e))return;if(e instanceof Bl&&Ld(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&r(e)}})}BS=function(e){return new(function(t){s(n,t);function n(){return t!==null&&t.apply(this,arguments)||this}return n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){cd(t,n),HS(e)},n.prototype.leaveEmphasis=function(t,n){ld(t,n),HS(e)},n.prototype.enterBlur=function(t){ud(t),HS(e)},n.prototype.leaveBlur=function(t){dd(t),HS(e)},n.prototype.enterSelect=function(t){fd(t),HS(e)},n.prototype.leaveSelect=function(t){pd(t),HS(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n.prototype.getECUpdateCycleVersion=function(){return e[pS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Au))(e)},VS=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[_S]=t}}L(XS,function(n,r){e._messageCenter.on(r,function(n){if(iC[e.group]&&e[_S]!==vS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];L(rC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,vS),L(i,function(e){e[_S]!==yS&&e.dispatchAction(r)}),t(i,bS)}})})}}(),t}(Qe),KS=GS.prototype;KS.on=xS(`on`),KS.off=xS(`off`),KS.one=function(e,t,n){var r=this;Lo(`ECharts#one is deprecated.`);function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var qS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function JS(e){process.env.NODE_ENV!==`production`&&Io(`Instance `+e+` has been disposed`)}var YS={},XS={},ZS={},QS=[],$S=[],eC=[],tC={},nC={},rC={},iC={},aC=new Date-0;new Date-0;var oC=`_echarts_instance_`;function sC(e,t,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!==`production`&&!e)throw Error(`Initialize failed: invalid dom.`);var i=cC(e);if(i)return process.env.NODE_ENV!==`production`&&Io(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&pe(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Io(`Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.`)}var a=new GS(e,t,n);return a.id=`ec_`+aC++,rC[a.id]=a,r&&vs(e,oC,a.id),VS(a),jb.trigger(`afterinit`,a),a}function cC(e){return rC[ys(e,oC)]}function lC(e,t){tC[e]=t}function uC(e){I($S,e)<0&&$S.push(e)}function dC(e,t){bC(QS,e,t,$x)}function fC(e){mC(`afterinit`,e)}function pC(e){mC(`afterupdate`,e)}function mC(e,t){jb.on(e,t)}function hC(e,t,n){var r,i,a,o,s;U(t)&&(n=t,t=``),G(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t);function c(e){return e.toLowerCase()}i=c(i||r);var l=a?c(r):i;YS[r]||(q(gS.test(r)&&gS.test(i)),a&&q(i!==r),YS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},ZS[i]=1,a&&s&&(ZS[l]=1),process.env.NODE_ENV!==`production`&&XS[l]&&Z(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),XS[l]=r)}function gC(e,t){$h.register(e,t)}function _C(e,t){bC(eC,e,t,tS,`layout`,!0)}function vC(e,t){bC(eC,e,t,iS,`visual`,!0)}var yC=[];function bC(e,t,n,r,i,a){if((U(t)||G(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);L(e,function(e){q(e.__raw!==n)})}if(!(I(yC,n)>=0)){yC.push(n);var o=nb.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&q(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function xC(e,t){nC[e]=t}function SC(e,t,n){var r=Pb(`registerMap`);r&&r(e,t,n)}var CC=Mv;vC(rS,Xy),vC(oS,Qy),vC(oS,$y),vC(rS,wb),vC(oS,Tb),vC(uS,Kx),uC(N_),dC(Xx,P_),xC(`default`,tb),hC({type:Ru,event:Ru,update:Ru},Me),hC({type:zu,event:zu,update:zu},Me),hC({type:Bu,event:Uu,update:Bu,action:Me,refineEvent:wC,publishNonRefinedEvent:!0}),hC({type:Vu,event:Uu,update:Vu,action:Me,refineEvent:wC,publishNonRefinedEvent:!0}),hC({type:Hu,event:Uu,update:Hu,action:Me,refineEvent:wC,publishNonRefinedEvent:!0});function wC(e,t,n,r){return{eventContent:{selected:wd(n),isFromClick:t.isFromClick||!1}}}lC(`default`,{}),lC(`dark`,bb);function TC(e){return e==null?0:e.length||1}function EC(e){return e}var DC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||EC,this._newKeyGetter=r||EC,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=TC(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=TC(c),d=TC(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=TC(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=TC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),OC=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function kC(e,t){var n={},r=n.encode={},i=J(),a=[],o=[],s={};L(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&q(xu.get(c)==null);var l=n.coordDimIndex;AC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),MC(n.type)&&(a[0]=t),AC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}xu.each(function(e,t){var i=AC(r,t),a=n.otherDims[t];a!=null&&a!==!1&&(i[a]=n.name)})});var c=[],l={};i.each(function(e,t){var n=r[t];l[t]=n[0],c=c.concat(n)}),n.dataDimsOnCoord=c,n.dataDimIndicesOnCoord=R(c,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=l;var u=r.label;u&&u.length&&(a=u.slice());var d=r.tooltip;return d&&d.length?o=d.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new OC(s,t),n}function AC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function jC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function MC(e){return e!==`ordinal`&&e!==`time`}var NC=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),PC=ds(),FC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},IC=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=zC(this.source))},e.prototype.getSourceDimensionIndex=function(e){return K(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=q_(this.source),n=!BC(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),t&&s!=null&&(!u||!u.isCalculationCoord)&&(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=FC[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function LC(e){return e instanceof IC}function RC(e){for(var t=J(),n=0;n<(e||[]).length;n++){var r=e[n],i=G(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function zC(e){var t=PC(e);return t.dimNameMap||=RC(e.dimensionsDefine)}function BC(e){return e>30}var VC=G,HC=R,UC=typeof Int32Array>`u`?Array:Int32Array,WC=`e\0\0`,GC=-1,KC=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],qC=[`_approximateExtent`],JC,YC,XC,ZC,QC,$C,ew,tw=function(){function e(e,t){this.type=`list`,this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=[`cloneShallow`,`downSample`,`minmaxDownSample`,`lttbDownSample`,`map`],this.CHANGABLE_METHODS=[`filterSelf`,`selectRange`],this.DOWNSAMPLE_METHODS=[`downSample`,`minmaxDownSample`,`lttbDownSample`];var n,r=!1;LC(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},a=[],o={},s=!1,c={},l=0;l<n.length;l++){var u=n[l],d=W(u)?new NC({name:u}):u instanceof NC?u:new NC(u),f=d.name;d.type=d.type||`float`,d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};a.push(f),i[f]=d,c[f]!=null&&(s=!0),d.createInvertedIndices&&(o[f]=[]),process.env.NODE_ENV!==`production`&&q(r||d.storeDimIndex>=0),r&&(d.storeDimIndex=l),p.itemName===0&&(this._nameDimIdx=d.storeDimIndex),p.itemId===0&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var m=this._dimIdxToName=J();L(a,function(e){m.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);if(r)return r.name},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(ue(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);if(process.env.NODE_ENV!==`production`&&t==null)throw Error(`Unknown dimension `+e);return t},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r=this,i;if(e instanceof Gv&&(i=e),!i){var a=this.dimensions,o=R_(e)||ie(e)?new ev(e,a.length):e;i=new Gv;var s=HC(a,function(e){return{type:r._dimInfos[e].type,property:e}});i.initData(o,s,n)}this._store=i,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=kC(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&ew(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&qo(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=rs(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=rs(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)ew(this,o);JC(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){VC(e)?P(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=XC(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return YC(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return H(e)?r.getValues(HC(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!==`production`&&!n)throw Error(`Do not supported yet`);var r=n&&n[t];return r==null||isNaN(r)?GC:r},e.prototype.each=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=HC(ZC(e),this._getStoreDimIndex,this);this._store.each(i,r?V(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]);var r=n||this,i=HC(ZC(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?V(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=B(e),i=[];return L(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){"use strict";U(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){"use strict";var i=n||r||this,a=HC(ZC(e),this._getStoreDimIndex,this),o=$C(this);return o._store=this._store.map(a,i?V(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&L(ZC(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=HC(ZC(e),this._getStoreDimIndex,this);this._store.modify(o,a?V(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=$C(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=$C(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=$C(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel;return new Lm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new DC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return YC(e,t)},function(e){return YC(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},VC(e)?P(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),H(i)?i=i.slice():VC(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,VC(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){VC(e)?P(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?P(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){bu(this.hostModel&&this.hostModel.seriesIndex,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){L(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:HC(this.dimensions,this._getDimInfo,this),this.hostModel),QC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];U(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ye(arguments)))})},e.internalField=function(){JC=function(e){var t=e._invertedIndicesMap;L(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new UC(a.categories.length);for(var s=0;s<n.length;s++)n[s]=GC;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},XC=function(e,t,n){return rs(e._getCategory(t,n),null)},YC=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=XC(e,e._idDimIdx,t)),n??=WC+t,n},ZC=function(e){return H(e)||(e=e==null?[]:[e]),e},$C=function(t){var n=new e(t._schema?t._schema:HC(t.dimensions,t._getDimInfo,t),t.hostModel);return QC(n,t),n},QC=function(e,t){L(KC.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,L(qC,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},ew=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=XC(e,i,t)),s==null&&a!=null&&(r[t]=s=XC(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}}}(),e}();function nw(e,t){R_(e)||(e=B_(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=J(),a=[],o=rw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&BC(o),c=r===e.dimensionsDefine,l=c?zC(e):RC(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=J(u),f=new Rv(o),p=0;p<f.length;p++)f[p]=-1;function m(e){var t=f[e];if(t<0){var n=r[e],i=G(n)?n:{name:n},o=new NC,s=i.name;return s!=null&&l.get(s)!=null&&(o.name=o.displayName=s),i.type!=null&&(o.type=i.type),i.displayName!=null&&(o.displayName=i.displayName),f[e]=a.length,o.storeDimIndex=e,a.push(o),o}return a[t]}if(!s)for(var p=0;p<o;p++)m(p);d.each(function(e,t){var n=Uo(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);L(n,function(e,n){var i=W(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;L(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=P({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=d.get(t);if(s!==!1){if(s=Uo(s),!s.length)for(var l=0;l<(n&&n.length||1);l++){for(;h<o&&m(h).coordDim!=null;)h++;h<o&&s.push(h++)}L(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(F(o,i),t,a),o.name==null&&n){var s=n[a];!G(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){xu.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}var _=t.generateCoord,v=t.generateCoordCount,y=v!=null;v=_?v||1:0;var b=_||`value`;function x(e){e.name??=e.coordDim}if(s)L(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var C=m(S);C.coordDim??(C.coordDim=iw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Pg(e,S)===Og.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Ms(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new IC({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function rw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return L(t,function(e){var t;G(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function iw(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var aw=function(){function e(e){this.coordSysDims=[],this.axisMap=J(),this.categoryAxisMap=J(),this.coordSysName=e}return e}();function ow(e){var t=e.get(`coordinateSystem`),n=new aw(t),r=sw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var sw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,hs).models[0],a=e.getReferringComponents(`yAxis`,hs).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+_e(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+_e(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),cw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),cw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,hs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),cw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,hs).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`angleAxis option not found`);if(!a)throw Error(`radiusAxis option not found`)}t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),cw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),cw(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();L(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),cw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,hs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`matrix coordinate system should be specified.`);t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function cw(e){return e.get(`type`)===`category`}function lw(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;uw(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f,p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(L(a,function(e,t){W(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),L(a,function(e,t){c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&m(e)&&(!p||e.coordDim!==`x`&&e.coordDim!==`angle`)&&(!i||i===e.coordDim)&&(u=e))}),u&&!r&&!l&&(r=!0),u){d=`__\0ecstackresult_`+e.id,f=`__\0ecstackedover_`+e.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,g=u.type,_=0;L(a,function(e){e.coordDim===h&&_++});var v={name:d,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:f,coordDim:f,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(v.storeDimIndex=s.ensureCalculationDimension(f,g),y.storeDimIndex=s.ensureCalculationDimension(d,g)),o.appendCalculationDimension(v),o.appendCalculationDimension(y)):(a.push(v),a.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function uw(e){return!LC(e.schema)}function dw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function fw(e,t){return dw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function pw(e,t){var n=e.get(`coordinateSystem`),r=$h.get(n),i;return t&&t.coordSysDims&&(i=R(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=jC(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function mw(e,t,n){var r,i;return n&&L(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(e[r].otherDims.itemName=0),r}function hw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=B_(e)):(i=r.getSource(),a=i.sourceFormat===Su);var o=ow(t),s=pw(t,o),c=n.useEncodeDefaulter,l=U(c)?c:c?ce(jg,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=nw(i,u),f=mw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=lw(t,{schema:d,store:p}),h=new tw(d,t);h.setCalculationInfo(m);var g=f!=null&&gw(i)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return h.hasItemOption=!1,h.initData(a?i:p,null,g),h}function gw(e){if(e.sourceFormat===`original`)return!H(Ko(_w(e.data||[])))}function _w(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var vw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Zs(vw);var yw=0,bw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++yw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,xw);return new e({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return t=r.get(e),t??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=J(this.categories)},e}();function xw(e){return G(e)&&e.value!=null?e.value:e+``}var Sw=B({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});function Cw(e,t,n){var r;e||={};var i=nh();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(L(Sw,function(t){a[t]&&(e[t]=V(a[t],a))}),r=a)}return r??Aw(e,n),{brk:r,mapper:e}}function ww(e,t){L(Sw,function(n){e[n]=t[n]})}function Tw(e,t){e.freeze=Me,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function Ew(e){return e.getExtentUnsafe(0,2)}function Dw(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Ow(e){var t=Dw(e,3);return t[1]-t[0]}function kw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function Aw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():xs(),P(n,jw),n}var jw={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Dw(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){process.env.NODE_ENV!==`production`&&q(!this._frozen),Mw(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&q(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),Mw(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function Mw(e,t,n,r){Ds(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&Z(`Invalid setExtent call - start: `+n+`, end: `+r)}function Nw(e){return Pw(e)||Iw(e)}function Pw(e){return e.type===`interval`}function Fw(e){return e.type===`time`}function Iw(e){return e.type===`log`}function Lw(e){return e.type===`ordinal`}function Rw(e){var t=Co(e),n=eo(10,t),r=Za(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,uo(r*n,-t)}function zw(e){return po(e)+2}function Bw(e,t){return to(e)/to(t)}function Vw(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return eo(t,e)}function Hw(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=Xa(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Es(r[0])||!Es(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function Uw(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function Ww(e,t){return e||=t,Za(X(e,1))}function Gw(e,t,n){var r=Ew(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);s-o!==r[1]&&c(r[1],!0,!0);function c(e,t,r){n({value:e,offInterval:t},r)}}var Kw=function(e){s(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,ww(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new bw({}),H(i)&&(i=new bw({categories:R(i,function(e){return G(e)?e.value:e})})),r._ordinalMeta=i;var a=Cw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Tw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=Za(e),e},t.prototype.getTicks=function(){var e=[];return Gw(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Ya(a,t.length);i<o;++i){var s=n[i]=t[i];r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n[i]=c,r[c]=i}},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Ew(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(Za(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(vw);vw.registerClass(Kw);function qw(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],l=i[s-1];if(!(l.break||c.break)){for(var u=0,d=[],f=(c.value-l.value)/t,p=zw(f);u<t-1;){var m=uo(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=nh();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var Jw=function(e){s(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Cw(r,rh(r,n),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return M(this._cfg)},t.prototype.setConfig=function(e){var t=Ew(this);process.env.NODE_ENV!==`production`&&(q(e.interval!=null),e.intervalCount!=null&&q(e.intervalCount>=-1&&e.intervalPrecision!=null&&!ah(this)),e.niceExtent!=null&&(q(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),q(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),q(uo(e.niceExtent[0]-e.niceExtent[1],po(e.interval))<=e.interval))),this._cfg=e=M(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=zw(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Ew(this),i=t.niceExtent,a=t.intervalPrecision,o=nh(),s=this.brk,c=o&&s,l=[];if(!n)return l;if(e.breakTicks===`only_break`&&c)return o.addBreaksToTicks(l,s.breaks,r),l;process.env.NODE_ENV!==`production`&&q(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?uo(i[0]-n,a):r[0]});for(var d=function(e,t){return Za((t-e)/n)},f=t.intervalCount,p=i[0],m=0;;m++){if(f==null){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(m>f)break;p=Ya(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=uo(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=uo(p+h*n,a))}if(l.length>0&&p===l[l.length-1].value)break;if(l.length>u)return process.env.NODE_ENV!==`production`&&Io(`Exceed safe limit in IntervalScale["getTicks"].`),[]}var g=l.length?l[l.length-1].value:i[1];return r[1]>g&&l.push({value:e.expandToNicedExtent?uo(g+n,a):r[1]}),c&&o.pruneTicksByBreak(e.pruneByBreak,l,s.breaks,function(e){return e.value},t.interval,r),c&&e.breakTicks!==`none`&&o.addBreaksToTicks(l,s.breaks,r),l},t.prototype.getMinorTicks=function(e){return qw(this,e,ih(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=po(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),Hh(uo(e.value,n,!0))},t.type=`interval`,t}(vw);vw.registerClass(Jw);var Yw=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Xw=function(e){s(t,e);function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=Cw(r,rh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return wh(e.value,hh[Ch(xh(this._minLevelUnit))]||hh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Th(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Ew(this),r=nh(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return nh().addBreaksToTicks(o,i.breaks,n),o;o=oT(this._minLevelUnit,this._approxInterval,s,n,kw(this),i);var c=gh.length-1,l=0;return L(o,function(e){e.time&&(c=Math.min(c,I(gh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&nh().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&nh().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(I(gh,Eh(e.vmin,s)),I(gh,Eh(e.vmax,s))),n=0,r=0;r<gh.length;r++)if(!Qw(gh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:gh[Math.max(i,t)],upperTimeUnit:gh[i]}}),o},t.prototype.getMinorTicks=function(e){return qw(this,e,ih(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return ue(e)?Math.round(e):+xo(e)},t.type=`time`,t}(vw),Zw=[[`second`,oh],[`minute`,sh],[`hour`,ch],[`quarter-day`,ch*6],[`half-day`,ch*12],[`day`,lh*1.2],[`half-week`,lh*3.5],[`week`,lh*7],[`month`,lh*31],[`quarter`,lh*95],[`half-year`,uh/2],[`year`,uh]];function Qw(e,t,n,r){return Dh(new Date(t),e,r).getTime()===Dh(new Date(n),e,r).getTime()}function $w(e,t){return e/=lh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function eT(e){var t=30*lh;return e/=t,e>6?6:e>3?3:e>2?2:1}function tT(e){return e/=ch,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function nT(e,t){return e/=t?sh:oh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function rT(e){return X(wo(e,!0),1)}function iT(e,t,n){var r=Math.max(0,I(gh,t)-1);return Dh(new Date(e),gh[r],n).getTime()}function aT(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}function oT(e,t,n,r,i,a){var o=_h,s=0;function c(e,t,n,i,o,c,l){for(var u=aT(o,e),d=t,f=new Date(d);d<n&&d<=r[1];){if(l.push({value:d}),s++>3e3){process.env.NODE_ENV!==`production`&&Io(`Exceed safe limit in TimeScale["getTicks"].`);break}if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!Qw(xh(e),r[0],r[1],n)){s&&(i=[{value:iT(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/lh/365)),p=Oh(n),m=Fh(n);break;case`half-year`:case`quarter`:case`month`:f=eT(t),p=kh(n),m=Ih(n);break;case`week`:case`half-week`:case`day`:f=$w(t,31),p=Ah(n),m=Lh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=tT(t),p=jh(n),m=Rh(n);break;case`minute`:f=nT(t,!0),p=Mh(n),m=zh(n);break;case`second`:f=nT(t,!1),p=Nh(n),m=Bh(n);break;case`millisecond`:f=rT(t),p=Ph(n),m=Vh(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(var l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=xh(o[m]);if(Sh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?xh(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;(_===0||d[_-1].value!==v)&&(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>y*1.5&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}for(var b=oe(R(u,function(e){return oe(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[],m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=Eh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Ms(S,Ns,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=Eh(r[0],n),k=Eh(r[1],n);return(!E||E.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),(!D||D.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),S}var sT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=lh,n[1]+=lh),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-lh}e.setExtent(n[0],n[1]);var i=Ww(t.splitNumber,10),a=kw(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=Zw.length,l=Math.min(Yw(Zw,a,0,c),c-1),u=Zw[l][1],d=Zw[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};vw.registerClass(Xw);var cT=0,lT=1,uT=2,dT=function(e){s(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=Jw.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[cT]=i[lT]=a[cT]=a[lT]=NaN,ww(r,t.mapperMethods);var s=nh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},uT,l),r.powStub=new Jw({breakParsed:l.original}),r.intervalStub=new Jw({breakParsed:l.transformed}),Tw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=nh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return R(i.getTicks(e||{}),function(e){var i=e.value,o=Vw(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,ih(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return qw(this,e,ih(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(Bw(e,this.base))},scale:function(e){return Vw(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=Bw(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return fT.depth=n,pT.lookup=this._lookup,Vw(n===2?e:this.intervalStub.transformOut(e,fT),this.base,pT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Ds(t,n)||t<=0||n<=0)){var r=mT,i=mT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[cT]=t,r[lT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[cT]=Bw(t,o),i[lT]=Bw(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Ds(t[0],t[1])&&Ao(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(vw);vw.registerClass(dT);var fT={},pT={},mT=[],hT={value:1,category:1,time:1,log:1},gT=ds();function _T(e){var t=e.get(`type`);return(t==null||!je(hT,t)&&!vw.getClass(t))&&(t=`value`),t}function vT(e,t,n){var r=nh(),i;switch(r&&(i=kT(e,t,n)),t){case`category`:return new Kw({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:xs()});case`time`:return new Xw({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new dT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new Jw({breakOption:i});default:return new((vw.getClass(t))||Jw)({})}}function yT(e,t,n){var r=n?Dw(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Ds(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function bT(e){gT(e).noOnMyZero=!0}function xT(e){return gT(e).noOnMyZero}function ST(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=vh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(U(t)){if(e.type===`category`)return function(n,r){return t(CT(e,n),n.value-e.scale.getExtent()[0],null)};var r=nh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(CT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function CT(e,t){var n=e.scale;return Lw(n)?n.getLabel(t):t.value}function wT(e){return e.get(`interval`)??`auto`}function TT(e){return e.type===`category`&&wT(e.getLabelModel())===0}function ET(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[fw(e,t)]=!0}),B(n)}function DT(e){return e===`middle`||e===`center`}function OT(e){return e.getShallow(`show`)}function kT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!nh()){process.env.NODE_ENV!==`production`&&Z('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!AT(t)){process.env.NODE_ENV!==`production`&&Z(`Axis`+(e instanceof vg?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function AT(e){return e!==`category`}function jT(e,t,n,r,i,a){var o=Iw(e),s=o?e.intervalStub:e;if(s.setExtent(r[0],r[1]),o){var c=e.powStub,l={depth:2},u=e.transformOut(r[0],l),d=e.transformOut(r[1],l),f=Uw(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function MT(e,t){return Lw(e)?e.getRawOrdinalNumber(t.value):t.value}function NT(e,t){return Lw(e)&&!!t.get(`boundaryGap`)}var PT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),FT=As(),IT=ds(),LT=ds(),RT;process.env.NODE_ENV!==`production`&&(RT=function(e){q(e&&e.model&&e.model.uid&&e.model.ecModel)});function zT(e,t){var n=e.model,r=IT(Vb(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function BT(e,t){return process.env.NODE_ENV!==`production`&&(q(t!=null),RT(e)),UT(zT(e,t))}function VT(e,t){process.env.NODE_ENV!==`production`&&RT(e);var n=[];return HT(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(UT(e))}),n}function HT(e,t){var n=IT(Vb(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function UT(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function WT(e,t){process.env.NODE_ENV!==`production`&&RT(e);var n=e.model.ecModel,r=IT(Vb(n)).axSer;r&&KT(n,r.get(e.model.uid),t)}function GT(e,t,n){process.env.NODE_ENV!==`production`&&(q(t!=null),RT(e));var r=zT(e,t);r&&KT(e.model.ecModel,r.sers,n)}function KT(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function qT(e,t,n){process.env.NODE_ENV!==`production`&&q(t!=null);var r=IT(Vb(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&q(e.sers.length>0),n(e.axis)})}function JT(e,t){process.env.NODE_ENV!==`production`&&RT(e);var n=e.model,r=IT(Vb(n.ecModel)).keys;r&&L(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=zT(e,n);q(r&&r.sers.length>0)}t(n)})}function YT(e){var t=LT(Bb(e)),n=t.keyed||=J();HT(e,function(t,r,i){var a=n.get(r)||n.set(r,J()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&ZT.liPosMinGap(e,t,o)})}function XT(e,t){ZT[e]=t}var ZT={};function QT(e,t,n){if(e){var r=t.ecModel,i=IT(Vb(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){RT(e);var o=i.axSerPairCheck||=J(),s=``+a+`|&`+t.uid;q(!o.get(s)),o.set(s,1)}var c=i.axSer||=J(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&q(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=nE.get($T(d,f,n))||nE.get($T(d,f,null));if(p){var m=i.keyed||=J(),h=i.keys||=J(),g=p.key,_=m.get(g)||m.set(g,J()),v=_.get(a);v||(v=_.set(a,{axis:e,sers:[],serByIdx:[]}),v.metrics=p.getMetrics(e),(h.get(a)||h.set(a,[])).push(g)),v.sers.push(t),v.serByIdx[t.seriesIndex]=t}}}function $T(e,t,n){return e+`|&`+K(t,!0)+`|&`+(n||``)}function eE(e,t){var n=$T(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(q(t.seriesType&&t.key&&!tE.get(t.key)&&!nE.get(n)),tE.set(t.key,1)),nE.set(n,t),FT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:YT})})}var tE;process.env.NODE_ENV!==`production`&&(tE=J());var nE=J(),rE=ds(),iE=3,aE=function(){function e(e,t,n,r,i){var a=Lw(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Pw(e)||Iw(e)||Fw(e))&&(Cs(l,sE(e,t.get(`dataMin`,!0))),ws(l,sE(e,t.get(`dataMax`,!0)))),Os(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=sE(e,U(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=sE(e,U(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=cE(e,t),h=a?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=a?s?l[0]:o?0:NaN:l[0]-m[0]*h,u[1]??=a?s?l[1]:o?o-1:NaN:l[1]+m[1]*h,!Es(u[0])&&(u[0]=NaN),!Es(u[1])&&(u[1]=NaN);var g=s||ge(u[0])||ge(u[1])||a&&!o,_=Pw(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=sE(e,t.get(`startValue`,!0)),x=b!=null;!Ao(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Ao(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),oE(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),oE(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function oE(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),ks(t))}function sE(e,t){return t==null?null:ge(t)?NaN:e.parse(t)}function cE(e,t){var n;if(Lw(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(process.env.NODE_ENV!==`production`&&r===!0&&console.warn(`Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to 0.`),r=null),n=H(r)?r:[r,r]}return[lE(n[0]),lE(n[1])]}function lE(e){return ga(typeof e==`boolean`?0:e,1)||0}function uE(e){var t=rE(e.scale);return t.extent||=xs(),t}function dE(e,t){uE(e).dimIdxInCoord=t.get(e.dim)}function fE(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&q(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&q(n.rawExtentInfo.from!==t||t===2);return}pE(n,e,i,r,t)}function pE(e,t,n,r,i){var a=uE(t),o=a.extent,s=!1;WT(t,function(r){if(r.boxCoordinateSystem){var i=ng(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&Z(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(H(i)){var l=i[c];l!=null&&!H(l)&&Ss(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;L(ET(u,n),function(e){Ts(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=yE(e,t,r);hE(e,new aE(e,r,o,s,c),i),a.extent=null}function mE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&q(!n.rawExtentInfo),hE(n,new aE(n,e.model,t,!1,!1),iE)}function hE(e,t,n){e.rawExtentInfo=t,t.from=n}function gE(e,t){process.env.NODE_ENV!==`production`&&q(!_E.get(e)),_E.set(e,t)}var _E=J();function vE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(!i||!e.rawExtentInfo),e.rawExtentInfo||mE({scale:e,model:t},i||xs());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function yE(e,t,n){var r=NT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return JT(t,function(e){a=!!_E.get(e)||a}),a}function bE(e,t,n,r){if(n.ctnShp){var i;if(JT(e,function(t){var n=_E.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Cs(i,a[0]),ws(i,a[1]),bT(e))}}),i){var a=t.getExtent();if(Lw(t))e.onBand||t.setExtent2(1,Ya(a[0],a[0]+i[0]),X(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Ya(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=X(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}}function xE(e,t){var n=Iw(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=Hw(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?CE(r,t):SE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=zw(d)),i[0]||(s[0]=uo(Qa(s[0]/u)*u,l)),i[1]||(s[1]=uo($a(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),jT(e,i,o,s,a,c)}function SE(e,t){var n=Ww(t.splitNumber,5),r=kw(e);process.env.NODE_ENV!==`production`&&q(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=wo(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=zw(o),c=e.getExtent(),l=[uo($a(c[0]/o)*o,s),uo(Qa(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function CE(e,t){var n=Ww(t.splitNumber,10),r=e.getExtent(),i=kw(e);process.env.NODE_ENV!==`production`&&q(isFinite(i)&&i>0);var a=X(So(i),1);n/i*a<=.5&&(a*=10);var o=zw(a),s=[uo($a(r[0]/a)*a,o),uo(Qa(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function wE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&q(r&&i),TE(t,n,r,i,null)}function TE(e,t,n,r,i){var a=vE(e,t,r,n,i),o=Pw(e)||Fw(e);EE(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&bE(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function EE(e,t){DE[e.type](e,t)}var DE={interval:xE,log:xE,time:sT,ordinal:Me},OE=[],kE={registerPreprocessor:uC,registerProcessor:dC,registerPostInit:fC,registerPostUpdate:pC,registerUpdateLifecycle:mC,registerAction:hC,registerCoordinateSystem:gC,registerLayout:_C,registerVisual:vC,registerTransform:CC,registerLoading:xC,registerMap:SC,registerImpl:Nb,PRIORITY:dS,ComponentModel:vg,ComponentView:ky,SeriesModel:by,ChartView:Ny,registerComponentModel:function(e){vg.registerClass(e)},registerComponentView:function(e){ky.registerClass(e)},registerSeriesModel:function(e){by.registerClass(e)},registerChartView:function(e){Ny.registerClass(e)},registerCustomSeries:function(e,t){Ib(e,t)},registerSubTypeDefaulter:function(e,t){vg.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ha(e,t)}};function AE(e){if(H(e)){L(e,function(e){AE(e)});return}I(OE,e)>=0||(OE.push(e),U(e)&&(e={install:e}),e.install(kE))}var jE=ds(),ME=ds(),NE={estimate:1,determine:2};function PE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function FE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:R(LE(n,r),function(t,n){return{formattedLabel:ST(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?RE(e,t):VE(e)}function IE(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:LE(i,r)}:e.type===`category`?BE(e,t):{ticks:r.getTicks(n)}}function LE(e,t){var n=t.getExtent(),r=[];return L(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),Ms(r,Ps,null),fo(r),R(r,function(e){return{value:e}})}function RE(e,t){var n=e.getLabelModel(),r=zE(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function zE(e,t,n){var r=UE(e),i=wT(t),a=n.kind===NE.estimate;if(!a){var o=GE(r,i);if(o)return o}var s,c;U(i)?s=QE(e,i,!1):(c=i===`auto`?qE(e,n):i,s=QE(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return KE(r,i,l),!0}):KE(r,i,l),l}function BE(e,t){var n=HE(e),r=wT(t),i=GE(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),U(r))a=QE(e,r,!0);else if(r===`auto`){var s=zE(e,e.getLabelModel(),PE(NE.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tick})}else o=r,a=QE(e,o,!0);return KE(n,r,{ticks:a,tickCategoryInterval:o})}function VE(e){var t=e.scale.getTicks(),n=ST(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var HE=WE(`axisTick`),UE=WE(`axisLabel`);function WE(e){return function(t){return ME(t)[e]||(ME(t)[e]={list:[]})}}function GE(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function KE(e,t,n){return e.list.push({key:t,value:n}),n}function qE(e,t){if(t.kind===NE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return ME(e).autoInterval=n,!0}),n}return ME(e).autoInterval??(ME(e).autoInterval=e.calculateCategoryInterval(t))}function JE(e,t){var n=t.kind,r=ZE(e),i=ST(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1,u=40;c>u&&(l=Math.max(1,Math.floor(c/u)));for(var d=s[0],f=e.dataToCoord(d+1)-e.dataToCoord(d),p=Math.abs(f*Math.cos(a)),m=Math.abs(f*Math.sin(a)),h=0,g=0;d<=s[1];d+=l){var _=0,v=0,y=fa(i({value:d}),r.font,`center`,`top`);_=y.width*1.3,v=y.height*1.3,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/p,x=g/m;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===NE.estimate?(t.out.noPxChangeTryDetermine.push(V(YE,null,e,S,c)),S):XE(e,S,c)??S}function YE(e,t,n){return XE(e,t,n)==null}function XE(e,t,n){var r=jE(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function ZE(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}function QE(e,t,n){var r=ST(e),i=e.scale,a=[],o=U(t);return Gw(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}var $E=.8;function eD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Ow(r);Ao(o)||(o=NaN);var s=e.getExtent(),c=Xa(s[1]-s[0]);return Lw(r)?tD(n,e,o,c):i?nD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&q(!1),a!=null&&(n.w=Ao(n.w)?X(a,n.w):a),n}function tD(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}function nD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&q(i);var a=!1,o=-1/0;L(i.key?[BT(t,i.key)]:VT(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Ao(n)&&n>0&&Ao(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*$E,e.w2=e.w*n/r)}var rD=[0,1],iD=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),ao(e,rD,aD(this),t)},e.prototype.coordToData=function(e,t){var n=ao(e,aD(this),rD,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=R(IE(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(MT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=oD(this,n,r);return R(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Lw(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),R(this.scale.getMinorTicks(e),function(e){return R(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=PE(NE.determine),FE(this,e).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return eD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=PE(NE.determine),JE(this,e)},e}();function aD(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}function oD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=eD(e).w;if(!i)return!1;L(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var sD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],cD=1,lD=2,uD=cD|lD;function dD(e,t,n){n||=uD,t?e.dirty|=n:e.dirty&=~n}function fD(e,t){return t||=uD,e.dirty==null||!!(e.dirty&t)}function pD(e){if(e)return fD(e)&&mD(e,e.label,e),e}function mD(e,t,n){var r=t.getComputedTransform();e.transform=tm(e.transform,r);var i=e.localRect=em(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=Em.textMargin);for(var d=0;d<4;d++)hD[d]=u===Em.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Em.textMargin&&Kp(i,hD,!1,!1);var f=e.rect=em(e.rect,i);return r&&f.applyTransform(r),u===Em.minMargin&&Kp(f,hD,!1,!1),e.axisAligned=Qp(r),(e.label=e.label||{}).ignore=t.ignore,dD(e,!1),dD(e,!0,lD),e}var hD=[0,0,0,0];function gD(e,t,n){return e.transform=tm(e.transform,n),e.localRect=em(e.localRect,t),e.rect=em(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Qp(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function _D(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}function vD(e,t){for(var n=0;n<sD.length;n++){var r=sD[n];e[r]??(e[r]=t[r])}return pD(e)}function yD(e){var t=e.obb;return(!t||fD(e,lD))&&(e.obb=t||=new rp,t.fromBoundingRect(e.localRect,e.transform),dD(e,!1,lD)),t}function bD(e){var t=[];e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}for(var r=0;r<e.length;r++){var i=pD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(xD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function xD(e,t,n,r){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,r)?!1:e.axisAligned&&t.axisAligned?!0:yD(e).intersect(yD(t),n,r)}var SD={left:0,right:0,top:0,bottom:0},CD=[`25%`,`25%`],wD=`cartesian2d`,TD=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=hg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&mg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&mg(this.option.outerBounds,t.outerBounds)},t.type=`grid`,t.dependencies=[`xAxis`,`yAxis`],t.layoutMode=`box`,t.defaultOption={show:!1,z:0,left:`15%`,top:65,right:`10%`,bottom:80,containLabel:!1,outerBoundsMode:`auto`,outerBounds:SD,outerBoundsContain:`all`,outerBoundsClampWidth:CD[0],outerBoundsClampHeight:CD[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(vg),ED=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,hs).models[0]},t.type=`cartesian2dAxis`,t}(vg);re(ED,PT);var DD={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:Q.color.axisLine,width:1,type:`solid`},symbol:[`none`,`none`],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:Q.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Q.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[Q.color.backgroundTint,Q.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Q.color.neutral00,borderColor:Q.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},OD=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},DD),kD=N({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Q.color.axisMinorSplitLine,width:1}}},DD),AD={category:OD,value:kD,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},kD),log:F({logBase:10},kD)},jD=null;function MD(){return jD}function ND(e,t,n,r){L(hT,function(i,a){var o=N(N({},AD[a],!0),r,!0),c=function(e){s(n,e);function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return n.prototype.mergeDefaultAndTheme=function(e,t){var n=pg(this),r=n?hg(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=PD(e),n&&mg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=bw.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){var t=MD();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(c)}),e.registerSubTypeDefaulter(t+`Axis`,PD)}function PD(e){return e.type||(e.data?`category`:`value`)}var FD=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return R(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),oe(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),ID=[`x`,`y`];function LD(e){return(e.type===`interval`||e.type===`time`)&&!ah(e)}var RD=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=wD,t.dimensions=ID,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!LD(e)||!LD(t))){var n=Dw(e,null),r=Dw(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(!(!o||!s)){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Ft([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis(`x`).containData(e[0])&&this.getAxis(`y`).containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new Y(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return qe(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return t||=[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return qe(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e;return new Y(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(FD),zD=function(e){s(t,e);function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(iD),BD=`expandAxisBreak`,VD=Math.PI,HD=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],UD=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],WD=ds(),GD=ds(),KD=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}();function qD(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=_O(e.axisName)&&DT(e.nameLocation);L(r,function(e){var t=pD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Ft(JD,n.transform):kt(JD),t.transform&&jt(JD,JD,t.transform),Y.copy(YD,t.localRect),YD.applyTransform(JD),s?s.union(YD):Y.copy(s=new Y(0,0,0,0),YD))}});var l=Math.abs(a.dirVec.x)>.1?`x`:`y`,u=a.transGroup[l];if(o.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&s){var d=i.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;s.union(new Y(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var JD=Ot(),YD=new Y(0,0,0,0),XD=function(e,t,n,r,i,a){if(DT(e.nameLocation)){var o=a.stOccupiedRect;o&&ZD(gD({},o,a.transGroup.transform),r,i)}else QD(a.labelInfoList,a.dirVec,r,i)};function ZD(e,t,n){var r=new It;xD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&_D(t,r)}function QD(e,t,n,r){for(var i=It.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||ZD(s,n,r)}}var $D=function(){function e(e,t,n,r){this.group=new Fa,this._axisModel=e,this._api=t,this._local={},this._shared=r||new KD(XD),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;q(!t.axisLine&&!t.axisTickLabelDetermine),t.axisName=t.axisTickLabelEstimate=!1}var n=this._cfg.raw;n.position=e.position,n.labelOffset=e.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=K(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=K(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:K(e.nameDirection,1),tickDirection:K(e.tickDirection,1),labelDirection:K(e.labelDirection,1),labelOffset:K(e.labelOffset,0),silent:K(e.silent,!0),axisName:r,nameLocation:ve(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:_O(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(q(a.position!=null),q(a.rotation!=null)),this._cfg=a;var o=new Fa({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new It(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},L(eO,function(r){e[r]&&tO[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r=vo(t-e),i,a;return yo(r)?(a=n>0?`top`:`bottom`,i=`center`):yo(r-VD)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<VD?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:r,textAlign:i,textVerticalAlign:a}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),eO=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],tO={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;q(!s.axisLine),s.axisLine=!0}var c=r.get([`axisLine`,`show`]);if(c===`auto`&&(c=!0,e.raw.axisLineAutoShow!=null&&(c=!!e.raw.axisLineAutoShow)),c){var l=r.axis.getExtent(),u=a.transform,d=[l[0],0],f=[l[1],0],p=d[0]>f[0];u&&(qe(d,d,u),qe(f,f,u));var m=P({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),h={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:m};if(r.get([`axisLine`,`breakLine`])&&ah(r.axis.scale))MD().buildAxisBreakLine(r,i,a,h);else{var g=new Rf(P({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Ap(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);W(_)&&(_=[_,_]),(W(v)||ue(v))&&(v=[v,v]);var y=Qb(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];L([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((d[0]-f[0])*(d[0]-f[0])+(d[1]-f[1])*(d[1]-f[1]))}],function(t,n){if(_[n]!==`none`&&_[n]!=null){var r=Zb(_[n],-b/2,-x/2,b,x,m.stroke,!0),a=t.r+t.offset,o=p?f:d;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;q(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}uO(t,i,s)&&nO(e,t,n,r,i,a,o,NE.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){if(process.env.NODE_ENV!==`production`){var c=n.ensureRecord(r).ready;c.axisTickLabelDetermine=!0}uO(t,i,s)&&nO(e,t,n,r,i,a,o,NE.determine);var l=cO(e,i,a,r);aO(e,t.labelLayoutList,l),lO(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);if(process.env.NODE_ENV!==`production`){var l=c.ready;q(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(_O(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new It(0,0),v=new It(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=Ot();v.transform(Nt(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*VD/180);var x,S;DT(d)?x=$D.innerTextLayout(e.rotation,b??e.rotation,f):(x=rO(e.rotation,d,b||0,h),S=e.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(x.rotation)),!isFinite(S)&&(S=null)));var C=p.getFont(),w=r.get(`nameTruncate`,!0)||{},T=w.ellipsis,E=_e(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new au({x:_.x,y:_.y,rotation:x.rotation,silent:$D.isLabelSilent(r),style:hm(p,{text:u,font:C,overflow:`truncate`,width:E,ellipsis:T,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||x.textAlign,verticalAlign:p.get(`verticalAlign`)||x.textVerticalAlign}),z2:1});if(Yp({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=$D.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,yu(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=pD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:DT(d)?HD[D]:UD[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&q(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function nO(e,t,n,r,i,a,o,s){fO(t)||dO(e,t,i,s,r,o);var c=t.labelLayoutList;mO(e,r,c,a),yO(r,e.rotation,c);var l=e.optionHideOverlap;iO(r,c,l),l&&bD(oe(c,function(e){return e&&!e.label.ignore})),qD(e,n,r,c)}function rO(e,t,n,r){var i=vo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return yo(i-VD/2)?(o=c?`bottom`:`top`,a=`center`):yo(i-VD*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<VD*1.5&&i>VD/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function iO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(TT(r))return;function a(e,a,o){var s=pD(t[a]),c=pD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=WD(s.label).labelInfo.tick;if(Fw(l)&&u.notNice||Lw(l)&&u.offInterval){oO(s.label);return}}if(e===!1||s.suggestIgnore){oO(s.label);return}if(c.suggestIgnore){oO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=vD({marginForce:f},s),c=vD({marginForce:f},c)}xD(s,c,null,{touchThreshold:d})&&oO(e?c.label:s.label)}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)}function aO(e,t,n){e.showMinorTicks||L(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=GD(r),a=WD(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){oO(r);return}}})}function oO(e){e&&(e.ignore=!0)}function sO(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(qe(o,o,t),qe(s,s,t));var u=new Rf({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ap(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=GD(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function cO(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=sO(i.getTicksCoords(),n.transform,c,F(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function lO(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(!(!e.showMinorTicks||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=F(c.getLineStyle(),F(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=sO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function uO(e,t,n){if(fO(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&q(e.labelGroup&&r);var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a&&=i[o]();if(a)return!1}i.length&&(t.remove(e.labelGroup),pO(e,null,null,null))}return!0}function dO(e,t,n,r,i,a){var o=i.axis,s=_e(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Fa;n.add(c);var l=PE(r);if(!s||o.scale.isBlank()){pO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(_e(e.raw.labelRotate,u.get(`rotate`))||0)*VD/180,p=$D.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;L(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=MT(o.scale,n);if(m&&m[f]){var y=m[f];G(y)&&y.textStyle&&(l=new Lm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=K(l.getShallow(`alignMinLabel`,!0),x),C=K(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=K(l.getShallow(`verticalAlignMinLabel`,!0),w),E=K(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new au({x:0,y:0,rotation:0,silent:$D.isLabelSilent(i),z2:D,style:hm(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:U(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=WD(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Yp({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=$D.makeAxisEventDataBase(i);A.targetType=`axisLabel`,A.value=s,A.tickIndex=t;var j=e.tick.break;if(j){var ee=j.parsedBreak;A.break={start:ee.vmin,end:ee.vmax}}o.type===`category`&&(A.dataIndex=f),yu(O).eventData=A,j&&vO(i,a,O,j)}h.push(O),c.add(O)}),pO(t,R(h,function(e){return{label:e,priority:WD(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function fO(e){return!!e.labelLayoutList}function pO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function mO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);L(n,function(n,a){var o=pD(n);if(o){var s=o.label,c=WD(s);o.suggestIgnore=s.ignore,s.ignore=!1,ra(hO,gO);var l=t.axis;hO.x=l.dataToCoord(MT(l.scale,c.labelInfo.tick)),hO.y=e.labelOffset+e.labelDirection*i,hO.rotation=c.layoutRotation,r.add(hO),hO.updateTransform(),r.remove(hO),hO.decomposeTransform(),ra(s,hO),s.markRedraw(),dD(o,!0),pD(o)}})}var hO=new eu,gO=new eu;function _O(e){return!!e}function vO(e,t,n,r){n.on(`click`,function(n){var i={type:BD,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function yO(e,t,n){var r=nh();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&WD(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&L(i,function(r){MD().adjustBreakLabelPair(e.axis.inverse,t,[pD(n[r[0]]),pD(n[r[1]])])})}}function bO(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),_e(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function xO(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function SO(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,hs).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+ve(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function CO(e,t,n,r,i,a){for(var o=bO(e,n),s=!1,c=!1,l=0;l<t.length;l++)Nw(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new $D(n,r,o,i)}function wO(e,t,n){var r=bO(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();L(B(r),function(e){e!==`position`&&e!==`labelOffset`&&q(r[e]===i[e])})}e.updateCfg(r)}function TO(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&q(n&&r&&(n instanceof Jw||n instanceof dT)&&(t instanceof Jw||t instanceof dT));var i=vE(n,r,r.ecModel,e,null),a=Iw(n),o=Iw(t)?t.intervalStub:t,s=a?n.intervalStub:n,c=n.base,l=o.getTicks(),u=o.getTicks({expandToNicedExtent:!0}),d=l.length-1;process.env.NODE_ENV!==`production`&&(q(!ah(t)&&!ah(n)),q(d>0),q(u.length===l.length),q(l[0].value<=l[d].value),q(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(q(u[1].value===l[1].value),q(u[d-1].value===l[d-1].value)));var f,p,m;if(d===1)f=p=0,m=1;else if(d===2){var h=Xa(l[0].value-l[1].value),g=Xa(l[1].value-l[2].value);f=p=0,h===g?m=2:(m=1,h<g?f=h/g:p=g/h)}else{var _=o.getConfig().interval;f=(1-(l[0].value-u[0].value)/_)%1,p=(1-(u[d].value-l[d].value)/_)%1,m=d-+!!f-!!p}process.env.NODE_ENV!==`production`&&q(m>=1);var v=i.zoomFixMM,y=v[0]||v[1],b=[i.fixMM[0]||y,i.fixMM[1]||y],x=n.getExtent(),S=s.getExtent(),C=Hw(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*X(c,2):Rw(E),D=zw(E);process.env.NODE_ENV!==`production`&&n>=t&&Io("incorrect impl in `scaleCalcAlign`.")}function j(){w=uo(k-E*f,D)}function ee(){T=uo(O+E*p,D)}function M(){k=f?uo(w+E*f,D):w}function N(){O=p?uo(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var P=e.getExtent(),te=Xa(P[1]-P[0]);D=ho([T,w],te,.5/m),M(),N(),Ao(D)&&(E=uo(E,D))}else{var F=C[1]-C[0];E=a?X(So(F),1):wo(F/m,2),D=zw(E),b[0]?(w=C[0],A(function(){if(M(),O=uo(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(N(),k=uo(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=uo($a(C[0]/E)*E,D),O=uo(Qa(C[1]/E)*E,D);var e=Za((O-k)/E);if(e<=m){var t=m-e,n=void 0,r=i.incl0||a;if(r&&C[0]===0)n=[0,t];else if(r&&C[1]===0)n=[t,0];else{var o=Qa(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=uo(k-E*n[0],D),O=uo(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}jT(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var EO=[[3,1],[0,2]],DO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ID,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;L(this._axesList,function(e){fE(e,1);var t=e.scale;Lw(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=B(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):wE(i)}L(n,function(e){MO(e,e.__alignTo)?wE(e):TO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};L(n.x,function(e){kO(n,`y`,e,i)}),L(n.y,function(e){kO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=fg(e,t),i=this._rect=ug(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(PO(a,i),!n){var c=RO(i,o,a,s,t),l=void 0;if(s)IO?(IO(this._axesList,i),PO(a,i)):(process.env.NODE_ENV!==`production`&&Fo("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=LO(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=BO(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=LO(d,f,p,i,a,c,r))}zO(i,a,NE.determine,null,l,r),L(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}G(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents(`xAxis`,hs).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,hs).models[0],i=e.gridModel,a=this._coordsList,o,s;return t?(o=t.coordinateSystem,I(a,o)<0&&(o=null)):n&&r?o=this.getCartesian(n.componentIndex,r.componentIndex):n?s=this.getAxis(`x`,n.componentIndex):r?s=this.getAxis(`y`,r.componentIndex):i&&i.coordinateSystem===this&&(o=this._coordsList[0]),{cartesian:o,axis:s}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}this._axesMap=o,L(o.x,function(t,n){L(o.y,function(i,a){var o=`x`+n+`y`+a,s=new RD(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),jO(o.x),jO(o.y);function c(t){return function(n,r){if(OO(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var l=_T(n),u=new zD(t,vT(n,l,!0),[0,0],l,c);u.onBand=NT(u.scale,n),u.inverse=n.get(`inverse`),n.axis=u,u.model=n,u.grid=i,u.index=r,i._axesList.push(u),o[t][r]=u,s[t]++}}}},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return L(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);I(t,i)<0&&t.push(i),I(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),L(o._axesList,function(t){dE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;ig({targetModel:e,coordSysType:wD,coordSysProvider:r});function r(){var r=SO(e),i=r.xAxisModel,a=r.yAxisModel;t=i.axis,n=a.axis;var o=i.getCoordSysModel();if(process.env.NODE_ENV!==`production`){if(!o)throw Error(`Grid "`+ve(i.get(`gridIndex`),i.get(`gridId`),0)+`" not found`);if(i.getCoordSysModel()!==a.getCoordSysModel())throw Error(`xAxis and yAxis must use the same grid`)}return o.coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}t&&n&&(QT(t,e,wD),QT(n,e,wD))},this),r},e.dimensions=ID,e.dimIdxMap=RC(ID),e}();function OO(e,t){return e.getCoordSysModel()===t}function kO(e,t,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(!s)return;if(c!=null)AO(s,i[c])&&(a=i[c]);else for(var l in i)if(je(i,l)&&AO(s,i[l])&&!r[u(i[l])]){a=i[l];break}a&&(r[u(a)]=!0);function u(e){return e.dim+`_`+e.index}}function AO(e,t){if(!t)return!1;var n=t.scale,r=yT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&xT(t)&&(i=!1),i}function jO(e){for(var t=B(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Nw(a.scale)&&kT(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):n=a)}n||=r.pop(),n&&L(r,function(e){e.__alignTo=n})}function MO(e,t){return ah(e.scale)||ah(t.scale)||t.scale.getTicks().length<2}function NO(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}function PO(e,t){L(e.x,function(e){return FO(e,t.x,t.width)}),L(e.y,function(e){return FO(e,t.y,t.height)})}function FO(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),NO(e,t)}var IO;function LO(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&q(t===`all`||t===`axisLabel`),zO(r,i,NE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=z(s,function(e){return e>0})==null;return Kp(r,s,!0,!0,n),PO(i,r),c;function l(e){L(i[vp[e]],function(t){if(OT(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(MT(t.scale,WD(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;if(c){var s=DT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[vp[n]]-t[vp[n]],a=t[yp[n]]+t[vp[n]]-(e[yp[n]]+e[vp[n]]);i=d(i,1-r),a=d(a,r);var o=EO[n][0],c=EO[n][1];s[o]=X(s[o],i),s[c]=X(s[c],a)}function d(e,t){return e>0&&!ge(t)&&t>1e-4&&(e/=t),e}}function RO(e,t,n,r,i){var a=new KD(VO);return L(n,function(n){return L(n,function(n){if(OT(n.model)){var o=!r;n.axisBuilder=CO(e,t,n.model,i,a,o)}})}),a}function zO(e,t,n,r,i,a){var o=n===NE.determine;L(t,function(t){return L(t,function(t){OT(t.model)&&(wO(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};c(0),c(1);function c(t){s[vp[1-t]]=e[yp[t]]<=a.refContainer[yp[t]]*.5?0:1-t==1?2:1}L(t,function(e,t){return L(e,function(e){OT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function BO(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=ug(e.get(`outerBounds`,!0)||SD,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Z(`Invalid grid[`+e.componentIndex+`].outerBoundsMode.`);var a=e.get(`outerBoundsContain`,!0),o;a==null||a===`auto`?o=`all`:I([`all`,`axisLabel`],a)<0?(process.env.NODE_ENV!==`production`&&Z(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[co(K(e.get(`outerBoundsClampWidth`,!0),CD[0]),t.width),co(K(e.get(`outerBoundsClampHeight`,!0),CD[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var VO=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;XD(e,t,n,r,i,a),DT(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&QD(e.labelInfoList,e.dirVec,r,i)})};function HO(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return UO(n,e,t),n.seriesInvolved&&GO(n,e),n}function UO(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];L(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=QO(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),ce(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&L(f.baseAxes,ce(p,!d||`cross`,u)),d&&L(f.otherAxes,ce(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!ZO(d))){s??=d.get(`triggerTooltip`),d=r?WO(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=QO(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:ZO(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=KO(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function WO(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};L(s,function(e){c[e]=M(o.get(e))}),c.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(c.type=`line`);var l=c.label||={};if(l.show??=!1,i===`cross`&&(l.show=o.get([`label`,`show`])??!0,!a)){var u=c.lineStyle=o.get(`crossStyle`);u&&F(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Lm(c,n,r))}function GO(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);!n||!n.model||r===`none`||r===!1||r===`item`||i===!1||t.get([`axisPointer`,`show`],!0)===!1||L(e.coordSysAxesInfo[QO(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}function KO(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(qO(a[r+`AxisId`],n.id)||qO(a[r+`AxisIndex`],n.componentIndex)||qO(a[r+`AxisName`],n.name))return i}}function qO(e,t){return e===`all`||H(e)&&I(e,t)>=0||e===t}function JO(e){var t=YO(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=ZO(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}function YO(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[QO(e)]}function XO(e){var t=YO(e);return t&&t.axisPointerModel}function ZO(e){return!!e.get([`handle`,`show`])}function QO(e){return e.type+`||`+e.id}var $O={},ek=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(t,n,r,i){this.axisPointerClass&&JO(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=XO(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){if(process.env.NODE_ENV!==`production`&&$O[e])throw Error(`axisPointer `+e+` exists`);$O[e]=t},t.getAxisPointerClass=function(e){return e&&$O[e]},t.type=`axis`,t}(ky),tk=ds();function nk(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel(`splitArea`),o=a.getModel(`areaStyle`),s=o.get(`color`),c=r.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(l.length){var u=s.length,d=tk(e).splitAreaColors,f=J(),p=0;if(d)for(var m=0;m<l.length;m++){var h=d.get(l[m].tickValue);if(h!=null){p=(h+(u-1)*m)%u;break}}var g=i.toGlobalCoord(l[0].coord),_=o.getAreaStyle();s=H(s)?s:[s];for(var m=1;m<l.length;m++){var v=i.toGlobalCoord(l[m].coord),y=void 0,b=void 0,x=void 0,S=void 0;i.isHorizontal()?(y=g,b=c.y,x=v-y,S=c.height,g=y+x):(y=c.x,b=g,x=c.width,S=v-b,g=b+S);var C=l[m-1].tickValue;C!=null&&f.set(C,p),t.add(new eu({anid:C==null?null:`area_`+C,shape:{x:y,y:b,width:x,height:S},style:F({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}tk(e).splitAreaColors=f}}}function rk(e){tk(e).splitAreaColors=null}var ik=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],ak=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new Fa,this.group.add(this._axisGroup),OT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),L(ik,function(e){t.get([e,`show`])&&ok[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||Rp(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){rk(this)},t.type=`cartesianAxis`,t}(ek),ok={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=o.get(`showMinLine`)!==!1,u=o.get(`showMaxLine`)!==!1;c=H(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if(!(v===0&&!l||v===m.length-1&&!u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new Rf({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:F({stroke:c[x]},_),silent:!0});Ap(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new Rf({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Ap(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){nk(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=MD(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},sk=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(ak),ck=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=sk.type,t}return t.type=`yAxis`,t}(ak),lk=function(e){s(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new eu({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(ky),uk={offset:0};function dk(e){e.registerComponentView(lk),e.registerComponentModel(TD),e.registerCoordinateSystem(`cartesian2d`,DO),ND(e,`x`,ED,uk),ND(e,`y`,ED,uk),e.registerComponentView(sk),e.registerComponentView(ck),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var fk=ds(),pk=M,mk=V,hk=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!r&&this._lastValue===i&&this._lastStatus===a)){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`){o&&o.hide(),s&&s.hide();return}o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(!o)o=this._group=new Fa,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=ce(gk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}bk(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&eD(r).w>o)return!0;if(a){var s=YO(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return n===!0},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=fk(e).pointerEl=new gp[i.type](pk(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=fk(e).labelEl=new au(pk(t.label));e.add(i),vk(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=fk(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=fk(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),vk(i,r))},e.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),r=this._handle,i=t.getModel(`handle`),a=t.get(`status`);if(!i.get(`show`)||!a||a===`hide`){r&&n.remove(r),this._handle=null;return}var o;this._handle||(o=!0,r=this._handle=Vp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Ct(e.event)},onmousedown:mk(this._onHandleDragMove,this,0,0),drift:mk(this._onHandleDragMove,this),ondragend:mk(this._onHandleDragEnd,this)}),n.add(r)),bk(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);H(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Uy(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){gk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,yk(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(yk(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(yk(r)),fk(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Wy(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function gk(e,t,n,r){_k(fk(n).lastProp,r)||(fk(n).lastProp=r,t?lp(n,r,e):(n.stopAnimation(),n.attr(r)))}function _k(e,t){if(G(e)&&G(t)){var n=!0;return L(t,function(t,r){n&&=_k(e[r],t)}),!!n}return e===t}function vk(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function yk(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bk(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function xk(e){var t=e.get(`type`),n=e.getModel(t+`Style`),r;return t===`line`?(r=n.getLineStyle(),r.fill=null):t===`shadow`&&(r=n.getAreaStyle(),r.stroke=null),r}function Sk(e,t,n,r,i){var a=wk(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=Wh(o.get(`padding`)||0),c=o.getFont(),l=fa(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),Ck(u,d,f,r);var h=o.get(`backgroundColor`);(!h||h===`auto`)&&(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:hm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function Ck(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function wk(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:CT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};L(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):U(o)&&(a=o(s))}return a}function Tk(e,t,n){var r=Ot();return Nt(r,r,n.rotation),Mt(r,r,n.position),Pp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Ek(e,t,n,r,i,a){var o=$D.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),Sk(t,r,i,a,{position:Tk(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Dk(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Ok(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function kk(e,t,n){return eD(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Ak(e,t,n){return[X(Ya(t[0],t[1]),e-n/2),Ya(e+n/2,X(t[0],t[1]))]}var jk=function(e){s(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=Mk(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=xk(r),f=Nk[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}Ek(t,e,bO(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=bO(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Tk(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=Mk(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Ya(o[1],l[c]),l[c]=X(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(hk);function Mk(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var Nk={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:Dk([t,r[0]],[t,r[1]],Pk(e))}},shadow:function(e,t,n,r,i,a){var o=kk(e,i,a),s=r[1]-r[0],c=Ak(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:Ok([l,r[0]],[u-l,s],Pk(e))}}};function Pk(e){return e.dim===`x`?0:1}var Fk=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`axisPointer`,t.defaultOption={show:`auto`,z:50,type:`line`,snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Q.color.border,width:1,type:`dashed`},shadowStyle:{color:Q.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:Q.color.neutral00,padding:[5,7,5,7],backgroundColor:Q.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:`M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z`,size:45,margin:50,color:Q.color.accent40,throttle:40}},t}(vg),Ik=ds(),Lk=L;function Rk(e,t,n){if(!l.node){var r=t.getZr();Ik(r).records||(Ik(r).records={}),zk(r,t);var i=Ik(r).records[e]||(Ik(r).records[e]={});i.handler=n}}function zk(e,t){if(Ik(e).initialized)return;Ik(e).initialized=!0,n(`click`,ce(Hk,`click`)),n(`mousemove`,ce(Hk,`mousemove`)),n(`mousewheel`,ce(Hk,`mousewheel`)),n(`globalout`,Vk);function n(n,r){e.on(n,function(n){var i=Uk(t);Lk(Ik(e).records,function(e){e&&r(e,n,i.dispatchAction)}),Bk(i.pendings,t)})}}function Bk(e,t){var n=e.showTip.length,r=e.hideTip.length,i;n?i=e.showTip[n-1]:r&&(i=e.hideTip[r-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Vk(e,t,n){e.handler(`leave`,null,n)}function Hk(e,t,n,r){t.handler(e,n,r)}function Uk(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Wk(e,t){if(!l.node){var n=t.getZr();(Ik(n).records||{})[e]&&(Ik(n).records[e]=null)}}var Gk=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;Rk(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){Wk(`axisPointer`,t)},t.prototype.dispose=function(e,t){Wk(`axisPointer`,t)},t.type=`axisPointer`,t}(ky);function Kk(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=us(a,e);if(o==null||o<0||H(o))return{point:[]};var s=a.getItemGraphicEl(o),c=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),n=c.dataToPoint(m)||[]}else n=c.dataToPoint(a.getValues(R(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),n=[h.x+h.width/2,h.y+h.height/2]}return{point:n,el:s}}var qk=ds();function Jk(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||V(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){iA(i)&&(i=Kk({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=iA(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||iA(i),f={},p={},m={list:[],map:{}},h={showPointer:ce(Zk,p),showTooltip:ce(Qk,m)};L(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);L(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=nA(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&Yk(e,o,h,!1,f)}})});var g={};return L(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&L(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,rA(t),rA(e)))),g[e.key]=a}})}),L(g,function(e,t){Yk(u[t],e,h,!0,f)}),$k(p,u,f),eA(m,i,e,o),tA(u,o,n),f}}function Yk(e,t,n,r,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var o=Xk(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&P(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function Xk(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return L(t.seriesModels,function(t,c){var l=t.getData().mapDimensionsAll(r),u,d;if(t.getAxisTooltipData){var f=t.getAxisTooltipData(l,e,n);d=f.dataIndices,u=f.nestestValue}else{if(d=t.indicesOfNearest(r,l[0],e,n.type===`category`?.5:null),!d.length)return;u=t.getData().get(l[0],d[0])}if(Ao(u)){var p=e-u,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=u,a.length=0),L(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function Zk(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Qk(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var c=t.coordSys.model,l=QO(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function $k(e,t,n){var r=n.axesInfo=[];L(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}function eA(e,t,n,r){if(iA(t)||!e.list.length){r({type:`hideTip`});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function tA(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=qk(r)[i]||{},o=qk(r)[i]={};L(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&L(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}L(a,function(e,t){!o[t]&&c.push(l(e))}),L(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}function nA(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function rA(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function iA(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function aA(e){ek.registerAxisPointerClass(`CartesianAxisPointer`,jk),e.registerComponentModel(Fk),e.registerComponentView(Gk),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!H(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=HO(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Jk)}function oA(e){AE(dk),AE(aA)}var sA=typeof Float32Array<`u`?Float32Array:void 0,cA=typeof Float64Array<`u`?Float64Array:void 0;function lA(e){return uA({ctor:sA},e).arr}function uA(e,t){process.env.NODE_ENV!==`production`&&q(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>_o&&(t=_o),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch(e){process.env.NODE_ENV!==`production`&&Z(e)}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}function dA(){XT(`liPosMinGap`,fA)}function fA(e,t,n){var r=J(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Cv(u);function f(n){KT(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(s.dim));r>=0&&n(r,e,t.getStore())})}var p=0;if(f(function(e,t,n){r.set(t.uid,1),(!i||!i.hasKey(t.uid))&&(o=!0),p+=n.count()}),(!i||i.keys().length!==r.keys().length)&&(o=!0),!o&&a!=null){t.liPosMinGap=a;return}uA(pA,p);var m=0;f(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);isFinite(a)&&(!u||wv(d,a))&&(l&&(a=c.transformIn(a,null)),pA.arr[m++]=a)}});var h=pA.typed?pA.arr.subarray(0,m):(pA.arr.length=m,pA.arr);pA.typed?h.sort():fo(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Ao(g)?g:m>0?-2:-1,n.serUids=r}var pA=uA({ctor:cA},50);function mA(e){return function(t,n){var r=eD(t,{fromStat:{key:e}});if(Ao(r.w2))return[-r.w2/2,r.w2/2]}}function hA(e,t){return e+`|&`+t}function gA(e){return dA(),{liPosMinGap:!Lw(e.scale)}}function _A(e,t,n,r){eE(e,{key:t,seriesType:n,coordSysType:r,getMetrics:gA})}function vA(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&q(Ao(t)),t}var yA=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`tooltip`,t.dependencies=[`axisPointer`],t.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:Q.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Q.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:Q.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:Q.color.tertiary,fontSize:14}},t}(vg);function bA(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function xA(e){if(l.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var SA=xA([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),CA=xA([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function wA(e,t){if(!e)return t;t=Uh(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function TA(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var EA=wA(CA,`transition`),DA=wA(SA,`transform`),OA=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(l.transform3dSupported?`will-change:transform;`:``);function kA(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function AA(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Xh(t);var a=kA(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=DA+`:`,l;I([`left`,`right`],a)>-1?(s+=`top:50%`,c+=`translateY(-50%) rotate(`+(l=a===`left`?-225:-45)+`deg)`):(s+=`left:50%`,c+=`translateX(-50%) rotate(`+(l=a===`top`?225:45)+`deg)`);var u=l*Math.PI/180,d=o+i,f=d*Math.abs(Math.cos(u))+d*Math.abs(Math.sin(u)),p=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2)*100)/100;s+=`;`+a+`:-`+p+`px`;var m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+o+`px;height:`+o+`px;z-index:-1;`,s+`;`+c+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}function jA(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(i=` `+e/2+`s `+r,a=`opacity`+i+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(l.transformSupported?``+DA+i:`,left`+i+`,top`+i)),EA+`:`+a}function MA(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!l.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=l.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+DA+`:`+o+`;`:[[`top`,0],[`left`,0],[SA,o]]}function NA(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=K(e.get(`lineHeight`),Math.round(n*3/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function PA(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=my(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(jA(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Uh(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(NA(d)),f!=null&&i.push(`padding:`+Wh(f).join(`px `)+`px`),i.join(`;`)+`;`}function FA(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&it(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var IA=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,l.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):pe(i)?i:U(i)&&i(e.getDom()));FA(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler;yt(r.painter.getViewportRoot(),e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=TA(t,`position`),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i=e.get(`alwaysShowContent`);i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=OA+PA(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+MA(i[0],i[1],!0)+(`border-color:`+Xh(t)+`;`)+(e.get(`extraCssText`)||``)+(`;pointer-events:`+(this._enterable?`auto`:`none`)):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e==null){a.innerHTML=``;return}var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!bA(n)&&(o=AA(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,H(e)||(e=[e]);for(var s=0;s<e.length;s++)pe(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(FA(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;L(MA(n[0],n[1]),function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,l.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;at(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),LA=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),BA(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;G(e)&&Bo(process.env.NODE_ENV===`production`?``:`Passing DOM nodes as content is not supported in richText tooltip!`),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new au({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:my(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),L([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),L([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=zA(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;BA(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=RA(i.borderWidth||0),o=zA(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(V(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function RA(e){return Math.max(0,e)}function zA(e){var t=RA(e.shadowBlur||0),n=RA(e.shadowOffsetX||0),r=RA(e.shadowOffsetY||0);return{left:RA(t-n),right:RA(t+n),top:RA(t-r),bottom:RA(t+r)}}function BA(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var VA=new eu({shape:{x:-1,y:-1,width:2,height:2}}),HA=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(e,t){if(!(l.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=bs(n.get(`renderMode`));this._tooltipContent=r===`richText`?new LA(t):new IA(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(l.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?Uy(this,`_updatePosition`,50,`fixRate`):Wy(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);Rk(`itemTooltip`,this._api,V(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(!(r.from===this.uid||l.node||!n.getDom())){var i=WA(r,n);this._ticket=``;var a=r.dataByCoordSys,o=YA(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=VA;c.x=r.x,c.y=r.y,c.update(),yu(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=Kk(r,t),d=u.point[0],f=u.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:u.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(WA(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&UA([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(yu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;Ab(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(yu(e).dataIndex==null?yu(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=V(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=UA([t.tooltipOption],r),o=this._renderMode,s=[],c=ey(`section`,{blocks:[],noHeader:!0}),l=[],u=new hy;L(e,function(e){L(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(!(!t||i==null)){var f=wk(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=ey(`section`,{header:f,noHeader:!xe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),L(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=CT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Xh(m.color),o);var h=gv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=UA([a],r).get(`valueFormatter`);p.blocks.push(_?P({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=oy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
21
21
|
|
|
22
|
-
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=mu(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=kA([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new uy;h.marker=g.makeTooltipMarker(`item`,Gh(h.color),d);var _=dv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?ty(y?j({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=mu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(H(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=k(a),a.content=ut(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=kA(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new uy;this._showOrMove(d,function(){var n=k(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(H(u)){var p=e.ecModel.get(`useUTC`),m=B(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=yh(m.axisValue,d,p)),d=Uh(d,n,!0)}else if(V(u)){var g=R(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||B(t))return{color:r||i};if(!B(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),V(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),B(t))n=io(t[0],s),r=io(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=ag(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=NA(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=jA(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=PA(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=PA(d)?l[1]/2:d===`bottom`?l[1]:0),oA(e)){var h=MA(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&F(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&F(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&F(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&F(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){a.node||!t.getDom()||(zy(this,`_updatePosition`),this._tooltipContent.dispose(),Ak(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(wy);function kA(e,t,n){var r=t.ecModel,i;n?(i=new Mm(n,r,r),i=new Mm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Mm&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new Mm(o,i,r)))}return i}function AA(e,t){return e.dispatchAction||R(t.dispatchAction,t)}function jA(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function MA(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function NA(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function PA(e){return e===`center`||e===`middle`}function FA(e,t,n){var r=ds(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=ps(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=mu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function IA(e){gE(Gk),e.registerComponentModel(aA),e.registerComponentView(OA),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Ae),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Ae)}function LA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=cv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(cv(e,t,n[o]));return a.join(` `)}}function RA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!B(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}function zA(e,t){return e.type===t}function BA(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new Yl({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=V(i)?function(e){i(e,d)}:null;ap(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function VA(e,t,n){var r=e.getArea(),i=Y(r.r0,1),a=Y(r.r,1),o=new Sf({shape:{cx:Y(e.cx,1),cy:Y(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,ap(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function HA(e,t,n,r,i){return e?e.type===`polar`?VA(e,t,n):e.type===`cartesian2d`?BA(e,t,n,r,i):null:null}var UA={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},WA=function(e){return Math.round(e.length/2)};function GA(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;H(i)?p=UA[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,WA))}}}}}var KA=Es(),qA=`__ec_stack_`;function JA(e){return e.get(`stack`)||qA+e.seriesIndex}function YA(e,t){var n=XA(e,t);return n.columnMap=ZA(n),n}function XA(e,t){var n=tA(t,uD),r=[],i=BE(e,{fromStat:{key:n},min:1});return jT(e,n,function(e){r.push({barWidth:io(e.get(`barWidth`),i.w),barMaxWidth:io(e.get(`barMaxWidth`),i.w),barMinWidth:io(e.get(`barMinWidth`)||(ej(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:JA(e)})}),{bandWidthResult:i,seriesInfo:r}}function ZA(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};F(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ke(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=qa(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=J(35-o.length*4,15)+`%`;var c=io(i,t),l=io(a,1),u=(n-c)/(r+(r-1)*l);u=J(u,0),F(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=qa(o,i)),a&&(o=J(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=qa(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=J(u,0);var d=0,f;F(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return F(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function QA(e){return{seriesType:e,overallReset:function(t){var n=tA(e,uD);NT(t,n,function(t){process.env.NODE_ENV!==`production`&&G(t instanceof TD);var r=YA(t,e);jT(t,n,function(e){var t=r.columnMap[JA(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function $A(e){return{seriesType:e,plan:Ty(),reset:function(e){if(sO(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=ZC(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(iA(i))),p=ej(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&Yk(r*3),c=p&&s&&Yk(r*3),l=p&&Yk(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Ja(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,Ja(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function ej(e){return e.pipelineContext&&e.pipelineContext.large}function tj(e){return eA(tA(e,uD))}function nj(e){KA(e,function(){function t(t){var n=tA(t,uD);rA(e,n,t,uD),nE(n,tj(t))}t(`bar`),t(`pictorialBar`)})}var rj=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return tw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)F(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(hy);hy.registerClass(rj);var ij=function(e){r(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return tw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Ms(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Lm(rj.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(rj),aj=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),oj=function(e){r(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new aj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Fl);function sj(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return ha(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+lj(m,s+_,!1),x=u+p*y(m)+uj(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+lj(m,-s+_,!1),x=u+p*y(m)+uj(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+lj(h,s+_,!0),x=u+p*y(h)+uj(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+lj(h,-s+_,!0),x=u+p*y(h)+uj(h,-s+_,!0),S=`right`,C=`middle`;break;default:return ha(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function cj(e,t,n,r){if(ce(r)){e.setTextConfig({rotation:r});return}if(B(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function lj(e,t,n){return t*Math.sin(e)*(n?-1:1)}function uj(e,t,n){return t*Math.cos(e)*(n?1:-1)}function dj(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;B(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:I(r,function(e){return ma(e,i)})}}var fj=Math.max,pj=Math.min,mj=function(e){r(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&No(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Kp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=_j(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=Cj[s.type](a,e);if(!t)return null;var n=Pj(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=Cj[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!Sj[s.type](r)))){var o=!1;f&&(o=hj[s.type](p,r));var g=gj[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),Ej(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?vj(d,u,g,r,t,l,!1,!1):ap(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=Cj[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=Cj[s.type](a,t),E=Nj(l,T,s);ip(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!Sj[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=hj[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&lp(D,e,n),D=null),D?up(D):D=gj[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=ym(k);A.prevValue!=null&&(A.prevValue=A.value)}}else Ej(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?vj(d,u,D,C,t,l,!0,x):ip(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&lp(n,e,t)}).execute();var C=this._backgroundGroup||=new Na;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Aj(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Aj(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&HA(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:I(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){lp(t,e,mu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Oy),hj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=fj(t.x,e.x),s=pj(t.x+t.width,i),c=fj(t.y,e.y),l=pj(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=pj(t.r,e.r),a=fj(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},gj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Yl({shape:j({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?oj:Sf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=sj(Tj(i),{isRoundCap:l===oj}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?ip:ap)(u,{shape:p},a)}return u}};function _j(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&No("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&No("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function vj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?ip:ap)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?ip:ap)(n,{shape:l},u,i)}function yj(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var bj=[`x`,`y`,`width`,`height`],xj=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],Sj={cartesian2d:function(e){return!yj(e,bj)},polar:function(e){return!yj(e,xj)}},Cj={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?Dj(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function wj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Tj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Ej(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;j(u,dj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Fj(i,a.coordinateSystem):Ij(i,a.coordinateSystem),p=lm(r);cm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:LA(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,cj(e,h===`outside`?f:h,Tj(o),r.get([`label`,`rotate`]))}bm(m,p,a.getRawValue(n),function(e){return RA(t,e)});var g=r.getModel([`emphasis`]);Sd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Ed(e,r),wj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,F(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Dj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Oj=function(){function e(){}return e}(),kj=function(e){r(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new Oj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Fl);function Aj(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?js(e):0;if(l){var d=new kj({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new kj({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,mu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,jj),f.on(`mousemove`,jj)),n&&n.push(f)}var jj=Ly(function(e){var t=this,n=Mj(t,e.offsetX,e.offsetY);mu(t).dataIndex=n>=0?n:null},30,!1);function Mj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function Nj(e,t,n){if(zA(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function Pj(e,t,n){return new(e.type===`polar`?Sf:Yl)({shape:Nj(t,n,e),silent:!0,z2:0})}function Fj(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Ij(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function Lj(e){e.registerChartView(mj),e.registerSeriesModel(ij),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,QA(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,$A(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,GA(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),nj(e)}var Rj=Math.sin,zj=Math.cos,Bj=Math.PI,Vj=Math.PI*2,Hj=180/Bj,Uj=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=jr(u-Vj)||(l?c>=Vj:-c>=Vj),f=c>0?c%Vj:c%Vj+Vj,p=!1;p=d?!0:!jr(u)&&f>=Bj==!!l;var m=e+n*zj(a),h=t+r*Rj(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*Hj);if(d){var _=1/this._p,v=(l?1:-1)*(Vj-_);this._add(`A`,n,r,g,1,+l,e+n*zj(a+v),t+r*Rj(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*zj(o),b=t+r*Rj(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),Wj=`none`,Gj=Math.round;function Kj(e){var t=e.fill;return t!=null&&t!==Wj}function qj(e){var t=e.stroke;return t!=null&&t!==Wj}var Jj=[`lineCap`,`miterLimit`,`lineJoin`],Yj=I(Jj,function(e){return`stroke-`+e.toLowerCase()});function Xj(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Vl){e(`opacity`,i);return}if(Kj(t)){var a=kr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,Wj);if(qj(t)){var s=kr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=nx(n),p=f[0],m=f[1];p&&(m=Gj(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,Wj);for(var h=0;h<Jj.length;h++){var g=Jj[h];if(r||t[g]!==Ml[g]){var _=t[g]||Ml[g];_&&e(Yj[h],_)}}}else r&&e(`stroke`,Wj)}var Zj=`http://www.w3.org/2000/svg`,Qj=`http://www.w3.org/1999/xlink`,$j=`http://www.w3.org/2000/xmlns/`,eM=`http://www.w3.org/XML/1998/namespace`,tM=`ecmeta_`;function nM(e){return document.createElementNS(Zj,e)}function rM(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function iM(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function aM(e){return`</`+e+`>`}function oM(e,t){t||={};var n=t.newline?`
|
|
23
|
-
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return
|
|
24
|
-
`:``,i=` {`+r,a=r+`}`,o=I(L(e),function(t){return t+i+I(L(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=I(L(t),function(e){return`@keyframes `+e+i+I(L(t[e]),function(n){return n+i+I(L(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function cM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function lM(e,t,n,r){return rM(`svg`,`root`,{width:e,height:t,xmlns:Zj,"xmlns:xlink":Qj,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var uM=0;function dM(){return uM++}var fM={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},pM=`transform-origin`;function mM(e,t,n){var r=j({},e.shape);j(r,t),e.buildPath(n,r);var i=new Uj;return i.reset(Kr(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function hM(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[pM]=n+`px `+r+`px`)}var gM={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function _M(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function vM(e,t,n){var r=e.shape.paths,i={},a,o;if(F(r,function(e){var t=cM(n.zrId);t.animation=!0,bM(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=L(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=_M(i,n);return a.replace(o,s)}}function yM(e){return H(e)?fM[e]?`cubic-bezier(`+fM[e]+`)`:nr(e)?e:``:``}function bM(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Bf){var s=vM(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=yM(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=yM(d.easing),m=d.rawValue;(H(m)||ce(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};ta(g,e),j(g,s[h]);var _=qr(g),v=s[h][u];l[h]=_?{transform:_}:{},hM(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new ul);var S=y.len();y.reset(),l[h].d=mM(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return gM[e]})}for(var w=L(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][pM]!==l[O][pM]){T=!1;break}E=l[D][pM]}if(T&&E){for(var h in l)l[h][pM]&&delete l[h][pM];t[pM]=E}if(ie(w,function(e){return L(l[e]).length>0}).length)return _M(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+dM();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function xM(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};SM(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=Dr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),SM(r,t,n,!0)}}}function SM(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+dM(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var CM=Math.round;function wM(e){return e&&H(e.src)}function TM(e){return e&&V(e.toDataURL)}function EM(e,t,n,r){Xj(function(i,a){var o=i===`fill`||i===`stroke`;o&&Wr(a)?VM(t,e,i,r):o&&Vr(a)?HM(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),BM(n,e,r)}function DM(e,t){var n=Ha(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[tM+`silent`]=`true`))}function OM(e){return jr(e[0]-1)&&jr(e[1])&&jr(e[2])&&jr(e[3]-1)}function kM(e){return jr(e[4])&&jr(e[5])}function AM(e,t,n){if(t&&!(kM(t)&&OM(t))){var r=n?10:1e4;e.transform=OM(t)?`translate(`+CM(t[4]*r)/r+` `+CM(t[5]*r)/r+`)`:Pr(t)}}function jM(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(CM(r[a][0]*n)/n),i.push(CM(r[a][1]*n)/n);t.points=i.join(` `)}function MM(e){return!e.smooth}function NM(e){var t=I(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=CM(o*r)/r)}}}var PM={circle:[NM([`cx`,`cy`,`r`])],polyline:[jM,MM],polygon:[jM,MM]};function FM(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function IM(e,t){var n=e.style,r=e.shape,i=PM[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Kr(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&FM(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new Uj,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return AM(a,e.transform),EM(a,n,e,t),DM(a,e),t.animation&&bM(e,a,t),t.emphasis&&xM(e,a,t),rM(s,e.id+``,a)}function LM(e,t){var n=e.style,r=n.image;if(r&&!H(r)&&(wM(r)?r=r.src:TM(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),AM(c,e.transform),EM(c,n,e,t),DM(c,e),t.animation&&bM(e,c,t),rM(`image`,e.id+``,c)}}function RM(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Ir(n.y||0,pa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Fr[n.textAlign]||n.textAlign};if(ou(n)){var c=``,l=n.fontStyle,u=iu(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),AM(s,e.transform),EM(s,n,e,t),DM(s,e),t.animation&&bM(e,s,t),rM(`text`,e.id+``,s,void 0,r)}}function zM(e,t){if(e instanceof Fl)return IM(e,t);if(e instanceof Vl)return LM(e,t);if(e instanceof Ll)return RM(e,t)}function BM(e,t,n){var r=e.style;if(Lr(r)){var i=Rr(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=kr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=rM(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[rM(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=Gr(o)}}function VM(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Hr(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Ur(i))a=`radialGradient`,o.cx=W(i.x,.5),o.cy=W(i.y,.5),o.r=W(i.r,.5);else{process.env.NODE_ENV!==`production`&&O(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=Nr(s[l].offset)*100+`%`,f=s[l].color,p=kr(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(rM(`stop`,l+``,g))}var _=oM(rM(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=rM(a,y,o,c)),t[n]=Gr(y)}function HM(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(zr(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(H(h)?m=h:wM(h)?m=h.src:TM(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;G(f,g),G(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=$s(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=rM(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=k(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=qr(i);x&&(o.patternTransform=x);var S=rM(`pattern`,``,o,[d]),C=oM(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=rM(`pattern`,T,o,[d])),t[n]=Gr(T)}}function UM(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=rM(`clipPath`,a,o,[IM(e,n)])}t[`clip-path`]=Gr(a)}function WM(e){return document.createTextNode(e)}function GM(e,t,n){e.insertBefore(t,n)}function KM(e,t){e.removeChild(t)}function qM(e,t){e.appendChild(t)}function JM(e){return e.parentNode}function YM(e){return e.nextSibling}function XM(e,t){e.textContent=t}var ZM=58,QM=120,$M=rM(``,``);function eN(e){return e===void 0}function tN(e){return e!==void 0}function nN(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function rN(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function iN(e){var t,n=e.children,r=e.tag;if(tN(r)){var i=e.elm=nM(r);if(sN($M,e),B(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&qM(i,iN(a))}else tN(e.text)&&!U(e.text)&&qM(i,WM(e.text))}else e.elm=WM(e.text);return e.elm}function aN(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&GM(e,iN(a),t)}}function oN(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(tN(i.tag)?KM(JM(i.elm),i.elm):KM(e,i.elm))}}function sN(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===QM?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS($j,n,o):n.charCodeAt(3)===ZM?r.setAttributeNS(eM,n,o):n.charCodeAt(5)===ZM?r.setAttributeNS(Qj,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function cN(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:rN(o,l)?(lN(o,l),o=t[++r],l=n[++i]):rN(s,u)?(lN(s,u),s=t[--a],u=n[--c]):rN(o,u)?(lN(o,u),GM(e,o.elm,YM(s.elm)),o=t[++r],u=n[--c]):rN(s,l)?(lN(s,l),GM(e,s.elm,o.elm),s=t[--a],l=n[++i]):(eN(d)&&(d=nN(t,r,a)),f=d[l.key],eN(f)?GM(e,iN(l),o.elm):(p=t[f],p.tag===l.tag?(lN(p,l),t[f]=void 0,GM(e,p.elm,o.elm)):GM(e,iN(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,aN(e,m,n,i,c)):oN(e,t,r,a))}function lN(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(sN(e,t),eN(t.text)?tN(r)&&tN(i)?r!==i&&cN(n,r,i):tN(i)?(tN(e.text)&&XM(n,``),aN(n,null,i,0,i.length-1)):tN(r)?oN(n,r,0,r.length-1):tN(e.text)&&XM(n,``):e.text!==t.text&&(tN(r)&&oN(n,r,0,r.length-1),XM(n,t.text)))}function uN(e,t){if(rN(e,t))lN(e,t);else{var n=e.elm,r=JM(n);iN(t),r!==null&&(GM(r,t.elm,YM(n)),oN(r,[e],0,0))}return t}var dN=0,fN=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=pN(`configLayer`),this.storage=t,this._opts=n=j({},n),this.root=e,this._id=`zr`+dN++,this._oldVNode=lM(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=nM(`svg`);sN(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,uN(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return zM(e,cM(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=cM(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=mN(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=rM(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=I(L(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(rM(`defs`,`defs`,{},c)),e.animation){var l=sM(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=rM(`style`,`stl`,{},[],l);a.push(u)}}return lM(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},oM(this.renderToVNode({animation:W(e.cssAnimation,!0),emphasis:W(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:W(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};UM(d[g],_,t);var v=rM(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=zM(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=ex(r,0,n),t=ex(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(Vr(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=Jr(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function pN(e){return function(){process.env.NODE_ENV!==`production`&&O(`In SVG mode painter not support method "`+e+`"`)}}function mN(e,t,n,r){var i;if(n&&n!==`none`){if(i=rM(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),Wr(n))VM({fill:n},i.attrs,`fill`,r);else if(Vr(n))HM({style:{fill:n},dirty:Ae,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=kr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function hN(e){e.registerPainter(`svg`,fN)}gE([Kk,IA,Lj,hN]);
|
|
22
|
+
`:`<br/>`,m=l.join(p);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,m,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=yu(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,f=e.positionDefault,p=UA([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),m=p.get(`trigger`);if(m==null||m===`item`){var h=s.getDataParams(c,l),g=new hy;h.marker=g.makeTooltipMarker(`item`,Xh(h.color),d);var _=gv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?oy(y?P({valueFormatter:y},b):b,g,d,v,r.get(`useUTC`),p.get(`textStyle`)):_.text,S=`item_`+s.name+`_`+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,h,S,e.offsetX,e.offsetY,e.position,e.target,g)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=yu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(W(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=ft(a.content));var c=[a],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&c.push(l),c.push({formatter:a.content});var u=e.positionDefault,d=UA(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new hy;this._showOrMove(d,function(){var n=M(d.get(`formatterParams`)||{});this._showTooltipContent(d,f,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,!(!e.get(`showContent`)||!e.get(`show`))){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(W(u)){var p=e.ecModel.get(`useUTC`),m=H(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=wh(m.axisValue,d,p)),d=Jh(d,n,!0)}else if(U(u)){var g=V(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){if(n===`axis`||H(t))return{color:r||i};if(!H(t))return{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),U(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),H(t))n=oo(t[0],s),r=oo(t[1],c);else if(G(t)){var p=t;p.width=l[0],p.height=l[1];var m=ug(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=qA(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=GA(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=JA(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=JA(d)?l[1]/2:d===`bottom`?l[1]:0),bA(e)){var h=KA(n,r,i,s,c);n=h[0],r=h[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&L(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&L(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length,i&&L(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&L(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){l.node||!t.getDom()||(Wy(this,`_updatePosition`),this._tooltipContent.dispose(),Wk(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(ky);function UA(e,t,n){var r=t.ecModel,i;n?(i=new Lm(n,r,r),i=new Lm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Lm&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(i=new Lm(o,i,r)))}return i}function WA(e,t){return e.dispatchAction||V(t.dispatchAction,t)}function GA(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}function KA(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function qA(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}function JA(e){return e===`center`||e===`middle`}function YA(e,t,n){var r=ms(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=gs(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o=n.getViewOfComponentModel(a),s;if(o.group.traverse(function(t){var n=yu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function XA(e){AE(aA),e.registerComponentModel(yA),e.registerComponentView(HA),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Me),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Me)}function ZA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=pv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(pv(e,t,n[o]));return a.join(` `)}}function QA(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!H(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}function $A(e,t){return e.type===t}function ej(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new eu({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var h=U(i)?function(e){i(e,d)}:null;up(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function tj(e,t,n){var r=e.getArea(),i=uo(r.r0,1),a=uo(r.r,1),o=new Df({shape:{cx:uo(e.cx,1),cy:uo(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,up(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function nj(e,t,n,r,i){return e?e.type===`polar`?tj(e,t,n):e.type===`cartesian2d`?ej(e,t,n,r,i):null:null}var rj={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},ij=function(e){return Math.round(e.length/2)};function aj(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=rj[i]:U(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,ij))}}}}}var oj=As(),sj=`__ec_stack_`;function cj(e){return e.get(`stack`)||sj+e.seriesIndex}function lj(e,t){var n=uj(e,t);return n.columnMap=dj(n),n}function uj(e,t){var n=hA(t,wD),r=[],i=eD(e,{fromStat:{key:n},min:1});return GT(e,n,function(e){r.push({barWidth:oo(e.get(`barWidth`),i.w),barMaxWidth:oo(e.get(`barMaxWidth`),i.w),barMinWidth:oo(e.get(`barMinWidth`)||(mj(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:cj(e)})}),{bandWidthResult:i,seriesInfo:r}}function dj(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};L(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;je(s,c)||r++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=Ya(n,u),n-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(a=p);var m=e.barCategoryGap;m!=null&&(i=m)}),i??=X(35-o.length*4,15)+`%`;var c=oo(i,t),l=oo(a,1),u=(n-c)/(r+(r-1)*l);u=X(u,0),L(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=Ya(o,i)),a&&(o=X(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=Ya(i,n)),a&&a>o&&(o=a),o!==u&&(t.width=o,n-=o+l*o,r--)}}),u=(n-c)/(r+(r-1)*l),u=X(u,0);var d=0,f;L(o,function(e){var t=s[e];t.width||=u,f=t,d+=t.width*(1+l)}),f&&(d-=f.width*l);var p={},m=-d/2;return L(o,function(e){var n=s[e];p[e]=p[e]||{bandWidth:t,offset:m,width:n.width},m+=n.width*(1+l)}),p}function fj(e){return{seriesType:e,overallReset:function(t){var n=hA(e,wD);qT(t,n,function(t){process.env.NODE_ENV!==`production`&&q(t instanceof zD);var r=lj(t,e);GT(t,n,function(e){var t=r.columnMap[cj(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function pj(e){return{seriesType:e,plan:Ay(),reset:function(e){if(xO(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=dw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(vA(i))),p=mj(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r=e.count,i=p&&lA(r*3),c=p&&s&&lA(r*3),l=p&&lA(r),v=n.master.getRect(),y=d?v.width:v.height,b,x=t.getStore(),S=0;(b=e.next())!=null;){var C=x.get(u?h:a,b),w=x.get(o,b),T=f,E=void 0;u&&(E=+C-x.get(a,b));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,Xa(k)<m&&(k=(k<0?-1:1)*m)}else{var j=n.dataToPoint([w,C]);u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,Xa(A)<m&&(A=(A<=0?-1:1)*m)}p?(i[S]=D,i[S+1]=O,i[S+2]=d?k:A,c&&(c[S]=d?v.x:D,c[S+1]=d?O:v.y,c[S+2]=y),l[b]=b):t.setItemLayout(b,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:i,largeDataIndices:l,largeBackgroundPoints:c,valueAxisHorizontal:d})}}}}}}function mj(e){return e.pipelineContext&&e.pipelineContext.large}function hj(e){return mA(hA(e,wD))}function gj(e){oj(e,function(){function t(t){var n=hA(t,wD);_A(e,n,t,wD),gE(n,hj(t))}t(`bar`),t(`pictorialBar`)})}var _j=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(e,t){return hw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)L(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2){a[n]=e.toGlobalCoord(e.getExtent()[+!!c]);return}for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(by);by.registerClass(_j);var vj=function(e){s(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return hw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return this.get(`large`)?this.get(`progressive`):!1},t.prototype.__preparePipelineContext=function(e,t){var n=Is(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Hm(_j.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(_j),yj=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),bj=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new yj},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=(a-i)*.5,s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=Math.PI*2,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-Math.PI*2,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(Bl);function xj(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return _a(t,r,i);var o=e(a),s=r.distance==null?5:r.distance,c=this.shape,l=c.cx,u=c.cy,d=c.r,f=c.r0,p=(d+f)/2,m=c.startAngle,h=c.endAngle,g=(m+h)/2,_=n?Math.abs(d-f)/2:0,v=Math.cos,y=Math.sin,b=l+d*v(m),x=u+d*y(m),S=`left`,C=`top`;switch(o){case`startArc`:b=l+(f-s)*v(g),x=u+(f-s)*y(g),S=`center`,C=`top`;break;case`insideStartArc`:b=l+(f+s)*v(g),x=u+(f+s)*y(g),S=`center`,C=`bottom`;break;case`startAngle`:b=l+p*v(m)+Cj(m,s+_,!1),x=u+p*y(m)+wj(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+Cj(m,-s+_,!1),x=u+p*y(m)+wj(m,-s+_,!1),S=`left`,C=`middle`;break;case`middle`:b=l+p*v(g),x=u+p*y(g),S=`center`,C=`middle`;break;case`endArc`:b=l+(d+s)*v(g),x=u+(d+s)*y(g),S=`center`,C=`bottom`;break;case`insideEndArc`:b=l+(d-s)*v(g),x=u+(d-s)*y(g),S=`center`,C=`top`;break;case`endAngle`:b=l+p*v(h)+Cj(h,s+_,!0),x=u+p*y(h)+wj(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+Cj(h,-s+_,!0),x=u+p*y(h)+wj(h,-s+_,!0),S=`right`,C=`middle`;break;default:return _a(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function Sj(e,t,n,r){if(ue(r)){e.setTextConfig({rotation:r});return}if(H(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,c,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:c=s;break;case`startAngle`:case`insideStartAngle`:c=a;break;case`endAngle`:case`insideEndAngle`:c=o;break;default:e.setTextConfig({rotation:0});return}var u=Math.PI*1.5-c;l===`middle`&&u>Math.PI/2&&u<Math.PI*1.5&&(u-=Math.PI),e.setTextConfig({rotation:u})}function Cj(e,t,n){return t*Math.sin(e)*(n?-1:1)}function wj(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Tj(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;H(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:R(r,function(e){return ga(e,i)})}}var Ej=Math.max,Dj=Math.min,Oj=function(e){s(t,e);function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i===`cartesian2d`||i===`polar`?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r)):process.env.NODE_ENV!==`production`&&Io(`Only cartesian2d and polar supported for bar.`)},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Zp(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;(this._isLargeDraw==null||t!==this._isLargeDraw)&&(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i=this.group,a=e.getData(),o=this._data,s=e.coordinateSystem,c=s.getBaseAxis(),l;s.type===`cartesian2d`?l=c.isHorizontal():s.type===`polar`&&(l=c.dim===`angle`);var u=e.isAnimationEnabled()?e:null,d=jj(e,s);d&&this._enableRealtimeSort(d,a,n);var f=e.get(`clip`,!0)||d,p=s.getArea();i.removeClipPath();var m=e.get(`roundCap`,!0),h=e.get(`showBackground`,!0),g=e.getModel(`backgroundStyle`),_=g.get(`borderRadius`)||0,v=[],y=this._backgroundEls,b=r&&r.isInitSort,x=r&&r.type===`changeAxisOrder`;function S(e){var t=Lj[s.type](a,e);if(!t)return null;var n=Jj(s,l,t);return n.useStyle(g.getItemStyle()),s.type===`cartesian2d`?n.setShape(`r`,_):n.setShape(`cornerRadius`,_),v[e]=n,n}a.diff(o).add(function(t){var n=a.getItemModel(t),r=Lj[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!Ij[s.type](r)))){var o=!1;f&&(o=kj[s.type](p,r));var g=Aj[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),Bj(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?Mj(d,u,g,r,t,l,!1,!1):up(g,{shape:r},e,t),a.setItemGraphicEl(t,g),i.add(g),g.ignore=o}}).update(function(t,n){var r=a.getItemModel(t),C=Lj[s.type](a,t,r);if(C){if(h){var w=void 0;y.length===0?w=S(n):(w=y[n],w.useStyle(g.getItemStyle()),s.type===`cartesian2d`?w.setShape(`r`,_):w.setShape(`cornerRadius`,_),v[t]=w);var T=Lj[s.type](a,t),E=qj(l,T,s);lp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!Ij[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=kj[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&mp(D,e,n),D=null),D?hp(D):D=Aj[s.type](e,a,t,C,l,u,c.model,!0,m),d&&(D.forceLabelAnimation=!0),x){var k=D.getTextContent();if(k){var A=wm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else Bj(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?Mj(d,u,D,C,t,l,!0,x):lp(D,{shape:C},e,t,null),a.setItemGraphicEl(t,D),D.ignore=O,i.add(D)}}).remove(function(t){var n=o.getItemGraphicEl(t);n&&mp(n,e,t)}).execute();var C=this._backgroundGroup||=new Fa;C.removeAll();for(var w=0;w<v.length;++w)C.add(v[w]);i.add(C),this._backgroundEls=v,this._data=a},t.prototype._renderLarge=function(e,t,n){this._clear(),Wj(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Wj(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&nj(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:R(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){mp(t,e,yu(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(Ny),kj={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Ej(t.x,e.x),s=Dj(t.x+t.width,i),c=Ej(t.y,e.y),l=Dj(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Dj(t.r,e.r),a=Ej(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return o}},Aj={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new eu({shape:P({},r),z2:1});if(l.__dataIndex=n,l.name=`item`,a){var u=l.shape,d=i?`height`:`width`;u[d]=0}return l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?bj:Df,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=xj(zj(i),{isRoundCap:l===bj}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?lp:up)(u,{shape:p},a)}return u}};function jj(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Io("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Io("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Mj(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?lp:up)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?lp:up)(n,{shape:l},u,i)}function Nj(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Pj=[`x`,`y`,`width`,`height`],Fj=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],Ij={cartesian2d:function(e){return!Nj(e,Pj)},polar:function(e){return!Nj(e,Fj)}},Lj={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?Vj(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Rj(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function zj(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Bj(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(!s){var l=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,l)}else if(!a.get(`roundCap`)){var u=e.shape;P(u,Tj(r.getModel(`itemStyle`),u,!0)),e.setShape(u)}e.useStyle(c);var d=r.getShallow(`cursor`);d&&e.attr(`cursor`,d);var f=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?Yj(i,a.coordinateSystem):Xj(i,a.coordinateSystem),p=mm(r);pm(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:ZA(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:f});var m=e.getTextContent();if(s&&m){var h=r.get([`label`,`position`]);e.textConfig.inside=h===`middle`||null,Sj(e,h===`outside`?f:h,zj(o),r.get([`label`,`rotate`]))}Tm(m,p,a.getRawValue(n),function(e){return QA(t,e)});var g=r.getModel([`emphasis`]);Dd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),jd(e,r),Rj(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function Vj(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}var Hj=function(){function e(){}return e}(),Uj=function(e){s(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new Hj},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(Bl);function Wj(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Fs(e):0;if(l){var d=new Uj({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new Uj({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,yu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,Gj),f.on(`mousemove`,Gj)),n&&n.push(f)}var Gj=Hy(function(e){var t=this,n=Kj(t,e.offsetX,e.offsetY);yu(t).dataIndex=n>=0?n:null},30,!1);function Kj(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=u*3;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}function qj(e,t,n){if($A(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var i=n.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}function Jj(e,t,n){return new(e.type===`polar`?Df:eu)({shape:qj(t,n,e),silent:!0,z2:0})}function Yj(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function Xj(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function Zj(e){e.registerChartView(Oj),e.registerSeriesModel(vj),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,fj(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,pj(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,aj(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),gj(e)}var Qj=Math.sin,$j=Math.cos,eM=Math.PI,tM=Math.PI*2,nM=180/eM,rM=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=Nr(u-tM)||(l?c>=tM:-c>=tM),f=c>0?c%tM:c%tM+tM,p=!1;p=d?!0:!Nr(u)&&f>=eM==!!l;var m=e+n*$j(a),h=t+r*Qj(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*nM);if(d){var _=1/this._p,v=(l?1:-1)*(tM-_);this._add(`A`,n,r,g,1,+l,e+n*$j(a+v),t+r*Qj(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*$j(o),b=t+r*Qj(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f)){this._invalid=!0;return}l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),iM=`none`,aM=Math.round;function oM(e){var t=e.fill;return t!=null&&t!==iM}function sM(e){var t=e.stroke;return t!=null&&t!==iM}var cM=[`lineCap`,`miterLimit`,`lineJoin`],lM=R(cM,function(e){return`stroke-`+e.toLowerCase()});function uM(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof Kl){e(`opacity`,i);return}if(oM(t)){var a=jr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,iM);if(sM(t)){var s=jr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=sx(n),p=f[0],m=f[1];p&&(m=aM(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,iM);for(var h=0;h<cM.length;h++){var g=cM[h];if(r||t[g]!==Ll[g]){var _=t[g]||Ll[g];_&&e(lM[h],_)}}}else r&&e(`stroke`,iM)}var dM=`http://www.w3.org/2000/svg`,fM=`http://www.w3.org/1999/xlink`,pM=`http://www.w3.org/2000/xmlns/`,mM=`http://www.w3.org/XML/1998/namespace`,hM=`ecmeta_`;function gM(e){return document.createElementNS(dM,e)}function _M(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function vM(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}function yM(e){return`</`+e+`>`}function bM(e,t){t||={};var n=t.newline?`
|
|
23
|
+
`:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return vM(i,a)+(i===`style`?o||``:ft(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+yM(i)}return r(e)}function xM(e,t,n){n||={};var r=n.newline?`
|
|
24
|
+
`:``,i=` {`+r,a=r+`}`,o=R(B(e),function(t){return t+i+R(B(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(B(t),function(e){return`@keyframes `+e+i+R(B(t[e]),function(n){return n+i+R(B(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?``:[`<![CDATA[`,o,s,`]]>`].join(r)}function SM(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function CM(e,t,n,r){return _M(`svg`,`root`,{width:e,height:t,xmlns:dM,"xmlns:xlink":fM,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var wM=0;function TM(){return wM++}var EM={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},DM=`transform-origin`;function OM(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new rM;return i.reset(Jr(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function kM(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[DM]=n+`px `+r+`px`)}var AM={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function jM(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function MM(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=SM(n.zrId);t.animation=!0,PM(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=B(r),l=c.length;if(l){o=c[l-1];var u=r[o];for(var d in u){var f=u[d];i[d]=i[d]||{d:``},i[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(o)>=0&&(a=m)}}}),a){t.d=!1;var s=jM(i,n);return a.replace(o,s)}}function NM(e){return W(e)?EM[e]?`cubic-bezier(`+EM[e]+`)`:ir(e)?e:``:``}function PM(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Gf){var s=MM(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=NM(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a=i[1],o=a.length,s={},c={},l={},u=`animation-timing-function`;function d(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var d=s[l],f=Math.round(d.time/i*100)+`%`,p=NM(d.easing),m=d.rawValue;(W(m)||ue(m))&&(t[f]=t[f]||{},t[f][c]=d.rawValue,p&&(t[f][u]=p))}}}}for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m?m===`shape`&&d(p,c):!r&&d(p,s)}for(var h in s){var g={};ra(g,e),P(g,s[h]);var _=Yr(g),v=s[h][u];l[h]=_?{transform:_}:{},kM(l[h],g),v&&(l[h][u]=v)}var y,b=!0;for(var h in c){l[h]=l[h]||{};var x=!y,v=c[h][u];x&&(y=new hl);var S=y.len();y.reset(),l[h].d=OM(e,c[h],y);var C=y.len();if(!x&&S!==C){b=!1;break}v&&(l[h][u]=v)}if(!b)for(var h in l)delete l[h].d;if(!r)for(var f=0;f<o;f++){var p=a[f],m=p.targetName;m===`style`&&d(p,l,function(e){return AM[e]})}for(var w=B(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][DM]!==l[O][DM]){T=!1;break}E=l[D][DM]}if(T&&E){for(var h in l)l[h][DM]&&delete l[h][DM];t[DM]=E}if(oe(w,function(e){return B(l[e]).length>0}).length)return jM(l,n)+` `+i[0]+` both`}for(var g in c){var s=h(c[g]);s&&o.push(s)}if(o.length){var _=n.zrId+`-cls-`+TM();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function FM(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};IM(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,c=e.currentStates.indexOf(`select`)>=0&&s||o;c&&(a=kr(c))}var l=i.lineWidth;if(l){var u=!i.strokeNoScale&&e.transform?e.transform[0]:1;l/=u}var r={cursor:`pointer`};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),l&&(r[`stroke-width`]=l),IM(r,t,n,!0)}}}function IM(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+TM(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var LM=Math.round;function RM(e){return e&&W(e.src)}function zM(e){return e&&U(e.toDataURL)}function BM(e,t,n,r){uM(function(i,a){var o=i===`fill`||i===`stroke`;o&&Kr(a)?tN(t,e,i,r):o&&Ur(a)?nN(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),eN(n,e,r)}function VM(e,t){var n=Wa(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[hM+`silent`]=`true`))}function HM(e){return Nr(e[0]-1)&&Nr(e[1])&&Nr(e[2])&&Nr(e[3]-1)}function UM(e){return Nr(e[4])&&Nr(e[5])}function WM(e,t,n){if(t&&!(UM(t)&&HM(t))){var r=n?10:1e4;e.transform=HM(t)?`translate(`+LM(t[4]*r)/r+` `+LM(t[5]*r)/r+`)`:Ir(t)}}function GM(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(LM(r[a][0]*n)/n),i.push(LM(r[a][1]*n)/n);t.points=i.join(` `)}function KM(e){return!e.smooth}function qM(e){var t=R(e,function(e){return typeof e==`string`?[e,e]:e});return function(e,n,r){for(var i=0;i<t.length;i++){var a=t[i],o=e[a[0]];o!=null&&(n[a[1]]=LM(o*r)/r)}}}var JM={circle:[qM([`cx`,`cy`,`r`])],polyline:[GM,KM],polygon:[GM,KM]};function YM(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function XM(e,t){var n=e.style,r=e.shape,i=JM[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&Jr(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&YM(e))&&!(c<1)){s=e.type;var u=10**l;i[0](r,a,u)}else{var d=!e.path||e.shapeChanged();e.path||e.createPathProxy();var f=e.path;d&&(f.beginPath(),e.buildPath(f,e.shape),e.pathUpdated());var p=f.getVersion(),m=e,h=m.__svgPathBuilder;(m.__svgPathVersion!==p||!h||c!==m.__svgPathStrokePercent)&&(h||=m.__svgPathBuilder=new rM,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return WM(a,e.transform),BM(a,n,e,t),VM(a,e),t.animation&&PM(e,a,t),t.emphasis&&FM(e,a,t),_M(s,e.id+``,a)}function ZM(e,t){var n=e.style,r=n.image;if(r&&!W(r)&&(RM(r)?r=r.src:zM(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,c={href:r,width:o,height:s};return i&&(c.x=i),a&&(c.y=a),WM(c,e.transform),BM(c,n,e,t),VM(c,e),t.animation&&PM(e,c,t),_M(`image`,e.id+``,c)}}function QM(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||`12px sans-serif`,a=n.x||0,o=Rr(n.y||0,ha(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Lr[n.textAlign]||n.textAlign};if(du(n)){var c=``,l=n.fontStyle,u=lu(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),WM(s,e.transform),BM(s,n,e,t),VM(s,e),t.animation&&PM(e,s,t),_M(`text`,e.id+``,s,void 0,r)}}function $M(e,t){if(e instanceof Bl)return XM(e,t);if(e instanceof Kl)return ZM(e,t);if(e instanceof Hl)return QM(e,t)}function eN(e,t,n){var r=e.style;if(zr(r)){var i=Br(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=jr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c,_=f/2/l,v=g+` `+_;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=_M(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[_M(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=qr(o)}}function tN(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(Wr(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(Gr(i))a=`radialGradient`,o.cx=K(i.x,.5),o.cy=K(i.y,.5),o.r=K(i.r,.5);else{process.env.NODE_ENV!==`production`&&ee(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=Fr(s[l].offset)*100+`%`,f=s[l].color,p=jr(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(_M(`stop`,l+``,g))}var _=bM(_M(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=_M(a,y,o,c)),t[n]=qr(y)}function nN(e,t,n,r){var i=e.style[n],a=e.getBoundingRect(),o={},s=i.repeat,c=s===`no-repeat`,l=s===`repeat-x`,u=s===`repeat-y`,d;if(Vr(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(W(h)?m=h:RM(h)?m=h.src:zM(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;q(f,g),q(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(l?(i=1,r/=a.width):u&&(r=1,i/=a.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=rc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=_M(`image`,`img`,{href:m,width:f,height:p}),o.width=f,o.height=p}else i.svgElement&&(d=M(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(d){var y,b;c?y=b=1:l?(b=1,y=o.width/a.width):u?(y=1,b=o.height/a.height):o.patternUnits=`userSpaceOnUse`,y!=null&&!isNaN(y)&&(o.width=y),b!=null&&!isNaN(b)&&(o.height=b);var x=Yr(i);x&&(o.patternTransform=x);var S=_M(`pattern`,``,o,[d]),C=bM(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=_M(`pattern`,T,o,[d])),t[n]=qr(T)}}function rN(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){a=n.zrId+`-c`+n.clipPathIdx++;var o={id:a};r[e.id]=a,i[a]=_M(`clipPath`,a,o,[XM(e,n)])}t[`clip-path`]=qr(a)}function iN(e){return document.createTextNode(e)}function aN(e,t,n){e.insertBefore(t,n)}function oN(e,t){e.removeChild(t)}function sN(e,t){e.appendChild(t)}function cN(e){return e.parentNode}function lN(e){return e.nextSibling}function uN(e,t){e.textContent=t}var dN=58,fN=120,pN=_M(``,``);function mN(e){return e===void 0}function hN(e){return e!==void 0}function gN(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(process.env.NODE_ENV!==`production`&&r[a]!=null&&console.error(`Duplicate key `+a),r[a]=i)}return r}function _N(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function vN(e){var t,n=e.children,r=e.tag;if(hN(r)){var i=e.elm=gM(r);if(xN(pN,e),H(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&sN(i,vN(a))}else hN(e.text)&&!G(e.text)&&sN(i,iN(e.text))}else e.elm=iN(e.text);return e.elm}function yN(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&aN(e,vN(a),t)}}function bN(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(hN(i.tag)?oN(cN(i.elm),i.elm):oN(e,i.elm))}}function xN(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(o===!0?r.setAttribute(n,``):o===!1?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===fN?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(pM,n,o):n.charCodeAt(3)===dN?r.setAttributeNS(mM,n,o):n.charCodeAt(5)===dN?r.setAttributeNS(fM,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function SN(e,t,n){for(var r=0,i=0,a=t.length-1,o=t[0],s=t[a],c=n.length-1,l=n[0],u=n[c],d,f,p,m;r<=a&&i<=c;)o==null?o=t[++r]:s==null?s=t[--a]:l==null?l=n[++i]:u==null?u=n[--c]:_N(o,l)?(CN(o,l),o=t[++r],l=n[++i]):_N(s,u)?(CN(s,u),s=t[--a],u=n[--c]):_N(o,u)?(CN(o,u),aN(e,o.elm,lN(s.elm)),o=t[++r],u=n[--c]):_N(s,l)?(CN(s,l),aN(e,s.elm,o.elm),s=t[--a],l=n[++i]):(mN(d)&&(d=gN(t,r,a)),f=d[l.key],mN(f)?aN(e,vN(l),o.elm):(p=t[f],p.tag===l.tag?(CN(p,l),t[f]=void 0,aN(e,p.elm,o.elm)):aN(e,vN(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,yN(e,m,n,i,c)):bN(e,t,r,a))}function CN(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(xN(e,t),mN(t.text)?hN(r)&&hN(i)?r!==i&&SN(n,r,i):hN(i)?(hN(e.text)&&uN(n,``),yN(n,null,i,0,i.length-1)):hN(r)?bN(n,r,0,r.length-1):hN(e.text)&&uN(n,``):e.text!==t.text&&(hN(r)&&bN(n,r,0,r.length-1),uN(n,t.text)))}function wN(e,t){if(_N(e,t))CN(e,t);else{var n=e.elm,r=cN(n);vN(t),r!==null&&(aN(r,t.elm,lN(n)),bN(r,[e],0,0))}return t}var TN=0,EN=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=DN(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+TN++,this._oldVNode=CM(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=gM(`svg`);xN(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,wN(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return $M(e,SM(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=SM(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=ON(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=_M(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(B(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(_M(`defs`,`defs`,{},c)),e.animation){var l=xM(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=_M(`style`,`stl`,{},[],l);a.push(u)}}return CM(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},bM(this.renderToVNode({animation:K(e.cssAnimation,!0),emphasis:K(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:K(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r=e.length,i=[],a=0,o,s,c=0,l=0;l<r;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=s&&s.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&!(d&&s&&d[m]===s[m]);m--);for(var h=p-1;h>m;h--)a--,o=i[a-1];for(var g=m+1;g<f;g++){var _={};rN(d[g],_,t);var v=_M(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=$M(u,t);y&&(o?o.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=ax(r,0,n),t=ax(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(Ur(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=Xr(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function DN(e){return function(){process.env.NODE_ENV!==`production`&&ee(`In SVG mode painter not support method "`+e+`"`)}}function ON(e,t,n,r){var i;if(n&&n!==`none`){if(i=_M(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),Kr(n))tN({fill:n},i.attrs,`fill`,r);else if(Ur(n))nN({style:{fill:n},dirty:Me,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=jr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function kN(e){e.registerPainter(`svg`,EN)}var AN=({visualization:e,data:t})=>{let{bindings:{y:n=[]}={}}=e||{},{columns:r=[]}=t||{};return r.map((e,t)=>n.includes(e)?t:null).filter(e=>e).map(e=>e?r[e]:null).filter(e=>e!==null)},jN=({visualization:e,data:t})=>{let{bindings:{x:n=``}={}}=e||{},{columns:r=[],rows:i=[]}=t||{},a=r.map((e,t)=>n===e?t:null).filter(e=>e!==null)[0]??null;return i.map(e=>a===null?null:e[a]).filter(e=>e!==null)},MN=({visualization:e={},data:t={}})=>{let{bindings:{y:n=[]}={},series:r=[]}=e||{},{columns:i=[],rows:a=[]}=t||{},o=i.map((e,t)=>n.includes(e)?t:null).filter(e=>e),s=r.some(({key:e})=>a.some(t=>t.includes(e)))||!1,c=r.some(({key:e})=>i.includes(e))||!1,l=n.map((e,t)=>{let n=o[t]||null;return{name:e,data:a.map(e=>n&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`bar`,stack:t+1,itemStyle:{borderRadius:100},barMaxWidth:30,emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}}}}),u=jN({visualization:e,data:t}),d=AN({visualization:e,data:t});return l.map(e=>{let{stack:t=0,data:n=[]}=e||{},i=n.map((e,t)=>{let n=u[t];return{value:e,itemStyle:{color:r.find(({key:e})=>e===n)?.color||`var(--orange-90)`}}}),a=s?i:n,o=d[t-1],l=r.find(({key:e})=>e===o)?.color||`var(--orange-90)`,f=c?l:null;return{...e,color:f,data:a,emphasis:{...e.emphasis,itemStyle:{...e.emphasis.itemStyle,color:f}}}})};AE([oA,XA,Zj,kN]);var NN=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=MN({visualization:e,data:t}),c=jN({visualization:e,data:t}),{series:l=[]}=e||{};return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=sC(a.current,void 0,{renderer:`svg`});let e=s.reduce((e,t)=>{let n=t.data.map(e=>typeof e==`number`?e:e.value),r=Math.max(...n);return r>e?r:e},0),t=Array.from({length:s.length}).map((t,n)=>({color:`#f7f7f7`,data:s[n].data.map(t=>typeof t==`number`?e-t:e-t.value),stack:Number(n+1),type:`bar`,itemStyle:{borderRadius:[100,100,0,0]},barMaxWidth:30,silent:!0})),n=[...s,...t],r={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:n};o.current.setOption(r);let i=new ResizeObserver(()=>{o.current?.resize()});return i.observe(a.current),()=>{i.disconnect(),o.current?.dispose(),o.current=null}},[s,c]),(0,n.jsxs)(`div`,{className:`stacked-bar-chart-ctn`,children:[(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`stacked-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`stacked-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`stacked-bar-chart-label-text`,children:e})]},`stacked-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`stacked-bar-chart-labels`,children:e})})(),(0,n.jsx)(`div`,{ref:a,className:`bars-stacked-bar-chart`,style:{width:`100%`,aspectRatio:`1242 / 478`}})]})},PN=({data:e={}})=>{let{data:t={},metadata:{title:r=``,description:i=``,source:o=``}={},visualization:s={},visualization:{settings:{showTitle:c=!0,showDescription:l=!0,showImage:u=!1,showLegend:d=!0}={}}={}}=e||{};return(0,n.jsxs)(`div`,{className:`stacked-bar-chart`,children:[(0,n.jsx)(a,{title:r,showTitle:c,subtitle:i,showSubtitle:l,showLogo:u}),(0,n.jsx)(NN,{data:t,visualization:s,showLegend:d}),o?(0,n.jsxs)(`p`,{className:`stacked-bar-chart-font`,children:[`Fuente: `,(0,n.jsx)(`span`,{children:o})]}):null]})};exports.StackedBarChart=PN,exports.Title=a;
|