infobae-charts 0.0.19 → 0.0.20

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.

Potentially problematic release.


This version of infobae-charts might be problematic. Click here for more details.

package/dist/index.cjs CHANGED
@@ -1,50 +1,50 @@
1
- (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.ibc-footer{border-top:1px solid var(--gray-50);flex-direction:column;justify-content:space-between;gap:48px;padding:24px 0 0;display:flex}@media (width>=577px){.ibc-footer{flex-direction:row;gap:12px}}.ibc-footer-font{color:var(--gray-90);font-size:16px;font-weight:400}.ibc-footer-font>span{font-weight:700}.ibc-footer-logo{object-fit:contain;max-width:90px;height:21px;max-height:21px}.ibc-title{box-sizing:border-box;border-bottom:1px solid var(--gray-50);width:100%;padding-bottom:26px}.ibc-title__row{flex-direction:column;justify-content:space-between;align-items:flex-start;gap:20px;display:flex}@media (width>=577px){.ibc-title__row{flex-direction:row}}.ibc-title__text{flex-direction:column;gap:19px;min-width:0;display:flex}.ibc-title__heading{color:var(--gray-100);font-family:Roboto;font-size:40px;font-style:normal;font-weight:700;line-height:normal}.ibc-title__subtitle{color:var(--gray-90);font-family:Roboto;font-size:26px;font-style:normal;font-weight:400;line-height:normal}.ibc-title__brand{flex-shrink:0;align-items:center;gap:10px;line-height:0;display:flex}.ibc-title__logo{width:auto;height:40px;display:block}.ibc-title__button{background:var(--bg);border:1px solid var(--gray-50);border-radius:100px;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:relative}@media (width>=577px){.ibc-title__button{width:32px;height:32px}.ibc-title__button svg{width:16px;height:16px}}.ibc-title__share-modal{background:var(--bg);border:1px solid var(--gray-50);z-index:2;border-radius:9px;flex-direction:column;gap:8px;padding:8px;display:flex;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 0 12px #0000004d}@media (width>=577px){.ibc-title__share-modal{left:auto;right:0}}.ibc-title__share-modal-button{color:var(--gray-90);background:0 0;border:none;gap:6px;padding:4px;font-size:14px;font-weight:300;line-height:150%;display:flex}.ibc-title__share-modal-icon{border:1px solid var(--gray-80);border-radius:100px;justify-content:center;align-items:center;width:22px;height:22px;padding:10px;display:flex}.vertical-bar-chart{background:var(--gray-0);flex-direction:column;gap:36px;padding:36px 4px;display:flex}.vertical-bar-chart-ctn{background:var(--bg);border-radius:16px;flex-direction:column;gap:36px;display:flex}.vertical-bar-chart-labels{gap:8px;max-width:100%;display:flex;overflow-x:auto}.vertical-bar-chart-labels::-webkit-scrollbar{display:none}.vertical-bar-chart-label{background:var(--gray-0);border:1px solid var(--gray-30);border-radius:100px;align-items:center;gap:6px;width:max-content;padding:8px 16px;display:flex}.vertical-bar-chart-label-icon{border-radius:100px;width:12px;height:12px}.vertical-bar-chart-label-text{color:var(--gray-90);width:max-content;font-size:12px;font-weight:400}.bars-vertical-bar-chart{height:400px;padding:16px}.horizontal-bar-chart{background:var(--gray-0);padding:16px}.horizontal-bar-chart-credits{background:var(--gray-0);justify-content:space-between;padding-top:24px;padding-bottom:36px;display:flex}.horizontal-bar-chart-ctn{flex-direction:column;padding-top:36px;display:flex}.horizontal-bar-chart-font{background:var(--gray-0);color:var(--gray-90);align-items:center;gap:8px;font-size:16px;font-weight:400;display:flex}.horizontal-bar-chart-font>span{font-weight:700}.horizontal-bar-chart-label{background:var(--bg);border:1px solid var(--gray-30);-webkit-user-select:none;user-select:none;border-radius:100px;align-items:center;gap:6px;width:max-content;padding:8px 16px;display:flex}.horizontal-bar-chart-label-icon{border-radius:100px;width:12px;height:12px}.horizontal-bar-chart-label-text{color:var(--gray-90);width:max-content;font-size:12px;font-weight:400}.horizontal-bar-chart-labels{scrollbar-width:none;touch-action:pan-x;-webkit-user-select:none;user-select:none;gap:8px;width:100%;padding-top:36px;padding-bottom:36px;display:flex;overflow-x:auto}.horizontal-bar-chart-labels::-webkit-scrollbar{display:none}.horizontal-bar-chart-legend{border-bottom:1px solid #c2c2c2;align-items:center;gap:8px;max-width:100%;display:flex}.horizontal-bar-chart-ref{border-radius:16px}@media screen and (width>=992px){.horizontal-bar-chart{padding:36px 20px}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
- 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`,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=/iPad|iPhone|iPod/.test(navigator.userAgent),s=[{buttonText:`Whatsapp`,id:`wa`,iconName:`whatsapp`},{buttonText:`Facebook`,id:`fb`,iconName:`facebook`},{buttonText:`Telegram`,id:`tl`,iconName:`telegram`},{buttonText:`X`,id:`x`,iconName:`x`},{buttonText:`Linkedin`,id:`li`,iconName:`linkedin`}],c=({source:e=``,showSource:t=!0,showLogo:r=!0,logoSrc:i=``})=>!t&&!r?null:(0,n.jsxs)(`div`,{className:`ibc-footer`,children:[!t||!e?null:(0,n.jsxs)(`p`,{className:`ibc-footer-font`,children:[`Fuente: `,(0,n.jsx)(`span`,{children:e})]}),!r||!i?null:(0,n.jsx)(`img`,{className:`ibc-footer-logo`,src:i||`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`,alt:`Infobae`})]}),l=({color:e=`var(--gray-90)`})=>(0,n.jsx)(`svg`,{width:25,height:23,viewBox:`0 0 25 23`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,n.jsx)(`path`,{d:`M15.1484 18.209C16.2165 17.062 17.2844 15.9156 18.3525 14.7686C19.6733 13.3501 21.0013 11.9235 22.3223 10.5049C21.0337 9.12301 19.7399 7.73568 18.4463 6.34863C17.3459 5.16872 16.2458 3.98836 15.1484 2.81152V7.11133L15.0605 7.12207L13.7334 7.2832C13.2462 7.34244 12.7328 7.3756 12.3428 7.40918C11.9212 7.4455 11.5709 7.487 11.25 7.55957L11.249 7.55859L11.2188 7.56641L11.2139 7.56836V7.56738L11.1797 7.57422C6.97754 8.31826 3.54696 11.4713 2.3457 15.6885L2.33203 15.7441C2.04422 16.8005 1.87981 17.8793 1.8252 18.9707C2.122 18.5479 2.4433 18.1395 2.79492 17.749L2.80762 17.7363C5.6064 14.6866 9.60855 13.2162 13.625 13.6777H13.624C13.6309 13.6784 13.6373 13.6791 13.6406 13.6797C13.6426 13.68 13.6445 13.6805 13.6455 13.6807L13.7715 13.7002C14.0526 13.7561 14.2412 13.8734 14.2803 13.8965C14.3888 13.9606 14.4699 14.0248 14.5107 14.0586C14.5577 14.0974 14.5963 14.1335 14.6191 14.1553L14.6514 14.1865L14.6533 14.1875L14.5908 14.2471L14.5811 14.2568L14.6533 14.1885L14.6738 14.209H14.6729L15.1201 14.6709L15.1484 14.7002V18.209ZM24.2998 10.7754L24.2832 10.8008C24.095 11.0787 23.9061 11.3293 23.6904 11.5801L23.6875 11.583C20.9494 14.5235 18.2039 17.4716 15.4658 20.4121L15.374 20.5234C15.1464 20.7683 14.828 20.9048 14.4971 20.9043H14.4902V20.9033L14.3389 20.8926H14.332L14.3252 20.8906C13.7676 20.7689 13.3904 20.2251 13.4482 19.6543V15.4482L13.4316 15.4375C9.93065 15.0376 6.45647 16.3191 4.03418 18.959L4.03516 18.96C3.32287 19.7509 2.74215 20.6242 2.2666 21.5801C2.03257 22.1442 1.3672 22.4611 0.805664 22.2168L0.745117 22.1914V22.1768C0.443793 22.0328 0.22449 21.7539 0.171875 21.418L0.170898 21.4102L0.15918 21.2695V21.2686C0.0187049 19.5013 0.124356 17.7326 0.511719 16.001L0.512695 15.998L0.695312 15.2617L0.696289 15.2598C2.02169 10.5049 5.78955 6.91872 10.4414 5.91699L10.8936 5.82812C11.3251 5.73086 11.7619 5.68221 12.2012 5.64453C12.6152 5.60902 13.0281 5.58023 13.4482 5.53223V1.33789C13.3904 0.707944 13.8273 0.161489 14.4434 0.100586L14.4531 0.0996094V0.100586C14.6044 0.100586 14.7904 0.0990999 14.9502 0.194336C15.1239 0.257283 15.2662 0.374645 15.3779 0.516602H15.3789L23.9541 9.71289L23.959 9.71777V9.71875C24.0959 9.88874 24.2065 10.0607 24.29 10.2334L24.2998 10.2539V10.7754Z`,fill:e,stroke:e,strokeWidth:.2})});function u({className:e,showShare:t=!0,showSubtitle:i=!0,showTitle:c=!0,subtitle:u,title:d,url:f}){if(!t&&!c&&!i)return null;let[p,m]=(0,r.useState)(!1),h=e=>{if(typeof window>`u`||!f)return null;let t=`Te comparto este gráfico de Infobae`;switch(e){case`fb`:window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(f)}&quote=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`share_facebook`,`width=658,height=354,scrollbars=no`);break;case`x`:window.open(`https://x.com/intent/post?url=${encodeURIComponent(f)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`share_x`,`width=950,height=850,scrollbars=no`);break;case`wa`:o?window.location.href=`whatsapp://send?text=${encodeURIComponent(`${t} ${f}`)}`:window.open(`https://wa.me/?text=${encodeURIComponent(`${t} ${f}`)}&type=custom_url&app_absent=0`,`_blank`,`noopener,noreferrer`);break;case`li`:window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(f)}`,`share_linkedin`,`width=830,height=460,scrollbars=no`);break;case`tl`:a?window.location.href=`tg://msg_url?url=${encodeURIComponent(f)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`:window.open(`https://telegram.me/share/url?url=${encodeURIComponent(f)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`_blank`,`noopener,noreferrer`)}return null};return(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:[!c||!d?null:(0,n.jsx)(`p`,{className:`ibc-title__heading`,children:d}),!i||!u?null:(0,n.jsx)(`p`,{className:`ibc-title__subtitle`,children:u})]}),!t||!f?null:(0,n.jsx)(`div`,{className:`ibc-title__brand`,children:(0,n.jsxs)(`button`,{className:`ibc-title__button`,onClick:()=>m(e=>!e),children:[(0,n.jsx)(l,{}),p?(0,n.jsx)(`div`,{className:`ibc-title__share-modal`,children:s.map(({buttonText:e,id:t,iconName:r})=>(0,n.jsxs)(`button`,{"aria-label":`Compartir en ${e}`,className:`ibc-title__share-modal-button`,onClick:()=>h(t),type:`button`,children:[(0,n.jsx)(`div`,{className:`ibc-title__share-modal-icon`,children:(0,n.jsx)(`img`,{alt:`Ícono de ${e}`,src:`https://infobae-static.infobae.com/assets/images/icons/${r}-icon.svg`})}),(0,n.jsx)(`p`,{children:e})]},t))}):null]})})]})})}var d=function(e,t){return d=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])},d(e,t)};function f(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);d(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var p=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),m=new(function(){function e(){this.browser=new p,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`?(m.wxa=!0,m.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?m.worker=!0:!m.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(m.node=!0,m.svgSupported=!0):h(navigator.userAgent,m);function h(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 g=`12px sans-serif`,_=20,v=100,y=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function b(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)-_)/v}return t}var x=b(y),S={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=S.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=x[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}},C=le([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),w=le([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),T=Object.prototype.toString,E=Array.prototype,D=E.forEach,O=E.filter,k=E.slice,A=E.map,j=function(){}.constructor,ee=j?j.prototype:null,te=`__proto__`,ne=2311,re=2**53-1;function ie(){return ne>=re&&(ne=0),ne++}function ae(){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=T.call(e);if(n===`[object Array]`){if(!je(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(w[n]){if(!je(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(!C[n]&&!je(e)&&!ye(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==te&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!W(t)||!W(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==te){var i=e[r],a=t[r];W(a)&&W(i)&&!V(a)&&!V(i)&&!ye(a)&&!ye(i)&&!_e(a)&&!_e(i)&&!je(a)&&!je(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!==te&&(e[n]=t[n]);return e}function oe(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}S.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 se(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 ce(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 L(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function R(e,t,n){if(e&&t){if(e.forEach&&e.forEach===D)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 z(e,t,n){if(!e)return[];if(!t)return Ee(e);if(e.map&&e.map===A)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 le(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 ue(e,t,n){if(!e)return[];if(!t)return Ee(e);if(e.filter&&e.filter===O)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 de(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 fe(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(k.call(arguments)))}}var pe=ee&&H(ee.bind)?ee.call.bind(ee.bind):fe;function me(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(k.call(arguments)))}}function V(e){return Array.isArray?Array.isArray(e):T.call(e)===`[object Array]`}function H(e){return typeof e==`function`}function U(e){return typeof e==`string`}function he(e){return T.call(e)===`[object String]`}function ge(e){return typeof e==`number`}function W(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function _e(e){return!!C[T.call(e)]}function ve(e){return!!w[T.call(e)]}function ye(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function be(e){return e.colorStops!=null}function xe(e){return e.image!=null}function Se(e){return T.call(e)===`[object RegExp]`}function Ce(e){return e!==e}function we(){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 G(e,t){return e??t}function Te(e,t,n){return e??t??n}function Ee(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return k.apply(e,t)}function De(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 K(e,t){if(!e)throw Error(t)}function Oe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var ke=`__ec_primitive__`;function Ae(e){e[ke]=!0}function je(e){return e[ke]}var Me=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}(),Ne=typeof Map==`function`;function Pe(){return Ne?new Map:new Me}var Fe=function(){function e(t){var n=V(t);this.data=Pe();var r=this;t instanceof e?t.each(i):t&&R(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 Ne?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function q(e){return new Fe(e)}function Ie(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 Le(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 Re(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function ze(e,t){return e.hasOwnProperty(t)}function Be(){}var Ve=180/Math.PI;function He(e,t){return e??=0,t??=0,[e,t]}function Ue(e,t){return e[0]=t[0],e[1]=t[1],e}function We(e){return[e[0],e[1]]}function Ge(e,t,n){return e[0]=t,e[1]=n,e}function Ke(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function qe(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Je(e){return Math.sqrt(Ye(e))}function Ye(e){return e[0]*e[0]+e[1]*e[1]}function Xe(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Ze(e,t){var n=Je(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function Qe(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var $e=Qe;function et(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var tt=et;function nt(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 rt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function it(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var at=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),ot=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 at(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 at(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 at(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new at(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new at(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new at(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),st=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}(),ct=Math.log(2);function lt(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)/ct);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]*lt(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function ut(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=lt(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)*lt(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 dt=`___zrEVENTSAVED`,ft=[];function pt(e,t,n,r,i){return ht(ft,t,r,i,!0)&&ht(e,n,ft[0],ft[1])}function mt(e,t){e&&n(e),t&&n(t);function n(e){var t=e[dt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[dt])}}function ht(e,t,n,r,i){if(t.getBoundingClientRect&&m.domSupported&&!vt(t)){var a=t[dt]||(t[dt]={}),o=_t(gt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function gt(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(){R(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function _t(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?ut(s,o):ut(o,s))}function vt(e){return e.nodeName.toUpperCase()===`CANVAS`}var yt=/([&<>"'])/g,bt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function xt(e){return e==null?``:(e+``).replace(yt,function(e,t){return bt[t]})}var St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ct=[],wt=m.browser.firefox&&+m.browser.version.split(`.`)[0]<39;function Tt(e,t,n,r){return n||={},r?Et(e,t,n):wt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Et(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Et(e,t,n){if(m.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(vt(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(ht(Ct,e,r,i)){n.zrX=Ct[0],n.zrY=Ct[1];return}}n.zrX=n.zrY=0}function Dt(e){return e||window.event}function Ot(e,t,n){if(t=Dt(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&&Tt(e,i,t,n)}else{Tt(e,t,t,n);var a=kt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&St.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function kt(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 At(e,t,n,r){e.addEventListener(t,n,r)}function jt(e,t,n,r){e.removeEventListener(t,n,r)}var Mt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Nt=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=Tt(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 It)if(It.hasOwnProperty(t)){var n=It[t](this._track,e);if(n)return n}},e}();function Pt(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ft(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var It={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=Pt(r)/Pt(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ft(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Lt(){return[1,0,0,1,0,0]}function Rt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function zt(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 Bt(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 Vt(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 Ht(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 Ut(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 Wt(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 Gt=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}(),Kt=Math.min,qt=Math.max,Jt=Math.abs,Yt=[`x`,`y`],Xt=[`width`,`height`],Zt=new Gt,Qt=new Gt,$t=new Gt,en=new Gt,tn=gn(),nn=tn.minTv,rn=tn.maxTv,an=[0,0],J=function(){function e(e,t,n,r){sn(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=Kt(e.x,this.x),n=Kt(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?qt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?qt(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 ln(Lt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&Gt.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=sn(fn,t.x,t.y,t.width,t.height)),n instanceof e||(n=sn(pn,n.x,n.y,n.width,n.height));var s=!!r;tn.reset(i,s);var c=tn.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)&&(an[0]=1/0,an[1]=0,hn(l,u,p,m,0,s,a,o),hn(d,f,h,g,1,s,a,o),s&&Gt.copy(r,_?tn.useDir?tn.dirMinTv:nn:rn)),_},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){cn(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&&cn(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}Zt.x=$t.x=t.x,Zt.y=en.y=t.y,Qt.x=en.x=t.x+t.width,Qt.y=$t.y=t.y+t.height,Zt.transform(n),en.transform(n),Qt.transform(n),$t.transform(n),e.x=Kt(Zt.x,Qt.x,$t.x,en.x),e.y=Kt(Zt.y,Qt.y,$t.y,en.y);var s=qt(Zt.x,Qt.x,$t.x,en.x),c=qt(Zt.y,Qt.y,$t.y,en.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=Rt(e||[]),Vt(e,e,Ge(mn,-t.x,-t.y)),Ut(e,e,Ge(mn,r,i)),Vt(e,e,Ge(mn,n.x,n.y)),e},e}(),on=J.create,sn=J.set,cn=J.copy,ln=J.calculateTransform,un=J.applyTransform,dn=J.contain,fn=new J(0,0,0,0),pn=new J(0,0,0,0),mn=[];function hn(e,t,n,r,i,a,o,s){var c=Jt(t-n),l=Jt(r-e),u=Kt(c,l),d=Yt[i],f=Yt[1-i],p=Xt[i];t<n||r<e?c<l?(a&&(rn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(rn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=qt(e,n),o[p]=Kt(t,r)-o[d]),a&&(u<an[0]||tn.useDir)&&(an[0]=Kt(u,an[0]),(c<l||!tn.bidirectional)&&(nn[d]=c,nn[f]=0,tn.useDir&&tn.calcDirMTV()),(c>=l||!tn.bidirectional)&&(nn[d]=-l,nn[f]=0,tn.useDir&&tn.calcDirMTV())))}function gn(){var e=0,t=new Gt,n=new Gt,r={minTv:new Gt,maxTv:new Gt,useDir:!1,dirMinTv:new Gt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=qt(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 Jt(e)<1e-10}return r}var _n=`silent`;function vn(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:yn}}function yn(){Mt(this.event)}var bn=function(e){f(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}(st),xn=function(){function e(e,t){this.x=e,this.y=t}return e}(),Sn=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Cn=new J(0,0,0,0),wn=function(e){f(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new xn(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new bn,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new ot(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(Sn,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=Dn(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 xn(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 xn(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=vn(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 xn(e,t);if(En(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(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)&&(Cn.copy(u.getBoundingRect()),u.transform&&Cn.applyTransform(u.transform),Cn.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(En(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 Nt;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 xn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(st);R([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){wn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Dn(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||$e(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Tn(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||_n}return!1}function En(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=Tn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==_n)){t.target=o;break}}}function Dn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var On=32,kn=7;function An(e){for(var t=0;e>=On;)t|=e&1,e>>=1;return e+t}function jn(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++;Mn(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function Mn(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function Nn(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 Pn(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 Fn(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 In(e,t){var n=kn,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=Fn(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Pn(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=Fn(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=Pn(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>=kn||m>=kn);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-Fn(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-Pn(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>=kn||g>=kn);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 Ln(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<On){a=jn(e,n,r,t),Nn(e,n,r,n+a,t);return}var o=In(e,t),s=An(i);do{if(a=jn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Nn(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 Rn=!1;function zn(){Rn||(Rn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Bn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Vn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bn}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,Ln(n,Bn)},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)&&(zn(),p.z=0),isNaN(p.z2)&&(zn(),p.z2=0),isNaN(p.zlevel)&&(zn(),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}(),Hn=m.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Un={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-Un.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?Un.bounceIn(e*2)*.5:Un.bounceOut(e*2-1)*.5+.5}},Wn=Math.pow,Gn=Math.sqrt,Kn=1e-8,qn=1e-4,Jn=Gn(3),Yn=1/3,Xn=He(),Zn=He(),Qn=He();function $n(e){return e>-Kn&&e<Kn}function er(e){return e>Kn||e<-Kn}function tr(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 nr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function rr(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($n(u)&&$n(d)){if($n(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($n(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=Gn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Wn(-y,Yn):Wn(y,Yn),b=b<0?-Wn(-b,Yn):Wn(b,Yn);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Gn(u*u*u)),S=Math.acos(x)/3,C=Gn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Jn*Math.sin(S)))/(3*o),T=(-s+C*(w-Jn*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 ir(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($n(o)){if(er(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if($n(u))i[0]=-a/(2*o);else if(u>0){var d=Gn(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 ar(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 or(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Xn[0]=c,Xn[1]=l;for(var v=0;v<1;v+=.05)Zn[0]=tr(e,n,i,o,v),Zn[1]=tr(t,r,a,s,v),g=tt(Xn,Zn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<qn);y++)m=d-f,h=d+f,Zn[0]=tr(e,n,i,o,m),Zn[1]=tr(t,r,a,s,m),g=tt(Zn,Xn),m>=0&&g<p?(d=m,p=g):(Qn[0]=tr(e,n,i,o,h),Qn[1]=tr(t,r,a,s,h),_=tt(Qn,Xn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=tr(e,n,i,o,d),u[1]=tr(t,r,a,s,d)),Gn(p)}function sr(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=tr(e,n,i,o,m),g=tr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function cr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function lr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ur(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if($n(a)){if(er(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if($n(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Gn(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 dr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function fr(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 pr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Xn[0]=o,Xn[1]=s;for(var f=0;f<1;f+=.05){Zn[0]=cr(e,n,i,f),Zn[1]=cr(t,r,a,f);var p=tt(Xn,Zn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<qn);m++){var h=l-u,g=l+u;Zn[0]=cr(e,n,i,h),Zn[1]=cr(t,r,a,h);var p=tt(Zn,Xn);if(h>=0&&p<d)l=h,d=p;else{Qn[0]=cr(e,n,i,g),Qn[1]=cr(t,r,a,g);var _=tt(Qn,Xn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=cr(e,n,i,l),c[1]=cr(t,r,a,l)),Gn(d)}function mr(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=cr(e,n,i,f),m=cr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var hr=/cubic-bezier\(([0-9,\.e ]+)\)/;function gr(e){var t=e&&hr.exec(e);if(t){var n=t[1].split(`,`),r=+Oe(n[0]),i=+Oe(n[1]),a=+Oe(n[2]),o=+Oe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:rr(0,r,a,1,e,s)&&tr(0,i,o,1,s[0])}}}var _r=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||Be,this.ondestroy=e.ondestroy||Be,this.onrestart=e.onrestart||Be,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=H(e)?e:Un[e]||gr(e)},e}(),vr=function(){function e(e){this.value=e}return e}(),yr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new vr(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}(),br=function(){function e(e){this._list=new yr,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 vr(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}(),xr={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 Sr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Cr(e){return e=Math.round(e),e<0?0:e>360?360:e}function wr(e){return e<0?0:e>1?1:e}function Tr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Sr(parseFloat(t)/100*255):Sr(parseInt(t,10))}function Er(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?wr(parseFloat(t)/100):wr(parseFloat(t))}function Dr(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 Or(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function kr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Ar=new br(20),jr=null;function Mr(e,t){jr&&kr(jr,t),jr=Ar.put(e,jr||t.slice())}function Nr(e,t){if(e){t||=[];var n=Ar.get(e);if(n)return kr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in xr)return kr(t,xr[r]),Mr(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)){Or(t,0,0,0,1);return}return Or(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),Mr(e,t),t}if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Or(t,0,0,0,1);return}return Or(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),Mr(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?Or(t,+l[0],+l[1],+l[2],1):Or(t,0,0,0,1);u=Er(l.pop());case`rgb`:if(l.length>=3)return Or(t,Tr(l[0]),Tr(l[1]),Tr(l[2]),l.length===3?u:Er(l[3])),Mr(e,t),t;Or(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Or(t,0,0,0,1);return}return l[3]=Er(l[3]),Pr(l,t),Mr(e,t),t;case`hsl`:if(l.length!==3){Or(t,0,0,0,1);return}return Pr(l,t),Mr(e,t),t;default:return}}Or(t,0,0,0,1)}}function Pr(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Er(e[1]),i=Er(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Or(t,Sr(Dr(o,a,n+1/3)*255),Sr(Dr(o,a,n)*255),Sr(Dr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Fr(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 Ir(e,t){var n=Nr(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 Rr(n,n.length===4?`rgba`:`rgb`)}}function Lr(e,t,n,r){var i=Nr(e);if(e)return i=Fr(i),t!=null&&(i[0]=Cr(H(t)?t(i[0]):t)),n!=null&&(i[1]=Er(H(n)?n(i[1]):n)),r!=null&&(i[2]=Er(H(r)?r(i[2]):r)),Rr(Pr(i),`rgba`)}function Rr(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 zr(e,t){var n=Nr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Br=new br(100);function Vr(e){if(U(e)){var t=Br.get(e);return t||(t=Ir(e,-.1),Br.put(e,t)),t}if(be(e)){var n=P({},e);return n.colorStops=z(e.colorStops,function(e){return{offset:e.offset,color:Ir(e.color,-.1)}}),n}return e}var Hr=Math.round;function Ur(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Nr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var Wr=1e-4;function Gr(e){return e<Wr&&e>-Wr}function Kr(e){return Hr(e*1e3)/1e3}function qr(e){return Hr(e*1e4)/1e4}function Jr(e){return`matrix(`+Kr(e[0])+`,`+Kr(e[1])+`,`+Kr(e[2])+`,`+Kr(e[3])+`,`+qr(e[4])+`,`+qr(e[5])+`)`}var Yr={left:`start`,right:`end`,center:`middle`,middle:`middle`};function Xr(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 Qr(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 $r(e){return e&&!!e.image}function ei(e){return e&&!!e.svgElement}function ti(e){return $r(e)||ei(e)}function ni(e){return e.type===`linear`}function ri(e){return e.type===`radial`}function ii(e){return e&&(e.type===`linear`||e.type===`radial`)}function ai(e){return`url(#`+e+`)`}function oi(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 si(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*Ve,i=G(e.scaleX,1),a=G(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(`+Hr(o*Ve)+`deg, `+Hr(s*Ve)+`deg)`),c.join(` `)}var ci=(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`&&ae(`Base64 isn't natively supported in the current environment.`),null}})(),li=Array.prototype.slice;function ui(e,t,n){return(t-e)*n+e}function di(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=ui(t[a],n[a],r);return e}function fi(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]=ui(t[o][s],n[o][s],r)}return e}function pi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function mi(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 hi(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 gi(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]:li.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 _i(e){if(L(e)){var t=e.length;if(L(e[0])){for(var n=[],r=0;r<t;r++)n.push(li.call(e[r]));return n}return li.call(e)}return e}function vi(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 yi(e){return L(e&&e[0])?2:1}var bi=0,xi=1,Si=2,Ci=3,wi=4,Ti=5,Ei=6;function Di(e){return e===wi||e===Ti}function Oi(e){return e===xi||e===Si}var ki=[0,0,0,0],Ai=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=Ei,s=t;if(L(t)){var c=yi(t);o=c,(c===1&&!ge(t[0])||c===2&&!ge(t[0][0]))&&(a=!0)}else if(ge(t)&&!Ce(t))o=bi;else if(U(t)){if(!isNaN(+t))o=bi;else{var l=Nr(t);l&&(s=l,o=Ci)}}else if(be(t)){var u=P({},s);u.colorStops=z(t.colorStops,function(e){return{offset:e.offset,color:Nr(e.color)}}),ni(t)?o=wi:ri(t)&&(o=Ti),s=u}i===0?this.valType=o:(o!==this.valType||o===Ei)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=H(n)?n:Un[n]||gr(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=Oi(r),c=Di(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?gi(d,f,r):c&&hi(d.colorStops,f.colorStops))}if(!o&&r!==Ti&&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===bi?n[l].additiveValue=n[l].value-p:r===Ci?n[l].additiveValue=pi([],n[l].value,p,-1):Oi(r)&&(n[l].additiveValue=r===xi?pi([],n[l].value,p,-1):mi([],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===Ci,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?ki:e[s];if((Oi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Oi(i))i===xi?di(g,f[r],p[r],h):fi(g,f[r],p[r],h);else if(Di(i)){var _=f[r],v=p[r],y=i===wi;e[s]={type:y?`linear`:`radial`,x:ui(_.x,v.x,h),y:ui(_.y,v.y,h),colorStops:z(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:ui(e.offset,n.offset,h),color:vi(di([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=ui(_.x2,v.x2,h),e[s].y2=ui(_.y2,v.y2,h)):e[s].r=ui(_.r,v.r,h)}else if(c)di(g,f[r],p[r],h),n||(e[s]=vi(g));else{var b=ui(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===bi?e[n]=e[n]+r:t===Ci?(Nr(e[n],ki),pi(ki,ki,r,1),e[n]=vi(ki)):t===xi?pi(e[n],e[n],r,1):t===Si&&mi(e[n],e[n],r,1)},e}(),ji=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){ae(`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 Ai(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===Ci&&c&&(c=vi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,_i(c),r),this._trackKeys.push(o)}s.addKeyframe(e,_i(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 _r({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 z(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]=_i(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 Mi(){return new Date().getTime()}var Ni=function(e){f(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=Mi()-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&&(Hn(t),!e._paused&&e.update())}Hn(t)},t.prototype.start=function(){this._running||(this._time=Mi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Mi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Mi()-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 ji(e,t.loop);return this.addAnimator(n),n},t}(st),Pi=300,Fi=m.domSupported,Ii=(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:z(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),Li={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ri=!1;function zi(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Bi(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 Vi(e){e&&(e.zrByTouch=!0)}function Hi(e,t){return Ot(e.dom,new Wi(e,t),!0)}function Ui(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 Wi=function(){function e(e,t){this.stopPropagation=Be,this.stopImmediatePropagation=Be,this.preventDefault=Be,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Gi={mousedown:function(e){e=Ot(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=Ot(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=Ot(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=Ot(this.dom,e);var t=e.toElement||e.relatedTarget;Ui(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ri=!0,e=Ot(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ri||(e=Ot(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=Ot(this.dom,e),Vi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Gi.mousemove.call(this,e),Gi.mousedown.call(this,e)},touchmove:function(e){e=Ot(this.dom,e),Vi(e),this.handler.processGesture(e,`change`),Gi.mousemove.call(this,e)},touchend:function(e){e=Ot(this.dom,e),Vi(e),this.handler.processGesture(e,`end`),Gi.mouseup.call(this,e),+new Date-this.__lastTouchMoment<Pi&&Gi.click.call(this,e)},pointerdown:function(e){Gi.mousedown.call(this,e)},pointermove:function(e){zi(e)||Gi.mousemove.call(this,e)},pointerup:function(e){Gi.mouseup.call(this,e)},pointerout:function(e){zi(e)||Gi.mouseout.call(this,e)}};R([`click`,`dblclick`,`contextmenu`],function(e){Gi[e]=function(t){t=Ot(this.dom,t),this.trigger(e,t)}});var Ki={pointermove:function(e){zi(e)||Ki.mousemove.call(this,e)},pointerup:function(e){Ki.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 qi(e,t){var n=t.domHandlers;m.pointerEventsSupported?R(Ii.pointer,function(r){Yi(t,r,function(t){n[r].call(e,t)})}):(m.touchEventsSupported&&R(Ii.touch,function(r){Yi(t,r,function(i){n[r].call(e,i),Bi(t)})}),R(Ii.mouse,function(r){Yi(t,r,function(i){i=Dt(i),t.touching||n[r].call(e,i)})}))}function Ji(e,t){m.pointerEventsSupported?R(Li.pointer,n):m.touchEventsSupported||R(Li.mouse,n);function n(n){function r(r){r=Dt(r),Ui(e,r.target)||(r=Hi(e,r),t.domHandlers[n].call(e,r))}Yi(t,n,r,{capture:!0})}}function Yi(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,At(e.domTarget,t,n,r)}function Xi(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&jt(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}(),Qi=function(e){f(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,Gi),Fi&&(r._globalHandlerScope=new Zi(document,Ki)),qi(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Xi(this._localHandlerScope),Fi&&Xi(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,Fi&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Ji(this,t):Xi(t)}},t}(st),$i=1;m.hasGlobalWindow&&($i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ea=$i,ta=.4,na=`#333`,ra=`#ccc`,ia=`#eee`,aa=Rt,oa=5e-5;function sa(e){return e>oa||e<-oa}var ca=[],la=[],ua=Lt(),da=Math.abs,fa=function(){function e(){}return e.prototype.getLocalTransform=function(e){return pa(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 sa(this.rotation)||sa(this.x)||sa(this.y)||sa(this.scaleX-1)||sa(this.scaleY-1)||sa(this.skewX)||sa(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(aa(n),this.invTransform=null);return}n||=Lt(),t?this.getLocalTransform(n):aa(n),e&&(t?Bt(n,e,n):zt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Lt(),Wt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ca);var n=ca[0]<0?-1:1,r=ca[1]<0?-1:1,i=((ca[0]-n)*t+n)/ca[0]||0,a=((ca[1]-r)*t+r)/ca[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||Lt(),Bt(la,e.invTransform,t),t=la);var n=this.originX,r=this.originY;(n||r)&&(ua[4]=n,ua[5]=r,Bt(la,t,ua),la[4]-=n,la[5]-=r,t=la),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&&nt(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&nt(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&da(e[0]-1)>1e-10&&da(e[3]-1)>1e-10?Math.sqrt(da(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ga(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&&Ht(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}(),pa=fa.getLocalTransform;function ma(){return new fa}var ha=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function ga(e,t){return oe(e,t,ha)}function _a(e){va||=new br(100),e||=`12px sans-serif`;var t=va.get(e);return t||(t={font:e,strWidthCache:new br(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:S.measureText(`国`,e).width,asciiCharWidth:S.measureText(`a`,e).width},va.put(e,t)),t}var va;function ya(e){if(!(ba>=xa)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=S.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?ba=xa:i>2&&ba++,t}}var ba=0,xa=5;function Sa(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ya(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=S.measureText(t,e.font).width,n.put(t,r)),r}function wa(e,t,n,r){var i=Ca(_a(t),e),a=Oa(t);return new J(Ea(0,i,n),Da(0,a,r),i,a)}function Ta(e,t,n,r){var i=((e||``)+``).split(`
3
- `);if(i.length===1)return wa(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=wa(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Ea(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Da(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Oa(e){return _a(e).stWideCharWidth}function ka(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Aa(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+=ka(r[0],n.width),l+=ka(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 ja=`__zr_normal__`,Ma=ha.concat([`ignore`]),Na=le(ha,function(e,t){return e[t]=!0,e},{ignore:!1}),Pa={},Fa=new J(0,0,0,0),Ia=[],La=function(){function e(e){this.id=ie(),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=Fa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Pa,n,d):Aa(Pa,n,d),i.x=Pa.x,i.y=Pa.y,a=Pa.align,o=Pa.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=ka(f[0],d.width),m=ka(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 J(0,0,0,0);i.getLocalTransform(Ia),Wt(Ia,Ia),J.copy(_,d),_.applyTransform(Ia)}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()?ra:na},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Nr(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,Rr(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(W(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,Ma)},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(ja,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===ja;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){ae(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Ga(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,qa(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=Ga(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,qa(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<Ma.length;l++){var u=Ma[l],d=i&&Na[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 fa,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){ae(`Property "`+e+`" is not existed in element `+this.id);return}var i=new ji(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){Ra(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ra(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ra(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}();ce(La,st),ce(La,fa);function Ra(e,t,n,r,i){n||={};var a=[];Wa(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 za(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ba(e){return L(e[0])}function Va(e,t,n){if(L(t[n])){if(L(e[n])||(e[n]=[]),ve(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),za(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ba(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?za(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else za(a,i,o);a.length=i.length}}else e[n]=t[n]}function Ha(e,t){return e===t||L(e)&&L(t)&&Ua(e,t)}function Ua(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 Wa(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=!W(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(W(v)&&!L(v)&&!be(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Wa(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=ue(h,function(e){return!Ha(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[_]=_i(n[_]),Va(n,r,_)}}var x=new ji(n,!1,!1,d?ue(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 Ga(e,t,n,r){return!(n&&n.hoverLayer||r)||Ka(e)||t&&Ka(t)?0:1}function Ka(e){return e.type===`text`||e.type===`tspan`}function qa(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Ja=function(e){f(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 J(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?(J.applyTransform(t,s,c),i||=t.clone(),i.union(t)):(i||=s.clone(),i.union(s))}}return i||t},t}(La);Ja.prototype.type=`group`;var Ya={},Xa={};function Za(e){delete Xa[e]}function Qa(e){if(!e)return!1;if(typeof e==`string`)return zr(e,1)<ta;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=zr(t[i].color,1);return n/=r,n<ta}return!1}var $a=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 Vn,a=n.renderer||`canvas`;if(Ya[a]||(a=B(Ya)[0]),process.env.NODE_ENV!==`production`&&!Ya[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new Ya[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!m.node&&!m.worker&&!s?new Qi(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?m.touchEventsSupported:!!l,d=44,f;u&&(f=G(n.pointerSize,d)),this.handler=new wn(i,o,c,o.root,f),this.animation=new Ni({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=Qa(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=Mi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Mi();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 Ja&&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,Za(this.id))},e}();function eo(e,t){var n=new $a(ie(),e,t);return Xa[n.id]=n,n}function to(e,t){Ya[e]=t}var no;function ro(e){if(typeof no==`function`)return no(e)}function io(e){no=e}var ao=1e-4,oo=20;function so(e){return e.replace(/^\s+|\s+$/g,``)}var co=Math.min,Y=Math.max,lo=Math.abs,uo=Math.round,fo=Math.floor,po=Math.ceil,mo=Math.pow,ho=Math.log,go=Math.LN10,_o=Math.PI,vo=Math.random;function yo(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 bo=xo;function xo(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 So(e,t,n)}function So(e,t,n){return U(e)?Co(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Co(e){return!!so(e).match(/%$/)}function X(e,t,n){return process.env.NODE_ENV!==`production`&&K(t!=null),isNaN(t)?n?``+e:+e:(t=co(Y(0,t),oo),e=(+e).toFixed(t),n?e:+e)}function wo(e){return e.sort(function(e,t){return e-t}),e}function To(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(uo(e*t)/t===e)return n}return Eo(e)}function Eo(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 Y(0,(a<0?0:i-1-a)-r)}function Do(e,t,n){var r=lo(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=ho(2*lo(n||1)*lo(r))/go,a=ho(lo(t))/go,o=Y(0,po(-i+a));return isFinite(o)||(o=NaN),o}function Oo(e,t){var n=Y(To(e),To(t)),r=e+t;return n>oo?r:X(r,n)}var ko=mo(2,53)-1;function Ao(e){var t=_o*2;return(e%t+t)%t}function jo(e){return e>-ao&&e<ao}var Mo=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function No(e){if(e instanceof Date)return e;if(U(e)){var t=Mo.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(uo(e))}function Po(e){return mo(10,Fo(e))}function Fo(e){if(e===0)return 0;var t=fo(ho(e)/go);return e/mo(10,t)>=10&&t++,t}function Io(e,t){var n=Fo(e),r=mo(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,X(e,-n)}function Lo(e){var t=parseFloat(e);return t==e&&(t!==0||!U(e)||e.indexOf(`x`)<=0)?t:NaN}function Ro(e){return!isNaN(Lo(e))}function zo(){return uo(vo()*9)}function Bo(e,t){return t===0?e:Bo(t,e%t)}function Vo(e,t){return e==null?t:t==null?e:e*t/Bo(e,t)}function Ho(e){return e!=null&&isFinite(e)}var Uo=`[ECharts] `,Wo={},Go=typeof console<`u`&&console.warn&&console.log;function Ko(e,t,n){if(Go){if(n){if(Wo[t])return;Wo[t]=!0}console[e](Uo+t)}}function qo(e,t){Ko(`log`,e,t)}function Jo(e,t){Ko(`warn`,e,t)}function Yo(e,t){Ko(`error`,e,t)}function Xo(e){process.env.NODE_ENV!==`production`&&Ko(`warn`,`DEPRECATED: `+e,!0)}function Zo(e,t,n){process.env.NODE_ENV!==`production`&&Xo((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function Qo(){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`:Ce(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:H(e)?`function () { ... }`:Se(e)?e+``:null};n=z(e,function(e){if(U(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 $o(e){throw Error(e)}var es=`series\0`,ts=`\0_ec_\0`;function ns(e){return e instanceof Array?e:e==null?[]:[e]}function rs(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 is=`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 as(e){return W(e)&&!V(e)&&!(e instanceof Date)?e.value:e}function os(e){return W(e)&&!(e instanceof Array)}function ss(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=q();R(t,function(e,n){if(!W(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!vs(e.id)&&_s(e.id),e.name!=null&&!vs(e.name)&&_s(e.name))});var s=cs(e,o,n);return(r||i)&&ls(s,e,o,t),r&&us(s,t),r||i?ds(s,t,i):a&&fs(s,t),ps(s),s}function cs(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`||bs(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function ls(e,t,n,r){R(r,function(i,a){if(!(!i||i.id==null)){var o=hs(i.id),s=n.get(o);if(s!=null){var c=e[s];K(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function us(e,t){R(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)&&!bs(n)&&!bs(a)&&ms(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function ds(e,t,n){R(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||bs(r.existing)||r.existing&&t.id!=null&&!ms(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function fs(e,t){R(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function ps(e){var t=q();R(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),R(e,function(e){var n=e.newOption;K(!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={})}),R(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(W(i)){if(a.name=i.name==null?r?r.name:es+n:hs(i.name),r)a.id=hs(r.id);else if(i.id!=null)a.id=hs(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 ms(e,t,n){var r=gs(t[e],null),i=gs(n[e],null);return r!=null&&i!=null&&r===i}function hs(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return gs(e,``)}function gs(e,t){return e==null?t:U(e)?e:ge(e)||he(e)?e+``:t}function _s(e){process.env.NODE_ENV!==`production`&&Jo("`"+e+"` is invalid id or name. Must be a string or number.")}function vs(e){return he(e)||Ro(e)}function ys(e){var t=e.name;return!!(t&&t.indexOf(es))}function bs(e){return e&&e.id!=null&&hs(e.id).indexOf(ts)===0}function xs(e){return ts+e}function Ss(e,t,n){R(e,function(e){var r=e.newOption;W(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Cs(t,r,e.existing,n))})}function Cs(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function ws(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return V(t.dataIndex)?z(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return V(t.name)?z(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Ts(){var e=`__ec_inner_`+Es++;return function(t){return t[e]||(t[e]={})}}var Es=zo();function Ds(e,t,n){var r=Os(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=js(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 Os(e,t){var n;if(U(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=q(),a={},o=!1;return R(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 ks={useDefault:!0,enableAll:!1,enableNone:!1},As={useDefault:!1,enableAll:!0,enableNone:!0};function js(e,t,n,r){r||=ks;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`&&Yo('`"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`&&Yo('`"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`&&K(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 Ns(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ps(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Fs(e){return e===`auto`?m.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 Is(){return[1/0,-1/0]}function Ls(e,t){Vs(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Rs(e,t){Vs(t)&&t<e[0]&&(e[0]=t)}function zs(e,t){Vs(t)&&t>e[1]&&(e[1]=t)}function Bs(e,t){Hs(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function Vs(e){return e!=null&&isFinite(e)}function Hs(e,t){return Vs(e)&&Vs(t)&&e<=t}function Us(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function Ws(e){Hs(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function Gs(){var e=`__ec_once_`+Ks++;return function(t,n){process.env.NODE_ENV!==`production`&&K(t),ze(t,e)||(t[e]=1,n())}}var Ks=zo();function qs(e,t,n){var r=q(),i=0;R(e,function(a){var o=t(a);process.env.NODE_ENV!==`production`&&K(U(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 Js(e){return process.env.NODE_ENV!==`production`&&K(e.value!=null),e.value+``}function Ys(e){return process.env.NODE_ENV!==`production`&&K(e!=null),e+``}function Xs(e,t){return G(t,!0)?e.seriesIndex+2:0}function Zs(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 Qs(e){return{overallReset:e}}var $s=`.`,ec=`___EC__COMPONENT__CONTAINER___`,tc=`___EC__EXTENDED_CLASS___`;function nc(e){var t={main:``,sub:``};if(e){var n=e.split($s);t.main=n[0]||``,t.sub=n[1]||``}return t}function rc(e){K(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function ic(e){return!!(e&&e[tc])}function ac(e,t){e.$constructor=e,e.extend=function(e){process.env.NODE_ENV!==`production`&&R(t,function(t){e[t]||console.warn("Method `"+t+"` should be implemented"+(e.type?` in `+e.type:``)+`.`)});var n=this,r;return oc(n)?r=function(e){f(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},se(r,this)),P(r.prototype,e),r[tc]=!0,r.extend=this.extend,r.superCall=uc,r.superApply=dc,r.superClass=n,r}}function oc(e){return H(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function sc(e,t){e.extend=t.extend}var cc=Math.round(Math.random()*10);function lc(e){var t=[`__\0is_clz`,cc++].join(`_`);e.prototype[t]=!0,process.env.NODE_ENV!==`production`&&K(!e.isInstance,`The method "is" can not be defined.`),e.isInstance=function(e){return!!(e&&e[t])}}function uc(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 dc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function fc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){rc(r),e.prototype.type=r;var i=nc(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!==ec){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[ec]&&(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=nc(e),r=[],i=t[n.main];return i&&i[ec]?R(i,function(e,t){t!==ec&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[nc(e).main]},e.getAllClassMainTypes=function(){var e=[];return R(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[nc(e).main];return n&&n[ec]};function n(e){var n=t[e.main];return(!n||!n[ec])&&(n=t[e.main]={},n[ec]=!0),n}}function pc(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 mc=pc([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),hc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return mc(this,e,t)},e}(),gc=new br(50);function _c(e){if(typeof e==`string`){var t=gc.get(e);return t&&t.image}return e}function vc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=gc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!bc(t)&&a.pending.push(o)):(t=S.loadImage(e,yc,yc),t.__zrImageSrc=e,gc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function yc(){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 bc(e){return e&&e.width&&e.height}var xc=/\{([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(`
4
- `);a=Cc(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)wc(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
5
- `),e.isTruncated=s}function Cc(e,t,n,r){r||={};var i=P({},r);n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=_a(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Ca(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 wc(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Ca(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?Tc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Ca(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Tc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Sa(n,e.charCodeAt(i));return i}function Ec(e,t,n,r){var i=zc(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=Oa(l),f=G(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?Fc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
6
- `):[],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++)wc(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=_a(l),S=0;S<_.length;S++)w=Math.max(Ca(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 Dc=function(){function e(){}return e}(),Oc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),kc=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 Ac(e,t,n,r,i){var a=new kc,o=zc(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=xc.lastIndex=0,h;(h=xc.exec(o))!=null;){var g=h.index;g>m&&jc(a,o.substring(m,g),t,p),jc(a,h[2],t,p,h[1]),m=xc.lastIndex}m<o.length&&jc(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,te=k.font=A.font||t.font;k.contentHeight=Oa(te);var ne=G(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=Te(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var re=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<re;break outer}var ie=A.width,ae=ie==null||ie===`auto`;if(typeof ie==`string`&&ie.charAt(ie.length-1)===`%`)k.percentWidth=ie,_.push(k),k.contentWidth=Ca(_a(te),k.text);else{if(ae){var M=A.backgroundColor,N=M&&M.image;N&&(N=_c(N),bc(N)&&(k.width=Math.max(k.width,N.width*ne/N.height)))}var P=b&&u!=null?u-D:null;P!=null&&P<k.width?!ae||P<ee?(k.text=``,k.width=k.contentWidth=0):(Sc(S,k.text,P-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Ca(_a(te),k.text)):k.contentWidth=Ca(_a(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],oe=k.percentWidth;k.width=parseInt(oe,10)/100*a.width}return a}function jc(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=ka(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
7
- `),l=!0),r.accumWidth=m}else{var h=Fc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
8
- `);for(var g=_a(c),_=0;_<u.length;_++){var v=u[_],y=new Dc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:Ca(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Oc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Oc([y]))}}function Mc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Nc=le(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Pc(e){return!Mc(e)||!!Nc[e]}function Fc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=_a(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
9
- `){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&&!Pc(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 Ic(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;J.set(Lc,Ea(n,o,i),Da(r,s,a),o,s),J.intersect(t,Lc,null,Rc);var c=Rc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Ea(c.x,c.width,i,!0),e.baseY=Da(c.y,c.height,a,!0)}}var Lc=new J(0,0,0,0),Rc={outIntersectRect:{},clamp:!0};function zc(e){return e==null?e=``:e+=``}function Bc(e){var t=zc(e.text),n=e.font;return Vc(e,Ca(_a(n),t),Oa(n),null)}function Vc(e,t,n,r){var i=new J(Ea(e.x||0,t,e.textAlign),Da(e.y||0,n,e.textBaseline),t,n),a=r??(Hc(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Hc(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Uc=`__zr_style_`+Math.round(Math.random()*10),Wc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Gc={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wc[Uc]=!0;var Kc=[`z`,`z2`,`invisible`],qc=[`invisible`],Jc=function(e){f(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&&Zc(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 J(0,0,0,0),t?J.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 J(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 Le(Wc,e)},t.prototype.useStyle=function(e){e[Uc]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Uc]},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,Kc)},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?qc:Kc,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 Gc},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}(La),Yc=new J(0,0,0,0),Xc=new J(0,0,0,0);function Zc(e,t,n){return Yc.copy(e.getBoundingRect()),e.transform&&Yc.applyTransform(e.transform),Xc.width=t,Xc.height=n,!Yc.intersect(Xc)}var Qc=Math.min,$c=Math.max,el=Math.sin,tl=Math.cos,nl=Math.PI*2,rl=He(),il=He(),al=He();function ol(e,t,n,r,i,a){i[0]=Qc(e,n),i[1]=Qc(t,r),a[0]=$c(e,n),a[1]=$c(t,r)}var sl=[],cl=[];function ll(e,t,n,r,i,a,o,s,c,l){var u=ir,d=tr,f=u(e,n,i,o,sl);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,sl[p]);c[0]=Qc(m,c[0]),l[0]=$c(m,l[0])}f=u(t,r,a,s,cl);for(var p=0;p<f;p++){var h=d(t,r,a,s,cl[p]);c[1]=Qc(h,c[1]),l[1]=$c(h,l[1])}c[0]=Qc(e,c[0]),l[0]=$c(e,l[0]),c[0]=Qc(o,c[0]),l[0]=$c(o,l[0]),c[1]=Qc(t,c[1]),l[1]=$c(t,l[1]),c[1]=Qc(s,c[1]),l[1]=$c(s,l[1])}function ul(e,t,n,r,i,a,o,s){var c=dr,l=cr,u=$c(Qc(c(e,n,i),1),0),d=$c(Qc(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=Qc(e,i,f),o[1]=Qc(t,a,p),s[0]=$c(e,i,f),s[1]=$c(t,a,p)}function dl(e,t,n,r,i,a,o,s,c){var l=rt,u=it,d=Math.abs(i-a);if(d%nl<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(rl[0]=tl(i)*n+e,rl[1]=el(i)*r+t,il[0]=tl(a)*n+e,il[1]=el(a)*r+t,l(s,rl,il),u(c,rl,il),i%=nl,i<0&&(i+=nl),a%=nl,a<0&&(a+=nl),i>a&&!o?a+=nl:i<a&&o&&(i+=nl),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(al[0]=tl(p)*n+e,al[1]=el(p)*r+t,l(s,al,s),u(c,al,c))}var fl={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pl=[],ml=[],hl=[],gl=[],_l=[],vl=[],yl=Math.min,bl=Math.max,xl=Math.cos,Sl=Math.sin,Cl=Math.abs,wl=Math.PI,Tl=wl*2,El=typeof Float32Array<`u`,Dl=[];function Ol(e){return Math.round(e/wl*1e8)/1e8%2*wl}function kl(e,t){var n=Ol(e[0]);n<0&&(n+=Tl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Tl?i=n+Tl:t&&n-i>=Tl?i=n-Tl:!t&&n>i?i=n+(Tl-Ol(n-i)):t&&n<i&&(i=n-(Tl-Ol(i-n))),e[0]=n,e[1]=i}var Al=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/ea/e)||0,this._uy=Cl(n/ea/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(fl.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(fl.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(fl.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(fl.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(),Dl[0]=r,Dl[1]=i,kl(Dl,a),r=Dl[0],i=Dl[1];var o=i-r;return this.addData(fl.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=xl(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(fl.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(fl.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)&&El&&(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(El&&(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,El&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){hl[0]=hl[1]=_l[0]=_l[1]=Number.MAX_VALUE,gl[0]=gl[1]=vl[0]=vl[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 fl.M:t=r=e[a++],n=i=e[a++],_l[0]=r,_l[1]=i,vl[0]=r,vl[1]=i;break;case fl.L:ol(t,n,e[a],e[a+1],_l,vl),t=e[a++],n=e[a++];break;case fl.C:ll(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],_l,vl),t=e[a++],n=e[a++];break;case fl.Q:ul(t,n,e[a++],e[a++],e[a],e[a+1],_l,vl),t=e[a++],n=e[a++];break;case fl.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=xl(f)*u+c,i=Sl(f)*d+l),dl(c,l,u,d,f,p,m,_l,vl),t=xl(p)*u+c,n=Sl(p)*d+l;break;case fl.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];ol(r,i,r+h,i+g,_l,vl);break;case fl.Z:t=r,n=i}rt(hl,hl,_l),it(gl,gl,vl)}return a===0&&(hl[0]=hl[1]=gl[0]=gl[1]=0),new J(hl[0],hl[1],gl[0]-hl[0],gl[1]-hl[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 fl.M:i=o=e[d++],a=s=e[d++];break;case fl.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 fl.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=sr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case fl.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=mr(i,a,y,b,h,g,10),i=h,a=g;break;case fl.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=xl(D)*T+C,s=Sl(D)*E+w),m=bl(T,E)*yl(Tl,Math.abs(O)),i=xl(k)*T+C,a=Sl(k)*E+w;break;case fl.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case fl.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!==fl.L&&v>0&&(e.lineTo(y,b),v=0),S){case fl.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case fl.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 fl.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;ar(c,k,j,te,D,pl),ar(l,A,ee,ne,D,ml),e.bezierCurveTo(pl[1],ml[1],pl[2],ml[2],pl[3],ml[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case fl.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;fr(c,k,j,D,pl),fr(l,A,ee,D,ml),e.quadraticCurveTo(pl[1],ml[1],pl[2],ml[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case fl.A:var re=n[x++],ie=n[x++],ae=n[x++],M=n[x++],N=n[x++],P=n[x++],oe=n[x++],F=!n[x++],I=ae>M?ae:M,se=Cl(ae-M)>.001,ce=N+P,L=!1;if(f){var E=p[g++];h+E>_&&(ce=N+P*(_-h)/E,L=!0),h+=E}if(se&&e.ellipse?e.ellipse(re,ie,ae,M,oe,N,ce,F):e.arc(re,ie,I,N,ce,F),L)break lo;C&&(o=xl(N)*ae+re,s=Sl(N)*M+ie),c=xl(ce)*ae+re,l=Sl(ce)*M+ie;break;case fl.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var R=n[x++],z=n[x++];if(f){var E=p[g++];if(h+E>_){var le=_-h;e.moveTo(u,d),e.lineTo(u+yl(le,R),d),le-=R,le>0&&e.lineTo(u+R,d+yl(le,z)),le-=z,le>0&&e.lineTo(u+bl(R-le,0),d+z),le-=R,le>0&&e.lineTo(u,d+bl(z-le,0));break lo}h+=E}e.rect(u,d,R,z);break;case fl.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=fl,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function jl(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 Ml(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:or(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Nl(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:pr(e,t,n,r,i,a,s,c,null)<=l/2}var Pl=Math.PI*2;function Fl(e){return e%=Pl,e<0&&(e+=Pl),e}var Il=Math.PI*2;function Ll(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)%Il<1e-4)return!0;if(a){var d=r;r=Fl(i),i=Fl(d)}else r=Fl(r),i=Fl(i);r>i&&(i+=Il);var f=Math.atan2(c,s);return f<0&&(f+=Il),f>=r&&f<=i||f+Il>=r&&f+Il<=i}function Rl(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 zl=Al.CMD,Bl=Math.PI*2,Vl=1e-4;function Hl(e,t){return Math.abs(e-t)<Vl}var Ul=[-1,-1,-1],Wl=[-1,-1];function Gl(){var e=Wl[0];Wl[0]=Wl[1],Wl[1]=e}function Kl(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=rr(t,r,a,s,l,Ul);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Ul[h],_=g===0||g===1?.5:1;tr(e,n,i,o,g)<c||(f<0&&(f=ir(t,r,a,s,Wl),Wl[1]<Wl[0]&&f>1&&Gl(),p=tr(t,r,a,s,Wl[0]),f>1&&(m=tr(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 ql(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=ur(t,r,a,s,Ul);if(c===0)return 0;var l=dr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=cr(t,r,a,l),f=0;f<c;f++){var p=Ul[f]===0||Ul[f]===1?.5:1,m=cr(e,n,i,Ul[f]);m<o||(Ul[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=Ul[0]===0||Ul[0]===1?.5:1,m=cr(e,n,i,Ul[0]);return m<o?0:a<t?p:-p}function Jl(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);Ul[0]=-c,Ul[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>=Ul[0]+e&&o<=Ul[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=Ul[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 Yl(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===zl.M&&m>1&&(n||(s+=Rl(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case zl.M:u=a[m++],d=a[m++],c=u,l=d;break;case zl.L:if(n){if(jl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Rl(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case zl.C:if(n){if(Ml(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Kl(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 zl.Q:if(n){if(Nl(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=ql(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case zl.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+=Rl(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Ll(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Jl(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case zl.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(jl(u,d,f,d,t,r,i)||jl(f,d,f,p,t,r,i)||jl(f,p,u,p,t,r,i)||jl(u,p,u,d,t,r,i))return!0}else s+=Rl(f,d,f,p,r,i),s+=Rl(u,p,u,d,r,i);break;case zl.Z:if(n){if(jl(c,l,u,d,t,r,i))return!0}else s+=Rl(c,l,u,d,r,i);c=u,l=d}}return!n&&!Hl(l,d)&&(s+=Rl(c,l,u,d,r,i)||0),s!==0}function Xl(e,t,n){return Yl(e,0,!1,t,n)}function Zl(e,t,n,r){return Yl(e,t,!0,n,r)}var Ql=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wc),$l={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Gc.style)},eu=ha.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),tu=function(e){f(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<eu.length;++s)i[eu[s]]=this[eu[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(U(e)){var t=zr(e,0);return t>.5?na:t>.2?ia:ra}if(e)return ra}return na},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(U(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==zr(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 Al(!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)),Zl(a,o/s,e,t)))return!0}if(this.hasFill())return Xl(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 Le(Ql,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 $l},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){f(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}(Jc),nu=F({strokeFirst:!0,font:g,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ql),ru=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Hc(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Le(nu,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=Bc(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Jc);ru.prototype.type=`tspan`;var iu=F({x:0,y:0},Wc),au={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Gc.style)};function ou(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var su=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Le(iu,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=ou(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 au},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(Jc);su.prototype.type=`image`;function cu(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 lu=Math.round;function uu(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?(lu(r*2)===lu(i*2)&&(e.x1=e.x2=fu(r,s,!0)),lu(a*2)===lu(o*2)&&(e.y1=e.y2=fu(a,s,!0)),e):e}}function du(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=fu(r,s,!0),e.y=fu(i,s,!0),e.width=Math.max(fu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(fu(i+o,s,!1)-e.y,o===0?0:1),e):e}}function fu(e,t,n){if(!t)return e;var r=lu(e*2);return(r+lu(t))%2==0?r/2:(r+(n?1:-1))/2}var pu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),mu={},hu=function(e){f(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new pu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=du(mu,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?cu(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(tu);hu.prototype.type=`rect`;var gu={fill:`#000`},_u=2,vu={},yu={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},Gc.style)},bu=function(e){f(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=gu,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,Du(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 J(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||gu},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 yu},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`;Ic(vu,r.overflowRect,i,a,o,s),i=vu.baseX,a=vu.baseY;var c=Ec(Mu(e),e,vu.outerWidth,vu.outerHeight),l=Nu(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Da(a,c.contentHeight,s);if(l||n){var _=Ea(i,f,o),v=Da(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=ju(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Au(`fill`in e?e.fill:(x=!0,r.fill)),C=ku(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=_u,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ru),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,Tu(D,e),g+=m,E.setBoundingRect(Vc(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;Ic(vu,t.overflowRect,i,a,n,r),i=vu.baseX,a=vu.baseY;var o=Ac(Mu(e),e,vu.outerWidth,vu.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Ea(i,c,n),f=Da(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Nu(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&&Nu(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=ju(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ru),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Au(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=ku(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=_u,_=!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=Te(s.opacity,t.opacity,1),Tu(p,s),y&&(p.lineWidth=Te(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Vc(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(hu),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=G(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(su),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=G(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=Te(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Eu(e)&&(t=[e.fontStyle,e.fontWeight,wu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Oe(t)||e.textFont||e.font},t}(Jc),xu={left:!0,right:1,center:1},Su={top:1,bottom:1,middle:1},Cu=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function wu(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Tu(e,t){for(var n=0;n<Cu.length;n++){var r=Cu[n],i=t[r];i!=null&&(e[r]=i)}}function Eu(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Du(e){return Ou(e),R(e.rich,Ou),e}function Ou(e){if(e){e.font=bu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||xu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Su[n]?n:`top`,e.padding&&=De(e.padding)}}function ku(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Au(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function ju(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Mu(e){var t=e.text;return t!=null&&(t+=``),t}function Nu(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Pu=Ts(),Fu=function(e,t,n,r){if(r){var i=Pu(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Pu(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Iu=q([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Lu=`original`,Ru=`arrayRows`,zu=`objectRows`,Bu=`keyedColumns`,Vu=`typedArray`,Hu=`unknown`,Uu=`column`,Wu=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Gu=function(){function e(e){R(Wu,function(t){this[t]=pe(e[t],e)},this)}return e}();function Ku(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var qu=1,Ju={},Yu=Ts(),Xu=Ts(),Zu=[`emphasis`,`blur`,`select`],Qu=[`normal`,`emphasis`,`blur`,`select`],$u=`highlight`,ed=`downplay`,td=`select`,nd=`unselect`,rd=`toggleSelect`,id=`selectchanged`;function ad(e){return e!=null&&e!==`none`}function od(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function sd(e){od(e,`emphasis`,2)}function cd(e){e.hoverState===2&&od(e,`normal`,0)}function ld(e){od(e,`blur`,1)}function ud(e){e.hoverState===1&&od(e,`normal`,0)}function dd(e){e.selected=!0}function fd(e){e.selected=!1}function pd(e,t,n){t(e,n)}function md(e,t,n){pd(e,t,n),e.isGroup&&e.traverse(function(e){pd(e,t,n)})}function hd(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 gd(e,t,n,r){var i=n&&I(n,`select`)>=0,a=!1;if(e instanceof tu){var o=Yu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(ad(s)||ad(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!ad(l.fill)&&ad(s)?(a=!0,r=P({},r),l=P({},l),l.fill=Vr(s)):!ad(l.stroke)&&ad(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=Vr(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 _d(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function vd(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:hd(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 yd(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return gd(this,e,t,n);if(e===`blur`)return vd(this,e,n);if(e===`select`)return _d(this,e,n)}return n}function bd(e){e.stateProxy=yd;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=yd),n&&(n.stateProxy=yd)}function xd(e,t){!kd(e,t)&&!e.__highByOuter&&md(e,sd)}function Sd(e,t){!kd(e,t)&&!e.__highByOuter&&md(e,cd)}function Cd(e,t){e.__highByOuter|=1<<(t||0),md(e,sd)}function wd(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&md(e,cd)}function Td(e){md(e,ld)}function Ed(e){md(e,ud)}function Dd(e){md(e,dd)}function Od(e){md(e,fd)}function kd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ad(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Xu(i),o=Ku(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){ud(e)}),s&&n.push(i)),a.isBlured=!1}),R(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function jd(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&&Ed(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`||ld(e)}),L(t))a(e.getData(),t);else if(W(t))for(var u=B(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Xu(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 Md(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Xu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){ld(e)})}}}function Nd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&Yo(`Unknown dataType `+t.dataType);return}var a=ws(i,t);a=(V(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=Pu(o);jd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&jd(r,u,d,n)}}function Pd(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`&&!Jd(s[l])&&Yo(`param should be highDownDispatcher`),Pu(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Fd(e,t,n){process.env.NODE_ENV!==`production`&&!Jd(e)&&Yo(`param should be highDownDispatcher`);var r=Pu(e),i=Pd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Md(r.componentMainType,r.componentIndex,n),R(a,function(e){return xd(e,t)})):(jd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Md(r.componentMainType,r.componentIndex,n),xd(e,t))}function Id(e,t,n){process.env.NODE_ENV!==`production`&&!Jd(e)&&Yo(`param should be highDownDispatcher`),Ad(n);var r=Pu(e),i=Pd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?R(i,function(e){return Sd(e,t)}):Sd(e,t)}function Ld(e,t,n){if(Xd(t)){var r=t.dataType,i=ws(e.getData(r),t);V(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Rd(e){R(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Dd(t):Od(t)})})}function zd(e){var t=[];return e.eachSeries(function(e){R(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){qd(e,!0),md(e,bd),Ud(e,t,n)}function Vd(e){qd(e,!1)}function Hd(e,t,n,r){r?Vd(e):Bd(e,t,n)}function Ud(e,t,n){var r=Pu(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var Wd=[`emphasis`,`blur`,`select`],Gd={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Kd(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[Gd[n]]()}}function qd(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 Jd(e){return!!(e&&e.__highDownDispatcher)}function Yd(e){var t=Ju[e];return t==null&&qu<=32&&(t=Ju[e]=qu++),t}function Xd(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Zd(e){var t=e.type;return t===`highlight`||t===`downplay`}function Qd(e){var t=Yu(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 $d=Al.CMD,ef=[[],[],[]],tf=Math.sqrt,nf=Math.atan2;function rf(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=$d.M,d=$d.C,f=$d.L,p=$d.R,m=$d.A,h=$d.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=tf(t[0]*t[0]+t[1]*t[1]),y=tf(t[2]*t[2]+t[3]*t[3]),b=nf(-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++],nt(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],nt(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=ef[c];x[0]=n[o++],x[1]=n[o++],nt(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var af=Math.sqrt,of=Math.sin,sf=Math.cos,cf=Math.PI;function lf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function uf(e,t){return(e[0]*t[0]+e[1]*t[1])/(lf(e)*lf(t))}function df(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(uf(e,t))}function ff(e,t,n,r,i,a,o,s,c,l,u){var d=cf/180*c,f=sf(d)*(e-n)/2+of(d)*(t-r)/2,p=-1*of(d)*(e-n)/2+sf(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=af(m),s*=af(m));var h=(i===a?-1:1)*af((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+sf(d)*g-of(d)*_,y=(t+r)/2+of(d)*g+sf(d)*_,b=df([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=df(x,S);if(uf(x,S)<=-1&&(C=cf),uf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/cf*1e6)/1e6;C=cf*2+w%2*cf}u.addData(l,v,y,o,s,b,C,d,a)}var pf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,mf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function hf(e){var t=new Al;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Al.CMD,c=e.match(pf);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(mf)||[],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,ff(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,ff(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 gf=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(tu);function _f(e){return e.setData!=null}function vf(e,t){var n=hf(e),r=P({},t);return r.buildPath=function(e){var t=_f(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){rf(n,e),this.dirtyShape()},r}function yf(e,t){return new gf(vf(e,t))}function bf(e,t){var n=vf(e,t);return function(e){f(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(gf)}function xf(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 tu(t);return o.createPathProxy(),o.buildPath=function(e){if(_f(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){f(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}(tu);Cf.prototype.type=`circle`;var wf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Tf=function(e){f(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new wf},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}(tu);Tf.prototype.type=`ellipse`;var Ef=Math.PI,Df=Ef*2,Of=Math.sin,kf=Math.cos,Af=Math.acos,jf=Math.atan2,Mf=Math.abs,Nf=Math.sqrt,Pf=Math.max,Ff=Math.min,If=1e-4;function Lf(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<If))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Rf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/Nf(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)*Nf(Pf(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 zf(e){var t;if(V(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=Pf(t.r,0),i=Pf(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=Mf(c-s),p=f>Df&&f%Df;if(p>If&&(f=p),!(r>If))e.moveTo(l,u);else if(f>Df-If)e.moveTo(l+r*kf(s),u+r*Of(s)),e.arc(l,u,r,s,c,!d),i>If&&(e.moveTo(l+i*kf(c),u+i*Of(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*kf(s),j=r*Of(s),ee=i*kf(c),te=i*Of(c),ne=f>If;if(ne){var re=t.cornerRadius;re&&(n=zf(re),m=n[0],h=n[1],g=n[2],_=n[3]);var ie=Mf(r-i)/2;if(v=Ff(ie,g),y=Ff(ie,_),b=Ff(ie,m),x=Ff(ie,h),w=S=Pf(v,y),T=C=Pf(b,x),(S>If||C>If)&&(E=r*kf(c),D=r*Of(c),O=i*kf(s),k=i*Of(s),f<Ef)){var ae=Lf(A,j,O,k,E,D,ee,te);if(ae){var M=A-ae[0],N=j-ae[1],P=E-ae[0],oe=D-ae[1],F=1/Of(Af((M*P+N*oe)/(Nf(M*M+N*N)*Nf(P*P+oe*oe)))/2),I=Nf(ae[0]*ae[0]+ae[1]*ae[1]);w=Ff(S,(r-I)/(F+1)),T=Ff(C,(i-I)/(F-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>If){var se=Ff(g,w),ce=Ff(_,w),L=Rf(O,k,A,j,r,se,d),R=Rf(E,D,ee,te,r,ce,d);e.moveTo(l+L.cx+L.x0,u+L.cy+L.y0),w<S&&se===ce?e.arc(l+L.cx,u+L.cy,w,jf(L.y0,L.x0),jf(R.y0,R.x0),!d):(se>0&&e.arc(l+L.cx,u+L.cy,se,jf(L.y0,L.x0),jf(L.y1,L.x1),!d),e.arc(l,u,r,jf(L.cy+L.y1,L.cx+L.x1),jf(R.cy+R.y1,R.cx+R.x1),!d),ce>0&&e.arc(l+R.cx,u+R.cy,ce,jf(R.y1,R.x1),jf(R.y0,R.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>If)||!ne)e.lineTo(l+ee,u+te);else if(T>If){var se=Ff(m,T),ce=Ff(h,T),L=Rf(ee,te,E,D,i,-ce,d),R=Rf(A,j,O,k,i,-se,d);e.lineTo(l+L.cx+L.x0,u+L.cy+L.y0),T<C&&se===ce?e.arc(l+L.cx,u+L.cy,T,jf(L.y0,L.x0),jf(R.y0,R.x0),!d):(ce>0&&e.arc(l+L.cx,u+L.cy,ce,jf(L.y0,L.x0),jf(L.y1,L.x1),!d),e.arc(l,u,i,jf(L.cy+L.y1,L.cx+L.x1),jf(R.cy+R.y1,R.cx+R.x1),d),se>0&&e.arc(l+R.cx,u+R.cy,se,jf(R.y1,R.x1),jf(R.y0,R.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Vf=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}(),Hf=function(e){f(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Vf},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}(tu);Hf.prototype.type=`sector`;var Uf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Wf=function(e){f(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Uf},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}(tu);Wf.prototype.type=`ring`;function Gf(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++)rt(u,u,e[f]),it(d,d,e[f]);rt(u,u,r[0]),it(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(We(e[f]));continue}else c=e[f-1],l=e[f+1];qe(a,l,c),Xe(a,a,t);var h=Qe(m,c),g=Qe(m,l),_=h+g;_!==0&&(h/=_,g/=_),Xe(o,a,-h),Xe(s,a,g);var v=Ke([],m,o),y=Ke([],m,s);r&&(it(v,v,u),rt(v,v,d),it(y,y,u),rt(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Kf(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Gf(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 qf=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Jf=function(e){f(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new qf},t.prototype.buildPath=function(e,t){Kf(e,t,!0)},t}(tu);Jf.prototype.type=`polygon`;var Yf=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Xf=function(e){f(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 Yf},t.prototype.buildPath=function(e,t){Kf(e,t,!1)},t}(tu);Xf.prototype.type=`polyline`;var Zf={},Qf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),$f=function(e){f(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 Qf},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=uu(Zf,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}(tu);$f.prototype.type=`line`;var ep=[],tp=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 np(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?nr:tr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?nr:tr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?lr:cr)(e.x1,e.cpx1,e.x2,t),(n?lr:cr)(e.y1,e.cpy1,e.y2,t)]}var rp=function(e){f(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 tp},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&&(fr(n,o,i,u,ep),o=ep[1],i=ep[2],fr(r,s,a,u,ep),s=ep[1],a=ep[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(ar(n,o,c,i,u,ep),o=ep[1],c=ep[2],i=ep[3],ar(r,s,l,a,u,ep),s=ep[1],l=ep[2],a=ep[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return np(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=np(this.shape,e,!0);return Ze(t,t)},t}(tu);rp.prototype.type=`bezier-curve`;var ip=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}(),ap=function(e){f(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 ip},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}(tu);ap.prototype.type=`arc`;var op=function(e){f(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),tu.prototype.getBoundingRect.call(this)},t}(tu),sp=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),cp=function(e){f(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}(sp),lp=function(e){f(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}(sp),up=Math.min,dp=Math.max,fp=Math.abs,pp=[0,0],mp=[0,0],hp=gn(),gp=hp.minTv,_p=hp.maxTv,vp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Gt;for(var n=0;n<2;n++)this._axes[n]=new Gt;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);Gt.sub(r[0],n[1],n[0]),Gt.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&&Gt.set(t,0,0),hp.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!hp.negativeSize&&Gt.copy(t,r?hp.useDir?hp.dirMinTv:gp:_p),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,pp),e._getProjMinMaxOnAxis(a,t._corners,mp),hp.negativeSize||pp[1]<mp[0]||pp[0]>mp[1]){if(i=!1,hp.negativeSize||n)return i;var s=fp(mp[0]-pp[1]),c=fp(pp[0]-mp[1]);up(s,c)>_p.len()&&(s<c?Gt.scale(_p,o,-s*r):Gt.scale(_p,o,c*r))}else if(!n){var s=fp(mp[0]-pp[1]),c=fp(pp[0]-mp[1]);(hp.useDir||up(s,c)<gp.len())&&((s<c||!hp.bidirectional)&&(Gt.scale(gp,o,s*r),hp.useDir&&hp.calcDirMTV()),(s>=c||!hp.bidirectional)&&(Gt.scale(gp,o,-c*r),hp.useDir&&hp.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=up(l,o),s=dp(l,s)}n[0]=o+hp.touchThreshold,n[1]=s-hp.touchThreshold,hp.negativeSize=n[1]<n[0]},e}(),yp=[],bp=function(e){f(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 J(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(yp)),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}(Jc),xp=Ts();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=G(r.duration,200),u=G(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)),H(d)&&(d=d(n,i)),H(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;H(i)?(o=a,a=i,i=null):W(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 wp(e,t,n,r,i,a){Cp(`update`,e,t,n,r,i,a)}function Tp(e,t,n,r,i,a){Cp(`enter`,e,t,n,r,i,a)}function Ep(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 Dp(e,t,n,r,i,a){Ep(e)||Cp(`leave`,e,t,n,r,i,a)}function Op(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Dp(e,{style:{opacity:0}},t,n,r)}function kp(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Op(e,t,n,r)}):Op(e,t,n,r)}function Ap(e){xp(e).oldStyle=e.style}var jp=t({Arc:()=>ap,BezierCurve:()=>rp,BoundingRect:()=>J,Circle:()=>Cf,CompoundPath:()=>op,Ellipse:()=>Tf,Group:()=>Ja,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>su,IncrementalDisplayable:()=>bp,Line:()=>$f,LinearGradient:()=>cp,OrientedBoundingRect:()=>vp,Path:()=>tu,Point:()=>Gt,Polygon:()=>Jf,Polyline:()=>Xf,RadialGradient:()=>lp,Rect:()=>hu,Ring:()=>Wf,Sector:()=>Hf,Text:()=>bu,WH:()=>Pp,XY:()=>Np,applyTransform:()=>Yp,calcZ2Range:()=>vm,clipPointsByRect:()=>em,clipRectByRect:()=>tm,createIcon:()=>nm,decomposeTransform:()=>Sm,ensureCopyRect:()=>hm,ensureCopyTransform:()=>gm,expandOrShrinkRect:()=>sm,extendPath:()=>Lp,extendShape:()=>Fp,getCurrentCanvasPainter:()=>wm,getShapeClass:()=>zp,getTransform:()=>Jp,groupTransition:()=>$p,initProps:()=>Tp,isBoundingRectAxisAligned:()=>pm,isElementRemoved:()=>Ep,lineLineIntersect:()=>im,linePolygonIntersect:()=>rm,makeImage:()=>Vp,makePath:()=>Bp,mergePath:()=>Up,payloadDisableAnimation:()=>xm,registerShape:()=>Rp,removeElement:()=>Dp,removeElementWithFadeOut:()=>kp,resizePath:()=>Wp,retrieveZInfo:()=>_m,setTooltipConfig:()=>um,subPixelOptimize:()=>qp,subPixelOptimizeLine:()=>Gp,subPixelOptimizeRect:()=>Kp,transformDirection:()=>Xp,traverseElements:()=>fm,traverseUpdateZ:()=>ym,updateProps:()=>wp}),Mp={},Np=[`x`,`y`],Pp=[`width`,`height`];function Fp(e){return tu.extend(e)}var Ip=bf;function Lp(e,t){return Ip(e,t)}function Rp(e,t){Mp[e]=t}function zp(e){if(Mp.hasOwnProperty(e))return Mp[e]}function Bp(e,t,n,r){var i=yf(e,t);return n&&(r===`center`&&(n=Hp(n,i.getBoundingRect())),Wp(i,n)),i}function Vp(e,t,n){var r=new su({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(Hp(t,i))}}});return r}function Hp(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 Up=xf;function Wp(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Gp(e,t){return uu(e,e,{lineWidth:t}),e}function Kp(e,t){return du(e,e,t),e}var qp=fu;function Jp(e,t){for(var n=Rt([]);e&&e!==t;)Bt(n,e.getLocalTransform(),n),e=e.parent;return n}function Yp(e,t,n){return t&&!L(t)&&(t=fa.getLocalTransform(t)),n&&(t=Wt([],t)),nt([],e,t)}function Xp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:lo(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:lo(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Yp(a,t,n),lo(a[0])>lo(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Zp(e){return!e.isGroup}function Qp(e){return e.shape!=null}function $p(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Zp(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Qp(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(Zp(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),wp(e,r,n,Pu(e).dataIndex)}}})}function em(e,t){return z(e,function(e){var n=e[0];n=Y(n,t.x),n=co(n,t.x+t.width);var r=e[1];return r=Y(r,t.y),r=co(r,t.y+t.height),[n,r]})}function tm(e,t){var n=Y(e.x,t.x),r=co(e.x+e.width,t.x+t.width),i=Y(e.y,t.y),a=co(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 nm(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 su(r)):Bp(e.replace(`path://`,``),r,n,`center`)}function rm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(im(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function im(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=am(u,d,c,l);if(om(f))return!1;var p=e-i,m=t-a,h=am(p,m,c,l)/f;if(h<0||h>1)return!1;var g=am(p,m,u,d)/f;return!(g<0||g>1)}function am(e,t,n,r){return e*r-n*t}function om(e){return e<=1e-6&&e>=-1e-6}function sm(e,t,n,r,i){return t==null?e:(ge(t)?cm[0]=cm[1]=cm[2]=cm[3]=t:(process.env.NODE_ENV!==`production`&&K(t.length===4),cm[0]=t[0],cm[1]=t[1],cm[2]=t[2],cm[3]=t[3]),r&&(cm[0]=Y(0,cm[0]),cm[1]=Y(0,cm[1]),cm[2]=Y(0,cm[2]),cm[3]=Y(0,cm[3])),n&&(cm[0]=-cm[0],cm[1]=-cm[1],cm[2]=-cm[2],cm[3]=-cm[3]),lm(e,cm,`x`,`width`,3,1,i&&i[0]||0),lm(e,cm,`y`,`height`,0,2,i&&i[1]||0),e)}var cm=[0,0,0,0];function lm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Y(0,co(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:lo(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function um(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=U(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&&R(B(c),function(e){ze(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Pu(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function dm(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function fm(e,t){if(e){if(V(e))for(var n=0;n<e.length;n++)dm(e[n],t);else dm(e,t)}}function pm(e){return!e||lo(e[1])<mm&&lo(e[2])<mm||lo(e[0])<mm&&lo(e[3])<mm}var mm=1e-5;function hm(e,t){return e?J.copy(e,t):t.clone()}function gm(e,t){return t?zt(e||Lt(),t):void 0}function _m(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function vm(e){var t=-1/0,n=1/0;dm(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 ym(e,t,n){bm(e,t,n,-1/0)}function bm(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=Y(bm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Y(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 xm(e){return e.animation={duration:0},e}function Sm(e,t){return t?zt(Cm.transform,t):Rt(Cm.transform),Cm.decomposeTransform(),ga(e,Cm),e}var Cm=new fa;Cm.transform=Lt();function wm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Rp(`circle`,Cf),Rp(`ellipse`,Tf),Rp(`sector`,Hf),Rp(`ring`,Wf),Rp(`polygon`,Jf),Rp(`polyline`,Xf),Rp(`rect`,hu),Rp(`line`,$f),Rp(`bezierCurve`,rp),Rp(`arc`,ap);var Tm={};function Em(e,t){for(var n=0;n<Zu.length;n++){var r=Zu[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 Dm(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??=H(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Zu.length;l++){var u=Zu[l],d=t[u];c[u]=G(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Om(e,t,n,r){n||=Tm;for(var i=e instanceof bu,a=!1,o=0;o<Qu.length;o++){var s=t[Qu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new bu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Dm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Am(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(jm(u,n,!1));for(var o=0;o<Zu.length;o++){var p=Zu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!G(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Am(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=jm(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&&(zm(c).setLabelText=function(e){var r=Dm(n,t,e);Em(c,r)})}else c&&(c.ignore=!0);e.dirty()}function km(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Zu.length;r++){var i=Zu[r];n[i]=e.getModel([i,t])}return n}function Am(e,t,n,r,i){var a={};return Mm(a,e,n,r,i),t&&P(a,t),a}function jm(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=G(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 Mm(e,t,n,r,i){n||=Tm;var a=t.ecModel,o=a&&a.option.textStyle,s=Nm(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=G(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Lm(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=ge(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Vm.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=De(_),h.__marginType=Vm.textMargin)}Lm(e,t,o,null,null,n,r,i,!0,!1)}function Nm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Tm).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 Pm=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Fm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Im=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Lm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Tm;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(process.env.NODE_ENV!==`production`&&d===`auto`&&Zo(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&Zo(`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=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(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;_<Pm.length;_++){var v=Pm[_],y=i!==!1&&r?Te(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Fm.length;_++){var v=Fm[_],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;_<Im.length;_++){var v=Im[_],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`&&Zo(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&Zo(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function Rm(e,t){var n=t&&t.getModel(`textStyle`);return Oe([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 zm=Ts();function Bm(e,t,n,r){if(e){var i=zm(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 Vm={minMargin:1,textMargin:2},Hm=[`textStyle`,`color`],Um=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],Wm=new bu,Gm=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Hm):null)},e.prototype.getFont=function(){return Rm({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<Um.length;n++)t[Um[n]]=this.getShallow(Um[n]);return Wm.useStyle(t),Wm.update(),Wm.getBoundingRect()},e}(),Km=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],qm=pc(Km),Jm=function(){function e(){}return e.prototype.getLineStyle=function(e){return qm(this,e)},e}(),Ym=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Xm=pc(Ym),Zm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Xm(this,e,t)},e}(),Qm=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(!m.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}();ac(Qm),lc(Qm),ce(Qm,Jm),ce(Qm,Zm),ce(Qm,hc),ce(Qm,Gm);var $m=Math.round(Math.random()*10);function eh(e){return[e||``,$m++].join(`_`)}function th(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=nc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=nc(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function nh(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(R(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]),R(u.successor,d?p:f)}R(c,function(){var n=``;throw process.env.NODE_ENV!==`production`&&(n=Qo(`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 R(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),R(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 R(e,function(e){I(t,e)>=0&&n.push(e)}),n}}function rh(e,t){return N(N({},e,!0),t,!0)}var ih={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:`. `}}}},ah={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:``}}}},oh=`ZH`,sh=`EN`,ch=sh,lh={},uh={},dh=m.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||ch).toUpperCase().indexOf(oh)>-1?oh:ch}():ch;function fh(e,t){e=e.toUpperCase(),uh[e]=new Qm(t),lh[e]=t}function ph(e){if(U(e)){var t=lh[e.toUpperCase()]||{};return e===oh||e===sh?M(t):N(M(t),M(lh[ch]),!1)}return N(M(e),M(lh[ch]),!1)}function mh(e){return uh[e]}function hh(){return uh[ch]}fh(sh,ih),fh(oh,ah);var gh=null;function _h(){return gh}function vh(e,t){var n=_h(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function yh(e){var t=e.brk;return t?t.breaks:[]}function bh(e){var t=e.brk;return t?t.hasBreaks():!1}var xh=1e3,Sh=xh*60,Ch=Sh*60,wh=Ch*24,Th=wh*365,Eh={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})/},Dh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Oh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,kh=`{yyyy}-{MM}-{dd}`,Ah={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:kh,hour:kh+` `+Dh.hour,minute:kh+` `+Dh.minute,second:kh+` `+Dh.second,millisecond:Oh},jh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Mh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Nh(e){return!U(e)&&!H(e)?Ph(e):e}function Ph(e){e||={};var t={},n=!0;return R(jh,function(t){n&&=e[t]==null}),R(jh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=jh[s],l=W(a)&&!V(a)?a[c]:a,u=void 0;V(l)?(u=l.slice(),o=u[0]||``):U(l)?(o=l,u=[o]):(o==null?o=Dh[r]:Eh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Fh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Ih(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 Lh(e){return e===Ih(e)}function Rh(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function zh(e,t,n,r){var i=No(e),a=i[Uh(n)](),o=i[Wh(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[Gh(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[Kh(n)](),d=(u-1)%12+1,f=i[qh(n)](),p=i[Jh(n)](),m=i[Yh(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Qm?r:mh(r||dh)||hh()).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,Fh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Fh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Fh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Fh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Fh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Fh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Fh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Fh(m,3)).replace(/{S}/g,m+``)}function Bh(e,t,n,r,i){var a=null;if(U(n))a=n;else if(H(n)){var o={time:e.time,level:e.time?e.time.level:0},s=_h();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=Vh(e.value,i);a=n[u][u][0]}}return zh(new Date(e.value),a,i,r)}function Vh(e,t){var n=No(e),r=n[Wh(t)]()+1,i=n[Gh(t)](),a=n[Kh(t)](),o=n[qh(t)](),s=n[Jh(t)](),c=n[Yh(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 Hh(e,t,n){switch(t){case`year`:e[Zh(n)](0);case`month`:e[Qh(n)](1);case`day`:e[$h(n)](0);case`hour`:e[eg(n)](0);case`minute`:e[tg(n)](0);case`second`:e[ng(n)](0)}return e}function Uh(e){return e?`getUTCFullYear`:`getFullYear`}function Wh(e){return e?`getUTCMonth`:`getMonth`}function Gh(e){return e?`getUTCDate`:`getDate`}function Kh(e){return e?`getUTCHours`:`getHours`}function qh(e){return e?`getUTCMinutes`:`getMinutes`}function Jh(e){return e?`getUTCSeconds`:`getSeconds`}function Yh(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Xh(e){return e?`setUTCFullYear`:`setFullYear`}function Zh(e){return e?`setUTCMonth`:`setMonth`}function Qh(e){return e?`setUTCDate`:`setDate`}function $h(e){return e?`setUTCHours`:`setHours`}function eg(e){return e?`setUTCMinutes`:`setMinutes`}function tg(e){return e?`setUTCSeconds`:`setSeconds`}function ng(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function rg(e){if(!Ro(e))return U(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function ig(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 ag=De;function og(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Oe(e)?e:`-`}function a(e){return Ho(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?No(e):e;if(!isNaN(+c))return zh(c,r,n);if(s)return`-`}if(t===`ordinal`)return he(e)?i(e):ge(e)&&a(e)?e+``:`-`;var l=Lo(e);return a(l)?rg(l):he(e)?i(e):typeof e==`boolean`?e+``:`-`}var sg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],cg=function(e,t){return`{`+e+(t??``)+`}`};function lg(e,t,n){V(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=sg[a];e=e.replace(cg(o),cg(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(cg(sg[c],s),n?xt(l):l)}return e}function ug(e,t){var n=U(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:`+xt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+xt(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 dg(e,t){return t||=`transparent`,U(e)?e:W(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var fg={},pg={},mg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(fg,!0),this._normalMasterList=n(pg,!1);function n(n,r){var i=[];return R(n,function(n,a){var o=n.create(e,t);i=i.concat(o||[]),process.env.NODE_ENV!==`production`&&r&&R(o,function(e){return K(!e.update)})}),i}},e.prototype.update=function(e,t){R(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`){fg[e]=t;return}pg[e]=t},e.get=function(e){return pg[e]||fg[e]},e}();function hg(e){return!!fg[e]}var gg=q();function _g(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=gg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function vg(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&&Yo(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!hg(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&Yo(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function yg(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys,a=e.allowNotFound;process.env.NODE_ENV!==`production`&&K(!!n);var o=vg(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`&&K(t.mainType===`series`),t.coordinateSystem=l):t.boxCoordinateSystem=l,s):(process.env.NODE_ENV!==`production`&&(a||Yo(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var bg=R,xg=[`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)})}var wg=Cg;me(Cg,`vertical`),me(Cg,`horizontal`);function Tg(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 Eg(e,t,n){n=ag(n||0);var r=t.width,i=t.height,a=bo(e.left,r),o=bo(e.top,i),s=bo(e.right,r),c=bo(e.bottom,i),l=bo(e.width,r),u=bo(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 J((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 Og(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=_g(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`&&Yo(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 kg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Eg(F({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Ag(e){var t=e.layoutMode||e.constructor.layoutMode;return W(t)?t:t?{type:t}:null}function jg(e,t,n){var r=n&&n.ignoreSize;!V(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(bg(n,function(t){c[t]=e[t]}),bg(n,function(e){ze(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(!ze(a,f)&&ze(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){bg(e,function(e){t[e]=n[e]})}}function Mg(e){return Ng({},e)}function Ng(e,t){return t&&e&&bg(xg,function(n){ze(t,n)&&(e[n]=t[n])}),e}var Pg=Ts(),Z=function(e){f(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=eh(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Ag(this),r=n?Mg(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&jg(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=Ag(this);n&&jg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!ic(e))return e.defaultOption;var t=Pg(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 js(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Tg(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}(Qm);sc(Z,Qm),fc(Z),th(Z),nh(Z,Fg);function Fg(e){var t=[];return R(Z.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=z(t,function(e){return nc(e).main}),e!==`dataset`&&I(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},Ig=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 Lg in P(Ig,{primary:Ig.neutral80,secondary:Ig.neutral70,tertiary:Ig.neutral60,quaternary:Ig.neutral50,disabled:Ig.neutral20,border:Ig.neutral30,borderTint:Ig.neutral20,borderShade:Ig.neutral40,background:Ig.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Ig.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Ig.neutral70,axisLineTint:Ig.neutral40,axisTick:Ig.neutral70,axisTickMinor:Ig.neutral60,axisLabel:Ig.neutral70,axisSplitLine:Ig.neutral15,axisMinorSplitLine:Ig.neutral05}),Ig)if(Ig.hasOwnProperty(Lg)){var Rg=Ig[Lg];Lg===`theme`?Q.darkColor.theme=Ig.theme.slice():Lg===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:Lg.indexOf(`accent`)===0?Q.darkColor[Lg]=Lr(Rg,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[Lg]=Lr(Rg,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 zg=``;typeof navigator<`u`&&(zg=navigator.platform||``);var Bg=`rgba(0, 0, 0, 0.2)`,Vg=Q.color.theme[0],Hg=Lr(Vg,null,null,.9),Ug={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[Hg,Vg],aria:{decal:{decals:[{color:Bg,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Bg,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Bg,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Bg,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Bg,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Bg,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:zg.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},Wg={Must:1,Might:2,Not:3},Gg=Ts();function Kg(e){Gg(e).datasetMap=q()}function qg(e,t,n){var r={},i=Jg(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Gg(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),R(e,function(t,n){var i=W(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});R(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 Jg(e){if(!e.get(`data`,!0))return js(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},ks).models[0]}function Yg(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:js(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},ks).models}function Xg(e,t){return Zg(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Zg(e,t,n,r,i,a){var o,s=5;if(ve(e))return Wg.Not;var c,l;if(r){var u=r[a];W(u)?(c=u.name,l=u.type):U(u)&&(c=u)}if(l!=null)return l===`ordinal`?Wg.Must:Wg.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 Wg.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 Wg.Not;var f=_[c];if(!f||ve(f))return Wg.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=as(g);if(!V(y))return Wg.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=U(e);if(e!=null&&isFinite(Number(e))&&e!==``)return t?Wg.Might:Wg.Not;if(t&&e!==`-`)return Wg.Must}return Wg.Not}var Qg=q();function $g(e,t){K(Qg.get(e)==null&&t),Qg.set(e,t)}function e_(e,t,n){var r=Qg.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++)K(bs(i[a]));return n.concat(i)}var t_=Ts();Ts();var n_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ns(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return i_(this,t_,r,i,e,t,n)},e.prototype.clearColorPalette=function(){a_(this,t_)},e}();function r_(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 i_(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:r_(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 a_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var o_,s_,c_,l_=`\0_ec_inner`,u_=1,d_={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`},f_={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`},p_={};function m_(e){R(e,function(e,t){if(!Z.hasClass(t)){var n=d_[t];n&&!p_[n]&&(Yo(`Component `+t+` is used but not imported.
1
+ (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.ibc-title{box-sizing:border-box;border-bottom:1px solid var(--gray-50);width:100%;padding-bottom:26px}.ibc-title__row{flex-direction:column;justify-content:space-between;align-items:flex-start;gap:20px;display:flex}@media (width>=577px){.ibc-title__row{flex-direction:row}}.ibc-title__text{flex-direction:column;gap:19px;min-width:0;display:flex}.ibc-title__heading{color:var(--gray-100);font-family:Roboto;font-size:40px;font-style:normal;font-weight:700;line-height:normal}.ibc-title__subtitle{color:var(--gray-90);font-family:Roboto;font-size:26px;font-style:normal;font-weight:400;line-height:normal}.ibc-title__brand{flex-shrink:0;align-items:center;gap:10px;line-height:0;display:flex}.ibc-title__logo{width:auto;height:40px;display:block}.ibc-title__button{background:var(--bg);border:1px solid var(--gray-50);border-radius:100px;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:relative}@media (width>=577px){.ibc-title__button{width:32px;height:32px}.ibc-title__button svg{width:16px;height:16px}}.ibc-title__share-modal{background:var(--bg);border:1px solid var(--gray-50);z-index:2;border-radius:9px;flex-direction:column;gap:8px;padding:8px;display:flex;position:absolute;top:calc(100% + 8px);left:0;box-shadow:0 0 12px #0000004d}@media (width>=577px){.ibc-title__share-modal{left:auto;right:0}}.ibc-title__share-modal-button{color:var(--gray-90);background:0 0;border:none;gap:6px;padding:4px;font-size:14px;font-weight:300;line-height:150%;display:flex}.ibc-title__share-modal-icon{border:1px solid var(--gray-80);border-radius:100px;justify-content:center;align-items:center;width:22px;height:22px;padding:10px;display:flex}.horizontal-bar-chart{background:var(--gray-0);padding:16px}.horizontal-bar-chart-credits{background:var(--gray-0);justify-content:space-between;padding-top:24px;padding-bottom:36px;display:flex}.horizontal-bar-chart-ctn{flex-direction:column;padding-top:36px;display:flex}.horizontal-bar-chart-font{background:var(--gray-0);color:var(--gray-90);align-items:center;gap:8px;font-size:16px;font-weight:400;display:flex}.horizontal-bar-chart-font>span{font-weight:700}.horizontal-bar-chart-label{background:var(--bg);border:1px solid var(--gray-30);-webkit-user-select:none;user-select:none;border-radius:100px;align-items:center;gap:6px;width:max-content;padding:8px 16px;display:flex}.horizontal-bar-chart-label-icon{border-radius:100px;width:12px;height:12px}.horizontal-bar-chart-label-text{color:var(--gray-90);width:max-content;font-size:12px;font-weight:400}.horizontal-bar-chart-labels{scrollbar-width:none;touch-action:pan-x;-webkit-user-select:none;user-select:none;gap:8px;width:100%;padding-top:36px;padding-bottom:36px;display:flex;overflow-x:auto}.horizontal-bar-chart-labels::-webkit-scrollbar{display:none}.horizontal-bar-chart-legend{border-bottom:1px solid #c2c2c2;align-items:center;gap:8px;max-width:100%;display:flex}.horizontal-bar-chart-ref{border-radius:16px}@media screen and (width>=992px){.horizontal-bar-chart{padding:36px 20px}}.ibc-footer{border-top:1px solid var(--gray-50);flex-direction:column;justify-content:space-between;gap:48px;padding:24px 0 0;display:flex}@media (width>=577px){.ibc-footer{flex-direction:row;gap:12px}}.ibc-footer-font{color:var(--gray-90);font-size:16px;font-weight:400}.ibc-footer-font>span{font-weight:700}.ibc-footer-logo{object-fit:contain;max-width:90px;height:21px;max-height:21px}.line-chart{background:#fafafa;flex-direction:column;gap:36px;padding:36px 4px;display:flex}.line-chart-ctn{background:var(--bg);border-radius:16px;flex-direction:column;gap:36px;display:flex}.line-chart-labels{gap:16px;display:flex}.line-chart-label{align-items:center;gap:8px;display:flex}.line-chart-label-img{object-fit:cover;border-radius:100px;width:50px;height:50px}.line-chart-label-content{background:var(--gray-0);border:1px solid var(--gray-30);border-radius:50px;justify-content:center;align-items:center;gap:10px;padding:8px 16px;display:flex}.line-chart-label-text{color:var(--gray-90);font-size:12px;font-weight:400}.bars-line-chart{height:400px;padding:16px}.vertical-bar-chart{background:var(--gray-0);flex-direction:column;gap:36px;padding:36px 4px;display:flex}.vertical-bar-chart-ctn{background:var(--bg);border-radius:16px;flex-direction:column;gap:36px;display:flex}.vertical-bar-chart-labels{gap:8px;max-width:100%;display:flex;overflow-x:auto}.vertical-bar-chart-labels::-webkit-scrollbar{display:none}.vertical-bar-chart-label{background:var(--gray-0);border:1px solid var(--gray-30);border-radius:100px;align-items:center;gap:6px;width:max-content;padding:8px 16px;display:flex}.vertical-bar-chart-label-icon{border-radius:100px;width:12px;height:12px}.vertical-bar-chart-label-text{color:var(--gray-90);width:max-content;font-size:12px;font-weight:400}.bars-vertical-bar-chart{height:400px;padding:16px}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
2
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));let l=require("react/jsx-runtime"),u=require("react");u=c(u,1);var d=({color:e=`var(--gray-90)`})=>(0,l.jsx)(`svg`,{width:25,height:23,viewBox:`0 0 25 23`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:(0,l.jsx)(`path`,{d:`M15.1484 18.209C16.2165 17.062 17.2844 15.9156 18.3525 14.7686C19.6733 13.3501 21.0013 11.9235 22.3223 10.5049C21.0337 9.12301 19.7399 7.73568 18.4463 6.34863C17.3459 5.16872 16.2458 3.98836 15.1484 2.81152V7.11133L15.0605 7.12207L13.7334 7.2832C13.2462 7.34244 12.7328 7.3756 12.3428 7.40918C11.9212 7.4455 11.5709 7.487 11.25 7.55957L11.249 7.55859L11.2188 7.56641L11.2139 7.56836V7.56738L11.1797 7.57422C6.97754 8.31826 3.54696 11.4713 2.3457 15.6885L2.33203 15.7441C2.04422 16.8005 1.87981 17.8793 1.8252 18.9707C2.122 18.5479 2.4433 18.1395 2.79492 17.749L2.80762 17.7363C5.6064 14.6866 9.60855 13.2162 13.625 13.6777H13.624C13.6309 13.6784 13.6373 13.6791 13.6406 13.6797C13.6426 13.68 13.6445 13.6805 13.6455 13.6807L13.7715 13.7002C14.0526 13.7561 14.2412 13.8734 14.2803 13.8965C14.3888 13.9606 14.4699 14.0248 14.5107 14.0586C14.5577 14.0974 14.5963 14.1335 14.6191 14.1553L14.6514 14.1865L14.6533 14.1875L14.5908 14.2471L14.5811 14.2568L14.6533 14.1885L14.6738 14.209H14.6729L15.1201 14.6709L15.1484 14.7002V18.209ZM24.2998 10.7754L24.2832 10.8008C24.095 11.0787 23.9061 11.3293 23.6904 11.5801L23.6875 11.583C20.9494 14.5235 18.2039 17.4716 15.4658 20.4121L15.374 20.5234C15.1464 20.7683 14.828 20.9048 14.4971 20.9043H14.4902V20.9033L14.3389 20.8926H14.332L14.3252 20.8906C13.7676 20.7689 13.3904 20.2251 13.4482 19.6543V15.4482L13.4316 15.4375C9.93065 15.0376 6.45647 16.3191 4.03418 18.959L4.03516 18.96C3.32287 19.7509 2.74215 20.6242 2.2666 21.5801C2.03257 22.1442 1.3672 22.4611 0.805664 22.2168L0.745117 22.1914V22.1768C0.443793 22.0328 0.22449 21.7539 0.171875 21.418L0.170898 21.4102L0.15918 21.2695V21.2686C0.0187049 19.5013 0.124356 17.7326 0.511719 16.001L0.512695 15.998L0.695312 15.2617L0.696289 15.2598C2.02169 10.5049 5.78955 6.91872 10.4414 5.91699L10.8936 5.82812C11.3251 5.73086 11.7619 5.68221 12.2012 5.64453C12.6152 5.60902 13.0281 5.58023 13.4482 5.53223V1.33789C13.3904 0.707944 13.8273 0.161489 14.4434 0.100586L14.4531 0.0996094V0.100586C14.6044 0.100586 14.7904 0.0990999 14.9502 0.194336C15.1239 0.257283 15.2662 0.374645 15.3779 0.516602H15.3789L23.9541 9.71289L23.959 9.71777V9.71875C24.0959 9.88874 24.2065 10.0607 24.29 10.2334L24.2998 10.2539V10.7754Z`,fill:e,stroke:e,strokeWidth:.2})}),f=`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`,p=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),m=/iPad|iPhone|iPod/.test(navigator.userAgent),h=[{buttonText:`Whatsapp`,id:`wa`,iconName:`whatsapp`},{buttonText:`Facebook`,id:`fb`,iconName:`facebook`},{buttonText:`Telegram`,id:`tl`,iconName:`telegram`},{buttonText:`X`,id:`x`,iconName:`x`},{buttonText:`Linkedin`,id:`li`,iconName:`linkedin`}];function g({className:e,showShare:t=!0,showSubtitle:n=!0,showTitle:r=!0,subtitle:i,title:a,url:o}){if(!t&&!r&&!n)return null;let[s,c]=(0,u.useState)(!1),f=e=>{if(typeof window>`u`||!o)return null;let t=`Te comparto este gráfico de Infobae`;switch(e){case`fb`:window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(o)}&quote=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`share_facebook`,`width=658,height=354,scrollbars=no`);break;case`x`:window.open(`https://x.com/intent/post?url=${encodeURIComponent(o)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`share_x`,`width=950,height=850,scrollbars=no`);break;case`wa`:m?window.location.href=`whatsapp://send?text=${encodeURIComponent(`${t} ${o}`)}`:window.open(`https://wa.me/?text=${encodeURIComponent(`${t} ${o}`)}&type=custom_url&app_absent=0`,`_blank`,`noopener,noreferrer`);break;case`li`:window.open(`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(o)}`,`share_linkedin`,`width=830,height=460,scrollbars=no`);break;case`tl`:p?window.location.href=`tg://msg_url?url=${encodeURIComponent(o)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`:window.open(`https://telegram.me/share/url?url=${encodeURIComponent(o)}&text=Te%20comparto%20este%20gr%C3%A1fico%20de%20Infobae`,`_blank`,`noopener,noreferrer`)}return null};return(0,l.jsx)(`header`,{className:[`ibc-title`,e].filter(Boolean).join(` `),children:(0,l.jsxs)(`div`,{className:`ibc-title__row`,children:[(0,l.jsxs)(`div`,{className:`ibc-title__text`,children:[!r||!a?null:(0,l.jsx)(`p`,{className:`ibc-title__heading`,children:a}),!n||!i?null:(0,l.jsx)(`p`,{className:`ibc-title__subtitle`,children:i})]}),!t||!o?null:(0,l.jsx)(`div`,{className:`ibc-title__brand`,children:(0,l.jsxs)(`button`,{className:`ibc-title__button`,onClick:()=>c(e=>!e),children:[(0,l.jsx)(d,{}),s?(0,l.jsx)(`div`,{className:`ibc-title__share-modal`,children:h.map(({buttonText:e,id:t,iconName:n})=>(0,l.jsxs)(`button`,{"aria-label":`Compartir en ${e}`,className:`ibc-title__share-modal-button`,onClick:()=>f(t),type:`button`,children:[(0,l.jsx)(`div`,{className:`ibc-title__share-modal-icon`,children:(0,l.jsx)(`img`,{alt:`Ícono de ${e}`,src:`https://infobae-static.infobae.com/assets/images/icons/${n}-icon.svg`})}),(0,l.jsx)(`p`,{children:e})]},t))}):null]})})]})})}var _=function(e,t){return _=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])},_(e,t)};function v(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var y=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),b=new(function(){function e(){this.browser=new y,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`?(b.wxa=!0,b.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?b.worker=!0:!b.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(b.node=!0,b.svgSupported=!0):x(navigator.userAgent,b);function x(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,w=100,T=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function E(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)/w}return t}var D=E(T),O={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=O.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=D[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}},k=ge([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),A=ge([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),j=Object.prototype.toString,ee=Array.prototype,te=ee.forEach,ne=ee.filter,re=ee.slice,ie=ee.map,ae=function(){}.constructor,oe=ae?ae.prototype:null,se=`__proto__`,ce=2311,le=2**53-1;function ue(){return ce>=le&&(ce=0),ce++}function de(){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=j.call(e);if(n===`[object Array]`){if(!Re(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=M(e[r])}}else if(A[n]){if(!Re(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(!k[n]&&!Re(e)&&!Ee(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==se&&(t[o]=M(e[o]));return t}function N(e,t,n){if(!U(t)||!U(e))return n?M(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==se){var i=e[r],a=t[r];U(a)&&U(i)&&!B(a)&&!B(i)&&!Ee(a)&&!Ee(i)&&!we(a)&&!we(i)&&!Re(a)&&!Re(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!==se&&(e[n]=t[n]);return e}function fe(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=z(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}O.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 pe(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 me(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 he(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function L(e,t,n){if(e&&t){if(e.forEach&&e.forEach===te)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 Ne(e);if(e.map&&e.map===ie)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 ge(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 _e(e,t,n){if(!e)return[];if(!t)return Ne(e);if(e.filter&&e.filter===ne)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 ve(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 z(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 ye(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return e.apply(t,n.concat(re.call(arguments)))}}var be=oe&&V(oe.bind)?oe.call.bind(oe.bind):ye;function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(re.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):j.call(e)===`[object Array]`}function V(e){return typeof e==`function`}function H(e){return typeof e==`string`}function Se(e){return j.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 we(e){return!!k[j.call(e)]}function Te(e){return!!A[j.call(e)]}function Ee(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function De(e){return e.colorStops!=null}function Oe(e){return e.image!=null}function ke(e){return j.call(e)===`[object RegExp]`}function Ae(e){return e!==e}function je(){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 Me(e,t,n){return e??t??n}function Ne(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return re.apply(e,t)}function Pe(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 Fe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var Ie=`__ec_primitive__`;function Le(e){e[Ie]=!0}function Re(e){return e[Ie]}var ze=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 z(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Be=typeof Map==`function`;function Ve(){return Be?new Map:new ze}var He=function(){function e(t){var n=B(t);this.data=Ve();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 Be?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new He(e)}function Ue(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 We(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 Ge(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function Ke(e,t){return e.hasOwnProperty(t)}function qe(){}var Je=180/Math.PI;function Ye(e,t){return e??=0,t??=0,[e,t]}function Xe(e,t){return e[0]=t[0],e[1]=t[1],e}function Ze(e){return[e[0],e[1]]}function Qe(e,t,n){return e[0]=t,e[1]=n,e}function $e(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function et(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function tt(e){return Math.sqrt(nt(e))}function nt(e){return e[0]*e[0]+e[1]*e[1]}function rt(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function it(e,t){var n=tt(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function at(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ot=at;function st(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ct=st;function lt(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function ut(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 dt(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function ft(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var pt=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),mt=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 pt(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 pt(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 pt(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new pt(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new pt(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new pt(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),ht=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}(),gt=Math.log(2);function _t(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)/gt);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]*_t(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function vt(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=_t(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)*_t(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 yt=`___zrEVENTSAVED`,bt=[];function xt(e,t,n,r,i){return Ct(bt,t,r,i,!0)&&Ct(e,n,bt[0],bt[1])}function St(e,t){e&&n(e),t&&n(t);function n(e){var t=e[yt];t&&(t.clearMarkers&&t.clearMarkers(),delete e[yt])}}function Ct(e,t,n,r,i){if(t.getBoundingClientRect&&b.domSupported&&!Et(t)){var a=t[yt]||(t[yt]={}),o=Tt(wt(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function wt(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 Tt(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?vt(s,o):vt(o,s))}function Et(e){return e.nodeName.toUpperCase()===`CANVAS`}var Dt=/([&<>"'])/g,Ot={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`};function kt(e){return e==null?``:(e+``).replace(Dt,function(e,t){return Ot[t]})}var At=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jt=[],Mt=b.browser.firefox&&+b.browser.version.split(`.`)[0]<39;function Nt(e,t,n,r){return n||={},r?Pt(e,t,n):Mt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?Pt(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function Pt(e,t,n){if(b.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Et(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}if(Ct(jt,e,r,i)){n.zrX=jt[0],n.zrY=jt[1];return}}n.zrX=n.zrY=0}function Ft(e){return e||window.event}function It(e,t,n){if(t=Ft(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&&Nt(e,i,t,n)}else{Nt(e,t,t,n);var a=Lt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&At.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function Lt(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 Rt(e,t,n,r){e.addEventListener(t,n,r)}function zt(e,t,n,r){e.removeEventListener(t,n,r)}var Bt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Vt=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=Nt(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 Wt)if(Wt.hasOwnProperty(t)){var n=Wt[t](this._track,e);if(n)return n}},e}();function Ht(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function Ut(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Wt={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=Ht(r)/Ht(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Ut(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}};function Gt(){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 qt(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 Yt(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 Xt(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 Zt(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 Qt(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 $t=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}(),en=Math.min,tn=Math.max,nn=Math.abs,rn=[`x`,`y`],an=[`width`,`height`],on=new $t,sn=new $t,cn=new $t,ln=new $t,un=wn(),dn=un.minTv,fn=un.maxTv,pn=[0,0],q=function(){function e(e,t,n,r){hn(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=en(e.x,this.x),n=en(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?tn(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?tn(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 _n(Gt(),this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&$t.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=hn(bn,t.x,t.y,t.width,t.height)),n instanceof e||(n=hn(xn,n.x,n.y,n.width,n.height));var s=!!r;un.reset(i,s);var c=un.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)&&(pn[0]=1/0,pn[1]=0,Cn(l,u,p,m,0,s,a,o),Cn(d,f,h,g,1,s,a,o),s&&$t.copy(r,_?un.useDir?un.dirMinTv:dn:fn)),_},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){gn(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&&gn(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}on.x=cn.x=t.x,on.y=ln.y=t.y,sn.x=ln.x=t.x+t.width,sn.y=cn.y=t.y+t.height,on.transform(n),ln.transform(n),sn.transform(n),cn.transform(n),e.x=en(on.x,sn.x,cn.x,ln.x),e.y=en(on.y,sn.y,cn.y,ln.y);var s=tn(on.x,sn.x,cn.x,ln.x),c=tn(on.y,sn.y,cn.y,ln.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||[]),Yt(e,e,Qe(Sn,-t.x,-t.y)),Zt(e,e,Qe(Sn,r,i)),Yt(e,e,Qe(Sn,n.x,n.y)),e},e}(),mn=q.create,hn=q.set,gn=q.copy,_n=q.calculateTransform,vn=q.applyTransform,yn=q.contain,bn=new q(0,0,0,0),xn=new q(0,0,0,0),Sn=[];function Cn(e,t,n,r,i,a,o,s){var c=nn(t-n),l=nn(r-e),u=en(c,l),d=rn[i],f=rn[1-i],p=an[i];t<n||r<e?c<l?(a&&(fn[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(fn[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=tn(e,n),o[p]=en(t,r)-o[d]),a&&(u<pn[0]||un.useDir)&&(pn[0]=en(u,pn[0]),(c<l||!un.bidirectional)&&(dn[d]=c,dn[f]=0,un.useDir&&un.calcDirMTV()),(c>=l||!un.bidirectional)&&(dn[d]=-l,dn[f]=0,un.useDir&&un.calcDirMTV())))}function wn(){var e=0,t=new $t,n=new $t,r={minTv:new $t,maxTv:new $t,useDir:!1,dirMinTv:new $t,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=tn(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 nn(e)<1e-10}return r}var Tn=`silent`;function En(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:Dn}}function Dn(){Bt(this.event)}var On=function(e){v(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}(ht),kn=function(){function e(e,t){this.x=e,this.y=t}return e}(),An=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],jn=new q(0,0,0,0),Mn=function(e){v(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new kn(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 mt(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(L(An,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=Fn(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 kn(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 kn(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=En(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 kn(e,t);if(Pn(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)&&(jn.copy(u.getBoundingRect()),u.transform&&jn.applyTransform(u.transform),jn.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(Pn(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 Vt;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 kn;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(ht);L([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Mn.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=Fn(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||ot(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Nn(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||Tn}return!1}function Pn(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=Nn(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==Tn)){t.target=o;break}}}function Fn(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var In=32,Ln=7;function Rn(e){for(var t=0;e>=In;)t|=e&1,e>>=1;return e+t}function zn(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 Vn(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 Hn(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 Un(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=Ln,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=Un(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=Hn(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=Un(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=Hn(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>=Ln||m>=Ln);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-Un(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-Hn(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>=Ln||g>=Ln);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 Gn(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<In){a=zn(e,n,r,t),Vn(e,n,r,n+a,t);return}var o=Wn(e,t),s=Rn(i);do{if(a=zn(e,n,r,t),a<s){var c=i;c>s&&(c=s),Vn(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 Kn=!1;function qn(){Kn||(Kn=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function Jn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Yn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Jn}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,Gn(n,Jn)},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)&&(qn(),p.z=0),isNaN(p.z2)&&(qn(),p.z2=0),isNaN(p.zlevel)&&(qn(),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}(),Xn=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},Zn={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-Zn.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?Zn.bounceIn(e*2)*.5:Zn.bounceOut(e*2-1)*.5+.5}},Qn=Math.pow,$n=Math.sqrt,er=1e-8,tr=1e-4,nr=$n(3),rr=1/3,ir=Ye(),ar=Ye(),or=Ye();function sr(e){return e>-er&&e<er}function cr(e){return e>er||e<-er}function lr(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 ur(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function dr(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(sr(u)&&sr(d)){if(sr(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(sr(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=$n(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Qn(-y,rr):Qn(y,rr),b=b<0?-Qn(-b,rr):Qn(b,rr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*$n(u*u*u)),S=Math.acos(x)/3,C=$n(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+nr*Math.sin(S)))/(3*o),T=(-s+C*(w-nr*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 fr(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(sr(o)){if(cr(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(sr(u))i[0]=-a/(2*o);else if(u>0){var d=$n(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 pr(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 mr(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;ir[0]=c,ir[1]=l;for(var v=0;v<1;v+=.05)ar[0]=lr(e,n,i,o,v),ar[1]=lr(t,r,a,s,v),g=ct(ir,ar),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<tr);y++)m=d-f,h=d+f,ar[0]=lr(e,n,i,o,m),ar[1]=lr(t,r,a,s,m),g=ct(ar,ir),m>=0&&g<p?(d=m,p=g):(or[0]=lr(e,n,i,o,h),or[1]=lr(t,r,a,s,h),_=ct(or,ir),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=lr(e,n,i,o,d),u[1]=lr(t,r,a,s,d)),$n(p)}function hr(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=lr(e,n,i,o,m),g=lr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function gr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function _r(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function vr(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(sr(a)){if(cr(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(sr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=$n(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 yr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function br(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 xr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;ir[0]=o,ir[1]=s;for(var f=0;f<1;f+=.05){ar[0]=gr(e,n,i,f),ar[1]=gr(t,r,a,f);var p=ct(ir,ar);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<tr);m++){var h=l-u,g=l+u;ar[0]=gr(e,n,i,h),ar[1]=gr(t,r,a,h);var p=ct(ar,ir);if(h>=0&&p<d)l=h,d=p;else{or[0]=gr(e,n,i,g),or[1]=gr(t,r,a,g);var _=ct(or,ir);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=gr(e,n,i,l),c[1]=gr(t,r,a,l)),$n(d)}function Sr(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=gr(e,n,i,f),m=gr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Cr=/cubic-bezier\(([0-9,\.e ]+)\)/;function wr(e){var t=e&&Cr.exec(e);if(t){var n=t[1].split(`,`),r=+Fe(n[0]),i=+Fe(n[1]),a=+Fe(n[2]),o=+Fe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:dr(0,r,a,1,e,s)&&lr(0,i,o,1,s[0])}}}var Tr=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||qe,this.ondestroy=e.ondestroy||qe,this.onrestart=e.onrestart||qe,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:Zn[e]||wr(e)},e}(),Er=function(){function e(e){this.value=e}return e}(),Dr=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new Er(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 Dr,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 Er(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}(),kr={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 Ar(e){return e=Math.round(e),e<0?0:e>255?255:e}function jr(e){return e=Math.round(e),e<0?0:e>360?360:e}function Mr(e){return e<0?0:e>1?1:e}function Nr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Ar(parseFloat(t)/100*255):Ar(parseInt(t,10))}function Pr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Mr(parseFloat(t)/100):Mr(parseFloat(t))}function Fr(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 Ir(e,t,n){return e+(t-e)*n}function Lr(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Rr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var zr=new Or(20),Br=null;function Vr(e,t){Br&&Rr(Br,t),Br=zr.put(e,Br||t.slice())}function Hr(e,t){if(e){t||=[];var n=zr.get(e);if(n)return Rr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in kr)return Rr(t,kr[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)){Lr(t,0,0,0,1);return}return Lr(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(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)){Lr(t,0,0,0,1);return}return Lr(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?Lr(t,+l[0],+l[1],+l[2],1):Lr(t,0,0,0,1);u=Pr(l.pop());case`rgb`:if(l.length>=3)return Lr(t,Nr(l[0]),Nr(l[1]),Nr(l[2]),l.length===3?u:Pr(l[3])),Vr(e,t),t;Lr(t,0,0,0,1);return;case`hsla`:if(l.length!==4){Lr(t,0,0,0,1);return}return l[3]=Pr(l[3]),Ur(l,t),Vr(e,t),t;case`hsl`:if(l.length!==3){Lr(t,0,0,0,1);return}return Ur(l,t),Vr(e,t),t;default:return}}Lr(t,0,0,0,1)}}function Ur(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Pr(e[1]),i=Pr(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],Lr(t,Ar(Fr(o,a,n+1/3)*255),Ar(Fr(o,a,n)*255),Ar(Fr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Wr(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 Gr(e,t){var n=Hr(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 Jr(n,n.length===4?`rgba`:`rgb`)}}function Kr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Hr(t[i]),s=Hr(t[a]),c=r-i,l=Jr([Ar(Ir(o[0],s[0],c)),Ar(Ir(o[1],s[1],c)),Ar(Ir(o[2],s[2],c)),Mr(Ir(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function qr(e,t,n,r){var i=Hr(e);if(e)return i=Wr(i),t!=null&&(i[0]=jr(V(t)?t(i[0]):t)),n!=null&&(i[1]=Pr(V(n)?n(i[1]):n)),r!=null&&(i[2]=Pr(V(r)?r(i[2]):r)),Jr(Ur(i),`rgba`)}function Jr(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 Yr(e,t){var n=Hr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Xr=new Or(100);function Zr(e){if(H(e)){var t=Xr.get(e);return t||(t=Gr(e,-.1),Xr.put(e,t)),t}if(De(e)){var n=P({},e);return n.colorStops=R(e.colorStops,function(e){return{offset:e.offset,color:Gr(e.color,-.1)}}),n}return e}var Qr=Math.round;function $r(e){var t;if(!e||e===`transparent`)e=`none`;else if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Hr(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}return{color:e,opacity:t??1}}var ei=1e-4;function ti(e){return e<ei&&e>-ei}function ni(e){return Qr(e*1e3)/1e3}function ri(e){return Qr(e*1e4)/1e4}function ii(e){return`matrix(`+ni(e[0])+`,`+ni(e[1])+`,`+ni(e[2])+`,`+ni(e[3])+`,`+ri(e[4])+`,`+ri(e[5])+`)`}var ai={left:`start`,right:`end`,center:`middle`,middle:`middle`};function oi(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}function si(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function ci(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 li(e){return e&&!!e.image}function ui(e){return e&&!!e.svgElement}function di(e){return li(e)||ui(e)}function fi(e){return e.type===`linear`}function pi(e){return e.type===`radial`}function mi(e){return e&&(e.type===`linear`||e.type===`radial`)}function hi(e){return`url(#`+e+`)`}function gi(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 _i(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(`+Qr(o*Je)+`deg, `+Qr(s*Je)+`deg)`),c.join(` `)}var vi=(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`&&de(`Base64 isn't natively supported in the current environment.`),null}})(),yi=Array.prototype.slice;function bi(e,t,n){return(t-e)*n+e}function xi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=bi(t[a],n[a],r);return e}function Si(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]=bi(t[o][s],n[o][s],r)}return e}function Ci(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function wi(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 Ei(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]:yi.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 Di(e){if(he(e)){var t=e.length;if(he(e[0])){for(var n=[],r=0;r<t;r++)n.push(yi.call(e[r]));return n}return yi.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 ki(e){return he(e&&e[0])?2:1}var Ai=0,ji=1,Mi=2,Ni=3,Pi=4,Fi=5,Ii=6;function Li(e){return e===Pi||e===Fi}function Ri(e){return e===ji||e===Mi}var zi=[0,0,0,0],Bi=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=Ii,s=t;if(he(t)){var c=ki(t);o=c,(c===1&&!Ce(t[0])||c===2&&!Ce(t[0][0]))&&(a=!0)}else if(Ce(t)&&!Ae(t))o=Ai;else if(H(t)){if(!isNaN(+t))o=Ai;else{var l=Hr(t);l&&(s=l,o=Ni)}}else if(De(t)){var u=P({},s);u.colorStops=R(t.colorStops,function(e){return{offset:e.offset,color:Hr(e.color)}}),fi(t)?o=Pi:pi(t)&&(o=Fi),s=u}i===0?this.valType=o:(o!==this.valType||o===Ii)&&(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:Zn[n]||wr(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=Ri(r),c=Li(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?Ei(d,f,r):c&&Ti(d.colorStops,f.colorStops))}if(!o&&r!==Fi&&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===Ai?n[l].additiveValue=n[l].value-p:r===Ni?n[l].additiveValue=Ci([],n[l].value,p,-1):Ri(r)&&(n[l].additiveValue=r===ji?Ci([],n[l].value,p,-1):wi([],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===Ni,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?zi:e[s];if((Ri(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Ri(i))i===ji?xi(g,f[r],p[r],h):Si(g,f[r],p[r],h);else if(Li(i)){var _=f[r],v=p[r],y=i===Pi;e[s]={type:y?`linear`:`radial`,x:bi(_.x,v.x,h),y:bi(_.y,v.y,h),colorStops:R(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:bi(e.offset,n.offset,h),color:Oi(xi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=bi(_.x2,v.x2,h),e[s].y2=bi(_.y2,v.y2,h)):e[s].r=bi(_.r,v.r,h)}else if(c)xi(g,f[r],p[r],h),n||(e[s]=Oi(g));else{var b=bi(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===Ai?e[n]=e[n]+r:t===Ni?(Hr(e[n],zi),Ci(zi,zi,r,1),e[n]=Oi(zi)):t===ji?Ci(e[n],e[n],r,1):t===Mi&&wi(e[n],e[n],r,1)},e}(),Vi=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){de(`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,z(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 Bi(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===Ni&&c&&(c=Oi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Di(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Di(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 Tr({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]=Di(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=z(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 Hi(){return new Date().getTime()}var Ui=function(e){v(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=Hi()-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&&(Xn(t),!e._paused&&e.update())}Xn(t)},t.prototype.start=function(){this._running||(this._time=Hi(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Hi(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Hi()-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 Vi(e,t.loop);return this.addAnimator(n),n},t}(ht),Wi=300,Gi=b.domSupported,Ki=(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})}})(),qi={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Ji=!1;function Yi(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Xi(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 Zi(e){e&&(e.zrByTouch=!0)}function Qi(e,t){return It(e.dom,new ea(e,t),!0)}function $i(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 ea=function(){function e(e,t){this.stopPropagation=qe,this.stopImmediatePropagation=qe,this.preventDefault=qe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),ta={mousedown:function(e){e=It(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=It(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=It(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=It(this.dom,e);var t=e.toElement||e.relatedTarget;$i(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Ji=!0,e=It(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Ji||(e=It(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=It(this.dom,e),Zi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),ta.mousemove.call(this,e),ta.mousedown.call(this,e)},touchmove:function(e){e=It(this.dom,e),Zi(e),this.handler.processGesture(e,`change`),ta.mousemove.call(this,e)},touchend:function(e){e=It(this.dom,e),Zi(e),this.handler.processGesture(e,`end`),ta.mouseup.call(this,e),+new Date-this.__lastTouchMoment<Wi&&ta.click.call(this,e)},pointerdown:function(e){ta.mousedown.call(this,e)},pointermove:function(e){Yi(e)||ta.mousemove.call(this,e)},pointerup:function(e){ta.mouseup.call(this,e)},pointerout:function(e){Yi(e)||ta.mouseout.call(this,e)}};L([`click`,`dblclick`,`contextmenu`],function(e){ta[e]=function(t){t=It(this.dom,t),this.trigger(e,t)}});var na={pointermove:function(e){Yi(e)||na.mousemove.call(this,e)},pointerup:function(e){na.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 ra(e,t){var n=t.domHandlers;b.pointerEventsSupported?L(Ki.pointer,function(r){aa(t,r,function(t){n[r].call(e,t)})}):(b.touchEventsSupported&&L(Ki.touch,function(r){aa(t,r,function(i){n[r].call(e,i),Xi(t)})}),L(Ki.mouse,function(r){aa(t,r,function(i){i=Ft(i),t.touching||n[r].call(e,i)})}))}function ia(e,t){b.pointerEventsSupported?L(qi.pointer,n):b.touchEventsSupported||L(qi.mouse,n);function n(n){function r(r){r=Ft(r),$i(e,r.target)||(r=Qi(e,r),t.domHandlers[n].call(e,r))}aa(t,n,r,{capture:!0})}}function aa(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,Rt(e.domTarget,t,n,r)}function oa(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&zt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var sa=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),ca=function(e){v(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 sa(t,ta),Gi&&(r._globalHandlerScope=new sa(document,na)),ra(r,r._localHandlerScope),r}return t.prototype.dispose=function(){oa(this._localHandlerScope),Gi&&oa(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,Gi&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?ia(this,t):oa(t)}},t}(ht),la=1;b.hasGlobalWindow&&(la=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ua=la,da=.4,fa=`#333`,pa=`#ccc`,ma=`#eee`,ha=Kt,ga=5e-5;function _a(e){return e>ga||e<-ga}var va=[],ya=[],ba=Gt(),xa=Math.abs,Sa=function(){function e(){}return e.prototype.getLocalTransform=function(e){return Ca(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 _a(this.rotation)||_a(this.x)||_a(this.y)||_a(this.scaleX-1)||_a(this.scaleY-1)||_a(this.skewX)||_a(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(ha(n),this.invTransform=null);return}n||=Gt(),t?this.getLocalTransform(n):ha(n),e&&(t?Jt(n,e,n):qt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||Gt(),Qt(this.invTransform,n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(va);var n=va[0]<0?-1:1,r=va[1]<0?-1:1,i=((va[0]-n)*t+n)/va[0]||0,a=((va[1]-r)*t+r)/va[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||Gt(),Jt(ya,e.invTransform,t),t=ya);var n=this.originX,r=this.originY;(n||r)&&(ba[4]=n,ba[5]=r,Jt(ya,t,ba),ya[4]-=n,ya[5]-=r,t=ya),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&&ut(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&ut(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&xa(e[0]-1)>1e-10&&xa(e[3]-1)>1e-10?Math.sqrt(xa(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Ea(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&&Xt(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}(),Ca=Sa.getLocalTransform;function wa(){return new Sa}var Ta=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Ea(e,t){return fe(e,t,Ta)}function Da(e){Oa||=new Or(100),e||=`12px sans-serif`;var t=Oa.get(e);return t||(t={font:e,strWidthCache:new Or(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:O.measureText(`国`,e).width,asciiCharWidth:O.measureText(`a`,e).width},Oa.put(e,t)),t}var Oa;function ka(e){if(!(Aa>=ja)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=O.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?Aa=ja:i>2&&Aa++,t}}var Aa=0,ja=5;function Ma(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=ka(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Na(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=O.measureText(t,e.font).width,n.put(t,r)),r}function Pa(e,t,n,r){var i=Na(Da(t),e),a=Ra(t);return new q(Ia(0,i,n),La(0,a,r),i,a)}function Fa(e,t,n,r){var i=((e||``)+``).split(`
3
+ `);if(i.length===1)return Pa(i[0],t,n,r);for(var a=new q(0,0,0,0),o=0;o<i.length;o++){var s=Pa(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function Ia(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function La(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Ra(e){return Da(e).stWideCharWidth}function za(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ba(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+=za(r[0],n.width),l+=za(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__`,Ha=Ta.concat([`ignore`]),Ua=ge(Ta,function(e,t){return e[t]=!0,e},{ignore:!1}),Wa={},Ga=new q(0,0,0,0),Ka=[],qa=function(){function e(e){this.id=ue(),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=Ga,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Wa,n,d):Ba(Wa,n,d),i.x=Wa.x,i.y=Wa.y,a=Wa.align,o=Wa.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=za(f[0],d.width),m=za(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(Ka),Qt(Ka,Ka),q.copy(_,d),_.applyTransform(Ka)}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()?pa:fa},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Hr(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,Jr(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(U(e))for(var n=z(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,Ha)},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){de(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=this._textContent,l=to(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,ro(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=to(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,ro(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<Ha.length;l++){var u=Ha[l],d=i&&Ua[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 Sa,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){de(`Property "`+e+`" is not existed in element `+this.id);return}var i=new Vi(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){Ja(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ja(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ja(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}();me(qa,ht),me(qa,Sa);function Ja(e,t,n,r,i){n||={};var a=[];eo(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 Ya(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Xa(e){return he(e[0])}function Za(e,t,n){if(he(t[n])){if(he(e[n])||(e[n]=[]),Te(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ya(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Xa(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ya(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ya(a,i,o);a.length=i.length}}else e[n]=t[n]}function Qa(e,t){return e===t||he(e)&&he(t)&&$a(e,t)}function $a(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 eo(e,t,n,r,i,a,o,s){for(var c=z(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)&&!he(v)&&!De(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}eo(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=_e(h,function(e){return!Qa(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[_]=Di(n[_]),Za(n,r,_)}}var x=new Vi(n,!1,!1,d?_e(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 to(e,t,n,r){return!(n&&n.hoverLayer||r)||no(e)||t&&no(t)?0:1}function no(e){return e.type===`text`||e.type===`tspan`}function ro(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var io=function(e){v(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 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}(qa);io.prototype.type=`group`;var ao={},oo={};function so(e){delete oo[e]}function co(e){if(!e)return!1;if(typeof e==`string`)return Yr(e,1)<da;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Yr(t[i].color,1);return n/=r,n<da}return!1}var lo=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 Yn,a=n.renderer||`canvas`;if(ao[a]||(a=z(ao)[0]),process.env.NODE_ENV!==`production`&&!ao[a])throw Error(`Renderer '`+a+`' is not imported. Please import it first.`);n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var o=new ao[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!b.node&&!b.worker&&!s?new ca(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?b.touchEventsSupported:!!l,d=44,f;u&&(f=W(n.pointerSize,d)),this.handler=new Mn(i,o,c,o.root,f),this.animation=new Ui({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=co(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=Hi(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Hi();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 io&&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,so(this.id))},e}();function uo(e,t){var n=new lo(ue(),e,t);return oo[n.id]=n,n}function fo(e,t){ao[e]=t}var po;function mo(e){if(typeof po==`function`)return po(e)}function ho(e){po=e}var go=1e-4,_o=20;function vo(e){return e.replace(/^\s+|\s+$/g,``)}var yo=Math.min,bo=Math.max,xo=Math.abs,So=Math.round,Co=Math.floor,wo=Math.ceil,To=Math.pow,Eo=Math.log,Do=Math.LN10,Oo=Math.PI,ko=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 jo=Mo;function Mo(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 No(e,t,n)}function No(e,t,n){return H(e)?Po(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Po(e){return!!vo(e).match(/%$/)}function J(e,t,n){return process.env.NODE_ENV!==`production`&&G(t!=null),isNaN(t)?n?``+e:+e:(t=yo(bo(0,t),_o),e=(+e).toFixed(t),n?e:+e)}function Fo(e){return e.sort(function(e,t){return e-t}),e}function Io(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(So(e*t)/t===e)return n}return Lo(e)}function Lo(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 bo(0,(a<0?0:i-1-a)-r)}function Ro(e,t,n){var r=xo(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=Eo(2*xo(n||1)*xo(r))/Do,a=Eo(xo(t))/Do,o=bo(0,wo(-i+a));return isFinite(o)||(o=NaN),o}function zo(e,t){var n=bo(Io(e),Io(t)),r=e+t;return n>_o?r:J(r,n)}var Bo=To(2,53)-1;function Vo(e){var t=Oo*2;return(e%t+t)%t}function Ho(e){return e>-go&&e<go}var Uo=/^(?:(\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 Wo(e){if(e instanceof Date)return e;if(H(e)){var t=Uo.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(So(e))}function Go(e){return To(10,Ko(e))}function Ko(e){if(e===0)return 0;var t=Co(Eo(e)/Do);return e/To(10,t)>=10&&t++,t}function qo(e,t){var n=Ko(e),r=To(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,J(e,-n)}function Jo(e){var t=parseFloat(e);return t==e&&(t!==0||!H(e)||e.indexOf(`x`)<=0)?t:NaN}function Yo(e){return!isNaN(Jo(e))}function Xo(){return So(ko()*9)}function Zo(e,t){return t===0?e:Zo(t,e%t)}function Qo(e,t){return e==null?t:t==null?e:e*t/Zo(e,t)}function $o(e){return e!=null&&isFinite(e)}var es=`[ECharts] `,ts={},ns=typeof console<`u`&&console.warn&&console.log;function rs(e,t,n){if(ns){if(n){if(ts[t])return;ts[t]=!0}console[e](es+t)}}function is(e,t){rs(`log`,e,t)}function as(e,t){rs(`warn`,e,t)}function os(e,t){rs(`error`,e,t)}function ss(e){process.env.NODE_ENV!==`production`&&rs(`warn`,`DEPRECATED: `+e,!0)}function cs(e,t,n){process.env.NODE_ENV!==`production`&&ss((n?`[`+n+`]`:``)+(e+` is deprecated; use `+t+` instead.`))}function ls(){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`:Ae(e)?`NaN`:e instanceof Date?`Date(`+e.toISOString()+`)`:V(e)?`function () { ... }`:ke(e)?e+``:null};n=R(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 us(e){throw Error(e)}function ds(e,t,n){return(t-e)*n+e}var fs=`series\0`,ps=`\0_ec_\0`;function ms(e){return e instanceof Array?e:e==null?[]:[e]}function hs(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 gs=`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 _s(e){return U(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function vs(e){return U(e)&&!(e instanceof Array)}function ys(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();L(t,function(e,n){if(!U(e)){t[n]=null;return}process.env.NODE_ENV!==`production`&&(e.id!=null&&!As(e.id)&&ks(e.id),e.name!=null&&!As(e.name)&&ks(e.name))});var s=bs(e,o,n);return(r||i)&&xs(s,e,o,t),r&&Ss(s,t),r||i?Cs(s,t,i):a&&ws(s,t),Ts(s),s}function bs(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`||Ms(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function xs(e,t,n,r){L(r,function(i,a){if(!(!i||i.id==null)){var o=Ds(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 Ss(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)&&!Ms(n)&&!Ms(a)&&Es(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Cs(e,t,n){L(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Ms(r.existing)||r.existing&&t.id!=null&&!Es(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ws(e,t){L(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Ts(e){var t=K();L(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),L(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={})}),L(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:fs+n:Ds(i.name),r)a.id=Ds(r.id);else if(i.id!=null)a.id=Ds(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 Es(e,t,n){var r=Os(t[e],null),i=Os(n[e],null);return r!=null&&i!=null&&r===i}function Ds(e){if(process.env.NODE_ENV!==`production`&&e==null)throw Error();return Os(e,``)}function Os(e,t){return e==null?t:H(e)?e:Ce(e)||Se(e)?e+``:t}function ks(e){process.env.NODE_ENV!==`production`&&as("`"+e+"` is invalid id or name. Must be a string or number.")}function As(e){return Se(e)||Yo(e)}function js(e){var t=e.name;return!!(t&&t.indexOf(fs))}function Ms(e){return e&&e.id!=null&&Ds(e.id).indexOf(ps)===0}function Ns(e){return ps+e}function Ps(e,t,n){L(e,function(e){var r=e.newOption;U(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Fs(t,r,e.existing,n))})}function Fs(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Is(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?R(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?R(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function Ls(){var e=`__ec_inner_`+Rs++;return function(t){return t[e]||(t[e]={})}}var Rs=Xo();function zs(e,t,n){var r=Bs(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=Us(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 Bs(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 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 Vs={useDefault:!0,enableAll:!1,enableNone:!1},Hs={useDefault:!1,enableAll:!0,enableNone:!0};function Us(e,t,n,r){r||=Vs;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`&&os('`"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`&&os('`"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 Ws(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 Gs(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Ks(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function qs(e){return e===`auto`?b.domSupported?`html`:`richText`:e||`html`}function Js(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(Ce(r)){var o=ds(n||0,r,i);return J(o,a?Math.max(Io(n||0),Io(r)):t)}if(H(r))return i<1?n:r;for(var s=[],c=n,l=r,u=Math.max(c?c.length:0,l.length),d=0;d<u;++d){var f=e.getDimensionInfo(d);if(f&&f.type===`ordinal`)s[d]=(i<1&&c?c:l)[d];else{var p=c&&c[d]?c[d]:0,m=l[d],o=ds(p,m,i);s[d]=J(o,a?Math.max(Io(p),Io(m)):t)}}return s}(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 Ys(){return[1/0,-1/0]}function Xs(e,t){ec(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function Zs(e,t){ec(t)&&t<e[0]&&(e[0]=t)}function Qs(e,t){ec(t)&&t>e[1]&&(e[1]=t)}function $s(e,t){tc(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function ec(e){return e!=null&&isFinite(e)}function tc(e,t){return ec(e)&&ec(t)&&e<=t}function nc(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function rc(e){tc(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function ic(){var e=`__ec_once_`+ac++;return function(t,n){process.env.NODE_ENV!==`production`&&G(t),Ke(t,e)||(t[e]=1,n())}}var ac=Xo();function oc(e,t,n){var r=K(),i=0;L(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 sc(e){return process.env.NODE_ENV!==`production`&&G(e.value!=null),e.value+``}function cc(e){return process.env.NODE_ENV!==`production`&&G(e!=null),e+``}function lc(e,t){return W(t,!0)?e.seriesIndex+2:0}function uc(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 dc(e){return{overallReset:e}}var fc=`.`,pc=`___EC__COMPONENT__CONTAINER___`,mc=`___EC__EXTENDED_CLASS___`;function hc(e){var t={main:``,sub:``};if(e){var n=e.split(fc);t.main=n[0]||``,t.sub=n[1]||``}return t}function gc(e){G(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function _c(e){return!!(e&&e[mc])}function vc(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 yc(n)?r=function(e){v(t,e);function t(){return e.apply(this,arguments)||this}return t}(n):(r=function(){(e.$constructor||n).apply(this,arguments)},pe(r,this)),P(r.prototype,e),r[mc]=!0,r.extend=this.extend,r.superCall=Cc,r.superApply=wc,r.superClass=n,r}}function yc(e){return V(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function bc(e,t){e.extend=t.extend}var xc=Math.round(Math.random()*10);function Sc(e){var t=[`__\0is_clz`,xc++].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 Cc(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 wc(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Tc(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){gc(r),e.prototype.type=r;var i=hc(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!==pc){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[pc]&&(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=hc(e),r=[],i=t[n.main];return i&&i[pc]?L(i,function(e,t){t!==pc&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[hc(e).main]},e.getAllClassMainTypes=function(){var e=[];return L(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[hc(e).main];return n&&n[pc]};function n(e){var n=t[e.main];return(!n||!n[pc])&&(n=t[e.main]={},n[pc]=!0),n}}function Ec(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 Dc=Ec([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Oc=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Dc(this,e,t)},e}(),kc=new Or(50);function Ac(e){if(typeof e==`string`){var t=kc.get(e);return t&&t.image}return e}function jc(e,t,n,r,i){if(!e)return t;if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=kc.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!Nc(t)&&a.pending.push(o)):(t=O.loadImage(e,Mc,Mc),t.__zrImageSrc=e,kc.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}function Mc(){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 Nc(e){return e&&e.width&&e.height}var Pc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fc(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
4
+ `);a=Ic(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(`
5
+ `),e.isTruncated=s}function Ic(e,t,n,r){r||={};var i=P({},r);n=W(n,`...`),i.maxIterations=W(r.maxIterations,2);var a=i.minChar=W(r.minChar,0),o=i.fontMeasureInfo=Da(t),s=o.asciiCharWidth;i.placeholder=W(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=Na(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=Na(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?Rc(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Na(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Rc(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Ma(n,e.charCodeAt(i));return i}function zc(e,t,n,r){var i=Qc(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=Ra(l),f=W(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?Jc(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
6
+ `):[],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=Ic(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=Da(l),S=0;S<_.length;S++)w=Math.max(Na(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 Bc=function(){function e(){}return e}(),Vc=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Hc=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 Uc(e,t,n,r,i){var a=new Hc,o=Qc(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=Pc.lastIndex=0,h;(h=Pc.exec(o))!=null;){var g=h.index;g>m&&Wc(a,o.substring(m,g),t,p),Wc(a,h[2],t,p,h[1]),m=Pc.lastIndex}m<o.length&&Wc(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,te=k.font=A.font||t.font;k.contentHeight=Ra(te);var ne=W(A.height,k.contentHeight);if(k.innerHeight=ne,j&&(ne+=j[0]+j[2]),k.height=ne,k.lineHeight=Me(A.lineHeight,t.lineHeight,ne),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var re=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<re;break outer}var ie=A.width,ae=ie==null||ie===`auto`;if(typeof ie==`string`&&ie.charAt(ie.length-1)===`%`)k.percentWidth=ie,_.push(k),k.contentWidth=Na(Da(te),k.text);else{if(ae){var oe=A.backgroundColor,se=oe&&oe.image;se&&(se=Ac(se),Nc(se)&&(k.width=Math.max(k.width,se.width*ne/se.height)))}var ce=b&&u!=null?u-D:null;ce!=null&&ce<k.width?!ae||ce<ee?(k.text=``,k.width=k.contentWidth=0):(Fc(S,k.text,ce-ee,te,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Na(Da(te),k.text)):k.contentWidth=Na(Da(te),k.text)}k.width+=ee,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=W(u,y),a.outerHeight=a.height=W(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],le=k.percentWidth;k.width=parseInt(le,10)/100*a.width}return a}function Wc(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=za(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
7
+ `),l=!0),r.accumWidth=m}else{var h=Jc(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
8
+ `);for(var g=Da(c),_=0;_<u.length;_++){var v=u[_],y=new Bc;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,y.width=typeof o.width==`number`?o.width:d?d[_]:Na(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Vc)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Vc([y]))}}function Gc(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Kc=ge(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function qc(e){return!Gc(e)||!!Kc[e]}function Jc(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Da(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
9
+ `){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Ma(d,p.charCodeAt(0)),h=!r&&!qc(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 Yc(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(Xc,Ia(n,o,i),La(r,s,a),o,s),q.intersect(t,Xc,null,Zc);var c=Zc.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=Ia(c.x,c.width,i,!0),e.baseY=La(c.y,c.height,a,!0)}}var Xc=new q(0,0,0,0),Zc={outIntersectRect:{},clamp:!0};function Qc(e){return e==null?e=``:e+=``}function $c(e){var t=Qc(e.text),n=e.font;return el(e,Na(Da(n),t),Ra(n),null)}function el(e,t,n,r){var i=new q(Ia(e.x||0,t,e.textAlign),La(e.y||0,n,e.textBaseline),t,n),a=r??(tl(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function tl(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var nl=`__zr_style_`+Math.round(Math.random()*10),rl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},il={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rl[nl]=!0;var al=[`z`,`z2`,`invisible`],ol=[`invisible`],sl=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=z(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&&ul(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: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 We(rl,e)},t.prototype.useStyle=function(e){e[nl]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[nl]},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,al)},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=z(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=z(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?ol:al,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 il},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}(qa),cl=new q(0,0,0,0),ll=new q(0,0,0,0);function ul(e,t,n){return cl.copy(e.getBoundingRect()),e.transform&&cl.applyTransform(e.transform),ll.width=t,ll.height=n,!cl.intersect(ll)}var dl=Math.min,fl=Math.max,pl=Math.sin,ml=Math.cos,hl=Math.PI*2,gl=Ye(),_l=Ye(),vl=Ye();function yl(e,t,n){if(e.length!==0){for(var r=e[0],i=r[0],a=r[0],o=r[1],s=r[1],c=1;c<e.length;c++)r=e[c],i=dl(i,r[0]),a=fl(a,r[0]),o=dl(o,r[1]),s=fl(s,r[1]);t[0]=i,t[1]=o,n[0]=a,n[1]=s}}function bl(e,t,n,r,i,a){i[0]=dl(e,n),i[1]=dl(t,r),a[0]=fl(e,n),a[1]=fl(t,r)}var xl=[],Sl=[];function Cl(e,t,n,r,i,a,o,s,c,l){var u=fr,d=lr,f=u(e,n,i,o,xl);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,xl[p]);c[0]=dl(m,c[0]),l[0]=fl(m,l[0])}f=u(t,r,a,s,Sl);for(var p=0;p<f;p++){var h=d(t,r,a,s,Sl[p]);c[1]=dl(h,c[1]),l[1]=fl(h,l[1])}c[0]=dl(e,c[0]),l[0]=fl(e,l[0]),c[0]=dl(o,c[0]),l[0]=fl(o,l[0]),c[1]=dl(t,c[1]),l[1]=fl(t,l[1]),c[1]=dl(s,c[1]),l[1]=fl(s,l[1])}function wl(e,t,n,r,i,a,o,s){var c=yr,l=gr,u=fl(dl(c(e,n,i),1),0),d=fl(dl(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=dl(e,i,f),o[1]=dl(t,a,p),s[0]=fl(e,i,f),s[1]=fl(t,a,p)}function Tl(e,t,n,r,i,a,o,s,c){var l=dt,u=ft,d=Math.abs(i-a);if(d%hl<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(gl[0]=ml(i)*n+e,gl[1]=pl(i)*r+t,_l[0]=ml(a)*n+e,_l[1]=pl(a)*r+t,l(s,gl,_l),u(c,gl,_l),i%=hl,i<0&&(i+=hl),a%=hl,a<0&&(a+=hl),i>a&&!o?a+=hl:i<a&&o&&(i+=hl),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(vl[0]=ml(p)*n+e,vl[1]=pl(p)*r+t,l(s,vl,s),u(c,vl,c))}var El={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Dl=[],Ol=[],kl=[],Al=[],jl=[],Ml=[],Nl=Math.min,Pl=Math.max,Fl=Math.cos,Il=Math.sin,Ll=Math.abs,Rl=Math.PI,zl=Rl*2,Bl=typeof Float32Array<`u`,Vl=[];function Hl(e){return Math.round(e/Rl*1e8)/1e8%2*Rl}function Ul(e,t){var n=Hl(e[0]);n<0&&(n+=zl);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=zl?i=n+zl:t&&n-i>=zl?i=n-zl:!t&&n>i?i=n+(zl-Hl(n-i)):t&&n<i&&(i=n-(zl-Hl(i-n))),e[0]=n,e[1]=i}var Wl=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=Ll(n/ua/e)||0,this._uy=Ll(n/ua/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(El.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=Ll(e-this._xi),r=Ll(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(El.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(El.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(El.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(),Vl[0]=r,Vl[1]=i,Ul(Vl,a),r=Vl[0],i=Vl[1];var o=i-r;return this.addData(El.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Fl(i)*n+e,this._yi=Il(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(El.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(El.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)&&Bl&&(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(Bl&&(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,Bl&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){kl[0]=kl[1]=jl[0]=jl[1]=Number.MAX_VALUE,Al[0]=Al[1]=Ml[0]=Ml[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 El.M:t=r=e[a++],n=i=e[a++],jl[0]=r,jl[1]=i,Ml[0]=r,Ml[1]=i;break;case El.L:bl(t,n,e[a],e[a+1],jl,Ml),t=e[a++],n=e[a++];break;case El.C:Cl(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],jl,Ml),t=e[a++],n=e[a++];break;case El.Q:wl(t,n,e[a++],e[a++],e[a],e[a+1],jl,Ml),t=e[a++],n=e[a++];break;case El.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=Fl(f)*u+c,i=Il(f)*d+l),Tl(c,l,u,d,f,p,m,jl,Ml),t=Fl(p)*u+c,n=Il(p)*d+l;break;case El.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];bl(r,i,r+h,i+g,jl,Ml);break;case El.Z:t=r,n=i}dt(kl,kl,jl),ft(Al,Al,Ml)}return a===0&&(kl[0]=kl[1]=Al[0]=Al[1]=0),new q(kl[0],kl[1],Al[0]-kl[0],Al[1]-kl[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 El.M:i=o=e[d++],a=s=e[d++];break;case El.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(Ll(_)>n||Ll(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case El.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=hr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case El.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Sr(i,a,y,b,h,g,10),i=h,a=g;break;case El.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=Fl(D)*T+C,s=Il(D)*E+w),m=Pl(T,E)*Nl(zl,Math.abs(O)),i=Fl(k)*T+C,a=Il(k)*E+w;break;case El.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case El.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!==El.L&&v>0&&(e.lineTo(y,b),v=0),S){case El.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case El.L:u=n[x++],d=n[x++];var w=Ll(u-c),T=Ll(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 El.C:var k=n[x++],A=n[x++],j=n[x++],ee=n[x++],te=n[x++],ne=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;pr(c,k,j,te,D,Dl),pr(l,A,ee,ne,D,Ol),e.bezierCurveTo(Dl[1],Ol[1],Dl[2],Ol[2],Dl[3],Ol[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,ee,te,ne),c=te,l=ne;break;case El.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;br(c,k,j,D,Dl),br(l,A,ee,D,Ol),e.quadraticCurveTo(Dl[1],Ol[1],Dl[2],Ol[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,ee),c=j,l=ee;break;case El.A:var re=n[x++],ie=n[x++],ae=n[x++],oe=n[x++],se=n[x++],ce=n[x++],le=n[x++],ue=!n[x++],de=ae>oe?ae:oe,M=Ll(ae-oe)>.001,N=se+ce,P=!1;if(f){var E=p[g++];h+E>_&&(N=se+ce*(_-h)/E,P=!0),h+=E}if(M&&e.ellipse?e.ellipse(re,ie,ae,oe,le,se,N,ue):e.arc(re,ie,de,se,N,ue),P)break lo;C&&(o=Fl(se)*ae+re,s=Il(se)*oe+ie),c=Fl(N)*ae+re,l=Il(N)*oe+ie;break;case El.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var fe=n[x++],F=n[x++];if(f){var E=p[g++];if(h+E>_){var I=_-h;e.moveTo(u,d),e.lineTo(u+Nl(I,fe),d),I-=fe,I>0&&e.lineTo(u+fe,d+Nl(I,F)),I-=F,I>0&&e.lineTo(u+Pl(fe-I,0),d+F),I-=fe,I>0&&e.lineTo(u,d+Pl(F-I,0));break lo}h+=E}e.rect(u,d,fe,F);break;case El.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=El,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 Kl(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:mr(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function ql(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:xr(e,t,n,r,i,a,s,c,null)<=l/2}var Jl=Math.PI*2;function Yl(e){return e%=Jl,e<0&&(e+=Jl),e}var Xl=Math.PI*2;function Zl(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=Yl(i),i=Yl(d)}else r=Yl(r),i=Yl(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 Ql(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 $l=Wl.CMD,eu=Math.PI*2,tu=1e-4;function nu(e,t){return Math.abs(e-t)<tu}var ru=[-1,-1,-1],iu=[-1,-1];function au(){var e=iu[0];iu[0]=iu[1],iu[1]=e}function ou(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=dr(t,r,a,s,l,ru);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=ru[h],_=g===0||g===1?.5:1;lr(e,n,i,o,g)<c||(f<0&&(f=fr(t,r,a,s,iu),iu[1]<iu[0]&&f>1&&au(),p=lr(t,r,a,s,iu[0]),f>1&&(m=lr(t,r,a,s,iu[1]))),f===2?g<iu[0]?d+=p<t?_:-_:g<iu[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<iu[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function su(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=vr(t,r,a,s,ru);if(c===0)return 0;var l=yr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=gr(t,r,a,l),f=0;f<c;f++){var p=ru[f]===0||ru[f]===1?.5:1,m=gr(e,n,i,ru[f]);m<o||(ru[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}var p=ru[0]===0||ru[0]===1?.5:1,m=gr(e,n,i,ru[0]);return m<o?0:a<t?p:-p}function cu(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);ru[0]=-c,ru[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=eu-1e-4){r=0,i=eu;var u=a?1:-1;return o>=ru[0]+e&&o<=ru[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=eu,i+=eu);for(var f=0,p=0;p<2;p++){var m=ru[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=eu+h),(h>=r&&h<=i||h+eu>=r&&h+eu<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function lu(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===$l.M&&m>1&&(n||(s+=Ql(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case $l.M:u=a[m++],d=a[m++],c=u,l=d;break;case $l.L:if(n){if(Gl(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Ql(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case $l.C:if(n){if(Kl(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=ou(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 $l.Q:if(n){if(ql(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=su(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case $l.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+=Ql(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Zl(_,v,b,x,x+S,C,t,w,i))return!0}else s+=cu(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case $l.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+=Ql(f,d,f,p,r,i),s+=Ql(u,p,u,d,r,i);break;case $l.Z:if(n){if(Gl(c,l,u,d,t,r,i))return!0}else s+=Ql(c,l,u,d,r,i);c=u,l=d}}return!n&&!nu(l,d)&&(s+=Ql(c,l,u,d,r,i)||0),s!==0}function uu(e,t,n){return lu(e,0,!1,t,n)}function du(e,t,n,r){return lu(e,t,!0,n,r)}var fu=F({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rl),pu={style:F({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},il.style)},mu=Ta.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Y=function(e){v(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<mu.length;++s)i[mu[s]]=this[mu[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=z(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(H(e)){var t=Yr(e,0);return t>.5?fa:t>.2?ma:pa}if(e)return pa}return fa},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(H(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Yr(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 Wl(!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)),du(a,o/s,e,t)))return!0}if(this.hasFill())return uu(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 We(fu,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=z(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 pu},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){v(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}(sl),hu=F({strokeFirst:!0,font:S,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},fu),gu=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return tl(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return We(hu,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=$c(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(sl);gu.prototype.type=`tspan`;var _u=F({x:0,y:0},rl),vu={style:F({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},il.style)};function yu(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var bu=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return We(_u,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=yu(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 vu},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}(sl);bu.prototype.type=`image`;function xu(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 Su=Math.round;function Cu(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?(Su(r*2)===Su(i*2)&&(e.x1=e.x2=Tu(r,s,!0)),Su(a*2)===Su(o*2)&&(e.y1=e.y2=Tu(a,s,!0)),e):e}}function wu(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=Tu(r,s,!0),e.y=Tu(i,s,!0),e.width=Math.max(Tu(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Tu(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Tu(e,t,n){if(!t)return e;var r=Su(e*2);return(r+Su(t))%2==0?r/2:(r+(n?1:-1))/2}var Eu=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Du={},Ou=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Eu},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=wu(Du,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?xu(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Y);Ou.prototype.type=`rect`;var ku={fill:`#000`},Au=2,ju={},Mu={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},il.style)},Nu=function(e){v(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ku,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,Bu(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||ku},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=z(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 Mu},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`;Yc(ju,r.overflowRect,i,a,o,s),i=ju.baseX,a=ju.baseY;var c=zc(Gu(e),e,ju.outerWidth,ju.outerHeight),l=Ku(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=La(a,c.contentHeight,s);if(l||n){var _=Ia(i,f,o),v=La(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Wu(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=Hu(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Au,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(gu),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,Ru(D,e),g+=m,E.setBoundingRect(el(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;Yc(ju,t.overflowRect,i,a,n,r),i=ju.baseX,a=ju.baseY;var o=Uc(Gu(e),e,ju.outerWidth,ju.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=Ia(i,c,n),f=La(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Ku(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&&Ku(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=Wu(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(gu),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=Hu(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Au,_=!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=Me(s.opacity,t.opacity,1),Ru(p,s),y&&(p.lineWidth=Me(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(el(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(Ou),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(bu),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=Me(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return zu(e)&&(t=[e.fontStyle,e.fontWeight,Lu(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&Fe(t)||e.textFont||e.font},t}(sl),Pu={left:!0,right:1,center:1},Fu={top:1,bottom:1,middle:1},Iu=[`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 Ru(e,t){for(var n=0;n<Iu.length;n++){var r=Iu[n],i=t[r];i!=null&&(e[r]=i)}}function zu(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Bu(e){return Vu(e),L(e.rich,Vu),e}function Vu(e){if(e){e.font=Nu.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Pu[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Fu[n]?n:`top`,e.padding&&=Pe(e.padding)}}function Hu(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 Wu(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Gu(e){var t=e.text;return t!=null&&(t+=``),t}function Ku(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var X=Ls(),qu=function(e,t,n,r){if(r){var i=X(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=X(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Ju=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Yu=`original`,Xu=`arrayRows`,Zu=`objectRows`,Qu=`keyedColumns`,$u=`typedArray`,ed=`unknown`,td=`column`,nd=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],rd=function(){function e(e){L(nd,function(t){this[t]=be(e[t],e)},this)}return e}();function id(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var ad=1,od={},sd=Ls(),cd=Ls(),ld=[`emphasis`,`blur`,`select`],ud=[`normal`,`emphasis`,`blur`,`select`],dd=`highlight`,fd=`downplay`,pd=`select`,md=`unselect`,hd=`toggleSelect`,gd=`selectchanged`;function _d(e){return e!=null&&e!==`none`}function vd(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function yd(e){vd(e,`emphasis`,2)}function bd(e){e.hoverState===2&&vd(e,`normal`,0)}function xd(e){vd(e,`blur`,1)}function Sd(e){e.hoverState===1&&vd(e,`normal`,0)}function Cd(e){e.selected=!0}function wd(e){e.selected=!1}function Td(e,t,n){t(e,n)}function Ed(e,t,n){Td(e,t,n),e.isGroup&&e.traverse(function(e){Td(e,t,n)})}function Dd(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function Od(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 kd(e,t,n,r){var i=n&&I(n,`select`)>=0,a=!1;if(e instanceof Y){var o=sd(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(_d(s)||_d(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=P({},r),l=P({},l),l.fill=s):!_d(l.fill)&&_d(s)?(a=!0,r=P({},r),l=P({},l),l.fill=Zr(s)):!_d(l.stroke)&&_d(c)&&(a||(r=P({},r),l=P({},l)),l.stroke=Zr(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 Ad(e,t,n){if(n&&n.z2==null){n=P({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function jd(e,t,n){var r=I(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Od(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 Md(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return kd(this,e,t,n);if(e===`blur`)return jd(this,e,n);if(e===`select`)return Ad(this,e,n)}return n}function Nd(e){e.stateProxy=Md;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Md),n&&(n.stateProxy=Md)}function Pd(e,t){!Hd(e,t)&&!e.__highByOuter&&Ed(e,yd)}function Fd(e,t){!Hd(e,t)&&!e.__highByOuter&&Ed(e,bd)}function Id(e,t){e.__highByOuter|=1<<(t||0),Ed(e,yd)}function Ld(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ed(e,bd)}function Rd(e){Ed(e,xd)}function zd(e){Ed(e,Sd)}function Bd(e){Ed(e,Cd)}function Vd(e){Ed(e,wd)}function Hd(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Ud(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=cd(i),o=id(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){Sd(e)}),s&&n.push(i)),a.isBlured=!1}),L(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Wd(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&&zd(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`||xd(e)}),he(t))a(e.getData(),t);else if(U(t))for(var u=z(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),cd(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 Gd(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){cd(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){xd(e)})}}}function Kd(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(!i){process.env.NODE_ENV!==`production`&&os(`Unknown dataType `+t.dataType);return}var a=Is(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=X(o);Wd(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Wd(r,u,d,n)}}function qd(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`&&!cf(s[l])&&os(`param should be highDownDispatcher`),X(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Jd(e,t,n){process.env.NODE_ENV!==`production`&&!cf(e)&&os(`param should be highDownDispatcher`);var r=X(e),i=qd(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Gd(r.componentMainType,r.componentIndex,n),L(a,function(e){return Pd(e,t)})):(Wd(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Gd(r.componentMainType,r.componentIndex,n),Pd(e,t))}function Yd(e,t,n){process.env.NODE_ENV!==`production`&&!cf(e)&&os(`param should be highDownDispatcher`),Ud(n);var r=X(e),i=qd(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?L(i,function(e){return Fd(e,t)}):Fd(e,t)}function Xd(e,t,n){if(uf(t)){var r=t.dataType,i=Is(e.getData(r),t);B(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Zd(e){L(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Bd(t):Vd(t)})})}function Qd(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 $d(e,t,n){sf(e,!0),Ed(e,Nd),nf(e,t,n)}function ef(e){sf(e,!1)}function tf(e,t,n,r){r?ef(e):$d(e,t,n)}function nf(e,t,n){var r=X(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}var rf=[`emphasis`,`blur`,`select`],af={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function of(e,t,n,r){n||=`itemStyle`;for(var i=0;i<rf.length;i++){var a=rf[i],o=t.getModel([a,n]),s=e.ensureState(a);s.style=r?r(o):o[af[n]]()}}function sf(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 cf(e){return!!(e&&e.__highDownDispatcher)}function lf(e){var t=od[e];return t==null&&ad<=32&&(t=od[e]=ad++),t}function uf(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function df(e){var t=e.type;return t===`highlight`||t===`downplay`}function ff(e){var t=sd(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 pf=Wl.CMD,mf=[[],[],[]],hf=Math.sqrt,gf=Math.atan2;function _f(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=pf.M,d=pf.C,f=pf.L,p=pf.R,m=pf.A,h=pf.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=hf(t[0]*t[0]+t[1]*t[1]),y=hf(t[2]*t[2]+t[3]*t[3]),b=gf(-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++],ut(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],ut(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=mf[c];x[0]=n[o++],x[1]=n[o++],ut(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var vf=Math.sqrt,yf=Math.sin,bf=Math.cos,xf=Math.PI;function Sf(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Cf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Sf(e)*Sf(t))}function wf(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Cf(e,t))}function Tf(e,t,n,r,i,a,o,s,c,l,u){var d=xf/180*c,f=bf(d)*(e-n)/2+yf(d)*(t-r)/2,p=-1*yf(d)*(e-n)/2+bf(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=vf(m),s*=vf(m));var h=(i===a?-1:1)*vf((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+bf(d)*g-yf(d)*_,y=(t+r)/2+yf(d)*g+bf(d)*_,b=wf([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=wf(x,S);if(Cf(x,S)<=-1&&(C=xf),Cf(x,S)>=1&&(C=0),C<0){var w=Math.round(C/xf*1e6)/1e6;C=xf*2+w%2*xf}u.addData(l,v,y,o,s,b,C,d,a)}var Ef=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Df=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Of(e){var t=new Wl;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Wl.CMD,c=e.match(Ef);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(Df)||[],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,Tf(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,Tf(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 kf=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Y);function Af(e){return e.setData!=null}function jf(e,t){var n=Of(e),r=P({},t);return r.buildPath=function(e){var t=Af(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){_f(n,e),this.dirtyShape()},r}function Mf(e,t){return new kf(jf(e,t))}function Nf(e,t){var n=jf(e,t);return function(e){v(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(kf)}function Pf(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 Y(t);return o.createPathProxy(),o.buildPath=function(e){if(Af(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}function Ff(e,t){t||={};var n=new Y;return e.shape&&n.setShape(e.shape),n.setStyle(e.style),t.bakeTransform?_f(n.path,e.getComputedTransform()):t.toLocal?n.setLocalTransform(e.getComputedTransform()):n.copyTransform(e),n.buildPath=e.buildPath,n.applyTransform=n.applyTransform,n.z=e.z,n.z2=e.z2,n.zlevel=e.zlevel,n}var If=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Lf=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new If},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}(Y);Lf.prototype.type=`circle`;var Rf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),zf=function(e){v(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}(Y);zf.prototype.type=`ellipse`;var Bf=Math.PI,Vf=Bf*2,Hf=Math.sin,Uf=Math.cos,Wf=Math.acos,Gf=Math.atan2,Kf=Math.abs,qf=Math.sqrt,Jf=Math.max,Yf=Math.min,Xf=1e-4;function Zf(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 Qf(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/qf(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)*qf(Jf(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 $f(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 ep(e,t){var n,r=Jf(t.r,0),i=Jf(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=Kf(c-s),p=f>Vf&&f%Vf;if(p>Xf&&(f=p),!(r>Xf))e.moveTo(l,u);else if(f>Vf-Xf)e.moveTo(l+r*Uf(s),u+r*Hf(s)),e.arc(l,u,r,s,c,!d),i>Xf&&(e.moveTo(l+i*Uf(c),u+i*Hf(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*Uf(s),j=r*Hf(s),ee=i*Uf(c),te=i*Hf(c),ne=f>Xf;if(ne){var re=t.cornerRadius;re&&(n=$f(re),m=n[0],h=n[1],g=n[2],_=n[3]);var ie=Kf(r-i)/2;if(v=Yf(ie,g),y=Yf(ie,_),b=Yf(ie,m),x=Yf(ie,h),w=S=Jf(v,y),T=C=Jf(b,x),(S>Xf||C>Xf)&&(E=r*Uf(c),D=r*Hf(c),O=i*Uf(s),k=i*Hf(s),f<Bf)){var ae=Zf(A,j,O,k,E,D,ee,te);if(ae){var oe=A-ae[0],se=j-ae[1],ce=E-ae[0],le=D-ae[1],ue=1/Hf(Wf((oe*ce+se*le)/(qf(oe*oe+se*se)*qf(ce*ce+le*le)))/2),de=qf(ae[0]*ae[0]+ae[1]*ae[1]);w=Yf(S,(r-de)/(ue+1)),T=Yf(C,(i-de)/(ue-1))}}}if(!ne)e.moveTo(l+A,u+j);else if(w>Xf){var M=Yf(g,w),N=Yf(_,w),P=Qf(O,k,A,j,r,M,d),fe=Qf(E,D,ee,te,r,N,d);e.moveTo(l+P.cx+P.x0,u+P.cy+P.y0),w<S&&M===N?e.arc(l+P.cx,u+P.cy,w,Gf(P.y0,P.x0),Gf(fe.y0,fe.x0),!d):(M>0&&e.arc(l+P.cx,u+P.cy,M,Gf(P.y0,P.x0),Gf(P.y1,P.x1),!d),e.arc(l,u,r,Gf(P.cy+P.y1,P.cx+P.x1),Gf(fe.cy+fe.y1,fe.cx+fe.x1),!d),N>0&&e.arc(l+fe.cx,u+fe.cy,N,Gf(fe.y1,fe.x1),Gf(fe.y0,fe.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Xf)||!ne)e.lineTo(l+ee,u+te);else if(T>Xf){var M=Yf(m,T),N=Yf(h,T),P=Qf(ee,te,E,D,i,-N,d),fe=Qf(A,j,O,k,i,-M,d);e.lineTo(l+P.cx+P.x0,u+P.cy+P.y0),T<C&&M===N?e.arc(l+P.cx,u+P.cy,T,Gf(P.y0,P.x0),Gf(fe.y0,fe.x0),!d):(N>0&&e.arc(l+P.cx,u+P.cy,N,Gf(P.y0,P.x0),Gf(P.y1,P.x1),!d),e.arc(l,u,i,Gf(P.cy+P.y1,P.cx+P.x1),Gf(fe.cy+fe.y1,fe.cx+fe.x1),d),M>0&&e.arc(l+fe.cx,u+fe.cy,M,Gf(fe.y1,fe.x1),Gf(fe.y0,fe.x0),!d))}else e.lineTo(l+ee,u+te),e.arc(l,u,i,c,s,d)}e.closePath()}}}var tp=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}(),np=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new tp},t.prototype.buildPath=function(e,t){ep(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Y);np.prototype.type=`sector`;var rp=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),ip=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new rp},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}(Y);ip.prototype.type=`ring`;function ap(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++)dt(u,u,e[f]),ft(d,d,e[f]);dt(u,u,r[0]),ft(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(Ze(e[f]));continue}else c=e[f-1],l=e[f+1];et(a,l,c),rt(a,a,t);var h=at(m,c),g=at(m,l),_=h+g;_!==0&&(h/=_,g/=_),rt(o,a,-h),rt(s,a,g);var v=$e([],m,o),y=$e([],m,s);r&&(ft(v,v,u),dt(v,v,d),ft(y,y,u),dt(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function op(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=ap(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 sp=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),cp=function(e){v(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sp},t.prototype.buildPath=function(e,t){op(e,t,!0)},t}(Y);cp.prototype.type=`polygon`;var lp=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),up=function(e){v(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 lp},t.prototype.buildPath=function(e,t){op(e,t,!1)},t}(Y);up.prototype.type=`polyline`;var dp={},fp=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),pp=function(e){v(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 fp},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Cu(dp,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}(Y);pp.prototype.type=`line`;var mp=[],hp=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 gp(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?ur:lr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?ur:lr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?_r:gr)(e.x1,e.cpx1,e.x2,t),(n?_r:gr)(e.y1,e.cpy1,e.y2,t)]}var _p=function(e){v(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 hp},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&&(br(n,o,i,u,mp),o=mp[1],i=mp[2],br(r,s,a,u,mp),s=mp[1],a=mp[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(pr(n,o,c,i,u,mp),o=mp[1],c=mp[2],i=mp[3],pr(r,s,l,a,u,mp),s=mp[1],l=mp[2],a=mp[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return gp(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=gp(this.shape,e,!0);return it(t,t)},t}(Y);_p.prototype.type=`bezier-curve`;var vp=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}(),yp=function(e){v(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 vp},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}(Y);yp.prototype.type=`arc`;var bp=function(e){v(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),Y.prototype.getBoundingRect.call(this)},t}(Y),xp=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Sp=function(e){v(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}(xp),Cp=function(e){v(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}(xp),wp=Math.min,Tp=Math.max,Ep=Math.abs,Dp=[0,0],Op=[0,0],kp=wn(),Ap=kp.minTv,jp=kp.maxTv,Mp=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new $t;for(var n=0;n<2;n++)this._axes[n]=new $t;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);$t.sub(r[0],n[1],n[0]),$t.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&&$t.set(t,0,0),kp.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!kp.negativeSize&&$t.copy(t,r?kp.useDir?kp.dirMinTv:Ap:jp),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,Dp),e._getProjMinMaxOnAxis(a,t._corners,Op),kp.negativeSize||Dp[1]<Op[0]||Dp[0]>Op[1]){if(i=!1,kp.negativeSize||n)return i;var s=Ep(Op[0]-Dp[1]),c=Ep(Dp[0]-Op[1]);wp(s,c)>jp.len()&&(s<c?$t.scale(jp,o,-s*r):$t.scale(jp,o,c*r))}else if(!n){var s=Ep(Op[0]-Dp[1]),c=Ep(Dp[0]-Op[1]);(kp.useDir||wp(s,c)<Ap.len())&&((s<c||!kp.bidirectional)&&($t.scale(Ap,o,s*r),kp.useDir&&kp.calcDirMTV()),(s>=c||!kp.bidirectional)&&($t.scale(Ap,o,-c*r),kp.useDir&&kp.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=wp(l,o),s=Tp(l,s)}n[0]=o+kp.touchThreshold,n[1]=s-kp.touchThreshold,kp.negativeSize=n[1]<n[0]},e}(),Np=[],Pp=function(e){v(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(Np)),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}(sl),Fp=Ls();function Ip(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 Lp(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=Ip(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 Rp(e,t,n,r,i,a){Lp(`update`,e,t,n,r,i,a)}function zp(e,t,n,r,i,a){Lp(`enter`,e,t,n,r,i,a)}function Bp(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 Vp(e,t,n,r,i,a){Bp(e)||Lp(`leave`,e,t,n,r,i,a)}function Hp(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Vp(e,{style:{opacity:0}},t,n,r)}function Up(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||Hp(e,t,n,r)}):Hp(e,t,n,r)}function Wp(e){Fp(e).oldStyle=e.style}function Gp(e){return Fp(e).oldStyle}var Kp=o({Arc:()=>yp,BezierCurve:()=>_p,BoundingRect:()=>q,Circle:()=>Lf,CompoundPath:()=>bp,Ellipse:()=>zf,Group:()=>io,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>bu,IncrementalDisplayable:()=>Pp,Line:()=>pp,LinearGradient:()=>Sp,OrientedBoundingRect:()=>Mp,Path:()=>Y,Point:()=>$t,Polygon:()=>cp,Polyline:()=>up,RadialGradient:()=>Cp,Rect:()=>Ou,Ring:()=>ip,Sector:()=>np,Text:()=>Nu,WH:()=>Yp,XY:()=>Jp,applyTransform:()=>um,calcZ2Range:()=>Nm,clipPointsByRect:()=>hm,clipRectByRect:()=>gm,createIcon:()=>_m,decomposeTransform:()=>Lm,ensureCopyRect:()=>Am,ensureCopyTransform:()=>jm,expandOrShrinkRect:()=>Sm,extendPath:()=>Qp,extendShape:()=>Xp,getCurrentCanvasPainter:()=>zm,getShapeClass:()=>em,getTransform:()=>lm,groupTransition:()=>mm,initProps:()=>zp,isBoundingRectAxisAligned:()=>Om,isElementRemoved:()=>Bp,lineLineIntersect:()=>ym,linePolygonIntersect:()=>vm,makeImage:()=>nm,makePath:()=>tm,mergePath:()=>im,payloadDisableAnimation:()=>Im,registerShape:()=>$p,removeElement:()=>Vp,removeElementWithFadeOut:()=>Up,resizePath:()=>am,retrieveZInfo:()=>Mm,setTooltipConfig:()=>Tm,subPixelOptimize:()=>cm,subPixelOptimizeLine:()=>om,subPixelOptimizeRect:()=>sm,transformDirection:()=>dm,traverseElements:()=>Dm,traverseUpdateZ:()=>Pm,updateProps:()=>Rp}),qp={},Jp=[`x`,`y`],Yp=[`width`,`height`];function Xp(e){return Y.extend(e)}var Zp=Nf;function Qp(e,t){return Zp(e,t)}function $p(e,t){qp[e]=t}function em(e){if(qp.hasOwnProperty(e))return qp[e]}function tm(e,t,n,r){var i=Mf(e,t);return n&&(r===`center`&&(n=rm(n,i.getBoundingRect())),am(i,n)),i}function nm(e,t,n){var r=new bu({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(rm(t,i))}}});return r}function rm(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 im=Pf;function am(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function om(e,t){return Cu(e,e,{lineWidth:t}),e}function sm(e,t){return wu(e,e,t),e}var cm=Tu;function lm(e,t){for(var n=Kt([]);e&&e!==t;)Jt(n,e.getLocalTransform(),n),e=e.parent;return n}function um(e,t,n){return t&&!he(t)&&(t=Sa.getLocalTransform(t)),n&&(t=Qt([],t)),ut([],e,t)}function dm(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:xo(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:xo(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=um(a,t,n),xo(a[0])>xo(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function fm(e){return!e.isGroup}function pm(e){return e.shape!=null}function mm(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){fm(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return pm(e)&&(t.shape=M(e.shape)),t}var a=r(e);t.traverse(function(e){if(fm(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Rp(e,r,n,X(e).dataIndex)}}})}function hm(e,t){return R(e,function(e){var n=e[0];n=bo(n,t.x),n=yo(n,t.x+t.width);var r=e[1];return r=bo(r,t.y),r=yo(r,t.y+t.height),[n,r]})}function gm(e,t){var n=bo(e.x,t.x),r=yo(e.x+e.width,t.x+t.width),i=bo(e.y,t.y),a=yo(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 _m(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 bu(r)):tm(e.replace(`path://`,``),r,n,`center`)}function vm(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(ym(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function ym(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=bm(u,d,c,l);if(xm(f))return!1;var p=e-i,m=t-a,h=bm(p,m,c,l)/f;if(h<0||h>1)return!1;var g=bm(p,m,u,d)/f;return!(g<0||g>1)}function bm(e,t,n,r){return e*r-n*t}function xm(e){return e<=1e-6&&e>=-1e-6}function Sm(e,t,n,r,i){return t==null?e:(Ce(t)?Cm[0]=Cm[1]=Cm[2]=Cm[3]=t:(process.env.NODE_ENV!==`production`&&G(t.length===4),Cm[0]=t[0],Cm[1]=t[1],Cm[2]=t[2],Cm[3]=t[3]),r&&(Cm[0]=bo(0,Cm[0]),Cm[1]=bo(0,Cm[1]),Cm[2]=bo(0,Cm[2]),Cm[3]=bo(0,Cm[3])),n&&(Cm[0]=-Cm[0],Cm[1]=-Cm[1],Cm[2]=-Cm[2],Cm[3]=-Cm[3]),wm(e,Cm,`x`,`width`,3,1,i&&i[0]||0),wm(e,Cm,`y`,`height`,0,2,i&&i[1]||0),e)}var Cm=[0,0,0,0];function wm(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=bo(0,yo(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:xo(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Tm(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&&L(z(c),function(e){Ke(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=X(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:F({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Em(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Dm(e,t){if(e){if(B(e))for(var n=0;n<e.length;n++)Em(e[n],t);else Em(e,t)}}function Om(e){return!e||xo(e[1])<km&&xo(e[2])<km||xo(e[0])<km&&xo(e[3])<km}var km=1e-5;function Am(e,t){return e?q.copy(e,t):t.clone()}function jm(e,t){return t?qt(e||Gt(),t):void 0}function Mm(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Nm(e){var t=-1/0,n=1/0;Em(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 Pm(e,t,n){Fm(e,t,n,-1/0)}function Fm(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=bo(Fm(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=bo(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 Im(e){return e.animation={duration:0},e}function Lm(e,t){return t?qt(Rm.transform,t):Kt(Rm.transform),Rm.decomposeTransform(),Ea(e,Rm),e}var Rm=new Sa;Rm.transform=Gt();function zm(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}$p(`circle`,Lf),$p(`ellipse`,zf),$p(`sector`,np),$p(`ring`,ip),$p(`polygon`,cp),$p(`polyline`,up),$p(`rect`,Ou),$p(`line`,pp),$p(`bezierCurve`,_p),$p(`arc`,yp);var Bm={};function Vm(e,t){for(var n=0;n<ld.length;n++){var r=ld[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 Hm(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<ld.length;l++){var u=ld[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Um(e,t,n,r){n||=Bm;for(var i=e instanceof Nu,a=!1,o=0;o<ud.length;o++){var s=t[ud[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Nu,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Hm(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Gm(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Km(u,n,!1));for(var o=0;o<ld.length;o++){var p=ld[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=Gm(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Km(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&&(eh(c).setLabelText=function(e){var r=Hm(n,t,e);Vm(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Wm(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<ld.length;r++){var i=ld[r];n[i]=e.getModel([i,t])}return n}function Gm(e,t,n,r,i){var a={};return qm(a,e,n,r,i),t&&P(a,t),a}function Km(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 qm(e,t,n,r,i){n||=Bm;var a=t.ecModel,o=a&&a.option.textStyle,s=Jm(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]);Qm(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=nh.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=Pe(_),h.__marginType=nh.textMargin)}Qm(e,t,o,null,null,n,r,i,!0,!1)}function Jm(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Bm).rich;if(n){t||={};for(var r=z(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`],Xm=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],Zm=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Qm(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Bm;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`&&cs(`color: 'auto'`,`color: 'inherit'`),d=u||null),(f===`inherit`||f===`auto`)&&(process.env.NODE_ENV!==`production`&&f===`auto`&&cs(`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;_<Ym.length;_++){var v=Ym[_],y=i!==!1&&r?Me(t.getShallow(v),r.getShallow(v),n[v]):W(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Xm.length;_++){var v=Xm[_],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;_<Zm.length;_++){var v=Zm[_],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`&&cs(`backgroundColor: 'auto'`,`backgroundColor: 'inherit'`),e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(process.env.NODE_ENV!==`production`&&e.borderColor===`auto`&&cs(`borderColor: 'auto'`,`borderColor: 'inherit'`),e.borderColor=u)}}function $m(e,t){var n=t&&t.getModel(`textStyle`);return Fe([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 eh=Ls();function th(e,t,n,r){if(e){var i=eh(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 nh={minMargin:1,textMargin:2},rh=[`textStyle`,`color`],ih=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],ah=new Nu,oh=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(rh):null)},e.prototype.getFont=function(){return $m({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<ih.length;n++)t[ih[n]]=this.getShallow(ih[n]);return ah.useStyle(t),ah.update(),ah.getBoundingRect()},e}(),sh=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],ch=Ec(sh),lh=function(){function e(){}return e.prototype.getLineStyle=function(e){return ch(this,e)},e}(),uh=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],dh=Ec(uh),fh=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return dh(this,e,t)},e}(),ph=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(!b.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}();vc(ph),Sc(ph),me(ph,lh),me(ph,fh),me(ph,Oc),me(ph,oh);var mh=Math.round(Math.random()*10);function hh(e){return[e||``,mh++].join(`_`)}function gh(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=hc(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=hc(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function _h(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=ls(`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 vh(e,t){return N(N({},e,!0),t,!0)}var yh={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:`. `}}}},bh={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:``}}}},xh=`ZH`,Sh=`EN`,Ch=Sh,wh={},Th={},Eh=b.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ch).toUpperCase().indexOf(xh)>-1?xh:Ch}():Ch;function Dh(e,t){e=e.toUpperCase(),Th[e]=new ph(t),wh[e]=t}function Oh(e){if(H(e)){var t=wh[e.toUpperCase()]||{};return e===xh||e===Sh?M(t):N(M(t),M(wh[Ch]),!1)}return N(M(e),M(wh[Ch]),!1)}function kh(e){return Th[e]}function Ah(){return Th[Ch]}Dh(Sh,yh),Dh(xh,bh);var jh=null;function Mh(){return jh}function Nh(e,t){var n=Mh(),r=t.breakOption,i=t.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,e)),i}function Ph(e){var t=e.brk;return t?t.breaks:[]}function Fh(e){var t=e.brk;return t?t.hasBreaks():!1}var Ih=1e3,Lh=Ih*60,Rh=Lh*60,zh=Rh*24,Bh=zh*365,Vh={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})/},Hh={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Uh=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,Wh=`{yyyy}-{MM}-{dd}`,Gh={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Wh,hour:Wh+` `+Hh.hour,minute:Wh+` `+Hh.minute,second:Wh+` `+Hh.second,millisecond:Uh},Kh=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],qh=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Jh(e){return!H(e)&&!V(e)?Yh(e):e}function Yh(e){e||={};var t={},n=!0;return L(Kh,function(t){n&&=e[t]==null}),L(Kh,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=Kh[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=Hh[r]:Vh[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function Xh(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function Zh(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 Qh(e){return e===Zh(e)}function $h(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function eg(e,t,n,r){var i=Wo(e),a=i[ig(n)](),o=i[ag(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[og(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[sg(n)](),d=(u-1)%12+1,f=i[cg(n)](),p=i[lg(n)](),m=i[ug(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof ph?r:kh(r||Eh)||Ah()).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,Xh(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Xh(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Xh(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Xh(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Xh(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Xh(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Xh(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Xh(m,3)).replace(/{S}/g,m+``)}function tg(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=Mh();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=ng(e.value,i);a=n[u][u][0]}}return eg(new Date(e.value),a,i,r)}function ng(e,t){var n=Wo(e),r=n[ag(t)]()+1,i=n[og(t)](),a=n[sg(t)](),o=n[cg(t)](),s=n[lg(t)](),c=n[ug(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 rg(e,t,n){switch(t){case`year`:e[fg(n)](0);case`month`:e[pg(n)](1);case`day`:e[mg(n)](0);case`hour`:e[hg(n)](0);case`minute`:e[gg(n)](0);case`second`:e[_g(n)](0)}return e}function ig(e){return e?`getUTCFullYear`:`getFullYear`}function ag(e){return e?`getUTCMonth`:`getMonth`}function og(e){return e?`getUTCDate`:`getDate`}function sg(e){return e?`getUTCHours`:`getHours`}function cg(e){return e?`getUTCMinutes`:`getMinutes`}function lg(e){return e?`getUTCSeconds`:`getSeconds`}function ug(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function dg(e){return e?`setUTCFullYear`:`setFullYear`}function fg(e){return e?`setUTCMonth`:`setMonth`}function pg(e){return e?`setUTCDate`:`setDate`}function mg(e){return e?`setUTCHours`:`setHours`}function hg(e){return e?`setUTCMinutes`:`setMinutes`}function gg(e){return e?`setUTCSeconds`:`setSeconds`}function _g(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function vg(e){if(!Yo(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 yg(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 bg=Pe;function xg(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&Fe(e)?e:`-`}function a(e){return $o(e)}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Wo(e):e;if(!isNaN(+c))return eg(c,r,n);if(s)return`-`}if(t===`ordinal`)return Se(e)?i(e):Ce(e)&&a(e)?e+``:`-`;var l=Jo(e);return a(l)?vg(l):Se(e)?i(e):typeof e==`boolean`?e+``:`-`}var Sg=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Cg=function(e,t){return`{`+e+(t??``)+`}`};function wg(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=Sg[a];e=e.replace(Cg(o),Cg(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(Cg(Sg[c],s),n?kt(l):l)}return e}function Tg(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:`+kt(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+kt(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 Eg(e,t){return t||=`transparent`,H(e)?e:U(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Dg(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Og={},kg={},Ag=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Og,!0),this._normalMasterList=n(kg,!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 G(!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`){Og[e]=t;return}kg[e]=t},e.get=function(e){return kg[e]||Og[e]},e}();function jg(e){return!!Og[e]}var Mg=K();function Ng(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=Mg.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Pg(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&&os(`coordinateSystemUsage "data" is not supported in non-series components.`),a=0)):r===`box`&&(a=2,!o&&!jg(n)&&(process.env.NODE_ENV!==`production`&&i&&t&&os(`coordinateSystem "`+n+`" cannot be used`+(` as coordinateSystemUsage "box" for "`+e.type+`" yet.`)),a=0))}return{coordSysType:n,kind:a}}function Fg(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=Pg(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||os(n+` cannot be found for`+(` `+t.type+` (index: `+t.componentIndex+`).`))),0)}var Ig=L,Lg=[`left`,`right`,`top`,`bottom`,`width`,`height`],Rg=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function zg(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)})}var Bg=zg;xe(zg,`vertical`),xe(zg,`horizontal`);function Vg(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 Hg(e,t,n){n=bg(n||0);var r=t.width,i=t.height,a=jo(e.left,r),o=jo(e.top,i),s=jo(e.right,r),c=jo(e.bottom,i),l=jo(e.width,r),u=jo(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 Ug={rect:1,point:2};function Wg(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=Ug.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint?(a=Ug.point,s=u,i=o.dataToPoint(l)):process.env.NODE_ENV!==`production`&&os(e.type+`[`+e.componentIndex+`]`+(` layout based on `+o.type+` is not supported.`))}return a??=Ug.rect,a===Ug.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 Gg(e,t,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],c=i&&i.boundingMode||`all`;if(a||=e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var l;if(c===`raw`)l=e.type===`group`?new q(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();l=l.clone(),l.applyTransform(u)}var d=Hg(F({width:l.width,height:l.height},t),n,r),f=o?d.x-l.x:0,p=s?d.y-l.y:0;return c===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Kg(e){var t=e.layoutMode||e.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function qg(e,t,n){var r=n&&n.ignoreSize;!B(r)&&(r=[r,r]);var i=o(Rg[0],0),a=o(Rg[1],1);c(Rg[0],e,i),c(Rg[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Ig(n,function(t){c[t]=e[t]}),Ig(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){Ig(e,function(e){t[e]=n[e]})}}function Jg(e){return Yg({},e)}function Yg(e,t){return t&&e&&Ig(Lg,function(n){Ke(t,n)&&(e[n]=t[n])}),e}var Xg=Ls(),Z=function(e){v(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=hh(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Kg(this),r=n?Jg(e):{};N(e,t.getTheme().get(this.mainType)),N(e,this.getDefaultOption()),n&&qg(e,r,n)},t.prototype.mergeOption=function(e,t){N(this.option,e,!0);var n=Kg(this);n&&qg(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!_c(e))return e.defaultOption;var t=Xg(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 Us(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Vg(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}(ph);bc(Z,ph),Tc(Z),gh(Z),_h(Z,Zg);function Zg(e){var t=[];return L(Z.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=R(t,function(e){return hc(e).main}),e!==`dataset`&&I(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Q={color:{},darkColor:{},size:{}},Qg=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 $g in P(Qg,{primary:Qg.neutral80,secondary:Qg.neutral70,tertiary:Qg.neutral60,quaternary:Qg.neutral50,disabled:Qg.neutral20,border:Qg.neutral30,borderTint:Qg.neutral20,borderShade:Qg.neutral40,background:Qg.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Qg.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Qg.neutral70,axisLineTint:Qg.neutral40,axisTick:Qg.neutral70,axisTickMinor:Qg.neutral60,axisLabel:Qg.neutral70,axisSplitLine:Qg.neutral15,axisMinorSplitLine:Qg.neutral05}),Qg)if(Qg.hasOwnProperty($g)){var e_=Qg[$g];$g===`theme`?Q.darkColor.theme=Qg.theme.slice():$g===`highlight`?Q.darkColor.highlight=`rgba(255,231,130,0.4)`:$g.indexOf(`accent`)===0?Q.darkColor[$g]=qr(e_,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Q.darkColor[$g]=qr(e_,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 t_=``;typeof navigator<`u`&&(t_=navigator.platform||``);var n_=`rgba(0, 0, 0, 0.2)`,r_=Q.color.theme[0],i_=qr(r_,null,null,.9),a_={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[i_,r_],aria:{decal:{decals:[{color:n_,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:n_,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:n_,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:n_,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:n_,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:n_,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:t_.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},o_={Must:1,Might:2,Not:3},s_=Ls();function c_(e){s_(e).datasetMap=K()}function l_(e,t,n){var r={},i=u_(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=s_(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),L(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});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 u_(e){if(!e.get(`data`,!0))return Us(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Vs).models[0]}function d_(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:Us(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Vs).models}function f_(e,t){return p_(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function p_(e,t,n,r,i,a){var o,s=5;if(Te(e))return o_.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`?o_.Must:o_.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 o_.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 o_.Not;var f=_[c];if(!f||Te(f))return o_.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=_s(g);if(!B(y))return o_.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?o_.Might:o_.Not;if(t&&e!==`-`)return o_.Must}return o_.Not}var m_=K();function h_(e,t){G(m_.get(e)==null&&t),m_.set(e,t)}function g_(e,t,n){var r=m_.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(Ms(i[a]));return n.concat(i)}var __=Ls();Ls();var v_=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ms(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return b_(this,__,r,i,e,t,n)},e.prototype.clearColorPalette=function(){x_(this,__)},e}();function y_(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 b_(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:y_(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 x_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var S_,C_,w_,T_=`\0_ec_inner`,E_=1,D_={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`},O_={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`},k_={};function A_(e){L(e,function(e,t){if(!Z.hasClass(t)){var n=D_[t];n&&!k_[n]&&(os(`Component `+t+` is used but not imported.
10
10
  import { `+n+` } from 'echarts/components';
11
- echarts.use([`+n+`]);`),p_[n]=!0)}})}var h_=function(e){f(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 Qm(r),this._locale=new Qm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(K(e!=null,`option is null/undefined`),K(e[l_]!==u_,`please use chart.getOption()`));var r=b_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,b_(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`&&m_(i),!this.option||e===`recreate`?c_(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&&R(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=q(),s=t&&t.replaceMergeMainTypeMap;Kg(this),R(e,function(e,t){e!=null&&(Z.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){Z.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),c,this);function c(t){var a=e_(this,t,ns(e[t])),o=r.get(t),c=ss(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Ss(c,t,Z),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f,p;R(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=Z.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=f_[s];p_[s]||(p_[s]=!0,Yo(c?`Series `+s+` is used but not imported.
11
+ echarts.use([`+n+`]);`),k_[n]=!0)}})}var j_=function(e){v(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 ph(r),this._locale=new ph(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){process.env.NODE_ENV!==`production`&&(G(e!=null,`option is null/undefined`),G(e[T_]!==E_,`please use chart.getOption()`));var r=I_(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,I_(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`&&A_(i),!this.option||e===`recreate`?w_(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=K(),s=t&&t.replaceMergeMainTypeMap;c_(this),L(e,function(e,t){e!=null&&(Z.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){Z.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Z.topologicalTravel(a,Z.getAllClassMainTypes(),c,this);function c(t){var a=g_(this,t,ms(e[t])),o=r.get(t),c=ys(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);Ps(c,t,Z),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=Z.getClass(t,e.keyInfo.subType,!a);if(!o){if(process.env.NODE_ENV!==`production`){var s=e.keyInfo.subType,c=O_[s];k_[s]||(k_[s]=!0,os(c?`Series `+s+` is used but not imported.
12
12
  import { `+c+` } from 'echarts/charts';
13
- echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(Jo(`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`&&o_(this)}this._seriesIndices||o_(this)},t.prototype.getOption=function(){var e=M(this.option);return R(e,function(t,n){if(Z.hasClass(n)){for(var r=ns(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!bs(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[l_],e},t.prototype.setTheme=function(e){this._theme=new Qm(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?ue(a,function(e){return!!e}):v_(`name`,i,a):v_(`id`,r,a):(o=[],R(ns(n),function(e){a[e]&&o.push(a[e])})),y_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(y_(r?this.queryComponents(r):ue(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?ue(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(H(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=U(e)?r.get(e):W(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=gs(e,null);return ue(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 ue(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return ue(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){s_(this),R(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){R(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){s_(this),R(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 R(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return s_(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){s_(this);var n=[];R(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=q(n)},t.prototype.restoreData=function(e){o_(this);var t=this._componentsMap,n=[];t.each(function(e,t){Z.hasClass(t)&&n.push(t)}),Z.topologicalTravel(n,Z.getAllClassMainTypes(),function(n){R(t.get(n),function(t){t&&(n!==`series`||!g_(t,e))&&t.restoreData()})})},t.internalField=function(){o_=function(e){var t=e._seriesIndices=[];R(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=q(t)},s_=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},c_=function(e,t){e.option={},e.option[l_]=u_,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=t.aria;W(n)&&n.enabled==null&&(n.enabled=!0),__(t,e._theme.option),N(t,Ug,!1),e._mergeOption(t,null)}}(),t}(Qm);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,t){var n=e.color&&!e.colorLayer;R(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Z.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function v_(e,t,n){if(V(t)){var r=q();return R(t,function(e){e!=null&&gs(e,null)!=null&&r.set(e,!0)}),ue(n,function(t){return t&&r.get(t[e])})}var i=gs(t,null);return ue(n,function(t){return t&&i!=null&&t[e]===i})}function y_(e,t){return t.hasOwnProperty(`subType`)?ue(e,function(e){return e&&e.subType===t.subType}):e}function b_(e){var t=q();return e&&R(ns(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&K(Z.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ce(h_,n_);var x_=/^(min|max)?(.+)$/,S_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(R(ns(e.series),function(e){e&&e.data&&ve(e.data)&&Ae(e.data)}),R(ns(e.dataset),function(e){e&&e.source&&ve(e.source)&&Ae(e.source)})),e=M(e);var r=this._optionBackup,i=C_(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++)w_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!E_(a,this._currentMediaIndices)&&(o=z(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function C_(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&&(V(l)?R(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&W(e.query)&&W(e.query.option)&&Yo(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&Yo(`Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }`)),f(a),R(c,function(e){return f(e)}),R(r,function(e){return f(e.option)});function f(e){R(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function w_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return R(e,function(e,t){var n=t.match(x_);if(!(!n||!n[1]||!n[2])){var a=n[1];T_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function T_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function E_(e,t){return e.join(`,`)===t.join(`,`)}var D_=R,O_=W,k_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function A_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=k_.length;n<r;n++){var i=k_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&Zo(`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`&&Zo(`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 j_(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`&&Xo(`'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`&&Xo(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 M_(e){j_(e,`itemStyle`),j_(e,`lineStyle`),j_(e,`areaStyle`),j_(e,`label`),j_(e,`labelLine`),j_(e,`upperLabel`),j_(e,`edgeLabel`)}function N_(e,t){var n=O_(e)&&e[t],r=O_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&Xo(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=is.length;i<a;i++){var o=is[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function P_(e){e&&(M_(e),N_(e,`label`),e.emphasis&&N_(e.emphasis,`label`))}function F_(e){if(O_(e)){A_(e),M_(e),N_(e,`label`),N_(e,`upperLabel`),N_(e,`edgeLabel`),e.emphasis&&(N_(e.emphasis,`label`),N_(e.emphasis,`upperLabel`),N_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(A_(t),P_(t));var n=e.markLine;n&&(A_(n),P_(n));var r=e.markArea;r&&P_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ve(a))for(var o=0;o<a.length;o++)P_(a[o]);R(e.categories,function(e){M_(e)})}if(i&&!ve(i))for(var o=0;o<i.length;o++)P_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)P_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)V(c[o])?(P_(c[o][0]),P_(c[o][1])):P_(c[o]);e.type===`gauge`?(N_(e,`axisLabel`),N_(e,`title`),N_(e,`detail`)):e.type===`treemap`?(j_(e.breadcrumb,`itemStyle`),R(e.levels,function(e){M_(e)})):e.type===`tree`&&M_(e.leaves)}}function I_(e){return V(e)?e:e?[e]:[]}function L_(e){return(V(e)?e[0]:e)||{}}function R_(e,t){D_(I_(e.series),function(e){O_(e)&&F_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),D_(n,function(t){D_(I_(e[t]),function(e){e&&(N_(e,`axisLabel`),N_(e.axisPointer,`label`))})}),D_(I_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;N_(t,`axisLabel`),N_(t&&t.axisPointer,`label`)}),D_(I_(e.calendar),function(e){j_(e,`itemStyle`),N_(e,`dayLabel`),N_(e,`monthLabel`),N_(e,`yearLabel`)}),D_(I_(e.radar),function(e){N_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&Xo(`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`&&Xo(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&D_(e.indicator,function(e){e.text&&Zo(`text`,`name`,`radar.indicator`)})}),D_(I_(e.geo),function(e){O_(e)&&(P_(e),D_(I_(e.regions),function(e){P_(e)}))}),D_(I_(e.timeline),function(e){P_(e),j_(e,`label`),j_(e,`itemStyle`),j_(e,`controlStyle`,!0);var t=e.data;V(t)&&R(t,function(e){W(e)&&(j_(e,`label`),j_(e,`itemStyle`))})}),D_(I_(e.toolbox),function(e){j_(e,`iconStyle`),D_(e.feature,function(e){j_(e,`iconStyle`)})}),N_(L_(e.axisPointer),`label`),N_(L_(e.tooltip).axisPointer,`label`)}function z_(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function B_(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 V_(e){e&&R(H_,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var H_=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],U_=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],W_=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function G_(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<W_.length;n++){var r=W_[n][1],i=W_[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&Zo(r,i))}}function K_(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&Zo(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function q_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&Zo(`downplay`,`blur`,`sunburst`))}function J_(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&Zo(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function Y_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Y_(e[n].children,t)}function X_(e,t){R_(e,t),e.series=ns(e.series),R(e.series,function(e){if(W(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow,process.env.NODE_ENV!==`production`&&Zo(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&Zo(`clockWise`,`clockwise`)),K_(e.label);var n=e.data;if(n&&!ve(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`&&Zo(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=z_(e,`pointer.color`);i!=null&&B_(e,`itemStyle.color`,i)}else if(t===`bar`){G_(e),G_(e.backgroundStyle),G_(e.emphasis);var n=e.data;if(n&&!ve(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(G_(n[r]),G_(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`&&Zo(`highlightPolicy`,`emphasis.focus`,`sunburst`))),q_(e),Y_(e.data,q_)}else t===`graph`||t===`sankey`?J_(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&Zo(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&Xo("`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`&&Zo(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),V_(e)}}),e.dataRange&&(e.visualMap=e.dataRange),R(U_,function(t){var n=e[t];n&&(V(n)||(n=[n]),R(n,function(e){V_(e)}))})}var Z_=Qs(Q_);function Q_(e){var t=q();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(),R(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),$_(e))})}function $_(e){R(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=Oo(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var ev=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&&Xg(this,n)===Wg.Must&&(r.type=`ordinal`)}}return e}();function tv(e){return e instanceof ev}function nv(e,t,n){n||=av(e);var r=t.seriesLayoutBy,i=ov(e,n,r,t.sourceHeader,t.dimensions);return new ev({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function rv(e){return new ev({data:e,sourceFormat:ve(e)?Vu:Lu})}function iv(e){return new ev({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function av(e){var t=Hu;if(ve(e))t=Vu;else if(V(e)){e.length===0&&(t=Ru);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(V(i)||ve(i)){t=Ru;break}if(W(i)){t=zu;break}}}}else if(W(e)){for(var a in e)if(ze(e,a)&&L(e[a])){t=Bu;break}}return t}function ov(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:cv(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?lv(function(e){e!=null&&e!==`-`&&(U(e)?o??=1:o=0)},n,s,10):o=ge(r)?r:+!!r,!i&&o===1&&(i=[],lv(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||=sv(e);else if(t===`keyedColumns`)i||(i=[],R(e,function(e,t){i.push(t)}));else if(t===`original`){var c=as(e[0]);a=V(c)&&c.length||1}else t===`typedArray`&&process.env.NODE_ENV!==`production`&&K(!!i,`dimensions must be given if data is TypedArray.`);return{startIndex:o,dimensionsDefine:cv(i),dimensionsDetectedCount:a}}function sv(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return B(n)}function cv(e){if(e){var t=q();return z(e,function(e,n){e=W(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 lv(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 uv(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var dv,fv,pv,mv,hv,gv,_v=function(){function e(e,t){var n=tv(e)?e:rv(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=yv[kv(i,a)];o&&o(r,n.dimensionsDefine)}gv(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;gv=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=hv[kv(o,s)];process.env.NODE_ENV!==`production`&&K(u,`Invalide sourceFormat: `+o),P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=pe(Sv(o,s),null,i,c,l),e.count=pe(Tv(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};hv=(e={},e[Ru+`_`+Uu]={pure:!0,appendData:i},e[Ru+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[zu]={pure:!0,appendData:i},e[Bu]={pure:!0,appendData:function(e){var t=this._data;R(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Lu]={appendData:i},e[Vu]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&K(ve(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}(),vv=function(e){V(e)||Yo(`series.data or dataset.source must be an array.`)},yv=(dv={},dv[Ru+`_`+Uu]=vv,dv[Ru+`_row`]=vv,dv[zu]=vv,dv[Bu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Yo(`dimension name must not be null/undefined.`)},dv[Lu]=vv,dv),bv=function(e,t,n,r){return e[r]},xv=(fv={},fv[Ru+`_`+Uu]=function(e,t,n,r){return e[r+t]},fv[Ru+`_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},fv[zu]=bv,fv[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},fv[Lu]=bv,fv);function Sv(e,t){var n=xv[kv(e,t)];return process.env.NODE_ENV!==`production`&&K(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var Cv=function(e,t,n){return e.length},wv=(pv={},pv[Ru+`_`+Uu]=function(e,t,n){return Math.max(0,e.length-t)},pv[Ru+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},pv[zu]=Cv,pv[Bu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},pv[Lu]=Cv,pv);function Tv(e,t){var n=wv[kv(e,t)];return process.env.NODE_ENV!==`production`&&K(n,`Do not support count on "`+e+`", "`+t+`".`),n}var Ev=function(e,t,n){return e[t]},Dv=(mv={},mv[Ru]=Ev,mv[zu]=function(e,t,n){return e[n]},mv[Bu]=Ev,mv[Lu]=function(e,t,n){var r=as(e);return r instanceof Array?r[t]:r},mv[Vu]=Ev,mv);function Ov(e){var t=Dv[e];return process.env.NODE_ENV!==`production`&&K(t,`Do not support get value on "`+e+`".`),t}function kv(e,t){return e===`arrayRows`?e+`_`+t:e}function Av(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=as(r)),c}}}var jv=/\{@(.+?)\}/g,Mv=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&&V(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),H(i))return s.status=t,s.dimensionIndex=r,i(s);if(U(i))return lg(i,s).replace(jv,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)&&Yo(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=Av(o,e,i);if(a&&V(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Av(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Nv(e){var t,n;return W(e)?e.type?n=e:process.env.NODE_ENV!==`production`&&console.warn("The return type of `formatTooltip` is not supported: "+Qo(e)):t=e,{text:t,frag:n}}function Pv(e){return new Fv(e)}var Fv=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`&&K(t._outputDueEnd!=null),this._dueEnd=t._outputDueEnd):(process.env.NODE_ENV!==`production`&&K(!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(V(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`&&K(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){Iv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Iv.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),V(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`&&K(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}(),Iv=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 Lv(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!ge(e)&&e!=null&&e!==`-`&&(e=+No(e)),e==null||e===``?NaN:Number(e))}q({number:function(e){return parseFloat(e)},time:function(e){return+No(e)},trim:function(e){return U(e)?Oe(e):e}});var Rv={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(!ge(t)){var n=``;process.env.NODE_ENV!==`production`&&(n=`rvalue of "<", ">", "<=", ">=" can only be number in filter.`),$o(n)}this._opFn=Rv[e],this._rvalFloat=Lo(t)}return e.prototype.evaluate=function(e){return ge(e)?this._opFn(e,this._rvalFloat):this._opFn(Lo(e),this._rvalFloat)},e})();var zv=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=ge(e)?e:Lo(e),r=ge(t)?t:Lo(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=U(e),s=U(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=Lo(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=Lo(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function Bv(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 Vv(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var Hv=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 Lv(e,t)},e}();function Uv(e,t){var n=new Hv,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.'),$o(o));var s=[],c={},l=e.dimensionsDefine;if(l)R(l,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),n!=null){var i=``;ze(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),$o(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=Sv(i,Uu);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=pe(Wv,null,e)),n.cloneRawData=pe(Gv,null,e),n.count=pe(Tv(i,Uu),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=pe(Kv,null,s,c),n.cloneAllDimensionInfo=pe(qv,null,s),n}function Wv(e){var t=e.sourceFormat;if(!Qv(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),$o(n)}return e.data}function Gv(e){var t=e.sourceFormat,n=e.data;if(!Qv(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),$o(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(ge(n)||!isNaN(n)&&!ze(t,n))return e[n];if(ze(t,n))return t[n]}}function qv(e){return M(e)}var Jv=q();function Yv(e){e=M(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),$o(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),$o(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,Jv.set(t,e)}function Xv(e,t,n){var r=ns(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),$o(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=Zv(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Zv(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),$o(i)),W(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),$o(i));var a=e.type,o=Jv.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),$o(i));var s=z(t,function(e){return Uv(e,o)}),c=ns(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&qo(z(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,Qo(e.data),`- transform result dimensions:`,Qo(e.dimensions)].join(`
13
+ echarts.use([`+c+`]);`:`Unknown series `+s))}return}if(t===`tooltip`){if(f){process.env.NODE_ENV!==`production`&&(p||=(as(`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`&&S_(this)}this._seriesIndices||S_(this)},t.prototype.getOption=function(){var e=M(this.option);return L(e,function(t,n){if(Z.hasClass(n)){for(var r=ms(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Ms(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[T_],e},t.prototype.setTheme=function(e){this._theme=new ph(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?_e(a,function(e){return!!e}):P_(`name`,i,a):P_(`id`,r,a):(o=[],L(ms(n),function(e){a[e]&&o.push(a[e])})),F_(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(F_(r?this.queryComponents(r):_e(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?_e(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=Os(e,null);return _e(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 _e(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return _e(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){C_(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){C_(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 C_(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){C_(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=K(n)},t.prototype.restoreData=function(e){S_(this);var t=this._componentsMap,n=[];t.each(function(e,t){Z.hasClass(t)&&n.push(t)}),Z.topologicalTravel(n,Z.getAllClassMainTypes(),function(n){L(t.get(n),function(t){t&&(n!==`series`||!M_(t,e))&&t.restoreData()})})},t.internalField=function(){S_=function(e){var t=e._seriesIndices=[];L(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},C_=function(e){if(process.env.NODE_ENV!==`production`&&!e._seriesIndices)throw Error(`Option should contains series.`)},w_=function(e,t){e.option={},e.option[T_]=E_,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;U(n)&&n.enabled==null&&(n.enabled=!0),N_(t,e._theme.option),N(t,a_,!1),e._mergeOption(t,null)}}(),t}(ph);function M_(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 N_(e,t){var n=e.color&&!e.colorLayer;L(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Z.hasClass(r)||(typeof t==`object`?e[r]=e[r]?N(e[r],t,!1):M(t):e[r]??(e[r]=t))})}function P_(e,t,n){if(B(t)){var r=K();return L(t,function(e){e!=null&&Os(e,null)!=null&&r.set(e,!0)}),_e(n,function(t){return t&&r.get(t[e])})}var i=Os(t,null);return _e(n,function(t){return t&&i!=null&&t[e]===i})}function F_(e,t){return t.hasOwnProperty(`subType`)?_e(e,function(e){return e&&e.subType===t.subType}):e}function I_(e){var t=K();return e&&L(ms(e.replaceMerge),function(e){process.env.NODE_ENV!==`production`&&G(Z.hasClass(e),`"`+e+`" is not valid component main type in "replaceMerge"`),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}me(j_,v_);var L_=/^(min|max)?(.+)$/,R_=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(L(ms(e.series),function(e){e&&e.data&&Te(e.data)&&Le(e.data)}),L(ms(e.dataset),function(e){e&&e.source&&Te(e.source)&&Le(e.source)})),e=M(e);var r=this._optionBackup,i=z_(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++)B_(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!H_(a,this._currentMediaIndices)&&(o=R(a,function(e){return M(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function z_(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)?L(l,function(e){process.env.NODE_ENV!==`production`&&e&&!e.option&&U(e.query)&&U(e.query.option)&&os(`Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }`),e&&e.option&&(e.query?r.push(e):i||=e)}):process.env.NODE_ENV!==`production`&&os(`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 B_(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return L(e,function(e,t){var n=t.match(L_);if(!(!n||!n[1]||!n[2])){var a=n[1];V_(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function V_(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function H_(e,t){return e.join(`,`)===t.join(`,`)}var U_=L,W_=U,G_=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function K_(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=G_.length;n<r;n++){var i=G_[n],a=t.normal,o=t.emphasis;a&&a[i]&&(process.env.NODE_ENV!==`production`&&cs(`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`&&cs(`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 q_(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`&&ss(`'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`&&ss(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 J_(e){q_(e,`itemStyle`),q_(e,`lineStyle`),q_(e,`areaStyle`),q_(e,`label`),q_(e,`labelLine`),q_(e,`upperLabel`),q_(e,`edgeLabel`)}function Y_(e,t){var n=W_(e)&&e[t],r=W_(n)&&n.textStyle;if(r){process.env.NODE_ENV!==`production`&&ss(`textStyle hierarchy in `+t+` has been removed since 4.0. All textStyle properties are configured in `+t+` directly now.`);for(var i=0,a=gs.length;i<a;i++){var o=gs[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function X_(e){e&&(J_(e),Y_(e,`label`),e.emphasis&&Y_(e.emphasis,`label`))}function Z_(e){if(W_(e)){K_(e),J_(e),Y_(e,`label`),Y_(e,`upperLabel`),Y_(e,`edgeLabel`),e.emphasis&&(Y_(e.emphasis,`label`),Y_(e.emphasis,`upperLabel`),Y_(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(K_(t),X_(t));var n=e.markLine;n&&(K_(n),X_(n));var r=e.markArea;r&&X_(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!Te(a))for(var o=0;o<a.length;o++)X_(a[o]);L(e.categories,function(e){J_(e)})}if(i&&!Te(i))for(var o=0;o<i.length;o++)X_(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)X_(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)B(c[o])?(X_(c[o][0]),X_(c[o][1])):X_(c[o]);e.type===`gauge`?(Y_(e,`axisLabel`),Y_(e,`title`),Y_(e,`detail`)):e.type===`treemap`?(q_(e.breadcrumb,`itemStyle`),L(e.levels,function(e){J_(e)})):e.type===`tree`&&J_(e.leaves)}}function Q_(e){return B(e)?e:e?[e]:[]}function $_(e){return(B(e)?e[0]:e)||{}}function ev(e,t){U_(Q_(e.series),function(e){W_(e)&&Z_(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),U_(n,function(t){U_(Q_(e[t]),function(e){e&&(Y_(e,`axisLabel`),Y_(e.axisPointer,`label`))})}),U_(Q_(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Y_(t,`axisLabel`),Y_(t&&t.axisPointer,`label`)}),U_(Q_(e.calendar),function(e){q_(e,`itemStyle`),Y_(e,`dayLabel`),Y_(e,`monthLabel`),Y_(e,`yearLabel`)}),U_(Q_(e.radar),function(e){Y_(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name,process.env.NODE_ENV!==`production`&&ss(`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`&&ss(`nameGap property in radar component has been changed to axisNameGap`)),process.env.NODE_ENV!==`production`&&U_(e.indicator,function(e){e.text&&cs(`text`,`name`,`radar.indicator`)})}),U_(Q_(e.geo),function(e){W_(e)&&(X_(e),U_(Q_(e.regions),function(e){X_(e)}))}),U_(Q_(e.timeline),function(e){X_(e),q_(e,`label`),q_(e,`itemStyle`),q_(e,`controlStyle`,!0);var t=e.data;B(t)&&L(t,function(e){U(e)&&(q_(e,`label`),q_(e,`itemStyle`))})}),U_(Q_(e.toolbox),function(e){q_(e,`iconStyle`),U_(e.feature,function(e){q_(e,`iconStyle`)})}),Y_($_(e.axisPointer),`label`),Y_($_(e.tooltip).axisPointer,`label`)}function tv(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function nv(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 rv(e){e&&L(iv,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var iv=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],av=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],ov=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function sv(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<ov.length;n++){var r=ov[n][1],i=ov[n][0];t[r]!=null&&(t[i]=t[r],process.env.NODE_ENV!==`production`&&cs(r,i))}}function cv(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!==`production`&&cs(`label.margin`,`label.edgeDistance`,`pie`),e.edgeDistance=e.margin)}function lv(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!==`production`&&cs(`downplay`,`blur`,`sunburst`))}function uv(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(process.env.NODE_ENV!==`production`&&cs(`focusNodeAdjacency`,`emphasis: { focus: 'adjacency'}`,`graph/sankey`),e.emphasis.focus=`adjacency`))}function dv(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&dv(e[n].children,t)}function fv(e,t){ev(e,t),e.series=ms(e.series),L(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`&&cs(`clipOverflow`,`clip`,`line`));else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise,process.env.NODE_ENV!==`production`&&cs(`clockWise`,`clockwise`)),cv(e.label);var n=e.data;if(n&&!Te(n))for(var r=0;r<n.length;r++)cv(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(process.env.NODE_ENV!==`production`&&cs(`hoverOffset`,`emphasis.scaleSize`),e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=tv(e,`pointer.color`);i!=null&&nv(e,`itemStyle.color`,i)}else if(t===`bar`){sv(e),sv(e.backgroundStyle),sv(e.emphasis);var n=e.data;if(n&&!Te(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(sv(n[r]),sv(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`&&cs(`highlightPolicy`,`emphasis.focus`,`sunburst`))),lv(e),dv(e.data,lv)}else t===`graph`||t===`sankey`?uv(e):t===`map`&&(e.mapType&&!e.map&&(process.env.NODE_ENV!==`production`&&cs(`mapType`,`map`,`map`),e.map=e.mapType),e.mapLocation&&(process.env.NODE_ENV!==`production`&&ss("`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`&&cs(`hoverAnimation`,`emphasis.scale`),e.emphasis.scale=e.hoverAnimation)),rv(e)}}),e.dataRange&&(e.visualMap=e.dataRange),L(av,function(t){var n=e[t];n&&(B(n)||(n=[n]),L(n,function(e){rv(e)}))})}var pv=dc(mv);function mv(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(),L(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),hv(e))})}function hv(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=zo(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var gv=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&&f_(this,n)===o_.Must&&(r.type=`ordinal`)}}return e}();function _v(e){return e instanceof gv}function vv(e,t,n){n||=xv(e);var r=t.seriesLayoutBy,i=Sv(e,n,r,t.sourceHeader,t.dimensions);return new gv({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:M(t)})}function yv(e){return new gv({data:e,sourceFormat:Te(e)?$u:Yu})}function bv(e){return new gv({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:M(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function xv(e){var t=ed;if(Te(e))t=$u;else if(B(e)){e.length===0&&(t=Xu);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(B(i)||Te(i)){t=Xu;break}if(U(i)){t=Zu;break}}}}else if(U(e)){for(var a in e)if(Ke(e,a)&&he(e[a])){t=Qu;break}}return t}function Sv(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:wv(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Tv(function(e){e!=null&&e!==`-`&&(H(e)?o??=1:o=0)},n,s,10):o=Ce(r)?r:+!!r,!i&&o===1&&(i=[],Tv(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||=Cv(e);else if(t===`keyedColumns`)i||(i=[],L(e,function(e,t){i.push(t)}));else if(t===`original`){var c=_s(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:wv(i),dimensionsDetectedCount:a}}function Cv(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return z(n)}function wv(e){if(e){var t=K();return R(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 Tv(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 Ev(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var Dv,Ov,kv,Av,jv,Mv,Nv=function(){function e(e,t){var n=_v(e)?e:yv(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=Fv[Gv(i,a)];o&&o(r,n.dimensionsDefine)}Mv(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;Mv=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=jv[Gv(o,s)];process.env.NODE_ENV!==`production`&&G(u,`Invalide sourceFormat: `+o),P(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=be(Rv(o,s),null,i,c,l),e.count=be(Vv(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};jv=(e={},e[Xu+`_`+td]={pure:!0,appendData:i},e[Xu+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Zu]={pure:!0,appendData:i},e[Qu]={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[Yu]={appendData:i},e[$u]={persistent:!1,pure:!0,appendData:function(e){process.env.NODE_ENV!==`production`&&G(Te(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}(),Pv=function(e){B(e)||os(`series.data or dataset.source must be an array.`)},Fv=(Dv={},Dv[Xu+`_`+td]=Pv,Dv[Xu+`_row`]=Pv,Dv[Zu]=Pv,Dv[Qu]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??os(`dimension name must not be null/undefined.`)},Dv[Yu]=Pv,Dv),Iv=function(e,t,n,r){return e[r]},Lv=(Ov={},Ov[Xu+`_`+td]=function(e,t,n,r){return e[r+t]},Ov[Xu+`_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},Ov[Zu]=Iv,Ov[Qu]=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},Ov[Yu]=Iv,Ov);function Rv(e,t){var n=Lv[Gv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support get item on "`+e+`", "`+t+`".`),n}var zv=function(e,t,n){return e.length},Bv=(kv={},kv[Xu+`_`+td]=function(e,t,n){return Math.max(0,e.length-t)},kv[Xu+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},kv[Zu]=zv,kv[Qu]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},kv[Yu]=zv,kv);function Vv(e,t){var n=Bv[Gv(e,t)];return process.env.NODE_ENV!==`production`&&G(n,`Do not support count on "`+e+`", "`+t+`".`),n}var Hv=function(e,t,n){return e[t]},Uv=(Av={},Av[Xu]=Hv,Av[Zu]=function(e,t,n){return e[n]},Av[Qu]=Hv,Av[Yu]=function(e,t,n){var r=_s(e);return r instanceof Array?r[t]:r},Av[$u]=Hv,Av);function Wv(e){var t=Uv[e];return process.env.NODE_ENV!==`production`&&G(t,`Do not support get value on "`+e+`".`),t}function Gv(e,t){return e===`arrayRows`?e+`_`+t:e}function Kv(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 Wv(a)(r,o,s)}var c=r;return a===`original`&&(c=_s(r)),c}}}var qv=/\{@(.+?)\}/g,Jv=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 wg(i,s).replace(qv,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)&&os(`Invalide label formatter: @`+n+`, only support @[0], @[1], @[2], ...`));var s=Kv(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 Kv(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Yv(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: "+ls(e)):t=e,{text:t,frag:n}}function Xv(e){return new Zv(e)}var Zv=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){Qv.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Qv.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}(),Qv=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 $v(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!Ce(e)&&e!=null&&e!==`-`&&(e=+Wo(e)),e==null||e===``?NaN:Number(e))}K({number:function(e){return parseFloat(e)},time:function(e){return+Wo(e)},trim:function(e){return H(e)?Fe(e):e}});var ey={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.`),us(n)}this._opFn=ey[e],this._rvalFloat=Jo(t)}return e.prototype.evaluate=function(e){return Ce(e)?this._opFn(e,this._rvalFloat):this._opFn(Jo(e),this._rvalFloat)},e})();var ty=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:Jo(e),r=Ce(t)?t:Jo(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=Jo(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=Jo(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();function ny(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 ry(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var iy=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 $v(e,t)},e}();function ay(e,t){var n=new iy,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.'),us(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=``;Ke(c,n)&&(process.env.NODE_ENV!==`production`&&(i=`dimension name "`+n+`" duplicated.`),us(i)),c[n]=r}});else for(var u=0;u<e.dimensionsDetectedCount;u++)s.push({index:u});var d=Rv(i,td);t.__isBuiltIn&&(n.getRawDataItem=function(e){return d(r,a,s,e)},n.getRawData=be(oy,null,e)),n.cloneRawData=be(sy,null,e),n.count=be(Vv(i,td),null,r,a,s);var f=Wv(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=be(cy,null,s,c),n.cloneAllDimensionInfo=be(ly,null,s),n}function oy(e){var t=e.sourceFormat;if(!my(t)){var n=``;process.env.NODE_ENV!==`production`&&(n="`getRawData` is not supported in source format "+t),us(n)}return e.data}function sy(e){var t=e.sourceFormat,n=e.data;if(!my(t)){var r=``;process.env.NODE_ENV!==`production`&&(r="`cloneRawData` is not supported in source format "+t),us(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 cy(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 ly(e){return M(e)}var uy=K();function dy(e){e=M(e);var t=e.type,n=``;t||(process.env.NODE_ENV!==`production`&&(n="Must have a `type` when `registerTransform`."),us(n));var r=t.split(`:`);r.length!==2&&(process.env.NODE_ENV!==`production`&&(n=`Name must include namespace like "ns:regression".`),us(n));var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,uy.set(t,e)}function fy(e,t,n){var r=ms(e),i=r.length,a=``;i||(process.env.NODE_ENV!==`production`&&(a="If `transform` declared, it should at least contain one transform."),us(a));for(var o=0,s=i;o<s;o++){var c=r[o];t=py(c,t,n,i===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function py(e,t,n,r){var i=``;t.length||(process.env.NODE_ENV!==`production`&&(i=`Must have at least one upstream dataset.`),us(i)),U(e)||(process.env.NODE_ENV!==`production`&&(i=`transform declaration must be an object rather than `+typeof e+`.`),us(i));var a=e.type,o=uy.get(a);o||(process.env.NODE_ENV!==`production`&&(i=`Can not find transform on type "`+a+`".`),us(i));var s=R(t,function(e){return ay(e,o)}),c=ms(o.transform({upstream:s[0],upstreamList:s,config:M(e.config)}));return process.env.NODE_ENV!==`production`&&e.print&&is(R(c,function(e){var t=r==null?``:` === pipe index: `+r;return[`=== dataset index: `+n.datasetIndex+t+` ===`,`- transform result data:`,ls(e.data),`- transform result dimensions:`,ls(e.dimensions)].join(`
14
14
  `)}).join(`
15
- `)),z(c,function(e,n){var r=``;W(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),$o(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),$o(r)),Qv(av(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),$o(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:Uu,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Uu,sourceHeader:0,dimensions:e.dimensions};return nv(e.data,i,null)})}function Qv(e){return e===`arrayRows`||e===`objectRows`}var $v=typeof Uint32Array>`u`?Array:Uint32Array,ey=typeof Uint16Array>`u`?Array:Uint16Array,ty=typeof Int32Array>`u`?Array:Int32Array,ny=typeof Float64Array>`u`?Array:Float64Array,ry={float:ny,int:ty,ordinal:Array,number:Array,time:ny},iy;function ay(e){return e>65535?$v:ey}function oy(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function sy(e,t,n,r,i){var a=ry[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 cy=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return e.prototype.initData=function(e,t,n){process.env.NODE_ENV!==`production`&&K(H(e.getItem)&&H(e.count),`Invalid data provider.`),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=iy[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=uv(r);this._dimensions=z(t,function(e){return process.env.NODE_ENV!==`production`&&a&&K(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 ry[t||`float`](this._rawCount),this._rawExtent[i]=Is(),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]=Is());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`&&K(!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];sy(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=iy.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=z(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Is()),sy(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)}),wo(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=ay(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(ay(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(ay(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]]=Is();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(ay(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(ay(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]=Is(),d=new(ay(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=Is();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=Bv(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||Vv(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&&le(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?oy(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 Lv(e[r],this._dimensions[r])}iy={arrayRows:e,objectRows:function(e,t,n,r){return Lv(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Lv(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),ly=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(uy(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=ve(o)?Vu:Lu,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[nv(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=[nv(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}process.env.NODE_ENV!==`production`&&K(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`&&K(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"),dy(i))}var a,o=[],s=[];return R(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),dy(n)),o.push(t),s.push(e._getVersionSign())}),n?a=Xv(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[iv(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`&&K(uy(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];uy(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new cy,o.initData(new _v(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(uy(e)){var t=Jg(e);return t?[t.getSourceManager()]:[]}return z(Yg(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(uy(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 uy(e){return e.mainType===`series`}function dy(e){throw Error(e)}var fy=`line-height:1`;function py(e){var t=e.lineHeight;return t==null?fy:`line-height:`+xt(t+``)+`px`}function my(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:`+xt(r+``)+`px;color:`+xt(n)+`;font-weight:`+xt(i+``),valueStyle:`font-size:`+xt(o+``)+`px;color:`+xt(a)+`;font-weight:`+xt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var hy=[0,10,20,30],gy=[``,`
15
+ `)),R(c,function(e,n){var r=``;U(e)||(process.env.NODE_ENV!==`production`&&(r=`A transform should not return some empty results.`),us(r)),e.data||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be not be null or undefined`),us(r)),my(xv(e.data))||(process.env.NODE_ENV!==`production`&&(r=`Transform result data should be array rows or object rows.`),us(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:td,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:td,sourceHeader:0,dimensions:e.dimensions};return vv(e.data,i,null)})}function my(e){return e===`arrayRows`||e===`objectRows`}var hy=typeof Uint32Array>`u`?Array:Uint32Array,gy=typeof Uint16Array>`u`?Array:Uint16Array,_y=typeof Int32Array>`u`?Array:Int32Array,vy=typeof Float64Array>`u`?Array:Float64Array,yy={float:vy,int:_y,ordinal:Array,number:Array,time:vy},by;function xy(e){return e>65535?hy:gy}function Sy(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Cy(e,t,n,r,i){var a=yy[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 wy=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=by[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var a=Ev(r);this._dimensions=R(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 yy[t||`float`](this._rawCount),this._rawExtent[i]=Ys(),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]=Ys());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];Cy(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=by.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]=Ys()),Cy(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=xy(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(xy(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=z(e),i=r.length;if(!i)return this;var a=t.count(),o=new(xy(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]]=Ys();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(xy(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(xy(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]=Ys(),d=new(xy(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=Ys();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=ny(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||ry(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&&ge(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Sy(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 $v(e[r],this._dimensions[r])}by={arrayRows:e,objectRows:function(e,t,n,r){return $v(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return $v(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Ty=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(Ey(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=Te(o)?$u:Yu,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?[vv(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=[vv(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"),Dy(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),Dy(n)),o.push(t),s.push(e._getVersionSign())}),n?a=fy(n,o,{datasetIndex:t.componentIndex}):r!=null&&(a=[bv(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(Ey(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];Ey(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new wy,o.initData(new Nv(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ey(e)){var t=u_(e);return t?[t.getSourceManager()]:[]}return R(d_(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Ey(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 Ey(e){return e.mainType===`series`}function Dy(e){throw Error(e)}var Oy=`line-height:1`;function ky(e){var t=e.lineHeight;return t==null?Oy:`line-height:`+kt(t+``)+`px`}function Ay(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:`+kt(r+``)+`px;color:`+kt(n)+`;font-weight:`+kt(i+``),valueStyle:`font-size:`+kt(o+``)+`px;color:`+kt(a)+`;font-weight:`+kt(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var jy=[0,10,20,30],My=[``,`
16
16
  `,`
17
17
 
18
18
  `,`
19
19
 
20
20
 
21
- `];function _y(e,t){return t.type=e,t}function vy(e){return e.type===`section`}function yy(e){return vy(e)?xy:Sy}function by(e){if(vy(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return R(e.blocks,function(e){var n=by(e);n>=t&&(t=n+ +(r&&(!n||vy(e)&&!e.noHeader)))}),t}return 0}function xy(e,t,n,r){var i=t.noHeader,a=wy(by(t)),o=[],s=t.blocks||[];K(!s||V(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(ze(l,c)){var u=new zv(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}R(s,function(n,i){var s=t.valueFormatter,c=yy(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):Ty(r,o.join(``),i?n:a.html);if(i)return d;var f=og(t.header,`ordinal`,e.useUTC),p=my(r,e.renderMode).nameStyle,m=py(r);return e.renderMode===`richText`?Oy(e,f,p)+a.richText+d:Ty(r,`<div style="`+p+`;`+m+`;">`+xt(f)+`</div>`+d,n)}function Sy(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=V(e)?e:[e],z(e,function(e,t){return og(e,V(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:og(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=my(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Oy(e,f,v))+(o?``:ky(e,m,h,g,y)):Ty(r,(s?``:d)+(a?``:Ey(f,!s,v))+(o?``:Dy(m,h,g,y)),n)}}function Cy(e,t,n,r,i,a){if(e)return yy(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function wy(e){return{html:hy[e],richText:gy[e]}}function Ty(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=py(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Ey(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+xt(e)+`</span>`}function Dy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=V(e)?e:[e],`<span style="`+i+`;`+r+`">`+z(e,function(e){return xt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function Oy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function ky(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(V(t)?t.join(` `):t,a)}function Ay(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return dg(n)}function jy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var My=function(){function e(){this.richTextStyles={},this._nextStyleNameId=zo()}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=ug({color:t,type:e,renderMode:n,markerId:r});return U(i)?i:(process.env.NODE_ENV!==`production`&&K(r),this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};V(t)?R(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Ny(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=V(s),l=Ay(t,n),u,d,f,p;if(o>1||c&&!o){var m=Py(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=Av(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=ys(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return _y(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[_y(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Oe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Py(e,t,n,r,i){var a=t.getData(),o=le(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?R(r,function(e){u(Av(a,n,e),e)}):R(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(_y(`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 Fy=Ts();function Iy(e,t){return e.getName(t)||e.getId(t)}var Ly=function(e){f(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=Pv({count:By,reset:Vy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Fy(this).sourceManager=new ly(this)).prepareSource();var r=this.getInitialData(e,n);Uy(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&K(r,`getInitialData returned invalid data.`),Fy(this).dataBeforeProcessed=r,Ry(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Ag(this),r=n?Mg(e):{},i=this.subType;Z.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),rs(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&jg(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Ag(this);n&&jg(this.option,e,n);var r=Fy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);Uy(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Fy(this).dataBeforeProcessed=i,Ry(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ve(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&rs(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=Gy(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Fy(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=Gy(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Fy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Fy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Fy(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 Ny({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(m.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=n_.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=Iy(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[Iy(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`){W(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=Iy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=Iy(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 Z.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}(Z);ce(Ly,Mv),ce(Ly,n_),sc(Ly,Z);function Ry(e){var t=e.name;ys(e)||(e.name=zy(e)||t)}function zy(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return R(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function By(e){return e.model.getRawData().count()}function Vy(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Hy}function Hy(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Uy(e,t){R(Ie(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,me(Wy,t))})}function Wy(e,t){var n=Gy(e);return n&&n.setOutputEnd((t||this).count()),t}function Gy(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 Ja,this.uid=eh(`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}();ac(Ky),fc(Ky);function qy(){var e=Ts();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=Ts(),Yy=qy(),Xy=function(){function e(){this.group=new Ja,this.uid=eh(`viewChart`),this.renderTask=Pv({plan:$y,reset:eb}),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`&&Yo(`Unknown dataType `+r.dataType);return}Qy(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`&&Yo(`Unknown dataType `+r.dataType);return}Qy(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){fm(this.group,e)},e.markUpdateMethod=function(e,t){Jy(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Zy(e,t,n){e&&Jd(e)&&(t===`emphasis`?Cd:wd)(e,n)}function Qy(e,t,n){var r=ws(e,t),i=t&&t.highlightKey!=null?Yd(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Zy(e,n,i)}):R(ns(r),function(t){Zy(e.getItemGraphicEl(t),n,i)})}ac(Xy,[`dispose`]),fc(Xy);function $y(e){return Yy(e.model)}function eb(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),tb[c]}var tb={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)}}},nb=`\0__throttleOriginMethod`,rb=`\0__throttleRate`,ib=`\0__throttleType`;function ab(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 ob(e,t,n,r){var i=e[t];if(i){var a=i[nb]||i,o=i[ib];if(i[rb]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=ab(a,n,r===`debounce`),i[nb]=a,i[ib]=r,i[rb]=n}return i}}function sb(e,t){var n=e[t];n&&n[nb]&&(n.clear&&n.clear(),e[t]=n[nb])}var cb=Ts(),lb={itemStyle:pc(Ym,!0),lineStyle:pc(Km,!0)},ub={lineStyle:`stroke`,itemStyle:`fill`};function db(e,t){return e.visualStyleMapper||lb[t]||(console.warn(`Unknown style type '`+t+`'.`),lb.itemStyle)}function fb(e,t){return e.visualDrawType||ub[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var pb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=db(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=fb(e,r),c=a[s],l=H(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`||H(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||H(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)}}}},mb=new Qm,hb={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=db(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){mb.option=n[r];var o=i(mb);P(e.ensureUniqueItemVisual(t,`style`),o),mb.option.decal&&(e.setItemVisual(t,`decal`,mb.option.decal),mb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},gb={performRawSeries:!0,overallReset:function(e){var t=q();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();cb(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=cb(e).scope,a=fb(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)}})}})}},_b=Math.PI;function vb(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 Ja,r=new hu({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new bu({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 hu({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 ap({shape:{startAngle:-_b/2,endAngle:-_b/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:_b*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:_b*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 yb=function(){function e(e,t,n,r){this._stageTaskMap=q(),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):Zs(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=q();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;R(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.`),K(!(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;R(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=q(),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)||Pv({plan:wb,reset:Tb,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||Pv({reset:bb});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=q(),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.`),K(!e.createOnAllSeries,f),c?n.eachRawSeriesByType(c,p):l?l(n,r).each(p):R(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Pv({reset:xb,onDirty:Cb})));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 H(e)&&(e={overallReset:e,seriesType:kb(e)}),e.uid=eh(`stageHandler`),t&&(e.visualType=t),e},e}();function bb(e){e.overallReset(e.ecModel,e.api,e.payload)}function xb(e){return e.dirtyOnOverallProgress&&Sb}function Sb(){this.agent.dirty(),this.getDownstream().dirty()}function Cb(){this.agent&&this.agent.dirty()}function wb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Tb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ns(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?z(t,function(e,t){return Db(t)}):Eb}var Eb=Db(0);function Db(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 kb(e){Mb=null;try{e(Ab,jb)}catch{}return Mb}var Ab={},jb={},Mb;Nb(Ab,h_),Nb(jb,Gu),Ab.eachSeriesByType=Ab.eachRawSeriesByType=function(e){Mb=e},Ab.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Mb=e.subType)};function Nb(e,t){for(var n in t.prototype)e[n]=Be}var $=Q.darkColor,Pb=$.background,Fb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Ib={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Lb={darkMode:!0,color:$.theme,backgroundColor:Pb,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:Pb,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:Ib,y:Ib,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Fb(),logAxis:Fb(),valueAxis:Fb(),categoryAxis:Fb(),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=Fb();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}}}};Lb.categoryAxis.splitLine.show=!1;var Rb=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(U(e)){var i=nc(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};R(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}(),zb=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],Bb=zb.concat([`symbolKeepAspect`]),Vb={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<zb.length;o++){var s=zb[o],c=e.get(s);H(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}}},Hb={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<Bb.length;r++){var i=Bb[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function Ub(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 Wb(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 Gb(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&Xo(`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=ws(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:V(l)?c.getName(l[0]):c.getName(l),selected:U(r)?r:P({},r)})}}))}function Kb(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Gb(`map`,`selectchanged`,t,r,e),Gb(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Gb(`map`,`selected`,t,r,e),Gb(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Gb(`map`,`unselected`,t,r,e),Gb(`pie`,`unselected`,t,r,e))})}function qb(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var Jb=new st,Yb={};function Xb(e,t){process.env.NODE_ENV!==`production`&&Yb[e]&&Yo(`Already has an implementation of `+e+`.`),Yb[e]=t}function Zb(e){return process.env.NODE_ENV!==`production`&&(Yb[e]||Yo(`Implementation of `+e+` doesn't exists.`)),Yb[e]}var Qb={};function $b(e,t){Qb[e]=t}var ex=Ts();function tx(e){ex(e).prepare={}}function nx(e){ex(e).fullUpdate={}}function rx(e){return ex(e).prepare}function ix(e){return ex(e).fullUpdate}var ax=Math.round(Math.random()*9),ox=typeof Object.defineProperty==`function`,sx=function(){function e(){this._id=`__ec_inner_`+ax++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return ox?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}(),cx=tu.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()}}),lx={line:$f,rect:hu,roundRect:hu,square:hu,circle:Cf,diamond:tu.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:tu.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:tu.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:cx},ux={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}},dx={};R(lx,function(e,t){dx[t]=new e});var fx=tu.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Aa(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=dx[r];i||=(r=`rect`,dx[r]),ux[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function px(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 mx(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?Vp(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Bp(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new fx({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=px,a&&c.setColor(a),c}function hx(e,t){if(e!=null)return V(e)||(e=[e,e]),[bo(e[0],t[0])||0,bo(G(e[1],e[0]),t[1])||0]}function gx(e){return isFinite(e)}function _x(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=gx(r)?r:0,i=gx(i)?i:1,a=gx(a)?a:0,o=gx(o)?o:0,e.createLinearGradient(r,a,i,o)}function vx(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=gx(o)?o:.5,s=gx(s)?s:.5,c=c>=0&&gx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function yx(e,t,n){for(var r=t.type===`radial`?vx(e,t,n):_x(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function bx(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 xx(e){return parseInt(e,10)}function Sx(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]||xx(s[r])||xx(e.style[r]))-(xx(s[a])||0)-(xx(s[o])||0)||0}function Cx(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:ge(e)?[e]:V(e)?e:null}function Tx(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Cx(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=z(n,function(e){return e/i}),r/=i)}return[n,r]}var Ex=new Al(!0);function Dx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Ox(e){return typeof e==`string`&&e!==`none`}function kx(e){var t=e.fill;return t!=null&&t!==`none`}function Ax(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 jx(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=vc(t.image,t.__image,n);if(bc(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)*Ve),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Nx(e,t,n,r,i){var a,o=Dx(n),s=kx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Ex,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?yx(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?yx(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=Tx(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&&jx(e,n),s&&Ax(e,n)):(s&&Ax(e,n),o&&jx(e,n)),T&&e.setLineDash([])}function Px(e,t,n){var r=t.__image=vc(n.image,t.__image,t,t.onload);if(!(!r||!bc(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=Tx(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Dx(n)&&e.strokeText(i,n.x,n.y),kx(n)&&e.fillText(i,n.x,n.y)):(kx(n)&&e.fillText(i,n.x,n.y),Dx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Ix=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Lx=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Rx(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Yx(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Wc.opacity:o}(r||t.blend!==n.blend)&&(a||=(Yx(e,i),!0),e.globalCompositeOperation=t.blend||Wc.blend);for(var s=0;s<Ix.length;s++){var c=Ix[s];(r||t[c]!==n[c])&&(a||=(Yx(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Yx(e,i),!0),e.shadowColor=t.shadowColor||Wc.shadowColor),a}function zx(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=Rx(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Yx(e,i),!0),Ox(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Yx(e,i),!0),Ox(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Yx(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||=(Yx(e,i),!0),e.lineWidth=c)}for(var l=0;l<Lx.length;l++){var u=Lx[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Yx(e,i),!0),e[d]=a[d]||u[1])}return s}function Bx(e,t,n,r,i){return Rx(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 Hx(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 Ux(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 Wx=1,Gx=2,Kx=3,qx=4;function Jx(e){var t=kx(e),n=Dx(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 Yx(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function Xx(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Zx(e,t,n),Qx(e,n)}function Zx(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||bx(i,a))&&(a&&(Yx(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(Yx(e,n),e.save(),Hx(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 tu&&t.autoBatch&&Jx(o);s||Ux(r,l.transform)?(Yx(e,n),Vx(e,t)):u||Yx(e,n),t instanceof tu?(n.lastDrawType!==Wx&&(c=!0,n.lastDrawType=Wx),zx(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Nx(e,t,o,u,n)):t instanceof ru?(n.lastDrawType!==Kx&&(c=!0,n.lastDrawType=Kx),zx(e,t,l,c,n),Fx(e,t,o)):t instanceof su?(n.lastDrawType!==Gx&&(c=!0,n.lastDrawType=Gx),Bx(e,t,l,c,n),Px(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==qx&&(c=!0,n.lastDrawType=qx),$x(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&Yx(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Qx(e,t){Yx(e,t),t.prevElClipPaths&&e.restore()}function $x(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(),Zx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Qx(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),Zx(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}Qx(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var eS=new sx,tS=new br(100),nS=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function rS(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&eS.delete(e);var a=eS.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,eS.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<nS.length;++s){var c=o[nS[s]];if(c!=null&&!V(c)&&!U(c)&&!ge(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=tS.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=aS(o.dashArrayX),f=oS(o.dashArrayY),p=iS(o.symbol),m=sS(d),h=cS(f),g=!i&&S.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&tS.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Vo(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Vo(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 x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.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<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=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=mx(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else Xx(y,u)}}}}function iS(e){if(!e||e.length===0)return[[`rect`]];if(U(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!U(e[n])){t=!1;break}if(t)return iS([e]);for(var r=[],n=0;n<e.length;++n)U(e[n])?r.push([e[n]]):r.push(e[n]);return r}function aS(e){if(!e||e.length===0)return[[0,0]];if(ge(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!ge(e[r])){n=!1;break}if(n)return aS([e]);for(var i=[],r=0;r<e.length;++r)if(ge(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=z(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function oS(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(ge(e)){var t=Math.ceil(e);return[t,t]}var n=z(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function sS(e){return z(e,function(e){return cS(e)})}function cS(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var lS=Qs(uS);function uS(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=rS(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=rS(i,t)}}})}var dS=1,fS=800,pS=900,mS=920,hS=1e3,gS=2e3,_S=5e3,vS=1e3,yS=1100,bS=2e3,xS=3e3,SS=4e3,CS=4500,wS=4600,TS=5e3,ES=6e3,DS=7e3,OS={PROCESSOR:{SERIES_FILTER:fS,AXIS_STATISTICS:mS,FILTER:hS,STATISTIC:_S,STATISTICS:_S},VISUAL:{LAYOUT:vS,PROGRESSIVE_LAYOUT:yS,GLOBAL:bS,CHART:xS,POST_CHART_LAYOUT:wS,COMPONENT:SS,BRUSH:TS,CHART_ITEM:CS,ARIA:ES,DECAL:DS}},kS=`__flagInMainProcess`,AS=`__mainProcessVersion`,jS=`__pendingUpdate`,MS=`__needsUpdateStatus`,NS=/^[a-zA-Z0-9_]+$/,PS=`__connectUpdateStatus`,FS=0,IS=1,LS=2;function RS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){dC(this.id);return}return BS(this,e,t)}}function zS(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return BS(this,e,t)}}function BS(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),st.prototype[t].apply(e,n)}var VS=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(st),HS=VS.prototype;HS.on=zS(`on`),HS.off=zS(`off`);var US,WS,GS,KS,qS,JS,YS,XS,ZS,QS,$S,eC,tC,nC,rC,iC,aC,oC,sC,cC=function(e){f(t,e);function t(t,n,r){var i=e.call(this,new Rb)||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[AS]=1,process.env.NODE_ENV!==`production`){var c=m.hasGlobalWindow?window:global;c&&(a=G(c.__ECHARTS__DEFAULT__RENDERER__,a),o=G(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=G(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&io(function(e){var t=Pu(e),n=t.dataIndex;if(n!=null){var r=q();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var l=i._zr=eo(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,s),useCoarsePointer:G(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=ab(pe(l.flush,l),17),i._updateTheme(n),i._locale=ph(r.locale||dh),i._coordSysMgr=new mg;var u=i._api=rC(i);function d(e,t){return e.__prio-t.__prio}return Ln(_C,d),Ln(hC,d),i._scheduler=new yb(i,u,hC,_C),i._messageCenter=new VS,i._initEvents(),i.resize=pe(i.resize,i),l.animation.on(`frame`,i._onframe,i),QS(l,i),$S(l,i),Ae(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(oC(this),this[jS]){var r=this[jS].silent;this[kS]=!0,sC(this);try{US(this),KS.update.call(this,null,this[jS].updateParams)}catch(e){throw this[kS]=!1,this[jS]=null,e}this._zr.flush(),this[kS]=!1,this[jS]=null,XS.call(this,r),ZS.call(this,r)}else if(e.unfinished){var i=dS;do{e.unfinished=!1;var a=S.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),JS(this,t),e.performVisualTasks(t),nC(this,this._model,n,`remain`,{}),i-=S.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[kS]){process.env.NODE_ENV!==`production`&&Yo("`setOption` should not be called during main process.");return}if(this._disposed){dC(this.id);return}var r,i,a;if(W(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[kS]=!0,sC(this),!this._model||t){var o=new S_(this._api),s=this._theme,c=this._model=new h_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},gC);var l={seriesTransition:a,optionChanged:!0};if(n)this[jS]={silent:r,updateParams:l},this[kS]=!1,this.getZr().wakeUp();else{try{US(this),KS.update.call(this,null,l)}catch(e){throw this[jS]=null,this[kS]=!1,e}this._ssr||this._zr.flush(),this[jS]=null,this[kS]=!1,XS.call(this,r),ZS.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[kS]){process.env.NODE_ENV!==`production`&&Yo("`setTheme` should not be called during main process.");return}if(this._disposed){dC(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[jS]&&(r??=this[jS].silent,i=this[jS].updateParams,this[jS]=null),this[kS]=!0,sC(this);try{this._updateTheme(e),n.setTheme(this._theme),US(this),KS.update.call(this,{type:`setTheme`},i)}catch(e){throw this[kS]=!1,e}this[kS]=!1,XS.call(this,r),ZS.call(this,r)}},t.prototype._updateTheme=function(e){U(e)&&(e=vC[e]),e&&(e=M(e),e&&X_(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||m.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&Zo(`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 R(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){dC(this.id);return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;R(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 R(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){dC(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(xC[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();R(bC,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=S.createCanvas(),h=eo(m,{renderer:t?`svg`:`canvas`});if(h.resize({width:f,height:p}),t){var g=``;return R(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 hu({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),R(u,function(e){var t=new su({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 qS(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return qS(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return qS(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){dC(this.id);return}var n=this._model,r;return R(Ds(n,e),function(e,n){n.indexOf(`Models`)>=0&&R(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`&&Jo(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&Jo(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Ds(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||Jo(`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?Wb(a,t):Ub(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;R(uC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&qb(i,function(e){var t=Pu(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)&&Jo(`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;R(mC,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){dC(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){dC(this.id);return}this._disposed=!0,this.getDom()&&Ns(this.getDom(),CC,``);var e=this,t=e._api,n=e._model;R(e._componentsViews,function(e){e.dispose(n,t)}),R(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 bC[e.id]},t.prototype.resize=function(e){if(this[kS]){process.env.NODE_ENV!==`production`&&Yo("`resize` should not be called during main process.");return}if(this._disposed){dC(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[jS]&&(r??=this[jS].silent,n=!0,this[jS]=null),this[kS]=!0,sC(this);try{n&&US(this),KS.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[kS]=!1,e}this[kS]=!1,XS.call(this,r),ZS.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){dC(this.id);return}if(W(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!yC[e]){process.env.NODE_ENV!==`production`&&Jo(`Loading effects `+e+` not exists.`);return}var n=yC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){dC(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=pC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){dC(this.id);return}if(W(t)||(t={silent:!!t}),fC[e.type]&&this._model){if(this[kS]){this._pendingActions.push(e);return}var n=t.silent;YS.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&m.browser.weChat&&this._throttledZrFlush(),XS.call(this,n),ZS.call(this,n)}},t.prototype.updateLabelLayout=function(){Jb.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){dC(this.id);return}var t=e.seriesIndex,n=this.getModel().getSeriesByIndex(t);process.env.NODE_ENV!==`production`&&K(e.data&&n),n.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){US=function(e){tx(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),WS(e,!0),WS(e,!1),t.plan()},WS=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=nc(e.type),f=t?Ky.getClass(d.main,d.sub):Xy.getClass(d.sub);process.env.NODE_ENV!==`production`&&K(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)}},GS=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){R([].concat(e._componentsViews,e._chartsViews),l);return}var o=Ms(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=q(),R(ns(s),function(e){var t=gs(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(Zd(n)){if(t instanceof Ly)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Nd(t,n,e._api);else{var r=Pd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Md(t.mainType,t.componentIndex,e._api),a&&R(a,function(e){n.type===`highlight`?Cd(e):wd(e)})}}else Xd(n)&&t instanceof Ly&&(Ld(t,n,e._api),Rd(t),aC(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){US(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){nx(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),eC(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=q();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}),nC(t,n,r,e,{},a),Jb.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Xy.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),eC(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()}),Xy.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){dC(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Ds(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`&&Jo(`No coordinate system that supports `+t+` found by the given finder.`)}qS=e,JS=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},YS=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=fC[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&nc(s[0]);this[kS]=!0,sC(this);var u=[e],d=!1;e.batch&&(d=!0,u=z(e.batch,function(t){return t=F(P({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Xd(e),_=Zd(e);if(_&&Ad(this._api),R(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=Os(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;GS(n,c,t,u),aC(n)}else g?(GS(n,c,t,`series`),aC(n)):l&&GS(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[jS]?(US(this),KS.update.call(this,e),this[jS]=null):KS[c].call(this,e)}catch(e){throw this[kS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[kS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;K(W(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)}},XS=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();YS.call(this,n,e)}},ZS=function(e){!e&&this.trigger(`updated`)},QS=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[jS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},$S=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=qb(n,Jd);r&&(Fd(r,e,t._api),aC(t))}).on(`mouseout`,function(e){var n=e.target,r=qb(n,Jd);r&&(Id(r,e,t._api),aC(t))}).on(`click`,function(e){var n=e.target,r=qb(n,function(e){return Pu(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Pu(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;Ln(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),R(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)})}}eC=function(e,t,r,i,a){n(t),tC(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive=!1}),nC(e,t,r,i,a),R(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},tC=function(e,t,n,r,i,a){R(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},nC=function(e,t,n,r,l,u){var d=e._scheduler;l=P(l||{},{updatedSeries:t.getSeries()}),Jb.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Rd(t)}),d.unfinished=f||d.unfinished,Jb.trigger(`series:layoutlabels`,t,n,l),Jb.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),Jb.trigger(`series:afterupdate`,t,n,l)},aC=function(e){e[MS]=!0,e.getZr().wakeUp()},sC=function(e){e[AS]=(e[AS]+1)%1e6},oC=function(e){e[MS]&&(e.getZr().storage.traverse(function(e){Ep(e)||r(e)}),e[MS]=!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>G(t.get(`hoverLayerThreshold`),Ug.hoverLayerThreshold)&&!m.node&&!m.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=_m(e);t.eachRendered(function(e){return ym(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Ep(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 c(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(Ep(e))return;if(e instanceof tu&&Qd(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)}})}rC=function(e){return new(function(t){f(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),aC(e)},n.prototype.leaveEmphasis=function(t,n){wd(t,n),aC(e)},n.prototype.enterBlur=function(t){Td(t),aC(e)},n.prototype.leaveBlur=function(t){Ed(t),aC(e)},n.prototype.enterSelect=function(t){Dd(t),aC(e)},n.prototype.leaveSelect=function(t){Od(t),aC(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[AS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(Gu))(e)},iC=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[PS]=t}}R(pC,function(n,r){e._messageCenter.on(r,function(n){if(xC[e.group]&&e[PS]!==FS){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];R(bC,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,FS),R(i,function(e){e[PS]!==IS&&e.dispatchAction(r)}),t(i,LS)}})})}}(),t}(st),lC=cC.prototype;lC.on=RS(`on`),lC.off=RS(`off`),lC.one=function(e,t,n){var r=this;Xo(`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 uC=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function dC(e){process.env.NODE_ENV!==`production`&&Jo(`Instance `+e+` has been disposed`)}var fC={},pC={},mC={},hC=[],gC=[],_C=[],vC={},yC={},bC={},xC={},SC=new Date-0;new Date-0;var CC=`_echarts_instance_`;function wC(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=TC(e);if(i)return process.env.NODE_ENV!==`production`&&Jo(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&ye(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&Jo(`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 cC(e,t,n);return a.id=`ec_`+SC++,bC[a.id]=a,r&&Ns(e,CC,a.id),iC(a),Jb.trigger(`afterinit`,a),a}function TC(e){return bC[Ps(e,CC)]}function EC(e,t){vC[e]=t}function DC(e){I(gC,e)<0&&gC.push(e)}function OC(e,t){LC(hC,e,t,gS)}function kC(e){jC(`afterinit`,e)}function AC(e){jC(`afterupdate`,e)}function jC(e,t){Jb.on(e,t)}function MC(e,t,n){var r,i,a,o,s;H(t)&&(n=t,t=``),W(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;fC[r]||(K(NS.test(r)&&NS.test(i)),a&&K(i!==r),fC[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},mC[i]=1,a&&s&&(mC[l]=1),process.env.NODE_ENV!==`production`&&pC[l]&&Yo(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),pC[l]=r)}function NC(e,t){mg.register(e,t)}function PC(e,t){LC(_C,e,t,vS,`layout`,!0)}function FC(e,t){LC(_C,e,t,xS,`visual`,!0)}var IC=[];function LC(e,t,n,r,i,a){if((H(t)||W(t))&&(n=t,t=r),process.env.NODE_ENV!==`production`){if(isNaN(t)||t==null)throw Error(`Illegal priority`);R(e,function(e){K(e.__raw!==n)})}if(!(I(IC,n)>=0)){IC.push(n);var o=yb.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o),process.env.NODE_ENV!==`production`&&a&&K(!o.dirtyOnOverallProgress,`dirtyOnOverallProgress is not allowed in `+i+` stage; otherwise progressive rendering is disabled on all series.`)}}function RC(e,t){yC[e]=t}function zC(e,t,n){var r=Zb(`registerMap`);r&&r(e,t,n)}var BC=Yv;FC(bS,pb),FC(CS,hb),FC(CS,gb),FC(bS,Vb),FC(CS,Hb),FC(DS,lS),DC(X_),OC(pS,Z_),RC(`default`,vb),MC({type:$u,event:$u,update:$u},Be),MC({type:ed,event:ed,update:ed},Be),MC({type:td,event:id,update:td,action:Be,refineEvent:VC,publishNonRefinedEvent:!0}),MC({type:nd,event:id,update:nd,action:Be,refineEvent:VC,publishNonRefinedEvent:!0}),MC({type:rd,event:id,update:rd,action:Be,refineEvent:VC,publishNonRefinedEvent:!0});function VC(e,t,n,r){return{eventContent:{selected:zd(n),isFromClick:t.isFromClick||!1}}}EC(`default`,{}),EC(`dark`,Lb);function HC(e){return e==null?0:e.length||1}function UC(e){return e}var WC=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||UC,this._newKeyGetter=r||UC,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=HC(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=HC(c),d=HC(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=HC(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=HC(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),GC=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=q(),a=[],o=[],s={};R(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&K(Iu.get(c)==null);var l=n.coordDimIndex;qC(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),YC(n.type)&&(a[0]=t),qC(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Iu.each(function(e,t){var i=qC(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=z(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 GC(s,t),n}function qC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function JC(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function YC(e){return e!==`ordinal`&&e!==`time`}var XC=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),ZC=Ts(),QC={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},$C=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||=nw(this.source))},e.prototype.getSourceDimensionIndex=function(e){return G(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=uv(this.source),n=!rw(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+=QC[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 ew(e){return e instanceof $C}function tw(e){for(var t=q(),n=0;n<(e||[]).length;n++){var r=e[n],i=W(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function nw(e){var t=ZC(e);return t.dimNameMap||=tw(e.dimensionsDefine)}function rw(e){return e>30}var iw=W,aw=z,ow=typeof Int32Array>`u`?Array:Int32Array,sw=`e\0\0`,cw=-1,lw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],uw=[`_approximateExtent`],dw,fw,pw,mw,hw,gw,_w,vw=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;ew(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=U(u)?new XC({name:u}):u instanceof XC?u:new XC(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`&&K(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=q();R(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(ge(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 cy&&(i=e),!i){var a=this.dimensions,o=tv(e)||L(e)?new _v(e,a.length):e;i=new cy;var s=aw(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&&_w(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&&os(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=gs(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=gs(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)_w(this,o);dw(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){iw(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=pw(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 fw(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 V(e)?r.getValues(aw(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)?cw:r},e.prototype.each=function(e,t,n){"use strict";H(e)&&(n=t,t=e,e=[]);var r=n||this,i=aw(mw(e),this._getStoreDimIndex,this);this._store.each(i,r?pe(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";H(e)&&(n=t,t=e,e=[]);var r=n||this,i=aw(mw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?pe(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=B(e),i=[];return R(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";H(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=aw(mw(e),this._getStoreDimIndex,this),o=gw(this);return o._store=this._store.map(a,i?pe(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=this,a=n||r||this;process.env.NODE_ENV!==`production`&&R(mw(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=aw(mw(e),this._getStoreDimIndex,this);this._store.modify(o,a?pe(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=gw(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=gw(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=gw(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 Qm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new WC(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return fw(e,t)},function(e){return fw(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||{},iw(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),V(i)?i=i.slice():iw(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,iw(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){iw(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){Fu(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){R(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:aw(this.dimensions,this._getDimInfo,this),this.hostModel),hw(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];H(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(Ee(arguments)))})},e.internalField=function(){dw=function(e){var t=e._invertedIndicesMap;R(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new ow(a.categories.length);for(var s=0;s<n.length;s++)n[s]=cw;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},pw=function(e,t,n){return gs(e._getCategory(t,n),null)},fw=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=pw(e,e._idDimIdx,t)),n??=sw+t,n},mw=function(e){return V(e)||(e=e==null?[]:[e]),e},gw=function(t){var n=new e(t._schema?t._schema:aw(t.dimensions,t._getDimInfo,t),t.hostModel);return hw(n,t),n},hw=function(e,t){R(lw.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,R(uw,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},_w=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=pw(e,i,t)),s==null&&a!=null&&(r[t]=s=pw(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 yw(e,t){tv(e)||(e=rv(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=q(),a=[],o=bw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&rw(o),c=r===e.dimensionsDefine,l=c?nw(e):tw(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=q(u),f=new ty(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=W(n)?n:{name:n},o=new XC,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=ns(e).slice();if(n.length===1&&!U(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);R(n,function(e,n){var i=U(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;R(n,function(e){var t,n,r,i;if(U(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=ns(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++)}R(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];!W(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){Iu.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)R(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=xw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(Xg(e,S)===Wg.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return qs(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new $C({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function bw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return R(t,function(e){var t;W(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function xw(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 Sw=function(){function e(e){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=e}return e}();function Cw(e){var t=e.get(`coordinateSystem`),n=new Sw(t),r=ww[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var ww={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,ks).models[0],a=e.getReferringComponents(`yAxis`,ks).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+we(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+we(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Tw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Tw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,ks).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),Tw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,ks).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),Tw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Tw(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();R(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Tw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,ks).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 Tw(e){return e.get(`type`)===`category`}function Ew(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Dw(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(R(a,function(e,t){U(e)&&(a[t]=e={name:e}),m(e)||(p=!1)}),R(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;R(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 Dw(e){return!ew(e.schema)}function Ow(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function kw(e,t){return Ow(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Aw(e,t){var n=e.get(`coordinateSystem`),r=mg.get(n),i;return t&&t.coordSysDims&&(i=z(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 jw(e,t,n){var r,i;return n&&R(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 Mw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=rv(e)):(i=r.getSource(),a=i.sourceFormat===Lu);var o=Cw(t),s=Aw(t,o),c=n.useEncodeDefaulter,l=H(c)?c:c?me(qg,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=yw(i,u),f=jw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=Ew(t,{schema:d,store:p}),h=new vw(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!V(as(Pw(e.data||[])))}function Pw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Fw=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();fc(Fw);var Iw=0,Lw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Iw,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&z(r,Rw);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(!U(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||=q(this.categories)},e}();function Rw(e){return W(e)&&e.value!=null?e.value:e+``}var zw=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 Bw(e,t,n){var r;e||={};var i=_h();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(R(zw,function(t){a[t]&&(e[t]=pe(a[t],a))}),r=a)}return r??qw(e,n),{brk:r,mapper:e}}function Vw(e,t){R(zw,function(n){e[n]=t[n]})}function Hw(e,t){e.freeze=Be,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function Uw(e){return e.getExtentUnsafe(0,2)}function Ww(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Gw(e){var t=Ww(e,3);return t[1]-t[0]}function Kw(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function qw(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Is(),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=Ww(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`&&K(!this._frozen),Yw(this._extents,0,e,t)},setExtent2:function(e,t,n){process.env.NODE_ENV!==`production`&&K(!this._frozen);var r=this._extents;r[e]||(r[e]=r[0].slice()),Yw(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function Yw(e,t,n,r){Hs(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&Yo(`Invalid setExtent call - start: `+n+`, end: `+r)}function Xw(e){return Zw(e)||$w(e)}function Zw(e){return e.type===`interval`}function Qw(e){return e.type===`time`}function $w(e){return e.type===`log`}function eT(e){return e.type===`ordinal`}function tT(e){var t=Fo(e),n=mo(10,t),r=uo(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,X(r*n,-t)}function nT(e){return To(e)+2}function rT(e,t){return ho(e)/ho(t)}function iT(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 mo(t,e)}function aT(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=lo(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!Vs(r[0])||!Vs(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function oT(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function sT(e,t){return e||=t,uo(Y(e,1))}function cT(e,t,n){var r=Uw(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 lT=function(e){f(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Vw(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Lw({}),V(i)&&(i=new Lw({categories:z(i,function(e){return W(e)?e.value:e})})),r._ordinalMeta=i;var a=Bw(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Hw(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:U(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=uo(e),e},t.prototype.getTicks=function(){var e=[];return cT(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=co(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=Uw(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(uo(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}(Fw);Fw.registerClass(lT);function uT(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=nT(f);u<t-1;){var m=X(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=_h();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var dT=function(e){f(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=Bw(r,vh(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=Uw(this);process.env.NODE_ENV!==`production`&&(K(e.interval!=null),e.intervalCount!=null&&K(e.intervalCount>=-1&&e.intervalPrecision!=null&&!bh(this)),e.niceExtent!=null&&(K(isFinite(e.niceExtent[0])&&isFinite(e.niceExtent[1])),K(t[0]<=e.niceExtent[0]&&e.niceExtent[1]<=t[1]),K(X(e.niceExtent[0]-e.niceExtent[1],To(e.interval))<=e.interval))),this._cfg=e=M(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=nT(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Uw(this),i=t.niceExtent,a=t.intervalPrecision,o=_h(),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`&&K(i!=null);var u=3e3;r[0]<i[0]&&l.push({value:e.expandToNicedExtent?X(i[0]-n,a):r[0]});for(var d=function(e,t){return uo((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=co(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=X(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=X(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`&&Jo(`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?X(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 uT(this,e,yh(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=To(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),rg(X(e.value,n,!0))},t.type=`interval`,t}(Fw);Fw.registerClass(dT);var fT=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},pT=function(e){f(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=Bw(r,vh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return zh(e.value,Ah[Rh(Ih(this._minLevelUnit))]||Ah.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=Uw(this),r=_h(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return _h().addBreaksToTicks(o,i.breaks,n),o;o=CT(this._minLevelUnit,this._approxInterval,s,n,Kw(this),i);var c=jh.length-1,l=0;return R(o,function(e){e.time&&(c=Math.min(c,I(jh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&_h().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&_h().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(I(jh,Vh(e.vmin,s)),I(jh,Vh(e.vmax,s))),n=0,r=0;r<jh.length;r++)if(!hT(jh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:jh[Math.max(i,t)],upperTimeUnit:jh[i]}}),o},t.prototype.getMinorTicks=function(e){return uT(this,e,yh(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 ge(e)?Math.round(e):+No(e)},t.type=`time`,t}(Fw),mT=[[`second`,xh],[`minute`,Sh],[`hour`,Ch],[`quarter-day`,Ch*6],[`half-day`,Ch*12],[`day`,wh*1.2],[`half-week`,wh*3.5],[`week`,wh*7],[`month`,wh*31],[`quarter`,wh*95],[`half-year`,Th/2],[`year`,Th]];function hT(e,t,n,r){return Hh(new Date(t),e,r).getTime()===Hh(new Date(n),e,r).getTime()}function gT(e,t){return e/=wh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function _T(e){var t=30*wh;return e/=t,e>6?6:e>3?3:e>2?2:1}function vT(e){return e/=Ch,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function yT(e,t){return e/=t?Sh:xh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function bT(e){return Y(Io(e,!0),1)}function xT(e,t,n){var r=Math.max(0,I(jh,t)-1);return Hh(new Date(e),jh[r],n).getTime()}function ST(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 CT(e,t,n,r,i,a){var o=Mh,s=0;function c(e,t,n,i,o,c,l){for(var u=ST(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`&&Jo(`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(!hT(Ih(e),r[0],r[1],n)){s&&(i=[{value:xT(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/wh/365)),p=Uh(n),m=Xh(n);break;case`half-year`:case`quarter`:case`month`:f=_T(t),p=Wh(n),m=Zh(n);break;case`week`:case`half-week`:case`day`:f=gT(t,31),p=Gh(n),m=Qh(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=vT(t),p=Kh(n),m=$h(n);break;case`minute`:f=yT(t,!0),p=qh(n),m=eg(n);break;case`second`:f=yT(t,!1),p=Jh(n),m=tg(n);break;case`millisecond`:f=bT(t),p=Yh(n),m=ng(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=Ih(o[m]);if(Lh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Ih(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=ue(z(u,function(e){return ue(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=Vh(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}qs(S,Js,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=Vh(r[0],n),k=Vh(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 wT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=wh,n[1]+=wh),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]-wh}e.setExtent(n[0],n[1]);var i=sT(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=mT.length,l=Math.min(fT(mT,a,0,c),c-1),u=mT[l][1],d=mT[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};Fw.registerClass(pT);var TT=0,ET=1,DT=2,OT=function(e){f(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=dT.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[TT]=i[ET]=a[TT]=a[ET]=NaN,Vw(r,t.mapperMethods);var s=_h(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},DT,l),r.powStub=new dT({breakParsed:l.original}),r.intervalStub=new dT({breakParsed:l.transformed}),Hw(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=_h(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return z(i.getTicks(e||{}),function(e){var i=e.value,o=iT(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,yh(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return uT(this,e,yh(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(rT(e,this.base))},scale:function(e){return iT(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=rT(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return kT.depth=n,AT.lookup=this._lookup,iT(n===2?e:this.intervalStub.transformOut(e,kT),this.base,AT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!Hs(t,n)||t<=0||n<=0)){var r=jT,i=jT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[TT]=t,r[ET]=n);var o=this.base;this.intervalStub.setExtent2(e,i[TT]=rT(t,o),i[ET]=rT(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return Hs(t[0],t[1])&&Ho(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}(Fw);Fw.registerClass(OT);var kT={},AT={},jT=[],MT={value:1,category:1,time:1,log:1},NT=Ts();function PT(e){var t=e.get(`type`);return(t==null||!ze(MT,t)&&!Fw.getClass(t))&&(t=`value`),t}function FT(e,t,n){var r=_h(),i;switch(r&&(i=KT(e,t,n)),t){case`category`:return new lT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Is()});case`time`:return new pT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new OT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new dT({breakOption:i});default:return new((Fw.getClass(t))||dT)({})}}function IT(e,t,n){var r=n?Ww(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return Hs(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function LT(e){NT(e).noOnMyZero=!0}function RT(e){return NT(e).noOnMyZero}function zT(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Nh(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(U(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(H(t)){if(e.type===`category`)return function(n,r){return t(BT(e,n),n.value-e.scale.getExtent()[0],null)};var r=_h();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(BT(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function BT(e,t){var n=e.scale;return eT(n)?n.getLabel(t):t.value}function VT(e){return e.get(`interval`)??`auto`}function HT(e){return e.type===`category`&&VT(e.getLabelModel())===0}function UT(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[kw(e,t)]=!0}),B(n)}function WT(e){return e===`middle`||e===`center`}function GT(e){return e.getShallow(`show`)}function KT(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!_h()){process.env.NODE_ENV!==`production`&&Yo('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!qT(t)){process.env.NODE_ENV!==`production`&&Yo(`Axis`+(e instanceof Z?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function qT(e){return e!==`category`}function JT(e,t,n,r,i,a){var o=$w(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=oT(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function YT(e,t){return eT(e)?e.getRawOrdinalNumber(t.value):t.value}function XT(e,t){return eT(e)&&!!t.get(`boundaryGap`)}var ZT=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),QT=Gs(),$T=Ts(),eE=Ts(),tE;process.env.NODE_ENV!==`production`&&(tE=function(e){K(e&&e.model&&e.model.uid&&e.model.ecModel)});function nE(e,t){var n=e.model,r=$T(ix(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function rE(e,t){return process.env.NODE_ENV!==`production`&&(K(t!=null),tE(e)),oE(nE(e,t))}function iE(e,t){process.env.NODE_ENV!==`production`&&tE(e);var n=[];return aE(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(oE(e))}),n}function aE(e,t){var n=$T(ix(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function oE(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function sE(e,t){process.env.NODE_ENV!==`production`&&tE(e);var n=e.model.ecModel,r=$T(ix(n)).axSer;r&&lE(n,r.get(e.model.uid),t)}function cE(e,t,n){process.env.NODE_ENV!==`production`&&(K(t!=null),tE(e));var r=nE(e,t);r&&lE(e.model.ecModel,r.sers,n)}function lE(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function uE(e,t,n){process.env.NODE_ENV!==`production`&&K(t!=null);var r=$T(ix(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){process.env.NODE_ENV!==`production`&&K(e.sers.length>0),n(e.axis)})}function dE(e,t){process.env.NODE_ENV!==`production`&&tE(e);var n=e.model,r=$T(ix(n.ecModel)).keys;r&&R(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=nE(e,n);K(r&&r.sers.length>0)}t(n)})}function fE(e){var t=eE(rx(e)),n=t.keyed||=q();aE(e,function(t,r,i){var a=n.get(r)||n.set(r,q()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&mE.liPosMinGap(e,t,o)})}function pE(e,t){mE[e]=t}var mE={};function hE(e,t,n){if(e){var r=t.ecModel,i=$T(ix(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){tE(e);var o=i.axSerPairCheck||=q(),s=``+a+`|&`+t.uid;K(!o.get(s)),o.set(s,1)}var c=i.axSer||=q(),l=c.get(a)||c.set(a,[]);if(process.env.NODE_ENV!==`production`){var u=l[l.length-1];u&&K(u.seriesIndex<t.seriesIndex)}l.push(t);var d=t.subType,f=t.getBaseAxis()===e,p=yE.get(gE(d,f,n))||yE.get(gE(d,f,null));if(p){var m=i.keyed||=q(),h=i.keys||=q(),g=p.key,_=m.get(g)||m.set(g,q()),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 gE(e,t,n){return e+`|&`+G(t,!0)+`|&`+(n||``)}function _E(e,t){var n=gE(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(K(t.seriesType&&t.key&&!vE.get(t.key)&&!yE.get(n)),vE.set(t.key,1)),yE.set(n,t),QT(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:fE})})}var vE;process.env.NODE_ENV!==`production`&&(vE=q());var yE=q(),bE=Ts(),xE=3,SE=function(){function e(e,t,n,r,i){var a=eT(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(Zw(e)||$w(e)||Qw(e))&&(Rs(l,wE(e,t.get(`dataMin`,!0))),zs(l,wE(e,t.get(`dataMax`,!0)))),Us(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]=wE(e,H(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]=wE(e,H(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=TE(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,!Vs(u[0])&&(u[0]=NaN),!Vs(u[1])&&(u[1]=NaN);var g=s||Ce(u[0])||Ce(u[1])||a&&!o,_=Zw(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=wE(e,t.get(`startValue`,!0)),x=b!=null;!Ho(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Ho(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)),CE(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),CE(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 CE(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),Ws(t))}function wE(e,t){return t==null?null:Ce(t)?NaN:e.parse(t)}function TE(e,t){var n;if(eT(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=V(r)?r:[r,r]}return[EE(n[0]),EE(n[1])]}function EE(e){return ka(typeof e==`boolean`?0:e,1)||0}function DE(e){var t=bE(e.scale);return t.extent||=Is(),t}function OE(e,t){DE(e).dimIdxInCoord=t.get(e.dim)}function kE(e,t){var n=e.scale,r=e.model,i=e.dim;if(process.env.NODE_ENV!==`production`&&K(n&&r&&i),n.rawExtentInfo){process.env.NODE_ENV!==`production`&&K(n.rawExtentInfo.from!==t||t===2);return}AE(n,e,i,r,t)}function AE(e,t,n,r,i){var a=DE(t),o=a.extent,s=!1;sE(t,function(r){if(r.boxCoordinateSystem){var i=_g(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&Yo(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(V(i)){var l=i[c];l!=null&&!V(l)&&Ls(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;R(UT(u,n),function(e){Bs(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=IE(e,t,r);ME(e,new SE(e,r,o,s,c),i),a.extent=null}function jE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&K(!n.rawExtentInfo),ME(n,new SE(n,e.model,t,!1,!1),xE)}function ME(e,t,n){e.rawExtentInfo=t,t.from=n}function NE(e,t){process.env.NODE_ENV!==`production`&&K(!PE.get(e)),PE.set(e,t)}var PE=q();function FE(e,t,n,r,i){process.env.NODE_ENV!==`production`&&K(!i||!e.rawExtentInfo),e.rawExtentInfo||jE({scale:e,model:t},i||Is());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 IE(e,t,n){var r=XT(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return dE(t,function(e){a=!!PE.get(e)||a}),a}function LE(e,t,n,r){if(n.ctnShp){var i;if(dE(e,function(t){var n=PE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Rs(i,a[0]),zs(i,a[1]),LT(e))}}),i){var a=t.getExtent();if(eT(t))e.onBand||t.setExtent2(1,co(a[0],a[0]+i[0]),Y(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=co(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Y(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 RE(e,t){var n=$w(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=aT(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?BE(r,t):zE(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=nT(d)),i[0]||(s[0]=X(fo(s[0]/u)*u,l)),i[1]||(s[1]=X(po(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),JT(e,i,o,s,a,c)}function zE(e,t){var n=sT(t.splitNumber,5),r=Kw(e);process.env.NODE_ENV!==`production`&&K(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=Io(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=nT(o),c=e.getExtent(),l=[X(po(c[0]/o)*o,s),X(fo(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function BE(e,t){var n=sT(t.splitNumber,10),r=e.getExtent(),i=Kw(e);process.env.NODE_ENV!==`production`&&K(isFinite(i)&&i>0);var a=Y(Po(i),1);n/i*a<=.5&&(a*=10);var o=nT(a),s=[X(po(r[0]/a)*a,o),X(fo(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function VE(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&K(r&&i),HE(t,n,r,i,null)}function HE(e,t,n,r,i){var a=FE(e,t,r,n,i),o=Zw(e)||Qw(e);UE(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&&LE(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function UE(e,t){WE[e.type](e,t)}var WE={interval:RE,log:RE,time:wT,ordinal:Be},GE=[],KE={registerPreprocessor:DC,registerProcessor:OC,registerPostInit:kC,registerPostUpdate:AC,registerUpdateLifecycle:jC,registerAction:MC,registerCoordinateSystem:NC,registerLayout:PC,registerVisual:FC,registerTransform:BC,registerLoading:RC,registerMap:zC,registerImpl:Xb,PRIORITY:OS,ComponentModel:Z,ComponentView:Ky,SeriesModel:Ly,ChartView:Xy,registerComponentModel:function(e){Z.registerClass(e)},registerComponentView:function(e){Ky.registerClass(e)},registerSeriesModel:function(e){Ly.registerClass(e)},registerChartView:function(e){Xy.registerClass(e)},registerCustomSeries:function(e,t){$b(e,t)},registerSubTypeDefaulter:function(e,t){Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){to(e,t)}};function qE(e){if(V(e)){R(e,function(e){qE(e)});return}I(GE,e)>=0||(GE.push(e),H(e)&&(e={install:e}),e.install(KE))}var JE=Ts(),YE=Ts(),XE={estimate:1,determine:2};function ZE(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function QE(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:z(eD(n,r),function(t,n){return{formattedLabel:zT(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?tD(e,t):iD(e)}function $E(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:eD(i,r)}:e.type===`category`?rD(e,t):{ticks:r.getTicks(n)}}function eD(e,t){var n=t.getExtent(),r=[];return R(e,function(e){e=t.parse(e),e>=n[0]&&e<=n[1]&&r.push(e)}),qs(r,Ys,null),wo(r),z(r,function(e){return{value:e}})}function tD(e,t){var n=e.getLabelModel(),r=nD(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function nD(e,t,n){var r=oD(e),i=VT(t),a=n.kind===XE.estimate;if(!a){var o=cD(r,i);if(o)return o}var s,c;H(i)?s=hD(e,i,!1):(c=i===`auto`?uD(e,n):i,s=hD(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return lD(r,i,l),!0}):lD(r,i,l),l}function rD(e,t){var n=aD(e),r=VT(t),i=cD(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),H(r))a=hD(e,r,!0);else if(r===`auto`){var s=nD(e,e.getLabelModel(),ZE(XE.determine));o=s.labelCategoryInterval,a=z(s.labels,function(e){return e.tick})}else o=r,a=hD(e,o,!0);return lD(n,r,{ticks:a,tickCategoryInterval:o})}function iD(e){var t=e.scale.getTicks(),n=zT(e);return{labels:z(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var aD=sD(`axisTick`),oD=sD(`axisLabel`);function sD(e){return function(t){return YE(t)[e]||(YE(t)[e]={list:[]})}}function cD(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function lD(e,t,n){return e.list.push({key:t,value:n}),n}function uD(e,t){if(t.kind===XE.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return YE(e).autoInterval=n,!0}),n}return YE(e).autoInterval??(YE(e).autoInterval=e.calculateCategoryInterval(t))}function dD(e,t){var n=t.kind,r=mD(e),i=zT(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=Ta(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===XE.estimate?(t.out.noPxChangeTryDetermine.push(pe(fD,null,e,S,c)),S):pD(e,S,c)??S}function fD(e,t,n){return pD(e,t,n)==null}function pD(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 mD(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 hD(e,t,n){var r=zT(e),i=e.scale,a=[],o=H(t);return cT(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 gD=.8;function _D(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=Gw(r);Ho(o)||(o=NaN);var s=e.getExtent(),c=lo(s[1]-s[0]);return eT(r)?vD(n,e,o,c):i?yD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&K(!1),a!=null&&(n.w=Ho(n.w)?Y(a,n.w):a),n}function vD(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 yD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&K(i);var a=!1,o=-1/0;R(i.key?[rE(t,i.key)]:iE(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Ho(n)&&n>0&&Ho(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*gD,e.w2=e.w*n/r)}var bD=[0,1],xD=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)),yo(e,bD,SD(this),t)},e.prototype.coordToData=function(e,t){var n=yo(e,SD(this),bD,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=z($E(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(YT(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=CD(this,n,r);return z(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(eT(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),z(this.scale.getMinorTicks(e),function(e){return z(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=ZE(XE.determine),QE(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 _D(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=ZE(XE.determine),dD(this,e)},e}();function SD(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 CD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=_D(e).w;if(!i)return!1;R(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 wD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],TD=1,ED=2,DD=TD|ED;function OD(e,t,n){n||=DD,t?e.dirty|=n:e.dirty&=~n}function kD(e,t){return t||=DD,e.dirty==null||!!(e.dirty&t)}function AD(e){if(e)return kD(e)&&jD(e,e.label,e),e}function jD(e,t,n){var r=t.getComputedTransform();e.transform=gm(e.transform,r);var i=e.localRect=hm(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=Vm.textMargin);for(var d=0;d<4;d++)MD[d]=u===Vm.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Vm.textMargin&&sm(i,MD,!1,!1);var f=e.rect=hm(e.rect,i);return r&&f.applyTransform(r),u===Vm.minMargin&&sm(f,MD,!1,!1),e.axisAligned=pm(r),(e.label=e.label||{}).ignore=t.ignore,OD(e,!1),OD(e,!0,ED),e}var MD=[0,0,0,0];function ND(e,t,n){return e.transform=gm(e.transform,n),e.localRect=hm(e.localRect,t),e.rect=hm(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=pm(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function PD(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 FD(e,t){for(var n=0;n<wD.length;n++){var r=wD[n];e[r]??(e[r]=t[r])}return AD(e)}function ID(e){var t=e.obb;return(!t||kD(e,ED))&&(e.obb=t||=new vp,t.fromBoundingRect(e.localRect,e.transform),OD(e,!1,ED)),t}function LD(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=AD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(RD(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function RD(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:ID(e).intersect(ID(t),n,r)}var zD={left:0,right:0,top:0,bottom:0},BD=[`25%`,`25%`],VD=`cartesian2d`,HD=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Mg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&jg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&jg(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:zD,outerBoundsContain:`all`,outerBoundsClampWidth:BD[0],outerBoundsClampHeight:BD[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(Z),UD=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,ks).models[0]},t.type=`cartesian2dAxis`,t}(Z);ce(UD,ZT);var WD={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`}},GD=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},WD),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}}},WD),qD={category:GD,value:KD,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},KD),log:F({logBase:10},KD)},JD=null;function YD(){return JD}function XD(e,t,n,r){R(MT,function(i,a){var o=N(N({},qD[a],!0),r,!0),s=function(e){f(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=Ag(this),r=n?Mg(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=ZD(e),n&&jg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Lw.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=YD();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,ZD)}function ZD(e){return e.type||(e.data?`category`:`value`)}var QD=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 z(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ue(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}(),$D=[`x`,`y`];function eO(e){return(e.type===`interval`||e.type===`time`)&&!bh(e)}var tO=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=VD,t.dimensions=$D,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!eO(e)||!eO(t))){var n=Ww(e,null),r=Ww(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=Wt([],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 J(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 nt(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 nt(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 J(r,i,Math.max(t[0],t[1])-r+e,Math.max(n[0],n[1])-i+e)},t}(QD),nO=function(e){f(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}(xD),rO=`expandAxisBreak`,iO=Math.PI,aO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],oO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],sO=Ts(),cO=Ts(),lO=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 uO(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=PO(e.axisName)&&WT(e.nameLocation);R(r,function(e){var t=AD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Wt(dO,n.transform):Rt(dO),t.transform&&Bt(dO,dO,t.transform),J.copy(fO,t.localRect),fO.applyTransform(dO),s?s.union(fO):J.copy(s=new J(0,0,0,0),fO))}});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 J(f,0,p,1))}a.stOccupiedRect=s,a.labelInfoList=o}var dO=Lt(),fO=new J(0,0,0,0),pO=function(e,t,n,r,i,a){if(WT(e.nameLocation)){var o=a.stOccupiedRect;o&&mO(ND({},o,a.transGroup.transform),r,i)}else hO(a.labelInfoList,a.dirVec,r,i)};function mO(e,t,n){var r=new Gt;RD(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&PD(t,r)}function hO(e,t,n,r){for(var i=Gt.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||mO(s,n,r)}}var gO=function(){function e(e,t,n,r){this.group=new Ja,this._axisModel=e,this._api=t,this._local={},this._shared=r||new lO(pO),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){if(process.env.NODE_ENV!==`production`){var t=this._shared.ensureRecord(this._axisModel).ready;K(!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=G(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=G(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:G(e.nameDirection,1),tickDirection:G(e.tickDirection,1),labelDirection:G(e.labelDirection,1),labelOffset:G(e.labelOffset,0),silent:G(e.silent,!0),axisName:r,nameLocation:Te(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:PO(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};process.env.NODE_ENV!==`production`&&(K(a.position!=null),K(a.rotation!=null)),this._cfg=a;var o=new Ja({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 Gt(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},R(_O,function(r){e[r]&&vO[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=Ao(t-e),i,a;return jo(r)?(a=n>0?`top`:`bottom`,i=`center`):jo(r-iO)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<iO?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}(),_O=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],vO={axisLine:function(e,t,n,r,i,a,o){if(process.env.NODE_ENV!==`production`){var s=n.ensureRecord(r).ready;K(!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&&(nt(d,d,u),nt(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`])&&bh(r.axis.scale))YD().buildAxisBreakLine(r,i,a,h);else{var g=new $f(P({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));Gp(g.shape,g.style.lineWidth),g.anid=`line`,i.add(g)}var _=r.get([`axisLine`,`symbol`]);if(_!=null){var v=r.get([`axisLine`,`symbolSize`]);U(_)&&(_=[_,_]),(U(v)||ge(v))&&(v=[v,v]);var y=hx(r.get([`axisLine`,`symbolOffset`])||0,v),b=v[0],x=v[1];R([{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=mx(_[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;K(!c.axisTickLabelDetermine),c.axisTickLabelEstimate=!0}DO(t,i,s)&&yO(e,t,n,r,i,a,o,XE.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}DO(t,i,s)&&yO(e,t,n,r,i,a,o,XE.determine);var l=TO(e,i,a,r);SO(e,t.labelLayoutList,l),EO(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;K(l.axisTickLabelEstimate||l.axisTickLabelDetermine),l.axisName=!0}t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var u=e.axisName;if(PO(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 Gt(0,0),v=new Gt(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=Lt();v.transform(Ht(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*iO/180);var x,S;WT(d)?x=gO.innerTextLayout(e.rotation,b??e.rotation,f):(x=bO(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=we(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new bu({x:_.x,y:_.y,rotation:x.rotation,silent:gO.isLabelSilent(r),style:Am(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(um({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=gO.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,Pu(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=AD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:WT(d)?aO[D]:oO[D]});if(c.nameLocation=d,i.add(O),O.decomposeTransform(),e.shouldNameMoveOverlap&&A){var j=n.ensureRecord(r);process.env.NODE_ENV!==`production`&&K(j.labelInfoList),n.resolveAxisNameOverlap(e,n,r,A,v,j)}}}};function yO(e,t,n,r,i,a,o,s){kO(t)||OO(e,t,i,s,r,o);var c=t.labelLayoutList;jO(e,r,c,a),IO(r,e.rotation,c);var l=e.optionHideOverlap;xO(r,c,l),l&&LD(ue(c,function(e){return e&&!e.label.ignore})),uO(e,n,r,c)}function bO(e,t,n,r){var i=Ao(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return jo(i-iO/2)?(o=c?`bottom`:`top`,a=`center`):jo(i-iO*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<iO*1.5&&i>iO/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function xO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(HT(r))return;function a(e,a,o){var s=AD(t[a]),c=AD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=sO(s.label).labelInfo.tick;if(Qw(l)&&u.notNice||eT(l)&&u.offInterval){CO(s.label);return}}if(e===!1||s.suggestIgnore){CO(s.label);return}if(c.suggestIgnore){CO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=FD({marginForce:f},s),c=FD({marginForce:f},c)}RD(s,c,null,{touchThreshold:d})&&CO(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 SO(e,t,n){e.showMinorTicks||R(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=cO(r),a=sO(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){CO(r);return}}})}function CO(e){e&&(e.ignore=!0)}function wO(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&&(nt(o,o,t),nt(s,s,t));var u=new $f({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Gp(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=cO(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function TO(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=wO(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 EO(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=wO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function DO(e,t,n){if(kO(e)){var r=e.axisLabelsCreationContext;process.env.NODE_ENV!==`production`&&K(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),AO(e,null,null,null))}return!0}function OO(e,t,n,r,i,a){var o=i.axis,s=we(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Ja;n.add(c);var l=ZE(r);if(!s||o.scale.isBlank()){AO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(we(e.raw.labelRotate,u.get(`rotate`))||0)*iO/180,p=gO.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;R(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=YT(o.scale,n);if(m&&m[f]){var y=m[f];W(y)&&y.textStyle&&(l=new Qm(y.textStyle,u,i.ecModel))}var b=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),x=l.getShallow(`align`,!0)||p.textAlign,S=G(l.getShallow(`alignMinLabel`,!0),x),C=G(l.getShallow(`alignMaxLabel`,!0),x),w=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,T=G(l.getShallow(`verticalAlignMinLabel`,!0),w),E=G(l.getShallow(`verticalAlignMaxLabel`,!0),w),D=10+(n.time?.level||0);_=Math.min(_,D),v=Math.max(v,D);var O=new bu({x:0,y:0,rotation:0,silent:gO.isLabelSilent(i),z2:D,style:Am(l,{text:r,align:t===0?S:t===d.length-1?C:x,verticalAlign:t===0?T:t===d.length-1?E:w,fill:H(b)?b(o.type===`category`?s:o.type===`value`?f+``:f,t):b})});O.anid=`label_`+f;var k=sO(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,um({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=gO.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),Pu(O).eventData=A,j&&FO(i,a,O,j)}h.push(O),c.add(O)}),AO(t,z(h,function(e){return{label:e,priority:sO(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function kO(e){return!!e.labelLayoutList}function AO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function jO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);R(n,function(n,a){var o=AD(n);if(o){var s=o.label,c=sO(s);o.suggestIgnore=s.ignore,s.ignore=!1,ga(MO,NO);var l=t.axis;MO.x=l.dataToCoord(YT(l.scale,c.labelInfo.tick)),MO.y=e.labelOffset+e.labelDirection*i,MO.rotation=c.layoutRotation,r.add(MO),MO.updateTransform(),r.remove(MO),MO.decomposeTransform(),ga(s,MO),s.markRedraw(),OD(o,!0),AD(o)}})}var MO=new hu,NO=new hu;function PO(e){return!!e}function FO(e,t,n,r){n.on(`click`,function(n){var i={type:rO,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function IO(e,t,n){var r=_h();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&sO(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&R(i,function(r){YD().adjustBreakLabelPair(e.axis.inverse,t,[AD(n[r[0]]),AD(n[r[1]])])})}}function LO(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),we(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 RO(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function zO(e){var t={xAxisModel:null,yAxisModel:null};return R(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,ks).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+Te(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function BO(e,t,n,r,i,a){for(var o=LO(e,n),s=!1,c=!1,l=0;l<t.length;l++)Xw(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 gO(n,r,o,i)}function VO(e,t,n){var r=LO(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();R(B(r),function(e){e!==`position`&&e!==`labelOffset`&&K(r[e]===i[e])})}e.updateCfg(r)}function HO(e){return e.dim+`_`+e.index}function UO(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&K(n&&r&&(n instanceof dT||n instanceof OT)&&(t instanceof dT||t instanceof OT));var i=FE(n,r,r.ecModel,e,null),a=$w(n),o=$w(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`&&(K(!bh(t)&&!bh(n)),K(d>0),K(u.length===l.length),K(l[0].value<=l[d].value),K(u[0].value<=l[0].value&&l[d].value<=u[d].value),d>=2&&(K(u[1].value===l[1].value),K(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=lo(l[0].value-l[1].value),g=lo(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`&&K(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=aT(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*Y(c,2):tT(E),D=nT(E);process.env.NODE_ENV!==`production`&&n>=t&&Jo("incorrect impl in `scaleCalcAlign`.")}function j(){w=X(k-E*f,D)}function ee(){T=X(O+E*p,D)}function te(){k=f?X(w+E*f,D):w}function ne(){O=p?X(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var re=e.getExtent(),ie=lo(re[1]-re[0]);D=Do([T,w],ie,.5/m),te(),ne(),Ho(D)&&(E=X(E,D))}else{var ae=C[1]-C[0];E=a?Y(Po(ae),1):Io(ae/m,2),D=nT(E),b[0]?(w=C[0],A(function(){if(te(),O=X(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(ne(),k=X(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=X(po(C[0]/E)*E,D),O=X(fo(C[1]/E)*E,D);var e=uo((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=fo(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=X(k-E*n[0],D),O=X(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 WO=[[3,1],[0,2]],GO=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=$D,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;R(this._axesList,function(e){kE(e,1);var t=e.scale;eT(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):VE(i)}R(n,function(e){XO(e,e.__alignTo)?VE(e):UO(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};R(n.x,function(e){qO(n,`y`,e,i)}),R(n.y,function(e){qO(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Og(e,t),i=this._rect=Eg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(QO(a,i),!n){var c=nk(i,o,a,s,t),l=void 0;if(s)ek?(ek(this._axesList,i),QO(a,i)):(process.env.NODE_ENV!==`production`&&qo("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=tk(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=ik(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=tk(d,f,p,i,a,c,r))}rk(i,a,XE.determine,null,l,r),R(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]}W(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`,ks).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,ks).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,R(o.x,function(t,n){R(o.y,function(i,a){var o=`x`+n+`y`+a,s=new tO(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),YO(o.x),YO(o.y);function c(t){return function(n,r){if(KO(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=PT(n),u=new nO(t,FT(n,l,!0),[0,0],l,c);u.onBand=XT(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 R(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),R(o._axesList,function(t){OE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;yg({targetModel:e,coordSysType:VD,coordSysProvider:r});function r(){var r=zO(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 "`+Te(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&&(hE(t,e,VD),hE(n,e,VD))},this),r},e.dimensions=$D,e.dimIdxMap=tw($D),e}();function KO(e,t){return e.getCoordSysModel()===t}function qO(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)JO(s,i[c])&&(a=i[c]);else for(var l in i)if(ze(i,l)&&JO(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 JO(e,t){if(!t)return!1;var n=t.scale,r=IT(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&RT(t)&&(i=!1),i}function YO(e){for(var t=B(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];Xw(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&&R(r,function(e){e.__alignTo=n})}function XO(e,t){return bh(e.scale)||bh(t.scale)||t.scale.getTicks().length<2}function ZO(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 QO(e,t){R(e.x,function(e){return $O(e,t.x,t.width)}),R(e.y,function(e){return $O(e,t.y,t.height)})}function $O(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),ZO(e,t)}var ek;function tk(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&K(t===`all`||t===`axisLabel`),rk(r,i,XE.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=de(s,function(e){return e>0})==null;return sm(r,s,!0,!0,n),QO(i,r),c;function l(e){R(i[Np[e]],function(t){if(GT(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(YT(t.scale,sO(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=WT(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Np[n]]-t[Np[n]],a=t[Pp[n]]+t[Np[n]]-(e[Pp[n]]+e[Np[n]]);i=d(i,1-r),a=d(a,r);var o=WO[n][0],c=WO[n][1];s[o]=Y(s[o],i),s[c]=Y(s[c],a)}function d(e,t){return e>0&&!Ce(t)&&t>1e-4&&(e/=t),e}}function nk(e,t,n,r,i){var a=new lO(ak);return R(n,function(n){return R(n,function(n){if(GT(n.model)){var o=!r;n.axisBuilder=BO(e,t,n.model,i,a,o)}})}),a}function rk(e,t,n,r,i,a){var o=n===XE.determine;R(t,function(t){return R(t,function(t){GT(t.model)&&(VO(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[Np[1-t]]=e[Pp[t]]<=a.refContainer[Pp[t]]*.5?0:1-t==1?2:1}R(t,function(e,t){return R(e,function(e){GT(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function ik(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=Eg(e.get(`outerBounds`,!0)||zD,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&Yo(`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`&&Yo(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[So(G(e.get(`outerBoundsClampWidth`,!0),BD[0]),t.width),So(G(e.get(`outerBoundsClampHeight`,!0),BD[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var ak=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;pO(e,t,n,r,i,a),WT(e.nameLocation)||R(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&hO(e.labelInfoList,e.dirVec,r,i)})};function ok(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return sk(n,e,t),n.seriesInvolved&&lk(n,e),n}function sk(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];R(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=gk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(R(n.getAxes(),me(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)&&R(f.baseAxes,me(p,!d||`cross`,u)),d&&R(f.otherAxes,me(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!hk(d))){s??=d.get(`triggerTooltip`),d=r?ck(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=gk(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:hk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=uk(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function ck(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};R(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 Qm(c,n,r))}function lk(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||R(e.coordSysAxesInfo[gk(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 uk(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(dk(a[r+`AxisId`],n.id)||dk(a[r+`AxisIndex`],n.componentIndex)||dk(a[r+`AxisName`],n.name))return i}}function dk(e,t){return e===`all`||V(e)&&I(e,t)>=0||e===t}function fk(e){var t=pk(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=hk(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 pk(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[gk(e)]}function mk(e){var t=pk(e);return t&&t.axisPointerModel}function hk(e){return!!e.get([`handle`,`show`])}function gk(e){return e.type+`||`+e.id}var _k={},vk=function(e){f(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&&fk(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=mk(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`&&_k[e])throw Error(`axisPointer `+e+` exists`);_k[e]=t},t.getAxisPointerClass=function(e){return e&&_k[e]},t.type=`axis`,t}(Ky),yk=Ts();function bk(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=yk(e).splitAreaColors,f=q(),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=V(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 hu({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}yk(e).splitAreaColors=f}}}function xk(e){yk(e).splitAreaColors=null}var Sk=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],Ck=function(e){f(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 Ja,this.group.add(this._axisGroup),GT(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),R(Sk,function(e){t.get([e,`show`])&&wk[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||$p(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){xk(this)},t.type=`cartesianAxis`,t}(vk),wk={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=V(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 $f({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});Gp(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 $f({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});Gp(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){bk(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=YD(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},Tk=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(Ck),Ek=function(e){f(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Tk.type,t}return t.type=`yAxis`,t}(Ck),Dk=function(e){f(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 hu({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(Ky),Ok={offset:0};function kk(e){e.registerComponentView(Dk),e.registerComponentModel(HD),e.registerCoordinateSystem(`cartesian2d`,GO),XD(e,`x`,UD,Ok),XD(e,`y`,UD,Ok),e.registerComponentView(Tk),e.registerComponentView(Ek),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Ak=Ts(),jk=M,Mk=pe,Nk=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 Ja,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=me(Pk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}Rk(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&&_D(r).w>o)return!0;if(a){var s=pk(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=Ak(e).pointerEl=new jp[i.type](jk(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Ak(e).labelEl=new bu(jk(t.label));e.add(i),Ik(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Ak(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=Ak(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=nm(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Mt(e.event)},onmousedown:Mk(this._onHandleDragMove,this,0,0),drift:Mk(this._onHandleDragMove,this),ondragend:Mk(this._onHandleDragEnd,this)}),n.add(r)),Rk(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);V(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,ob(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){Pk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,Lk(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(Lk(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(Lk(r)),Ak(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),sb(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 Pk(e,t,n,r){Fk(Ak(n).lastProp,r)||(Ak(n).lastProp=r,t?wp(n,r,e):(n.stopAnimation(),n.attr(r)))}function Fk(e,t){if(W(e)&&W(t)){var n=!0;return R(t,function(t,r){n&&=Fk(e[r],t)}),!!n}return e===t}function Ik(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function Lk(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Rk(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 zk(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 Bk(e,t,n,r,i){var a=Hk(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=ag(o.get(`padding`)||0),c=o.getFont(),l=Ta(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),Vk(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:Am(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function Vk(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 Hk(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:BT(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};R(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),U(o)?a=o.replace(`{value}`,a):H(o)&&(a=o(s))}return a}function Uk(e,t,n){var r=Lt();return Ht(r,r,n.rotation),Vt(r,r,n.position),Yp([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Wk(e,t,n,r,i,a){var o=gO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),Bk(t,r,i,a,{position:Uk(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function Gk(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function Kk(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function qk(e,t,n){return _D(e,{fromStat:{sers:z(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function Jk(e,t,n){return[Y(co(t[0],t[1]),e-n/2),co(e+n/2,Y(t[0],t[1]))]}var Yk=function(e){f(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=Xk(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=zk(r),f=Zk[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}Wk(t,e,LO(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=LO(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=Uk(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=Xk(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=co(o[1],l[c]),l[c]=Y(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}(Nk);function Xk(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var Zk={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:Gk([t,r[0]],[t,r[1]],Qk(e))}},shadow:function(e,t,n,r,i,a){var o=qk(e,i,a),s=r[1]-r[0],c=Jk(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:Kk([l,r[0]],[u-l,s],Qk(e))}}};function Qk(e){return e.dim===`x`?0:1}var $k=function(e){f(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}(Z),eA=Ts(),tA=R;function nA(e,t,n){if(!m.node){var r=t.getZr();eA(r).records||(eA(r).records={}),rA(r,t);var i=eA(r).records[e]||(eA(r).records[e]={});i.handler=n}}function rA(e,t){if(eA(e).initialized)return;eA(e).initialized=!0,n(`click`,me(oA,`click`)),n(`mousemove`,me(oA,`mousemove`)),n(`mousewheel`,me(oA,`mousewheel`)),n(`globalout`,aA);function n(n,r){e.on(n,function(n){var i=sA(t);tA(eA(e).records,function(e){e&&r(e,n,i.dispatchAction)}),iA(i.pendings,t)})}}function iA(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 aA(e,t,n){e.handler(`leave`,null,n)}function oA(e,t,n,r){t.handler(e,n,r)}function sA(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 cA(e,t){if(!m.node){var n=t.getZr();(eA(n).records||{})[e]&&(eA(n).records[e]=null)}}var lA=function(e){f(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`;nA(`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){cA(`axisPointer`,t)},t.prototype.dispose=function(e,t){cA(`axisPointer`,t)},t.type=`axisPointer`,t}(Ky);function uA(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=ws(a,e);if(o==null||o<0||V(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(z(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 dA=Ts();function fA(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||pe(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){SA(i)&&(i=uA({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=SA(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||SA(i),f={},p={},m={list:[],map:{}},h={showPointer:me(hA,p),showTooltip:me(gA,m)};R(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);R(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=bA(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&pA(e,o,h,!1,f)}})});var g={};return R(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&R(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,xA(t),xA(e)))),g[e.key]=a}})}),R(g,function(e,t){pA(u[t],e,h,!0,f)}),_A(p,u,f),vA(m,i,e,o),yA(u,o,n),f}}function pA(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=mA(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 mA(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return R(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(Ho(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),R(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function hA(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function gA(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=gk(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 _A(e,t,n){var r=n.axesInfo=[];R(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 vA(e,t,n,r){if(SA(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 yA(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=dA(r)[i]||{},o=dA(r)[i]={};R(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&R(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}R(a,function(e,t){!o[t]&&c.push(l(e))}),R(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 bA(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 xA(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 SA(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function CA(e){vk.registerAxisPointerClass(`CartesianAxisPointer`,Yk),e.registerComponentModel($k),e.registerComponentView(lA),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=ok(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},fA)}function wA(e){qE(kk),qE(CA)}var TA=typeof Float32Array<`u`?Float32Array:void 0,EA=typeof Float64Array<`u`?Float64Array:void 0;function DA(e){return OA({ctor:TA},e).arr}function OA(e,t){process.env.NODE_ENV!==`production`&&K(t!=null&&isFinite(t)&&t>=0&&e.hasOwnProperty(`ctor`));var n=e.arr,r=e.ctor;if(t>ko&&(t=ko),!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`&&Yo(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 kA(){pE(`liPosMinGap`,AA)}function AA(e,t,n){var r=q(),i=n.serUids,a=n.liPosMinGap,o,s=t.axis,c=s.scale,l=c.needTransform(),u=c.getFilter?c.getFilter():null,d=Bv(u);function f(n){lE(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}OA(jA,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||Vv(d,a))&&(l&&(a=c.transformIn(a,null)),jA.arr[m++]=a)}});var h=jA.typed?jA.arr.subarray(0,m):(jA.arr.length=m,jA.arr);jA.typed?h.sort():wo(h);for(var g=1/0,_=1;_<m;++_){var v=h[_]-h[_-1];v>0&&v<g&&(g=v)}n.liPosMinGap=t.liPosMinGap=Ho(g)?g:m>0?-2:-1,n.serUids=r}var jA=OA({ctor:EA},50);function MA(e){return function(t,n){var r=_D(t,{fromStat:{key:e}});if(Ho(r.w2))return[-r.w2/2,r.w2/2]}}function NA(e,t){return e+`|&`+t}function PA(e){return kA(),{liPosMinGap:!eT(e.scale)}}function FA(e,t,n,r){_E(e,{key:t,seriesType:n,coordSysType:r,getMetrics:PA})}function IA(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&K(Ho(t)),t}function LA(e){return e}var RA=`view`;(function(e){f(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=RA,i.dimensions=[`x`,`y`];var a=LA(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=ma(),o[1]=ma(),o[2]=ma(),a.mtRaw=Lt(),a.mtRawInv=Lt(),a.mtOverall=Lt(),a.mtOverallInv=Lt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return VA(null,this)},t.prototype.getViewRect=function(){return HA(null,this)},t.prototype.getRoamTransform=function(){return pa(LA(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?LA(this).mtRaw:LA(this).mtOverall;return n||=[],r?nt(n,e,r):Ue(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=LA(this).mtOverallInv;return r?nt(n,e,r):Ue(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=UA(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=UA(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=LA(this);return cn(zA,t.dataRect),un(zA,zA,t.mtOverall),dn(zA,e[0],e[1])},t.dimensions=[`x`,`y`],t})(fa);var zA=on();function BA(e,t){return zt(e||[],LA(t).mtOverall)}function VA(e,t){return cn(e||on(),LA(t).dataRect)}function HA(e,t){return cn(e||on(),LA(t).viewRect)}on();function UA(e){var t=e.seriesModel;return t?t.coordinateSystem:null}ma(),ma();var WA=Ts();function GA(e,t,n){WA(e)[t]=n}function KA(e,t,n){var r=WA(e);r[t]===n&&(r[t]=null)}MC({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Be);var qA={axisPointer:1,tooltip:1,brush:1};function JA(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||qA.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=_m(r),o=_m(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}function YA(e,t,n,r,i,a){e||=0;var o=Oo(n[1],-n[0]);if(i!=null&&(i=ZA(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(Oo(t[1],-t[0]));s=ZA(s,[0,o]),i=a=ZA(s,[i,a]),r=0}t[0]=ZA(t[0],n),t[1]=ZA(t[1],n);var c=XA(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=Oo(u[0],l):u[1]=Oo(u[1],-l),t[r]=ZA(t[r],u);var d=XA(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=Oo(t[r],c.sign*i)),d=XA(t,r),a!=null&&d.span>a&&(t[1-r]=Oo(t[r],d.sign*a)),t}function XA(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function ZA(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var QA=!0,$A=Math.min,ej=Math.max,tj=Math.pow,nj=1e4,rj=6,ij=6,aj=`globalPan`,oj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},sj={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},cj={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},lj=0,uj=function(e){f(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!==`production`&&K(t),n._zr=t,n.group=new Ja,n._uid=`brushController_`+lj++,R(Hj,function(e,t){this._handlers[t]=pe(e,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!==`production`&&K(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||GA(t,aj,this._uid),R(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(M(cj),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;KA(e,aj,this._uid),R(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};R(e,function(e){t[e.panelId]=M(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},process.env.NODE_ENV!==`production`&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!==`production`&&K(this._mounted),e=z(e,function(e){return N(M(cj),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new WC(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:hj(i,r[t]=o==null?fj(i,dj(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!==`production`&&!this._mounted))return this.enableBrush(!1),yj(this),this._zr.remove(this.group),process.env.NODE_ENV!==`production`&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(st);function dj(e,t){var n=Gj[t.brushType].createCover(e,t);return n.__brushOption=t,mj(n,t),e.group.add(n),n}function fj(e,t){var n=gj(t);return n.endCreating&&(n.endCreating(e,t),mj(t,t.__brushOption)),t}function pj(e,t){var n=t.__brushOption;gj(t).updateCoverShape(e,t,n.range,n)}function mj(e,t){var n=t.z;n??=nj,e.traverse(function(e){e.z=n,e.z2=n})}function hj(e,t){gj(t).updateCommon(e,t),pj(e,t)}function gj(e){return Gj[e.__brushOption.brushType]}function _j(e,t,n){var r=e._panels;if(!r)return QA;var i,a=e._transform;return R(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function vj(e,t){var n=e._panels;if(!n)return QA;var r=t.__brushOption.panelId;return r==null?QA:n[r]}function yj(e){var t=e._covers,n=t.length;return R(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function bj(e,t){var n=z(e._covers,function(e){var t=e.__brushOption,n=M(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function xj(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return tj(i*i+a*a,.5)>rj}function Sj(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Cj(e,t,n,r){var i=new Ja;return i.add(new hu({name:`main`,style:Dj(n),silent:!0,draggable:!0,cursor:`move`,drift:me(Mj,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:me(bj,t,{isEnd:!0})})),R(r,function(n){i.add(new hu({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:me(Mj,e,t,i,n),ondragend:me(bj,t,{isEnd:!0})}))}),i}function wj(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=ej(i,ij),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;Ej(e,t,`main`,o,s,m,h),r.transformable&&(Ej(e,t,`w`,c,l,a,_),Ej(e,t,`e`,f,l,a,_),Ej(e,t,`n`,c,l,g,a),Ej(e,t,`s`,c,p,g,a),Ej(e,t,`nw`,c,l,a,a),Ej(e,t,`ne`,f,l,a,a),Ej(e,t,`sw`,c,p,a,a),Ej(e,t,`se`,f,p,a,a))}function Tj(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Dj(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),R([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?Aj(e,n[0]):jj(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?sj[a]+`-resize`:null})})}function Ej(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(Ij(Fj(e,t,[[r,i],[r+a,i+o]])))}function Dj(e){return F({strokeNoScale:!0},e.brushStyle)}function Oj(e,t,n,r){var i=[$A(e,n),$A(t,r)],a=[ej(e,n),ej(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function kj(e){return Jp(e.group)}function Aj(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[Xp({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],kj(e))]}function jj(e,t){var n=[Aj(e,t[0]),Aj(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function Mj(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=Pj(t,i,a);R(r,function(e){var t=oj[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(Oj(s[0][0],s[1][0],s[0][1],s[1][1])),hj(t,n),bj(t,{isEnd:!1})}function Nj(e,t,n,r){var i=t.__brushOption.range,a=Pj(e,n,r);R(i,function(e){e[0]+=a[0],e[1]+=a[1]}),hj(e,t),bj(e,{isEnd:!1})}function Pj(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Fj(e,t,n){var r=vj(e,t);return r&&r!==QA?r.clipPath(n,e._transform):M(n)}function Ij(e){var t=$A(e[0][0],e[1][0]),n=$A(e[0][1],e[1][1]),r=ej(e[0][0],e[1][0]),i=ej(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function Lj(e,t,n){if(!(!e._brushType||Wj(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=_j(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===QA||s.panelId===a.panelId)&&Gj[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function Rj(e){var t=e.event;t.preventDefault&&t.preventDefault()}function zj(e,t,n){return e.childOfName(`main`).contain(t,n)}function Bj(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),xj(e)||i){if(a&&!i){o.brushMode===`single`&&yj(e);var c=M(o);c.brushType=Vj(c.brushType,a),c.panelId=a===QA?null:a.panelId,i=e._creatingCover=dj(e,c),e._covers.push(i)}if(i){var l=Gj[Vj(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange(Fj(e,i,e._track)),r&&(fj(e,i),l.updateCommon(e,i)),pj(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&_j(e,t,n)&&yj(e)&&(s={isEnd:r,removeOnClick:!0});return s}function Vj(e,t){return e===`auto`?(process.env.NODE_ENV!==`production`&&K(t&&t.defaultBrushType,`MUST have defaultBrushType when brushType is "atuo"`),t.defaultBrushType):e}var Hj={mousedown:function(e){if(this._dragging)Uj(this,e);else if(!e.target||!e.target.draggable){Rj(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=_j(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(Lj(this,e,r),this._dragging){Rj(e);var i=Bj(this,e,r,!1);i&&bj(this,i)}},mouseup:function(e){Uj(this,e)}};function Uj(e,t){if(e._dragging){Rj(t);var n=t.offsetX,r=t.offsetY,i=Bj(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&bj(e,i)}}function Wj(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Gj={lineX:Kj(0),lineY:Kj(1),rect:{createCover:function(e,t){function n(e){return e}return Cj({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=Sj(e);return Oj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){wj(e,t,n,r)},updateCommon:Tj,contain:zj},polygon:{createCover:function(e,t){var n=new Ja;return n.add(new Xf({name:`main`,style:Dj(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Jf({name:`main`,draggable:!0,drift:me(Nj,e,t),ondragend:me(bj,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:Fj(e,t,n)})},updateCommon:Tj,contain:zj}};function Kj(e){return{createCover:function(t,n){return Cj({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=Sj(t);return[$A(n[0][e],n[1][e]),ej(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=vj(t,n);if(o!==QA&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),wj(t,n,c,i)},updateCommon:Tj,contain:zj}}function qj(e){return e=Xj(e),function(t){return em(t,e)}}function Jj(e,t){return e=Xj(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function Yj(e,t,n){var r=Xj(e);return function(e,i){return r.contain(i[0],i[1])&&!JA(e,t,n)}}function Xj(e){return J.create(e)}var Zj=[`x`,`y`,`radius`,`angle`,`single`],Qj=Ts(),$j=[`cartesian2d`,`polar`,`singleAxis`];function eM(e){return I($j,e.get(`coordinateSystem`))>=0}function tM(e){return process.env.NODE_ENV!==`production`&&K(e),e+`Axis`}function nM(e,t){var n=q(),r=[],i=q();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function rM(e){var t=Qj(rx(e));return t.axisProxyMap||=q()}function iM(e){if(e)return process.env.NODE_ENV!==`production`&&K(e.ecModel),rM(e.ecModel).get(e.uid)}function aM(e,t){process.env.NODE_ENV!==`production`&&K(e.ecModel),rM(e.ecModel).set(e.uid,t)}function oM(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?iM(n.model):null}var sM=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),cM=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=lM(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=lM(e);N(this.option,e,!0),N(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;R([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=q();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return R(Zj,function(n){var r=this.getReferringComponents(tM(n),As);if(r.specified){t=!0;var i=new sM;R(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new sM;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,ks).models[0];o&&R(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,ks).models[0]&&a.add(e.componentIndex)})}}}r&&R(Zj,function(t){if(r){var i=n.findComponents({mainType:tM(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new sM;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);R([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(tM(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){R(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return iM(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&K(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(tM(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;R([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;R([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return iM(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!==`production`&&K(this._orient),this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(Z);function lM(e){var t={};return R([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var uM=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(cM),dM=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){f(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,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(Ky)),fM=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return M(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(eM(t)){var n=tM(this._dimName),r=t.getReferringComponents(n,ks).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return M(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];R([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=yo(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=yo(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),wo(s),wo(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;YA(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=yo(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);Ws(t)}var f=eT(r)||Qw(r),p=n.getExtent(),m=lo(p[1]-p[0]),h=f?0:Do(s,m,.5);R([[0,po],[1,fo]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=X(s[n],h),s[n]=co(t[1],Y(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),Ws(s);var g=[yo(s[0],t,a,!0),yo(s[1],t,a,!0)];return Ws(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;kE(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=F({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;R(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=z(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else R(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});R(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;R([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=yo(i,[0,100],n,!0)-n[0]):i=yo(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),pM={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(tM(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!iM(i)){var o=new fM(t,r,a,e);n.push(o),aM(i,o)}});var r=q();return R(n,function(e){R(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=oM(e,i);a?n.push([i,a]):i.reset(e,null)}),R(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function mM(e){e.registerAction(`dataZoom`,function(e,t){R(nM(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var hM=Gs();function gM(e){hM(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,pM),mM(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function _M(e){e.registerComponentModel(uM),e.registerComponentView(dM),gM(e)}var vM=function(){function e(){}return e}(),yM={};function bM(e,t){yM[e]=t}function xM(e){return yM[e]}var SM=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=P({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){R(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=xM(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(N(e,n[t]),n[t]=null),N(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(Z);function CM(e,t){var n=ag(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new hu({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var wM=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=q(),l=[];R(s,function(e,t){l.push(t)}),new WC(this._featureNames||[],l).add(u).update(u).remove(me(u,null)).execute(),this._featureNames=ue(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new Qm(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(TM(p))_={onclick:h.option.onclick,featureName:p};else{var v=xM(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){EM(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=eh(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Cd:wd)(r[e])},EM(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof vM&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;U(d)?(p={},p[c]=d):p=d,U(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};R(p,function(c,d){var f=nm(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new bu({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:Rm({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),um({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Cd:wd)(f),i.add(f),f.on(`click`,pe(s.onclick,s,t,n,d)),h[d]=f})}var f=Og(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Eg(p,f,m);wg(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),kg(i,p,f,m),i.add(CM(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!H(c)&&t){var l=c.style||={},u=Ta(t,bu.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){R(this._features,function(e){e&&e instanceof vM&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){R(this._features,function(n){n&&n instanceof vM&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(Ky);function TM(e){return e.indexOf(`my`)===0}function EM(e){return e instanceof vM}var DM=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=m.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var h=f.length,g=new Uint8Array(h);h--;)g[h]=f.charCodeAt(h);var _=new Blob([g]);window.navigator.msSaveOrOpenBlob(_,p)}else{var v=document.createElement(`iframe`);document.body.appendChild(v);var y=v.contentWindow,b=y.document;b.open(`image/svg+xml`,`replace`),b.write(f),b.close(),y.focus(),b.execCommand(`SaveAs`,!0,p),document.body.removeChild(v)}}else{var x=n.get(`lang`),S=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(x&&x[0]||``)+`" /></body>`,C=window.open();C.document.write(S),C.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(vM),OM=`__ec_magicType_stack__`,kM=[[`line`,`bar`],[`stack`]],AM=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return R(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(jM[n]){var a={series:[]};R(kM,function(e){I(e,n)>=0&&R(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=jM[n](t,i,e,r);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,ks).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(vM),jM={line:function(e,t,n,r){if(e===`bar`)return N({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return N({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===OM;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),N({id:t,stack:i?``:OM},r.get([`option`,`stack`])||{},!0)}};MC({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var MM=Array(60).join(`-`),NM=` `;function PM(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=HO(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function FM(e){var t=[];return R(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(z(e.series,function(e){return e.name})),o=[r.model.getCategories()];R(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join(NM)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join(NM))}t.push(s.join(`
21
+ `];function Ny(e,t){return t.type=e,t}function Py(e){return e.type===`section`}function Fy(e){return Py(e)?Ly:Ry}function Iy(e){if(Py(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return L(e.blocks,function(e){var n=Iy(e);n>=t&&(t=n+ +(r&&(!n||Py(e)&&!e.noHeader)))}),t}return 0}function Ly(e,t,n,r){var i=t.noHeader,a=By(Iy(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 ty(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=Fy(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):Vy(r,o.join(``),i?n:a.html);if(i)return d;var f=xg(t.header,`ordinal`,e.useUTC),p=Ay(r,e.renderMode).nameStyle,m=ky(r);return e.renderMode===`richText`?Wy(e,f,p)+a.richText+d:Vy(r,`<div style="`+p+`;`+m+`;">`+kt(f)+`</div>`+d,n)}function Ry(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],R(e,function(e,t){return xg(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?``:xg(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=Ay(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Wy(e,f,v))+(o?``:Gy(e,m,h,g,y)):Vy(r,(s?``:d)+(a?``:Hy(f,!s,v))+(o?``:Uy(m,h,g,y)),n)}}function zy(e,t,n,r,i,a){if(e)return Fy(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function By(e){return{html:jy[e],richText:My[e]}}function Vy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=ky(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Hy(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+kt(e)+`</span>`}function Uy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=B(e)?e:[e],`<span style="`+i+`;`+r+`">`+R(e,function(e){return kt(e)}).join(`&nbsp;&nbsp;`)+`</span>`}function Wy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Gy(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 Ky(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Eg(n)}function qy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Jy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Xo()}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=Tg({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)?L(t,function(e){return P(n,e)}):P(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Yy(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=Ky(t,n),u,d,f,p;if(o>1||c&&!o){var m=Xy(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=Kv(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=js(t),_=g&&t.name||``,v=i.getName(n),y=r?_:v;return Ny(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Ny(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!Fe(y),value:u,valueType:d,rawDataIndex:i.getRawIndex(n)})].concat(f||[])})}function Xy(e,t,n,r,i){var a=t.getData(),o=ge(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(Kv(a,n,e),e)}):L(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Ny(`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 Zy=Ls();function Qy(e,t){return e.getName(t)||e.getId(t)}var $y=`__universalTransitionEnabled`,eb=function(e){v(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=Xv({count:rb,reset:ib}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(Zy(this).sourceManager=new Ty(this)).prepareSource();var r=this.getInitialData(e,n);ob(r,this),this.dataTask.context.data=r,process.env.NODE_ENV!==`production`&&G(r,`getInitialData returned invalid data.`),Zy(this).dataBeforeProcessed=r,tb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Kg(this),r=n?Jg(e):{},i=this.subType;Z.hasClass(i)&&(i+=`Series`),N(e,t.getTheme().get(this.subType)),N(e,this.getDefaultOption()),hs(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&qg(e,r,n)},t.prototype.mergeOption=function(e,t){e=N(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Kg(this);n&&qg(this.option,e,n);var r=Zy(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);ob(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Zy(this).dataBeforeProcessed=i,tb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!Te(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&hs(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=cb(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}return Zy(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=cb(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}Zy(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return Zy(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Zy(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 Yy({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(b.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=v_.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=Qy(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=z(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[Qy(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=Qy(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=Qy(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 Z.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}(Z);me(eb,Jv),me(eb,v_),bc(eb,Z);function tb(e){var t=e.name;js(e)||(e.name=nb(e)||t)}function nb(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 rb(e){return e.model.getRawData().count()}function ib(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),ab}function ab(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function ob(e,t){L(Ue(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xe(sb,t))})}function sb(e,t){var n=cb(e);return n&&n.setOutputEnd((t||this).count()),t}function cb(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 lb=function(){function e(){this.group=new io,this.uid=hh(`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}();vc(lb),Tc(lb);function ub(){var e=Ls();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 db=Ls(),fb=ub(),pb=function(){function e(){this.group=new io,this.uid=hh(`viewChart`),this.renderTask=Xv({plan:gb,reset:_b}),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`&&os(`Unknown dataType `+r.dataType);return}hb(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`&&os(`Unknown dataType `+r.dataType);return}hb(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){Dm(this.group,e)},e.markUpdateMethod=function(e,t){db(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function mb(e,t,n){e&&cf(e)&&(t===`emphasis`?Id:Ld)(e,n)}function hb(e,t,n){var r=Is(e,t),i=t&&t.highlightKey!=null?lf(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){mb(e,n,i)}):L(ms(r),function(t){mb(e.getItemGraphicEl(t),n,i)})}vc(pb,[`dispose`]),Tc(pb);function gb(e){return fb(e.model)}function _b(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&db(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),vb[c]}var vb={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)}}},yb=`\0__throttleOriginMethod`,bb=`\0__throttleRate`,xb=`\0__throttleType`;function Sb(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 Cb(e,t,n,r){var i=e[t];if(i){var a=i[yb]||i,o=i[xb];if(i[bb]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Sb(a,n,r===`debounce`),i[yb]=a,i[xb]=r,i[bb]=n}return i}}function wb(e,t){var n=e[t];n&&n[yb]&&(n.clear&&n.clear(),e[t]=n[yb])}var Tb=Ls(),Eb={itemStyle:Ec(uh,!0),lineStyle:Ec(sh,!0)},Db={lineStyle:`stroke`,itemStyle:`fill`};function Ob(e,t){return e.visualStyleMapper||Eb[t]||(console.warn(`Unknown style type '`+t+`'.`),Eb.itemStyle)}function kb(e,t){return e.visualDrawType||Db[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Ab={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Ob(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=kb(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=P({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},jb=new ph,Mb={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Ob(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){jb.option=n[r];var o=i(jb);P(e.ensureUniqueItemVisual(t,`style`),o),jb.option.decal&&(e.setItemVisual(t,`decal`,jb.option.decal),jb.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Nb={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Tb(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Tb(e).scope,a=kb(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)}})}})}},Pb=Math.PI;function Fb(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 io,r=new Ou({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Nu({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 Ou({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 yp({shape:{startAngle:-Pb/2,endAngle:-Pb/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:Pb*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Pb*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 Ib=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):uc(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;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.`),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;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=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)||Xv({plan:Vb,reset:Hb,count:Gb}));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||Xv({reset:Lb});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):L(n.getSeries(),p);function p(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Xv({reset:Rb,onDirty:Bb})));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:Kb(e)}),e.uid=hh(`stageHandler`),t&&(e.visualType=t),e},e}();function Lb(e){e.overallReset(e.ecModel,e.api,e.payload)}function Rb(e){return e.dirtyOnOverallProgress&&zb}function zb(){this.agent.dirty(),this.getDownstream().dirty()}function Bb(){this.agent&&this.agent.dirty()}function Vb(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Hb(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ms(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?R(t,function(e,t){return Wb(t)}):Ub}var Ub=Wb(0);function Wb(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 Gb(e){return e.data.count()}function Kb(e){Yb=null;try{e(qb,Jb)}catch{}return Yb}var qb={},Jb={},Yb;Xb(qb,j_),Xb(Jb,rd),qb.eachSeriesByType=qb.eachRawSeriesByType=function(e){Yb=e},qb.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Yb=e.subType)};function Xb(e,t){for(var n in t.prototype)e[n]=qe}var $=Q.darkColor,Zb=$.background,Qb=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},$b={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},ex={darkMode:!0,color:$.theme,backgroundColor:Zb,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:Zb,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:$b,y:$b,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:Qb(),logAxis:Qb(),valueAxis:Qb(),categoryAxis:Qb(),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=Qb();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}}}};ex.categoryAxis.splitLine.show=!1;var tx=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(H(e)){var i=hc(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}(),nx=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],rx=nx.concat([`symbolKeepAspect`]),ix={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<nx.length;o++){var s=nx[o],c=e.get(s);V(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=z(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}}},ax={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<rx.length;r++){var i=rx[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function ox(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 sx(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 cx(e,t,n,r,i){var a=e+t;n.isSilent(a)||(process.env.NODE_ENV!==`production`&&ss(`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=Is(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:P({},r)})}}))}function lx(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(cx(`map`,`selectchanged`,t,r,e),cx(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(cx(`map`,`selected`,t,r,e),cx(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(cx(`map`,`unselected`,t,r,e),cx(`pie`,`unselected`,t,r,e))})}function ux(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var dx=new ht,fx={};function px(e,t){process.env.NODE_ENV!==`production`&&fx[e]&&os(`Already has an implementation of `+e+`.`),fx[e]=t}function mx(e){return process.env.NODE_ENV!==`production`&&(fx[e]||os(`Implementation of `+e+` doesn't exists.`)),fx[e]}var hx={};function gx(e,t){hx[e]=t}var _x=Ls();function vx(e){_x(e).prepare={}}function yx(e){_x(e).fullUpdate={}}function bx(e){return _x(e).prepare}function xx(e){return _x(e).fullUpdate}var Sx=Math.round(Math.random()*9),Cx=typeof Object.defineProperty==`function`,Tx=function(){function e(){this._id=`__ec_inner_`+Sx++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return Cx?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}(),Ex=Y.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()}}),Dx={line:pp,rect:Ou,roundRect:Ou,square:Ou,circle:Lf,diamond:Y.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:Y.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:Y.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:Ex},Ox={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}},kx={};L(Dx,function(e,t){kx[t]=new e});var Ax=Y.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Ba(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=kx[r];i||=(r=`rect`,kx[r]),Ox[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function jx(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 Mx(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?nm(e.slice(8),new q(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?tm(e.slice(7),{},new q(t,n,r,i),o?`center`:`cover`):new Ax({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=jx,a&&c.setColor(a),c}function Nx(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Px(e,t){if(e!=null)return B(e)||(e=[e,e]),[jo(e[0],t[0])||0,jo(W(e[1],e[0]),t[1])||0]}function Fx(e){return isFinite(e)}function Ix(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=Fx(r)?r:0,i=Fx(i)?i:1,a=Fx(a)?a:0,o=Fx(o)?o:0,e.createLinearGradient(r,a,i,o)}function Lx(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=Fx(o)?o:.5,s=Fx(s)?s:.5,c=c>=0&&Fx(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function Rx(e,t,n){for(var r=t.type===`radial`?Lx(e,t,n):Ix(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function zx(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 Bx(e){return parseInt(e,10)}function Vx(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]||Bx(s[r])||Bx(e.style[r]))-(Bx(s[a])||0)-(Bx(s[o])||0)||0}function Hx(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 Ux(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Hx(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 Wx=new Wl(!0);function Gx(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Kx(e){return typeof e==`string`&&e!==`none`}function qx(e){var t=e.fill;return t!=null&&t!==`none`}function Jx(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 Yx(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 Xx(e,t,n){var r=jc(t.image,t.__image,n);if(Nc(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 Zx(e,t,n,r,i){var a,o=Gx(n),s=qx(n),c=n.strokePercent,l=c<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var d=t.path||Wx,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?Rx(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?Rx(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?Xx(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?Xx(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=Ux(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&&Yx(e,n),s&&Jx(e,n)):(s&&Jx(e,n),o&&Yx(e,n)),T&&e.setLineDash([])}function Qx(e,t,n){var r=t.__image=jc(n.image,t.__image,t,t.onload);if(!(!r||!Nc(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=Ux(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(Gx(n)&&e.strokeText(i,n.x,n.y),qx(n)&&e.fillText(i,n.x,n.y)):(qx(n)&&e.fillText(i,n.x,n.y),Gx(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var eS=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],tS=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function nS(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){pS(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?rl.opacity:o}(r||t.blend!==n.blend)&&(a||=(pS(e,i),!0),e.globalCompositeOperation=t.blend||rl.blend);for(var s=0;s<eS.length;s++){var c=eS[s];(r||t[c]!==n[c])&&(a||=(pS(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(pS(e,i),!0),e.shadowColor=t.shadowColor||rl.shadowColor),a}function rS(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=nS(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(pS(e,i),!0),Kx(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(pS(e,i),!0),Kx(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(pS(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||=(pS(e,i),!0),e.lineWidth=c)}for(var l=0;l<tS.length;l++){var u=tS[l],d=u[0];(r||a[d]!==o[d])&&(s||=(pS(e,i),!0),e[d]=a[d]||u[1])}return s}function iS(e,t,n,r,i){return nS(e,t.style,n&&n.style,r,i)}function aS(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 oS(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),aS(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function sS(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 cS=1,lS=2,uS=3,dS=4;function fS(e){var t=qx(e),n=Gx(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 pS(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function mS(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};hS(e,t,n),gS(e,n)}function hS(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||zx(i,a))&&(a&&(pS(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(pS(e,n),e.save(),oS(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 Y&&t.autoBatch&&fS(o);s||sS(r,l.transform)?(pS(e,n),aS(e,t)):u||pS(e,n),t instanceof Y?(n.lastDrawType!==cS&&(c=!0,n.lastDrawType=cS),rS(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Zx(e,t,o,u,n)):t instanceof gu?(n.lastDrawType!==uS&&(c=!0,n.lastDrawType=uS),rS(e,t,l,c,n),$x(e,t,o)):t instanceof bu?(n.lastDrawType!==lS&&(c=!0,n.lastDrawType=lS),iS(e,t,l,c,n),Qx(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==dS&&(c=!0,n.lastDrawType=dS),_S(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(u&&pS(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function gS(e,t){pS(e,t),t.prevElClipPaths&&e.restore()}function _S(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(),hS(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}gS(e,a);for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(n.beforeBrushParam),c.innerBeforeBrush(),hS(e,c,a),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}gS(e,a),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var vS=new Tx,yS=new Or(100),bS=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function xS(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&vS.delete(e);var a=vS.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,vS.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<bS.length;++s){var c=o[bS[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=yS.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=CS(o.dashArrayX),f=wS(o.dashArrayY),p=SS(o.symbol),m=TS(d),h=ES(f),g=!i&&O.createCanvas(),_=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},v=b(),y;g&&(g.width=v.width*n,g.height=v.height*n,y=g.getContext(`2d`)),x(),a&&yS.put(l,g||_),e.image=g,e.svgElement=_,e.svgWidth=v.width,e.svgHeight=v.height;function b(){for(var e=1,t=0,n=m.length;t<n;++t)e=Qo(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=Qo(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 x(){y&&(y.clearRect(0,0,g.width,g.height),o.backgroundColor&&(y.fillStyle=o.backgroundColor,y.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<v.height;){if(s%2==0){for(var u=c/2%p.length,m=0,b=0,x=0;m<v.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(b%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][b]*C,T=a+f[s]*C,E=d[l][b]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][b],++x,++b,b===d[l].length&&(b=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=Mx(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&_.children.push(d)}else mS(y,u)}}}}function SS(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 SS([e]);for(var r=[],n=0;n<e.length;++n)H(e[n])?r.push([e[n]]):r.push(e[n]);return r}function CS(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 CS([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=R(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function wS(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=R(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function TS(e){return R(e,function(e){return ES(e)})}function ES(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var DS=dc(OS);function OS(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=xS(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=xS(i,t)}}})}var kS=1,AS=800,jS=900,MS=920,NS=1e3,PS=2e3,FS=5e3,IS=1e3,LS=1100,RS=2e3,zS=3e3,BS=4e3,VS=4500,HS=4600,US=5e3,WS=6e3,GS=7e3,KS={PROCESSOR:{SERIES_FILTER:AS,AXIS_STATISTICS:MS,FILTER:NS,STATISTIC:FS,STATISTICS:FS},VISUAL:{LAYOUT:IS,PROGRESSIVE_LAYOUT:LS,GLOBAL:RS,CHART:zS,POST_CHART_LAYOUT:HS,COMPONENT:BS,BRUSH:US,CHART_ITEM:VS,ARIA:WS,DECAL:GS}},qS=`__flagInMainProcess`,JS=`__mainProcessVersion`,YS=`__pendingUpdate`,XS=`__needsUpdateStatus`,ZS=/^[a-zA-Z0-9_]+$/,QS=`__connectUpdateStatus`,$S=0,eC=1,tC=2;function nC(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){kC(this.id);return}return iC(this,e,t)}}function rC(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return iC(this,e,t)}}function iC(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),ht.prototype[t].apply(e,n)}var aC=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(ht),oC=aC.prototype;oC.on=rC(`on`),oC.off=rC(`off`);var sC,cC,lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC,xC,SC,CC,wC,TC,EC=function(e){v(t,e);function t(t,n,r){var i=e.call(this,new tx)||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[JS]=1,process.env.NODE_ENV!==`production`){var c=b.hasGlobalWindow?window:global;c&&(a=W(c.__ECHARTS__DEFAULT__RENDERER__,a),o=W(c.__ECHARTS__DEFAULT__COARSE_POINTER,o),s=W(c.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,s))}r.ssr&&ho(function(e){var t=X(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 l=i._zr=uo(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:W(r.useDirtyRect,s),useCoarsePointer:W(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Sb(be(l.flush,l),17),i._updateTheme(n),i._locale=Oh(r.locale||Eh),i._coordSysMgr=new Ag;var u=i._api=xC(i);function d(e,t){return e.__prio-t.__prio}return Gn(FC,d),Gn(NC,d),i._scheduler=new Ib(i,u,NC,FC),i._messageCenter=new aC,i._initEvents(),i.resize=be(i.resize,i),l.animation.on(`frame`,i._onframe,i),gC(l,i),_C(l,i),Le(i),i}return t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(wC(this),this[YS]){var r=this[YS].silent;this[qS]=!0,TC(this);try{sC(this),uC.update.call(this,null,this[YS].updateParams)}catch(e){throw this[qS]=!1,this[YS]=null,e}this._zr.flush(),this[qS]=!1,this[YS]=null,mC.call(this,r),hC.call(this,r)}else if(e.unfinished){var i=kS;do{e.unfinished=!1;var a=O.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),fC(this,t),e.performVisualTasks(t),bC(this,this._model,n,`remain`,{}),i-=O.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[qS]){process.env.NODE_ENV!==`production`&&os("`setOption` should not be called during main process.");return}if(this._disposed){kC(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[qS]=!0,TC(this),!this._model||t){var o=new R_(this._api),s=this._theme,c=this._model=new j_;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},PC);var l={seriesTransition:a,optionChanged:!0};if(n)this[YS]={silent:r,updateParams:l},this[qS]=!1,this.getZr().wakeUp();else{try{sC(this),uC.update.call(this,null,l)}catch(e){throw this[YS]=null,this[qS]=!1,e}this._ssr||this._zr.flush(),this[YS]=null,this[qS]=!1,mC.call(this,r),hC.call(this,r)}},t.prototype.setTheme=function(e,t){if(this[qS]){process.env.NODE_ENV!==`production`&&os("`setTheme` should not be called during main process.");return}if(this._disposed){kC(this.id);return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[YS]&&(r??=this[YS].silent,i=this[YS].updateParams,this[YS]=null),this[qS]=!0,TC(this);try{this._updateTheme(e),n.setTheme(this._theme),sC(this),uC.update.call(this,{type:`setTheme`},i)}catch(e){throw this[qS]=!1,e}this[qS]=!1,mC.call(this,r),hC.call(this,r)}},t.prototype._updateTheme=function(e){H(e)&&(e=IC[e]),e&&(e=M(e),e&&fv(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||b.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return process.env.NODE_ENV!==`production`&&cs(`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){kC(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){kC(this.id);return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(zC[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=O.createCanvas(),h=uo(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 Ou({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),L(u,function(e){var t=new bu({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 dC(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return dC(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return dC(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){kC(this.id);return}var n=this._model,r;return L(zs(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`&&as(n+`: `+(a?`The found component do not support containPoint.`:`No view mapping to the found component.`))}else process.env.NODE_ENV!==`production`&&as(n+`: containPoint is not supported`)},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=zs(n,e,{defaultMainType:`series`}),i=r.seriesModel;process.env.NODE_ENV!==`production`&&(i||as(`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?sx(a,t):ox(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(OC,function(t){var n=function(n){var r=e.getModel(),i=n.target,a,o=t===`globalout`;if(o?a={}:i&&ux(i,function(e){var t=X(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)&&as(`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(MC,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),lx(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){kC(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){kC(this.id);return}this._disposed=!0,this.getDom()&&Gs(this.getDom(),VC,``);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[qS]){process.env.NODE_ENV!==`production`&&os("`resize` should not be called during main process.");return}if(this._disposed){kC(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[YS]&&(r??=this[YS].silent,n=!0,this[YS]=null),this[qS]=!0,TC(this);try{n&&sC(this),uC.update.call(this,{type:`resize`,animation:P({duration:0},e&&e.animation)})}catch(e){throw this[qS]=!1,e}this[qS]=!1,mC.call(this,r),hC.call(this,r)}},t.prototype.showLoading=function(e,t){if(this._disposed){kC(this.id);return}if(U(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),!LC[e]){process.env.NODE_ENV!==`production`&&as(`Loading effects `+e+` not exists.`);return}var n=LC[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)},t.prototype.hideLoading=function(){if(this._disposed){kC(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=jC[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){kC(this.id);return}if(U(t)||(t={silent:!!t}),AC[e.type]&&this._model){if(this[qS]){this._pendingActions.push(e);return}var n=t.silent;pC.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&b.browser.weChat&&this._throttledZrFlush(),mC.call(this,n),hC.call(this,n)}},t.prototype.updateLabelLayout=function(){dx.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){kC(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(){sC=function(e){vx(e._model);var t=e._scheduler;t.restorePipelines(e._zr,e._model),t.prepareStageTasks(),cC(e,!0),cC(e,!1),t.plan()},cC=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=hc(e.type),f=t?lb.getClass(d.main,d.sub):pb.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)}},lC=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=Ws(n,r,i),s=n.excludeSeriesId,c;s!=null&&(c=K(),L(ms(s),function(e){var t=Os(e,null);t!=null&&c.set(t,!0)})),a&&a.eachComponent(o,function(t){if(!(c&&c.get(t.id)!=null)){if(df(n)){if(t instanceof eb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Kd(t,n,e._api);else{var r=qd(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Gd(t.mainType,t.componentIndex,e._api),a&&L(a,function(e){n.type===`highlight`?Id(e):Ld(e)})}}else uf(n)&&t instanceof eb&&(Xd(t,n,e._api),Zd(t),CC(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)}},uC={prepareAndUpdate:function(e){sC(this),uC.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){yx(r),r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),dx.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,e),fC(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),vC(this,r,i,e,n),dx.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}),bC(t,n,r,e,{},a),dx.trigger(`afterupdate`,n,r)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),pb.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),vC(this,n,this._api,e,{}),dx.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()}),pb.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)}),dx.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){uC.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){kC(e.id);return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=zs(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`&&as(`No coordinate system that supports `+t+` found by the given finder.`)}dC=e,fC=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},pC=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=AC[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&hc(s[0]);this[qS]=!0,TC(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=uf(e),_=df(e);if(_&&Ud(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=Bs(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;lC(n,c,t,u),CC(n)}else g?(lC(n,c,t,`series`),CC(n)):l&&lC(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[YS]?(sC(this),uC.update.call(this,e),this[YS]=null):uC[c].call(this,e)}catch(e){throw this[qS]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[qS]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;G(U(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)}},mC=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();pC.call(this,n,e)}},hC=function(e){!e&&this.trigger(`updated`)},gC=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[YS]&&!t._scheduler.unfinished&&!t._pendingActions.length?t.trigger(`finished`):e.refresh()})},_C=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=ux(n,cf);r&&(Jd(r,e,t._api),CC(t))}).on(`mouseout`,function(e){var n=e.target,r=ux(n,cf);r&&(Yd(r,e,t._api),CC(t))}).on(`click`,function(e){var n=e.target,r=ux(n,function(e){return X(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=X(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;Gn(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)})}}vC=function(e,t,r,i,a){n(t),yC(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive=!1}),bC(e,t,r,i,a),L(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},yC=function(e,t,n,r,i,a){L(a||e._componentsViews,function(e){var i=e.__model;s(i,e),e.render(i,t,n,r),o(i,e),c(i,e)})},bC=function(e,t,n,r,l,u){var d=e._scheduler;l=P(l||{},{updatedSeries:t.getSeries()}),dx.trigger(`series:beforeupdate`,t,n,l);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),s(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),a(t,n),Zd(t)}),d.unfinished=f||d.unfinished,dx.trigger(`series:layoutlabels`,t,n,l),dx.trigger(`series:transition`,t,n,l),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];o(t,n),c(t,n)}),i(e,t),dx.trigger(`series:afterupdate`,t,n,l)},CC=function(e){e[XS]=!0,e.getZr().wakeUp()},TC=function(e){e[JS]=(e[JS]+1)%1e6},wC=function(e){e[XS]&&(e.getZr().storage.traverse(function(e){Bp(e)||r(e)}),e[XS]=!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>W(t.get(`hoverLayerThreshold`),a_.hoverLayerThreshold)&&!b.node&&!b.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=Mm(e);t.eachRendered(function(e){return Pm(e,n.z,n.zlevel),!0})}}function s(e,t){t.eachRendered(function(e){if(!Bp(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 c(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(Bp(e))return;if(e instanceof Y&&ff(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)}})}xC=function(e){return new(function(t){v(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){Id(t,n),CC(e)},n.prototype.leaveEmphasis=function(t,n){Ld(t,n),CC(e)},n.prototype.enterBlur=function(t){Rd(t),CC(e)},n.prototype.leaveBlur=function(t){zd(t),CC(e)},n.prototype.enterSelect=function(t){Bd(t),CC(e)},n.prototype.leaveSelect=function(t){Vd(t),CC(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[JS]},n.prototype.usingTHL=function(){return e._usingTHL},n}(rd))(e)},SC=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[QS]=t}}L(jC,function(n,r){e._messageCenter.on(r,function(n){if(zC[e.group]&&e[QS]!==$S){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,$S),L(i,function(e){e[QS]!==eC&&e.dispatchAction(r)}),t(i,tC)}})})}}(),t}(ht),DC=EC.prototype;DC.on=nC(`on`),DC.off=nC(`off`),DC.one=function(e,t,n){var r=this;ss(`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 OC=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`];function kC(e){process.env.NODE_ENV!==`production`&&as(`Instance `+e+` has been disposed`)}var AC={},jC={},MC={},NC=[],PC=[],FC=[],IC={},LC={},RC={},zC={},BC=new Date-0;new Date-0;var VC=`_echarts_instance_`;function HC(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=UC(e);if(i)return process.env.NODE_ENV!==`production`&&as(`There is a chart instance already initialized on the dom.`),i;process.env.NODE_ENV!==`production`&&Ee(e)&&e.nodeName.toUpperCase()!==`CANVAS`&&(!e.clientWidth&&(!n||n.width==null)||!e.clientHeight&&(!n||n.height==null))&&as(`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 EC(e,t,n);return a.id=`ec_`+BC++,RC[a.id]=a,r&&Gs(e,VC,a.id),SC(a),dx.trigger(`afterinit`,a),a}function UC(e){return RC[Ks(e,VC)]}function WC(e,t){IC[e]=t}function GC(e){I(PC,e)<0&&PC.push(e)}function KC(e,t){tw(NC,e,t,PS)}function qC(e){YC(`afterinit`,e)}function JC(e){YC(`afterupdate`,e)}function YC(e,t){dx.on(e,t)}function XC(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;AC[r]||(G(ZS.test(r)&&ZS.test(i)),a&&G(i!==r),AC[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},MC[i]=1,a&&s&&(MC[l]=1),process.env.NODE_ENV!==`production`&&jC[l]&&os(l+` must not be shared; use "refineEvent" if you intend to share an event name.`),jC[l]=r)}function ZC(e,t){Ag.register(e,t)}function QC(e,t){tw(FC,e,t,IS,`layout`,!0)}function $C(e,t){tw(FC,e,t,zS,`visual`,!0)}var ew=[];function tw(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`);L(e,function(e){G(e.__raw!==n)})}if(!(I(ew,n)>=0)){ew.push(n);var o=Ib.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 nw(e,t){LC[e]=t}function rw(e,t,n){var r=mx(`registerMap`);r&&r(e,t,n)}var iw=dy;$C(RS,Ab),$C(VS,Mb),$C(VS,Nb),$C(RS,ix),$C(VS,ax),$C(GS,DS),GC(fv),KC(jS,pv),nw(`default`,Fb),XC({type:dd,event:dd,update:dd},qe),XC({type:fd,event:fd,update:fd},qe),XC({type:pd,event:gd,update:pd,action:qe,refineEvent:aw,publishNonRefinedEvent:!0}),XC({type:md,event:gd,update:md,action:qe,refineEvent:aw,publishNonRefinedEvent:!0}),XC({type:hd,event:gd,update:hd,action:qe,refineEvent:aw,publishNonRefinedEvent:!0});function aw(e,t,n,r){return{eventContent:{selected:Qd(n),isFromClick:t.isFromClick||!1}}}WC(`default`,{}),WC(`dark`,ex);function ow(e){return e==null?0:e.length||1}function sw(e){return e}var cw=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||sw,this._newKeyGetter=r||sw,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=ow(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=ow(c),d=ow(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=ow(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=ow(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),lw=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 uw(e,t){var n={},r=n.encode={},i=K(),a=[],o=[],s={};L(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){process.env.NODE_ENV!==`production`&&G(Ju.get(c)==null);var l=n.coordDimIndex;dw(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),pw(n.type)&&(a[0]=t),dw(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Ju.each(function(e,t){var i=dw(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 lw(s,t),n}function dw(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function fw(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function pw(e){return e!==`ordinal`&&e!==`time`}var mw=function(){function e(e){this.otherDims={},e!=null&&P(this,e)}return e}(),hw=Ls(),gw={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},_w=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||=bw(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=Ev(this.source),n=!xw(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+=gw[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 vw(e){return e instanceof _w}function yw(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 bw(e){var t=hw(e);return t.dimNameMap||=yw(e.dimensionsDefine)}function xw(e){return e>30}var Sw=U,Cw=R,ww=typeof Int32Array>`u`?Array:Int32Array,Tw=`e\0\0`,Ew=-1,Dw=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],Ow=[`_approximateExtent`],kw,Aw,jw,Mw,Nw,Pw,Fw,Iw=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;vw(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 mw({name:u}):u instanceof mw?u:new mw(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();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(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 wy&&(i=e),!i){var a=this.dimensions,o=_v(e)||he(e)?new Nv(e,a.length):e;i=new wy;var s=Cw(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=uw(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&&Fw(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&&vs(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Os(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Os(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Fw(this,o);kw(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){Sw(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=jw(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 Aw(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(Cw(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)?Ew:r},e.prototype.each=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=Cw(Mw(e),this._getStoreDimIndex,this);this._store.each(i,r?be(t,r):t)},e.prototype.filterSelf=function(e,t,n){"use strict";V(e)&&(n=t,t=e,e=[]);var r=n||this,i=Cw(Mw(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?be(t,r):t),this},e.prototype.selectRange=function(e){"use strict";var t=this,n={},r=z(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";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=Cw(Mw(e),this._getStoreDimIndex,this),o=Pw(this);return o._store=this._store.map(a,i?be(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(Mw(e),function(e){i.getDimensionInfo(e).isCalculationCoord||console.error(`Danger: only stack dimension can be modified`)});var o=Cw(Mw(e),this._getStoreDimIndex,this);this._store.modify(o,a?be(t,a):t)},e.prototype.downSample=function(e,t,n,r){var i=Pw(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=Pw(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=Pw(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 ph(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new cw(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Aw(e,t)},function(e){return Aw(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||{},Sw(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),B(i)?i=i.slice():Sw(i)&&(i=P({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Sw(t)?P(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Sw(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){qu(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:Cw(this.dimensions,this._getDimInfo,this),this.hostModel),Nw(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(Ne(arguments)))})},e.internalField=function(){kw=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 ww(a.categories.length);for(var s=0;s<n.length;s++)n[s]=Ew;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},jw=function(e,t,n){return Os(e._getCategory(t,n),null)},Aw=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=jw(e,e._idDimIdx,t)),n??=Tw+t,n},Mw=function(e){return B(e)||(e=e==null?[]:[e]),e},Pw=function(t){var n=new e(t._schema?t._schema:Cw(t.dimensions,t._getDimInfo,t),t.hostModel);return Nw(n,t),n},Nw=function(e,t){L(Dw.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,L(Ow,function(n){e[n]=M(t[n])}),e._calculationInfo=P({},t._calculationInfo)},Fw=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=jw(e,i,t)),s==null&&a!=null&&(r[t]=s=jw(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 Lw(e,t){_v(e)||(e=yv(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=K(),a=[],o=Rw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xw(o),c=r===e.dimensionsDefine,l=c?bw(e):yw(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=K(u),f=new _y(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 mw,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=ms(e).slice();if(n.length===1&&!H(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);L(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;L(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=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=ms(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];!U(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&F(o.otherDims,r)})}});function g(e,t,n){Ju.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=zw(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(f_(e,S)===o_.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return oc(a,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new _w({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;U(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function zw(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 Bw=function(){function e(e){this.coordSysDims=[],this.axisMap=K(),this.categoryAxisMap=K(),this.coordSysName=e}return e}();function Vw(e){var t=e.get(`coordinateSystem`),n=new Bw(t),r=Hw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var Hw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,Vs).models[0],a=e.getReferringComponents(`yAxis`,Vs).models[0];if(process.env.NODE_ENV!==`production`){if(!i)throw Error(`xAxis "`+je(e.get(`xAxisIndex`),e.get(`xAxisId`),0)+`" not found`);if(!a)throw Error(`yAxis "`+je(e.get(`xAxisIndex`),e.get(`yAxisId`),0)+`" not found`)}t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Uw(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Uw(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,Vs).models[0];if(process.env.NODE_ENV!==`production`&&!i)throw Error(`singleAxis should be specified.`);t.coordSysDims=[`single`],n.set(`single`,i),Uw(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,Vs).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),Uw(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Uw(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),Uw(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,Vs).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 Uw(e){return e.get(`type`)===`category`}function Ww(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Gw(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){H(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 Gw(e){return!vw(e.schema)}function Kw(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function qw(e,t){return Kw(e,t)?e.getCalculationInfo(`stackResultDimension`):t}function Jw(e,t){var n=e.get(`coordinateSystem`),r=Ag.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=fw(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Yw(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 Xw(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=yv(e)):(i=r.getSource(),a=i.sourceFormat===Yu);var o=Vw(t),s=Jw(t,o),c=n.useEncodeDefaulter,l=V(c)?c:c?xe(l_,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=Lw(i,u),f=Yw(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=Ww(t,{schema:d,store:p}),h=new Iw(d,t);h.setCalculationInfo(m);var g=f!=null&&Zw(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 Zw(e){if(e.sourceFormat===`original`)return!B(_s(Qw(e.data||[])))}function Qw(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var $w=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();Tc($w);var eT=0,tT=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++eT,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&R(r,nT);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 nT(e){return U(e)&&e.value!=null?e.value:e+``}var rT=z({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 iT(e,t,n){var r;e||={};var i=Mh();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(L(rT,function(t){a[t]&&(e[t]=be(a[t],a))}),r=a)}return r??dT(e,n),{brk:r,mapper:e}}function aT(e,t){L(rT,function(n){e[n]=t[n]})}function oT(e,t){e.freeze=qe,process.env.NODE_ENV!==`production`&&(e.freeze=function(){t.freeze()})}function sT(e){return e.getExtentUnsafe(0,2)}function cT(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function lT(e){var t=cT(e,3);return t[1]-t[0]}function uT(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}function dT(e,t){var n=e||{},r=[];return n._extents=r,r[0]=t?t.slice():Ys(),P(n,fT),n}var fT={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=cT(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),pT(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()),pT(r,e,t,n)},freeze:function(){process.env.NODE_ENV!==`production`&&(this._frozen=!0)}};function pT(e,t,n,r){tc(n,r)?(e[t][0]=n,e[t][1]=r):process.env.NODE_ENV!==`production`&&n!=null&&r!=null&&n<=r&&os(`Invalid setExtent call - start: `+n+`, end: `+r)}function mT(e){return hT(e)||_T(e)}function hT(e){return e.type===`interval`}function gT(e){return e.type===`time`}function _T(e){return e.type===`log`}function vT(e){return e.type===`ordinal`}function yT(e){var t=Ko(e),n=To(10,t),r=So(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,J(r*n,-t)}function bT(e){return Io(e)+2}function xT(e,t){return Eo(e)/Eo(t)}function ST(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 To(t,e)}function CT(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=xo(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return(!ec(r[0])||!ec(r[1]))&&(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function wT(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function TT(e,t){return e||=t,So(bo(e,1))}function ET(e,t,n){var r=sT(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 DT=function(e){v(t,e);function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,aT(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new tT({}),B(i)&&(i=new tT({categories:R(i,function(e){return U(e)?e.value:e})})),r._ordinalMeta=i;var a=iT(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,oT(r,a.mapper),r}return t.parse=function(e){return e==null?e=NaN:H(e)?(e=this._ordinalMeta.getOrdinal(e),e??=NaN):e=So(e),e},t.prototype.getTicks=function(){var e=[];return ET(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=yo(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=sT(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(So(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}($w);$w.registerClass(DT);function OT(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=bT(f);u<t-1;){var m=J(l.value+(u+1)*f,p);m>o[0]&&m<o[1]&&d.push(m),u++}var h=Mh();h&&h.pruneTicksByBreak(`auto`,d,n,function(e){return e},r,o),a.push(d)}}return a}var kT=function(e){v(t,e);function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,n||={},r.brk=iT(r,Nh(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=sT(this);process.env.NODE_ENV!==`production`&&(G(e.interval!=null),e.intervalCount!=null&&G(e.intervalCount>=-1&&e.intervalPrecision!=null&&!Fh(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(J(e.niceExtent[0]-e.niceExtent[1],Io(e.interval))<=e.interval))),this._cfg=e=M(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=bT(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=sT(this),i=t.niceExtent,a=t.intervalPrecision,o=Mh(),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?J(i[0]-n,a):r[0]});for(var d=function(e,t){return So((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=yo(p,i[1]),m===f&&(p=i[1])}if(l.push({value:p}),p=J(p+n,a),s){var h=s.calcNiceTickMultiple(p,d);h>=0&&(p=J(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`&&as(`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?J(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 OT(this,e,Ph(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=Io(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision),vg(J(e.value,n,!0))},t.type=`interval`,t}($w);$w.registerClass(kT);var AT=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},jT=function(e){v(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=iT(r,Nh(r,n),null).brk,r}return t.prototype.getLabel=function(e){return eg(e.value,Gh[$h(Zh(this._minLevelUnit))]||Gh.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return tg(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=sT(this),r=Mh(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return Mh().addBreaksToTicks(o,i.breaks,n),o;o=VT(this._minLevelUnit,this._approxInterval,s,n,uT(this),i);var c=Kh.length-1,l=0;return L(o,function(e){e.time&&(c=Math.min(c,I(Kh,e.time.upperTimeUnit)),l=Math.max(l,e.time.level))}),a&&Mh().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&Mh().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(I(Kh,ng(e.vmin,s)),I(Kh,ng(e.vmax,s))),n=0,r=0;r<Kh.length;r++)if(!NT(Kh[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:l,lowerTimeUnit:Kh[Math.max(i,t)],upperTimeUnit:Kh[i]}}),o},t.prototype.getMinorTicks=function(e){return OT(this,e,Ph(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):+Wo(e)},t.type=`time`,t}($w),MT=[[`second`,Ih],[`minute`,Lh],[`hour`,Rh],[`quarter-day`,Rh*6],[`half-day`,Rh*12],[`day`,zh*1.2],[`half-week`,zh*3.5],[`week`,zh*7],[`month`,zh*31],[`quarter`,zh*95],[`half-year`,Bh/2],[`year`,Bh]];function NT(e,t,n,r){return rg(new Date(t),e,r).getTime()===rg(new Date(n),e,r).getTime()}function PT(e,t){return e/=zh,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function FT(e){var t=30*zh;return e/=t,e>6?6:e>3?3:e>2?2:1}function IT(e){return e/=Rh,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function LT(e,t){return e/=t?Lh:Ih,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function RT(e){return bo(qo(e,!0),1)}function zT(e,t,n){var r=Math.max(0,I(Kh,t)-1);return rg(new Date(e),Kh[r],n).getTime()}function BT(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 VT(e,t,n,r,i,a){var o=qh,s=0;function c(e,t,n,i,o,c,l){for(var u=BT(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`&&as(`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(!NT(Zh(e),r[0],r[1],n)){s&&(i=[{value:zT(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/zh/365)),p=ig(n),m=dg(n);break;case`half-year`:case`quarter`:case`month`:f=FT(t),p=ag(n),m=fg(n);break;case`week`:case`half-week`:case`day`:f=PT(t,31),p=og(n),m=pg(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=IT(t),p=sg(n),m=mg(n);break;case`minute`:f=LT(t,!0),p=cg(n),m=hg(n);break;case`second`:f=LT(t,!1),p=lg(n),m=gg(n);break;case`millisecond`:f=RT(t),p=ug(n),m=_g(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=Zh(o[m]);if(Qh(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Zh(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=_e(R(u,function(e){return _e(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=ng(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}oc(S,sc,null),S.sort(function(e,t){return e.value-t.value});var E=S[0],D=S[S.length-1],O=ng(r[0],n),k=ng(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 HT=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=zh,n[1]+=zh),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]-zh}e.setExtent(n[0],n[1]);var i=TT(t.splitNumber,10),a=uT(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=MT.length,l=Math.min(AT(MT,a,0,c),c-1),u=MT[l][1],d=MT[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})};$w.registerClass(jT);var UT=0,WT=1,GT=2,KT=function(e){v(t,e);function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=kT.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[UT]=i[WT]=a[UT]=a[WT]=NaN,aT(r,t.mapperMethods);var s=Mh(),c=n.breakOption,l={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},GT,l),r.powStub=new kT({breakParsed:l.original}),r.intervalStub=new kT({breakParsed:l.transformed}),oT(r,r.intervalStub),r}return t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=Mh(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return R(i.getTicks(e||{}),function(e){var i=e.value,o=ST(i,t,a),s;if(r){var c=r.getTicksBreakOutwardTransform(this,e,Ph(n),this._lookup);c&&(s=c.vBreak,o=c.tickVal)}return{value:o,break:s}},this)},t.prototype.getMinorTicks=function(e){return OT(this,e,Ph(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(xT(e,this.base))},scale:function(e){return ST(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=xT(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return qT.depth=n,JT.lookup=this._lookup,ST(n===2?e:this.intervalStub.transformOut(e,qT),this.base,JT)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!tc(t,n)||t<=0||n<=0)){var r=YT,i=YT;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[UT]=t,r[WT]=n);var o=this.base;this.intervalStub.setExtent2(e,i[UT]=xT(t,o),i[WT]=xT(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return tc(t[0],t[1])&&$o(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}($w);$w.registerClass(KT);var qT={},JT={},YT=[],XT={value:1,category:1,time:1,log:1},ZT=Ls();function QT(e){var t=e.get(`type`);return(t==null||!Ke(XT,t)&&!$w.getClass(t))&&(t=`value`),t}function $T(e,t,n){var r=Mh(),i;switch(r&&(i=uE(e,t,n)),t){case`category`:return new DT({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ys()});case`time`:return new jT({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:i});case`log`:return new KT({logBase:e.get(`logBase`),breakOption:i});case`value`:return new kT({breakOption:i});default:return new(($w.getClass(t))||kT)({})}}function eE(e,t,n){var r=n?cT(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return tc(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}function tE(e){ZT(e).noOnMyZero=!0}function nE(e){return ZT(e).noOnMyZero}function rE(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=Jh(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(iE(e,n),n.value-e.scale.getExtent()[0],null)};var r=Mh();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(iE(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function iE(e,t){var n=e.scale;return vT(n)?n.getLabel(t):t.value}function aE(e){return e.get(`interval`)??`auto`}function oE(e){return e.type===`category`&&aE(e.getLabelModel())===0}function sE(e,t){var n={};return L(e.mapDimensionsAll(t),function(t){n[qw(e,t)]=!0}),z(n)}function cE(e){return e===`middle`||e===`center`}function lE(e){return e.getShallow(`show`)}function uE(e,t,n){var r=e.get(`breaks`,!0);if(r!=null){if(!Mh()){process.env.NODE_ENV!==`production`&&os('Must `import {AxisBreak} from "echarts/features.js"; use(AxisBreak);` first if using breaks option.');return}if(!n||!dE(t)){process.env.NODE_ENV!==`production`&&os(`Axis`+(e instanceof Z?` `+e.type+`[`+e.componentIndex+`]`:``)+` does not support break.`);return}return r}}function dE(e){return e!==`category`}function fE(e,t,n,r,i,a){var o=_T(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=wT(n,r);t[0]&&!f[0]&&(u=i[0]),t[1]&&!f[1]&&(d=i[1]),c.setExtent(u,d)}s.setConfig(a)}function pE(e,t){return vT(e)?e.getRawOrdinalNumber(t.value):t.value}function mE(e,t){return vT(e)&&!!t.get(`boundaryGap`)}var hE=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),gE=ic(),_E=Ls(),vE=Ls(),yE;process.env.NODE_ENV!==`production`&&(yE=function(e){G(e&&e.model&&e.model.uid&&e.model.ecModel)});function bE(e,t){var n=e.model,r=_E(xx(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function xE(e,t){return process.env.NODE_ENV!==`production`&&(G(t!=null),yE(e)),wE(bE(e,t))}function SE(e,t){process.env.NODE_ENV!==`production`&&yE(e);var n=[];return CE(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(wE(e))}),n}function CE(e,t){var n=_E(xx(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function wE(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function TE(e,t){process.env.NODE_ENV!==`production`&&yE(e);var n=e.model.ecModel,r=_E(xx(n)).axSer;r&&DE(n,r.get(e.model.uid),t)}function EE(e,t,n){process.env.NODE_ENV!==`production`&&(G(t!=null),yE(e));var r=bE(e,t);r&&DE(e.model.ecModel,r.sers,n)}function DE(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function OE(e,t,n){process.env.NODE_ENV!==`production`&&G(t!=null);var r=_E(xx(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 kE(e,t){process.env.NODE_ENV!==`production`&&yE(e);var n=e.model,r=_E(xx(n.ecModel)).keys;r&&L(r.get(n.uid),function(n){if(process.env.NODE_ENV!==`production`){var r=bE(e,n);G(r&&r.sers.length>0)}t(n)})}function AE(e){var t=vE(bx(e)),n=t.keyed||=K();CE(e,function(t,r,i){var a=n.get(r)||n.set(r,K()),o=a.get(i)||a.set(i,{});t.metrics.liPosMinGap&&ME.liPosMinGap(e,t,o)})}function jE(e,t){ME[e]=t}var ME={};function NE(e,t,n){if(e){var r=t.ecModel,i=_E(xx(r)),a=e.model.uid;if(process.env.NODE_ENV!==`production`){yE(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=LE.get(PE(d,f,n))||LE.get(PE(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 PE(e,t,n){return e+`|&`+W(t,!0)+`|&`+(n||``)}function FE(e,t){var n=PE(t.seriesType,t.baseAxis,t.coordSysType);process.env.NODE_ENV!==`production`&&(G(t.seriesType&&t.key&&!IE.get(t.key)&&!LE.get(n)),IE.set(t.key,1)),LE.set(n,t),gE(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:AE})})}var IE;process.env.NODE_ENV!==`production`&&(IE=K());var LE=K(),RE=Ls(),zE=3,BE=function(){function e(e,t,n,r,i){var a=vT(e),o=a?t.getCategories().length:null,s;if(a){var c=t.getCategories(!0);s=c&&!c.length}var l=n.slice();(hT(e)||_T(e)||gT(e))&&(Zs(l,HE(e,t.get(`dataMin`,!0))),Qs(l,HE(e,t.get(`dataMax`,!0)))),nc(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]=HE(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]=HE(e,V(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=UE(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,!ec(u[0])&&(u[0]=NaN),!ec(u[1])&&(u[1]=NaN);var g=s||Ae(u[0])||Ae(u[1])||a&&!o,_=hT(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=HE(e,t.get(`startValue`,!0)),x=b!=null;!$o(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),$o(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)),VE(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),VE(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 VE(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),rc(t))}function HE(e,t){return t==null?null:Ae(t)?NaN:e.parse(t)}function UE(e,t){var n;if(vT(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[WE(n[0]),WE(n[1])]}function WE(e){return za(typeof e==`boolean`?0:e,1)||0}function GE(e){var t=RE(e.scale);return t.extent||=Ys(),t}function KE(e,t){GE(e).dimIdxInCoord=t.get(e.dim)}function qE(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}JE(n,e,i,r,t)}function JE(e,t,n,r,i){var a=GE(t),o=a.extent,s=!1;TE(t,function(r){if(r.boxCoordinateSystem){var i=Ng(r).coord,c=a.dimIdxInCoord;if(!(c>=0))process.env.NODE_ENV!==`production`&&os(`Property "series.coord" is not supported on axis `+r.boxCoordinateSystem.type+`.`);else if(B(i)){var l=i[c];l!=null&&!B(l)&&Xs(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;L(sE(u,n),function(e){$s(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=eD(e,t,r);XE(e,new BE(e,r,o,s,c),i),a.extent=null}function YE(e,t){var n=e.scale;process.env.NODE_ENV!==`production`&&G(!n.rawExtentInfo),XE(n,new BE(n,e.model,t,!1,!1),zE)}function XE(e,t,n){e.rawExtentInfo=t,t.from=n}function ZE(e,t){process.env.NODE_ENV!==`production`&&G(!QE.get(e)),QE.set(e,t)}var QE=K();function $E(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(!i||!e.rawExtentInfo),e.rawExtentInfo||YE({scale:e,model:t},i||Ys());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 eD(e,t,n){var r=mE(e,n),i=n.get(`containShape`,!0);if(i==null&&!r&&(i=!0),!i)return!1;var a=!1;return kE(t,function(e){a=!!QE.get(e)||a}),a}function tD(e,t,n,r){if(n.ctnShp){var i;if(kE(e,function(t){var n=QE.get(t);if(n){var a=n(e,r);a&&(i||=[0,0],Zs(i,a[0]),Qs(i,a[1]),tE(e))}}),i){var a=t.getExtent();if(vT(t))e.onBand||t.setExtent2(1,yo(a[0],a[0]+i[0]),bo(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=yo(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=bo(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 nD(e,t){var n=_T(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=CT(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?iD(r,t):rD(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=bT(d)),i[0]||(s[0]=J(Co(s[0]/u)*u,l)),i[1]||(s[1]=J(wo(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),fE(e,i,o,s,a,c)}function rD(e,t){var n=TT(t.splitNumber,5),r=uT(e);process.env.NODE_ENV!==`production`&&G(isFinite(r)&&r>0);var i=t.minInterval,a=t.maxInterval,o=qo(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=bT(o),c=e.getExtent(),l=[J(wo(c[0]/o)*o,s),J(Co(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}function iD(e,t){var n=TT(t.splitNumber,10),r=e.getExtent(),i=uT(e);process.env.NODE_ENV!==`production`&&G(isFinite(i)&&i>0);var a=bo(Go(i),1);n/i*a<=.5&&(a*=10);var o=bT(a),s=[J(wo(r[0]/a)*a,o),J(Co(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}function aD(e){var t=e.scale,n=e.model,r=n.axis,i=n.ecModel;process.env.NODE_ENV!==`production`&&G(r&&i),oD(t,n,r,i,null)}function oD(e,t,n,r,i){var a=$E(e,t,r,n,i),o=hT(e)||gT(e);sD(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&&tD(n,e,a,r),process.env.NODE_ENV!==`production`&&e.freeze()}function sD(e,t){cD[e.type](e,t)}var cD={interval:nD,log:nD,time:HT,ordinal:qe},lD=[],uD={registerPreprocessor:GC,registerProcessor:KC,registerPostInit:qC,registerPostUpdate:JC,registerUpdateLifecycle:YC,registerAction:XC,registerCoordinateSystem:ZC,registerLayout:QC,registerVisual:$C,registerTransform:iw,registerLoading:nw,registerMap:rw,registerImpl:px,PRIORITY:KS,ComponentModel:Z,ComponentView:lb,SeriesModel:eb,ChartView:pb,registerComponentModel:function(e){Z.registerClass(e)},registerComponentView:function(e){lb.registerClass(e)},registerSeriesModel:function(e){eb.registerClass(e)},registerChartView:function(e){pb.registerClass(e)},registerCustomSeries:function(e,t){gx(e,t)},registerSubTypeDefaulter:function(e,t){Z.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){fo(e,t)}};function dD(e){if(B(e)){L(e,function(e){dD(e)});return}I(lD,e)>=0||(lD.push(e),V(e)&&(e={install:e}),e.install(uD))}var fD=Ls(),pD=Ls(),mD={estimate:1,determine:2};function hD(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function gD(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:R(vD(n,r),function(t,n){return{formattedLabel:rE(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?yD(e,t):SD(e)}function _D(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:vD(i,r)}:e.type===`category`?xD(e,t):{ticks:r.getTicks(n)}}function vD(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)}),oc(r,cc,null),Fo(r),R(r,function(e){return{value:e}})}function yD(e,t){var n=e.getLabelModel(),r=bD(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function bD(e,t,n){var r=wD(e),i=aE(t),a=n.kind===mD.estimate;if(!a){var o=ED(r,i);if(o)return o}var s,c;V(i)?s=ND(e,i,!1):(c=i===`auto`?OD(e,n):i,s=ND(e,c,!1));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return DD(r,i,l),!0}):DD(r,i,l),l}function xD(e,t){var n=CD(e),r=aE(t),i=ED(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),V(r))a=ND(e,r,!0);else if(r===`auto`){var s=bD(e,e.getLabelModel(),hD(mD.determine));o=s.labelCategoryInterval,a=R(s.labels,function(e){return e.tick})}else o=r,a=ND(e,o,!0);return DD(n,r,{ticks:a,tickCategoryInterval:o})}function SD(e){var t=e.scale.getTicks(),n=rE(e);return{labels:R(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}var CD=TD(`axisTick`),wD=TD(`axisLabel`);function TD(e){return function(t){return pD(t)[e]||(pD(t)[e]={list:[]})}}function ED(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function DD(e,t,n){return e.list.push({key:t,value:n}),n}function OD(e,t){if(t.kind===mD.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return pD(e).autoInterval=n,!0}),n}return pD(e).autoInterval??(pD(e).autoInterval=e.calculateCategoryInterval(t))}function kD(e,t){var n=t.kind,r=MD(e),i=rE(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===mD.estimate?(t.out.noPxChangeTryDetermine.push(be(AD,null,e,S,c)),S):jD(e,S,c)??S}function AD(e,t,n){return jD(e,t,n)==null}function jD(e,t,n){var r=fD(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 MD(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 ND(e,t,n){var r=rE(e),i=e.scale,a=[],o=V(t);return ET(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 PD=.8;function FD(e,t){t||={};var n={w:NaN,w2:NaN},r=e.scale,i=t.fromStat,a=t.min,o=lT(r);$o(o)||(o=NaN);var s=e.getExtent(),c=xo(s[1]-s[0]);return vT(r)?ID(n,e,o,c):i?LD(n,e,o,c,i):a==null&&process.env.NODE_ENV!==`production`&&G(!1),a!=null&&(n.w=$o(n.w)?bo(a,n.w):a),n}function ID(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 LD(e,t,n,r,i){process.env.NODE_ENV!==`production`&&G(i);var a=!1,o=-1/0;L(i.key?[xE(t,i.key)]:SE(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),$o(n)&&n>0&&$o(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=r*PD,e.w2=e.w*n/r)}var RD=[0,1],zD=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,BD(this),t)},e.prototype.coordToData=function(e,t){var n=Ao(e,BD(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(_D(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,function(e){return{coord:this.dataToCoord(pE(this.scale,e)),tick:e}},this),r=t.get(`alignWithLabel`),i=VD(this,n,r);return R(n,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(vT(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||=hD(mD.determine),gD(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 FD(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return e||=hD(mD.determine),kD(this,e)},e}();function BD(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 VD(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=FD(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 HD=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],UD=1,WD=2,GD=UD|WD;function KD(e,t,n){n||=GD,t?e.dirty|=n:e.dirty&=~n}function qD(e,t){return t||=GD,e.dirty==null||!!(e.dirty&t)}function JD(e){if(e)return qD(e)&&YD(e,e.label,e),e}function YD(e,t,n){var r=t.getComputedTransform();e.transform=jm(e.transform,r);var i=e.localRect=Am(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=nh.textMargin);for(var d=0;d<4;d++)XD[d]=u===nh.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===nh.textMargin&&Sm(i,XD,!1,!1);var f=e.rect=Am(e.rect,i);return r&&f.applyTransform(r),u===nh.minMargin&&Sm(f,XD,!1,!1),e.axisAligned=Om(r),(e.label=e.label||{}).ignore=t.ignore,KD(e,!1),KD(e,!0,WD),e}var XD=[0,0,0,0];function ZD(e,t,n){return e.transform=jm(e.transform,n),e.localRect=Am(e.localRect,t),e.rect=Am(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Om(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function QD(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 $D(e,t){for(var n=0;n<HD.length;n++){var r=HD[n];e[r]??(e[r]=t[r])}return JD(e)}function eO(e){var t=e.obb;return(!t||qD(e,WD))&&(e.obb=t||=new Mp,t.fromBoundingRect(e.localRect,e.transform),KD(e,!1,WD)),t}function tO(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=JD(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(nO(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function nO(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:eO(e).intersect(eO(t),n,r)}var rO={left:0,right:0,top:0,bottom:0},iO=[`25%`,`25%`],aO=`cartesian2d`,oO=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(t,n){var r=Jg(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&qg(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&qg(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:rO,outerBoundsContain:`all`,outerBoundsClampWidth:iO[0],outerBoundsClampHeight:iO[1],backgroundColor:Q.color.transparent,borderWidth:1,borderColor:Q.color.neutral30},t}(Z),sO=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,Vs).models[0]},t.type=`cartesian2dAxis`,t}(Z);me(sO,hE);var cO={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`}},lO=N({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},cO),uO=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}}},cO),dO={category:lO,value:uO,time:N({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},uO),log:F({logBase:10},uO)},fO=null;function pO(){return fO}function mO(e,t,n,r){L(XT,function(i,a){var o=N(N({},dO[a],!0),r,!0),s=function(e){v(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=Kg(this),r=n?Jg(e):{};N(e,t.getTheme().get(a+`Axis`)),N(e,this.getDefaultOption()),e.type=hO(e),n&&qg(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=tT.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=pO();return t?t.updateModelAxisBreak(this,e):{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,hO)}function hO(e){return e.type||(e.data?`category`:`value`)}var gO=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(),_e(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}(),_O=[`x`,`y`];function vO(e){return(e.type===`interval`||e.type===`time`)&&!Fh(e)}var yO=function(e){v(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=aO,t.dimensions=_O,t}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(!(!vO(e)||!vO(t))){var n=cT(e,null),r=cT(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=Qt([],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 ut(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 ut(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}(gO),bO=function(e){v(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}(zD),xO=`expandAxisBreak`,SO=Math.PI,CO=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],wO=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],TO=Ls(),EO=Ls(),DO=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 OO(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=QO(e.axisName)&&cE(e.nameLocation);L(r,function(e){var t=JD(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?Qt(kO,n.transform):Kt(kO),t.transform&&Jt(kO,kO,t.transform),q.copy(AO,t.localRect),AO.applyTransform(kO),s?s.union(AO):q.copy(s=new q(0,0,0,0),AO))}});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 kO=Gt(),AO=new q(0,0,0,0),jO=function(e,t,n,r,i,a){if(cE(e.nameLocation)){var o=a.stOccupiedRect;o&&MO(ZD({},o,a.transGroup.transform),r,i)}else NO(a.labelInfoList,a.dirVec,r,i)};function MO(e,t,n){var r=new $t;nO(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&QD(t,r)}function NO(e,t,n,r){for(var i=$t.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||MO(s,n,r)}}var PO=function(){function e(e,t,n,r){this.group=new io,this._axisModel=e,this._api=t,this._local={},this._shared=r||new DO(jO),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:Me(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:QO(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 io({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 $t(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(FO,function(r){e[r]&&IO[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 Ho(r)?(a=n>0?`top`:`bottom`,i=`center`):Ho(r-SO)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<SO?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}(),FO=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],IO={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&&(ut(d,d,u),ut(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`])&&Fh(r.axis.scale))pO().buildAxisBreakLine(r,i,a,h);else{var g=new pp(P({shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]}},h));om(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=Px(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=Mx(_[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}GO(t,i,s)&&LO(e,t,n,r,i,a,o,mD.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}GO(t,i,s)&&LO(e,t,n,r,i,a,o,mD.determine);var l=UO(e,i,a,r);BO(e,t.labelLayoutList,l),WO(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(QO(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 $t(0,0),v=new $t(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=Gt();v.transform(Xt(y,y,e.rotation));var b=r.get(`nameRotate`);b!=null&&(b=b*SO/180);var x,S;cE(d)?x=PO.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=je(e.raw.nameTruncateMaxWidth,w.maxWidth,S),D=s.nameMarginLevel||0,O=new Nu({x:_.x,y:_.y,rotation:x.rotation,silent:PO.isLabelSilent(r),style:Gm(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(Tm({el:O,componentModel:r,itemName:u}),O.__fullText=u,O.anid=`name`,r.get(`triggerEvent`)){var k=PO.makeAxisEventDataBase(r);k.targetType=`axisName`,k.name=u,X(O).eventData=k}a.add(O),O.updateTransform(),t.nameEl=O;var A=c.nameLayout=JD({label:O,priority:O.z2,defaultAttr:{ignore:O.ignore},marginDefault:cE(d)?CO[D]:wO[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 LO(e,t,n,r,i,a,o,s){qO(t)||KO(e,t,i,s,r,o);var c=t.labelLayoutList;YO(e,r,c,a),ek(r,e.rotation,c);var l=e.optionHideOverlap;zO(r,c,l),l&&tO(_e(c,function(e){return e&&!e.label.ignore})),OO(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 Ho(i-SO/2)?(o=c?`bottom`:`top`,a=`center`):Ho(i-SO*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<SO*1.5&&i>SO/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function zO(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(oE(r))return;function a(e,a,o){var s=JD(t[a]),c=JD(t[o]),l=r.scale;if(!(!s||!c)){if(e==null){if(!n&&i)return;var u=TO(s.label).labelInfo.tick;if(gT(l)&&u.notNice||vT(l)&&u.offInterval){VO(s.label);return}}if(e===!1||s.suggestIgnore){VO(s.label);return}if(c.suggestIgnore){VO(c.label);return}var d=.1;if(!n){var f=[0,0,0,0];s=$D({marginForce:f},s),c=$D({marginForce:f},c)}nO(s,c,null,{touchThreshold:d})&&VO(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 BO(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=EO(r),a=TO(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value){VO(r);return}}})}function VO(e){e&&(e.ignore=!0)}function HO(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&&(ut(o,o,t),ut(s,s,t));var u=new pp({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});om(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=EO(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function UO(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=HO(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 WO(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=HO(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function GO(e,t,n){if(qO(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),JO(e,null,null,null))}return!0}function KO(e,t,n,r,i,a){var o=i.axis,s=je(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new io;n.add(c);var l=hD(r);if(!s||o.scale.isBlank()){JO(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(je(e.raw.labelRotate,u.get(`rotate`))||0)*SO/180,p=PO.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=pE(o.scale,n);if(m&&m[f]){var y=m[f];U(y)&&y.textStyle&&(l=new ph(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 Nu({x:0,y:0,rotation:0,silent:PO.isLabelSilent(i),z2:D,style:Gm(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=TO(O);if(k.labelInfo=e,k.layoutRotation=p.rotation,Tm({el:O,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return O.isTruncated},value:s,tickIndex:t}}),g){var A=PO.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),X(O).eventData=A,j&&$O(i,a,O,j)}h.push(O),c.add(O)}),JO(t,R(h,function(e){return{label:e,priority:TO(e).labelInfo.tick.break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function qO(e){return!!e.labelLayoutList}function JO(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function YO(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);L(n,function(n,a){var o=JD(n);if(o){var s=o.label,c=TO(s);o.suggestIgnore=s.ignore,s.ignore=!1,Ea(XO,ZO);var l=t.axis;XO.x=l.dataToCoord(pE(l.scale,c.labelInfo.tick)),XO.y=e.labelOffset+e.labelDirection*i,XO.rotation=c.layoutRotation,r.add(XO),XO.updateTransform(),r.remove(XO),XO.decomposeTransform(),Ea(s,XO),s.markRedraw(),KD(o,!0),JD(o)}})}var XO=new Ou,ZO=new Ou;function QO(e){return!!e}function $O(e,t,n,r){n.on(`click`,function(n){var i={type:xO,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function ek(e,t,n){var r=Mh();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&TO(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&L(i,function(r){pO().adjustBreakLabelPair(e.axis.inverse,t,[JD(n[r[0]]),JD(n[r[1]])])})}}function tk(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),je(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 nk(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function rk(e){var t={xAxisModel:null,yAxisModel:null};return L(t,function(n,r){var i=r.replace(/Model$/,``),a=e.getReferringComponents(i,Vs).models[0];if(process.env.NODE_ENV!==`production`&&!a)throw Error(i+` "`+Me(e.get(i+`Index`),e.get(i+`Id`),0)+`" not found`);t[r]=a}),t}function ik(e,t,n,r,i,a){for(var o=tk(e,n),s=!1,c=!1,l=0;l<t.length;l++)mT(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 PO(n,r,o,i)}function ak(e,t,n){var r=tk(t,n);if(process.env.NODE_ENV!==`production`){var i=e.__getRawCfg();L(z(r),function(e){e!==`position`&&e!==`labelOffset`&&G(r[e]===i[e])})}e.updateCfg(r)}function ok(e){return e.dim+`_`+e.index}function sk(e,t){var n=e.scale,r=e.model;process.env.NODE_ENV!==`production`&&G(n&&r&&(n instanceof kT||n instanceof KT)&&(t instanceof kT||t instanceof KT));var i=$E(n,r,r.ecModel,e,null),a=_T(n),o=_T(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(!Fh(t)&&!Fh(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=xo(l[0].value-l[1].value),g=xo(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=CT(S,b),w,T,E,D,O,k;function A(e){for(var t=50,n=0;n<t&&!e();n++)E=a?E*bo(c,2):yT(E),D=bT(E);process.env.NODE_ENV!==`production`&&n>=t&&as("incorrect impl in `scaleCalcAlign`.")}function j(){w=J(k-E*f,D)}function ee(){T=J(O+E*p,D)}function te(){k=f?J(w+E*f,D):w}function ne(){O=p?J(T-E*p,D):T}if(b[0]&&b[1]){w=C[0],T=C[1],E=(T-w)/(m+f+p);var re=e.getExtent(),ie=xo(re[1]-re[0]);D=Ro([T,w],ie,.5/m),te(),ne(),$o(D)&&(E=J(E,D))}else{var ae=C[1]-C[0];E=a?bo(Go(ae),1):qo(ae/m,2),D=bT(E),b[0]?(w=C[0],A(function(){if(te(),O=J(k+E*m,D),ee(),T>=C[1])return!0})):b[1]?(T=C[1],A(function(){if(ne(),k=J(O-E*m,D),j(),w<=C[0])return!0})):A(function(){k=J(wo(C[0]/E)*E,D),O=J(Co(C[1]/E)*E,D);var e=So((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=Co(t/2);n=t%2==0?[o,o]:w+T<C[0]+C[1]?[o,o+1]:[o+1,o]}if(k=J(k-E*n[0],D),O=J(O+E*n[1],D),j(),ee(),w<=C[0]&&T>=C[1])return!0}})}fE(n,b,S,[w,T],x,{interval:E,intervalCount:m,intervalPrecision:D,niceExtent:[k,O]}),process.env.NODE_ENV!==`production`&&n.freeze()}var ck=[[3,1],[0,2]],lk=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_O,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){qE(e,1);var t=e.scale;vT(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))});function r(e){for(var t=z(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):aD(i)}L(n,function(e){mk(e,e.__alignTo)?aD(e):sk(e,e.__alignTo.scale)})}r(n.x),r(n.y);var i={};L(n.x,function(e){dk(n,`y`,e,i)}),L(n.y,function(e){dk(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=Wg(e,t),i=this._rect=Hg(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(gk(a,i),!n){var c=bk(i,o,a,s,t),l=void 0;if(s)vk?(vk(this._axesList,i),gk(a,i)):(process.env.NODE_ENV!==`production`&&is("Specified `grid.containLabel` but no `use(LegacyGridContainLabel)`;use `grid.outerBounds` instead.",!0),l=yk(i.clone(),`axisLabel`,null,i,a,c,r));else{var u=Sk(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=yk(d,f,p,i,a,c,r))}xk(i,a,mD.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]}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`,Vs).models[0],r=e.yAxisModel||t&&t.getReferringComponents(`yAxis`,Vs).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 yO(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),pk(o.x),pk(o.y);function c(t){return function(n,r){if(uk(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=QT(n),u=new bO(t,$T(n,l,!0),[0,0],l,c);u.onBand=mE(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){KE(t,e.dimIdxMap)})}),t.eachSeries(function(e){var t,n;Fg({targetModel:e,coordSysType:aO,coordSysProvider:r});function r(){var r=rk(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 "`+Me(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&&(NE(t,e,aO),NE(n,e,aO))},this),r},e.dimensions=_O,e.dimIdxMap=yw(_O),e}();function uk(e,t){return e.getCoordSysModel()===t}function dk(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)fk(s,i[c])&&(a=i[c]);else for(var l in i)if(Ke(i,l)&&fk(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 fk(e,t){if(!t)return!1;var n=t.scale,r=eE(n,0,!1),i=t&&t.type!==`category`&&t.type!==`time`&&r!==3;return i&&e===`auto`&&nE(t)&&(i=!1),i}function pk(e){for(var t=z(e),n,r=[],i=t.length-1;i>=0;i--){var a=e[+t[i]];mT(a.scale)&&uE(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 mk(e,t){return Fh(e.scale)||Fh(t.scale)||t.scale.getTicks().length<2}function hk(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 gk(e,t){L(e.x,function(e){return _k(e,t.x,t.width)}),L(e.y,function(e){return _k(e,t.y,t.height)})}function _k(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),hk(e,t)}var vk;function yk(e,t,n,r,i,a,o){process.env.NODE_ENV!==`production`&&G(t===`all`||t===`axisLabel`),xk(r,i,mD.estimate,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=ve(s,function(e){return e>0})==null;return Sm(r,s,!0,!0,n),gk(i,r),c;function l(e){L(i[Jp[e]],function(t){if(lE(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(pE(t.scale,TO(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=cE(n.nameLocation)?.5:NaN;u(c.rect,e,s),u(c.rect,1-e,NaN)}}})}function u(t,n,r){var i=e[Jp[n]]-t[Jp[n]],a=t[Yp[n]]+t[Jp[n]]-(e[Yp[n]]+e[Jp[n]]);i=d(i,1-r),a=d(a,r);var o=ck[n][0],c=ck[n][1];s[o]=bo(s[o],i),s[c]=bo(s[c],a)}function d(e,t){return e>0&&!Ae(t)&&t>1e-4&&(e/=t),e}}function bk(e,t,n,r,i){var a=new DO(Ck);return L(n,function(n){return L(n,function(n){if(lE(n.model)){var o=!r;n.axisBuilder=ik(e,t,n.model,i,a,o)}})}),a}function xk(e,t,n,r,i,a){var o=n===mD.determine;L(t,function(t){return L(t,function(t){lE(t.model)&&(ak(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[Jp[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){lE(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}function Sk(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i==null||i===`auto`?r=Hg(e.get(`outerBounds`,!0)||rO,n.refContainer):i!==`none`&&process.env.NODE_ENV!==`production`&&os(`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`&&os(`Invalid grid[`+e.componentIndex+`].outerBoundsContain.`),o=`all`):o=a;var s=[No(W(e.get(`outerBoundsClampWidth`,!0),iO[0]),t.width),No(W(e.get(`outerBoundsClampHeight`,!0),iO[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var Ck=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;jO(e,t,n,r,i,a),cE(e.nameLocation)||L(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&NO(e.labelInfoList,e.dirVec,r,i)})};function wk(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Tk(n,e,t),n.seriesInvolved&&Dk(n,e),n}function Tk(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=Pk(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(L(n.getAxes(),xe(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,xe(p,!d||`cross`,u)),d&&L(f.otherAxes,xe(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!Nk(d))){s??=d.get(`triggerTooltip`),d=r?Ek(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Pk(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:Nk(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Ok(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Ek(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 ph(c,n,r))}function Dk(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[Pk(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 Ok(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(kk(a[r+`AxisId`],n.id)||kk(a[r+`AxisIndex`],n.componentIndex)||kk(a[r+`AxisName`],n.name))return i}}function kk(e,t){return e===`all`||B(e)&&I(e,t)>=0||e===t}function Ak(e){var t=jk(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=Nk(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 jk(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[Pk(e)]}function Mk(e){var t=jk(e);return t&&t.axisPointerModel}function Nk(e){return!!e.get([`handle`,`show`])}function Pk(e){return e.type+`||`+e.id}var Fk={},Ik=function(e){v(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&&Ak(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=Mk(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`&&Fk[e])throw Error(`axisPointer `+e+` exists`);Fk[e]=t},t.getAxisPointerClass=function(e){return e&&Fk[e]},t.type=`axis`,t}(lb),Lk=Ls();function Rk(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=Lk(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 Ou({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}Lk(e).splitAreaColors=f}}}function zk(e){Lk(e).splitAreaColors=null}var Bk=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],Vk=function(e){v(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 io,this.group.add(this._axisGroup),lE(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),L(Bk,function(e){t.get([e,`show`])&&Hk[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||mm(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){zk(this)},t.type=`cartesianAxis`,t}(Ik),Hk={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 pp({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});om(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 pp({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});om(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){Rk(e,t,n,r)},breakArea:function(e,t,n,r,i){var a=pO(),o=n.axis.scale;a&&o.type!==`ordinal`&&a.rectCoordBuildBreakAxis(t,e,n,r.coordinateSystem.getRect(),i)}},Uk=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`xAxis`,t}(Vk),Wk=function(e){v(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Uk.type,t}return t.type=`yAxis`,t}(Vk),Gk=function(e){v(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 Ou({shape:e.coordinateSystem.getRect(),style:F({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(lb),Kk={offset:0};function qk(e){e.registerComponentView(Gk),e.registerComponentModel(oO),e.registerCoordinateSystem(`cartesian2d`,lk),mO(e,`x`,sO,Kk),mO(e,`y`,sO,Kk),e.registerComponentView(Uk),e.registerComponentView(Wk),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Jk=Ls(),Yk=M,Xk=be,Zk=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 io,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=xe(Qk,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}nA(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&&FD(r).w>o)return!0;if(a){var s=jk(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=Jk(e).pointerEl=new Kp[i.type](Yk(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=Jk(e).labelEl=new Nu(Yk(t.label));e.add(i),eA(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=Jk(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=Jk(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),eA(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=_m(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){Bt(e.event)},onmousedown:Xk(this._onHandleDragMove,this,0,0),drift:Xk(this._onHandleDragMove,this),ondragend:Xk(this._onHandleDragEnd,this)}),n.add(r)),nA(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,Cb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){Qk(this._axisPointerModel,!t&&this._moveAnimation,this._handle,tA(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(tA(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(tA(r)),Jk(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),wb(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 Qk(e,t,n,r){$k(Jk(n).lastProp,r)||(Jk(n).lastProp=r,t?Rp(n,r,e):(n.stopAnimation(),n.attr(r)))}function $k(e,t){if(U(e)&&U(t)){var n=!0;return L(t,function(t,r){n&&=$k(e[r],t)}),!!n}return e===t}function eA(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function tA(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function nA(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 rA(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 iA(e,t,n,r,i){var a=oA(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=bg(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),aA(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:Gm(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function aA(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 oA(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:iE(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)}),H(o)?a=o.replace(`{value}`,a):V(o)&&(a=o(s))}return a}function sA(e,t,n){var r=Gt();return Xt(r,r,n.rotation),Yt(r,r,n.position),um([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function cA(e,t,n,r,i,a){var o=PO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),iA(t,r,i,a,{position:sA(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function lA(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function uA(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function dA(e,t,n){return FD(e,{fromStat:{sers:R(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}function fA(e,t,n){return[bo(yo(t[0],t[1]),e-n/2),yo(e+n/2,bo(t[0],t[1]))]}var pA=function(e){v(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=mA(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=rA(r),f=hA[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}cA(t,e,tk(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=tk(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=sA(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=mA(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=yo(o[1],l[c]),l[c]=bo(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}(Zk);function mA(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var hA={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:lA([t,r[0]],[t,r[1]],gA(e))}},shadow:function(e,t,n,r,i,a){var o=dA(e,i,a),s=r[1]-r[0],c=fA(t,n,o),l=c[0],u=c[1];return{type:`Rect`,shape:uA([l,r[0]],[u-l,s],gA(e))}}};function gA(e){return e.dim===`x`?0:1}var _A=function(e){v(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}(Z),vA=Ls(),yA=L;function bA(e,t,n){if(!b.node){var r=t.getZr();vA(r).records||(vA(r).records={}),xA(r,t);var i=vA(r).records[e]||(vA(r).records[e]={});i.handler=n}}function xA(e,t){if(vA(e).initialized)return;vA(e).initialized=!0,n(`click`,xe(wA,`click`)),n(`mousemove`,xe(wA,`mousemove`)),n(`mousewheel`,xe(wA,`mousewheel`)),n(`globalout`,CA);function n(n,r){e.on(n,function(n){var i=TA(t);yA(vA(e).records,function(e){e&&r(e,n,i.dispatchAction)}),SA(i.pendings,t)})}}function SA(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 CA(e,t,n){e.handler(`leave`,null,n)}function wA(e,t,n,r){t.handler(e,n,r)}function TA(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 EA(e,t){if(!b.node){var n=t.getZr();(vA(n).records||{})[e]&&(vA(n).records[e]=null)}}var DA=function(e){v(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`;bA(`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){EA(`axisPointer`,t)},t.prototype.dispose=function(e,t){EA(`axisPointer`,t)},t.type=`axisPointer`,t}(lb);function OA(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=Is(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(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 kA=Ls();function AA(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||be(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){BA(i)&&(i=OA({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=BA(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||BA(i),f={},p={},m={list:[],map:{}},h={showPointer:xe(NA,p),showTooltip:xe(PA,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=RA(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&jA(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,zA(t),zA(e)))),g[e.key]=a}})}),L(g,function(e,t){jA(u[t],e,h,!0,f)}),FA(p,u,f),IA(m,i,e,o),LA(u,o,n),f}}function jA(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=MA(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 MA(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($o(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 NA(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function PA(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=Pk(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 FA(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 IA(e,t,n,r){if(BA(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 LA(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=kA(r)[i]||{},o=kA(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 RA(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 zA(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 BA(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function VA(e){Ik.registerAxisPointerClass(`CartesianAxisPointer`,pA),e.registerComponentModel(_A),e.registerComponentView(DA),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=wk(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},AA)}function HA(e){dD(qk),dD(VA)}var UA=typeof Float32Array<`u`?Float32Array:void 0,WA=typeof Float64Array<`u`?Float64Array:void 0;function GA(e){return KA({ctor:UA},e).arr}function KA(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>Bo&&(t=Bo),!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`&&os(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 qA(){jE(`liPosMinGap`,JA)}function JA(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=ny(u);function f(n){DE(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}KA(YA,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||ry(d,a))&&(l&&(a=c.transformIn(a,null)),YA.arr[m++]=a)}});var h=YA.typed?YA.arr.subarray(0,m):(YA.arr.length=m,YA.arr);YA.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=$o(g)?g:m>0?-2:-1,n.serUids=r}var YA=KA({ctor:WA},50);function XA(e){return function(t,n){var r=FD(t,{fromStat:{key:e}});if($o(r.w2))return[-r.w2/2,r.w2/2]}}function ZA(e,t){return e+`|&`+t}function QA(e){return qA(),{liPosMinGap:!vT(e.scale)}}function $A(e,t,n,r){FE(e,{key:t,seriesType:n,coordSysType:r,getMetrics:QA})}function ej(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return process.env.NODE_ENV!==`production`&&G($o(t)),t}function tj(e){return e}var nj=`view`;(function(e){v(t,e);function t(t,n,r){var i=e.call(this)||this;i.type=nj,i.dimensions=[`x`,`y`];var a=tj(i);a.invertY=t,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[0]=wa(),o[1]=wa(),o[2]=wa(),a.mtRaw=Gt(),a.mtRawInv=Gt(),a.mtOverall=Gt(),a.mtOverallInv=Gt(),a.zoom=1,i}return t.prototype.getBoundingRect=function(){return aj(null,this)},t.prototype.getViewRect=function(){return oj(null,this)},t.prototype.getRoamTransform=function(){return Ca(tj(this).trans[1])},t.prototype.dataToPoint=function(e,t,n){var r=t?tj(this).mtRaw:tj(this).mtOverall;return n||=[],r?ut(n,e,r):Xe(n,e)},t.prototype.pointToData=function(e,t,n){n||=[];var r=tj(this).mtOverallInv;return r?ut(n,e,r):Xe(n,e)},t.prototype.convertToPixel=function(e,t,n){var r=sj(t);return r===this?r.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,t,n){var r=sj(t);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(e){var t=tj(this);return gn(rj,t.dataRect),vn(rj,rj,t.mtOverall),yn(rj,e[0],e[1])},t.dimensions=[`x`,`y`],t})(Sa);var rj=mn();function ij(e,t){return qt(e||[],tj(t).mtOverall)}function aj(e,t){return gn(e||mn(),tj(t).dataRect)}function oj(e,t){return gn(e||mn(),tj(t).viewRect)}mn();function sj(e){var t=e.seriesModel;return t?t.coordinateSystem:null}wa(),wa();var cj=Ls();function lj(e,t,n){cj(e)[t]=n}function uj(e,t,n){var r=cj(e);r[t]===n&&(r[t]=null)}XC({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},qe);var dj={axisPointer:1,tooltip:1,brush:1};function fj(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||dj.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Mm(r),o=Mm(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}function pj(e,t,n,r,i,a){e||=0;var o=zo(n[1],-n[0]);if(i!=null&&(i=hj(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(zo(t[1],-t[0]));s=hj(s,[0,o]),i=a=hj(s,[i,a]),r=0}t[0]=hj(t[0],n),t[1]=hj(t[1],n);var c=mj(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]=zo(u[0],l):u[1]=zo(u[1],-l),t[r]=hj(t[r],u);var d=mj(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=zo(t[r],c.sign*i)),d=mj(t,r),a!=null&&d.span>a&&(t[1-r]=zo(t[r],d.sign*a)),t}function mj(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function hj(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var gj=!0,_j=Math.min,vj=Math.max,yj=Math.pow,bj=1e4,xj=6,Sj=6,Cj=`globalPan`,wj={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Tj={w:`ew`,e:`ew`,n:`ns`,s:`ns`,ne:`nesw`,sw:`nesw`,nw:`nwse`,se:`nwse`},Ej={brushStyle:{lineWidth:2,stroke:Q.color.backgroundTint,fill:Q.color.borderTint},transformable:!0,brushMode:`single`,removeOnClick:!1},Dj=0,Oj=function(e){v(t,e);function t(t){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},process.env.NODE_ENV!==`production`&&G(t),n._zr=t,n.group=new io,n._uid=`brushController_`+Dj++,L(oM,function(e,t){this._handlers[t]=be(e,this)},n),n}return t.prototype.enableBrush=function(e){return process.env.NODE_ENV!==`production`&&G(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var t=this._zr;this._enableGlobalPan||lj(t,Cj,this._uid),L(this._handlers,function(e,n){t.on(n,e)}),this._brushType=e.brushType,this._brushOption=N(M(Ej),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;uj(e,Cj,this._uid),L(this._handlers,function(t,n){e.off(n,t)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var t=this._panels={};L(e,function(e){t[e.panelId]=M(e)})}else this._panels=null;return this},t.prototype.mount=function(e){e||={},process.env.NODE_ENV!==`production`&&(this._mounted=!0),this._enableGlobalPan=e.enableGlobalPan;var t=this.group;return this._zr.add(t),t.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=t.getLocalTransform(),this},t.prototype.updateCovers=function(e){process.env.NODE_ENV!==`production`&&G(this._mounted),e=R(e,function(e){return N(M(Ej),e,!0)});var t=`\0-brush-index-`,n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new cw(n,e,s,o).add(c).update(c).remove(l).execute(),this;function o(e,n){return(e.id==null?t+n:e.id)+`-`+e.brushType}function s(e,t){return o(e.__brushOption,t)}function c(t,o){var s=e[t];o!=null&&n[o]===a?r[t]=n[o]:Nj(i,r[t]=o==null?Aj(i,kj(i,s)):(n[o].__brushOption=s,n[o]))}function l(e){n[e]!==a&&i.group.remove(n[e])}},t.prototype.unmount=function(){if(!(process.env.NODE_ENV!==`production`&&!this._mounted))return this.enableBrush(!1),Lj(this),this._zr.remove(this.group),process.env.NODE_ENV!==`production`&&(this._mounted=!1),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ht);function kj(e,t){var n=lM[t.brushType].createCover(e,t);return n.__brushOption=t,Mj(n,t),e.group.add(n),n}function Aj(e,t){var n=Pj(t);return n.endCreating&&(n.endCreating(e,t),Mj(t,t.__brushOption)),t}function jj(e,t){var n=t.__brushOption;Pj(t).updateCoverShape(e,t,n.range,n)}function Mj(e,t){var n=t.z;n??=bj,e.traverse(function(e){e.z=n,e.z2=n})}function Nj(e,t){Pj(t).updateCommon(e,t),jj(e,t)}function Pj(e){return lM[e.__brushOption.brushType]}function Fj(e,t,n){var r=e._panels;if(!r)return gj;var i,a=e._transform;return L(r,function(e){e.isTargetByCursor(t,n,a)&&(i=e)}),i}function Ij(e,t){var n=e._panels;if(!n)return gj;var r=t.__brushOption.panelId;return r==null?gj:n[r]}function Lj(e){var t=e._covers,n=t.length;return L(t,function(t){e.group.remove(t)},e),t.length=0,!!n}function Rj(e,t){var n=R(e._covers,function(e){var t=e.__brushOption,n=M(t.range);return{brushType:t.brushType,panelId:t.panelId,range:n}});e.trigger(`brush`,{areas:n,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function zj(e){var t=e._track;if(!t.length)return!1;var n=t[t.length-1],r=t[0],i=n[0]-r[0],a=n[1]-r[1];return yj(i*i+a*a,.5)>xj}function Bj(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Vj(e,t,n,r){var i=new io;return i.add(new Ou({name:`main`,style:Gj(n),silent:!0,draggable:!0,cursor:`move`,drift:xe(Xj,e,t,i,[`n`,`s`,`w`,`e`]),ondragend:xe(Rj,t,{isEnd:!0})})),L(r,function(n){i.add(new Ou({name:n.join(``),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:xe(Xj,e,t,i,n),ondragend:xe(Rj,t,{isEnd:!0})}))}),i}function Hj(e,t,n,r){var i=r.brushStyle.lineWidth||0,a=vj(i,Sj),o=n[0][0],s=n[1][0],c=o-i/2,l=s-i/2,u=n[0][1],d=n[1][1],f=u-a+i/2,p=d-a+i/2,m=u-o,h=d-s,g=m+i,_=h+i;Wj(e,t,`main`,o,s,m,h),r.transformable&&(Wj(e,t,`w`,c,l,a,_),Wj(e,t,`e`,f,l,a,_),Wj(e,t,`n`,c,l,g,a),Wj(e,t,`s`,c,p,g,a),Wj(e,t,`nw`,c,l,a,a),Wj(e,t,`ne`,f,l,a,a),Wj(e,t,`sw`,c,p,a,a),Wj(e,t,`se`,f,p,a,a))}function Uj(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(Gj(n)),i.attr({silent:!r,cursor:r?`move`:`default`}),L([[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]],function(n){var i=t.childOfName(n.join(``)),a=n.length===1?Jj(e,n[0]):Yj(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?Tj[a]+`-resize`:null})})}function Wj(e,t,n,r,i,a,o){var s=t.childOfName(n);s&&s.setShape(eM($j(e,t,[[r,i],[r+a,i+o]])))}function Gj(e){return F({strokeNoScale:!0},e.brushStyle)}function Kj(e,t,n,r){var i=[_j(e,n),_j(t,r)],a=[vj(e,n),vj(t,r)];return[[i[0],a[0]],[i[1],a[1]]]}function qj(e){return lm(e.group)}function Jj(e,t){return{left:`w`,right:`e`,top:`n`,bottom:`s`}[dm({w:`left`,e:`right`,n:`top`,s:`bottom`}[t],qj(e))]}function Yj(e,t){var n=[Jj(e,t[0]),Jj(e,t[1])];return(n[0]===`e`||n[0]===`w`)&&n.reverse(),n.join(``)}function Xj(e,t,n,r,i,a){var o=n.__brushOption,s=e.toRectRange(o.range),c=Qj(t,i,a);L(r,function(e){var t=wj[e];s[t[0]][t[1]]+=c[t[0]]}),o.range=e.fromRectRange(Kj(s[0][0],s[1][0],s[0][1],s[1][1])),Nj(t,n),Rj(t,{isEnd:!1})}function Zj(e,t,n,r){var i=t.__brushOption.range,a=Qj(e,n,r);L(i,function(e){e[0]+=a[0],e[1]+=a[1]}),Nj(e,t),Rj(e,{isEnd:!1})}function Qj(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function $j(e,t,n){var r=Ij(e,t);return r&&r!==gj?r.clipPath(n,e._transform):M(n)}function eM(e){var t=_j(e[0][0],e[1][0]),n=_j(e[0][1],e[1][1]),r=vj(e[0][0],e[1][0]),i=vj(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function tM(e,t,n){if(!(!e._brushType||cM(e,t.offsetX,t.offsetY))){var r=e._zr,i=e._covers,a=Fj(e,t,n);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===gj||s.panelId===a.panelId)&&lM[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle(`crosshair`)}}function nM(e){var t=e.event;t.preventDefault&&t.preventDefault()}function rM(e,t,n){return e.childOfName(`main`).contain(t,n)}function iM(e,t,n,r){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(n.slice()),zj(e)||i){if(a&&!i){o.brushMode===`single`&&Lj(e);var c=M(o);c.brushType=aM(c.brushType,a),c.panelId=a===gj?null:a.panelId,i=e._creatingCover=kj(e,c),e._covers.push(i)}if(i){var l=lM[aM(e._brushType,a)],u=i.__brushOption;u.range=l.getCreatingRange($j(e,i,e._track)),r&&(Aj(e,i),l.updateCommon(e,i)),jj(e,i),s={isEnd:r}}}else r&&o.brushMode===`single`&&o.removeOnClick&&Fj(e,t,n)&&Lj(e)&&(s={isEnd:r,removeOnClick:!0});return s}function aM(e,t){return e===`auto`?(process.env.NODE_ENV!==`production`&&G(t&&t.defaultBrushType,`MUST have defaultBrushType when brushType is "atuo"`),t.defaultBrushType):e}var oM={mousedown:function(e){if(this._dragging)sM(this,e);else if(!e.target||!e.target.draggable){nM(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null,(this._creatingPanel=Fj(this,e,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,n=e.offsetY,r=this.group.transformCoordToLocal(t,n);if(tM(this,e,r),this._dragging){nM(e);var i=iM(this,e,r,!1);i&&Rj(this,i)}},mouseup:function(e){sM(this,e)}};function sM(e,t){if(e._dragging){nM(t);var n=t.offsetX,r=t.offsetY,i=iM(e,t,e.group.transformCoordToLocal(n,r),!0);e._dragging=!1,e._track=[],e._creatingCover=null,i&&Rj(e,i)}}function cM(e,t,n){var r=e._zr;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var lM={lineX:uM(0),lineY:uM(1),rect:{createCover:function(e,t){function n(e){return e}return Vj({toRectRange:n,fromRectRange:n},e,t,[[`w`],[`e`],[`n`],[`s`],[`s`,`e`],[`s`,`w`],[`n`,`e`],[`n`,`w`]])},getCreatingRange:function(e){var t=Bj(e);return Kj(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){Hj(e,t,n,r)},updateCommon:Uj,contain:rM},polygon:{createCover:function(e,t){var n=new io;return n.add(new up({name:`main`,style:Gj(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new cp({name:`main`,draggable:!0,drift:xe(Zj,e,t),ondragend:xe(Rj,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:$j(e,t,n)})},updateCommon:Uj,contain:rM}};function uM(e){return{createCover:function(t,n){return Vj({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[[`w`],[`e`]],[[`n`],[`s`]]][e])},getCreatingRange:function(t){var n=Bj(t);return[_j(n[0][e],n[1][e]),vj(n[0][e],n[1][e])]},updateCoverShape:function(t,n,r,i){var a,o=Ij(t,n);if(o!==gj&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var c=[r,a];e&&c.reverse(),Hj(t,n,c,i)},updateCommon:Uj,contain:rM}}function dM(e){return e=mM(e),function(t){return hm(t,e)}}function fM(e,t){return e=mM(e),function(n){var r=t??n,i=r?e.width:e.height,a=r?e.x:e.y;return[a,a+(i||0)]}}function pM(e,t,n){var r=mM(e);return function(e,i){return r.contain(i[0],i[1])&&!fj(e,t,n)}}function mM(e){return q.create(e)}var hM={};function gM(e,t){if(process.env.NODE_ENV!==`production`){var n=e+`^_^`+t;hM[n]||(console.warn(`[ECharts] DEPRECATED: "`+e+`" has been deprecated. `+t),hM[n]=!0)}}var _M=[`x`,`y`,`radius`,`angle`,`single`],vM=Ls(),yM=[`cartesian2d`,`polar`,`singleAxis`];function bM(e){return I(yM,e.get(`coordinateSystem`))>=0}function xM(e){return process.env.NODE_ENV!==`production`&&G(e),e+`Axis`}function SM(e,t){var n=K(),r=[],i=K();e.eachComponent({mainType:`dataZoom`,query:t},function(e){i.get(e.uid)||s(e)});var a;do a=!1,e.eachComponent(`dataZoom`,o);while(a);function o(e){!i.get(e.uid)&&c(e)&&(s(e),a=!0)}function s(e){i.set(e.uid,!0),r.push(e),l(e)}function c(e){var t=!1;return e.eachTargetAxis(function(e,r){var i=n.get(e);i&&i[r]&&(t=!0)}),t}function l(e){e.eachTargetAxis(function(e,t){(n.get(e)||n.set(e,[]))[t]=!0})}return r}function CM(e){var t=vM(bx(e));return t.axisProxyMap||=K()}function wM(e){if(e)return process.env.NODE_ENV!==`production`&&G(e.ecModel),CM(e.ecModel).get(e.uid)}function TM(e,t){process.env.NODE_ENV!==`production`&&G(e.ecModel),CM(e.ecModel).set(e.uid,t)}function EM(e,t){var n=t.getAxisModel().axis.__alignTo;return n&&e.getAxisProxy(n.dim,n.model.componentIndex)?wM(n.model):null}var DM=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),OM=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=[`percent`,`percent`],n}return t.prototype.init=function(e,t,n){var r=kM(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=kM(e);N(this.option,e,!0),N(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(e,r){this._rangePropMode[r]===`value`&&(t[e[0]]=n[e[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get(`orient`,!0),t=this._targetAxisInfoMap=K();this._fillSpecifiedTargetAxis(t)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||`horizontal`,this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each(function(e){e.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return L(_M,function(n){var r=this.getReferringComponents(xM(n),Hs);if(r.specified){t=!0;var i=new DM;L(r.models,function(e){i.add(e.componentIndex)}),e.set(n,i)}},this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i=t===`vertical`?`y`:`x`,a=n.findComponents({mainType:i+`Axis`});o(a,i)}if(r){var a=n.findComponents({mainType:`singleAxis`,filter:function(e){return e.get(`orient`,!0)===t}});o(a,`single`)}function o(t,n){var i=t[0];if(i){var a=new DM;if(a.add(i.componentIndex),e.set(n,a),r=!1,n===`x`||n===`y`){var o=i.getReferringComponents(`grid`,Vs).models[0];o&&L(t,function(e){i.componentIndex!==e.componentIndex&&o===e.getReferringComponents(`grid`,Vs).models[0]&&a.add(e.componentIndex)})}}}r&&L(_M,function(t){if(r){var i=n.findComponents({mainType:xM(t),filter:function(e){return e.get(`type`,!0)===`category`}});if(i[0]){var a=new DM;a.add(i[0].componentIndex),e.set(t,a),r=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){!e&&(e=t)},this),e===`y`?`vertical`:`horizontal`},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty(`throttle`)&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get(`rangeMode`);L([[`start`,`startValue`],[`end`,`endValue`]],function(r,i){var a=e[r[0]]!=null,o=e[r[1]]!=null;a&&!o?t[i]=`percent`:!a&&o?t[i]=`value`:n?t[i]=n[i]:a&&(t[i]=`percent`)})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(t,n){e??=this.ecModel.getComponent(xM(t),n)},this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each(function(n,r){L(n.indexList,function(n){e.call(t,r,n)})})},t.prototype.getAxisProxy=function(e,t){return wM(this.getAxisModel(e,t))},t.prototype.getAxisModel=function(e,t){process.env.NODE_ENV!==`production`&&G(e&&t!=null);var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(xM(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;L([[`start`,`startValue`],[`end`,`endValue`]],function(r){(e[r[0]]!=null||e[r[1]]!=null)&&(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;L([`start`,`startValue`,`end`,`endValue`],function(n){t[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getWindow().percent},t.prototype.getValueRange=function(e,t){if(e==null&&t==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getWindow().value}else return this.getAxisProxy(e,t).getWindow().value},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return wM(e);for(var t,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);if(s.hostedBy(this))return s;t||=s}return t},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!==`production`&&G(this._orient),this._orient},t.type=`dataZoom`,t.dependencies=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`series`,`toolbox`],t.defaultOption={z:4,filterMode:`filter`,start:0,end:100},t}(Z);function kM(e){var t={};return L([`start`,`end`,`startValue`,`endValue`,`throttle`],function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var AM=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(OM),jM=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type=`dataZoom.select`,t}(function(e){v(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,r){this.dataZoomModel=e,this.ecModel=t,this.api=n},t.type=`dataZoom`,t}(lb)),MM=function(){function e(e,t,n,r){this._dimName=e,this._axisIndex=t,this.ecModel=r,this._dataZoomModel=n}return e.prototype.hostedBy=function(e){return this._dataZoomModel===e},e.prototype.getWindow=function(){return M(this._window)},e.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(bM(t)){var n=xM(this._dimName),r=t.getReferringComponents(n,Vs).models[0];r&&this._axisIndex===r.componentIndex&&e.push(t)}},this),e},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+`Axis`,this._axisIndex)},e.prototype.getMinMaxSpan=function(){return M(this._minMaxSpan)},e.prototype.calculateDataWindow=function(e){var t=this._extent,n=this.getAxisModel().axis,r=n.scale,i=this._dataZoomModel.getRangePropMode(),a=[0,100],o=[],s=[],c,l=[!1,!1];L([`start`,`end`],function(n,u){var d=e[n],f=e[n+`Value`];i[u]===`percent`?(d??=a[u],f=Ao(d,a,t),l[u]=!0):(c=!0,f==null?f=t[u]:(f=r.parse(f),r.sanitize&&(f=r.sanitize(f,t))),d=Ao(f,t,a)),s[u]=f==null||isNaN(f)?t[u]:f,o[u]=d==null||isNaN(d)?a[u]:d}),Fo(s),Fo(o);var u=this._minMaxSpan;c?d(s,o,t,a,!1):d(o,s,a,t,!0);function d(e,t,n,r,i){var a=i?`Span`:`ValueSpan`;pj(0,e,n,`all`,u[`min`+a],u[`max`+a]);for(var o=0;o<2;o++)t[o]=Ao(e[o],n,r,!0),i&&(t[o]=t[o],l[o]=!0);rc(t)}var f=vT(r)||gT(r),p=n.getExtent(),m=xo(p[1]-p[0]),h=f?0:Ro(s,m,.5);L([[0,wo],[1,Co]],function(e){var n=e[0],r=e[1];!l[n]||!isFinite(h)||(s[n]=J(s[n],h),s[n]=yo(t[1],bo(t[0],s[n])),o[n]===a[n]&&(s[n]=t[n],f&&(s[n]=r(s[n]))))}),rc(s);var g=[Ao(s[0],t,a,!0),Ao(s[1],t,a,!0)];return rc(g),{value:s,percent:o,percentInverted:g,valuePrecision:h}},e.prototype.reset=function(e,t){if(this.hostedBy(e)){var n=this.getAxisModel().axis;qE(n,2);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=e.settledOption;t&&(i=F({start:t[0],end:t[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;o[0]!==0&&r.setZoomMM(0,s[0]),o[1]!==100&&r.setZoomMM(1,s[1])}},e.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var n=this._dimName,r=this.getTargetSeriesModels(),i=e.get(`filterMode`),a=this._window.value;if(i===`none`)return;L(r,function(e){var t=e.getData(),r=t.mapDimensionsAll(n);if(r.length){if(i===`weakFilter`){var s=t.getStore(),c=R(r,function(e){return t.getDimensionIndex(e)},t);t.filterSelf(function(e){for(var t,n,i,o=0;o<r.length;o++){var l=s.get(c[o],e),u=!isNaN(l),d=l<a[0],f=l>a[1];if(u&&!d&&!f)return!0;u&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n})}else L(r,function(n){if(i===`empty`)e.setData(t=t.map(n,function(e){return o(e)?e:NaN}));else{var r={};r[n]=a,t.selectRange(r)}});L(r,function(e){t.setApproximateExtent(a,e)})}});function o(e){return e>=a[0]&&e<=a[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._extent;L([`min`,`max`],function(r){var i=t.get(r+`Span`),a=t.get(r+`ValueSpan`);a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a==null?i!=null&&(a=Ao(i,[0,100],n,!0)-n[0]):i=Ao(n[0]+a,n,[0,100],!0),e[r+`Span`]=i,e[r+`ValueSpan`]=a},this)},e}(),NM={dirtyOnOverallProgress:!0,getTargetSeries:function(e){function t(t){e.eachComponent(`dataZoom`,function(n){n.eachTargetAxis(function(r,i){t(r,i,e.getComponent(xM(r),i),n)})})}var n=[];t(function(t,r,i,a){if(!wM(i)){var o=new MM(t,r,a,e);n.push(o),TM(i,o)}});var r=K();return L(n,function(e){L(e.getTargetSeriesModels(),function(e){r.set(e.uid,e)})}),r},overallReset:function(e,t){e.eachComponent(`dataZoom`,function(e){var n=[];e.eachTargetAxis(function(t,r){var i=e.getAxisProxy(t,r),a=EM(e,i);a?n.push([i,a]):i.reset(e,null)}),L(n,function(t){t[0].reset(e,t[1].getWindow().percentInverted)}),e.eachTargetAxis(function(n,r){e.getAxisProxy(n,r).filterData(e,t)})}),e.eachComponent(`dataZoom`,function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getWindow(),r=n.percent,i=n.value;e.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}})}};function PM(e){e.registerAction(`dataZoom`,function(e,t){L(SM(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var FM=ic();function IM(e){FM(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,NM),PM(e),e.registerSubTypeDefaulter(`dataZoom`,function(){return`slider`})})}function LM(e){e.registerComponentModel(AM),e.registerComponentView(jM),IM(e)}var RM=function(){function e(){}return e}(),zM={};function BM(e,t){zM[e]=t}function VM(e){return zM[e]}var HM=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(t,n,r){var i=r.getTheme().get(`toolbox`),a=i?i.feature:null;a&&(this._themeFeatureOption=P({},a),i.feature={}),e.prototype.init.call(this,t,n,r),a&&(i.feature=a)},t.prototype.optionUpdated=function(){L(this.option.feature,function(e,t){var n=this._themeFeatureOption,r=VM(t);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[t]&&(N(e,n[t]),n[t]=null),N(e,r.defaultOption))},this)},t.type=`toolbox`,t.layoutMode={type:`box`,ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:`horizontal`,left:`right`,top:`top`,backgroundColor:`transparent`,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:Q.size.m,itemSize:15,itemGap:Q.size.s,showTitle:!0,iconStyle:{borderColor:Q.color.accent50,color:`none`},emphasis:{iconStyle:{borderColor:Q.color.accent70}},tooltip:{show:!1,position:`bottom`}},t}(Z);function UM(e,t){var n=bg(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new Ou({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}var WM=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){var i=this.group;if(i.removeAll(),!e.get(`show`))return;var a=+e.get(`itemSize`),o=e.get(`orient`)===`vertical`,s=e.get(`feature`)||{},c=this._features||=K(),l=[];L(s,function(e,t){l.push(t)}),new cw(this._featureNames||[],l).add(u).update(u).remove(xe(u,null)).execute(),this._featureNames=_e(l,function(e){return c.hasKey(e)});function u(i,a){var o=i!=null&&a==null,u=i!=null&&a!=null,f=i==null,p=o||u?l[i]:l[a],m=s[p],h=o||u?new ph(m,e,t):null,g=h&&h.get(`show`),_;if(o){if(!g)return;if(GM(p))_={onclick:h.option.onclick,featureName:p};else{var v=VM(p);if(!v)return;_=new v}c.set(p,_)}else _=c.get(p);if(f||!g){KM(_)&&_.dispose&&_.dispose(t,n),c.removeKey(p);return}r&&r.newTitle!=null&&r.featureName===p&&(m.title=r.newTitle),o&&(_.uid=hh(`toolbox-feature`)),_.model=h,_.ecModel=t,_.api=n,d(h,_,p),h.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&(t===`emphasis`?Id:Ld)(r[e])},KM(_)&&_.render&&_.render(h,t,n,r)}function d(r,s,c){var l=r.getModel(`iconStyle`),u=r.getModel([`emphasis`,`iconStyle`]),d=s instanceof RM&&s.getIcons?s.getIcons():r.get(`icon`),f=r.get(`title`)||{},p,m;H(d)?(p={},p[c]=d):p=d,H(f)?(m={},m[c]=f):m=f;var h=r.iconPaths={};L(p,function(c,d){var f=_m(c,{},{x:-a/2,y:-a/2,width:a,height:a});f.setStyle(l.getItemStyle());var p=f.ensureState(`emphasis`);p.style=u.getItemStyle();var g=new Nu({style:{text:m[d],align:u.get(`textAlign`),borderRadius:u.get(`textBorderRadius`),padding:u.get(`textPadding`),fill:null,font:$m({fontStyle:u.get(`textFontStyle`),fontFamily:u.get(`textFontFamily`),fontSize:u.get(`textFontSize`),fontWeight:u.get(`textFontWeight`)},t)},ignore:!0});f.setTextContent(g),Tm({el:f,componentModel:e,itemName:d,formatterParamsExtra:{title:m[d]}}),f.__title=m[d],f.on(`mouseover`,function(){var t=u.getItemStyle(),r=o?e.get(`right`)==null&&e.get(`left`)!==`right`?`right`:`left`:e.get(`bottom`)==null&&e.get(`top`)!==`bottom`?`bottom`:`top`;g.setStyle({fill:u.get(`textFill`)||t.fill||t.stroke||Q.color.neutral99,backgroundColor:u.get(`textBackgroundColor`)}),f.setTextConfig({position:u.get(`textPosition`)||r}),g.ignore=!e.get(`showTitle`),n.enterEmphasis(this)}).on(`mouseout`,function(){r.get([`iconStatus`,d])!==`emphasis`&&n.leaveEmphasis(this),g.hide()}),(r.get([`iconStatus`,d])===`emphasis`?Id:Ld)(f),i.add(f),f.on(`click`,be(s.onclick,s,t,n,d)),h[d]=f})}var f=Wg(e,n).refContainer,p=e.getBoxLayoutParams(),m=e.get(`padding`),h=Hg(p,f,m);Bg(e.get(`orient`),i,e.get(`itemGap`),h.width,h.height),Gg(i,p,f,m),i.add(UM(i.getBoundingRect(),e)),o||i.eachChild(function(e){var t=e.__title,r=e.ensureState(`emphasis`),o=r.textConfig||={},s=e.getTextContent(),c=s&&s.ensureState(`emphasis`);if(c&&!V(c)&&t){var l=c.style||={},u=Fa(t,Nu.makeFont(l)),d=e.x+i.x,f=e.y+i.y+a,p=!1;f+u.height>n.getHeight()&&(o.position=`top`,p=!0);var m=p?-5-u.height:a+10;d+u.width/2>n.getWidth()?(o.position=[`100%`,m],l.align=`right`):d-u.width/2<0&&(o.position=[0,m],l.align=`left`)}})},t.prototype.updateView=function(e,t,n,r){L(this._features,function(e){e&&e instanceof RM&&e.updateView&&e.updateView(e.model,t,n,r)})},t.prototype.dispose=function(e,t){L(this._features,function(n){n&&n instanceof RM&&n.dispose&&n.dispose(e,t)})},t.type=`toolbox`,t}(lb);function GM(e){return e.indexOf(`my`)===0}function KM(e){return e instanceof RM}var qM=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){var n=this.model,r=n.get(`name`)||e.get(`title.0.text`)||`echarts`,i=t.getZr().painter.getType()===`svg`,a=i?`svg`:n.get(`type`,!0)||`png`,o=t.getConnectedDataURL({type:a,backgroundColor:n.get(`backgroundColor`,!0)||e.get(`backgroundColor`)||Q.color.neutral00,connectedBackgroundColor:n.get(`connectedBackgroundColor`),excludeComponents:n.get(`excludeComponents`),pixelRatio:n.get(`pixelRatio`)}),s=b.browser;if(typeof MouseEvent==`function`&&(s.newEdge||!s.ie&&!s.edge)){var c=document.createElement(`a`);c.download=r+`.`+a,c.target=`_blank`,c.href=o;var l=new MouseEvent(`click`,{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(l)}else if(window.navigator.msSaveOrOpenBlob||i){var u=o.split(`,`),d=u[0].indexOf(`base64`)>-1,f=i?decodeURIComponent(u[1]):u[1];d&&(f=window.atob(f));var p=r+`.`+a;if(window.navigator.msSaveOrOpenBlob){for(var m=f.length,h=new Uint8Array(m);m--;)h[m]=f.charCodeAt(m);var g=new Blob([h]);window.navigator.msSaveOrOpenBlob(g,p)}else{var _=document.createElement(`iframe`);document.body.appendChild(_);var v=_.contentWindow,y=v.document;y.open(`image/svg+xml`,`replace`),y.write(f),y.close(),v.focus(),y.execCommand(`SaveAs`,!0,p),document.body.removeChild(_)}}else{var x=n.get(`lang`),S=`<body style="margin:0;"><img src="`+o+`" style="max-width:100%;" title="`+(x&&x[0]||``)+`" /></body>`,C=window.open();C.document.write(S),C.document.title=r}},t.getDefaultOption=function(e){return{show:!0,icon:`M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0`,title:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`title`]),type:`png`,connectedBackgroundColor:Q.color.neutral00,name:``,excludeComponents:[`toolbox`],lang:e.getLocaleModel().get([`toolbox`,`saveAsImage`,`lang`])}},t}(RM),JM=`__ec_magicType_stack__`,YM=[[`line`,`bar`],[`stack`]],XM=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,t=e.get(`icon`),n={};return L(e.get(`type`),function(e){t[e]&&(n[e]=t[e])}),n},t.getDefaultOption=function(e){return{show:!0,type:[],icon:{line:`M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4`,bar:`M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7`,stack:`M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z`},title:e.getLocaleModel().get([`toolbox`,`magicType`,`title`]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,t,n){var r=this.model,i=r.get([`seriesIndex`,n]);if(ZM[n]){var a={series:[]};L(YM,function(e){I(e,n)>=0&&L(e,function(e){r.setIconStatus(e,`normal`)})}),r.setIconStatus(n,`emphasis`),e.eachComponent({mainType:`series`,query:i==null?null:{seriesIndex:i}},function(e){var t=e.subType,i=e.id,o=ZM[n](t,i,e,r);o&&(F(o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&s.type===`cartesian2d`&&(n===`line`||n===`bar`)){var c=s.getAxesByScale(`ordinal`)[0];if(c){var l=c.dim+`Axis`,u=e.getReferringComponents(l,Vs).models[0].componentIndex;a[l]=a[l]||[];for(var d=0;d<=u;d++)a[l][u]=a[l][u]||{};a[l][u].boundaryGap=n===`bar`}}});var o,s=n;n===`stack`&&(o=N({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),r.get([`iconStatus`,n])!==`emphasis`&&(s=`tiled`)),t.dispatchAction({type:`changeMagicType`,currentType:s,newOption:a,newTitle:o,featureName:`magicType`})}},t}(RM),ZM={line:function(e,t,n,r){if(e===`bar`)return N({id:t,type:`line`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`line`])||{},!0)},bar:function(e,t,n,r){if(e===`line`)return N({id:t,type:`bar`,data:n.get(`data`),stack:n.get(`stack`),markPoint:n.get(`markPoint`),markLine:n.get(`markLine`)},r.get([`option`,`bar`])||{},!0)},stack:function(e,t,n,r){var i=n.get(`stack`)===JM;if(e===`line`||e===`bar`)return r.setIconStatus(`stack`,i?`normal`:`emphasis`),N({id:t,stack:i?``:JM},r.get([`option`,`stack`])||{},!0)}};XC({type:`changeMagicType`,event:`magicTypeChanged`,update:`prepareAndUpdate`},function(e,t){t.mergeOption(e.newOption)});var QM=Array(60).join(`-`),$M=` `;function eN(e){var t={},n=[],r=[];return e.eachRawSeries(function(e){var i=e.coordinateSystem;if(i&&(i.type===`cartesian2d`||i.type===`polar`)){var a=i.getBaseAxis();if(a.type===`category`){var o=ok(a);t[o]||(t[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),t[o].series.push(e)}else n.push(e)}else n.push(e)}),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function tN(e){var t=[];return L(e,function(e,n){var r=e.categoryAxis,i=e.valueAxis.dim,a=[` `].concat(R(e.series,function(e){return e.name})),o=[r.model.getCategories()];L(e.series,function(e){var t=e.getRawData();o.push(e.getRawData().mapArray(t.mapDimension(i),function(e){return e}))});for(var s=[a.join($M)],c=0;c<o[0].length;c++){for(var l=[],u=0;u<o.length;u++)l.push(o[u][c]);s.push(l.join($M))}t.push(s.join(`
22
22
  `))}),t.join(`
23
23
 
24
- `+MM+`
24
+ `+QM+`
25
25
 
26
- `)}function IM(e){return z(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+NM:``)+r.join(NM))}),n.join(`
26
+ `)}function nN(e){return R(e,function(e){var t=e.getRawData(),n=[e.name],r=[];return t.each(t.dimensions,function(){for(var e=arguments.length,i=arguments[e-1],a=t.getName(i),o=0;o<e-1;o++)r[o]=arguments[o];n.push((a?a+$M:``)+r.join($M))}),n.join(`
27
27
  `)}).join(`
28
28
 
29
- `+MM+`
29
+ `+QM+`
30
30
 
31
- `)}function LM(e){var t=PM(e);return{value:ue([FM(t.seriesGroupByCategoryAxis),IM(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
31
+ `)}function rN(e){var t=eN(e);return{value:_e([tN(t.seriesGroupByCategoryAxis),nN(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,``)}).join(`
32
32
 
33
- `+MM+`
33
+ `+QM+`
34
34
 
35
- `),meta:t.meta}}function RM(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function zM(e){if(e.slice(0,e.indexOf(`
36
- `)).indexOf(NM)>=0)return!0}var BM=RegExp(`[`+NM+`]+`,`g`);function VM(e){for(var t=e.split(/\n+/g),n=RM(t.shift()).split(BM),r=[],i=z(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=RM(t[a]).split(BM);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function HM(e){for(var t=e.split(/\n+/g),n=RM(t.shift()),r=[],i=0;i<t.length;i++){var a=RM(t[i]);if(a){var o=a.split(BM),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function UM(e,t){var n=e.split(RegExp(`
37
- *`+MM+`
38
- *`,`g`)),r={series:[]};return R(n,function(e,n){if(zM(e)){var i=VM(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=HM(e);r.series.push(i)}}),r}var WM=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=LM(e);if(H(l)){var f=l(t.getOption());U(f)?s.innerHTML=f:ye(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}At(_,`click`,b),At(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){process.env.NODE_ENV!==`production`&&Jo("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var e;try{e=H(u)?u(s,t.getOption()):UM(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(vM);function GM(e,t){return z(e,function(e,n){var r=t&&t[n];if(W(r)&&!V(r)){W(e)&&!V(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=F(e,r),i&&delete e.name,e}return e})}MC({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];R(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(P({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:GM(e.data,i)})}}),t.mergeOption(F({series:n},e.newOption))});var KM=R,qM=Ts();function JM(e,t){var n=QM(e);KM(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function YM(e){var t=QM(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return KM(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function XM(e){qM(e).snapshots=null}function ZM(e){return QM(e).length}function QM(e){var t=qM(e);return t.snapshots||=[{}],t.snapshots}var $M=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){XM(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(vM);MC({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var eN=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],tN=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=rN(t,e);R(iN,function(e,t){(!n||!n.include||I(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=sN[e.brushType](0,n,t);e.__rangeOffset={offset:lN[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){R(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&R(r.coordSyses,function(r){n(e,sN[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){R(e,function(e){var n=this.findTargetInfo(e,t);if(process.env.NODE_ENV!==`production`&&(K(!n||n===!0||e.coordRange,`coordRange must be specified when coord index specified.`),K(!n||n!==!0||e.range,`range must be specified in global brush.`)),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=sN[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?lN[e.brushType](r.values,i.offset,dN(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return z(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:qj(r),isTargetByCursor:Yj(r,e,n.coordSysModel),getLinearBrushOtherExtent:Jj(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&I(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=rN(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<aN.length;s++)if(aN[s](r,a))return a}return!0},e}();function nN(e){return e[0]>e[1]&&e.reverse(),e}function rN(e,t){return Ds(e,t,{includeMainTypes:eN})}var iN={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=q(),o={},s={};!n&&!r&&!i||(R(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),R(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),R(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];R(i.getCartesians(),function(e,t){(I(n,e.getAxis(`x`).model)>=0||I(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:oN.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){R(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:oN.geo})})}},aN=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],oN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=VA(null,e);return un(t,t,BA(null,e)),t}},sN={lineX:me(cN,0),lineY:me(cN,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[nN([i[0],a[0]]),nN([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[Is(),Is()];return{values:z(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function cN(e,t,n,r){process.env.NODE_ENV!==`production`&&K(n.type===`cartesian2d`,`lineX/lineY brush is available only in cartesian2d.`);var i=n.getAxis([`x`,`y`][e]),a=nN(z([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var lN={lineX:me(uN,0),lineY:me(uN,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return z(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function uN(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function dN(e,t){var n=fN(e),r=fN(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function fN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var pN=R,mN=xs(`toolbox-dataZoom_`),hN={x:`width`,y:`height`},gN=function(e){f(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new uj(n.getZr()),this._brushController.on(`brush`,pe(this._onBrush,this)).mount()),bN(e,t,this,r,n),yN(e,t)},t.prototype.onclick=function(e,t,n){_N[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new tN(vN(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),JM(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=YA(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=Do(d,i[hN[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?X(o[0],f):o[0],endValue:isFinite(f)?X(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];pN(e,function(e,n){t.push(M(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(vM),_N={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(YM(this.ecModel))}};function vN(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function yN(e,t){e.setIconStatus(`back`,ZM(t)>1?`emphasis`:`normal`)}function bN(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new tN(vN(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}$g(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=Ds(e,vN(r));pN(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),pN(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:mN+t+a};o[n]=a,i.push(o)}return i});function xN(e){e.registerComponentModel(SM),e.registerComponentView(wM),bM(`saveAsImage`,DM),bM(`magicType`,AM),bM(`dataView`,WM),bM(`dataZoom`,gN),bM(`restore`,$M),qE(_M)}var SN=function(e){f(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}(Z);function CN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function wN(e){if(m.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var TN=wN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),EN=wN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function DN(e,t){if(!e)return t;t=ig(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function ON(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var kN=DN(EN,`transition`),AN=DN(TN,`transform`),jN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(m.transform3dSupported?`will-change:transform;`:``);function MN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function NN(e,t,n){if(!U(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=dg(t);var a=MN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=AN+`:`,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 PN(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?`,`:``)+(m.transformSupported?``+AN+i:`,left`+i+`,top`+i)),kN+`:`+a}function FN(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!m.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=m.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+AN+`:`+o+`;`:[[`top`,0],[`left`,0],[TN,o]]}function IN(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=G(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),R([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function LN(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=jy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(PN(a,n,r)),o&&i.push(`background-color:`+o),R([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=ig(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(IN(d)),f!=null&&i.push(`padding:`+ag(f).join(`px `)+`px`),i.join(`;`)+`;`}function RN(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&pt(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 zN=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,m.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&&(U(i)?document.querySelector(i):ye(i)?i:H(i)&&i(e.getDom()));RN(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;Ot(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=ON(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=jN+LN(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+FN(i[0],i[1],!0)+(`border-color:`+dg(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(U(i)&&n.get(`trigger`)===`item`&&!CN(n)&&(o=NN(n,r,i)),U(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,V(e)||(e=[e]);for(var s=0;s<e.length;s++)ye(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(RN(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;R(FN(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`,m.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(pe(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;mt(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}(),BN=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),UN(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;W(e)&&$o(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 bu({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:jy(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),R([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),R([`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=HN(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;UN(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=VN(i.borderWidth||0),o=HN(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(pe(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function VN(e){return Math.max(0,e)}function HN(e){var t=VN(e.shadowBlur||0),n=VN(e.shadowOffsetX||0),r=VN(e.shadowOffsetY||0);return{left:VN(t-n),right:VN(t+n),top:VN(t-r),bottom:VN(t+r)}}function UN(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var WN=new hu({shape:{x:-1,y:-1,width:2,height:2}}),GN=function(e){f(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(!(m.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=Fs(n.get(`renderMode`));this._tooltipContent=r===`richText`?new BN(t):new zN(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(m.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`)?ob(this,`_updatePosition`,50,`fixRate`):sb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);nA(`itemTooltip`,this._api,pe(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||m.node||!n.getDom())){var i=qN(r,n);this._ticket=``;var a=r.dataByCoordSys,o=QN(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=WN;c.x=r.x,c.y=r.y,c.update(),Pu(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 l=uA(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.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(qN(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&&KN([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(Pu(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;qb(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Pu(e).dataIndex==null?Pu(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=pe(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=KN([t.tooltipOption],r),o=this._renderMode,s=[],c=_y(`section`,{blocks:[],noHeader:!0}),l=[],u=new My;R(e,function(e){R(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=Hk(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=_y(`section`,{header:f,noHeader:!Oe(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),R(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=BT(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,dg(m.color),o);var h=Nv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=KN([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=Cy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
35
+ `),meta:t.meta}}function iN(e){return e.replace(/^\s\s*/,``).replace(/\s\s*$/,``)}function aN(e){if(e.slice(0,e.indexOf(`
36
+ `)).indexOf($M)>=0)return!0}var oN=RegExp(`[`+$M+`]+`,`g`);function sN(e){for(var t=e.split(/\n+/g),n=iN(t.shift()).split(oN),r=[],i=R(n,function(e){return{name:e,data:[]}}),a=0;a<t.length;a++){var o=iN(t[a]).split(oN);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function cN(e){for(var t=e.split(/\n+/g),n=iN(t.shift()),r=[],i=0;i<t.length;i++){var a=iN(t[i]);if(a){var o=a.split(oN),s=``,c=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},c=r[i].value):c=r[i]=[];for(var u=0;u<o.length;u++)c.push(+o[u]);c.length===1&&(l?r[i].value=c[0]:r[i]=c[0])}}return{name:n,data:r}}function lN(e,t){var n=e.split(RegExp(`
37
+ *`+QM+`
38
+ *`,`g`)),r={series:[]};return L(n,function(e,n){if(aN(e)){var i=sN(e),a=t[n],o=a.axisDim+`Axis`;a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{var i=cN(e);r.series.push(i)}}),r}var uN=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){setTimeout(function(){t.dispatchAction({type:`hideTip`})});var n=t.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement(`div`);i.style.cssText=`position:absolute;top:0;bottom:0;left:0;right:0;padding:5px`,i.style.backgroundColor=r.get(`backgroundColor`)||Q.color.neutral00;var a=document.createElement(`h4`),o=r.get(`lang`)||[];a.innerHTML=o[0]||r.get(`title`),a.style.cssText=`margin:10px 20px`,a.style.color=r.get(`textColor`);var s=document.createElement(`div`),c=document.createElement(`textarea`);s.style.cssText=`overflow:auto`;var l=r.get(`optionToContent`),u=r.get(`contentToOption`),d=rN(e);if(V(l)){var f=l(t.getOption());H(f)?s.innerHTML=f:Ee(f)&&s.appendChild(f)}else{c.readOnly=r.get(`readOnly`);var p=c.style;p.cssText=`display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none`,p.color=r.get(`textColor`),p.borderColor=r.get(`textareaBorderColor`),p.backgroundColor=r.get(`textareaColor`),c.value=d.value,s.appendChild(c)}var m=d.meta,h=document.createElement(`div`);h.style.cssText=`position:absolute;bottom:5px;left:0;right:0`;var g=`float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px`,_=document.createElement(`div`),v=document.createElement(`div`);g+=`;background-color:`+r.get(`buttonColor`),g+=`;color:`+r.get(`buttonTextColor`);var y=this;function b(){n.removeChild(i),y._dom=null}Rt(_,`click`,b),Rt(v,`click`,function(){if(u==null&&l!=null||u!=null&&l==null){process.env.NODE_ENV!==`production`&&as("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),b();return}var e;try{e=V(u)?u(s,t.getOption()):lN(c.value,m)}catch(e){throw b(),Error(`Data view format error `+e)}e&&t.dispatchAction({type:`changeDataView`,newOption:e}),b()}),_.innerHTML=o[1],v.innerHTML=o[2],v.style.cssText=_.style.cssText=g,!r.get(`readOnly`)&&h.appendChild(v),h.appendChild(_),i.appendChild(a),i.appendChild(s),i.appendChild(h),s.style.height=n.clientHeight-80+`px`,n.appendChild(i),this._dom=i},t.prototype.dispose=function(e,t){this._dom&&t.getDom().removeChild(this._dom)},t.getDefaultOption=function(e){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:`M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28`,title:e.getLocaleModel().get([`toolbox`,`dataView`,`title`]),lang:e.getLocaleModel().get([`toolbox`,`dataView`,`lang`]),backgroundColor:Q.color.background,textColor:Q.color.primary,textareaColor:Q.color.background,textareaBorderColor:Q.color.border,buttonColor:Q.color.accent50,buttonTextColor:Q.color.neutral00}},t}(RM);function dN(e,t){return R(e,function(e,n){var r=t&&t[n];if(U(r)&&!B(r)){U(e)&&!B(e)||(e={value:e});var i=r.name!=null&&e.name==null;return e=F(e,r),i&&delete e.name,e}return e})}XC({type:`changeDataView`,event:`dataViewChanged`,update:`prepareAndUpdate`},function(e,t){var n=[];L(e.newOption.series,function(e){var r=t.getSeriesByName(e.name)[0];if(!r)n.push(P({type:`scatter`},e));else{var i=r.get(`data`);n.push({name:e.name,data:dN(e.data,i)})}}),t.mergeOption(F({series:n},e.newOption))});var fN=L,pN=Ls();function mN(e,t){var n=vN(e);fN(t,function(t,r){for(var i=n.length-1;i>=0&&!n[i][r];i--);if(i<0){var a=e.queryComponents({mainType:`dataZoom`,subType:`select`,id:r})[0];if(a){var o=a.getPercentRange();n[0][r]={dataZoomId:r,start:o[0],end:o[1]}}}}),n.push(t)}function hN(e){var t=vN(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return fN(n,function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}}),r}function gN(e){pN(e).snapshots=null}function _N(e){return vN(e).length}function vN(e){var t=pN(e);return t.snapshots||=[{}],t.snapshots}var yN=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(e,t){gN(e),t.dispatchAction({type:`restore`,from:this.uid})},t.getDefaultOption=function(e){return{show:!0,icon:`M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5`,title:e.getLocaleModel().get([`toolbox`,`restore`,`title`])}},t}(RM);XC({type:`restore`,event:`restore`,update:`prepareAndUpdate`},function(e,t){t.resetOption(`recreate`)});var bN=[`grid`,`xAxis`,`yAxis`,`geo`,`graph`,`polar`,`radiusAxis`,`angleAxis`,`bmap`],xN=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=CN(t,e);L(wN,function(e,t){(!n||!n.include||I(n.include,t)>=0)&&e(i,r._targetInfoList)})}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(e,t,n){if((e.coordRanges||=[]).push(t),!e.coordRange){e.coordRange=t;var r=DN[e.brushType](0,n,t);e.__rangeOffset={offset:kN[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}}),e},e.prototype.matchOutputRanges=function(e,t,n){L(e,function(e){var r=this.findTargetInfo(e,t);r&&r!==!0&&L(r.coordSyses,function(r){n(e,DN[e.brushType](1,r,e.range,!0).values,r,t)})},this)},e.prototype.setInputRanges=function(e,t){L(e,function(e){var n=this.findTargetInfo(e,t);if(process.env.NODE_ENV!==`production`&&(G(!n||n===!0||e.coordRange,`coordRange must be specified when coord index specified.`),G(!n||n!==!0||e.range,`range must be specified in global brush.`)),e.range=e.range||[],n&&n!==!0){e.panelId=n.panelId;var r=DN[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?kN[e.brushType](r.values,i.offset,jN(r.xyMinMax,i.xyMinMax)):r.values}},this)},e.prototype.makePanelOpts=function(e,t){return R(this._targetInfoList,function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:dM(r),isTargetByCursor:pM(r,e,n.coordSysModel),getLinearBrushOtherExtent:fM(r)}})},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return r===!0||r&&I(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=CN(t,e),i=0;i<n.length;i++){var a=n[i],o=e.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<TN.length;s++)if(TN[s](r,a))return a}return!0},e}();function SN(e){return e[0]>e[1]&&e.reverse(),e}function CN(e,t){return zs(e,t,{includeMainTypes:bN})}var wN={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,a=K(),o={},s={};!n&&!r&&!i||(L(n,function(e){var t=e.axis.grid.model;a.set(t.id,t),o[t.id]=!0}),L(r,function(e){var t=e.axis.grid.model;a.set(t.id,t),s[t.id]=!0}),L(i,function(e){a.set(e.id,e),o[e.id]=!0,s[e.id]=!0}),a.each(function(e){var i=e.coordinateSystem,a=[];L(i.getCartesians(),function(e,t){(I(n,e.getAxis(`x`).model)>=0||I(r,e.getAxis(`y`).model)>=0)&&a.push(e)}),t.push({panelId:`grid--`+e.id,gridModel:e,coordSysModel:e,coordSys:a[0],coordSyses:a,getPanelRect:EN.grid,xAxisDeclared:o[e.id],yAxisDeclared:s[e.id]})}))},geo:function(e,t){L(e.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:`geo--`+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:EN.geo})})}},TN=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],EN={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys.view,t=aj(null,e);return vn(t,t,ij(null,e)),t}},DN={lineX:xe(ON,0),lineY:xe(ON,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),a=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),o=[SN([i[0],a[0]]),SN([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,n,r){var i=[Ys(),Ys()];return{values:R(n,function(n){var a=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}),xyMinMax:i}}};function ON(e,t,n,r){process.env.NODE_ENV!==`production`&&G(n.type===`cartesian2d`,`lineX/lineY brush is available only in cartesian2d.`);var i=n.getAxis([`x`,`y`][e]),a=SN(R([0,1],function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var kN={lineX:xe(AN,0),lineY:xe(AN,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return R(e,function(e,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]})}};function AN(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function jN(e,t){var n=MN(e),r=MN(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function MN(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var NN=L,PN=Ns(`toolbox-dataZoom_`),FN={x:`width`,y:`height`},IN=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new Oj(n.getZr()),this._brushController.on(`brush`,be(this._onBrush,this)).mount()),BN(e,t,this,r,n),zN(e,t)},t.prototype.onclick=function(e,t,n){LN[n].call(this)},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(!e.isEnd||!t.length)return;var n={},r=this.ecModel;this._brushController.updateCovers([]),new xN(RN(this.model),r,{include:[`grid`]}).matchOutputRanges(t,r,function(e,t,n){if(n.type===`cartesian2d`){var r=n.master.getRect().clone(),a=e.brushType;a===`rect`?(i(`x`,n,r,t[0]),i(`y`,n,r,t[1])):i({lineX:`x`,lineY:`y`}[a],n,r,t)}}),mN(r,n),this._dispatchZoomAction(n);function i(e,t,i,o){var s=t.getAxis(e),c=s.model,l=a(e,c,r),u=l.findRepresentativeAxisProxy(c).getMinMaxSpan(),d=s.scale.getExtent();(u.minValueSpan!=null||u.maxValueSpan!=null)&&(o=pj(0,o.slice(),d,0,u.minValueSpan,u.maxValueSpan));var f=Ro(d,i[FN[e]],.5);l&&(n[l.id]={dataZoomId:l.id,startValue:isFinite(f)?J(o[0],f):o[0],endValue:isFinite(f)?J(o[1],f):o[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:`dataZoom`,subType:`select`},function(n){n.getAxisModel(e,t.componentIndex)&&(r=n)}),r}},t.prototype._dispatchZoomAction=function(e){var t=[];NN(e,function(e,n){t.push(M(e))}),t.length&&this.api.dispatchAction({type:`dataZoom`,from:this.uid,batch:t})},t.getDefaultOption=function(e){return{show:!0,filterMode:`filter`,icon:{zoom:`M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1`,back:`M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26`},title:e.getLocaleModel().get([`toolbox`,`dataZoom`,`title`]),brushStyle:{borderWidth:0,color:Q.color.backgroundTint}}},t}(RM),LN={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:`takeGlobalCursor`,key:`dataZoomSelect`,dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(hN(this.ecModel))}};function RN(e){var t={xAxisIndex:e.get(`xAxisIndex`,!0),yAxisIndex:e.get(`yAxisIndex`,!0),xAxisId:e.get(`xAxisId`,!0),yAxisId:e.get(`yAxisId`,!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex=`all`),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex=`all`),t}function zN(e,t){e.setIconStatus(`back`,_N(t)>1?`emphasis`:`normal`)}function BN(e,t,n,r,i){var a=n._isZoomActive;r&&r.type===`takeGlobalCursor`&&(a=r.key===`dataZoomSelect`&&r.dataZoomSelectActive),n._isZoomActive=a,e.setIconStatus(`zoom`,a?`emphasis`:`normal`);var o=new xN(RN(e),t,{include:[`grid`]}).makePanelOpts(i,function(e){return e.xAxisDeclared&&!e.yAxisDeclared?`lineX`:!e.xAxisDeclared&&e.yAxisDeclared?`lineY`:`rect`});n._brushController.setPanels(o).enableBrush(a&&o.length?{brushType:`auto`,brushStyle:e.getModel(`brushStyle`).getItemStyle()}:!1)}h_(`dataZoom`,function(e){var t=e.getComponent(`toolbox`,0),n=[`feature`,`dataZoom`];if(!t||t.get(n)==null)return;var r=t.getModel(n),i=[],a=zs(e,RN(r));NN(a.xAxisModels,function(e){return o(e,`xAxis`,`xAxisIndex`)}),NN(a.yAxisModels,function(e){return o(e,`yAxis`,`yAxisIndex`)});function o(e,t,n){var a=e.componentIndex,o={type:`select`,$fromToolbox:!0,filterMode:r.get(`filterMode`,!0)||`filter`,id:PN+t+a};o[n]=a,i.push(o)}return i});function VN(e){e.registerComponentModel(HM),e.registerComponentView(WM),BM(`saveAsImage`,qM),BM(`magicType`,XM),BM(`dataView`,uN),BM(`dataZoom`,IN),BM(`restore`,yN),dD(LM)}var HN=function(e){v(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}(Z);function UN(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function WN(e){if(b.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var GN=WN([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),KN=WN([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function qN(e,t){if(!e)return t;t=yg(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function JN(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var YN=qN(KN,`transition`),XN=qN(GN,`transform`),ZN=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(b.transform3dSupported?`will-change:transform;`:``);function QN(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function $N(e,t,n){if(!H(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Eg(t);var a=QN(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=XN+`:`,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 eP(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?`,`:``)+(b.transformSupported?``+XN+i:`,left`+i+`,top`+i)),YN+`:`+a}function tP(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!b.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=b.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+XN+`:`+o+`;`:[[`top`,0],[`left`,0],[GN,o]]}function nP(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),L([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function rP(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=qy(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(eP(a,n,r)),o&&i.push(`background-color:`+o),L([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=yg(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(nP(d)),f!=null&&i.push(`padding:`+bg(f).join(`px `)+`px`),i.join(`;`)+`;`}function iP(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&xt(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 aP=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,b.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&&(H(i)?document.querySelector(i):Ee(i)?i:V(i)&&i(e.getDom()));iP(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;It(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=JN(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=ZN+rP(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+tP(i[0],i[1],!0)+(`border-color:`+Eg(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`&&!UN(n)&&(o=$N(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++)Ee(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(iP(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;L(tP(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`,b.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(be(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;St(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}(),oP=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),lP(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)&&us(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 Nu({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:qy(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=cP(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;lP(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=sP(i.borderWidth||0),o=cP(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(be(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function sP(e){return Math.max(0,e)}function cP(e){var t=sP(e.shadowBlur||0),n=sP(e.shadowOffsetX||0),r=sP(e.shadowOffsetY||0);return{left:sP(t-n),right:sP(t+n),top:sP(t-r),bottom:sP(t+r)}}function lP(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var uP=new Ou({shape:{x:-1,y:-1,width:2,height:2}}),dP=function(e){v(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(!(b.node||!t.getDom())){var n=e.getComponent(`tooltip`),r=this._renderMode=qs(n.get(`renderMode`));this._tooltipContent=r===`richText`?new oP(t):new aP(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(b.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`)?Cb(this,`_updatePosition`,50,`fixRate`):wb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);bA(`itemTooltip`,this._api,be(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||b.node||!n.getDom())){var i=pP(r,n);this._ticket=``;var a=r.dataByCoordSys,o=vP(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=uP;c.x=r.x,c.y=r.y,c.update(),X(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 l=OA(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.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(pP(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&&fP([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(X(n).ssrType===`legend`)return;this._lastDataByCoordSys=null,this._cbParamsList=null;var i,a;ux(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(X(e).dataIndex==null?X(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=be(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=fP([t.tooltipOption],r),o=this._renderMode,s=[],c=Ny(`section`,{blocks:[],noHeader:!0}),l=[],u=new Jy;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=oA(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=Ny(`section`,{header:f,noHeader:!Fe(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=iE(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Eg(m.color),o);var h=Yv(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=fP([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=zy(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
39
39
 
40
- `:`<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=Pu(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=KN([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 My;h.marker=g.makeTooltipMarker(`item`,dg(h.color),d);var _=Nv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Cy(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=Pu(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(U(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=M(a),a.content=xt(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=KN(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new My;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(U(u)){var p=e.ecModel.get(`useUTC`),m=V(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=zh(m.axisValue,d,p)),d=lg(d,n,!0)}else if(H(u)){var g=pe(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`||V(t))return{color:r||i};if(!V(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),H(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),V(t))n=bo(t[0],s),r=bo(t[1],c);else if(W(t)){var p=t;p.width=l[0],p.height=l[1];var m=Eg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(U(t)&&o){var h=XN(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=JN(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=ZN(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=ZN(d)?l[1]/2:d===`bottom`?l[1]:0),CN(e)){var h=YN(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&&R(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&R(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&&R(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&R(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){m.node||!t.getDom()||(sb(this,`_updatePosition`),this._tooltipContent.dispose(),cA(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(Ky);function KN(e,t,n){var r=t.ecModel,i;n?(i=new Qm(n,r,r),i=new Qm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Qm&&(o=o.get(`tooltip`,!0)),U(o)&&(o={formatter:o}),o&&(i=new Qm(o,i,r)))}return i}function qN(e,t){return e.dispatchAction||pe(t.dispatchAction,t)}function JN(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 YN(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 XN(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 ZN(e){return e===`center`||e===`middle`}function QN(e,t,n){var r=Os(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=js(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=Pu(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function $N(e){qE(CA),e.registerComponentModel(SN),e.registerComponentView(GN),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Be),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Be)}function eP(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Av(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Av(e,t,n[o]));return a.join(` `)}}function tP(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!V(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 nP(e,t){return e.type===t}var rP=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},iP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),V(t)&&R(t,function(e,r){U(e)&&(e={type:e}),t[r]=N(e,rP(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&ys(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=q(),a=z(r,function(e){return(U(e)||ge(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Qm(e,this,this.ecModel))},this);this._data=ue(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;R(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;R(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&I(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Z),aP=me,oP=R,sP=Ja,cP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new sP),this.group.add(this._selectorGroup=new sP),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Og(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Eg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Eg(F({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=CM(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=q(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),oP(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
41
- `)){var p=new sP;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,aP(dP,f,null,r,d)).on(`mouseover`,aP(fP,m.name,null,r,d)).on(`mouseout`,aP(pP,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=Pu(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Nr(h.fill);_&&_[3]===0&&(_[3]=.2,h=P(P({},h),{fill:Rr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,aP(dP,null,f,r,d)).on(`mouseover`,aP(fP,null,f,r,d)).on(`mouseout`,aP(pP,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=Pu(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};Pu(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();oP(e,function(e){var r=e.type,i=new bu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Om(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),Bd(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=lP(c,r,o,s,d,m,u),y=new sP,b=r.getModel(`textStyle`);if(H(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(uP({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;U(w)&&w?T=w.replace(`{name}`,t??``):H(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new bu({style:Am(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new hu({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&um({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),Bd(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();wg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){wg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(Ky);function lP(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),oP(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:rS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function uP(e){var t=e.icon||`roundRect`,n=mx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function dP(e,t,n,r){pP(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),fP(e,t,n,r)}function fP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function pP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function mP(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),hP(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){R(i,function(t,n){e[t?`select`:`unSelect`](n)}),hP(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function hP(e,t){var n=t||{};return R(e.getData(),function(t){var r=t.get(`name`);if(r!==`
42
- `&&r!==``){var i=e.isSelected(r);n[r]=ze(n,r)?n[r]&&i:i}}),n}function gP(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,me(mP,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,me(mP,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,me(mP,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,me(mP,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,me(mP,`unSelect`))}var _P=Qs(vP);function vP(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function yP(e){e.registerComponentModel(iP),e.registerComponentView(cP),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,_P),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),gP(e)}var bP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Mg(t);e.prototype.init.call(this,t,n,r),xP(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),xP(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=rh(iP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(iP);function xP(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,jg(t,n,{type:`box`,ignoreSize:!!i})}var SP=Ja,CP=[`width`,`height`],wP=[`x`,`y`],TP=function(e){f(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new SP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new SP)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=V(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new bu({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=nm(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:pe(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=CP[s],l=wP[s],u=CP[1-s],d=wP[1-s];i&&wg(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=M(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;wg(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),wg(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=G(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new hu({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&wp(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;R([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,U(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=CP[i],o=wP[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(cP);function EP(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function DP(e){qE(yP),e.registerComponentModel(bP),e.registerComponentView(TP),EP(e)}function OP(e){qE(yP),qE(DP)}function kP(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 hu({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=H(i)?function(e){i(e,d)}:null;Tp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function AP(e,t,n){var r=e.getArea(),i=X(r.r0,1),a=X(r.r,1),o=new Hf({shape:{cx:X(e.cx,1),cy:X(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,Tp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function jP(e,t,n,r,i){return e?e.type===`polar`?AP(e,t,n):e.type===`cartesian2d`?kP(e,t,n,r,i):null:null}var MP={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]}},NP=function(e){return Math.round(e.length/2)};function PP(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;U(i)?p=MP[i]:H(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,NP))}}}}}var FP=Gs(),IP=`__ec_stack_`;function LP(e){return e.get(`stack`)||IP+e.seriesIndex}function RP(e,t){var n=zP(e,t);return n.columnMap=BP(n),n}function zP(e,t){var n=NA(t,VD),r=[],i=_D(e,{fromStat:{key:n},min:1});return cE(e,n,function(e){r.push({barWidth:bo(e.get(`barWidth`),i.w),barMaxWidth:bo(e.get(`barMaxWidth`),i.w),barMinWidth:bo(e.get(`barMinWidth`)||(UP(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:LP(e)})}),{bandWidthResult:i,seriesInfo:r}}function BP(e){var t=e.bandWidthResult.w,n=t,r=0,i,a,o=[],s={};R(e.seriesInfo,function(e,t){t||(a=e.defaultBarGap||0);var c=e.stackId;ze(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=co(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??=Y(35-o.length*4,15)+`%`;var c=bo(i,t),l=bo(a,1),u=(n-c)/(r+(r-1)*l);u=Y(u,0),R(o,function(e){var t=s[e],i=t.maxWidth,a=t.minWidth;if(t.width){var o=t.width;i&&(o=co(o,i)),a&&(o=Y(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=co(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=Y(u,0);var d=0,f;R(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 R(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 VP(e){return{seriesType:e,overallReset:function(t){var n=NA(e,VD);uE(t,n,function(t){process.env.NODE_ENV!==`production`&&K(t instanceof nO);var r=RP(t,e);cE(t,n,function(e){var t=r.columnMap[LP(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function HP(e){return{seriesType:e,plan:qy(),reset:function(e){if(RO(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=Ow(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(IA(i))),p=UP(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&&DA(r*3),c=p&&s&&DA(r*3),l=p&&DA(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,lo(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,lo(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 UP(e){return e.pipelineContext&&e.pipelineContext.large}function WP(e){return MA(NA(e,VD))}function GP(e){FP(e,function(){function t(t){var n=NA(t,VD);FA(e,n,t,VD),NE(n,WP(t))}t(`bar`),t(`pictorialBar`)})}var KP=function(e){f(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 Mw(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)R(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}(Ly);Ly.registerClass(KP);var qP=function(e){f(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 Mw(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=Zs(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=rh(KP.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:`rgba(180, 180, 180, 0.2)`,borderColor:null,borderWidth:0,borderType:`solid`,borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Q.color.primary,borderWidth:2}},realtimeSort:!1}),t}(KP),JP=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}(),YP=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new JP},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}(tu);function XP(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Aa(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)+QP(m,s+_,!1),x=u+p*y(m)+$P(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+QP(m,-s+_,!1),x=u+p*y(m)+$P(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)+QP(h,s+_,!0),x=u+p*y(h)+$P(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+QP(h,-s+_,!0),x=u+p*y(h)+$P(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Aa(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function ZP(e,t,n,r){if(ge(r)){e.setTextConfig({rotation:r});return}if(V(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 QP(e,t,n){return t*Math.sin(e)*(n?-1:1)}function $P(e,t,n){return t*Math.cos(e)*(n?1:-1)}function eF(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;V(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:z(r,function(e){return ka(e,i)})}}var tF=Math.max,nF=Math.min,rF=function(e){f(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`&&Jo(`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){fm(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=oF(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=fF[s.type](a,e);if(!t)return null;var n=CF(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=fF[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!dF[s.type](r)))){var o=!1;f&&(o=iF[s.type](p,r));var g=aF[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),hF(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?sF(d,u,g,r,t,l,!1,!1):Tp(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=fF[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=fF[s.type](a,t),E=SF(l,T,s);wp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!dF[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=iF[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&kp(D,e,n),D=null),D?Ap(D):D=aF[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=zm(k);A.prevValue!=null&&(A.prevValue=A.value)}}else hF(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?sF(d,u,D,C,t,l,!0,x):wp(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&&kp(n,e,t)}).execute();var C=this._backgroundGroup||=new Ja;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(),yF(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),yF(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&jP(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:z(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){kp(t,e,Pu(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}(Xy),iF={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=tF(t.x,e.x),s=nF(t.x+t.width,i),c=tF(t.y,e.y),l=nF(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=nF(t.r,e.r),a=tF(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}},aF={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new hu({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?YP:Hf,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=XP(mF(i),{isRoundCap:l===YP}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?wp:Tp)(u,{shape:p},a)}return u}};function oF(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&Jo("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&Jo("`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 sF(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?wp:Tp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?wp:Tp)(n,{shape:l},u,i)}function cF(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var lF=[`x`,`y`,`width`,`height`],uF=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],dF={cartesian2d:function(e){return!cF(e,lF)},polar:function(e){return!cF(e,uF)}},fF={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?gF(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 pF(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function mF(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 hF(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,eF(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?wF(i,a.coordinateSystem):TF(i,a.coordinateSystem),p=km(r);Om(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:eP(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,ZP(e,h===`outside`?f:h,mF(o),r.get([`label`,`rotate`]))}Bm(m,p,a.getRawValue(n),function(e){return tP(t,e)});var g=r.getModel([`emphasis`]);Hd(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),Kd(e,r),pF(i)&&(e.style.fill=`none`,e.style.stroke=`none`,R(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function gF(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 _F=function(){function e(){}return e}(),vF=function(e){f(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new _F},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}(tu);function yF(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?Xs(e):0;if(l){var d=new vF({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 vF({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,Pu(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,bF),f.on(`mousemove`,bF)),n&&n.push(f)}var bF=ab(function(e){var t=this,n=xF(t,e.offsetX,e.offsetY);Pu(t).dataIndex=n>=0?n:null},30,!1);function xF(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 SF(e,t,n){if(nP(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 CF(e,t,n){return new(e.type===`polar`?Hf:hu)({shape:SF(t,n,e),silent:!0,z2:0})}function wF(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function TF(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function EF(e){e.registerChartView(rF),e.registerSeriesModel(qP),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,VP(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,HP(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,PP(`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)})}),GP(e)}var DF=Math.sin,OF=Math.cos,kF=Math.PI,AF=Math.PI*2,jF=180/kF,MF=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=Gr(u-AF)||(l?c>=AF:-c>=AF),f=c>0?c%AF:c%AF+AF,p=!1;p=d?!0:!Gr(u)&&f>=kF==!!l;var m=e+n*OF(a),h=t+r*DF(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*jF);if(d){var _=1/this._p,v=(l?1:-1)*(AF-_);this._add(`A`,n,r,g,1,+l,e+n*OF(a+v),t+r*DF(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*OF(o),b=t+r*DF(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}(),NF=`none`,PF=Math.round;function FF(e){var t=e.fill;return t!=null&&t!==NF}function IF(e){var t=e.stroke;return t!=null&&t!==NF}var LF=[`lineCap`,`miterLimit`,`lineJoin`],RF=z(LF,function(e){return`stroke-`+e.toLowerCase()});function zF(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof su){e(`opacity`,i);return}if(FF(t)){var a=Ur(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`,NF);if(IF(t)){var s=Ur(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=Tx(n),p=f[0],m=f[1];p&&(m=PF(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,NF);for(var h=0;h<LF.length;h++){var g=LF[h];if(r||t[g]!==Ql[g]){var _=t[g]||Ql[g];_&&e(RF[h],_)}}}else r&&e(`stroke`,NF)}var BF=`http://www.w3.org/2000/svg`,VF=`http://www.w3.org/1999/xlink`,HF=`http://www.w3.org/2000/xmlns/`,UF=`http://www.w3.org/XML/1998/namespace`,WF=`ecmeta_`;function GF(e){return document.createElementNS(BF,e)}function KF(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function qF(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 JF(e){return`</`+e+`>`}function YF(e,t){t||={};var n=t.newline?`
43
- `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return qF(i,a)+(i===`style`?o||``:xt(o))+(t?``+n+z(t,function(e){return r(e)}).join(n)+n:``)+JF(i)}return r(e)}function XF(e,t,n){n||={};var r=n.newline?`
44
- `:``,i=` {`+r,a=r+`}`,o=z(B(e),function(t){return t+i+z(B(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=z(B(t),function(e){return`@keyframes `+e+i+z(B(t[e]),function(n){return n+i+z(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 ZF(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function QF(e,t,n,r){return KF(`svg`,`root`,{width:e,height:t,xmlns:BF,"xmlns:xlink":VF,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var $F=0;function eI(){return $F++}var tI={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`},nI=`transform-origin`;function rI(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new MF;return i.reset(oi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function iI(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[nI]=n+`px `+r+`px`)}var aI={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function oI(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function sI(e,t,n){var r=e.shape.paths,i={},a,o;if(R(r,function(e){var t=ZF(n.zrId);t.animation=!0,lI(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=oI(i,n);return a.replace(o,s)}}function cI(e){return U(e)?tI[e]?`cubic-bezier(`+tI[e]+`)`:gr(e)?e:``:``}function lI(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof op){var s=sI(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=cI(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=cI(d.easing),m=d.rawValue;(U(m)||ge(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={};ga(g,e),P(g,s[h]);var _=si(g),v=s[h][u];l[h]=_?{transform:_}:{},iI(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 Al);var S=y.len();y.reset(),l[h].d=rI(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 aI[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][nI]!==l[O][nI]){T=!1;break}E=l[D][nI]}if(T&&E){for(var h in l)l[h][nI]&&delete l[h][nI];t[nI]=E}if(ue(w,function(e){return B(l[e]).length>0}).length)return oI(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-`+eI();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function uI(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};dI(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=Vr(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),dI(r,t,n,!0)}}}function dI(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+eI(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var fI=Math.round;function pI(e){return e&&U(e.src)}function mI(e){return e&&H(e.toDataURL)}function hI(e,t,n,r){zF(function(i,a){var o=i===`fill`||i===`stroke`;o&&ii(a)?AI(t,e,i,r):o&&ti(a)?jI(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),kI(n,e,r)}function gI(e,t){var n=ro(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[WF+`silent`]=`true`))}function _I(e){return Gr(e[0]-1)&&Gr(e[1])&&Gr(e[2])&&Gr(e[3]-1)}function vI(e){return Gr(e[4])&&Gr(e[5])}function yI(e,t,n){if(t&&!(vI(t)&&_I(t))){var r=n?10:1e4;e.transform=_I(t)?`translate(`+fI(t[4]*r)/r+` `+fI(t[5]*r)/r+`)`:Jr(t)}}function bI(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(fI(r[a][0]*n)/n),i.push(fI(r[a][1]*n)/n);t.points=i.join(` `)}function xI(e){return!e.smooth}function SI(e){var t=z(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]]=fI(o*r)/r)}}}var CI={circle:[SI([`cx`,`cy`,`r`])],polyline:[bI,xI],polygon:[bI,xI]};function wI(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function TI(e,t){var n=e.style,r=e.shape,i=CI[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&oi(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&wI(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 MF,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return yI(a,e.transform),hI(a,n,e,t),gI(a,e),t.animation&&lI(e,a,t),t.emphasis&&uI(e,a,t),KF(s,e.id+``,a)}function EI(e,t){var n=e.style,r=n.image;if(r&&!U(r)&&(pI(r)?r=r.src:mI(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),yI(c,e.transform),hI(c,n,e,t),gI(c,e),t.animation&&lI(e,c,t),KF(`image`,e.id+``,c)}}function DI(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=Xr(n.y||0,Oa(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":Yr[n.textAlign]||n.textAlign};if(Eu(n)){var c=``,l=n.fontStyle,u=wu(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),yI(s,e.transform),hI(s,n,e,t),gI(s,e),t.animation&&lI(e,s,t),KF(`text`,e.id+``,s,void 0,r)}}function OI(e,t){if(e instanceof tu)return TI(e,t);if(e instanceof su)return EI(e,t);if(e instanceof ru)return DI(e,t)}function kI(e,t,n){var r=e.style;if(Zr(r)){var i=Qr(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=Ur(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]=KF(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[KF(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=ai(o)}}function AI(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(ni(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(ri(i))a=`radialGradient`,o.cx=G(i.x,.5),o.cy=G(i.y,.5),o.r=G(i.r,.5);else{process.env.NODE_ENV!==`production`&&ae(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=qr(s[l].offset)*100+`%`,f=s[l].color,p=Ur(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(KF(`stop`,l+``,g))}var _=YF(KF(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=KF(a,y,o,c)),t[n]=ai(y)}function jI(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($r(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(U(h)?m=h:pI(h)?m=h.src:mI(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;K(f,g),K(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=vc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=KF(`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=si(i);x&&(o.patternTransform=x);var S=KF(`pattern`,``,o,[d]),C=YF(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=KF(`pattern`,T,o,[d])),t[n]=ai(T)}}function MI(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]=KF(`clipPath`,a,o,[TI(e,n)])}t[`clip-path`]=ai(a)}function NI(e){return document.createTextNode(e)}function PI(e,t,n){e.insertBefore(t,n)}function FI(e,t){e.removeChild(t)}function II(e,t){e.appendChild(t)}function LI(e){return e.parentNode}function RI(e){return e.nextSibling}function zI(e,t){e.textContent=t}var BI=58,VI=120,HI=KF(``,``);function UI(e){return e===void 0}function WI(e){return e!==void 0}function GI(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 KI(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function qI(e){var t,n=e.children,r=e.tag;if(WI(r)){var i=e.elm=GF(r);if(XI(HI,e),V(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&II(i,qI(a))}else WI(e.text)&&!W(e.text)&&II(i,NI(e.text))}else e.elm=NI(e.text);return e.elm}function JI(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&PI(e,qI(a),t)}}function YI(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(WI(i.tag)?FI(LI(i.elm),i.elm):FI(e,i.elm))}}function XI(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)===VI?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(HF,n,o):n.charCodeAt(3)===BI?r.setAttributeNS(UF,n,o):n.charCodeAt(5)===BI?r.setAttributeNS(VF,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function ZI(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]:KI(o,l)?(QI(o,l),o=t[++r],l=n[++i]):KI(s,u)?(QI(s,u),s=t[--a],u=n[--c]):KI(o,u)?(QI(o,u),PI(e,o.elm,RI(s.elm)),o=t[++r],u=n[--c]):KI(s,l)?(QI(s,l),PI(e,s.elm,o.elm),s=t[--a],l=n[++i]):(UI(d)&&(d=GI(t,r,a)),f=d[l.key],UI(f)?PI(e,qI(l),o.elm):(p=t[f],p.tag===l.tag?(QI(p,l),t[f]=void 0,PI(e,p.elm,o.elm)):PI(e,qI(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,JI(e,m,n,i,c)):YI(e,t,r,a))}function QI(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(XI(e,t),UI(t.text)?WI(r)&&WI(i)?r!==i&&ZI(n,r,i):WI(i)?(WI(e.text)&&zI(n,``),JI(n,null,i,0,i.length-1)):WI(r)?YI(n,r,0,r.length-1):WI(e.text)&&zI(n,``):e.text!==t.text&&(WI(r)&&YI(n,r,0,r.length-1),zI(n,t.text)))}function $I(e,t){if(KI(e,t))QI(e,t);else{var n=e.elm,r=LI(n);qI(t),r!==null&&(PI(r,t.elm,RI(n)),YI(r,[e],0,0))}return t}var eL=0,tL=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=nL(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+eL++,this._oldVNode=QF(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=GF(`svg`);XI(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`,$I(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return OI(e,ZF(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=ZF(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=rL(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=KF(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=z(B(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(KF(`defs`,`defs`,{},c)),e.animation){var l=XF(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=KF(`style`,`stl`,{},[],l);a.push(u)}}return QF(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},YF(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(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 _={};MI(d[g],_,t);var v=KF(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=OI(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=Sx(r,0,n),t=Sx(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(ti(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=ci(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function nL(e){return function(){process.env.NODE_ENV!==`production`&&ae(`In SVG mode painter not support method "`+e+`"`)}}function rL(e,t,n,r){var i;if(n&&n!==`none`){if(i=KF(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),ii(n))AI({fill:n},i.attrs,`fill`,r);else if(ti(n))jI({style:{fill:n},dirty:Be,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=Ur(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function iL(e){e.registerPainter(`svg`,tL)}function aL(e,t,n){var r=S.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function oL(e){return!e.__cursors.get(0)}function sL(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var cL=function(e){f(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ea,typeof t==`string`?a=aL(t,n,r):W(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Re(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=sL(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=aL(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new J(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new J(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new J(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new J(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=sL(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;be(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||yx(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):xe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Mx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&R(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(st),lL=1e5,uL=314159,dL=void 0,fL=1,pL=2;function mL(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function hL(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function gL(e,t,n,r){var i=new cL(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,_L(i),i}function _L(e){e.__cursorStack=[],e.__cursors=q()}function vL(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function yL(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,vL({key:r})))}function bL(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function xL(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function SL(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&CL)||s.__builtin__)&&(!(n&wL)||!s.__builtin__)&&(!(n&TL)||s!==e.hoverlayer))&&t(s,a,o,i)}}var CL=1,wL=2,TL=4,EL=CL|TL,DL=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||ea,this._singleCanvas=i,this.root=e,e.style&&(Re(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=gL(a,this,uL,0);c.initContext(),this._insertLayer(c,uL,0,!0),this._domRoot=e}else{this._width=Sx(e,0,n),this._height=Sx(e,1,n);var l=this._domRoot=hL(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!W(e)?{paintAll:!!e}:e||{},n=G(t.refresh,!0),r=G(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=pL),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return SL(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},wL),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=dL,n!==dL&&(!t&&n===pL&&(t=this._i.hoverlayer=this._ensureLayer(lL)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),Zx(i,s,r),c&&(s.style=l)}}i&&(Qx(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(lL)},e.prototype.paintOne=function(e,t){Xx(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)SL(this._i,function(e){e.afterBrush&&e.afterBrush()},EL),this._paintHoverList(e);else{var i=this;Hn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(uL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),SL(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},CL)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return SL(this._i,function(i){var a=!1;if(bL(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!oL(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}bL(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},EL),m.wxa&&SL(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=oL(e),c=s&&S.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=pL),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(Zx(o,f,a),f.setPrevPaintRect(p))}else Zx(o,f,a);if(s&&S.getTime()-c>15){d++;break}}}Qx(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=uL,t=0);var i=xL(this._i,e)[t];return i||(i=gL(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&N(i,this._layerConfig[e],!0),(n||r&&e!==uL)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(a[t]&&a[t][n]){process.env.NODE_ENV!==`production`&&ae(`ZLevel `+t+`.`+n+` has been used already`);return}if(!mL(e)){process.env.NODE_ENV!==`production`&&ae(`Layer of zlevel `+t+` is not valid`);return}for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=xL(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),xL(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this},e.prototype.eachLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},CL)},e.prototype.eachOtherLayer=function(e,t){return SL(this._i,function(n,r){e.call(t,n,r)},wL)},e.prototype.getLayers=function(){var e={};return SL(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}SL(n._i,function(e){e.__dirty=!1,bL(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},EL);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){ae(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=yL(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}SL(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(oL(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(bL(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===dL&&(n._hoverLayerDirty=fL))},EL)},e.prototype.clear=function(){return SL(this._i,function(e){e.clear(),_L(e)},CL),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,SL(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t,SL(this._i,function(e,t){N(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Sx(i,0,r),t=Sx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,SL(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(uL).resize(e,t)}return this},e.prototype.clearLayer=function(e){R(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[uL][0].dom;var t=new cL(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;SL(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Zx(n,l,a)}Qx(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function OL(e){e.registerPainter(`canvas`,DL)}var kL=({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)},AL=({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)},jL=({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:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}},showBackground:!0,backgroundStyle:{color:`rgba(175, 175, 175, 0.1)`,borderRadius:[16,16,0,0]}}}),u=AL({visualization:e,data:t}),d=kL({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}}}})},ML=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};qE([wA,$N,xN,EF,iL]);var NL=({visualization:e={},data:t={},showLegend:i=!0})=>{let a=(0,r.useRef)(null),o=(0,r.useRef)(null),s=jL({visualization:e,data:t}),c=AL({visualization:e,data:t}),{series:l=[]}=e||{},u=ML({xData:c,series:l});return(0,r.useEffect)(()=>{if(!a.current)return;o.current||=wC(a.current,void 0,{renderer:`svg`});let e=[...s],t={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};u.forEach(({image:e},n)=>{e&&(t[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let n={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},tooltip:{trigger:`axis`},xAxis:{type:`category`,data:c,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,n)=>{let r=`img_${n}`;return t[r]?`{valueStyle|${e}}\n{${r}|}`:`{valueStyle|${e}}`},rich:t}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:e};o.current.setOption(n);let r=new ResizeObserver(()=>{o.current?.resize()});return r.observe(a.current),()=>{r.disconnect(),o.current?.dispose(),o.current=null}},[s,c,u]),(0,n.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:a,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!i||!l.length)return null;let e=l.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${r}`));return(0,n.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},PL=({data:e={},type:t=``})=>{let{data:r={},metadata:{title:i=``,description:a=``,source:o=``,image:s=void 0,articleUrl:l=``}={},visualization:d={},visualization:{settings:{showChart:f=!0,showDescription:p=!0,showImage:m=!0,showLegend:h=!0,showSource:g=!0,showTitle:_=!0}={}}={}}=e||{},v=t===`only-graph`,y=!v,b=!v&&m;return(0,n.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,n.jsx)(u,{title:i,showTitle:_,subtitle:a,showSubtitle:p,url:l,showShare:y}),f?(0,n.jsx)(NL,{data:r,visualization:d,showLegend:h}):null,(0,n.jsx)(c,{showLogo:b,logoSrc:s,source:o,showSource:g})]})},FL={borderColor:`#FFFFFF`,borderRadius:100,borderWidth:4},IL=(e=[])=>e.reduce((e,t,n)=>t?{...e,[`image_${n}`]:{backgroundColor:{image:t},borderRadius:12,height:24,width:24}}:e,{}),LL=(e=[])=>(t,n)=>e[n]?`{image_${n}|} ${t}`:t,RL={AXIS_HEIGHT:60,CATEGORY_GAP:8,MIN_HEIGHT:200},zL=(e=0,t=1,n=!1)=>{try{let r=Number(e)||0,i=(Number(t)||1)*22,a=r*(Math.max(i,n?24:0)+RL.CATEGORY_GAP)+RL.AXIS_HEIGHT;return{height:`${Math.max(a,RL.MIN_HEIGHT)}px`,width:`100%`}}catch(e){return console.log(`[HorizontalBarChart] Error al calcular el alto del gráfico:`,e),{minHeight:`${RL.MIN_HEIGHT}px`,width:`100%`}}},BL=e=>{try{let t=`<div style="font-weight: bold; font-size: 16px; margin-bottom: 12px; color: #555;">${String(e[0]?.name??``).toUpperCase()}</div>`;return e.forEach(e=>{let n=Number(e.value)||0;t+=`
40
+ `:`<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=X(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=fP([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 Jy;h.marker=g.makeTooltipMarker(`item`,Eg(h.color),d);var _=Yv(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?zy(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=X(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=M(a),a.content=kt(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=fP(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Jy;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(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=eg(m.axisValue,d,p)),d=wg(d,n,!0)}else if(V(u)){var g=be(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=jo(t[0],s),r=jo(t[1],c);else if(U(t)){var p=t;p.width=l[0],p.height=l[1];var m=Hg(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(H(t)&&o){var h=gP(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=mP(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=_P(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=_P(d)?l[1]/2:d===`bottom`?l[1]:0),UN(e)){var h=hP(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){b.node||!t.getDom()||(wb(this,`_updatePosition`),this._tooltipContent.dispose(),EA(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(lb);function fP(e,t,n){var r=t.ecModel,i;n?(i=new ph(n,r,r),i=new ph(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof ph&&(o=o.get(`tooltip`,!0)),H(o)&&(o={formatter:o}),o&&(i=new ph(o,i,r)))}return i}function pP(e,t){return e.dispatchAction||be(t.dispatchAction,t)}function mP(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 hP(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 gP(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 _P(e){return e===`center`||e===`middle`}function vP(e,t,n){var r=Bs(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=Us(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=X(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}function yP(e){dD(VA),e.registerComponentModel(HN),e.registerComponentView(dP),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},qe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},qe)}var bP=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:Q.size.m,backgroundColor:Q.color.transparent,borderColor:Q.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:Q.color.primary},subtextStyle:{fontSize:12,color:Q.color.quaternary}},t}(Z),xP=function(e){v(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){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=W(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Nu({style:Gm(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Nu({style:Gm(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Dg(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Dg(p,`_`+e.get(`subtarget`))}),X(c).eventData=X(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var h=r.getBoundingRect(),g=e.getBoxLayoutParams();g.width=h.width,g.height=h.height;var _=Hg(g,Wg(e,n).refContainer,e.get(`padding`));o||(o=e.get(`left`)||e.get(`right`),o===`middle`&&(o=`center`),o===`right`?_.x+=_.width:o===`center`&&(_.x+=_.width/2)),s||(s=e.get(`top`)||e.get(`bottom`),s===`center`&&(s=`middle`),s===`bottom`?_.y+=_.height:s===`middle`&&(_.y+=_.height/2),s||=`top`),r.x=_.x,r.y=_.y,r.markRedraw();var v={align:o,verticalAlign:s};c.setStyle(v),d.setStyle(v),h=r.getBoundingRect();var y=_.margin,b=e.getItemStyle([`color`,`opacity`]);b.fill=e.get(`backgroundColor`);var x=new Ou({shape:{x:h.x-y[3],y:h.y-y[0],width:h.width+y[1]+y[3],height:h.height+y[0]+y[2],r:e.get(`borderRadius`)},style:b,subPixelOptimize:!0,silent:!0});r.add(x)}},t.type=`title`,t}(lb);function SP(e){e.registerComponentModel(bP),e.registerComponentView(xP)}function CP(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=Kv(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Kv(e,t,n[o]));return a.join(` `)}}function wP(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(` `)}var TP=function(e){v(t,e);function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=Mx(e,-1,-1,2,2,null,a);o.attr({z2:W(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=EP,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Id(this.childAt(0))},t.prototype.downplay=function(){Ld(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{var f=this.childAt(0);f.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?f.attr(p):Rp(f,p,o,n),Wp(f)}if(this._updateCommon(e,n,s,r,i),l){var f=this.childAt(0);if(!u){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,zp(f,p,o,n)}}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a=this.childAt(0),o=e.hostModel,s,c,l,u,d,f,p,m,h;if(r&&(s=r.emphasisItemStyle,c=r.blurItemStyle,l=r.selectItemStyle,u=r.focus,d=r.blurScope,p=r.labelStatesModels,m=r.hoverScale,h=r.cursorStyle,f=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);s=_.getModel(`itemStyle`).getItemStyle(),l=g.getModel([`select`,`itemStyle`]).getItemStyle(),c=g.getModel([`blur`,`itemStyle`]).getItemStyle(),u=_.get(`focus`),d=_.get(`blurScope`),f=_.get(`disabled`),p=Wm(g),m=_.getShallow(`scale`),h=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);a.attr(`rotation`,(v||0)*Math.PI/180||0);var y=Px(e.getItemVisual(t,`symbolOffset`),n);y&&(a.x=y[0],a.y=y[1]),h&&a.attr(`cursor`,h);var b=e.getItemVisual(t,`style`),x=b.fill;if(a instanceof bu){var S=a.style;a.useStyle(P({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else a.__isEmptyBrush?a.useStyle(P({},b)):a.useStyle(b),a.style.decal=null,a.setColor(x,i&&i.symbolInnerColor),a.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(a.z2=w,this._z2=null):w??(this._z2=a.z2,a.z2+=C);var T=i&&i.useNameLabel;Um(a,p,{labelFetcher:o,labelDataIndex:t,defaultText:E,inheritColor:x,defaultOpacity:b.opacity});function E(t){return T?e.getName(t):CP(e,t)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=a.ensureState(`emphasis`);D.style=s,a.ensureState(`select`).style=l,a.ensureState(`blur`).style=c;var O=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),tf(this,u,d,f)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=X(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&Vp(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();Vp(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Nx(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(io);function EP(e,t){this.parent.drift(e,t)}function DP(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function OP(e){return e!=null&&!U(e)&&(e={isIgnore:e}),e||{}}function kP(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Wm(t),cursorStyle:t.get(`cursor`)}}function AP(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var jP=function(){function e(e){this.group=new io,this._SymbolCtor=e||TP}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=OP(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=kP(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);DP(e,i,r,t)&&AP(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(!DP(e,p,u,t)){n.remove(f);return}var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),f=new a(e,u,s,c),f.setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):Rp(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=t.getStore(),i=0,a=r.count();i<a;i++){var o=t.getItemGraphicEl(i),s=n._getSymbolPoint(i);DP(t,s,i,e)?(o||=AP(n._SymbolCtor,t,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),t.setItemGraphicEl(i,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=kP(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){this._progressiveEls=[],r=OP(r);function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(DP(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Dm(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function MP(e,t){return e.type===t}var NP=function(e,t){if(t===`all`)return{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])};if(t===`inverse`)return{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}},PP=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;t===!0&&(t=e.selector=[`all`,`inverse`]),B(t)&&L(t,function(e,r){H(e)&&(e={type:e}),t[r]=N(e,NP(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i=r.name;n.push(i);var a;if(r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):a=!0}else a=!0;a&&js(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=K(),a=R(r,function(e){return(H(e)||Ce(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new ph(e,this,this.ecModel))},this);this._data=_e(a,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;L(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;L(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;L(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&I(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get(`orient`)===`vertical`?{index:1,name:`vertical`}:{index:0,name:`horizontal`}},t.type=`legend.plain`,t.dependencies=[`series`],t.defaultOption={z:4,show:!0,orient:`horizontal`,left:`center`,bottom:Q.size.m,align:`auto`,backgroundColor:Q.color.transparent,borderColor:Q.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:Q.color.disabled,inactiveBorderColor:Q.color.disabled,inactiveBorderWidth:`auto`,itemStyle:{color:`inherit`,opacity:`inherit`,borderColor:`inherit`,borderWidth:`auto`,borderCap:`inherit`,borderJoin:`inherit`,borderDashOffset:`inherit`,borderMiterLimit:`inherit`},lineStyle:{width:`auto`,color:`inherit`,inactiveColor:Q.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:Q.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:Q.color.tertiary,borderWidth:1,borderColor:Q.color.border},emphasis:{selectorLabel:{show:!0,color:Q.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Z),FP=xe,IP=L,LP=io,RP=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new LP),this.group.add(this._selectorGroup=new LP),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);(!i||i===`auto`)&&(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);o&&(!s||s===`auto`)&&(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=Wg(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Hg(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Hg(F({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=UM(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,a,o){var s=this.getContentGroup(),c=K(),l=t.get(`selectedMode`),u=t.get(`triggerEvent`),d=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&d.push(e.id)}),IP(t.getData(),function(i,a){var o=this,f=i.get(`name`);if(!this.newlineDisabled&&(f===``||f===`
41
+ `)){var p=new LP;p.newline=!0,s.add(p);return}var m=n.getSeriesByName(f)[0];if(!c.get(f)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,f,a,i,t,e,g,v,_,l,r);y.on(`click`,FP(VP,f,null,r,d)).on(`mouseover`,FP(HP,m.name,null,r,d)).on(`mouseout`,FP(UP,m.name,null,r,d)),n.ssr&&y.eachChild(function(e){var t=X(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&y.eachChild(function(e){o.packEventData(e,t,m,a,f)}),c.set(f,!0)}else n.eachRawSeries(function(o){var s=this;if(!c.get(f)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(f))return;var m=p.indexOfName(f),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=Hr(h.fill);_&&_[3]===0&&(_[3]=.2,h=P(P({},h),{fill:Jr(_,`rgba`)}));var v=this._createItem(o,f,a,i,t,e,{},h,g,l,r);v.on(`click`,FP(VP,null,f,r,d)).on(`mouseover`,FP(HP,null,f,r,d)).on(`mouseout`,FP(UP,null,f,r,d)),n.ssr&&v.eachChild(function(e){var t=X(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),u&&v.eachChild(function(e){s.packEventData(e,t,o,a,f)}),c.set(f,!0)}},this);process.env.NODE_ENV!==`production`&&(c.get(f)||console.warn(f+` series not exists. Legend data should be same with series name or data name.`))}},this),i&&this._createSelector(i,t,r,a,o)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};X(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();IP(e,function(e){var r=e.type,i=new Nu({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i),Um(i,{normal:t.getModel(`selectorLabel`),emphasis:t.getModel([`emphasis`,`selectorLabel`])},{defaultText:e.title}),$d(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),h=r.get(`symbolRotate`),g=r.get(`symbolKeepAspect`),_=r.get(`icon`);c=_||c||`roundRect`;var v=zP(c,r,o,s,d,m,u),y=new LP,b=r.getModel(`textStyle`);if(V(e.getLegendIcon)&&(!_||_===`inherit`))y.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:h,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}));else{var x=_===`inherit`&&e.getData().getVisual(`symbol`)?h===`inherit`?e.getData().getVisual(`symbolRotate`):h:0;y.add(BP({itemWidth:f,itemHeight:p,icon:c,iconRotate:x,itemStyle:v.itemStyle,lineStyle:v.lineStyle,symbolKeepAspect:g}))}var S=a===`left`?f+5:-5,C=a,w=i.get(`formatter`),T=t;H(w)&&w?T=w.replace(`{name}`,t??``):V(w)&&(T=w(t));var E=m?b.getTextColor():r.get(`inactiveColor`);y.add(new Nu({style:Gm(b,{text:T,x:S,y:p/2,fill:E,align:C,verticalAlign:`middle`},{inheritColor:E})}));var D=new Ou({shape:y.getBoundingRect(),style:{fill:`transparent`}}),O=r.getModel(`tooltip`);return O.get(`show`)&&Tm({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),y.add(D),y.eachChild(function(e){e.silent=!0}),D.silent=!l,this.getContentGroup().add(y),$d(y),y.__legendDataIndex=n,y},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Bg(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){Bg(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(lb);function zP(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),IP(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=!d||d===`inherit`?r.decal:xS(d,o),l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}function BP(e){var t=e.icon||`roundRect`,n=Mx(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=Q.color.neutral00,n.style.lineWidth=2),n}function VP(e,t,n,r){UP(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),HP(e,t,n,r)}function HP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function UP(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function WP(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),GP(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){L(i,function(t,n){e[t?`select`:`unSelect`](n)}),GP(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function GP(e,t){var n=t||{};return L(e.getData(),function(t){var r=t.get(`name`);if(r!==`
42
+ `&&r!==``){var i=e.isSelected(r);n[r]=Ke(n,r)?n[r]&&i:i}}),n}function KP(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,xe(WP,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,xe(WP,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,xe(WP,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,xe(WP,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,xe(WP,`unSelect`))}var qP=dc(JP);function JP(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function YP(e){e.registerComponentModel(PP),e.registerComponentView(RP),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,qP),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),KP(e)}var XP=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=Jg(t);e.prototype.init.call(this,t,n,r),ZP(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),ZP(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=vh(PP.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:`end`,pageFormatter:`{current}/{total}`,pageIcons:{horizontal:[`M0,0L12,-10L12,10z`,`M0,0L-12,-10L-12,10z`],vertical:[`M0,0L20,0L10,-20z`,`M0,0L20,0L10,20z`]},pageIconColor:Q.color.accent50,pageIconInactiveColor:Q.color.accent10,pageIconSize:15,pageTextStyle:{color:Q.color.tertiary},animationDurationUpdate:800}),t}(PP);function ZP(e,t,n){var r=e.getOrient(),i=[1,1];i[r.index]=0,qg(t,n,{type:`box`,ignoreSize:!!i})}var QP=io,$P=[`width`,`height`],eF=[`x`,`y`],tF=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new QP),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new QP)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=B(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);l.add(new Nu({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1);function p(e,t){var r=e+`DataIndex`,a=_m(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:be(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=$P[s],l=eF[s],u=$P[1-s],d=eF[1-s];i&&Bg(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=M(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Bg(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),Bg(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var h=[0,0],g=[-f.x,-f.y],_=W(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?g[r]+=n[i]-f[i]:h[r]+=f[i]+_),g[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(h),u.setPosition(g);var v={x:0,y:0};if(v[i]=p?n[i]:d[i],v[a]=Math.max(d[a],f[a]),v[o]=Math.min(0,f[o]+g[1-r]),l.__rectSize=n[i],p){var y={x:0,y:0};y[i]=Math.max(n[i]-f[i]-_,0),y[a]=v[a],l.setClipPath(new Ou({shape:y})),l.__rectSize=y[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&Rp(c,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),v},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;L([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,H(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=$P[i],o=eF[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)_=v(c[m]),(!_&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_,h&&(f.pageNextDataIndex??=h.i,++f.pageCount)),g=_;for(var m=s-1,h=p,g=p,_=null;m>=-1;--m)_=v(c[m]),(!_||!y(g,_.s))&&h.i<g.i&&(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n=this.getContentGroup(),r;return n.eachChild(function(n,i){var a=n.__legendDataIndex;r==null&&a!=null&&(r=i),a===e&&(t=i)}),t??r},t.type=`legend.scroll`,t}(RP);function nF(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}function rF(e){dD(YP),e.registerComponentModel(XP),e.registerComponentView(tF),nF(e)}function iF(e){dD(YP),dD(rF)}var aF=function(e){v(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(e){if(process.env.NODE_ENV!==`production`){var t=e.coordinateSystem;if(t!==`polar`&&t!==`cartesian2d`)throw Error(`Line not support coordinateSystem besides cartesian and polar`)}return Xw(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new io,n=Mx(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=e.itemHeight*.8,s=Mx(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=Q.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(eb);function oF(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=sF(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=R(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return Kw(t,d[0])&&(f=!0,d[0]=p),Kw(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function sF(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:Ce(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function cF(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function lF(e,t){return!isFinite(e)||!isFinite(t)}function uF(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}function dF(e,t,n,r,i,a,o,s){for(var c=uF(e,t),l=[],u=[],d=[],f=[],p=[],m=[],h=[],g=oF(i,t,o),_=e.getLayout(`points`)||[],v=t.getLayout(`points`)||[],y=0;y<c.length;y++){var b=c[y],x=!0,S=void 0,C=void 0;switch(b.cmd){case`=`:S=b.idx*2,C=b.idx1*2;var w=_[S],T=_[S+1],E=v[C],D=v[C+1];(isNaN(w)||isNaN(T))&&(w=E,T=D),l.push(w,T),u.push(E,D),d.push(n[S],n[S+1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(b.idx1));break;case`+`:var O=b.idx,k=g.dataDimsForPoint,A=i.dataToPoint([t.get(k[0],O),t.get(k[1],O)]);C=O*2,l.push(A[0],A[1]),u.push(v[C],v[C+1]);var j=cF(g,i,t,O);d.push(j[0],j[1]),f.push(r[C],r[C+1]),h.push(t.getRawIndex(O));break;case`-`:x=!1}x&&(p.push(b),m.push(m.length))}m.sort(function(e,t){return h[e]-h[t]});for(var ee=l.length,te=GA(ee),ne=GA(ee),re=GA(ee),ie=GA(ee),ae=[],y=0;y<m.length;y++){var oe=m[y],se=y*2,ce=oe*2;te[se]=l[ce],te[se+1]=l[ce+1],ne[se]=u[ce],ne[se+1]=u[ce+1],re[se]=d[ce],re[se+1]=d[ce+1],ie[se]=f[ce],ie[se+1]=f[ce+1],ae[y]=p[oe]}return{current:te,next:ne,stackedOnCurrent:re,stackedOnNext:ie,status:ae}}var fF=Math.min,pF=Math.max;function mF(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[h*2],v=t[h*2+1];if(h>=i||h<0)break;if(lF(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[x*2],C=t[x*2+1];S===_&&C===v&&g<r;)g++,x+=a,h+=a,S=t[x*2],C=t[x*2+1],_=t[h*2],v=t[h*2+1],y=_-l,b=v-u;var w=g+1;if(c)for(;lF(S,C)&&w<r;)w++,x+=a,S=t[x*2],C=t[x*2+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||lF(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,ee=v-u,te=C-v,ne=void 0,re=void 0;if(s===`x`){ne=Math.abs(A),re=Math.abs(j);var ie=E>0?1:-1;p=_-ie*ne*o,m=v,O=_+ie*re*o,k=v}else if(s===`y`){ne=Math.abs(ee),re=Math.abs(te);var ae=D>0?1:-1;p=_,m=v-ae*ne*o,O=_,k=v+ae*re*o}else ne=Math.sqrt(A*A+ee*ee),re=Math.sqrt(j*j+te*te),T=re/(re+ne),p=_-E*o*(1-T),m=v-D*o*(1-T),O=_+E*o*T,k=v+D*o*T,O=fF(O,pF(S,_)),k=fF(k,pF(C,v)),O=pF(O,fF(S,_)),k=pF(k,fF(C,v)),E=O-_,D=k-v,p=_-E*ne/re,m=v-D*ne/re,p=fF(p,pF(l,_)),m=fF(m,pF(u,v)),p=pF(p,fF(l,_)),m=pF(m,fF(u,v)),E=_-p,D=v-m,O=_+E*re/ne,k=v+D*re/ne}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var hF=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),gF=function(e){v(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return t.prototype.getDefaultStyle=function(){return{stroke:Q.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new hF},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&lF(n[i*2-2],n[i*2-1]);i--);for(;r<i&&lF(n[r*2],n[r*2+1]);r++);}for(;r<i;)r+=mF(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path.data,r=Wl.CMD,i,a,o=t===`x`,s=[],c=0;c<n.length;){var l=n[c++],u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0,g=void 0;switch(l){case r.M:i=n[c++],a=n[c++];break;case r.L:if(u=n[c++],d=n[c++],g=o?(e-i)/(u-i):(e-a)/(d-a),g<=1&&g>=0){var _=o?(d-a)*g+a:(u-i)*g+i;return o?[e,_]:[_,e]}i=u,a=d;break;case r.C:u=n[c++],d=n[c++],f=n[c++],p=n[c++],m=n[c++],h=n[c++];var v=o?dr(i,u,f,m,e,s):dr(a,d,p,h,e,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=o?lr(a,d,p,h,b):lr(i,u,f,m,b);return o?[e,_]:[_,e]}}i=m,a=h}}},t}(Y),_F=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(hF),vF=function(e){v(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return t.prototype.getDefaultShape=function(){return new _F},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&lF(n[a*2-2],n[a*2-1]);a--);for(;i<a&&lF(n[i*2],n[i*2+1]);i++);}for(;i<a;){var s=mF(e,n,i,a,a,1,t.smooth,o,t.connectNulls);mF(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(Y);function yF(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 Ou({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;zp(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,h)}return d}function bF(e,t,n){var r=e.getArea(),i=J(r.r0,1),a=J(r.r,1),o=new np({shape:{cx:J(e.cx,1),cy:J(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,zp(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function xF(e,t,n,r,i){return e?e.type===`polar`?bF(e,t,n):e.type===`cartesian2d`?yF(e,t,n,r,i):null:null}function SF(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function CF(e){for(var t=Ys(),n=Ys(),r=0;r<e.length;){var i=e[r++],a=e[r++];lF(i,a)||(Xs(t,i),Xs(n,a))}return[t,n]}function wF(e,t){var n=CF(e),r=n[0],i=n[1],a=CF(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function TF(e){return Ce(e)?e:e?.5:0}function EF(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=GA(r*2),a=0;a<r;a++){var o=cF(n,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function DF(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;lF(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function OF(e,t){var n=[],r=e.length,i,a;function o(e,t,n){var r=e.coord;return{coord:n,color:Kr((n-r)/(t.coord-r),[e.color,t.color])}}for(var s=0;s<r;s++){var c=e[s],l=c.coord;if(l<0)i=c;else if(l>t){a?n.push(o(a,c,t)):i&&n.push(o(i,c,0),o(i,c,t));break}else i&&=(n.push(o(i,c,0)),null),n.push(c),a=c}return n}function kF(e,t,n){var r=e.getVisual(`visualMeta`);if(!(!r||!r.length||!e.count())){if(t.type!==`cartesian2d`){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style is only supported on cartesian2d.`);return}for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i===`x`||i===`y`){a=r[o];break}}if(!a){process.env.NODE_ENV!==`production`&&console.warn(`Visual map on line style only support x or y dimension.`);return}var c=t.getAxis(i),l=R(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=OF(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=10,h=f[0].coord-m,g=f[p-1].coord+m,_=g-h;if(_<.001)return`transparent`;L(f,function(e){e.offset=(e.coord-h)/_}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var v=new Sp(0,0,0,0,f,!0);return v[i]=h,v[i+`2`]=g,v}}function AF(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!(r&&!i)){var a=n.getAxesByScale(`ordinal`)[0];if(a&&!(i&&jF(a,t))){var o=t.mapDimension(a.dim),s={};return L(a.getViewLabels(),function(e){e.tick.offInterval||(s[pE(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function jF(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(TP.getSymbolSize(t,o)[+!!e.isHorizontal()]*1.5>r)return!1;return!0}function MF(e){for(var t=e.length/2;t>0&&lF(e[t*2-2],e[t*2-1]);t--);return t-1}function NF(e,t){return[e[t*2],e[t*2+1]]}function PF(e,t,n){for(var r=e.length/2,i=n===`x`?0:1,a,o,s=0,c=-1,l=0;l<r;l++)if(o=e[l*2+i],!lF(o,e[l*2+1-i])){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){c=l;break}s=l,a=o}return{range:[s,c],t:(t-a)/(o-a)}}function FF(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<ld.length;t++)if(e.get([ld[t],`endLabel`,`show`]))return!0;return!1}function IF(e,t,n,r){if(MP(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=FF(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=yF(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=f*2):(d.x-=f,d.width+=f*2)}return c&&c(1,u),u}return process.env.NODE_ENV!==`production`&&r.get([`endLabel`,`show`])&&console.warn(`endLabel is not supported for lines in polar systems.`),bF(t,n,r)}function LF(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}var RF=function(e){v(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var e=new io,t=new jP;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=be(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=oF(r,a,_),y=g&&EF(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&AF(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w=!l&&e.get(`step`),T;r&&r.getArea&&e.get(`clip`,!0)&&(T=r.getArea(),T.width==null?T.r0&&(T.r0-=.5,T.r+=.5):(T.x-=.1,T.y-=.1,T.width+=.2,T.height+=.2)),this._clipShapeForSymbol=T;var E=kF(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(!(f&&u.type===r.type&&w===this._step))b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),h&&this._initSymbolLabelAnimation(a,r,T),w&&(y&&=DF(y,c,r,w,x),c=DF(c,null,r,w,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Eg(E)),m.setClipPath(IF(this,r,!0,e));else{g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Eg(E));var D=m.getClipPath();D?zp(D,{shape:IF(this,r,!1,e).shape},e):m.setClipPath(IF(this,r,!0,e)),b&&d.updateData(a,{isIgnore:S,clipShape:T,disableAnimation:!0,getSymbolPoint:function(e){return[c[e*2],c[e*2+1]]}}),(!SF(this._stackedOnPoints,y)||!SF(this._points,c))&&(h?this._doUpdateAnimation(a,y,r,n,w,_,x):(w&&(y&&=DF(y,c,r,w,x),c=DF(c,null,r,w,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}var O=e.getModel(`emphasis`),k=O.get(`focus`),A=O.get(`blurScope`),j=O.get(`disabled`);if(f.useStyle(F(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),of(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`){var ee=f.getState(`emphasis`).style;ee.lineWidth=+f.style.lineWidth+1}X(f).seriesIndex=e.seriesIndex,tf(f,k,A,j);var te=TF(e.get(`smooth`)),ne=e.get(`smoothMonotone`);if(f.setShape({smooth:te,smoothMonotone:ne,connectNulls:x}),p){var re=a.getCalculationInfo(`stackedOnSeries`),ie=0;p.useStyle(F(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),re&&(ie=TF(re.get(`smooth`))),p.setShape({smooth:te,stackedOnSmooth:ie,smoothMonotone:ne,connectNulls:x}),of(p,e,`areaStyle`),X(p).seriesIndex=e.seriesIndex,tf(p,k,A,j)}var ae=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=ae)}),this._polyline.onHoverStateChange=ae,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=w,this._valueOrigin=_;var oe=e.get(`triggerEvent`),se=e.get(`triggerLineEvent`);process.env.NODE_ENV!==`production`&&se&&gM(`triggerLineEvent`,"Use the `triggerEvent` option instead.");var ce=se===!0||oe===!0||oe===`line`,le=se===!0||oe===!0||oe===`area`;this.packEventData(e,f,ce),p&&this.packEventData(e,p,le)},t.prototype.packEventData=function(e,t,n){X(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=Is(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[a*2],l=o[a*2+1];if(lF(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;s=new TP(i,a),s.x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pb.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=Is(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else pb.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Dd(this._polyline,e),t&&Dd(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new gF({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new vF({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);V(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=V(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=V(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(FF(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o){a.removeTextContent(),this._endLabel=null;return}var s=this._endLabel;s||(s=this._endLabel=new Nu({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=MF(o);c>=0&&(Um(a,Wm(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?CP(i,e):wP(i,n)},enableTextSetter:!0},LF(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=PF(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=NF(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{var E=c.getPointOn(v,x);E&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=Js(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0,E=NF(l,k);i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=eh(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=dF(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,a),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=DF(u.stackedOnCurrent,u.current,n,i,o),d=DF(u.current,null,n,i,o),m=DF(u.stackedOnNext,u.next,n,i,o),p=DF(u.next,null,n,i,o)),wF(d,p)>3e3||c&&wF(f,m)>3e3){s.stopAnimation(),s.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),Rp(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),Rp(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=g[t].ptIdx*2;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(pb);function zF(e,t){return{seriesType:e,plan:ub(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=R(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);Kw(n,o[0])&&(o[0]=c),Kw(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&GA(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}}}var BF={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]}},VF=function(e){return Math.round(e.length/2)};function HF(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=BF[i]:V(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,VF))}}}}}function UF(e){e.registerChartView(RF),e.registerSeriesModel(aF),e.registerLayout(zF(`line`,!0)),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,HF(`line`))}var WF=ic(),GF=`__ec_stack_`;function KF(e){return e.get(`stack`)||GF+e.seriesIndex}function qF(e,t){var n=JF(e,t);return n.columnMap=YF(n),n}function JF(e,t){var n=ZA(t,aO),r=[],i=FD(e,{fromStat:{key:n},min:1});return EE(e,n,function(e){r.push({barWidth:jo(e.get(`barWidth`),i.w),barMaxWidth:jo(e.get(`barMaxWidth`),i.w),barMinWidth:jo(e.get(`barMinWidth`)||(QF(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:KF(e)})}),{bandWidthResult:i,seriesInfo:r}}function YF(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;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=yo(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??=bo(35-o.length*4,15)+`%`;var c=jo(i,t),l=jo(a,1),u=(n-c)/(r+(r-1)*l);u=bo(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=yo(o,i)),a&&(o=bo(o,a)),t.width=o,n-=o+l*o,r--}else{var o=u;i&&i<o&&(o=yo(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=bo(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 XF(e){return{seriesType:e,overallReset:function(t){var n=ZA(e,aO);OE(t,n,function(t){process.env.NODE_ENV!==`production`&&G(t instanceof bO);var r=qF(t,e);EE(t,n,function(e){var t=r.columnMap[KF(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function ZF(e){return{seriesType:e,plan:ub(),reset:function(e){if(nk(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=Kw(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(ej(i))),p=QF(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&&GA(r*3),c=p&&s&&GA(r*3),l=p&&GA(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,xo(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,xo(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 QF(e){return e.pipelineContext&&e.pipelineContext.large}function $F(e){return XA(ZA(e,aO))}function eI(e){WF(e,function(){function t(t){var n=ZA(t,aO);$A(e,n,t,aO),ZE(n,$F(t))}t(`bar`),t(`pictorialBar`)})}var tI=function(e){v(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 Xw(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}(eb);eb.registerClass(tI);var nI=function(e){v(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 Xw(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=uc(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=vh(tI.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}(tI),rI=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}(),iI=function(e){v(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return t.prototype.getDefaultShape=function(){return new rI},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}(Y);function aI(e,t){t||={};var n=t.isRoundCap;return function(t,r,i){var a=r.position;if(!a||a instanceof Array)return Ba(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)+sI(m,s+_,!1),x=u+p*y(m)+cI(m,s+_,!1),S=`right`,C=`middle`;break;case`insideStartAngle`:b=l+p*v(m)+sI(m,-s+_,!1),x=u+p*y(m)+cI(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)+sI(h,s+_,!0),x=u+p*y(h)+cI(h,s+_,!0),S=`left`,C=`middle`;break;case`insideEndAngle`:b=l+p*v(h)+sI(h,-s+_,!0),x=u+p*y(h)+cI(h,-s+_,!0),S=`right`,C=`middle`;break;default:return Ba(t,r,i)}return t||={},t.x=b,t.y=x,t.align=S,t.verticalAlign=C,t}}function oI(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 sI(e,t,n){return t*Math.sin(e)*(n?-1:1)}function cI(e,t,n){return t*Math.cos(e)*(n?1:-1)}function lI(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:R(r,function(e){return za(e,i)})}}var uI=Math.max,dI=Math.min,fI=function(e){v(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`&&as(`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){Dm(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=hI(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=xI[s.type](a,e);if(!t)return null;var n=MI(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=xI[s.type](a,t,n);if(r&&(h&&S(t),!(!a.hasValue(t)||!bI[s.type](r)))){var o=!1;f&&(o=pI[s.type](p,r));var g=mI[s.type](e,a,t,r,l,u,c.model,!1,m);d&&(g.forceLabelAnimation=!0),wI(g,a,t,n,r,e,l,s.type===`polar`),b?g.attr({shape:r}):d?gI(d,u,g,r,t,l,!1,!1):zp(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=xI[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=xI[s.type](a,t),E=jI(l,T,s);Rp(w,{shape:E},u,t)}var D=o.getItemGraphicEl(n);if(!a.hasValue(t)||!bI[s.type](C)){i.remove(D);return}var O=!1;if(f&&(O=pI[s.type](p,C),O&&i.remove(D)),D&&(D.type===`sector`&&m||D.type===`sausage`&&!m)&&(D&&Up(D,e,n),D=null),D?Wp(D):D=mI[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=eh(k);A.prevValue!=null&&(A.prevValue=A.value)}}else wI(D,a,t,r,C,e,l,s.type===`polar`);b?D.attr({shape:C}):d?gI(d,u,D,C,t,l,!0,x):Rp(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&&Up(n,e,t)}).execute();var C=this._backgroundGroup||=new io;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(),OI(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),OI(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&xF(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){Up(t,e,X(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}(pb),pI={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=uI(t.x,e.x),s=dI(t.x+t.width,i),c=uI(t.y,e.y),l=dI(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=dI(t.r,e.r),a=uI(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}},mI={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new Ou({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?iI:np,u=new l({shape:r,z2:1});if(u.name=`item`,u.calculateTextPosition=aI(CI(i),{isRoundCap:l===iI}),a){var d=u.shape,f=i?`r`:`endAngle`,p={};d[f]=i?r.r0:r.startAngle,p[f]=r[f],(s?Rp:zp)(u,{shape:p},a)}return u}};function hI(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(process.env.NODE_ENV!==`production`&&n&&(r.type!==`category`&&as("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!==`cartesian2d`&&as("`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 gI(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?Rp:zp)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?Rp:zp)(n,{shape:l},u,i)}function _I(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var vI=[`x`,`y`,`width`,`height`],yI=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],bI={cartesian2d:function(e){return!_I(e,vI)},polar:function(e){return!_I(e,yI)}},xI={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?TI(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 SI(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function CI(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 wI(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,lI(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?NI(i,a.coordinateSystem):PI(i,a.coordinateSystem),p=Wm(r);Um(e,p,{labelFetcher:a,labelDataIndex:n,defaultText:CP(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,oI(e,h===`outside`?f:h,CI(o),r.get([`label`,`rotate`]))}th(m,p,a.getRawValue(n),function(e){return wP(t,e)});var g=r.getModel([`emphasis`]);tf(e,g.get(`focus`),g.get(`blurScope`),g.get(`disabled`)),of(e,r),SI(i)&&(e.style.fill=`none`,e.style.stroke=`none`,L(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}function TI(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 EI=function(){function e(){}return e}(),DI=function(e){v(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return t.prototype.getDefaultShape=function(){return new EI},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}(Y);function OI(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?lc(e):0;if(l){var d=new DI({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 DI({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,X(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,kI),f.on(`mousemove`,kI)),n&&n.push(f)}var kI=Sb(function(e){var t=this,n=AI(t,e.offsetX,e.offsetY);X(t).dataIndex=n>=0?n:null},30,!1);function AI(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 jI(e,t,n){if(MP(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 MI(e,t,n){return new(e.type===`polar`?np:Ou)({shape:jI(t,n,e),silent:!0,z2:0})}function NI(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}function PI(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}function FI(e){e.registerChartView(fI),e.registerSeriesModel(nI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,XF(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZF(`bar`)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,HF(`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)})}),eI(e)}var II=Math.sin,LI=Math.cos,RI=Math.PI,zI=Math.PI*2,BI=180/RI,VI=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=ti(u-zI)||(l?c>=zI:-c>=zI),f=c>0?c%zI:c%zI+zI,p=!1;p=d?!0:!ti(u)&&f>=RI==!!l;var m=e+n*LI(a),h=t+r*II(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*BI);if(d){var _=1/this._p,v=(l?1:-1)*(zI-_);this._add(`A`,n,r,g,1,+l,e+n*LI(a+v),t+r*II(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*LI(o),b=t+r*II(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}(),HI=`none`,UI=Math.round;function WI(e){var t=e.fill;return t!=null&&t!==HI}function GI(e){var t=e.stroke;return t!=null&&t!==HI}var KI=[`lineCap`,`miterLimit`,`lineJoin`],qI=R(KI,function(e){return`stroke-`+e.toLowerCase()});function JI(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof bu){e(`opacity`,i);return}if(WI(t)){var a=$r(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`,HI);if(GI(t)){var s=$r(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=Ux(n),p=f[0],m=f[1];p&&(m=UI(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,HI);for(var h=0;h<KI.length;h++){var g=KI[h];if(r||t[g]!==fu[g]){var _=t[g]||fu[g];_&&e(qI[h],_)}}}else r&&e(`stroke`,HI)}var YI=`http://www.w3.org/2000/svg`,XI=`http://www.w3.org/1999/xlink`,ZI=`http://www.w3.org/2000/xmlns/`,QI=`http://www.w3.org/XML/1998/namespace`,$I=`ecmeta_`;function eL(e){return document.createElementNS(YI,e)}function tL(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function nL(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 rL(e){return`</`+e+`>`}function iL(e,t){t||={};var n=t.newline?`
43
+ `:``;function r(e){var t=e.children,i=e.tag,a=e.attrs,o=e.text;return nL(i,a)+(i===`style`?o||``:kt(o))+(t?``+n+R(t,function(e){return r(e)}).join(n)+n:``)+rL(i)}return r(e)}function aL(e,t,n){n||={};var r=n.newline?`
44
+ `:``,i=` {`+r,a=r+`}`,o=R(z(e),function(t){return t+i+R(z(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=R(z(t),function(e){return`@keyframes `+e+i+R(z(t[e]),function(n){return n+i+R(z(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 oL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sL(e,t,n,r){return tL(`svg`,`root`,{width:e,height:t,xmlns:YI,"xmlns:xlink":XI,version:`1.1`,baseProfile:`full`,viewBox:r?`0 0 `+e+` `+t:!1},n)}var cL=0;function lL(){return cL++}var uL={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`},dL=`transform-origin`;function fL(e,t,n){var r=P({},e.shape);P(r,t),e.buildPath(n,r);var i=new VI;return i.reset(gi(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function pL(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[dL]=n+`px `+r+`px`)}var mL={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function hL(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function gL(e,t,n){var r=e.shape.paths,i={},a,o;if(L(r,function(e){var t=oL(n.zrId);t.animation=!0,vL(e,{},t,!0);var r=t.cssAnims,s=t.cssNodes,c=z(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=hL(i,n);return a.replace(o,s)}}function _L(e){return H(e)?uL[e]?`cubic-bezier(`+uL[e]+`)`:wr(e)?e:``:``}function vL(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof bp){var s=gL(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=_L(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=_L(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={};Ea(g,e),P(g,s[h]);var _=_i(g),v=s[h][u];l[h]=_?{transform:_}:{},pL(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 Wl);var S=y.len();y.reset(),l[h].d=fL(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 mL[e]})}for(var w=z(l),T=!0,E,f=1;f<w.length;f++){var D=w[f-1],O=w[f];if(l[D][dL]!==l[O][dL]){T=!1;break}E=l[D][dL]}if(T&&E){for(var h in l)l[h][dL]&&delete l[h][dL];t[dL]=E}if(_e(w,function(e){return z(l[e]).length>0}).length)return hL(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-`+lL();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function yL(e,t,n){if(!e.ignore){if(e.isSilent()){var r={"pointer-events":`none`};bL(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=Zr(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),bL(r,t,n,!0)}}}function bL(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+lL(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var xL=Math.round;function SL(e){return e&&H(e.src)}function CL(e){return e&&V(e.toDataURL)}function wL(e,t,n,r){JI(function(i,a){var o=i===`fill`||i===`stroke`;o&&mi(a)?zL(t,e,i,r):o&&di(a)?BL(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),RL(n,e,r)}function TL(e,t){var n=mo(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e[$I+`silent`]=`true`))}function EL(e){return ti(e[0]-1)&&ti(e[1])&&ti(e[2])&&ti(e[3]-1)}function DL(e){return ti(e[4])&&ti(e[5])}function OL(e,t,n){if(t&&!(DL(t)&&EL(t))){var r=n?10:1e4;e.transform=EL(t)?`translate(`+xL(t[4]*r)/r+` `+xL(t[5]*r)/r+`)`:ii(t)}}function kL(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(xL(r[a][0]*n)/n),i.push(xL(r[a][1]*n)/n);t.points=i.join(` `)}function AL(e){return!e.smooth}function jL(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]]=xL(o*r)/r)}}}var ML={circle:[jL([`cx`,`cy`,`r`])],polyline:[kL,AL],polygon:[kL,AL]};function NL(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}function PL(e,t){var n=e.style,r=e.shape,i=ML[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&gi(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&NL(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 VI,h.reset(l),f.rebuildPath(h,c),h.generateStr(),m.__svgPathVersion=p,m.__svgPathStrokePercent=c),a.d=h.getStr()}return OL(a,e.transform),wL(a,n,e,t),TL(a,e),t.animation&&vL(e,a,t),t.emphasis&&yL(e,a,t),tL(s,e.id+``,a)}function FL(e,t){var n=e.style,r=n.image;if(r&&!H(r)&&(SL(r)?r=r.src:CL(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),OL(c,e.transform),wL(c,n,e,t),TL(c,e),t.animation&&vL(e,c,t),tL(`image`,e.id+``,c)}}function IL(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=oi(n.y||0,Ra(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":ai[n.textAlign]||n.textAlign};if(zu(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),OL(s,e.transform),wL(s,n,e,t),TL(s,e),t.animation&&vL(e,s,t),tL(`text`,e.id+``,s,void 0,r)}}function LL(e,t){if(e instanceof Y)return PL(e,t);if(e instanceof bu)return FL(e,t);if(e instanceof gu)return IL(e,t)}function RL(e,t,n){var r=e.style;if(si(r)){var i=ci(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=$r(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]=tL(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[tL(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:v,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=hi(o)}}function zL(e,t,n,r){var i=e[n],a,o={gradientUnits:i.global?`userSpaceOnUse`:`objectBoundingBox`};if(fi(i))a=`linearGradient`,o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(pi(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`&&de(`Illegal gradient type.`);return}for(var s=i.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=ri(s[l].offset)*100+`%`,f=s[l].color,p=$r(f),m=p.color,h=p.opacity,g={offset:d};g[`stop-color`]=m,h<1&&(g[`stop-opacity`]=h),c.push(tL(`stop`,l+``,g))}var _=iL(tL(a,``,o,c)),v=r.gradientCache,y=v[_];y||(y=r.zrId+`-g`+r.gradientIdx++,v[_]=y,o.id=y,r.defs[y]=tL(a,y,o,c)),t[n]=hi(y)}function BL(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(li(i)){var f=i.imageWidth,p=i.imageHeight,m=void 0,h=i.image;if(H(h)?m=h:SL(h)?m=h.src:CL(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=jc(m,null,e,function(e){c||_(S,e),_(d,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}d=tL(`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=_i(i);x&&(o.patternTransform=x);var S=tL(`pattern`,``,o,[d]),C=iL(S),w=r.patternCache,T=w[C];T||(T=r.zrId+`-p`+r.patternIdx++,w[C]=T,o.id=T,S=r.defs[T]=tL(`pattern`,T,o,[d])),t[n]=hi(T)}}function VL(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]=tL(`clipPath`,a,o,[PL(e,n)])}t[`clip-path`]=hi(a)}function HL(e){return document.createTextNode(e)}function UL(e,t,n){e.insertBefore(t,n)}function WL(e,t){e.removeChild(t)}function GL(e,t){e.appendChild(t)}function KL(e){return e.parentNode}function qL(e){return e.nextSibling}function JL(e,t){e.textContent=t}var YL=58,XL=120,ZL=tL(``,``);function QL(e){return e===void 0}function $L(e){return e!==void 0}function eR(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 tR(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function nR(e){var t,n=e.children,r=e.tag;if($L(r)){var i=e.elm=eL(r);if(aR(ZL,e),B(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&GL(i,nR(a))}else $L(e.text)&&!U(e.text)&&GL(i,HL(e.text))}else e.elm=HL(e.text);return e.elm}function rR(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&UL(e,nR(a),t)}}function iR(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&($L(i.tag)?WL(KL(i.elm),i.elm):WL(e,i.elm))}}function aR(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)===XL?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(ZI,n,o):n.charCodeAt(3)===YL?r.setAttributeNS(QI,n,o):n.charCodeAt(5)===YL?r.setAttributeNS(XI,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function oR(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]:tR(o,l)?(sR(o,l),o=t[++r],l=n[++i]):tR(s,u)?(sR(s,u),s=t[--a],u=n[--c]):tR(o,u)?(sR(o,u),UL(e,o.elm,qL(s.elm)),o=t[++r],u=n[--c]):tR(s,l)?(sR(s,l),UL(e,s.elm,o.elm),s=t[--a],l=n[++i]):(QL(d)&&(d=eR(t,r,a)),f=d[l.key],QL(f)?UL(e,nR(l),o.elm):(p=t[f],p.tag===l.tag?(sR(p,l),t[f]=void 0,UL(e,p.elm,o.elm)):UL(e,nR(l),o.elm)),l=n[++i]);(r<=a||i<=c)&&(r>a?(m=n[c+1]==null?null:n[c+1].elm,rR(e,m,n,i,c)):iR(e,t,r,a))}function sR(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(aR(e,t),QL(t.text)?$L(r)&&$L(i)?r!==i&&oR(n,r,i):$L(i)?($L(e.text)&&JL(n,``),rR(n,null,i,0,i.length-1)):$L(r)?iR(n,r,0,r.length-1):$L(e.text)&&JL(n,``):e.text!==t.text&&($L(r)&&iR(n,r,0,r.length-1),JL(n,t.text)))}function cR(e,t){if(tR(e,t))sR(e,t);else{var n=e.elm,r=KL(n);nR(t),r!==null&&(UL(r,t.elm,qL(n)),iR(r,[e],0,0))}return t}var lR=0,uR=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=dR(`configLayer`),this.storage=t,this._opts=n=P({},n),this.root=e,this._id=`zr`+lR++,this._oldVNode=sL(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=eL(`svg`);aR(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`,cR(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return LL(e,oL(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=oL(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=fR(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=tL(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=R(z(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(tL(`defs`,`defs`,{},c)),e.animation){var l=aL(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=tL(`style`,`stl`,{},[],l);a.push(u)}}return sL(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},iL(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 _={};VL(d[g],_,t);var v=tL(`g`,`clip-g-`+c++,_,[]);(o?o.children:n).push(v),i[a++]=v,o=v}s=d;var y=LL(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=Vx(r,0,n),t=Vx(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(di(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=vi(t),t&&n+`base64,`+t):n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function dR(e){return function(){process.env.NODE_ENV!==`production`&&de(`In SVG mode painter not support method "`+e+`"`)}}function fR(e,t,n,r){var i;if(n&&n!==`none`){if(i=tL(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),mi(n))zL({fill:n},i.attrs,`fill`,r);else if(di(n))BL({style:{fill:n},dirty:qe,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=$r(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}function pR(e){e.registerPainter(`svg`,uR)}function mR(e,t,n){var r=O.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=r.style;return o&&(o.position=`absolute`,o.left=`0`,o.top=`0`,o.width=i+`px`,o.height=a+`px`,r.setAttribute(`data-zr-dom-id`,e)),r.width=i*n,r.height=a*n,r}function hR(e){return!e.__cursors.get(0)}function gR(e){var t=e.__cursors.get(0);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var _R=function(e){v(t,e);function t(t,n,r){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.zlevel=0,i.zlevel2=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__prevIdx={startIdx:0,endIdx:0};var a;r||=ua,typeof t==`string`?a=mR(t,n,r):U(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Ge(a),a.onselectstart=function(){return!1},o.padding=`0`,o.margin=`0`,o.borderWidth=`0`),i.painter=n,i.dpr=r,i}return t.prototype.afterBrush=function(){this.__prevIdx=gR(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext(`2d`),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=mR(`back-`+this.id,this.painter,e),this.ctxBack=this.domBack.getContext(`2d`),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new q(0,0,0,0);function c(e){if(!(!e.isFinite()||e.isZero())){if(i.length===0){var t=new q(0,0,0,0);t.copy(e),i.push(t)}else{for(var n=!1,r=1/0,c=0,l=0;l<i.length;++l){var u=i[l];if(u.intersect(e)){var d=new q(0,0,0,0);d.copy(u),d.union(e),i[l]=d,n=!0;break}if(o){s.copy(e),s.union(u);var f=e.width*e.height,p=u.width*u.height,m=s.width*s.height-f-p;m<r&&(r=m,c=l)}}if(o&&(i[c].union(e),n=!0),!n){var t=new q(0,0,0,0);t.copy(e),i.push(t)}o||=i.length>=a}}}for(var l=gR(this),u=l.startIdx;u<l.endIdx;++u){var d=e[u];if(d){var f=d.shouldBePainted(n,r,!0,!0),p=d.__isRendered&&(d.__dirty&1||!f)?d.getPrevPaintRect():null;p&&c(p);var m=f&&(d.__dirty&1||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var h=this.__prevIdx,u=h.startIdx;u<h.endIdx;++u){var d=t[u],f=d&&d.shouldBePainted(n,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var u=0;u<i.length;){if(i[u].isZero()){i.splice(u,1);continue}for(var _=u+1;_<i.length;)i[u].intersect(i[_])?(g=!0,i[u].union(i[_]),i.splice(_,1)):_++;u++}}while(g);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,t){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=e+`px`,i.height=t+`px`),r.width=e*n,r.height=t*n,a&&(a.width=e*n,a.height=t*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,t,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;t||=this.clearColor;var s=this.motionBlur&&!e,c=this.lastFrameAlpha,l=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation=`copy`,this.ctxBack.drawImage(r,0,0,a/l,o/l));var d=this.domBack;function f(e,n,r,a){if(i.clearRect(e,n,r,a),t&&t!==`transparent`){var o=void 0;De(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||Rx(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):Oe(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=Xx(i,t,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),i.save(),i.fillStyle=o||t,i.fillRect(e,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=c,i.drawImage(d,e,n,r,a),i.restore())}!n||s?f(0,0,a,o):n.length&&L(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(ht),vR=1e5,yR=314159,bR=void 0,xR=1,SR=2;function CR(e){return e?e.__builtin__?!0:typeof e.resize==`function`&&typeof e.refresh==`function`:!1}function wR(e,t){var n=document.createElement(`div`);return n.style.cssText=[`position:relative`,`width:`+e+`px`,`height:`+t+`px`,`padding:0`,`margin:0`,`border-width:0`].join(`;`)+`;`,n}function TR(e,t,n,r){var i=new _R(e,t,t.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,ER(i),i}function ER(e){e.__cursorStack=[],e.__cursors=K()}function DR(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function OR(e,t){var n=e.__cursors,r=+t;return n.get(r)||(e.__cursorStack.push(r),n.set(r,DR({key:r})))}function kR(e,t){for(var n=e.__cursorStack,r=0;r<n.length;r++)t(e.__cursors.get(n[r]))}function AR(e,t){var n=e.layers;return n[t]||(n[t]=[,,,])}function jR(e,t,n){for(var r=e.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=e.layers[a][o];(!n||(!(n&MR)||s.__builtin__)&&(!(n&NR)||!s.__builtin__)&&(!(n&PR)||s!==e.hoverlayer))&&t(s,a,o,i)}}var MR=1,NR=2,PR=4,FR=MR|PR,IR=function(){function e(e,t,n,r){this.type=`canvas`,this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`,this._i={layerStack:[],layers:[]};var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;if(this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||ua,this._singleCanvas=i,this.root=e,e.style&&(Ge(e),e.innerHTML=``),this.storage=t,this._prevDisplayList=[],i){var a=e,o=a.width,s=a.height;n.width!=null&&(o=n.width),n.height!=null&&(s=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=s*this.dpr,this._width=o,this._height=s;var c=TR(a,this,yR,0);c.initContext(),this._insertLayer(c,yR,0,!0),this._domRoot=e}else{this._width=Vx(e,0,n),this._height=Vx(e,1,n);var l=this._domRoot=wR(this._width,this._height);e.appendChild(l)}}return e.prototype.getType=function(){return`canvas`},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.refresh=function(e){var t=e&&!U(e)?{paintAll:!!e}:e||{},n=W(t.refresh,!0),r=W(t.refreshHover,!1);if(r&&(this._hoverLayerDirty=SR),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,t.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return jR(this._i,function(e,t,n,r){e.refresh&&e.refresh(r===0?o:null)},NR),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},e.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=bR,n!==bR&&(!t&&n===SR&&(t=this._i.hoverlayer=this._ensureLayer(vR)),t)){t.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},i,a=0,o=e.length;a<o;a++){var s=e[a];if(s.__inHover){i||(i=t.ctx,i.save());var c=s.__hoverStyle,l=void 0;c&&(l=s.style,s.style=c),hS(i,s,r),c&&(s.style=l)}}i&&(gS(i,r),i.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(vR)},e.prototype.paintOne=function(e,t){mS(e,t)},e.prototype._paintList=function(e,t,n){if(this._redrawId===n){var r=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),r)jR(this._i,function(e){e.afterBrush&&e.afterBrush()},FR),this._paintHoverList(e);else{var i=this;Xn(function(){i._paintList(e,t,n)})}}},e.prototype._compositeManually=function(){var e=this._ensureLayer(yR).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),jR(this._i,function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)},MR)},e.prototype._doPaintList=function(e,t){var n=this,r=!0;return jR(this._i,function(i){var a=!1;if(kR(i,function(e){(e.drawIdx<e.endIdx||e.notClearIdx>=0)&&(a=!0)}),!(!a&&!i.__dirty)){var o=n._opts.useDirtyRect&&!hR(i)?i.createRepaintRects(e,t,n._width,n._height):null,s=n._i.layerStack[0],c=!0;if(i.__dirty){c=!1,i.__dirty=!1;var l=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,l,o)}kR(i,function(t){var a=n._paintPerCursor(i,t,e,o,c);r&&=a})}},FR),b.wxa&&jR(this._i,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),r},e.prototype._paintPerCursor=function(e,t,n,r,i){var a=e.ctx;if(r){if(!r.length)t.drawIdx=t.endIdx;else for(var o=this.dpr,s=0;s<r.length;++s){var c=r[s];a.save(),a.beginPath(),a.rect(c.x*o,c.y*o,c.width*o,c.height*o),a.clip(),this._paintPerCursorInRect(e,t,n,c,i),a.restore()}}else a.save(),this._paintPerCursorInRect(e,t,n,null,i),a.restore();return t.drawIdx>=t.endIdx},e.prototype._paintPerCursorInRect=function(e,t,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=e.ctx,s=hR(e),c=s&&O.getTime(),l=t.drawIdx,u=t.notClearIdx,d=u>=0?Math.min(u,l):l;d<t.endIdx;d++){var f=n[d];if(!(d<l&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=SR),r!=null){var p=f.getPaintRect();p&&p.intersect(r)&&(hS(o,f,a),f.setPrevPaintRect(p))}else hS(o,f,a);if(s&&O.getTime()-c>15){d++;break}}}gS(o,a),t.drawIdx=Math.max(d,l)},e.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},e.prototype._ensureLayer=function(e,t,n){t||=0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(e=yR,t=0);var i=AR(this._i,e)[t];return i||(i=TR(`zr_`+e+`.`+t,this,e,t),this._layerConfig[e]&&N(i,this._layerConfig[e],!0),(n||r&&e!==yR)&&(i.virtual=!0),this._insertLayer(i,e,t,!1),i.initContext()),i},e.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},e.prototype._insertLayer=function(e,t,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,c=null;if(a[t]&&a[t][n]){process.env.NODE_ENV!==`production`&&de(`ZLevel `+t+`.`+n+` has been used already`);return}if(!CR(e)){process.env.NODE_ENV!==`production`&&de(`Layer of zlevel `+t+` is not valid`);return}for(var l=o.length,u=0;u<l&&(o[u].zl<t||o[u].zl===t&&o[u].zl2<n);)u++;if(u>0&&(c=AR(i,o[u-1].zl)[o[u-1].zl2]),o.splice(u,0,{zl:t,zl2:n}),AR(i,t)[n]=e,!r&&!e.virtual){if(c){var d=c.dom;d.nextSibling?s.insertBefore(e.dom,d.nextSibling):s.appendChild(e.dom)}else s.firstChild?s.insertBefore(e.dom,s.firstChild):s.appendChild(e.dom)}e.painter||=this},e.prototype.eachLayer=function(e,t){return jR(this._i,function(n,r){e.call(t,n,r)})},e.prototype.eachBuiltinLayer=function(e,t){return jR(this._i,function(n,r){e.call(t,n,r)},MR)},e.prototype.eachOtherLayer=function(e,t){return jR(this._i,function(n,r){e.call(t,n,r)},NR)},e.prototype.getLayers=function(){var e={};return jR(this._i,function(t,n,r){e[t.id]=t}),e},e.prototype._updateLayerStatus=function(e,t){var n=this;if(n._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){n._needsManuallyCompositing=!0;break}}jR(n._i,function(e){e.__dirty=!1,kR(e,function(e){e.used=!1,e.endIdxNew=0,e.notClearIdx=-1})},FR);for(var a,o=null,s=null,c=!1,l=0,u=e.length;l<u;l++){var i=e[l],d=i.zlevel,f=i.incremental,p=void 0;if(a!==d&&(a=d,c=!1),f?(c=!0,p=1):p=c?2:0,(!o||d!==o.zlevel||p!==o.zlevel2)&&(o=n._ensureLayer(d,p),s=null,!o.__builtin__)){de(`ZLevel `+d+` has been used by unknown layer `+o.id);continue}if((!s||f!==s.key)&&(s=OR(o,f),!s.used)){if(s.used=!0,!t&&s.first===i.id){var m=l-s.startIdx;s.startIdx=l,s.drawIdx+=m,s.endIdx+=m}else o.__dirty=!0,s.first=i.id,s.startIdx=s.drawIdx=l,s.endIdx=l+1}s.endIdxNew=l+1,i.__dirty&1&&!i.__inHover&&((!f||!i.notClear&&l<s.drawIdx)&&(o.__dirty=!0),f&&i.notClear&&s.notClearIdx<0&&(s.notClearIdx=l))}jR(n._i,function(t){for(var r=t.__cursorStack,i=t.__cursors,a=r.length-1;a>=0;a--){var o=i.get(r[a]);if(!o.used)t.__dirty=!0,i.removeKey(r[a]),r.splice(a,1);else{var s=o.endIdxNew;(hR(t)?s<o.drawIdx:s!==o.endIdx||!s||e[s-1].id!==o.last)&&(t.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?e[s-1].id:NaN}}t.__dirty&&(kR(t,function(e){e.drawIdx=e.startIdx}),n._hoverLayerDirty===bR&&(n._hoverLayerDirty=xR))},FR)},e.prototype.clear=function(){return jR(this._i,function(e){e.clear(),ER(e)},MR),this},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,jR(this._i,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?N(n[e],t,!0):n[e]=t,jR(this._i,function(e,t){N(e,n[t],!0)})}},e.prototype.delLayer=function(e){for(var t=this._i.layerStack,n=this._i.layers,r=t.length-1;r>=0;r--){var i=t[r];if(i.zl===e){var a=n[e][i.zl2];if(a.__builtin__)continue;if(t.splice(r,1),n[e][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},e.prototype.resize=function(e,t){if(this._domRoot.style){var n=this._domRoot;n.style.display=`none`;var r=this._opts,i=this.root;e!=null&&(r.width=e),t!=null&&(r.height=t),e=Vx(i,0,r),t=Vx(i,1,r),n.style.display=``,(this._width!==e||t!==this._height)&&(n.style.width=e+`px`,n.style.height=t+`px`,jR(this._i,function(n){n.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(yR).resize(e,t)}return this},e.prototype.clearLayer=function(e){L(this._i.layers[e],function(e){e&&!e.__builtin__&&e.clear()})},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._i.layers[yR][0].dom;var t=new _R(`image`,this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var n=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var r=t.dom.width,i=t.dom.height;jR(this._i,function(e){e.__builtin__?n.drawImage(e.dom,0,0,r,i):e.renderToCanvas&&(n.save(),e.renderToCanvas(n),n.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];hS(n,l,a)}gS(n,a)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function LR(e){e.registerPainter(`canvas`,IR)}var RR={borderColor:`#FFFFFF`,borderRadius:100,borderWidth:4},zR=(e=[])=>e.reduce((e,t,n)=>t?{...e,[`image_${n}`]:{backgroundColor:{image:t},borderRadius:12,height:24,width:24}}:e,{}),BR=(e=[])=>(t,n)=>e[n]?`{image_${n}|} ${t}`:t,VR={AXIS_HEIGHT:60,CATEGORY_GAP:8,MIN_HEIGHT:200},HR=(e=0,t=1,n=!1)=>{try{let r=Number(e)||0,i=(Number(t)||1)*22,a=r*(Math.max(i,n?24:0)+VR.CATEGORY_GAP)+VR.AXIS_HEIGHT;return{height:`${Math.max(a,VR.MIN_HEIGHT)}px`,width:`100%`}}catch(e){return console.log(`[HorizontalBarChart] Error al calcular el alto del gráfico:`,e),{minHeight:`${VR.MIN_HEIGHT}px`,width:`100%`}}},UR=e=>{try{let t=`<div style="font-weight: bold; font-size: 16px; margin-bottom: 12px; color: #555;">${String(e[0]?.name??``).toUpperCase()}</div>`;return e.forEach(e=>{let n=Number(e.value)||0;t+=`
45
45
  <div style="display: flex; align-items: center; margin-bottom: 6px; font-size: 16px; color: #3B3B3B;">
46
46
  ${e.marker}
47
47
  <span style="margin-left: 6px;">${e.seriesName}: </span>
48
48
  <span style="margin-left: 4px;">${n}</span>
49
49
  </div>
50
- `}),t}catch(e){return console.log(`[HorizontalBarChart] Error al formatear el tooltip:`,e),``}},VL=`#EFEFEF`,HL=`#3B3B3B`,UL=`#B9B9B9`,WL=.25,GL=e=>(t,n)=>e===null||n===e?HL:UL,KL=(e=0)=>{try{let t=(Number(e)||0)+1;return Array.from({length:t},(e,n)=>n===0||n===t-1?`transparent`:VL)}catch(e){return console.log(`[HorizontalBarChart] Error al calcular las líneas del grid:`,e),[VL]}},qL={backgroundColor:`#FFF`,grid:{bottom:`5%`,containLabel:!0,left:`2%`,right:`2%`,top:`5%`},textStyle:{color:`#3B3B3B`,fontFamily:`Roboto, sans-serif`,fontSize:14},tooltip:{backgroundColor:`#FFFFFF`,borderColor:`#E2E2E2`,borderRadius:8,borderWidth:1,extraCssText:`box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);`,formatter:BL,padding:[12,16],show:!0,textStyle:{color:`#3B3B3B`,fontFamily:`Roboto, sans-serif`,fontSize:16},trigger:`axis`},xAxis:[{axisLabel:{fontSize:14},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},tooltip:{show:!1},type:`value`}],yAxis:[{axisLabel:{fontSize:14,interval:0},axisLine:{lineStyle:{color:`#D3D3D3`,type:`solid`,width:2},onZero:!0,show:!0},axisTick:{show:!1},splitLine:{lineStyle:{color:VL,type:`solid`,width:1},show:!0},type:`category`,z:10}]},JL=[`negativa`],YL={categories:[],hasImages:!1,images:[],series:[]},XL=e=>{try{let t=Number(e);return Number.isFinite(t)?t:0}catch(t){return console.log(`[HorizontalBarChart] Valor no numérico:`,e,t),0}},ZL=e=>{try{return String(e??``).trim().toLowerCase()}catch(t){return console.log(`[HorizontalBarChart] Valor no convertible a texto:`,e,t),``}},QL=e=>JL.includes(ZL(e)),$L=(e={})=>{let{category:t,x:n,y:r}=e||{};return ZL([t,r,n].find(e=>typeof e==`string`&&e.length>0))},eR=(e={},t=[],n=``)=>{let{values:r,x:i}=e||{};return([r,i].find(e=>Array.isArray(e)&&e.length>0)??t.filter(e=>ZL(e)!==n)).map(e=>String(e))},tR=(e,t)=>e.findIndex(e=>ZL(e)===ZL(t)),nR=(e,t)=>e.find(e=>ZL(e.key)===ZL(t)),rR=(e,t)=>nR(e,t)?.color??``,iR=(e,t)=>nR(e,t)?.image??``,aR=(e,t)=>({barGap:`0%`,barWidth:22,data:t,label:{show:!1},name:e,type:`bar`}),oR=(e,t)=>e.map(e=>({...e,data:e.data.map((e,n)=>({...e,itemStyle:{...e.itemStyle,opacity:t===null||t===n?1:WL}}))})),sR=(e={},t={})=>{let{columns:n=[],rows:r=[]}=e||{},{bindings:i={},series:a=[]}=t||{};if(!n.length||!r.length||!a.length)return YL;let o=$L(i),s=n.findIndex(e=>ZL(e)===o);if(s<0)return YL;let c=r.map(e=>String(e?.[s]??``)),l=eR(i,n,o),u=a.some(({key:e})=>tR(n,e)>=0),d=l.map(e=>{let t=tR(n,e);if(t<0)return null;let i=QL(e)?-1:1,o=rR(a,e);return aR(e,r.map((e,n)=>{let r=u?o:rR(a,c[n]);return{itemStyle:{...FL,color:r},value:XL(e?.[t])*i}}))}).filter(e=>e!==null),f=c.map(e=>iR(a,e));return{categories:c,hasImages:f.some(Boolean),images:f,series:d}},cR=({series:e=[],showLegend:t=!0})=>{let i=(0,r.useRef)(null),a=(0,r.useRef)({isDragging:!1,startScroll:0,startX:0});if(!t||!e.length||!Array.isArray(e))return null;let o=e=>{let t=i.current;!t||e.pointerType===`touch`||(e.preventDefault(),a.current={isDragging:!0,startScroll:t.scrollLeft,startX:e.clientX},t.setPointerCapture(e.pointerId))},s=e=>{let t=i.current;if(!(!t||!a.current.isDragging))try{let{startScroll:n,startX:r}=a.current;t.scrollLeft=n-(e.clientX-r)}catch(e){console.log(`[HorizontalBarChart] Error al arrastrar la leyenda:`,e)}},c=e=>{let t=i.current;a.current.isDragging=!1,t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)};return(0,n.jsx)(`div`,{className:`horizontal-bar-chart-legend`,children:(0,n.jsx)(`div`,{className:`horizontal-bar-chart-labels`,onPointerCancel:c,onPointerDown:o,onPointerMove:s,onPointerUp:c,ref:i,children:e.map(({key:e,color:t},r)=>(0,n.jsxs)(`div`,{className:`horizontal-bar-chart-label`,children:[(0,n.jsx)(`div`,{className:`horizontal-bar-chart-label-icon`,style:{background:t||``}}),(0,n.jsx)(`p`,{className:`horizontal-bar-chart-label-text`,children:e})]},`horizontal-bar-chart-label-${e}-${t}-${r}`))})})};qE([$N,wA,OP,EF,OL]);var lR=({data:e={},showLegend:t=!0,visualization:i={}})=>{let{series:a=[]}=i||{},o=(0,r.useRef)(null),s=(0,r.useRef)(null),c=(0,r.useMemo)(()=>sR(e,i),[e,i]),l=(0,r.useMemo)(()=>zL(c.categories.length,c.series.length,c.hasImages),[c.categories.length,c.series.length,c.hasImages]);return(0,r.useEffect)(()=>{if(!o.current)return;s.current||=wC(o.current,void 0,{renderer:`svg`});let e=qL.yAxis[0],t=t=>[{...e,axisLabel:{...e.axisLabel,color:GL(t),formatter:LL(c.images),rich:IL(c.images)},data:c.categories,splitLine:{...e.splitLine,lineStyle:{...e.splitLine.lineStyle,color:KL(c.categories.length)}}}],n={...qL,yAxis:t(null),series:c.series};s.current.setOption(n,!0);let r=e=>{s.current?.setOption({series:oR(c.series,e),yAxis:t(e)})},i=(...e)=>{try{let{axesInfo:t}=e[0]??{},n=Number(t?.[0]?.value);r(Number.isInteger(n)?n:null)}catch(e){console.log(`[HorizontalBarChart] Error al resaltar la fila:`,e)}},a=()=>r(null);s.current.on(`updateAxisPointer`,i),s.current.on(`globalout`,a);let l=new ResizeObserver(()=>{s.current?.resize()});return l.observe(o.current),()=>{l.disconnect(),s.current?.off(`updateAxisPointer`,i),s.current?.off(`globalout`,a),s.current?.dispose(),s.current=null}},[c]),(0,n.jsxs)(`div`,{className:`horizontal-bar-chart-ctn`,children:[(0,n.jsx)(`div`,{ref:o,className:`horizontal-bar-chart-ref`,style:l}),(0,n.jsx)(cR,{series:a,showLegend:t})]})},uR=({data:e={},type:t=``})=>{let{metadata:{description:r=``,image:a=i,source:o=``,title:s=``,articleUrl:l=``}={},data:d={},visualization:f={},visualization:{settings:{showChart:p=!0,showDescription:m=!0,showImage:h=!0,showLegend:g=!0,showSource:_=!0,showTitle:v=!0}={}}={}}=e||{},y=t===`only-graph`,b=!y&&h;return(0,n.jsxs)(`div`,{className:`horizontal-bar-chart`,children:[(0,n.jsx)(u,{showShare:!y,showSubtitle:m,showTitle:v,subtitle:r,title:s,url:l}),p?(0,n.jsx)(lR,{data:d,visualization:f,showLegend:g}):null,!_||!o?null:(0,n.jsx)(c,{logoSrc:a,showLogo:b,showSource:_,source:o})]})};exports.HorizontalBarChart=uR,exports.Title=u,exports.VerticalBar=PL;
50
+ `}),t}catch(e){return console.log(`[HorizontalBarChart] Error al formatear el tooltip:`,e),``}},WR=`#EFEFEF`,GR=`#3B3B3B`,KR=`#B9B9B9`,qR=.25,JR=e=>(t,n)=>e===null||n===e?GR:KR,YR=(e=0)=>{try{let t=(Number(e)||0)+1;return Array.from({length:t},(e,n)=>n===0||n===t-1?`transparent`:WR)}catch(e){return console.log(`[HorizontalBarChart] Error al calcular las líneas del grid:`,e),[WR]}},XR={backgroundColor:`#FFF`,grid:{bottom:`5%`,containLabel:!0,left:`2%`,right:`2%`,top:`5%`},textStyle:{color:`#3B3B3B`,fontFamily:`Roboto, sans-serif`,fontSize:14},tooltip:{backgroundColor:`#FFFFFF`,borderColor:`#E2E2E2`,borderRadius:8,borderWidth:1,extraCssText:`box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);`,formatter:UR,padding:[12,16],show:!0,textStyle:{color:`#3B3B3B`,fontFamily:`Roboto, sans-serif`,fontSize:16},trigger:`axis`},xAxis:[{axisLabel:{fontSize:14},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},tooltip:{show:!1},type:`value`}],yAxis:[{axisLabel:{fontSize:14,interval:0},axisLine:{lineStyle:{color:`#D3D3D3`,type:`solid`,width:2},onZero:!0,show:!0},axisTick:{show:!1},splitLine:{lineStyle:{color:WR,type:`solid`,width:1},show:!0},type:`category`,z:10}]},ZR=[`negativa`],QR={categories:[],hasImages:!1,images:[],series:[]},$R=e=>{try{let t=Number(e);return Number.isFinite(t)?t:0}catch(t){return console.log(`[HorizontalBarChart] Valor no numérico:`,e,t),0}},ez=e=>{try{return String(e??``).trim().toLowerCase()}catch(t){return console.log(`[HorizontalBarChart] Valor no convertible a texto:`,e,t),``}},tz=e=>ZR.includes(ez(e)),nz=(e={})=>{let{category:t,x:n,y:r}=e||{};return ez([t,r,n].find(e=>typeof e==`string`&&e.length>0))},rz=(e={},t=[],n=``)=>{let{values:r,x:i}=e||{};return([r,i].find(e=>Array.isArray(e)&&e.length>0)??t.filter(e=>ez(e)!==n)).map(e=>String(e))},iz=(e,t)=>e.findIndex(e=>ez(e)===ez(t)),az=(e,t)=>e.find(e=>ez(e.key)===ez(t)),oz=(e,t)=>az(e,t)?.color??``,sz=(e,t)=>az(e,t)?.image??``,cz=(e,t)=>({barGap:`0%`,barWidth:22,data:t,label:{show:!1},name:e,type:`bar`}),lz=(e,t)=>e.map(e=>({...e,data:e.data.map((e,n)=>({...e,itemStyle:{...e.itemStyle,opacity:t===null||t===n?1:qR}}))})),uz=(e={},t={})=>{let{columns:n=[],rows:r=[]}=e||{},{bindings:i={},series:a=[]}=t||{};if(!n.length||!r.length||!a.length)return QR;let o=nz(i),s=n.findIndex(e=>ez(e)===o);if(s<0)return QR;let c=r.map(e=>String(e?.[s]??``)),l=rz(i,n,o),u=a.some(({key:e})=>iz(n,e)>=0),d=l.map(e=>{let t=iz(n,e);if(t<0)return null;let i=tz(e)?-1:1,o=oz(a,e);return cz(e,r.map((e,n)=>{let r=u?o:oz(a,c[n]);return{itemStyle:{...RR,color:r},value:$R(e?.[t])*i}}))}).filter(e=>e!==null),f=c.map(e=>sz(a,e));return{categories:c,hasImages:f.some(Boolean),images:f,series:d}},dz=({series:e=[],showLegend:t=!0})=>{let n=(0,u.useRef)(null),r=(0,u.useRef)({isDragging:!1,startScroll:0,startX:0});if(!t||!e.length||!Array.isArray(e))return null;let i=e=>{let t=n.current;!t||e.pointerType===`touch`||(e.preventDefault(),r.current={isDragging:!0,startScroll:t.scrollLeft,startX:e.clientX},t.setPointerCapture(e.pointerId))},a=e=>{let t=n.current;if(!(!t||!r.current.isDragging))try{let{startScroll:n,startX:i}=r.current;t.scrollLeft=n-(e.clientX-i)}catch(e){console.log(`[HorizontalBarChart] Error al arrastrar la leyenda:`,e)}},o=e=>{let t=n.current;r.current.isDragging=!1,t?.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId)};return(0,l.jsx)(`div`,{className:`horizontal-bar-chart-legend`,children:(0,l.jsx)(`div`,{className:`horizontal-bar-chart-labels`,onPointerCancel:o,onPointerDown:i,onPointerMove:a,onPointerUp:o,ref:n,children:e.map(({key:e,color:t},n)=>(0,l.jsxs)(`div`,{className:`horizontal-bar-chart-label`,children:[(0,l.jsx)(`div`,{className:`horizontal-bar-chart-label-icon`,style:{background:t||``}}),(0,l.jsx)(`p`,{className:`horizontal-bar-chart-label-text`,children:e})]},`horizontal-bar-chart-label-${e}-${t}-${n}`))})})};dD([yP,HA,iF,FI,LR]);var fz=({data:e={},showLegend:t=!0,visualization:n={}})=>{let{series:r=[]}=n||{},i=(0,u.useRef)(null),a=(0,u.useRef)(null),o=(0,u.useMemo)(()=>uz(e,n),[e,n]),s=(0,u.useMemo)(()=>HR(o.categories.length,o.series.length,o.hasImages),[o.categories.length,o.series.length,o.hasImages]);return(0,u.useEffect)(()=>{if(!i.current)return;a.current||=HC(i.current,void 0,{renderer:`svg`});let e=XR.yAxis[0],t=t=>[{...e,axisLabel:{...e.axisLabel,color:JR(t),formatter:BR(o.images),rich:zR(o.images)},data:o.categories,splitLine:{...e.splitLine,lineStyle:{...e.splitLine.lineStyle,color:YR(o.categories.length)}}}],n={...XR,yAxis:t(null),series:o.series};a.current.setOption(n,!0);let r=e=>{a.current?.setOption({series:lz(o.series,e),yAxis:t(e)})},s=(...e)=>{try{let{axesInfo:t}=e[0]??{},n=Number(t?.[0]?.value);r(Number.isInteger(n)?n:null)}catch(e){console.log(`[HorizontalBarChart] Error al resaltar la fila:`,e)}},c=()=>r(null);a.current.on(`updateAxisPointer`,s),a.current.on(`globalout`,c);let l=new ResizeObserver(()=>{a.current?.resize()});return l.observe(i.current),()=>{l.disconnect(),a.current?.off(`updateAxisPointer`,s),a.current?.off(`globalout`,c),a.current?.dispose(),a.current=null}},[o]),(0,l.jsxs)(`div`,{className:`horizontal-bar-chart-ctn`,children:[(0,l.jsx)(`div`,{ref:i,className:`horizontal-bar-chart-ref`,style:s}),(0,l.jsx)(dz,{series:r,showLegend:t})]})},pz=({source:e=``,showSource:t=!0,showLogo:n=!0,logoSrc:r=``})=>!t&&!n?null:(0,l.jsxs)(`div`,{className:`ibc-footer`,children:[!t||!e?null:(0,l.jsxs)(`p`,{className:`ibc-footer-font`,children:[`Fuente: `,(0,l.jsx)(`span`,{children:e})]}),!n||!r?null:(0,l.jsx)(`img`,{className:`ibc-footer-logo`,src:r||`https://www.infobae.com/assets/images/logos/logo_infobae_naranja.svg`,alt:`Infobae`})]}),mz=({data:e={},type:t=``})=>{let{metadata:{description:n=``,image:r=f,source:i=``,title:a=``,articleUrl:o=``}={},data:s={},visualization:c={},visualization:{settings:{showChart:u=!0,showDescription:d=!0,showImage:p=!0,showLegend:m=!0,showSource:h=!0,showTitle:_=!0}={}}={}}=e||{},v=t===`only-graph`,y=!v&&p;return(0,l.jsxs)(`div`,{className:`horizontal-bar-chart`,children:[(0,l.jsx)(g,{showShare:!v,showSubtitle:d,showTitle:_,subtitle:n,title:a,url:o}),u?(0,l.jsx)(fz,{data:s,visualization:c,showLegend:m}):null,!h||!i?null:(0,l.jsx)(pz,{logoSrc:r,showLogo:y,showSource:h,source:i})]})},hz=Wl.CMD;function gz(e,t){return Math.abs(e-t)<1e-5}function _z(e){var t=e.data,n=e.len(),r=[],i,a=0,o=0,s=0,c=0;function l(e,t){i&&i.length>2&&r.push(i),i=[e,t]}function u(e,t,n,r){gz(e,n)&&gz(t,r)||i.push(e,t,n,r,n,r)}function d(e,t,n,r,a,o){var s=Math.abs(t-e),c=Math.tan(s/4)*4/3,l=t<e?-1:1,u=Math.cos(e),d=Math.sin(e),f=Math.cos(t),p=Math.sin(t),m=u*a+n,h=d*o+r,g=f*a+n,_=p*o+r,v=a*c*l,y=o*c*l;i.push(m-v*d,h+y*u,g+v*p,_-y*f,g,_)}for(var f,p,m,h,g=0;g<n;){var _=t[g++],v=g===1;switch(v&&(a=t[g],o=t[g+1],s=a,c=o,(_===hz.L||_===hz.C||_===hz.Q)&&(i=[s,c])),_){case hz.M:a=s=t[g++],o=c=t[g++],l(s,c);break;case hz.L:f=t[g++],p=t[g++],u(a,o,f,p),a=f,o=p;break;case hz.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case hz.Q:f=t[g++],p=t[g++],m=t[g++],h=t[g++],i.push(a+2/3*(f-a),o+2/3*(p-o),m+2/3*(f-m),h+2/3*(p-h),m,h),a=m,o=h;break;case hz.A:var y=t[g++],b=t[g++],x=t[g++],S=t[g++],C=t[g++],w=t[g++]+C;g+=1;var T=!t[g++];f=Math.cos(C)*x+y,p=Math.sin(C)*S+b,v?(s=f,c=p,l(s,c)):u(a,o,f,p),a=Math.cos(w)*x+y,o=Math.sin(w)*S+b;for(var E=(T?-1:1)*Math.PI/2,D=C;T?D>w:D<w;D+=E){var O=T?Math.max(D+E,w):Math.min(D+E,w);d(D,O,y,b,x,S)}break;case hz.R:s=a=t[g++],c=o=t[g++],f=s+t[g++],p=c+t[g++],l(f,c),u(f,c,f,p),u(f,p,s,p),u(s,p,s,c),u(s,c,f,c);break;case hz.Z:i&&u(a,o,s,c),a=s,o=c}}return i&&i.length>2&&r.push(i),r}function vz(e,t,n,r,i,a,o,s,c,l){if(gz(e,n)&&gz(t,r)&&gz(i,o)&&gz(a,s)){c.push(o,s);return}var u=2/l,d=u*u,f=o-e,p=s-t,m=Math.sqrt(f*f+p*p);f/=m,p/=m;var h=n-e,g=r-t,_=i-o,v=a-s,y=h*h+g*g,b=_*_+v*v;if(y<d&&b<d){c.push(o,s);return}var x=f*h+p*g,S=-f*_-p*v,C=y-x*x,w=b-S*S;if(C<d&&x>=0&&w<d&&S>=0){c.push(o,s);return}var T=[],E=[];pr(e,n,i,o,.5,T),pr(t,r,a,s,.5,E),vz(T[0],E[0],T[1],E[1],T[2],E[2],T[3],E[3],c,l),vz(T[4],E[4],T[5],E[5],T[6],E[6],T[7],E[7],c,l)}function yz(e,t){var n=_z(e),r=[];t||=1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],c=a[1];o.push(s,c);for(var l=2;l<a.length;){var u=a[l++],d=a[l++],f=a[l++],p=a[l++],m=a[l++],h=a[l++];vz(s,c,u,d,f,p,m,h,o,t),s=m,c=h}r.push(o)}return r}function bz(e,t,n){var r=e[t],i=e[1-t],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var c=[],l=0;l<o;l++)c.push(s);var u=n-o*s;if(u>0)for(var l=0;l<u;l++)c[l%o]+=1;return c}function xz(e,t,n){for(var r=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),c=s*i,l=i-r,u=c>Math.abs(l),d=bz([c,l],+!u,t),f=(u?s:l)/d.length,p=0;p<d.length;p++)for(var m=(u?l:s)/d[p],h=0;h<d[p];h++){var g={};u?(g.startAngle=a+f*p,g.endAngle=a+f*(p+1),g.r0=r+m*h,g.r=r+m*(h+1)):(g.startAngle=a+m*h,g.endAngle=a+m*(h+1),g.r0=r+f*p,g.r=r+f*(p+1)),g.clockwise=e.clockwise,g.cx=e.cx,g.cy=e.cy,n.push(g)}}function Sz(e,t,n){for(var r=e.width,i=e.height,a=r>i,o=bz([r,i],+!a,t),s=a?`width`:`height`,c=a?`height`:`width`,l=a?`x`:`y`,u=a?`y`:`x`,d=e[s]/o.length,f=0;f<o.length;f++)for(var p=e[c]/o[f],m=0;m<o[f];m++){var h={};h[l]=f*d,h[u]=m*p,h[s]=d,h[c]=p,h.x+=e.x,h.y+=e.y,n.push(h)}}function Cz(e,t,n,r){return e*r-n*t}function wz(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Cz(u,d,c,l);if(Math.abs(f)<1e-6)return null;var p=Cz(e-i,t-a,u,d)/f;return p<0||p>1?null:new $t(p*c+e,p*l+t)}function Tz(e,t,n){var r=new $t;$t.sub(r,n,t),r.normalize();var i=new $t;return $t.sub(i,e,t),i.dot(r)}function Ez(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function Dz(e,t,n){for(var r=e.length,i=[],a=0;a<r;a++){var o=e[a],s=e[(a+1)%r],c=wz(o[0],o[1],s[0],s[1],t.x,t.y,n.x,n.y);c&&i.push({projPt:Tz(c,t,n),pt:c,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(e,t){return e.projPt-t.projPt});var l=i[0],u=i[i.length-1];if(u.idx<l.idx){var d=l;l=u,u=d}for(var f=[l.pt.x,l.pt.y],p=[u.pt.x,u.pt.y],m=[f],h=[p],a=l.idx+1;a<=u.idx;a++)Ez(m,e[a].slice());Ez(m,p),Ez(m,f);for(var a=u.idx+1;a<=l.idx+r;a++)Ez(h,e[a%r].slice());return Ez(h,f),Ez(h,p),[{points:m},{points:h}]}function Oz(e){var t=e.points,n=[],r=[];yl(t,n,r);var i=new q(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,c=i.y,l=new $t,u=new $t;return a>o?(l.x=u.x=s+a/2,l.y=c,u.y=c+o):(l.y=u.y=c+o/2,l.x=s,u.x=s+a),Dz(t,l,u)}function kz(e,t,n,r){if(n===1)r.push(t);else{var i=Math.floor(n/2),a=e(t);kz(e,a[0],i,r),kz(e,a[1],n-i,r)}return r}function Az(e,t){for(var n=[],r=0;r<t;r++)n.push(Ff(e));return n}function jz(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function Mz(e){for(var t=[],n=0;n<e.length;)t.push([e[n++],e[n++]]);return t}function Nz(e,t){var n=[],r=e.shape,i;switch(e.type){case`rect`:Sz(r,t,n),i=Ou;break;case`sector`:xz(r,t,n),i=np;break;case`circle`:xz({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},t,n),i=np;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=R(yz(e.getUpdatedPathProxy(),o),function(e){return Mz(e)}),c=s.length;if(c===0)kz(Oz,{points:s[0]},t,n);else if(c===t)for(var l=0;l<c;l++)n.push({points:s[l]});else{var u=0,d=R(s,function(e){var t=[],n=[];yl(e,t,n);var r=(n[1]-t[1])*(n[0]-t[0]);return u+=r,{poly:e,area:r}});d.sort(function(e,t){return t.area-e.area});for(var f=t,l=0;l<c;l++){var p=d[l];if(f<=0)break;var m=l===c-1?f:Math.ceil(p.area/u*t);m<0||(kz(Oz,{points:p.poly},m,n),f-=m)}}i=cp}if(!i)return Az(e,t);for(var h=[],l=0;l<n.length;l++){var g=new i;g.setShape(n[l]),jz(e,g),h.push(g)}return h}function Pz(e,t){var n=e.length,r=t.length;if(n===r)return[e,t];for(var i=[],a=[],o=n<r?e:t,s=Math.min(n,r),c=Math.abs(r-n)/6,l=(s-2)/6,u=Math.ceil(c/l)+1,d=[o[0],o[1]],f=c,p=2;p<s;){var m=o[p-2],h=o[p-1],g=o[p++],_=o[p++],v=o[p++],y=o[p++],b=o[p++],x=o[p++];if(f<=0){d.push(g,_,v,y,b,x);continue}for(var S=Math.min(f,u-1)+1,C=1;C<=S;C++){var w=C/S;pr(m,g,v,b,w,i),pr(h,_,y,x,w,a),m=i[3],h=a[3],d.push(i[1],a[1],i[2],a[2],m,h),g=i[5],_=a[5],v=i[6],y=a[6]}f-=S-1}return o===e?[d,t]:[e,d]}function Fz(e,t){for(var n=e.length,r=e[n-2],i=e[n-1],a=[],o=0;o<t.length;)a[o++]=r,a[o++]=i;return a}function Iz(e,t){for(var n,r,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var c=e[s],l=t[s],u=void 0,d=void 0;c?l?(n=Pz(c,l),u=n[0],d=n[1],r=u,i=d):(d=Fz(i||c,c),u=c):(u=Fz(r||l,l),d=l),a.push(u),o.push(d)}return[a,o]}function Lz(e){for(var t=0,n=0,r=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],c=e[o+1],l=e[a],u=e[a+1],d=s*u-l*c;t+=d,n+=(s+l)*d,r+=(c+u)*d}return t===0?[e[0]||0,e[1]||0]:[n/t/3,r/t/3,t]}function Rz(e,t,n,r){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,c=s-2,l=0;l<i;l++){for(var u=l*6,d=0,f=0;f<s;f+=2){var p=f===0?u:(u+f-2)%c+2,m=e[p]-n[0],h=e[p+1]-n[1],g=t[f]-r[0],_=t[f+1]-r[1],v=g-m,y=_-h;d+=v*v+y*y}d<a&&(a=d,o=l)}return o}function zz(e){for(var t=[],n=e.length,r=0;r<n;r+=2)t[r]=e[n-r-2],t[r+1]=e[n-r-1];return t}function Bz(e,t,n,r){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],c=t[o],l=Lz(s),u=Lz(c);a??=l[2]<0!=u[2]<0;var d=[],f=[],p=0,m=1/0,h=[],g=s.length;a&&(s=zz(s));for(var _=Rz(s,c,l,u)*6,v=g-2,y=0;y<v;y+=2){var b=(_+y)%v+2;d[y+2]=s[b]-l[0],d[y+3]=s[b+1]-l[1]}if(d[0]=s[_]-l[0],d[1]=s[_+1]-l[1],n>0)for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var C=Math.sin(S),w=Math.cos(S),T=0,y=0;y<s.length;y+=2){var E=d[y],D=d[y+1],O=c[y]-u[0],k=c[y+1]-u[1],A=O*w-k*C,j=O*C+k*w;h[y]=A,h[y+1]=j;var ee=A-E,te=j-D;T+=ee*ee+te*te}if(T<m){m=T,p=S;for(var ne=0;ne<h.length;ne++)f[ne]=h[ne]}}else for(var re=0;re<g;re+=2)f[re]=c[re]-u[0],f[re+1]=c[re+1]-u[1];i.push({from:d,to:f,fromCp:l,toCp:u,rotation:-p})}return i}function Vz(e){return e.__isCombineMorphing}var Hz=`__mOriginal_`;function Uz(e,t,n){var r=Hz+t,i=e[r]||e[t];e[r]||(e[r]=e[t]);var a=n.replace,o=n.after,s=n.before;e[t]=function(){var e=arguments,t;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function Wz(e,t){var n=Hz+t;e[n]&&(e[t]=e[n],e[n]=null)}function Gz(e,t){for(var n=0;n<e.length;n++)for(var r=e[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=t[0]*a+t[2]*o+t[4],r[i++]=t[1]*a+t[3]*o+t[5]}}function Kz(e,t){var n=e.getUpdatedPathProxy(),r=t.getUpdatedPathProxy(),i=Iz(_z(n),_z(r)),a=i[0],o=i[1],s=e.getComputedTransform(),c=t.getComputedTransform();function l(){this.transform=null}s&&Gz(a,s),c&&Gz(o,c),Uz(t,`updateTransform`,{replace:l}),t.transform=null;var u=Bz(a,o,10,Math.PI),d=[];Uz(t,`buildPath`,{replace:function(e){for(var n=t.__morphT,r=1-n,i=[],a=0;a<u.length;a++){var o=u[a],s=o.from,c=o.to,l=o.rotation*n,f=o.fromCp,p=o.toCp,m=Math.sin(l),h=Math.cos(l);lt(i,f,p,n);for(var g=0;g<s.length;g+=2){var _=s[g],v=s[g+1],y=c[g],b=c[g+1],x=_*r+y*n,S=v*r+b*n;d[g]=x*h-S*m+i[0],d[g+1]=x*m+S*h+i[1]}var C=d[0],w=d[1];e.moveTo(C,w);for(var g=2;g<s.length;){var y=d[g++],b=d[g++],T=d[g++],E=d[g++],D=d[g++],O=d[g++];C===y&&w===b&&T===D&&E===O?e.lineTo(D,O):e.bezierCurveTo(y,b,T,E,D,O),C=D,w=O}}}})}function qz(e,t,n){if(!e||!t)return t;var r=n.done,i=n.during;Kz(e,t),t.__morphT=0;function a(){Wz(t,`buildPath`),Wz(t,`updateTransform`),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},F({during:function(e){t.dirtyShape(),i&&i(e)},done:function(){a(),r&&r()}},n)),t}function Jz(e,t,n,r,i,a){var o=16;e=i===n?0:Math.round(32767*(e-n)/(i-n)),t=a===r?0:Math.round(32767*(t-r)/(a-r));for(var s=0,c,l=(1<<o)/2;l>0;l/=2){var u=0,d=0;(e&l)>0&&(u=1),(t&l)>0&&(d=1),s+=l*l*(3*u^d),d===0&&(u===1&&(e=l-1-e,t=l-1-t),c=e,e=t,t=c)}return s}function Yz(e){var t=1/0,n=1/0,r=-1/0,i=-1/0;return R(R(e,function(e){var a=e.getBoundingRect(),o=e.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),c=a.y+a.height/2+(o?o[5]:0);return t=Math.min(s,t),n=Math.min(c,n),r=Math.max(s,r),i=Math.max(c,i),[s,c]}),function(a,o){return{cp:a,z:Jz(a[0],a[1],t,n,r,i),path:e[o]}}).sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function Xz(e){return Nz(e.path,e.count)}function Zz(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Qz(e,t,n){var r=[];function i(e){for(var t=0;t<e.length;t++){var n=e[t];Vz(n)?i(n.childrenRef()):n instanceof Y&&r.push(n)}}i(e);var a=r.length;if(!a)return Zz();var o=(n.dividePath||Xz)({path:t,count:a});if(o.length!==a)return console.error(`Invalid morphing: unmatched splitted path`),Zz();r=Yz(r),o=Yz(o);for(var s=n.done,c=n.during,l=n.individualDelay,u=new Sa,d=0;d<a;d++){var f=r[d],p=o[d];p.parent=t,p.copyTransform(u),l||Kz(f,p)}t.__isCombineMorphing=!0,t.childrenRef=function(){return o};function m(e){for(var t=0;t<o.length;t++)o[t].addSelfToZr(e)}Uz(t,`addSelfToZr`,{after:function(e){m(e)}}),Uz(t,`removeSelfFromZr`,{after:function(e){for(var t=0;t<o.length;t++)o[t].removeSelfFromZr(e)}});function h(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Wz(t,`addSelfToZr`),Wz(t,`removeSelfFromZr`)}var g=o.length;if(l)for(var _=g,v=function(){_--,_===0&&(h(),s&&s())},d=0;d<g;d++){var y=l?F({delay:(n.delay||0)+l(d,g,r[d],o[d]),done:v},n):n;qz(r[d],o[d],y)}else t.__morphT=0,t.animateTo({__morphT:1},F({during:function(e){for(var n=0;n<g;n++){var r=o[n];r.__morphT=t.__morphT,r.dirtyShape()}c&&c(e)},done:function(){h();for(var t=0;t<e.length;t++)Wz(e[t],`updateTransform`);s&&s()}},n));return t.__zr&&m(t.__zr),{fromIndividuals:r,toIndividuals:o,count:g}}function $z(e,t,n){var r=t.length,i=[],a=n.dividePath||Xz;function o(e){for(var t=0;t<e.length;t++){var n=e[t];Vz(n)?o(n.childrenRef()):n instanceof Y&&i.push(n)}}if(Vz(e)){o(e.childrenRef());var s=i.length;if(s<r)for(var c=0,l=s;l<r;l++)i.push(Ff(i[c++%s]));i.length=r}else{i=a({path:e,count:r});for(var u=e.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(u);if(i.length!==r)return console.error(`Invalid morphing: unmatched splitted path`),Zz()}i=Yz(i),t=Yz(t);for(var d=n.individualDelay,l=0;l<r;l++){var f=d?F({delay:(n.delay||0)+d(l,r,i[l],t[l])},n):n;qz(i[l],t[l],f)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function eB(e){return B(e[0])}function tB(e,t){for(var n=[],r=e.length,i=0;i<r;i++)n.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(t[i][o])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var c=n[s].many;if(c.length<=1){if(s)s=0;else return n}var a=c.length,l=Math.ceil(a/2);n[i].many=c.slice(l,a),n[s].many=c.slice(0,l),s++}return n}var nB={clone:function(e){for(var t=[],n=1-(1-e.path.style.opacity)**(1/e.count),r=0;r<e.count;r++){var i=Ff(e.path);i.setStyle(`opacity`,n),t.push(i)}return t},split:null};function rB(e,t,n,r,i,a){if(!e.length||!t.length)return;var o=Ip(`update`,r,i);if(!(o&&o.duration>0))return;var s=r.getModel(`universalTransition`).get(`delay`),c=P({setToFinal:!0},o),l,u;eB(e)&&(l=e,u=t),eB(t)&&(l=t,u=e);function d(e,t,r,i,o){var l=e.many,u=e.one;if(l.length===1&&!o){var f=t?l[0]:u,p=t?u:l[0];if(Vz(f))d({many:[f],one:p},!0,r,i,!0);else{var m=s?F({delay:s(r,i)},c):c;qz(f,p,m),a(f,p,f,p,m)}}else for(var h=F({dividePath:nB[n],individualDelay:s&&function(e,t,n,a){return s(e+r,i)}},c),g=t?Qz(l,u,h):$z(u,l,h),_=g.fromIndividuals,v=g.toIndividuals,y=_.length,b=0;b<y;b++){var m=s?F({delay:s(b,y)},c):c;a(_[b],v[b],t?l[b]:e.one,t?e.one:l[b],m)}}for(var f=l?l===e:e.length>t.length,p=l?tB(u,l):tB(f?t:e,[f?e:t]),m=0,h=0;h<p.length;h++)m+=p[h].many.length;for(var g=0,h=0;h<p.length;h++)d(p[h],f,g,m),g+=p[h].many.length}function iB(e){if(!e)return[];if(B(e)){for(var t=[],n=0;n<e.length;n++)t.push(iB(e[n]));return t}var r=[];return e.traverse(function(e){e instanceof Y&&!e.disableMorphing&&!e.invisible&&!e.ignore&&r.push(e)}),r}var aB=1e4,oB=0,sB=1,cB=2,lB=Ls();function uB(e,t){for(var n=e.dimensions,r=0;r<n.length;r++){var i=e.getDimensionInfo(n[r]);if(i&&i.otherDims[t]===0)return n[r]}}function dB(e,t,n){var r=e.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=e.get(r.name,t);return i&&i.categories[a]||a+``}}function fB(e,t,n,r){var i=uB(e,r?`itemChildGroupId`:`itemGroupId`);if(i)return dB(e,t,i);var a=e.getRawDataItem(t),o=r?`childGroupId`:`groupId`;if(a&&a[o])return a[o]+``;if(!r)return n||e.getId(t)}function pB(e){var t=[];return L(e,function(e){var n=e.data,r=e.dataGroupId;if(n.count()>aB){process.env.NODE_ENV!==`production`&&as(`Universal transition is disabled on large data > 10k.`);return}for(var i=n.getIndices(),a=0;a<i.length;a++)t.push({data:n,groupId:fB(n,a,r,!1),childGroupId:fB(n,a,r,!0),divide:e.divide,dataIndex:a})}),t}function mB(e,t,n){e.traverse(function(e){e instanceof Y&&zp(e,{style:{opacity:0}},t,{dataIndex:n,isFrom:!0})})}function hB(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function gB(e){e.stopAnimation(),e.isGroup&&e.traverse(function(e){e.stopAnimation()})}function _B(e,t,n){var r=Ip(`update`,n,t);r&&e.traverse(function(e){if(e instanceof sl){var t=Gp(e);t&&e.animateFrom({style:t},r)}})}function vB(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++){var i=e[r],a=t[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function yB(e,t,n){var r=pB(e),i=pB(t);function a(e,t,n,r,i){(n||e)&&t.animateFrom({style:n&&n!==e?P(P({},n.style),e.style):e.style},i)}var o=!1,s=oB,c=K(),l=K();L(r,function(e){e.groupId&&c.set(e.groupId,!0),e.childGroupId&&l.set(e.childGroupId,!0)});for(var u=0;u<i.length;u++){var d=i[u].groupId;if(l.get(d)){s=sB;break}var f=i[u].childGroupId;if(f&&c.get(f)){s=cB;break}}function p(e,t){return function(n){var r=n.data,i=n.dataIndex;return t?r.getId(i):e?s===sB?n.childGroupId:n.groupId:s===cB?n.childGroupId:n.groupId}}var m=vB(r,i),h={};if(!m)for(var u=0;u<i.length;u++){var g=i[u],_=g.data.getItemGraphicEl(g.dataIndex);_&&(h[_.id]=!0)}function v(e,t){var n=r[t],s=i[e],c=s.data.hostModel,l=n.data.getItemGraphicEl(n.dataIndex),u=s.data.getItemGraphicEl(s.dataIndex);if(l===u){u&&_B(u,s.dataIndex,c);return}l&&h[l.id]||u&&(gB(u),l?(gB(l),hB(l),o=!0,rB(iB(l),iB(u),s.divide,c,e,a)):mB(u,c,e))}new cw(r,i,p(!0,m),p(!1,m),null,`multiple`).update(v).updateManyToOne(function(e,t){var n=i[e],s=n.data,c=s.hostModel,l=s.getItemGraphicEl(n.dataIndex),u=_e(R(t,function(e){return r[e].data.getItemGraphicEl(r[e].dataIndex)}),function(e){return e&&e!==l&&!h[e.id]});l&&(gB(l),u.length?(L(u,function(e){gB(e),hB(e)}),o=!0,rB(iB(u),iB(l),n.divide,c,e,a)):mB(l,c,n.dataIndex))}).updateOneToMany(function(e,t){var n=r[t],s=n.data.getItemGraphicEl(n.dataIndex);if(!(s&&h[s.id])){var c=_e(R(e,function(e){return i[e].data.getItemGraphicEl(i[e].dataIndex)}),function(e){return e&&e!==s}),l=i[e[0]].data.hostModel;c.length&&(L(c,function(e){return gB(e)}),s?(gB(s),hB(s),o=!0,rB(iB(s),iB(c),n.divide,l,e[0],a)):L(c,function(t){return mB(t,l,e[0])}))}}).updateManyToMany(function(e,t){new cw(t,e,function(e){return r[e].data.getId(r[e].dataIndex)},function(e){return i[e].data.getId(i[e].dataIndex)}).update(function(n,r){v(e[n],t[r])}).execute()}).execute(),o&&L(t,function(e){var t=e.data.hostModel,r=t&&n.getViewOfSeriesModel(t),i=Ip(`update`,t,0);r&&t.isAnimationEnabled()&&i&&i.duration>0&&r.group.traverse(function(e){e instanceof Y&&!e.animators.length&&e.animateFrom({style:{opacity:0}},i)})})}function bB(e){return e.getModel(`universalTransition`).get(`seriesKey`)||e.id}function xB(e){return B(e)?e.sort().join(`,`):e}function SB(e){if(e.hostModel)return e.hostModel.getModel(`universalTransition`).get(`divideShape`)}function CB(e,t){var n=K(),r=K(),i=K();L(e.oldSeries,function(t,n){var a=e.oldDataGroupIds[n],o=e.oldData[n],s=bB(t),c=xB(s);r.set(c,{dataGroupId:a,data:o}),B(s)&&L(s,function(e){i.set(e,{key:c,dataGroupId:a,data:o})})});function a(e){n.get(e)&&as(`Duplicated seriesKey in universalTransition `+e)}return L(t.updatedSeries,function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get(`dataGroupId`),o=e.getData(),s=bB(e),c=xB(s),l=r.get(c);if(l)process.env.NODE_ENV!==`production`&&a(c),n.set(c,{oldSeries:[{dataGroupId:l.dataGroupId,divide:SB(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:SB(o),data:o}]});else if(B(s)){process.env.NODE_ENV!==`production`&&a(c);var u=[];L(s,function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:SB(t.data),data:t.data})}),u.length&&n.set(c,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:SB(o)}]})}else{var d=i.get(s);if(d){var f=n.get(d.key);f||(f={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:SB(d.data)}],newSeries:[]},n.set(d.key,f)),f.newSeries.push({dataGroupId:t,data:o,divide:SB(o)})}}}}),n}function wB(e,t){for(var n=0;n<e.length;n++)if(t.seriesIndex!=null&&t.seriesIndex===e[n].seriesIndex||t.seriesId!=null&&t.seriesId===e[n].id)return n}function TB(e,t,n,r){var i=[],a=[];L(ms(e.from),function(e){var n=wB(t.oldSeries,e);n>=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:SB(t.oldData[n]),groupIdDim:e.dimension})}),L(ms(e.to),function(e){var r=wB(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:SB(i),groupIdDim:e.dimension})}}),i.length>0&&a.length>0&&yB(i,a,r)}function EB(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){L(ms(n.seriesTransition),function(e){L(ms(e.to),function(e){for(var t=n.updatedSeries,r=0;r<t.length;r++)(e.seriesIndex!=null&&e.seriesIndex===t[r].seriesIndex||e.seriesId!=null&&e.seriesId===t[r].id)&&(t[r][$y]=!0)})})}),e.registerUpdateLifecycle(`series:transition`,function(e,t,n){var r=lB(t);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)L(ms(i),function(e){TB(e,r,n,t)});else{var a=CB(r,n);L(a.keys(),function(e){var n=a.get(e);yB(n.oldSeries,n.newSeries,t)})}L(n.updatedSeries,function(e){e.__universalTransitionEnabled&&(e[$y]=!1)})}for(var o=e.getSeries(),s=r.oldSeries=[],c=r.oldDataGroupIds=[],l=r.oldData=[],u=0;u<o.length;u++){var d=o[u].getData();d.count()<aB&&(s.push(o[u]),c.push(o[u].get(`dataGroupId`)),l.push(d))}})}var DB=({color:e=`#d85040`,width:t=27,height:n=10})=>(0,l.jsxs)(`svg`,{width:t,height:n,viewBox:`0 0 ${t} ${n}`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,l.jsx)(`path`,{d:`M1.2998 4.75H25.2998`,stroke:e,strokeWidth:2.6,strokeLinecap:`round`}),(0,l.jsx)(`path`,{d:`M13.2998 8.75C15.5089 8.75 17.2998 6.95914 17.2998 4.75C17.2998 2.54086 15.5089 0.75 13.2998 0.75C11.0907 0.75 9.2998 2.54086 9.2998 4.75C9.2998 6.95914 11.0907 8.75 13.2998 8.75Z`,fill:`white`,stroke:e,strokeWidth:1.5})]}),OB=({hex:e=``,alpha:t=1})=>{if(!e)return``;let n=e.replace(`#`,``);if(n.length===3&&(n=n.split(``).map(e=>e+e).join(``)),!/^[A-Fa-f0-9]{6}$/.test(n))return``;let r=n.match(/.{1,2}/g);if(!r)return``;let[i,a,o]=r.map(e=>parseInt(e,16));return`rgba(${i},${a},${o},${t})`},kB=({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)},AB=({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)},jB=({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!==null),s=r.some(({key:e})=>i.includes(e))||!1,c=n.map((e,t)=>{let n=o[t]??null;return{name:e,data:a.map(e=>n!==null&&Number(e[n])?Number(e[n]):null).filter(e=>e!==null),type:`line`,smooth:!0,stack:String(t+1),lineStyle:{width:1},showSymbol:!0,symbol:`circle`,symbolSize:10,itemStyle:{color:`var(--bg)`,borderWidth:1.8},areaStyle:{origin:`start`},emphasis:{focus:`series`,scale:1.3,itemStyle:{color:`var(--bg)`,borderWidth:1.8,shadowBlur:6,shadowColor:`rgba(216, 80, 64, 0.4)`}}}}),l=kB({visualization:e,data:t});return c.map(e=>{let t=e.stack?Number(e.stack):0,n=l[t-1],i=r.find(({key:e})=>e===n)?.color||`var(--orange-90)`,a=s?i:void 0;return console.log(a),{...e,emphasis:{...e.emphasis,itemStyle:{...e.emphasis?.itemStyle,borderColor:a}},lineStyle:{...e.lineStyle,color:a},itemStyle:{...e.itemStyle,borderColor:a},areaStyle:{...e.areaStyle,color:a?new Sp(0,0,0,1,[{offset:0,color:OB({hex:a,alpha:.1})},{offset:1,color:OB({hex:a,alpha:0})}]):void 0}}})},MB=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};dD([SP,yP,HA,UF,pR,EB]);var NB=({visualization:e={},data:t={},showLegend:n=!0})=>{let r=(0,u.useRef)(null),i=(0,u.useRef)(null),a=jB({visualization:e,data:t}),o=AB({visualization:e,data:t}),{series:s=[]}=e||{},c=MB({xData:o,series:s});return(0,u.useEffect)(()=>{if(!r.current)return;i.current||=HC(r.current,void 0,{renderer:`svg`});let e={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};c.forEach(({image:t},n)=>{t&&(e[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:t}})});let t={grid:{bottom:`0%`,containLabel:!0,left:`0%`,right:`0%`,top:`0%`},tooltip:{trigger:`axis`},xAxis:[{type:`category`,boundaryGap:!1,data:o,axisTick:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:`var(--gray-50)`,type:`solid`,width:1.4}},axisLabel:{interval:0,formatter:(t,n)=>{let r=`img_${n}`;return e[r]?`{valueStyle|${t}}\n{${r}|}`:`{valueStyle|${t}}`},rich:e}}],yAxis:[{type:`value`,splitLine:{show:!1},axisLine:{show:!1}}],series:a};i.current.setOption(t);let n=new ResizeObserver(()=>{i.current?.resize()});return n.observe(r.current),()=>{n.disconnect(),i.current?.dispose(),i.current=null}},[a,o,c]),(0,l.jsxs)(`div`,{className:`line-chart-ctn`,children:[(0,l.jsx)(`div`,{ref:r,className:`bars-line-chart`,style:{width:`100%`}}),(()=>{if(!n)return null;let e=s.map(({key:e,color:t,image:n},r)=>(0,l.jsxs)(`div`,{className:`line-chart-label`,children:[n?(0,l.jsx)(`img`,{src:n,alt:`label-image`,className:`line-chart-label-img`}):null,(0,l.jsxs)(`div`,{className:`line-chart-label-content`,children:[(0,l.jsx)(DB,{color:t}),(0,l.jsx)(`p`,{className:`line-chart-label-text`,children:e})]})]},`line-chart-label-${e}-${t}-${r}`));return(0,l.jsx)(`div`,{className:`line-chart-labels`,children:e})})()]})},PB=({data:e={},type:t})=>{let{data:n={},metadata:{title:r=``,description:i=``,source:a=``,image:o=void 0,articleUrl:s=``}={},visualization:c={},visualization:{settings:{showChart:u=!0,showDescription:d=!0,showImage:f=!0,showLegend:p=!0,showSource:m=!0,showTitle:h=!0}={}}={}}=e||{},_=t===`only-graph`,v=!_,y=!_&&f;return(0,l.jsxs)(`div`,{className:`line-chart`,children:[(0,l.jsx)(g,{title:r,showTitle:h,subtitle:i,showSubtitle:d,url:s,showShare:v}),u?(0,l.jsx)(NB,{data:n,visualization:c,showLegend:p}):null,(0,l.jsx)(pz,{showLogo:y,logoSrc:o,source:a,showSource:m})]})},FB=({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)},IB=({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)},LB=({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:[16,16,0,0]},emphasis:{focus:`series`,itemStyle:{shadowBlur:8,shadowColor:`rgba(0,0,0,0.25)`}},showBackground:!0,backgroundStyle:{color:`rgba(175, 175, 175, 0.1)`,borderRadius:[16,16,0,0]}}}),u=IB({visualization:e,data:t}),d=FB({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}}}})},RB=({xData:e=[],series:t=[]})=>{let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t.find(({key:e})=>e===i)||{};a?.image&&a.key?n[r]={key:i,image:a.image}:n[r]={}}return n};dD([HA,yP,VN,FI,pR]);var zB=({visualization:e={},data:t={},showLegend:n=!0})=>{let r=(0,u.useRef)(null),i=(0,u.useRef)(null),a=LB({visualization:e,data:t}),o=IB({visualization:e,data:t}),{series:s=[]}=e||{},c=RB({xData:o,series:s});return(0,u.useEffect)(()=>{if(!r.current)return;i.current||=HC(r.current,void 0,{renderer:`svg`});let e=[...a],t={valueStyle:{color:`#333`,align:`center`,padding:[0,0,6,0]}};c.forEach(({image:e},n)=>{e&&(t[`img_${n}`]={height:24,width:24,align:`center`,backgroundColor:{image:e}})});let n={grid:{left:`0%`,right:`0%`,top:`0%`,bottom:`0%`,containLabel:!0},tooltip:{trigger:`axis`},xAxis:{type:`category`,data:o,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{interval:0,formatter:(e,n)=>{let r=`img_${n}`;return t[r]?`{valueStyle|${e}}\n{${r}|}`:`{valueStyle|${e}}`},rich:t}},yAxis:{type:`value`,splitLine:{lineStyle:{color:`#d5d5d566`}}},series:e};i.current.setOption(n);let s=new ResizeObserver(()=>{i.current?.resize()});return s.observe(r.current),()=>{s.disconnect(),i.current?.dispose(),i.current=null}},[a,o,c]),(0,l.jsxs)(`div`,{className:`vertical-bar-chart-ctn`,children:[(0,l.jsx)(`div`,{ref:r,className:`bars-vertical-bar-chart`,style:{width:`100%`}}),(()=>{if(!n||!s.length)return null;let e=s.map(({key:e,color:t},n)=>(0,l.jsxs)(`div`,{className:`vertical-bar-chart-label`,children:[(0,l.jsx)(`div`,{className:`vertical-bar-chart-label-icon`,style:{background:t||``}}),(0,l.jsx)(`p`,{className:`vertical-bar-chart-label-text`,children:e})]},`vertical-bar-chart-label-${e}-${t}-${n}`));return(0,l.jsx)(`div`,{className:`vertical-bar-chart-labels`,children:e})})()]})},BB=({data:e={},type:t=``})=>{let{data:n={},metadata:{title:r=``,description:i=``,source:a=``,image:o=void 0,articleUrl:s=``}={},visualization:c={},visualization:{settings:{showChart:u=!0,showDescription:d=!0,showImage:f=!0,showLegend:p=!0,showSource:m=!0,showTitle:h=!0}={}}={}}=e||{},_=t===`only-graph`,v=!_,y=!_&&f;return(0,l.jsxs)(`div`,{className:`vertical-bar-chart`,children:[(0,l.jsx)(g,{title:r,showTitle:h,subtitle:i,showSubtitle:d,url:s,showShare:v}),u?(0,l.jsx)(zB,{data:n,visualization:c,showLegend:p}):null,(0,l.jsx)(pz,{showLogo:y,logoSrc:o,source:a,showSource:m})]})};exports.HorizontalBarChart=mz,exports.Line=PB,exports.Title=g,exports.VerticalBar=BB;