weapp-vite 5.7.1 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-import-components/resolvers.cjs +5 -5
- package/dist/auto-import-components/resolvers.mjs +1 -1
- package/dist/auto-routes.cjs +8 -8
- package/dist/auto-routes.mjs +4 -4
- package/dist/{chunk-AXUA33LJ.mjs → chunk-3WGK7INY.mjs} +2 -2
- package/dist/{chunk-GGLONZVQ.cjs → chunk-AUQJOLJS.cjs} +6 -6
- package/dist/{chunk-ZMX6CFVX.mjs → chunk-ED4S52HS.mjs} +1 -1
- package/dist/{chunk-O4FBXXL3.mjs → chunk-FSDX3XLK.mjs} +311 -26
- package/dist/{chunk-T4OVF4GP.cjs → chunk-HKSOVHNE.cjs} +657 -372
- package/dist/{chunk-MQBCRXCD.cjs → chunk-JKNSNXOE.cjs} +2 -2
- package/dist/chunk-O3YXI56P.cjs +6 -0
- package/dist/{chunk-A5DD7GKX.cjs → chunk-QKFYCWOC.cjs} +2 -2
- package/dist/{chunk-N463WDOG.mjs → chunk-RJVVY5EI.mjs} +1 -1
- package/dist/{chunk-G6EZVEVT.cjs → chunk-RMHCFT5Q.cjs} +2 -2
- package/dist/{chunk-2SUWUB42.mjs → chunk-SSYIWHY2.mjs} +1 -1
- package/dist/{chunk-SSQGJIB5.mjs → chunk-TZWATIK3.mjs} +2 -2
- package/dist/cli.cjs +143 -99
- package/dist/cli.mjs +63 -19
- package/dist/config.cjs +4 -4
- package/dist/config.mjs +3 -3
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +6 -6
- package/dist/json.cjs +3 -3
- package/dist/json.mjs +2 -2
- package/dist/types.cjs +9 -9
- package/dist/types.mjs +2 -2
- package/dist/volar.cjs +2 -2
- package/dist/volar.mjs +1 -1
- package/modules/analyze-dashboard/assets/echarts.js +11 -25
- package/modules/analyze-dashboard/assets/index.js +1 -1
- package/modules/analyze-dashboard/assets/rolldown-runtime.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-FOWFAOSV.cjs +0 -6
|
@@ -1,31 +1,17 @@
|
|
|
1
|
-
import{t as e}from"./rolldown-runtime.js";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */
|
|
16
|
-
var t=function(e,n){return t=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])},t(e,n)};function n(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var r=`12px sans-serif`,i=20,a=100,o=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`;function s(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)-i)/a}return t}var c=s(o),l={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=l.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 u=0;u<n.length;u++){var d=c[n[u]];s+=d==null?o:d*o}return{width:s}}})(),loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r}},u=ee([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),d=ee([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),f=Object.prototype.toString,p=Array.prototype,m=p.forEach,h=p.filter,g=p.slice,_=p.map,v=function(){}.constructor,y=v?v.prototype:null,b=`__proto__`,x=2311;function S(){return x++}function C(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function w(e){if(typeof e!=`object`||!e)return e;var t=e,n=f.call(e);if(n===`[object Array]`){if(!ge(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=w(e[r])}}else if(d[n]){if(!ge(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(!u[n]&&!ge(e)&&!ie(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==b&&(t[o]=w(e[o]));return t}function T(e,t,n){if(!V(t)||!V(e))return n?w(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==b){var i=e[r],a=t[r];V(a)&&V(i)&&!L(a)&&!L(i)&&!ie(a)&&!ie(i)&&!H(a)&&!H(i)&&!ge(a)&&!ge(i)?T(i,a,n):(n||!(r in e))&&(e[r]=w(t[r]))}return e}function E(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==b&&(e[n]=t[n]);return e}function D(e,t,n){for(var r=P(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}l.createCanvas;function O(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 k(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 A(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 D(e,t,n)}function j(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function M(e,t,n){if(e&&t)if(e.forEach&&e.forEach===m)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 N(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.map&&e.map===_)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 ee(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 te(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.filter&&e.filter===h)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 P(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 ne(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(g.call(arguments)))}}var F=y&&R(y.bind)?y.call.bind(y.bind):ne;function I(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(g.call(arguments)))}}function L(e){return Array.isArray?Array.isArray(e):f.call(e)===`[object Array]`}function R(e){return typeof e==`function`}function z(e){return typeof e==`string`}function re(e){return f.call(e)===`[object String]`}function B(e){return typeof e==`number`}function V(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function H(e){return!!u[f.call(e)]}function U(e){return!!d[f.call(e)]}function ie(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function ae(e){return e.colorStops!=null}function oe(e){return e.image!=null}function se(e){return e!==e}function ce(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function W(e,t){return e??t}function le(e,t,n){return e??t??n}function ue(e){var t=[...arguments].slice(1);return g.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 fe(e,t){if(!e)throw Error(t)}function pe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var me=`__ec_primitive__`;function he(e){e[me]=!0}function ge(e){return e[me]}var _e=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 P(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),ve=typeof Map==`function`;function ye(){return ve?new Map:new _e}var be=function(){function e(t){var n=L(t);this.data=ye();var r=this;t instanceof e?t.each(i):t&&M(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 ve?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function G(e){return new be(e)}function xe(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 Se(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&E(n,t),n}function Ce(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function we(e,t){return e.hasOwnProperty(t)}function Te(){}var Ee=180/Math.PI,De=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Oe=new(function(){function e(){this.browser=new De,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`?(Oe.wxa=!0,Oe.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Oe.worker=!0:!Oe.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Oe.node=!0,Oe.svgSupported=!0):ke(navigator.userAgent,Oe);function ke(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 K=Oe,Ae=`.`,je=`___EC__COMPONENT__CONTAINER___`,Me=`___EC__EXTENDED_CLASS___`;function Ne(e){var t={main:``,sub:``};if(e){var n=e.split(Ae);t.main=n[0]||``,t.sub=n[1]||``}return t}function Pe(e){fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function Fe(e){return!!(e&&e[Me])}function Ie(e,t){e.$constructor=e,e.extend=function(e){var t=this,r;return Le(t)?r=function(e){n(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(r=function(){(e.$constructor||t).apply(this,arguments)},k(r,this)),E(r.prototype,e),r[Me]=!0,r.extend=this.extend,r.superCall=Ve,r.superApply=He,r.superClass=t,r}}function Le(e){return R(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Re(e,t){e.extend=t.extend}var ze=Math.round(Math.random()*10);function Be(e){var t=[`__\0is_clz`,ze++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Ve(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function He(e,t,n){return this.superClass.prototype[t].apply(e,n)}function Ue(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Pe(r),e.prototype.type=r;var i=Ne(r);if(!i.sub)t[i.main]=e;else if(i.sub!==je){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[je]&&(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=Ne(e),r=[],i=t[n.main];return i&&i[je]?M(i,function(e,t){t!==je&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ne(e).main]},e.getAllClassMainTypes=function(){var e=[];return M(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ne(e).main];return n&&n[je]};function n(e){var n=t[e.main];return(!n||!n[je])&&(n=t[e.main]={},n[je]=!0),n}}function We(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&&O(r,s)>=0||i&&O(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Ge=We([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Ke=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Ge(this,e,t)},e}(),qe=function(){function e(e){this.value=e}return e}(),Je=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new qe(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}(),Ye=function(){function e(e){this._list=new Je,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 qe(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}(),Xe=new Ye(50);function Ze(e){if(typeof e==`string`){var t=Xe.get(e);return t&&t.image}else return e}function Qe(e,t,n,r,i){if(e)if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=Xe.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!et(t)&&a.pending.push(o)):(t=l.loadImage(e,$e,$e),t.__zrImageSrc=e,Xe.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function $e(){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 et(e){return e&&e.width&&e.height}function tt(){return[1,0,0,1,0,0]}function nt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function rt(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 it(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function at(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function ot(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 st(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 ct(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 q=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),lt=Math.min,ut=Math.max,dt=Math.abs,ft=[`x`,`y`],pt=[`width`,`height`],mt=new q,ht=new q,gt=new q,_t=new q,vt=Et(),yt=vt.minTv,bt=vt.maxTv,xt=[0,0],St=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=lt(e.x,this.x),n=lt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ut(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ut(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=tt();return at(i,i,[-t.x,-t.y]),st(i,i,[n,r]),at(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.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=e.set(Ct,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set(wt,n.x,n.y,n.width,n.height));var s=!!r;vt.reset(i,s);var c=vt.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)&&(xt[0]=1/0,xt[1]=0,Tt(l,u,p,m,0,s,a,o),Tt(d,f,h,g,1,s,a,o),s&&q.copy(r,_?vt.useDir?vt.dirMinTv:yt:bt)),_},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(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},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(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}mt.x=gt.x=n.x,mt.y=_t.y=n.y,ht.x=_t.x=n.x+n.width,ht.y=gt.y=n.y+n.height,mt.transform(r),_t.transform(r),ht.transform(r),gt.transform(r),t.x=lt(mt.x,ht.x,gt.x,_t.x),t.y=lt(mt.y,ht.y,gt.y,_t.y);var c=ut(mt.x,ht.x,gt.x,_t.x),l=ut(mt.y,ht.y,gt.y,_t.y);t.width=c-t.x,t.height=l-t.y},e}(),Ct=new St(0,0,0,0),wt=new St(0,0,0,0);function Tt(e,t,n,r,i,a,o,s){var c=dt(t-n),l=dt(r-e),u=lt(c,l),d=ft[i],f=ft[1-i],p=pt[i];t<n||r<e?c<l?(a&&(bt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(bt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=ut(e,n),o[p]=lt(t,r)-o[d]),a&&(u<xt[0]||vt.useDir)&&(xt[0]=lt(u,xt[0]),(c<l||!vt.bidirectional)&&(yt[d]=c,yt[f]=0,vt.useDir&&vt.calcDirMTV()),(c>=l||!vt.bidirectional)&&(yt[d]=-l,yt[f]=0,vt.useDir&&vt.calcDirMTV())))}function Et(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=ut(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 dt(e)<1e-10}return r}var J=St;function Dt(e){Ot||=new Ye(100),e||=`12px sans-serif`;var t=Ot.get(e);return t||(t={font:e,strWidthCache:new Ye(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:l.measureText(`国`,e).width,asciiCharWidth:l.measureText(`a`,e).width},Ot.put(e,t)),t}var Ot;function kt(e){if(!(At>=jt)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=l.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?At=jt:i>2&&At++,t}}var At=0,jt=5;function Mt(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=kt(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function Nt(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=l.measureText(t,e.font).width,n.put(t,r)),r}function Pt(e,t,n,r){var i=Nt(Dt(t),e),a=Rt(t);return new J(It(0,i,n),Lt(0,a,r),i,a)}function Ft(e,t,n,r){var i=((e||``)+``).split(`
|
|
17
|
-
`);if(i.length===1)return Pt(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=Pt(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function It(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function Lt(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Rt(e){return Dt(e).stWideCharWidth}function zt(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function Bt(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+=zt(r[0],n.width),l+=zt(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`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Vt=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ht(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
18
|
-
`);a=Ut(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Wt(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
19
|
-
`),e.isTruncated=s}function Ut(e,t,n,r){r||={};var i=E({},r);n=W(n,`...`),i.maxIterations=W(r.maxIterations,2);var a=i.minChar=W(r.minChar,0),o=i.fontMeasureInfo=Dt(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=Nt(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 Wt(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=Nt(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?Gt(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=Nt(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Gt(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=Mt(n,e.charCodeAt(i));return i}function Kt(e,t,n,r){var i=on(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=Rt(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?tn(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
20
|
-
`):[],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=Ut(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)Wt(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=Dt(l),S=0;S<_.length;S++)w=Math.max(Nt(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 qt=function(){function e(){}return e}(),Jt=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),Yt=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 Xt(e,t,n,r,i){var a=new Yt,o=on(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=Vt.lastIndex=0,h;(h=Vt.exec(o))!=null;){var g=h.index;g>m&&Zt(a,o.substring(m,g),t,p),Zt(a,h[2],t,p,h[1]),m=Vt.lastIndex}m<o.length&&Zt(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,M=j?j[1]+j[3]:0,N=k.font=A.font||t.font;k.contentHeight=Rt(N);var ee=W(A.height,k.contentHeight);if(k.innerHeight=ee,j&&(ee+=j[0]+j[2]),k.height=ee,k.lineHeight=le(A.lineHeight,t.lineHeight,ee),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var te=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<te;break outer}var P=A.width,ne=P==null||P===`auto`;if(typeof P==`string`&&P.charAt(P.length-1)===`%`)k.percentWidth=P,_.push(k),k.contentWidth=Nt(Dt(N),k.text);else{if(ne){var F=A.backgroundColor,I=F&&F.image;I&&(I=Ze(I),et(I)&&(k.width=Math.max(k.width,I.width*ee/I.height)))}var L=b&&u!=null?u-D:null;L!=null&&L<k.width?!ne||L<M?(k.text=``,k.width=k.contentWidth=0):(Ht(S,k.text,L-M,N,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=Nt(Dt(N),k.text)):k.contentWidth=Nt(Dt(N),k.text)}k.width+=M,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],R=k.percentWidth;k.width=parseInt(R,10)/100*a.width}return a}function Zt(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=zt(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
21
|
-
`),l=!0),r.accumWidth=m}else{var h=tn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
22
|
-
`);for(var g=Dt(c),_=0;_<u.length;_++){var v=u[_],y=new qt;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:Nt(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Jt)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Jt([y]))}}function Qt(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var $t=ee(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function en(e){return Qt(e)?!!$t[e]:!0}function tn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=Dt(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
23
|
-
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=Mt(d,p.charCodeAt(0)),h=r?!1:!en(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 nn(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(rn,It(n,o,i),Lt(r,s,a),o,s),J.intersect(t,rn,null,an);var c=an.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=It(c.x,c.width,i,!0),e.baseY=Lt(c.y,c.height,a,!0)}}var rn=new J(0,0,0,0),an={outIntersectRect:{},clamp:!0};function on(e){return e==null?e=``:e+=``}function sn(e){var t=on(e.text),n=e.font;return cn(e,Nt(Dt(n),t),Rt(n),null)}function cn(e,t,n,r){var i=new J(It(e.x||0,t,e.textAlign),Lt(e.y||0,n,e.textBaseline),t,n),a=r??(ln(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function ln(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}function un(e,t){return e??=0,t??=0,[e,t]}function dn(e){return[e[0],e[1]]}function fn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function pn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function mn(e){return Math.sqrt(hn(e))}function hn(e){return e[0]*e[0]+e[1]*e[1]}function gn(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _n(e,t){var n=mn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function vn(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var yn=vn;function bn(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var xn=bn;function Sn(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 Cn(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function wn(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Tn=nt,En=5e-5;function Dn(e){return e>En||e<-En}var On=[],kn=[],An=tt(),jn=Math.abs,Mn=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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 Dn(this.rotation)||Dn(this.x)||Dn(this.y)||Dn(this.scaleX-1)||Dn(this.scaleY-1)||Dn(this.skewX)||Dn(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Tn(n),this.invTransform=null);return}n||=tt(),t?this.getLocalTransform(n):Tn(n),e&&(t?it(n,e,n):rt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(On);var n=On[0]<0?-1:1,r=On[1]<0?-1:1,i=((On[0]-n)*t+n)/On[0]||0,a=((On[1]-r)*t+r)/On[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||tt(),ct(this.invTransform,e)},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||tt(),it(kn,e.invTransform,t),t=kn);var n=this.originX,r=this.originY;(n||r)&&(An[4]=n,An[5]=r,it(kn,t,An),kn[4]-=n,kn[5]-=r,t=kn),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&&Sn(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&Sn(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&jn(e[0]-1)>1e-10&&jn(e[3]-1)>1e-10?Math.sqrt(jn(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){Pn(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&&ot(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}(),Nn=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function Pn(e,t){for(var n=0;n<Nn.length;n++){var r=Nn[n];e[r]=t[r]}}var Fn=Mn,In={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=1.70158*1.525;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-In.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?In.bounceIn(e*2)*.5:In.bounceOut(e*2-1)*.5+.5}},Ln=In,Rn=Math.pow,zn=Math.sqrt,Bn=1e-8,Vn=1e-4,Hn=zn(3),Un=1/3,Wn=un(),Gn=un(),Kn=un();function qn(e){return e>-Bn&&e<Bn}function Jn(e){return e>Bn||e<-Bn}function Yn(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 Xn(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Zn(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(qn(u)&&qn(d))if(qn(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(qn(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=zn(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Rn(-y,Un):Rn(y,Un),b=b<0?-Rn(-b,Un):Rn(b,Un);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*zn(u*u*u)),S=Math.acos(x)/3,C=zn(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Hn*Math.sin(S)))/(3*o),T=(-s+C*(w-Hn*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 Qn(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(qn(o)){if(Jn(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(qn(u))i[0]=-a/(2*o);else if(u>0){var d=zn(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 $n(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 er(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Wn[0]=c,Wn[1]=l;for(var v=0;v<1;v+=.05)Gn[0]=Yn(e,n,i,o,v),Gn[1]=Yn(t,r,a,s,v),g=xn(Wn,Gn),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Vn);y++)m=d-f,h=d+f,Gn[0]=Yn(e,n,i,o,m),Gn[1]=Yn(t,r,a,s,m),g=xn(Gn,Wn),m>=0&&g<p?(d=m,p=g):(Kn[0]=Yn(e,n,i,o,h),Kn[1]=Yn(t,r,a,s,h),_=xn(Kn,Wn),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=Yn(e,n,i,o,d),u[1]=Yn(t,r,a,s,d)),zn(p)}function tr(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=Yn(e,n,i,o,m),g=Yn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function nr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function rr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function ir(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(qn(a)){if(Jn(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(qn(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=zn(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 ar(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function or(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 sr(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Wn[0]=o,Wn[1]=s;for(var f=0;f<1;f+=.05){Gn[0]=nr(e,n,i,f),Gn[1]=nr(t,r,a,f);var p=xn(Wn,Gn);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Vn);m++){var h=l-u,g=l+u;Gn[0]=nr(e,n,i,h),Gn[1]=nr(t,r,a,h);var p=xn(Gn,Wn);if(h>=0&&p<d)l=h,d=p;else{Kn[0]=nr(e,n,i,g),Kn[1]=nr(t,r,a,g);var _=xn(Kn,Wn);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=nr(e,n,i,l),c[1]=nr(t,r,a,l)),zn(d)}function cr(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=nr(e,n,i,f),m=nr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var lr=/cubic-bezier\(([0-9,\.e ]+)\)/;function ur(e){var t=e&&lr.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Zn(0,r,a,1,e,s)&&Yn(0,i,o,1,s[0])}}}var dr=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||Te,this.ondestroy=e.ondestroy||Te,this.onrestart=e.onrestart||Te,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)this._startTime=e-r%n,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=R(e)?e:Ln[e]||ur(e)},e}(),fr={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 pr(e){return e=Math.round(e),e<0?0:e>255?255:e}function mr(e){return e=Math.round(e),e<0?0:e>360?360:e}function hr(e){return e<0?0:e>1?1:e}function gr(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?pr(parseFloat(t)/100*255):pr(parseInt(t,10))}function _r(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?hr(parseFloat(t)/100):hr(parseFloat(t))}function vr(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 yr(e,t,n){return e+(t-e)*n}function br(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function xr(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Sr=new Ye(20),Cr=null;function wr(e,t){Cr&&xr(Cr,t),Cr=Sr.put(e,Cr||t.slice())}function Tr(e,t){if(e){t||=[];var n=Sr.get(e);if(n)return xr(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in fr)return xr(t,fr[r]),wr(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)){br(t,0,0,0,1);return}return br(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),wr(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){br(t,0,0,0,1);return}return br(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),wr(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?br(t,+l[0],+l[1],+l[2],1):br(t,0,0,0,1);u=_r(l.pop());case`rgb`:if(l.length>=3)return br(t,gr(l[0]),gr(l[1]),gr(l[2]),l.length===3?u:_r(l[3])),wr(e,t),t;br(t,0,0,0,1);return;case`hsla`:if(l.length!==4){br(t,0,0,0,1);return}return l[3]=_r(l[3]),Er(l,t),wr(e,t),t;case`hsl`:if(l.length!==3){br(t,0,0,0,1);return}return Er(l,t),wr(e,t),t;default:return}}br(t,0,0,0,1)}}function Er(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=_r(e[1]),i=_r(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],br(t,pr(vr(o,a,n+1/3)*255),pr(vr(o,a,n)*255),pr(vr(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Dr(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 Or(e,t){var n=Tr(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 Mr(n,n.length===4?`rgba`:`rgb`)}}function kr(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=pr(yr(o[0],s[0],c)),n[1]=pr(yr(o[1],s[1],c)),n[2]=pr(yr(o[2],s[2],c)),n[3]=hr(yr(o[3],s[3],c)),n}}function Ar(e,t,n,r){var i=Tr(e);if(e)return i=Dr(i),t!=null&&(i[0]=mr(R(t)?t(i[0]):t)),n!=null&&(i[1]=_r(R(n)?n(i[1]):n)),r!=null&&(i[2]=_r(R(r)?r(i[2]):r)),Mr(Er(i),`rgba`)}function jr(e,t){var n=Tr(e);if(n&&t!=null)return n[3]=hr(t),Mr(n,`rgba`)}function Mr(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 Nr(e,t){var n=Tr(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Pr=new Ye(100);function Fr(e){if(z(e)){var t=Pr.get(e);return t||(t=Or(e,-.1),Pr.put(e,t)),t}else if(ae(e)){var n=E({},e);return n.colorStops=N(e.colorStops,function(e){return{offset:e.offset,color:Or(e.color,-.1)}}),n}return e}function Ir(e){return e.type===`linear`}function Lr(e){return e.type===`radial`}(function(){return K.hasGlobalWindow&&R(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})();var Rr=Array.prototype.slice;function zr(e,t,n){return(t-e)*n+e}function Br(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=zr(t[a],n[a],r);return e}function Vr(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]=zr(t[o][s],n[o][s],r)}return e}function Hr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Ur(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 Wr(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 Gr(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]:Rr.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 Kr(e){if(j(e)){var t=e.length;if(j(e[0])){for(var n=[],r=0;r<t;r++)n.push(Rr.call(e[r]));return n}return Rr.call(e)}return e}function qr(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 Jr(e){return j(e&&e[0])?2:1}var Yr=0,Xr=1,Zr=2,Qr=3,$r=4,ei=5,ti=6;function ni(e){return e===$r||e===ei}function ri(e){return e===Xr||e===Zr}var ii=[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=ti,s=t;if(j(t)){var c=Jr(t);o=c,(c===1&&!B(t[0])||c===2&&!B(t[0][0]))&&(a=!0)}else if(B(t)&&!se(t))o=Yr;else if(z(t))if(!isNaN(+t))o=Yr;else{var l=Tr(t);l&&(s=l,o=Qr)}else if(ae(t)){var u=E({},s);u.colorStops=N(t.colorStops,function(e){return{offset:e.offset,color:Tr(e.color)}}),Ir(t)?o=$r:Lr(t)&&(o=ei),s=u}i===0?this.valType=o:(o!==this.valType||o===ti)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=R(n)?n:Ln[n]||ur(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=ni(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?Gr(d,f,r):c&&Wr(d.colorStops,f.colorStops))}if(!o&&r!==ei&&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===Yr?n[l].additiveValue=n[l].value-p:r===Qr?n[l].additiveValue=Hr([],n[l].value,p,-1):ri(r)&&(n[l].additiveValue=r===Xr?Hr([],n[l].value,p,-1):Ur([],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===Qr,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?ii: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===Xr?Br(g,f[r],p[r],h):Vr(g,f[r],p[r],h);else if(ni(i)){var _=f[r],v=p[r],y=i===$r;e[s]={type:y?`linear`:`radial`,x:zr(_.x,v.x,h),y:zr(_.y,v.y,h),colorStops:N(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:zr(e.offset,n.offset,h),color:qr(Br([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=zr(_.x2,v.x2,h),e[s].y2=zr(_.y2,v.y2,h)):e[s].r=zr(_.r,v.r,h)}else if(c)Br(g,f[r],p[r],h),n||(e[s]=qr(g));else{var b=zr(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===Yr?e[n]=e[n]+r:t===Qr?(Tr(e[n],ii),Hr(ii,ii,r,1),e[n]=qr(ii)):t===Xr?Hr(e[n],e[n],r,1):t===Zr&&Ur(e[n],e[n],r,1)},e}(),oi=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){C(`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,P(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===Qr&&c&&(c=qr(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Kr(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Kr(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 dr({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 N(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]=Kr(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=P(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}(),si=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){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),ci=1;K.hasGlobalWindow&&(ci=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var li=ci,ui=.4,di=`#333`,fi=`#ccc`,pi=`#eee`,mi=`__zr_normal__`,hi=Nn.concat([`ignore`]),gi=ee(Nn,function(e,t){return e[t]=!0,e},{ignore:!1}),_i={},vi=new J(0,0,0,0),yi=[],bi=function(){function e(e){this.id=S(),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;break}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=vi,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(_i,n,d):Bt(_i,n,d),i.x=_i.x,i.y=_i.y,a=_i.align,o=_i.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=zt(f[0],d.width),m=zt(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(yi),ct(yi,yi),J.copy(_,d),_.applyTransform(yi)}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()?fi:di},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Tr(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,Mr(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||{},E(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(V(e))for(var n=P(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,hi)},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(mi,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===mi;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(O(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){C(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),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=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),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=O(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=O(r,e),a=O(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];E(t,i),i.textConfig&&(n||={},E(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=E({},r?this.textConfig:n.textConfig),E(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<hi.length;l++){var u=hi[l],d=i&&gi[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)&&e!==this){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;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new Fn,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},E(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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=new oi(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},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=O(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){xi(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){xi(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=xi(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=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}();A(bi,si),A(bi,Fn);function xi(e,t,n,r,i){n||={};var a=[];Di(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 Si(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ci(e){return j(e[0])}function wi(e,t,n){if(j(t[n]))if(j(e[n])||(e[n]=[]),U(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Si(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ci(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?Si(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Si(a,i,o);a.length=i.length}else e[n]=t[n]}function Ti(e,t){return e===t||j(e)&&j(t)&&Ei(e,t)}function Ei(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 Di(e,t,n,r,i,a,o,s){for(var c=P(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!V(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(V(v)&&!j(v)&&!ae(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Di(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=O(m,x);m.splice(S,1)}}if(i.force||(h=te(h,function(e){return!Ti(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[_]=Kr(n[_]),wi(n,r,_)}}var x=new oi(n,!1,!1,d?te(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)}}var Oi=bi,ki=`__zr_style_`+Math.round(Math.random()*10),Ai={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},ji={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ai[ki]=!0;var Mi=[`z`,`z2`,`invisible`],Ni=[`invisible`],Pi=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=P(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(){},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&&Li(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:E(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 Se(Ai,e)},t.prototype.useStyle=function(e){e[ki]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[ki]},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,Mi)},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;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=P(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=P(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Ni:Mi,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},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 E(e,t),e},t.prototype.getAnimationStyleProps=function(){return ji},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=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(Oi),Fi=new J(0,0,0,0),Ii=new J(0,0,0,0);function Li(e,t,n){return Fi.copy(e.getBoundingRect()),e.transform&&Fi.applyTransform(e.transform),Ii.width=t,Ii.height=n,!Fi.intersect(Ii)}var Ri=Pi,zi=Math.min,Bi=Math.max,Vi=Math.sin,Hi=Math.cos,Ui=Math.PI*2,Wi=un(),Gi=un(),Ki=un();function qi(e,t,n,r,i,a){i[0]=zi(e,n),i[1]=zi(t,r),a[0]=Bi(e,n),a[1]=Bi(t,r)}var Ji=[],Yi=[];function Xi(e,t,n,r,i,a,o,s,c,l){var u=Qn,d=Yn,f=u(e,n,i,o,Ji);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,Ji[p]);c[0]=zi(m,c[0]),l[0]=Bi(m,l[0])}f=u(t,r,a,s,Yi);for(var p=0;p<f;p++){var h=d(t,r,a,s,Yi[p]);c[1]=zi(h,c[1]),l[1]=Bi(h,l[1])}c[0]=zi(e,c[0]),l[0]=Bi(e,l[0]),c[0]=zi(o,c[0]),l[0]=Bi(o,l[0]),c[1]=zi(t,c[1]),l[1]=Bi(t,l[1]),c[1]=zi(s,c[1]),l[1]=Bi(s,l[1])}function Zi(e,t,n,r,i,a,o,s){var c=ar,l=nr,u=Bi(zi(c(e,n,i),1),0),d=Bi(zi(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=zi(e,i,f),o[1]=zi(t,a,p),s[0]=Bi(e,i,f),s[1]=Bi(t,a,p)}function Qi(e,t,n,r,i,a,o,s,c){var l=Cn,u=wn,d=Math.abs(i-a);if(d%Ui<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Wi[0]=Hi(i)*n+e,Wi[1]=Vi(i)*r+t,Gi[0]=Hi(a)*n+e,Gi[1]=Vi(a)*r+t,l(s,Wi,Gi),u(c,Wi,Gi),i%=Ui,i<0&&(i+=Ui),a%=Ui,a<0&&(a+=Ui),i>a&&!o?a+=Ui:i<a&&o&&(i+=Ui),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Ki[0]=Hi(p)*n+e,Ki[1]=Vi(p)*r+t,l(s,Ki,s),u(c,Ki,c))}var Y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$i=[],ea=[],ta=[],na=[],ra=[],ia=[],aa=Math.min,oa=Math.max,sa=Math.cos,ca=Math.sin,la=Math.abs,ua=Math.PI,da=ua*2,fa=typeof Float32Array<`u`,pa=[];function ma(e){return Math.round(e/ua*1e8)/1e8%2*ua}function ha(e,t){var n=ma(e[0]);n<0&&(n+=da);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=da?i=n+da:t&&n-i>=da?i=n-da:!t&&n>i?i=n+(da-ma(n-i)):t&&n<i&&(i=n-(da-ma(i-n))),e[0]=n,e[1]=i}var ga=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=la(n/li/e)||0,this._uy=la(n/li/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(Y.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=la(e-this._xi),r=la(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Y.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(Y.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(Y.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(),pa[0]=r,pa[1]=i,ha(pa,a),r=pa[0],i=pa[1];var o=i-r;return this.addData(Y.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=sa(i)*n+e,this._yi=ca(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(Y.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Y.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)&&fa&&(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(fa&&(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,fa&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){ta[0]=ta[1]=ra[0]=ra[1]=Number.MAX_VALUE,na[0]=na[1]=ia[0]=ia[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 Y.M:t=r=e[a++],n=i=e[a++],ra[0]=r,ra[1]=i,ia[0]=r,ia[1]=i;break;case Y.L:qi(t,n,e[a],e[a+1],ra,ia),t=e[a++],n=e[a++];break;case Y.C:Xi(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],ra,ia),t=e[a++],n=e[a++];break;case Y.Q:Zi(t,n,e[a++],e[a++],e[a],e[a+1],ra,ia),t=e[a++],n=e[a++];break;case Y.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=sa(f)*u+c,i=ca(f)*d+l),Qi(c,l,u,d,f,p,m,ra,ia),t=sa(p)*u+c,n=ca(p)*d+l;break;case Y.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];qi(r,i,r+h,i+g,ra,ia);break;case Y.Z:t=r,n=i;break}Cn(ta,ta,ra),wn(na,na,ia)}return a===0&&(ta[0]=ta[1]=na[0]=na[1]=0),new J(ta[0],ta[1],na[0]-ta[0],na[1]-ta[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 Y.M:i=o=e[d++],a=s=e[d++];break;case Y.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(la(_)>n||la(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Y.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=tr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Y.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=cr(i,a,y,b,h,g,10),i=h,a=g;break;case Y.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=sa(D)*T+C,s=ca(D)*E+w),m=oa(T,E)*aa(da,Math.abs(O)),i=sa(k)*T+C,a=ca(k)*E+w;break;case Y.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Y.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}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!==Y.L&&v>0&&(e.lineTo(y,b),v=0),S){case Y.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Y.L:u=n[x++],d=n[x++];var w=la(u-c),T=la(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 Y.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],N=n[x++],ee=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;$n(c,k,j,N,D,$i),$n(l,A,M,ee,D,ea),e.bezierCurveTo($i[1],ea[1],$i[2],ea[2],$i[3],ea[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,N,ee),c=N,l=ee;break;case Y.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;or(c,k,j,D,$i),or(l,A,M,D,ea),e.quadraticCurveTo($i[1],ea[1],$i[2],ea[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Y.A:var te=n[x++],P=n[x++],ne=n[x++],F=n[x++],I=n[x++],L=n[x++],R=n[x++],z=!n[x++],re=ne>F?ne:F,B=la(ne-F)>.001,V=I+L,H=!1;if(f){var E=p[g++];h+E>_&&(V=I+L*(_-h)/E,H=!0),h+=E}if(B&&e.ellipse?e.ellipse(te,P,ne,F,R,I,V,z):e.arc(te,P,re,I,V,z),H)break lo;C&&(o=sa(I)*ne+te,s=ca(I)*F+P),c=sa(V)*ne+te,l=ca(V)*F+P;break;case Y.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var U=n[x++],ie=n[x++];if(f){var E=p[g++];if(h+E>_){var ae=_-h;e.moveTo(u,d),e.lineTo(u+aa(ae,U),d),ae-=U,ae>0&&e.lineTo(u+U,d+aa(ae,ie)),ae-=ie,ae>0&&e.lineTo(u+oa(U-ae,0),d+ie),ae-=U,ae>0&&e.lineTo(u,d+oa(ie-ae,0));break lo}h+=E}e.rect(u,d,U,ie);break;case Y.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=Y,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}();function _a(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 va(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:er(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function ya(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:sr(e,t,n,r,i,a,s,c,null)<=l/2}var ba=Math.PI*2;function xa(e){return e%=ba,e<0&&(e+=ba),e}var Sa=Math.PI*2;function Ca(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)%Sa<1e-4)return!0;if(a){var d=r;r=xa(i),i=xa(d)}else r=xa(r),i=xa(i);r>i&&(i+=Sa);var f=Math.atan2(c,s);return f<0&&(f+=Sa),f>=r&&f<=i||f+Sa>=r&&f+Sa<=i}function wa(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 Ta=ga.CMD,Ea=Math.PI*2,Da=1e-4;function Oa(e,t){return Math.abs(e-t)<Da}var ka=[-1,-1,-1],Aa=[-1,-1];function ja(){var e=Aa[0];Aa[0]=Aa[1],Aa[1]=e}function Ma(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=Zn(t,r,a,s,l,ka);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=ka[h],_=g===0||g===1?.5:1;Yn(e,n,i,o,g)<c||(f<0&&(f=Qn(t,r,a,s,Aa),Aa[1]<Aa[0]&&f>1&&ja(),p=Yn(t,r,a,s,Aa[0]),f>1&&(m=Yn(t,r,a,s,Aa[1]))),f===2?g<Aa[0]?d+=p<t?_:-_:g<Aa[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Aa[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Na(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=ir(t,r,a,s,ka);if(c===0)return 0;var l=ar(t,r,a);if(l>=0&&l<=1){for(var u=0,d=nr(t,r,a,l),f=0;f<c;f++){var p=ka[f]===0||ka[f]===1?.5:1,m=nr(e,n,i,ka[f]);m<o||(ka[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=ka[0]===0||ka[0]===1?.5:1,m=nr(e,n,i,ka[0]);return m<o?0:a<t?p:-p}}function Pa(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);ka[0]=-c,ka[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=Ea-1e-4){r=0,i=Ea;var u=a?1:-1;return o>=ka[0]+e&&o<=ka[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Ea,i+=Ea);for(var f=0,p=0;p<2;p++){var m=ka[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=Ea+h),(h>=r&&h<=i||h+Ea>=r&&h+Ea<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Fa(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===Ta.M&&m>1&&(n||(s+=wa(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case Ta.M:u=a[m++],d=a[m++],c=u,l=d;break;case Ta.L:if(n){if(_a(c,l,a[m],a[m+1],t,r,i))return!0}else s+=wa(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Ta.C:if(n){if(va(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Ma(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 Ta.Q:if(n){if(ya(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Na(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case Ta.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+=wa(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Ca(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Pa(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case Ta.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(_a(u,d,f,d,t,r,i)||_a(f,d,f,p,t,r,i)||_a(f,p,u,p,t,r,i)||_a(u,p,u,d,t,r,i))return!0}else s+=wa(f,d,f,p,r,i),s+=wa(u,p,u,d,r,i);break;case Ta.Z:if(n){if(_a(c,l,u,d,t,r,i))return!0}else s+=wa(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Oa(l,d)&&(s+=wa(c,l,u,d,r,i)||0),s!==0}function Ia(e,t,n){return Fa(e,0,!1,t,n)}function La(e,t,n,r){return Fa(e,t,!0,n,r)}var Ra=D({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ai),za={style:D({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ji.style)},Ba=Nn.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),Va=function(e){n(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<Ba.length;++s)i[Ba[s]]=this[Ba[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=P(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?E(this.style,o):this.useStyle(o):a===`shape`?E(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(z(e)){var t=Nr(e,0);return t>.5?di:t>.2?pi:fi}else if(e)return fi}return di},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(z(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Nr(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 ga(!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)),La(a,o/s,e,t)))return!0}if(this.hasFill())return Ia(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:E(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return Se(Ra,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=E({},this.shape))},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;if(n&&n.shape?a?i?c=n.shape:(c=E({},r.shape),E(c,n.shape)):(c=E({},i?this.shape:r.shape),E(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=E({},this.shape);for(var l={},u=P(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 za},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var r=function(t){n(r,t);function r(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return r.prototype.getDefaultStyle=function(){return w(e.style)},r.prototype.getDefaultShape=function(){return w(e.shape)},r}(t);for(var i in e)typeof e[i]==`function`&&(r.prototype[i]=e[i]);return r},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}(Ri),Ha=D({strokeFirst:!0,font:r,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},Ra),Ua=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return ln(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return Se(Ha,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=sn(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Ri);Ua.prototype.type=`tspan`;var Wa=Ua,Ga=D({x:0,y:0},Ai),Ka={style:D({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ji.style)};function qa(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var Ja=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Se(Ga,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=qa(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 Ka},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}(Ri);Ja.prototype.type=`image`;var Ya=Ja;function Xa(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)}var Za=Math.round;function Qa(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?(Za(r*2)===Za(i*2)&&(e.x1=e.x2=eo(r,s,!0)),Za(a*2)===Za(o*2)&&(e.y1=e.y2=eo(a,s,!0)),e):e}}function $a(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=eo(r,s,!0),e.y=eo(i,s,!0),e.width=Math.max(eo(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(eo(i+o,s,!1)-e.y,o===0?0:1),e):e}}function eo(e,t,n){if(!t)return e;var r=Za(e*2);return(r+Za(t))%2==0?r/2:(r+(n?1:-1))/2}var to=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),no={},ro=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new to},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=$a(no,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?Xa(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Va);ro.prototype.type=`rect`;var io=ro,ao={fill:`#000`},oo=2,so={},co={style:D({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},ji.style)},lo=function(e){n(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=ao,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,_o(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||ao},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return E(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=P(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},E(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return co},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`;nn(so,r.overflowRect,i,a,o,s),i=so.baseX,a=so.baseY;var c=Kt(So(e),e,so.outerWidth,so.outerHeight),l=Co(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=Lt(a,c.contentHeight,s);if(l||n){var _=It(i,f,o),v=Lt(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=xo(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=bo(`fill`in e?e.fill:(x=!0,r.fill)),C=yo(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=oo,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(Wa),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,ho(D,e),g+=m,E.setBoundingRect(cn(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;nn(so,t.overflowRect,i,a,n,r),i=so.baseX,a=so.baseY;var o=Xt(So(e),e,so.outerWidth,so.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=It(i,c,n),f=Lt(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Co(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&&Co(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=xo(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(Wa),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=bo(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=yo(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=oo,_=!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=le(s.opacity,t.opacity,1),ho(p,s),y&&(p.lineWidth=le(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(cn(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(io),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(Ya),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=le(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return go(e)&&(t=[e.fontStyle,e.fontWeight,mo(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&pe(t)||e.textFont||e.font},t}(Ri),uo={left:!0,right:1,center:1},fo={top:1,bottom:1,middle:1},po=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function mo(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function ho(e,t){for(var n=0;n<po.length;n++){var r=po[n],i=t[r];i!=null&&(e[r]=i)}}function go(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function _o(e){return vo(e),M(e.rich,vo),e}function vo(e){if(e){e.font=lo.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||uo[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||fo[n]?n:`top`,e.padding&&=de(e.padding)}}function yo(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function bo(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function xo(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function So(e){var t=e.text;return t!=null&&(t+=``),t}function Co(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var wo=lo,To=1e-4,Eo=20;function Do(e){return e.replace(/^\s+|\s+$/g,``)}var Oo=Math.min,ko=Math.max,Ao=Math.abs;function jo(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 Mo=No;function No(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%`;break}return Po(e,t,n)}function Po(e,t,n){return z(e)?Do(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Fo(e,t,n){return t??=10,t=Math.min(Math.max(0,t),Eo),e=(+e).toFixed(t),n?e:+e}function Io(e){return e.sort(function(e,t){return e-t}),e}function Lo(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return Ro(e)}function Ro(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(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function zo(e,t){var n=Math.max(Lo(e),Lo(t)),r=e+t;return n>Eo?r:Fo(r,n)}function Bo(e){var t=Math.PI*2;return(e%t+t)%t}function Vo(e){return e>-To&&e<To}var Ho=/^(?:(\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 Uo(e){if(e instanceof Date)return e;if(z(e)){var t=Ho.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))}else 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)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function Wo(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function Go(e){var t=parseFloat(e);return t==e&&(t!==0||!z(e)||e.indexOf(`x`)<=0)?t:NaN}function Ko(e){return!isNaN(Go(e))}function qo(){return Math.round(Math.random()*9)}function Jo(e,t){return t===0?e:Jo(t,e%t)}function Yo(e,t){return e==null?t:t==null?e:e*t/Jo(e,t)}var Xo=`[ECharts] `,Zo={},Qo=typeof console<`u`&&console.warn&&console.log;function $o(e,t,n){if(Qo){if(n){if(Zo[t])return;Zo[t]=!0}console[e](Xo+t)}}function es(e,t){$o(`error`,e,t)}function ts(e){throw Error(e)}var ns=`series\0`,rs=`\0_ec_\0`;function is(e){return e instanceof Array?e:e==null?[]:[e]}function as(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 os=`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 ss(e){return V(e)&&!L(e)&&!(e instanceof Date)?e.value:e}function cs(e){return V(e)&&!(e instanceof Array)}function ls(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=G();M(t,function(e,n){if(!V(e)){t[n]=null;return}});var s=us(e,o,n);return(r||i)&&ds(s,e,o,t),r&&fs(s,t),r||i?ps(s,t,i):a&&ms(s,t),hs(s),s}function us(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 ds(e,t,n,r){M(r,function(i,a){if(!(!i||i.id==null)){var o=_s(i.id),s=n.get(o);if(s!=null){var c=e[s];fe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function fs(e,t){M(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)&&gs(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function ps(e,t,n){M(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||bs(r.existing)||r.existing&&t.id!=null&&!gs(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function ms(e,t){M(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function hs(e){var t=G();M(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(e,function(e){var n=e.newOption;fe(!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={})}),M(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(V(i)){if(a.name=i.name==null?r?r.name:ns+n:_s(i.name),r)a.id=_s(r.id);else if(i.id!=null)a.id=_s(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 gs(e,t,n){var r=vs(t[e],null),i=vs(n[e],null);return r!=null&&i!=null&&r===i}function _s(e){return vs(e,``)}function vs(e,t){return e==null?t:z(e)?e:B(e)||re(e)?e+``:t}function ys(e){var t=e.name;return!!(t&&t.indexOf(ns))}function bs(e){return e&&e.id!=null&&_s(e.id).indexOf(rs)===0}function xs(e,t,n){M(e,function(e){var r=e.newOption;V(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=Ss(t,r,e.existing,n))})}function Ss(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function Cs(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=vs(e[r].seriesId,null);if(a==null)return;for(var o=is(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function ws(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return L(t.dataIndex)?N(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return L(t.name)?N(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function X(){var e=`__ec_inner_`+ Ts++;return function(t){return t[e]||(t[e]={})}}var Ts=qo();function Es(e,t,n){var r=Ds(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=ks(e,r,t,{useDefault:s===r,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Ds(e,t){var n;if(z(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=G(),a={},o=!1;return M(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&&O(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Os={useDefault:!0,enableAll:!1,enableNone:!1};function ks(e,t,n,r){r||=Os;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;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function As(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function js(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Ms(e){return e===`auto`?K.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):!1},e})();var Z=X(),Ns=function(e,t,n,r){if(r){var i=Z(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Z(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Ps=1,Fs={},Is=X(),Ls=X(),Rs=[`emphasis`,`blur`,`select`],zs=[`normal`,`emphasis`,`blur`,`select`],Bs=`highlight`,Vs=`downplay`,Hs=`select`,Us=`unselect`,Ws=`toggleSelect`,Gs=`selectchanged`;function Ks(e){return e!=null&&e!==`none`}function qs(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Js(e){qs(e,`emphasis`,2)}function Ys(e){e.hoverState===2&&qs(e,`normal`,0)}function Xs(e){qs(e,`blur`,1)}function Zs(e){e.hoverState===1&&qs(e,`normal`,0)}function Qs(e){e.selected=!0}function $s(e){e.selected=!1}function ec(e,t,n){t(e,n)}function tc(e,t,n){ec(e,t,n),e.isGroup&&e.traverse(function(e){ec(e,t,n)})}function nc(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 rc(e,t,n,r){var i=n&&O(n,`select`)>=0,a=!1;if(e instanceof Va){var o=Is(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Ks(s)||Ks(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=E({},r),l=E({},l),l.fill=s):!Ks(l.fill)&&Ks(s)?(a=!0,r=E({},r),l=E({},l),l.fill=Fr(s)):!Ks(l.stroke)&&Ks(c)&&(a||(r=E({},r),l=E({},l)),l.stroke=Fr(c)),r.style=l}}if(r&&r.z2==null){a||(r=E({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function ic(e,t,n){if(n&&n.z2==null){n=E({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function ac(e,t,n){var r=O(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:nc(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=E({},n),o=E({opacity:r?i:a.opacity*.1},o),n.style=o),n}function oc(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return rc(this,e,t,n);if(e===`blur`)return ac(this,e,n);if(e===`select`)return ic(this,e,n)}return n}function sc(e){e.stateProxy=oc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=oc),n&&(n.stateProxy=oc)}function cc(e,t){!gc(e,t)&&!e.__highByOuter&&tc(e,Js)}function lc(e,t){!gc(e,t)&&!e.__highByOuter&&tc(e,Ys)}function uc(e,t){e.__highByOuter|=1<<(t||0),tc(e,Js)}function dc(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&tc(e,Ys)}function fc(e){tc(e,Xs)}function pc(e){tc(e,Zs)}function mc(e){tc(e,Qs)}function hc(e){tc(e,$s)}function gc(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function _c(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Ls(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Zs(e)}),o&&n.push(i)),a.isBlured=!1}),M(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function vc(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&&pc(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`||Xs(e)}),j(t))a(e.getData(),t);else if(V(t))for(var u=P(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Ls(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 yc(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){Ls(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Xs(e)})}}}function bc(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=ws(i,t);a=(L(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=Z(o);vc(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&vc(r,u,d,n)}}}function xc(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(Z(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function Sc(e,t,n){var r=Z(e),i=xc(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&yc(r.componentMainType,r.componentIndex,n),M(a,function(e){return cc(e,t)})):(vc(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&yc(r.componentMainType,r.componentIndex,n),cc(e,t))}function Cc(e,t,n){_c(n);var r=Z(e),i=xc(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?M(i,function(e){return lc(e,t)}):lc(e,t)}function wc(e,t,n){if(Pc(t)){var r=t.dataType,i=ws(e.getData(r),t);L(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function Tc(e){M(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?mc(t):hc(t)})})}function Ec(e){var t=[];return e.eachSeries(function(e){M(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 Dc(e,t,n){jc(e,!0),tc(e,sc),Ac(e,t,n)}function Oc(e){jc(e,!1)}function kc(e,t,n,r){r?Oc(e):Dc(e,t,n)}function Ac(e,t,n){var r=Z(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function jc(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 Mc(e){return!!(e&&e.__highDownDispatcher)}function Nc(e){var t=Fs[e];return t==null&&Ps<=32&&(t=Fs[e]=Ps++),t}function Pc(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Fc(e){var t=e.type;return t===`highlight`||t===`downplay`}function Ic(e){var t=Is(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 Lc=ga.CMD,Rc=[[],[],[]],zc=Math.sqrt,Bc=Math.atan2;function Vc(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Lc.M,d=Lc.C,f=Lc.L,p=Lc.R,m=Lc.A,h=Lc.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=zc(t[0]*t[0]+t[1]*t[1]),y=zc(t[2]*t[2]+t[3]*t[3]),b=Bc(-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++],Sn(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],Sn(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=Rc[c];x[0]=n[o++],x[1]=n[o++],Sn(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Hc=Math.sqrt,Uc=Math.sin,Wc=Math.cos,Gc=Math.PI;function Kc(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function qc(e,t){return(e[0]*t[0]+e[1]*t[1])/(Kc(e)*Kc(t))}function Jc(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(qc(e,t))}function Yc(e,t,n,r,i,a,o,s,c,l,u){var d=c*(Gc/180),f=Wc(d)*(e-n)/2+Uc(d)*(t-r)/2,p=-1*Uc(d)*(e-n)/2+Wc(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Hc(m),s*=Hc(m));var h=(i===a?-1:1)*Hc((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+Wc(d)*g-Uc(d)*_,y=(t+r)/2+Uc(d)*g+Wc(d)*_,b=Jc([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Jc(x,S);if(qc(x,S)<=-1&&(C=Gc),qc(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Gc*1e6)/1e6;C=Gc*2+w%2*Gc}u.addData(l,v,y,o,s,b,C,d,a)}var Xc=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Zc=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Qc(e){var t=new ga;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=ga.CMD,c=e.match(Xc);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(Zc)||[],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,Yc(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,Yc(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}var $c=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(Va);function el(e){return e.setData!=null}function tl(e,t){var n=Qc(e),r=E({},t);return r.buildPath=function(e){var t=el(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){Vc(n,e),this.dirtyShape()},r}function nl(e,t){return new $c(tl(e,t))}function rl(e,t){var r=tl(e,t);return function(e){n(t,e);function t(t){var n=e.call(this,t)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return t}($c)}function il(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 Va(t);return o.createPathProxy(),o.buildPath=function(e){if(el(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var al=function(e){n(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){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),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=O(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=O(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}(Oi);al.prototype.type=`group`;var ol=al,sl=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),cl=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new sl},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}(Va);cl.prototype.type=`circle`;var ll=cl,ul=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),dl=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ul},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}(Va);dl.prototype.type=`ellipse`;var fl=dl,pl=Math.PI,ml=pl*2,hl=Math.sin,gl=Math.cos,_l=Math.acos,vl=Math.atan2,yl=Math.abs,bl=Math.sqrt,xl=Math.max,Sl=Math.min,Cl=1e-4;function wl(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<Cl))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function Tl(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/bl(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)*bl(xl(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 El(e){var t;if(L(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 Dl(e,t){var n,r=xl(t.r,0),i=xl(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=yl(c-s),p=f>ml&&f%ml;if(p>Cl&&(f=p),!(r>Cl))e.moveTo(l,u);else if(f>ml-Cl)e.moveTo(l+r*gl(s),u+r*hl(s)),e.arc(l,u,r,s,c,!d),i>Cl&&(e.moveTo(l+i*gl(c),u+i*hl(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*gl(s),j=r*hl(s),M=i*gl(c),N=i*hl(c),ee=f>Cl;if(ee){var te=t.cornerRadius;te&&(n=El(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=yl(r-i)/2;if(v=Sl(P,g),y=Sl(P,_),b=Sl(P,m),x=Sl(P,h),w=S=xl(v,y),T=C=xl(b,x),(S>Cl||C>Cl)&&(E=r*gl(c),D=r*hl(c),O=i*gl(s),k=i*hl(s),f<pl)){var ne=wl(A,j,O,k,E,D,M,N);if(ne){var F=A-ne[0],I=j-ne[1],L=E-ne[0],R=D-ne[1],z=1/hl(_l((F*L+I*R)/(bl(F*F+I*I)*bl(L*L+R*R)))/2),re=bl(ne[0]*ne[0]+ne[1]*ne[1]);w=Sl(S,(r-re)/(z+1)),T=Sl(C,(i-re)/(z-1))}}}if(!ee)e.moveTo(l+A,u+j);else if(w>Cl){var B=Sl(g,w),V=Sl(_,w),H=Tl(O,k,A,j,r,B,d),U=Tl(E,D,M,N,r,V,d);e.moveTo(l+H.cx+H.x0,u+H.cy+H.y0),w<S&&B===V?e.arc(l+H.cx,u+H.cy,w,vl(H.y0,H.x0),vl(U.y0,U.x0),!d):(B>0&&e.arc(l+H.cx,u+H.cy,B,vl(H.y0,H.x0),vl(H.y1,H.x1),!d),e.arc(l,u,r,vl(H.cy+H.y1,H.cx+H.x1),vl(U.cy+U.y1,U.cx+U.x1),!d),V>0&&e.arc(l+U.cx,u+U.cy,V,vl(U.y1,U.x1),vl(U.y0,U.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Cl)||!ee)e.lineTo(l+M,u+N);else if(T>Cl){var B=Sl(m,T),V=Sl(h,T),H=Tl(M,N,E,D,i,-V,d),U=Tl(A,j,O,k,i,-B,d);e.lineTo(l+H.cx+H.x0,u+H.cy+H.y0),T<C&&B===V?e.arc(l+H.cx,u+H.cy,T,vl(H.y0,H.x0),vl(U.y0,U.x0),!d):(V>0&&e.arc(l+H.cx,u+H.cy,V,vl(H.y0,H.x0),vl(H.y1,H.x1),!d),e.arc(l,u,i,vl(H.cy+H.y1,H.cx+H.x1),vl(U.cy+U.y1,U.cx+U.x1),d),B>0&&e.arc(l+U.cx,u+U.cy,B,vl(U.y1,U.x1),vl(U.y0,U.x0),!d))}else e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)}e.closePath()}}}var Ol=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}(),kl=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Ol},t.prototype.buildPath=function(e,t){Dl(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Va);kl.prototype.type=`sector`;var Al=kl,jl=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Ml=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new jl},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}(Va);Ml.prototype.type=`ring`;var Nl=Ml;function Pl(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++)Cn(u,u,e[f]),wn(d,d,e[f]);Cn(u,u,r[0]),wn(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(dn(e[f]));continue}else c=e[f-1],l=e[f+1];pn(a,l,c),gn(a,a,t);var h=vn(m,c),g=vn(m,l),_=h+g;_!==0&&(h/=_,g/=_),gn(o,a,-h),gn(s,a,g);var v=fn([],m,o),y=fn([],m,s);r&&(wn(v,v,u),Cn(v,v,d),wn(y,y,u),Cn(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}function Fl(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Pl(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 Il=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ll=function(e){n(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Il},t.prototype.buildPath=function(e,t){Fl(e,t,!0)},t}(Va);Ll.prototype.type=`polygon`;var Rl=Ll,zl=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Bl=function(e){n(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 zl},t.prototype.buildPath=function(e,t){Fl(e,t,!1)},t}(Va);Bl.prototype.type=`polyline`;var Vl=Bl,Hl={},Ul=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Wl=function(e){n(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 Ul},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Qa(Hl,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}(Va);Wl.prototype.type=`line`;var Gl=Wl,Kl=[],ql=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 Jl(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Xn:Yn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Xn:Yn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?rr:nr)(e.x1,e.cpx1,e.x2,t),(n?rr:nr)(e.y1,e.cpy1,e.y2,t)]}var Yl=function(e){n(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 ql},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&&(or(n,o,i,u,Kl),o=Kl[1],i=Kl[2],or(r,s,a,u,Kl),s=Kl[1],a=Kl[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&($n(n,o,c,i,u,Kl),o=Kl[1],c=Kl[2],i=Kl[3],$n(r,s,l,a,u,Kl),s=Kl[1],l=Kl[2],a=Kl[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Jl(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Jl(this.shape,e,!0);return _n(t,t)},t}(Va);Yl.prototype.type=`bezier-curve`;var Xl=Yl,Zl=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}(),Ql=function(e){n(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 Zl},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}(Va);Ql.prototype.type=`arc`;var $l=Ql,eu=function(e){n(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),Va.prototype.getBoundingRect.call(this)},t}(Va),tu=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),nu=function(e){n(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}(tu),ru=function(e){n(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}(tu),iu=Math.min,au=Math.max,ou=Math.abs,su=[0,0],cu=[0,0],lu=Et(),uu=lu.minTv,du=lu.maxTv,fu=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;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);q.sub(r[0],n[1],n[0]),q.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&&q.set(t,0,0),lu.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!lu.negativeSize&&q.copy(t,r?lu.useDir?lu.dirMinTv:uu:du),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,su),e._getProjMinMaxOnAxis(a,t._corners,cu),lu.negativeSize||su[1]<cu[0]||su[0]>cu[1]){if(i=!1,lu.negativeSize||n)return i;var s=ou(cu[0]-su[1]),c=ou(su[0]-cu[1]);iu(s,c)>du.len()&&(s<c?q.scale(du,o,-s*r):q.scale(du,o,c*r))}else if(!n){var s=ou(cu[0]-su[1]),c=ou(su[0]-cu[1]);(lu.useDir||iu(s,c)<uu.len())&&((s<c||!lu.bidirectional)&&(q.scale(uu,o,s*r),lu.useDir&&lu.calcDirMTV()),(s>=c||!lu.bidirectional)&&(q.scale(uu,o,-c*r),lu.useDir&&lu.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=iu(l,o),s=au(l,s)}n[0]=o+lu.touchThreshold,n[1]=s-lu.touchThreshold,lu.negativeSize=n[1]<n[0]},e}(),pu=[],mu=function(e){n(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,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.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(pu)),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}(Ri);X();function hu(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)),R(d)&&(d=d(n,i)),R(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function gu(e,t,n,r,i,a,o){var s=!1,c;R(i)?(o=a,a=i,i=null):V(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=hu(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 _u(e,t,n,r,i,a){gu(`update`,e,t,n,r,i,a)}function vu(e,t,n,r,i,a){gu(`enter`,e,t,n,r,i,a)}function yu(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 bu(e,t,n,r,i,a){yu(e)||gu(`leave`,e,t,n,r,i,a)}function xu(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),bu(e,{style:{opacity:0}},t,n,r)}function Su(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||xu(e,t,n,r)}):xu(e,t,n,r)}var Cu=e({Arc:()=>$l,BezierCurve:()=>Xl,BoundingRect:()=>J,Circle:()=>ll,CompoundPath:()=>eu,Ellipse:()=>fl,Group:()=>ol,Image:()=>Ya,IncrementalDisplayable:()=>mu,Line:()=>Gl,LinearGradient:()=>nu,OrientedBoundingRect:()=>fu,Path:()=>Va,Point:()=>q,Polygon:()=>Rl,Polyline:()=>Vl,RadialGradient:()=>ru,Rect:()=>io,Ring:()=>Nl,Sector:()=>Al,Text:()=>wo,WH:()=>Eu,XY:()=>Tu,applyTransform:()=>Vu,calcZ2Range:()=>ud,clipPointsByRect:()=>Ku,clipRectByRect:()=>qu,createIcon:()=>Ju,ensureCopyRect:()=>sd,ensureCopyTransform:()=>cd,expandOrShrinkRect:()=>$u,extendPath:()=>ku,extendShape:()=>Du,getShapeClass:()=>ju,getTransform:()=>Bu,groupTransition:()=>Gu,initProps:()=>vu,isBoundingRectAxisAligned:()=>ad,isElementRemoved:()=>yu,lineLineIntersect:()=>Xu,linePolygonIntersect:()=>Yu,makeImage:()=>Nu,makePath:()=>Mu,mergePath:()=>Fu,registerShape:()=>Au,removeElement:()=>bu,removeElementWithFadeOut:()=>Su,resizePath:()=>Iu,retrieveZInfo:()=>ld,setTooltipConfig:()=>nd,subPixelOptimize:()=>zu,subPixelOptimizeLine:()=>Lu,subPixelOptimizeRect:()=>Ru,transformDirection:()=>Hu,traverseElements:()=>id,traverseUpdateZ:()=>dd,updateProps:()=>_u}),wu={},Tu=[`x`,`y`],Eu=[`width`,`height`];function Du(e){return Va.extend(e)}var Ou=rl;function ku(e,t){return Ou(e,t)}function Au(e,t){wu[e]=t}function ju(e){if(wu.hasOwnProperty(e))return wu[e]}function Mu(e,t,n,r){var i=nl(e,t);return n&&(r===`center`&&(n=Pu(n,i.getBoundingRect())),Iu(i,n)),i}function Nu(e,t,n){var r=new Ya({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(Pu(t,i))}}});return r}function Pu(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 Fu=il;function Iu(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Lu(e,t){return Qa(e,e,{lineWidth:t}),e}function Ru(e,t){return $a(e,e,t),e}var zu=eo;function Bu(e,t){for(var n=nt([]);e&&e!==t;)it(n,e.getLocalTransform(),n),e=e.parent;return n}function Vu(e,t,n){return t&&!j(t)&&(t=Fn.getLocalTransform(t)),n&&(t=ct([],t)),Sn([],e,t)}function Hu(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ao(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ao(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=Vu(a,t,n),Ao(a[0])>Ao(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Uu(e){return!e.isGroup}function Wu(e){return e.shape!=null}function Gu(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){Uu(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Wu(e)&&(t.shape=w(e.shape)),t}var a=r(e);t.traverse(function(e){if(Uu(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),_u(e,r,n,Z(e).dataIndex)}}})}function Ku(e,t){return N(e,function(e){var n=e[0];n=ko(n,t.x),n=Oo(n,t.x+t.width);var r=e[1];return r=ko(r,t.y),r=Oo(r,t.y+t.height),[n,r]})}function qu(e,t){var n=ko(e.x,t.x),r=Oo(e.x+e.width,t.x+t.width),i=ko(e.y,t.y),a=Oo(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 Ju(e,t,n){var r=E({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),D(i,n),new Ya(r)):Mu(e.replace(`path://`,``),r,n,`center`)}function Yu(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Xu(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Xu(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=Zu(u,d,c,l);if(Qu(f))return!1;var p=e-i,m=t-a,h=Zu(p,m,c,l)/f;if(h<0||h>1)return!1;var g=Zu(p,m,u,d)/f;return!(g<0||g>1)}function Zu(e,t,n,r){return e*r-n*t}function Qu(e){return e<=1e-6&&e>=-1e-6}function $u(e,t,n,r,i){return t==null?e:(B(t)?ed[0]=ed[1]=ed[2]=ed[3]=t:(ed[0]=t[0],ed[1]=t[1],ed[2]=t[2],ed[3]=t[3]),r&&(ed[0]=ko(0,ed[0]),ed[1]=ko(0,ed[1]),ed[2]=ko(0,ed[2]),ed[3]=ko(0,ed[3])),n&&(ed[0]=-ed[0],ed[1]=-ed[1],ed[2]=-ed[2],ed[3]=-ed[3]),td(e,ed,`x`,`width`,3,1,i&&i[0]||0),td(e,ed,`y`,`height`,0,2,i&&i[1]||0),e)}var ed=[0,0,0,0];function td(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=ko(0,Oo(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ao(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function nd(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=z(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&&M(P(c),function(e){we(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:D({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function rd(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function id(e,t){if(e)if(L(e))for(var n=0;n<e.length;n++)rd(e[n],t);else rd(e,t)}function ad(e){return!e||Ao(e[1])<od&&Ao(e[2])<od||Ao(e[0])<od&&Ao(e[3])<od}var od=1e-5;function sd(e,t){return e?J.copy(e,t):t.clone()}function cd(e,t){return t?rt(e||tt(),t):void 0}function ld(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function ud(e){var t=-1/0,n=1/0;rd(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 dd(e,t,n){fd(e,t,n,-1/0)}function fd(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=ko(fd(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=ko(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}Au(`circle`,ll),Au(`ellipse`,fl),Au(`sector`,Al),Au(`ring`,Nl),Au(`polygon`,Rl),Au(`polyline`,Vl),Au(`rect`,io),Au(`line`,Gl),Au(`bezierCurve`,Xl),Au(`arc`,$l);var pd={};function md(e,t){for(var n=0;n<Rs.length;n++){var r=Rs[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 hd(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??=R(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<Rs.length;l++){var u=Rs[l],d=t[u];c[u]=W(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function gd(e,t,n,r){n||=pd;for(var i=e instanceof wo,a=!1,o=0;o<zs.length;o++){var s=t[zs[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new wo,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=hd(n,t),u=t.normal,d=!!u.getShallow(`show`),f=vd(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(yd(u,n,!1));for(var o=0;o<Rs.length;o++){var p=Rs[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=vd(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=yd(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&&(Dd(c).setLabelText=function(e){var r=hd(n,t,e);md(c,r)})}else c&&(c.ignore=!0);e.dirty()}function _d(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<Rs.length;r++){var i=Rs[r];n[i]=e.getModel([i,t])}return n}function vd(e,t,n,r,i){var a={};return bd(a,e,n,r,i),t&&E(a,t),a}function yd(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 bd(e,t,n,r,i){n||=pd;var a=t.ecModel,o=a&&a.option.textStyle,s=xd(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]);Td(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=B(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Od.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=de(_),h.__marginType=Od.textMargin)}Td(e,t,o,null,null,n,r,i,!0,!1)}function xd(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||pd).rich;if(n){t||={};for(var r=P(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}var Sd=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Cd=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],wd=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function Td(e,t,n,r,i,a,o,s,c,l){n=!o&&n||pd;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=W(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(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;_<Sd.length;_++){var v=Sd[_],y=i!==!1&&r?le(t.getShallow(v),r.getShallow(v),n[v]):W(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Cd.length;_++){var v=Cd[_],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;_<wd.length;_++){var v=wd[_],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&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Ed(e,t){var n=t&&t.getModel(`textStyle`);return pe([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 Dd=X(),Od={minMargin:1,textMargin:2},kd=[`textStyle`,`color`],Ad=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],jd=new wo,Md=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(kd):null)},e.prototype.getFont=function(){return Ed({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<Ad.length;n++)t[Ad[n]]=this.getShallow(Ad[n]);return jd.useStyle(t),jd.update(),jd.getBoundingRect()},e}(),Nd=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],Pd=We(Nd),Fd=function(){function e(){}return e.prototype.getLineStyle=function(e){return Pd(this,e)},e}(),Id=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],Ld=We(Id),Rd=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return Ld(this,e,t)},e}(),zd=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){T(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(w(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(!K.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}();Ie(zd),Be(zd),A(zd,Fd),A(zd,Rd),A(zd,Ke),A(zd,Md);var Bd=zd;function Vd(e){return e==null?0:e.length||1}function Hd(e){return e}var Ud=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||Hd,this._newKeyGetter=r||Hd,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=Vd(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=Vd(c),d=Vd(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=Vd(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=Vd(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),Wd=G([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Gd=`original`,Kd=`arrayRows`,qd=`objectRows`,Jd=`keyedColumns`,Yd=`typedArray`,Xd=`unknown`,Zd=`column`,Qd={Must:1,Might:2,Not:3},$d=X();function ef(e){$d(e).datasetMap=G()}function tf(e){if(!e.get(`data`,!0))return ks(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},Os).models[0]}function nf(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:ks(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},Os).models}function rf(e,t){return af(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function af(e,t,n,r,i,a){var o,s=5;if(U(e))return Qd.Not;var c,l;if(r){var u=r[a];V(u)?(c=u.name,l=u.type):z(u)&&(c=u)}if(l!=null)return l===`ordinal`?Qd.Must:Qd.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 Qd.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 Qd.Not;var f=_[c];if(!f||U(f))return Qd.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=ss(g);if(!L(y))return Qd.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=z(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?Qd.Might:Qd.Not;if(t&&e!==`-`)return Qd.Must}return Qd.Not}var of=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&&rf(this,n)===Qd.Must&&(r.type=`ordinal`)}}return e}();function sf(e){return e instanceof of}function cf(e,t,n){n||=df(e);var r=t.seriesLayoutBy,i=ff(e,n,r,t.sourceHeader,t.dimensions);return new of({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:w(t)})}function lf(e){return new of({data:e,sourceFormat:U(e)?Yd:Gd})}function uf(e){return new of({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:w(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function df(e){var t=Xd;if(U(e))t=Yd;else if(L(e)){e.length===0&&(t=Kd);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(L(i)||U(i)){t=Kd;break}else if(V(i)){t=qd;break}}}}else if(V(e)){for(var a in e)if(we(e,a)&&j(e[a])){t=Jd;break}}return t}function ff(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:mf(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?hf(function(e){e!=null&&e!==`-`&&(z(e)?o??=1:o=0)},n,s,10):o=B(r)?r:r?1:0,!i&&o===1&&(i=[],hf(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||=pf(e);else if(t===`keyedColumns`)i||(i=[],M(e,function(e,t){i.push(t)}));else if(t===`original`){var c=ss(e[0]);a=L(c)&&c.length||1}return{startIndex:o,dimensionsDefine:mf(i),dimensionsDetectedCount:a}}function pf(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return P(n)}function mf(e){if(e){var t=G();return N(e,function(e,n){e=V(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 hf(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 gf(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var _f,vf,yf,bf,xf,Sf,Cf=function(){function e(e,t){var n=sf(e)?e:lf(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Sf(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;Sf=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=xf[Pf(o,s)];E(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=F(Df(o,s),null,i,c,l),e.count=F(Af(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};xf=(e={},e[Kd+`_`+Zd]={pure:!0,appendData:i},e[Kd+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[qd]={pure:!0,appendData:i},e[Jd]={pure:!0,appendData:function(e){var t=this._data;M(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Gd]={appendData:i},e[Yd]={persistent:!1,pure:!0,appendData:function(e){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}(),wf=function(e){L(e)||es(`series.data or dataset.source must be an array.`)};_f={},_f[Kd+`_`+Zd]=wf,_f[Kd+`_row`]=wf,_f[qd]=wf,_f[Jd]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??es(`dimension name must not be null/undefined.`)},_f[Gd]=wf;var Tf=function(e,t,n,r){return e[r]},Ef=(vf={},vf[Kd+`_`+Zd]=function(e,t,n,r){return e[r+t]},vf[Kd+`_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},vf[qd]=Tf,vf[Jd]=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},vf[Gd]=Tf,vf);function Df(e,t){return Ef[Pf(e,t)]}var Of=function(e,t,n){return e.length},kf=(yf={},yf[Kd+`_`+Zd]=function(e,t,n){return Math.max(0,e.length-t)},yf[Kd+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},yf[qd]=Of,yf[Jd]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},yf[Gd]=Of,yf);function Af(e,t){return kf[Pf(e,t)]}var jf=function(e,t,n){return e[t]},Mf=(bf={},bf[Kd]=jf,bf[qd]=function(e,t,n){return e[n]},bf[Jd]=jf,bf[Gd]=function(e,t,n){var r=ss(e);return r instanceof Array?r[t]:r},bf[Yd]=jf,bf);function Nf(e){return Mf[e]}function Pf(e,t){return e===`arrayRows`?e+`_`+t:e}function Ff(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 Nf(a)(r,o,s)}else{var c=r;return a===`original`&&(c=ss(r)),c}}}}var If=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 Lf(e,t){var n={},r=n.encode={},i=G(),a=[],o=[],s={};M(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;Rf(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),zf(n.type)&&(a[0]=t),Rf(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}Wd.each(function(e,t){var i=Rf(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=N(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 If(s,t),n}function Rf(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function zf(e){return!(e===`ordinal`||e===`time`)}var Bf=function(){function e(e){this.otherDims={},e!=null&&E(this,e)}return e}();function Vf(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!B(e)&&e!=null&&e!==`-`&&(e=+Uo(e)),e==null||e===``?NaN:Number(e))}G({number:function(e){return parseFloat(e)},time:function(e){return+Uo(e)},trim:function(e){return z(e)?pe(e):e}});var Hf={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){B(t)||ts(``),this._opFn=Hf[e],this._rvalFloat=Go(t)}return e.prototype.evaluate=function(e){return B(e)?this._opFn(e,this._rvalFloat):this._opFn(Go(e),this._rvalFloat)},e})();var Uf=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=B(e)?e:Go(e),r=B(t)?t:Go(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=z(e),s=z(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=Go(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=Go(e)===this._rvalFloat)}return this._isEQ?t:!t},e})();var Wf=`undefined`,Gf=typeof Uint32Array===Wf?Array:Uint32Array,Kf=typeof Uint16Array===Wf?Array:Uint16Array,qf=typeof Int32Array===Wf?Array:Int32Array,Jf=typeof Float64Array===Wf?Array:Float64Array,Yf={float:Jf,int:qf,ordinal:Array,number:Array,time:Jf},Xf;function Zf(e){return e>65535?Gf:Kf}function Qf(){return[1/0,-1/0]}function $f(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function ep(e,t,n,r,i){var a=Yf[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 tp=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=G()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Xf[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],gf(r),this._dimensions=N(t,function(e){return{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 Yf[t||`float`](this._rawCount),this._rawExtent[i]=Qf(),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]=Qf());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){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];ep(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=Xf.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=N(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Qf()),ep(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)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/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=Zf(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(Zf(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=P(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Zf(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]]=Qf();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(Zf(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(Zf(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]=Qf(),d=new(Zf(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++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}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){var t=this._chunks[e],n=Qf();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},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&&ee(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?$f(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=w(this._extent),e._rawExtent=w(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 Vf(e[r],this._dimensions[r])}Xf={arrayRows:e,objectRows:function(e,t,n,r){return Vf(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Vf(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),np=X(),rp={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},ip=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||=sp(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=gf(this.source),n=!cp(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+=rp[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 ap(e){return e instanceof ip}function op(e){for(var t=G(),n=0;n<(e||[]).length;n++){var r=e[n],i=V(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function sp(e){var t=np(e);return t.dimNameMap||=op(e.dimensionsDefine)}function cp(e){return e>30}var lp=V,up=N,dp=typeof Int32Array>`u`?Array:Int32Array,fp=`e\0\0`,pp=-1,mp=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],hp=[`_approximateExtent`],gp,_p,vp,yp,bp,xp,Sp,Cp=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;ap(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=z(u)?new Bf({name:u}):u instanceof Bf?u:new Bf(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]=[]);var m=l;B(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=G();M(a,function(e){h.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(B(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},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 tp&&(i=e),!i){var a=this.dimensions,o=sf(e)||j(e)?new Cf(e,a.length):e;i=new tp;var s=up(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=Lf(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&&Sp(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&&cs(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=vs(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=vs(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)Sp(this,o);gp(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){lp(e)?E(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=vp(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 _p(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))},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 L(e)?r.getValues(up(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],r=n&&n[t];return r==null||isNaN(r)?pp:r},e.prototype.each=function(e,t,n){R(e)&&(n=t,t=e,e=[]);var r=n||this,i=up(yp(e),this._getStoreDimIndex,this);this._store.each(i,r?F(t,r):t)},e.prototype.filterSelf=function(e,t,n){R(e)&&(n=t,t=e,e=[]);var r=n||this,i=up(yp(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?F(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=P(e),i=[];return M(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){R(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){var i=n||r||this,a=up(yp(e),this._getStoreDimIndex,this),o=xp(this);return o._store=this._store.map(a,i?F(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=up(yp(e),this._getStoreDimIndex,this);this._store.modify(a,i?F(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=xp(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=xp(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=xp(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 Bd(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new Ud(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return _p(e,t)},function(e){return _p(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||{},lp(e)?E(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),L(i)?i=i.slice():lp(i)&&(i=E({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,lp(t)?E(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){lp(e)?E(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?E(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){Ns(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){M(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:up(this.dimensions,this._getDimInfo,this),this.hostModel),bp(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];R(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ue(arguments)))})},e.internalField=function(){gp=function(e){var t=e._invertedIndicesMap;M(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new dp(a.categories.length);for(var s=0;s<n.length;s++)n[s]=pp;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},vp=function(e,t,n){return vs(e._getCategory(t,n),null)},_p=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=vp(e,e._idDimIdx,t)),n??=fp+t,n},yp=function(e){return L(e)||(e=e==null?[]:[e]),e},xp=function(t){var n=new e(t._schema?t._schema:up(t.dimensions,t._getDimInfo,t),t.hostModel);return bp(n,t),n},bp=function(e,t){M(mp.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,M(hp,function(n){e[n]=w(t[n])}),e._calculationInfo=E({},t._calculationInfo)},Sp=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=vp(e,i,t)),s==null&&a!=null&&(r[t]=s=vp(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 wp(e,t){sf(e)||(e=lf(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=G(),a=[],o=Ep(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cp(o),c=r===e.dimensionsDefine,l=c?sp(e):op(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=G(u),f=new qf(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=V(n)?n:{name:n},o=new Bf,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=is(e).slice();if(n.length===1&&!z(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);M(n,function(e,n){var i=z(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;M(n,function(e){var t,n,r,i;if(z(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=E({},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=is(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++)}M(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(D(o,i),t,a),o.name==null&&n){var s=n[a];!V(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&D(o.otherDims,r)})}});function g(e,t,n){Wd.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)M(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=Dp(b,i,y),C.coordDimIndex=0,(!_||v<=0)&&(C.isExtraCoord=!0),v--),x(C),C.type==null&&(rf(e,S)===Qd.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type=`ordinal`)}return Tp(a),new ip({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Tp(e){for(var t=G(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function Ep(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return M(t,function(e){var t;V(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function Dp(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 Op={},kp={},Ap=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(Op,!0),this._normalMasterList=n(kp,!1);function n(n,r){var i=[];return M(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){M(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`){Op[e]=t;return}kp[e]=t},e.get=function(e){return kp[e]||Op[e]},e}(),jp={coord:1,coord2:2},Mp=G();function Np(e){var t=e.getShallow(`coord`,!0),n=jp.coord;if(t==null){var r=Mp.get(e.type);r&&r.getCoord2&&(n=jp.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var Pp=Ap,Fp=Math.round(Math.random()*10);function Ip(e){return[e||``,Fp++].join(`_`)}function Lp(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ne(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ne(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Rp(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(M(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]),M(u.successor,d?p:f)}M(c,function(){throw Error(``)});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 M(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),M(c,function(e){O(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);O(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 M(e,function(e){O(t,e)>=0&&n.push(e)}),n}}function zp(e,t){return T(T({},e,!0),t,!0)}var Bp=Math.log(2);function Vp(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)/Bp);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]*Vp(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Hp(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=Vp(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)*Vp(n,7,o===0?1: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 Up=`___zrEVENTSAVED`,Wp=[];function Gp(e,t,n,r,i){return qp(Wp,t,r,i,!0)&&qp(e,n,Wp[0],Wp[1])}function Kp(e,t){e&&n(e),t&&n(t);function n(e){var t=e[Up];t&&(t.clearMarkers&&t.clearMarkers(),delete e[Up])}}function qp(e,t,n,r,i){if(t.getBoundingClientRect&&K.domSupported&&!Xp(t)){var a=t[Up]||(t[Up]={}),o=Yp(Jp(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function Jp(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(){M(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function Yp(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?Hp(s,o):Hp(o,s))}function Xp(e){return e.nodeName.toUpperCase()===`CANVAS`}var Zp=/([&<>"'])/g,Qp={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function $p(e){return e==null?``:(e+``).replace(Zp,function(e,t){return Qp[t]})}var em={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:`. `}}}},tm={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:``}}}},nm=`ZH`,rm=`EN`,im=rm,am={},om={},sm=K.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||im).toUpperCase().indexOf(nm)>-1?nm:im}():im;function cm(e,t){e=e.toUpperCase(),om[e]=new Bd(t),am[e]=t}function lm(e){if(z(e)){var t=am[e.toUpperCase()]||{};return e===nm||e===rm?w(t):T(w(t),w(am[im]),!1)}else return T(w(e),w(am[im]),!1)}function um(e){return om[e]}function dm(){return om[im]}cm(rm,em),cm(nm,tm);var fm=null;function pm(){return fm}var mm={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},hm=`{yyyy}-{MM}-{dd}`;hm+``+mm.hour,hm+``+mm.minute,hm+``+mm.second;function gm(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function _m(e,t,n,r){var i=Uo(e),a=i[vm(n)](),o=i[ym(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[bm(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[xm(n)](),d=(u-1)%12+1,f=i[Sm(n)](),p=i[Cm(n)](),m=i[wm(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Bd?r:um(r||sm)||dm()).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,gm(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,gm(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,gm(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,gm(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,gm(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,gm(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,gm(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,gm(m,3)).replace(/{S}/g,m+``)}function vm(e){return e?`getUTCFullYear`:`getFullYear`}function ym(e){return e?`getUTCMonth`:`getMonth`}function bm(e){return e?`getUTCDate`:`getDate`}function xm(e){return e?`getUTCHours`:`getHours`}function Sm(e){return e?`getUTCMinutes`:`getMinutes`}function Cm(e){return e?`getUTCSeconds`:`getSeconds`}function wm(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function Tm(e){if(!Ko(e))return z(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function Em(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 Dm=de;function Om(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&pe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?Uo(e):e;if(isNaN(+c)){if(s)return`-`}else return _m(c,r,n)}if(t===`ordinal`)return re(e)?i(e):B(e)&&a(e)?e+``:`-`;var l=Go(e);return a(l)?Tm(l):re(e)?i(e):typeof e==`boolean`?e+``:`-`}var km=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Am=function(e,t){return`{`+e+(t??``)+`}`};function jm(e,t,n){L(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=km[a];e=e.replace(Am(o),Am(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(Am(km[c],s),n?$p(l):l)}return e}function Mm(e,t){var n=z(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:`+$p(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+$p(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 Nm(e,t){return t||=`transparent`,z(e)?e:V(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Pm(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Fm=M,Im=[`left`,`right`,`top`,`bottom`,`width`,`height`],Lm=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Rm(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 zm=Rm;I(Rm,`vertical`),I(Rm,`horizontal`);function Bm(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 Vm(e,t,n){n=Dm(n||0);var r=t.width,i=t.height,a=Mo(e.left,r),o=Mo(e.top,i),s=Mo(e.right,r),c=Mo(e.bottom,i),l=Mo(e.width,r),u=Mo(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;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}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 Hm={rect:1,point:2};function Um(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=Np(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Hm.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Hm.point,s=u,i=o.dataToPoint(l))}return a??=Hm.rect,a===Hm.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 Wm(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=Vm(D({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 Gm(e){var t=e.layoutMode||e.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function Km(e,t,n){var r=n&&n.ignoreSize;!L(r)&&(r=[r,r]);var i=o(Lm[0],0),a=o(Lm[1],1);c(Lm[0],e,i),c(Lm[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Fm(n,function(t){c[t]=e[t]}),Fm(n,function(e){we(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(!we(a,f)&&we(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){Fm(e,function(e){t[e]=n[e]})}}function qm(e){return Jm({},e)}function Jm(e,t){return t&&e&&Fm(Im,function(n){we(t,n)&&(e[n]=t[n])}),e}var Ym=X(),Xm=function(e){n(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Ip(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Gm(this),r=n?qm(e):{};T(e,t.getTheme().get(this.mainType)),T(e,this.getDefaultOption()),n&&Km(e,r,n)},t.prototype.mergeOption=function(e,t){T(this.option,e,!0);var n=Gm(this);n&&Km(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Fe(e))return e.defaultOption;var t=Ym(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=T(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return ks(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return Bm(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}(Bd);Re(Xm,Bd),Ue(Xm),Lp(Xm),Rp(Xm,Zm);function Zm(e){var t=[];return M(Xm.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=N(t,function(e){return Ne(e).main}),e!==`dataset`&&O(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Qm=Xm,$m=X(),eh=X(),th=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=is(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return ih(this,$m,r,i,e,t,n)},e.prototype.clearColorPalette=function(){ah(this,$m)},e}();function nh(e,t,n,r){return ih(e,eh,is(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function rh(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 ih(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:rh(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 ah(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var oh=/\{@(.+?)\}/g,sh=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&&L(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),R(i))return s.status=t,s.dimensionIndex=r,i(s);if(z(i))return jm(i,s).replace(oh,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=Ff(o,e,i);if(a&&L(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return Ff(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function ch(e){var t,n;return V(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function lh(e){return new uh(e)}var uh=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?this._dueEnd=t._outputDueEnd: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(L(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,this._outputDueEnd=this._settedOutputEnd==null?p:this._settedOutputEnd}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){dh.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:dh.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),L(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){(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}(),dh=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}}(),fh=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 Vf(e,t)},e}();function ph(e,t){var n=new fh,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&ts(``);var o=[],s={},c=e.dimensionsDefine;if(c)M(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(we(s,n)&&ts(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Df(i,Zd);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=F(mh,null,e)),n.cloneRawData=F(hh,null,e),n.count=F(Af(i,Zd),null,r,a,o);var d=Nf(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=F(gh,null,o,s),n.cloneAllDimensionInfo=F(_h,null,o),n}function mh(e){var t=e.sourceFormat;return Sh(t)||ts(``),e.data}function hh(e){var t=e.sourceFormat,n=e.data;if(Sh(t)||ts(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(E({},n[i]));return r}}function gh(e,t,n){if(n!=null){if(B(n)||!isNaN(n)&&!we(t,n))return e[n];if(we(t,n))return t[n]}}function _h(e){return w(e)}var vh=G();function yh(e){e=w(e);var t=e.type,n=``;t||ts(n);var r=t.split(`:`);r.length!==2&&ts(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,vh.set(t,e)}function bh(e,t,n){var r=is(e),i=r.length;i||ts(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=xh(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function xh(e,t,n,r){var i=``;t.length||ts(i),V(e)||ts(i);var a=e.type,o=vh.get(a);o||ts(i);var s=N(t,function(e){return ph(e,o)});return N(is(o.transform({upstream:s[0],upstreamList:s,config:w(e.config)})),function(e,n){var r=``;V(e)||ts(r),e.data||ts(r),Sh(df(e.data))||ts(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:Zd,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Zd,sourceHeader:0,dimensions:e.dimensions};return cf(e.data,i,null)})}function Sh(e){return e===`arrayRows`||e===`objectRows`}var Ch=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(wh(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=U(o)?Yd:Gd,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?[cf(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=[cf(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&Th(``);var i,a=[],o=[];return M(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&Th(``),a.push(t),o.push(e._getVersionSign())}),n?i=bh(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[uf(a[0])]),{sourceList:i,upstreamSignList:o}},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){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];wh(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new tp,o.initData(new Cf(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(wh(e)){var t=tf(e);return t?[t.getSourceManager()]:[]}else return N(nf(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(wh(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 wh(e){return e.mainType===`series`}function Th(e){throw Error(e)}var Eh={color:{},darkColor:{},size:{}},Dh=Eh.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 Oh in E(Dh,{primary:Dh.neutral80,secondary:Dh.neutral70,tertiary:Dh.neutral60,quaternary:Dh.neutral50,disabled:Dh.neutral20,border:Dh.neutral30,borderTint:Dh.neutral20,borderShade:Dh.neutral40,background:Dh.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Dh.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Dh.neutral70,axisLineTint:Dh.neutral40,axisTick:Dh.neutral70,axisTickMinor:Dh.neutral60,axisLabel:Dh.neutral70,axisSplitLine:Dh.neutral15,axisMinorSplitLine:Dh.neutral05}),Dh)if(Dh.hasOwnProperty(Oh)){var kh=Dh[Oh];Oh===`theme`?Eh.darkColor.theme=Dh.theme.slice():Oh===`highlight`?Eh.darkColor.highlight=`rgba(255,231,130,0.4)`:Oh.indexOf(`accent`)===0?Eh.darkColor[Oh]=Ar(kh,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Eh.darkColor[Oh]=Ar(kh,null,function(e){return e*.9},function(e){return 1-e**1.5})}Eh.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Q=Eh,Ah=`line-height:1`;function jh(e){var t=e.lineHeight;return t==null?Ah:`line-height:`+$p(t+``)+`px`}function Mh(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:`+$p(r+``)+`px;color:`+$p(n)+`;font-weight:`+$p(i+``),valueStyle:`font-size:`+$p(o+``)+`px;color:`+$p(a)+`;font-weight:`+$p(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Nh=[0,10,20,30],Ph=[``,`
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./rolldown-runtime.js";function i(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);a(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var a,o=t((()=>{a=function(e,t){return a=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])},a(e,t)}}));function s(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)-d)/f}return t}function c(e){for(var t in h)e[t]&&(h[t]=e[t])}var l,u,d,f,p,m,h,g=t((()=>{l=`sans-serif`,u=`12px `+l,d=20,f=100,p=`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`,m=s(p),h={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:(function(){var e,t;return function(n,r){if(!e){var i=h.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=m[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}}})),_=n({EPSILON:()=>Be,HashMap:()=>Re,RADIAN_TO_DEGREE:()=>ze,assert:()=>fe,bind:()=>W,clone:()=>b,concatArray:()=>_e,createCanvas:()=>Pe,createHashMap:()=>U,createObject:()=>ve,curry:()=>P,defaults:()=>w,disableUserSelect:()=>ye,each:()=>k,eqNaN:()=>se,extend:()=>C,filter:()=>M,find:()=>ee,guid:()=>v,hasOwn:()=>be,indexOf:()=>T,inherits:()=>E,isArray:()=>F,isArrayLike:()=>O,isBuiltInObject:()=>re,isDom:()=>ae,isFunction:()=>I,isGradientObject:()=>B,isImagePatternObject:()=>V,isNumber:()=>R,isObject:()=>z,isPrimitive:()=>he,isRegExp:()=>oe,isString:()=>L,isStringSafe:()=>ne,isTypedArray:()=>ie,keys:()=>N,logError:()=>y,map:()=>A,merge:()=>x,mergeAll:()=>S,mixin:()=>D,noop:()=>xe,normalizeCssArray:()=>de,reduce:()=>j,retrieve:()=>ce,retrieve2:()=>H,retrieve3:()=>le,setAsPrimitive:()=>me,slice:()=>ue,trim:()=>pe});function v(){return Ne++}function y(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function b(e){if(typeof e!=`object`||!e)return e;var t=e,n=we.call(e);if(n===`[object Array]`){if(!he(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=b(e[r])}}else if(Ce[n]){if(!he(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(!Se[n]&&!he(e)&&!ae(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==Me&&(t[o]=b(e[o]));return t}function x(e,t,n){if(!z(t)||!z(e))return n?b(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==Me){var i=e[r],a=t[r];z(a)&&z(i)&&!F(a)&&!F(i)&&!ae(a)&&!ae(i)&&!re(a)&&!re(i)&&!he(a)&&!he(i)?x(i,a,n):(n||!(r in e))&&(e[r]=b(t[r]))}return e}function S(e,t){for(var n=e[0],r=1,i=e.length;r<i;r++)n=x(n,e[r],t);return n}function C(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Me&&(e[n]=t[n]);return e}function w(e,t,n){for(var r=N(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}function T(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 E(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 D(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 w(e,t,n)}function O(e){return!e||typeof e==`string`?!1:typeof e.length==`number`}function k(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Ee)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 A(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.map&&e.map===ke)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 j(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 M(e,t,n){if(!e)return[];if(!t)return ue(e);if(e.filter&&e.filter===De)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 ee(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 N(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 te(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(Oe.call(arguments)))}}function P(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(Oe.call(arguments)))}}function F(e){return Array.isArray?Array.isArray(e):we.call(e)===`[object Array]`}function I(e){return typeof e==`function`}function L(e){return typeof e==`string`}function ne(e){return we.call(e)===`[object String]`}function R(e){return typeof e==`number`}function z(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function re(e){return!!Se[we.call(e)]}function ie(e){return!!Ce[we.call(e)]}function ae(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function B(e){return e.colorStops!=null}function V(e){return e.image!=null}function oe(e){return we.call(e)===`[object RegExp]`}function se(e){return e!==e}function ce(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function H(e,t){return e??t}function le(e,t,n){return e??t??n}function ue(e){var t=[...arguments].slice(1);return Oe.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 fe(e,t){if(!e)throw Error(t)}function pe(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}function me(e){e[Fe]=!0}function he(e){return e[Fe]}function ge(){return Le?new Map:new Ie}function U(e){return new Re(e)}function _e(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 ve(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&C(n,t),n}function ye(e){var t=e.style;t.webkitUserSelect=`none`,t.userSelect=`none`,t.webkitTapHighlightColor=`rgba(0,0,0,0)`,t[`-webkit-touch-callout`]=`none`}function be(e,t){return e.hasOwnProperty(t)}function xe(){}var Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,W,Fe,Ie,Le,Re,ze,Be,G=t((()=>{g(),Se=j([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),Ce=j([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),we=Object.prototype.toString,Te=Array.prototype,Ee=Te.forEach,De=Te.filter,Oe=Te.slice,ke=Te.map,Ae=function(){}.constructor,je=Ae?Ae.prototype:null,Me=`__proto__`,Ne=2311,Pe=h.createCanvas,W=je&&I(je.bind)?je.call.bind(je.bind):te,Fe=`__ec_primitive__`,Ie=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 N(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),Le=typeof Map==`function`,Re=function(){function e(t){var n=F(t);this.data=ge();var r=this;t instanceof e?t.each(i):t&&k(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 Le?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}(),ze=180/Math.PI,Be=2**-52||2**-52}));function Ve(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 He,Ue,K,We=t((()=>{He=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Ue=new(function(){function e(){this.browser=new He,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`?(Ue.wxa=!0,Ue.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?Ue.worker=!0:!Ue.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(Ue.node=!0,Ue.svgSupported=!0):Ve(navigator.userAgent,Ue),K=Ue}));function Ge(e){var t={main:``,sub:``};if(e){var n=e.split(tt);t.main=n[0]||``,t.sub=n[1]||``}return t}function Ke(e){fe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),`componentType "`+e+`" illegal`)}function qe(e){return!!(e&&e[rt])}function Je(e,t){e.$constructor=e,e.extend=function(e){var t=this,n;return Ye(t)?n=function(e){i(t,e);function t(){return e.apply(this,arguments)||this}return t}(t):(n=function(){(e.$constructor||t).apply(this,arguments)},E(n,this)),C(n.prototype,e),n[rt]=!0,n.extend=this.extend,n.superCall=Qe,n.superApply=$e,n.superClass=t,n}}function Ye(e){return I(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Xe(e,t){e.extend=t.extend}function Ze(e){var t=[`__\0is_clz`,it++].join(`_`);e.prototype[t]=!0,e.isInstance=function(e){return!!(e&&e[t])}}function Qe(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function $e(e,t,n){return this.superClass.prototype[t].apply(e,n)}function et(e){var t={};e.registerClass=function(e){var r=e.type||e.prototype.type;if(r){Ke(r),e.prototype.type=r;var i=Ge(r);if(!i.sub)t[i.main]=e;else if(i.sub!==nt){var a=n(i);a[i.sub]=e}}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[nt]&&(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=Ge(e),r=[],i=t[n.main];return i&&i[nt]?k(i,function(e,t){t!==nt&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[Ge(e).main]},e.getAllClassMainTypes=function(){var e=[];return k(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[Ge(e).main];return n&&n[nt]};function n(e){var n=t[e.main];return(!n||!n[nt])&&(n=t[e.main]={},n[nt]=!0),n}}var tt,nt,rt,it,at=t((()=>{o(),G(),tt=`.`,nt=`___EC__COMPONENT__CONTAINER___`,rt=`___EC__EXTENDED_CLASS___`,it=Math.round(Math.random()*10)}));function ot(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&&T(r,s)>=0||i&&T(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var st=t((()=>{G()})),ct,lt,ut,dt=t((()=>{st(),ct=[[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]],lt=ot(ct),ut=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return lt(this,e,t)},e}()})),ft,pt,mt,ht,gt=t((()=>{ft=function(){function e(e){this.value=e}return e}(),pt=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new ft(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}(),mt=function(){function e(e){this._list=new pt,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 ft(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}(),ht=mt}));function _t(e){if(typeof e==`string`){var t=xt.get(e);return t&&t.image}else return e}function vt(e,t,n,r,i){if(e)if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=xt.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?(t=a.image,!bt(t)&&a.pending.push(o)):(t=h.loadImage(e,yt,yt),t.__zrImageSrc=e,xt.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function yt(){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 bt(e){return e&&e.width&&e.height}var xt,St=t((()=>{gt(),g(),xt=new ht(50)})),Ct=n({clone:()=>Mt,copy:()=>Et,create:()=>wt,identity:()=>Tt,invert:()=>jt,mul:()=>Dt,rotate:()=>kt,scale:()=>At,translate:()=>Ot});function wt(){return[1,0,0,1,0,0]}function Tt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Et(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 Dt(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 Ot(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 kt(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 At(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 jt(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}function Mt(e){var t=wt();return Et(t,e),t}var Nt=t((()=>{})),Pt,q,Ft=t((()=>{Pt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),q=Pt}));function It(e,t,n,r,i,a,o,s){var c=Bt(t-n),l=Bt(r-e),u=Rt(c,l),d=Vt[i],f=Vt[1-i],p=Ht[i];t<n||r<e?c<l?(a&&(Yt[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Yt[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=zt(e,n),o[p]=Rt(t,r)-o[d]),a&&(u<Xt[0]||qt.useDir)&&(Xt[0]=Rt(u,Xt[0]),(c<l||!qt.bidirectional)&&(Jt[d]=c,Jt[f]=0,qt.useDir&&qt.calcDirMTV()),(c>=l||!qt.bidirectional)&&(Jt[d]=-l,Jt[f]=0,qt.useDir&&qt.calcDirMTV())))}function Lt(){var e=0,t=new q,n=new q,r={minTv:new q,maxTv:new q,useDir:!1,dirMinTv:new q,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=zt(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 Bt(e)<1e-10}return r}var Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,J,en=t((()=>{Nt(),Ft(),Rt=Math.min,zt=Math.max,Bt=Math.abs,Vt=[`x`,`y`],Ht=[`width`,`height`],Ut=new q,Wt=new q,Gt=new q,Kt=new q,qt=Lt(),Jt=qt.minTv,Yt=qt.maxTv,Xt=[0,0],Zt=function(){function e(t,n,r,i){e.set(this,t,n,r,i)}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=Rt(e.x,this.x),n=Rt(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=zt(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=zt(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,r=e.height/t.height,i=wt();return Ot(i,i,[-t.x,-t.y]),At(i,i,[n,r]),Ot(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&q.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=e.set(Qt,t.x,t.y,t.width,t.height)),n instanceof e||(n=e.set($t,n.x,n.y,n.width,n.height));var s=!!r;qt.reset(i,s);var c=qt.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)&&(Xt[0]=1/0,Xt[1]=0,It(l,u,p,m,0,s,a,o),It(d,f,h,g,1,s,a,o),s&&q.copy(r,_?qt.useDir?qt.dirMinTv:Jt:Yt)),_},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(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},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(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],a=r[3],o=r[4],s=r[5];t.x=n.x*i+o,t.y=n.y*a+s,t.width=n.width*i,t.height=n.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ut.x=Gt.x=n.x,Ut.y=Kt.y=n.y,Wt.x=Kt.x=n.x+n.width,Wt.y=Gt.y=n.y+n.height,Ut.transform(r),Kt.transform(r),Wt.transform(r),Gt.transform(r),t.x=Rt(Ut.x,Wt.x,Gt.x,Kt.x),t.y=Rt(Ut.y,Wt.y,Gt.y,Kt.y);var c=zt(Ut.x,Wt.x,Gt.x,Kt.x),l=zt(Ut.y,Wt.y,Gt.y,Kt.y);t.width=c-t.x,t.height=l-t.y},e}(),Qt=new Zt(0,0,0,0),$t=new Zt(0,0,0,0),J=Zt}));function tn(e){pn||=new ht(100),e||=`12px sans-serif`;var t=pn.get(e);return t||(t={font:e,strWidthCache:new ht(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:h.measureText(`国`,e).width,asciiCharWidth:h.measureText(`a`,e).width},pn.put(e,t)),t}function nn(e){if(!(mn>=hn)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=h.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?mn=hn:i>2&&mn++,t}}function rn(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=nn(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function an(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=h.measureText(t,e.font).width,n.put(t,r)),r}function on(e,t,n,r){var i=an(tn(t),e),a=un(t);return new J(cn(0,i,n),ln(0,a,r),i,a)}function sn(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return on(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=on(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function cn(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function ln(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function un(e){return tn(e).stWideCharWidth}function dn(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function fn(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+=dn(r[0],n.width),l+=dn(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`;break}return e||={},e.x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var pn,mn,hn,gn=t((()=>{en(),gt(),g(),mn=0,hn=5}));function _n(e,t,n,r,i){var a={};return vn(a,e,t,n,r,i),a.text}function vn(e,t,n,r,i,a){if(!n){e.text=``,e.isTruncated=!1;return}var o=(t+``).split(`
|
|
3
|
+
`);a=yn(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)bn(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function yn(e,t,n,r){r||={};var i=C({},r);n=H(n,`...`),i.maxIterations=H(r.maxIterations,2);var a=i.minChar=H(r.minChar,0),o=i.fontMeasureInfo=tn(t),s=o.asciiCharWidth;i.placeholder=H(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=an(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 bn(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r){e.textLine=``,e.isTruncated=!1;return}var o=an(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?xn(t,i,a):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,c),o=an(a,t)}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function xn(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=rn(n,e.charCodeAt(i));return i}function Sn(e,t,n,r){var i=kn(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=un(l),f=H(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?Dn(i,t.font,h,a===`breakAll`,0).lines:[]:i?i.split(`
|
|
5
|
+
`):[],v=_.length*f;if(g??=v,v>g&&p){var y=Math.floor(g/f);m||=_.length>y,_=_.slice(0,y),v=_.length*f}if(i&&u&&h!=null)for(var b=yn(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<_.length;S++)bn(x,_[S],b),_[S]=x.textLine,m||=x.isTruncated;for(var C=g,w=0,T=tn(l),S=0;S<_.length;S++)w=Math.max(an(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}}function Cn(e,t,n,r,i){var a=new In,o=kn(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=Nn.lastIndex=0,h;(h=Nn.exec(o))!=null;){var g=h.index;g>m&&wn(a,o.substring(m,g),t,p),wn(a,h[2],t,p,h[1]),m=Nn.lastIndex}m<o.length&&wn(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,M=j?j[1]+j[3]:0,ee=k.font=A.font||t.font;k.contentHeight=un(ee);var N=H(A.height,k.contentHeight);if(k.innerHeight=N,j&&(N+=j[0]+j[2]),k.height=N,k.lineHeight=le(A.lineHeight,t.lineHeight,N),k.align=A&&A.align||i,k.verticalAlign=A&&A.verticalAlign||`middle`,x&&d!=null&&v+k.lineHeight>d){var te=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<te;break outer}var P=A.width,F=P==null||P===`auto`;if(typeof P==`string`&&P.charAt(P.length-1)===`%`)k.percentWidth=P,_.push(k),k.contentWidth=an(tn(ee),k.text);else{if(F){var I=A.backgroundColor,L=I&&I.image;L&&(L=_t(L),bt(L)&&(k.width=Math.max(k.width,L.width*N/L.height)))}var ne=b&&u!=null?u-D:null;ne!=null&&ne<k.width?!F||ne<M?(k.text=``,k.width=k.contentWidth=0):(vn(S,k.text,ne-M,ee,t.ellipsis,{minChar:t.truncateMinChar}),k.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,k.width=k.contentWidth=an(tn(ee),k.text)):k.contentWidth=an(tn(ee),k.text)}k.width+=M,D+=k.width,A&&(E=Math.max(E,k.lineHeight))}C(T,D,E)}a.outerWidth=a.width=H(u,y),a.outerHeight=a.height=H(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l;for(var w=0;w<_.length;w++){var k=_[w],R=k.percentWidth;k.width=parseInt(R,10)/100*a.width}return a}function wn(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=dn(o.width,r.width)+p;s.length>0&&m+r.accumWidth>r.width&&(u=t.split(`
|
|
6
|
+
`),l=!0),r.accumWidth=m}else{var h=Dn(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,d=h.linesWidths,u=h.lines}}u||=t.split(`
|
|
7
|
+
`);for(var g=tn(c),_=0;_<u.length;_++){var v=u[_],y=new Pn;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!a,typeof o.width==`number`?y.width=o.width:y.width=d?d[_]:an(g,v),!_&&!l){var b=(s[s.length-1]||(s[0]=new Fn)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||a)&&b.push(y)}else s.push(new Fn([y]))}}function Tn(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}function En(e){return Tn(e)?!!Ln[e]:!0}function Dn(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=tn(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p===`
|
|
8
|
+
`){c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0;continue}var m=rn(d,p.charCodeAt(0)),h=r?!1:!En(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 On(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(Rn,cn(n,o,i),ln(r,s,a),o,s),J.intersect(t,Rn,null,zn);var c=zn.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=cn(c.x,c.width,i,!0),e.baseY=ln(c.y,c.height,a,!0)}}function kn(e){return e==null?e=``:e+=``}function An(e){var t=kn(e.text),n=e.font;return jn(e,an(tn(n),t),un(n),null)}function jn(e,t,n,r){var i=new J(cn(e.x||0,t,e.textAlign),ln(e.y||0,n,e.textBaseline),t,n),a=r??(Mn(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Mn(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Nn,Pn,Fn,In,Ln,Rn,zn,Bn=t((()=>{St(),G(),gn(),en(),Nn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,Pn=function(){function e(){}return e}(),Fn=function(){function e(e){this.tokens=[],e&&(this.tokens=e)}return e}(),In=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}(),Ln=j(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{}),Rn=new J(0,0,0,0),zn={outIntersectRect:{},clamp:!0}})),Vn=n({add:()=>Kn,applyTransform:()=>or,clone:()=>Wn,copy:()=>Un,create:()=>Hn,dist:()=>dr,distSquare:()=>fr,distance:()=>nr,distanceSquare:()=>rr,div:()=>Qn,dot:()=>$n,len:()=>Yn,lenSquare:()=>Xn,length:()=>lr,lengthSquare:()=>ur,lerp:()=>ar,max:()=>cr,min:()=>sr,mul:()=>Zn,negate:()=>ir,normalize:()=>tr,scale:()=>er,scaleAndAdd:()=>qn,set:()=>Gn,sub:()=>Jn});function Hn(e,t){return e??=0,t??=0,[e,t]}function Un(e,t){return e[0]=t[0],e[1]=t[1],e}function Wn(e){return[e[0],e[1]]}function Gn(e,t,n){return e[0]=t,e[1]=n,e}function Kn(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function qn(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function Jn(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Yn(e){return Math.sqrt(Xn(e))}function Xn(e){return e[0]*e[0]+e[1]*e[1]}function Zn(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function Qn(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function $n(e,t){return e[0]*t[0]+e[1]*t[1]}function er(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function tr(e,t){var n=Yn(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function nr(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}function rr(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}function ir(e,t){return e[0]=-t[0],e[1]=-t[1],e}function ar(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 or(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 sr(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function cr(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var lr,ur,dr,fr,pr=t((()=>{lr=Yn,ur=Xn,dr=nr,fr=rr}));function mr(e){return e>_r||e<-_r}function hr(e,t){for(var n=0;n<Cr.length;n++){var r=Cr[n];e[r]=t[r]}}var gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr=t((()=>{Nt(),pr(),gr=Tt,_r=5e-5,vr=[],yr=[],br=wt(),xr=Math.abs,Sr=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},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 mr(this.rotation)||mr(this.x)||mr(this.y)||mr(this.scaleX-1)||mr(this.scaleY-1)||mr(this.skewX)||mr(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(gr(n),this.invTransform=null);return}n||=wt(),t?this.getLocalTransform(n):gr(n),e&&(t?Dt(n,e,n):Et(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(vr);var n=vr[0]<0?-1:1,r=vr[1]<0?-1:1,i=((vr[0]-n)*t+n)/vr[0]||0,a=((vr[1]-r)*t+r)/vr[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||wt(),jt(this.invTransform,e)},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||wt(),Dt(yr,e.invTransform,t),t=yr);var n=this.originX,r=this.originY;(n||r)&&(br[4]=n,br[5]=r,Dt(yr,t,br),yr[4]-=n,yr[5]-=r,t=yr),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&&or(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&or(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&xr(e[0]-1)>1e-10&&xr(e[3]-1)>1e-10?Math.sqrt(xr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){hr(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&&kt(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}(),Cr=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`],wr=Sr})),Er,Dr,Or=t((()=>{Er={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=1.70158*1.525;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-Er.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?Er.bounceIn(e*2)*.5:Er.bounceOut(e*2-1)*.5+.5}},Dr=Er}));function kr(e){return e>-qr&&e<qr}function Ar(e){return e>qr||e<-qr}function jr(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 Mr(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function Nr(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(kr(u)&&kr(d))if(kr(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(kr(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=Kr(h),y=u*s+1.5*o*(-d+v),b=u*s+1.5*o*(-d-v);y=y<0?-Gr(-y,Xr):Gr(y,Xr),b=b<0?-Gr(-b,Xr):Gr(b,Xr);var m=(-s-(y+b))/(3*o);m>=0&&m<=1&&(a[p++]=m)}else{var x=(2*u*s-3*o*d)/(2*Kr(u*u*u)),S=Math.acos(x)/3,C=Kr(u),w=Math.cos(S),m=(-s-2*C*w)/(3*o),_=(-s+C*(w+Yr*Math.sin(S)))/(3*o),T=(-s+C*(w-Yr*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 Pr(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(kr(o)){if(Ar(a)){var l=-s/a;l>=0&&l<=1&&(i[c++]=l)}}else{var u=a*a-4*o*s;if(kr(u))i[0]=-a/(2*o);else if(u>0){var d=Kr(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 Fr(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 Ir(e,t,n,r,i,a,o,s,c,l,u){var d,f=.005,p=1/0,m,h,g,_;Zr[0]=c,Zr[1]=l;for(var v=0;v<1;v+=.05)Qr[0]=jr(e,n,i,o,v),Qr[1]=jr(t,r,a,s,v),g=fr(Zr,Qr),g<p&&(d=v,p=g);p=1/0;for(var y=0;y<32&&!(f<Jr);y++)m=d-f,h=d+f,Qr[0]=jr(e,n,i,o,m),Qr[1]=jr(t,r,a,s,m),g=fr(Qr,Zr),m>=0&&g<p?(d=m,p=g):($r[0]=jr(e,n,i,o,h),$r[1]=jr(t,r,a,s,h),_=fr($r,Zr),h<=1&&_<p?(d=h,p=_):f*=.5);return u&&(u[0]=jr(e,n,i,o,d),u[1]=jr(t,r,a,s,d)),Kr(p)}function Lr(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=jr(e,n,i,o,m),g=jr(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Rr(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function zr(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function Br(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(kr(a)){if(Ar(o)){var l=-s/o;l>=0&&l<=1&&(i[c++]=l)}}else{var u=o*o-4*a*s;if(kr(u)){var l=-o/(2*a);l>=0&&l<=1&&(i[c++]=l)}else if(u>0){var d=Kr(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 Vr(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Hr(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 Ur(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;Zr[0]=o,Zr[1]=s;for(var f=0;f<1;f+=.05){Qr[0]=Rr(e,n,i,f),Qr[1]=Rr(t,r,a,f);var p=fr(Zr,Qr);p<d&&(l=f,d=p)}d=1/0;for(var m=0;m<32&&!(u<Jr);m++){var h=l-u,g=l+u;Qr[0]=Rr(e,n,i,h),Qr[1]=Rr(t,r,a,h);var p=fr(Qr,Zr);if(h>=0&&p<d)l=h,d=p;else{$r[0]=Rr(e,n,i,g),$r[1]=Rr(t,r,a,g);var _=fr($r,Zr);g<=1&&_<d?(l=g,d=_):u*=.5}}return c&&(c[0]=Rr(e,n,i,l),c[1]=Rr(t,r,a,l)),Kr(d)}function Wr(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=Rr(e,n,i,f),m=Rr(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei=t((()=>{pr(),Gr=Math.pow,Kr=Math.sqrt,qr=1e-8,Jr=1e-4,Yr=Kr(3),Xr=1/3,Zr=Hn(),Qr=Hn(),$r=Hn()}));function ti(e){var t=e&&ni.exec(e);if(t){var n=t[1].split(`,`),r=+pe(n[0]),i=+pe(n[1]),a=+pe(n[2]),o=+pe(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:Nr(0,r,a,1,e,s)&&jr(0,i,o,1,s[0])}}}var ni,ri=t((()=>{ei(),G(),ni=/cubic-bezier\(([0-9,\.e ]+)\)/})),ii,ai,oi=t((()=>{Or(),G(),ri(),ii=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||xe,this.ondestroy=e.ondestroy||xe,this.onrestart=e.onrestart||xe,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)this._startTime=e-r%n,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=I(e)?e:Dr[e]||ti(e)},e}(),ai=ii})),si=n({fastLerp:()=>Ci,fastMapToColor:()=>Pi,lerp:()=>wi,lift:()=>xi,liftColor:()=>Ai,lum:()=>Oi,mapToColor:()=>Fi,modifyAlpha:()=>Ei,modifyHSL:()=>Ti,parse:()=>vi,parseCssFloat:()=>fi,parseCssInt:()=>di,random:()=>ki,stringify:()=>Di,toHex:()=>Si});function ci(e){return e=Math.round(e),e<0?0:e>255?255:e}function li(e){return e=Math.round(e),e<0?0:e>360?360:e}function ui(e){return e<0?0:e>1?1:e}function di(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ci(parseFloat(t)/100*255):ci(parseInt(t,10))}function fi(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?ui(parseFloat(t)/100):ui(parseFloat(t))}function pi(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 mi(e,t,n){return e+(t-e)*n}function hi(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function gi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function _i(e,t){Ni&&gi(Ni,t),Ni=Mi.put(e,Ni||t.slice())}function vi(e,t){if(e){t||=[];var n=Mi.get(e);if(n)return gi(t,n);e+=``;var r=e.replace(/ /g,``).toLowerCase();if(r in ji)return gi(t,ji[r]),_i(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)){hi(t,0,0,0,1);return}return hi(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),_i(e,t),t}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){hi(t,0,0,0,1);return}return hi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),_i(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?hi(t,+l[0],+l[1],+l[2],1):hi(t,0,0,0,1);u=fi(l.pop());case`rgb`:if(l.length>=3)return hi(t,di(l[0]),di(l[1]),di(l[2]),l.length===3?u:fi(l[3])),_i(e,t),t;hi(t,0,0,0,1);return;case`hsla`:if(l.length!==4){hi(t,0,0,0,1);return}return l[3]=fi(l[3]),yi(l,t),_i(e,t),t;case`hsl`:if(l.length!==3){hi(t,0,0,0,1);return}return yi(l,t),_i(e,t),t;default:return}}hi(t,0,0,0,1)}}function yi(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=fi(e[1]),i=fi(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return t||=[],hi(t,ci(pi(o,a,n+1/3)*255),ci(pi(o,a,n)*255),ci(pi(o,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function bi(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 xi(e,t){var n=vi(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 Di(n,n.length===4?`rgba`:`rgb`)}}function Si(e){var t=vi(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function Ci(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){n||=[];var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=t[i],s=t[a],c=r-i;return n[0]=ci(mi(o[0],s[0],c)),n[1]=ci(mi(o[1],s[1],c)),n[2]=ci(mi(o[2],s[2],c)),n[3]=ui(mi(o[3],s[3],c)),n}}function wi(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=vi(t[i]),s=vi(t[a]),c=r-i,l=Di([ci(mi(o[0],s[0],c)),ci(mi(o[1],s[1],c)),ci(mi(o[2],s[2],c)),ui(mi(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Ti(e,t,n,r){var i=vi(e);if(e)return i=bi(i),t!=null&&(i[0]=li(I(t)?t(i[0]):t)),n!=null&&(i[1]=fi(I(n)?n(i[1]):n)),r!=null&&(i[2]=fi(I(r)?r(i[2]):r)),Di(yi(i),`rgba`)}function Ei(e,t){var n=vi(e);if(n&&t!=null)return n[3]=ui(t),Di(n,`rgba`)}function Di(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 Oi(e,t){var n=vi(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function ki(){return Di([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],`rgb`)}function Ai(e){if(L(e)){var t=Ii.get(e);return t||(t=xi(e,-.1),Ii.put(e,t)),t}else if(B(e)){var n=C({},e);return n.colorStops=A(e.colorStops,function(e){return{offset:e.offset,color:xi(e.color,-.1)}}),n}return e}var ji,Mi,Ni,Pi,Fi,Ii,Li=t((()=>{gt(),G(),ji={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]},Mi=new ht(20),Ni=null,Pi=Ci,Fi=wi,Ii=new ht(100)}));function Ri(e){return e.type===`linear`}function zi(e){return e.type===`radial`}var Bi=t((()=>{G(),We(),(function(){return K.hasGlobalWindow&&I(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<`u`?function(e){return Buffer.from(e).toString(`base64`)}:function(e){return null}})()}));function Vi(e,t,n){return(t-e)*n+e}function Hi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=Vi(t[a],n[a],r);return e}function Ui(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]=Vi(t[o][s],n[o][s],r)}return e}function Wi(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function Gi(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 Ki(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 qi(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]:$i.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 Ji(e){if(O(e)){var t=e.length;if(O(e[0])){for(var n=[],r=0;r<t;r++)n.push($i.call(e[r]));return n}return $i.call(e)}return e}function Yi(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 Xi(e){return O(e&&e[0])?2:1}function Zi(e){return e===ia||e===aa}function Qi(e){return e===ta||e===na}var $i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da=t((()=>{oi(),Li(),G(),Or(),ri(),Bi(),$i=Array.prototype.slice,ea=0,ta=1,na=2,ra=3,ia=4,aa=5,oa=6,sa=[0,0,0,0],ca=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=oa,s=t;if(O(t)){var c=Xi(t);o=c,(c===1&&!R(t[0])||c===2&&!R(t[0][0]))&&(a=!0)}else if(R(t)&&!se(t))o=ea;else if(L(t))if(!isNaN(+t))o=ea;else{var l=vi(t);l&&(s=l,o=ra)}else if(B(t)){var u=C({},s);u.colorStops=A(t.colorStops,function(e){return{offset:e.offset,color:vi(e.color)}}),Ri(t)?o=ia:zi(t)&&(o=aa),s=u}i===0?this.valType=o:(o!==this.valType||o===oa)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=I(n)?n:Dr[n]||ti(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=Qi(r),c=Zi(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?qi(d,f,r):c&&Ki(d.colorStops,f.colorStops))}if(!o&&r!==aa&&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===ea?n[l].additiveValue=n[l].value-p:r===ra?n[l].additiveValue=Wi([],n[l].value,p,-1):Qi(r)&&(n[l].additiveValue=r===ta?Wi([],n[l].value,p,-1):Gi([],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===ra,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?sa:e[s];if((Qi(i)||c)&&!g&&(g=this._additiveValue=[]),this.discrete)e[s]=h<1?f.rawValue:p.rawValue;else if(Qi(i))i===ta?Hi(g,f[r],p[r],h):Ui(g,f[r],p[r],h);else if(Zi(i)){var _=f[r],v=p[r],y=i===ia;e[s]={type:y?`linear`:`radial`,x:Vi(_.x,v.x,h),y:Vi(_.y,v.y,h),colorStops:A(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:Vi(e.offset,n.offset,h),color:Yi(Hi([],e.color,n.color,h))}}),global:v.global},y?(e[s].x2=Vi(_.x2,v.x2,h),e[s].y2=Vi(_.y2,v.y2,h)):e[s].r=Vi(_.r,v.r,h)}else if(c)Hi(g,f[r],p[r],h),n||(e[s]=Yi(g));else{var b=Vi(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===ea?e[n]=e[n]+r:t===ra?(vi(e[n],sa),Wi(sa,sa,r,1),e[n]=Yi(sa)):t===ta?Wi(e[n],e[n],r,1):t===na&&Gi(e[n],e[n],r,1)},e}(),la=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){y(`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,N(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 ca(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===ra&&c&&(c=Yi(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Ji(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Ji(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 ai({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 A(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]=Ji(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=N(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}(),ua=la})),fa,pa,ma=t((()=>{fa=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){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!(r&&r.filter&&s.query!=null&&!r.filter(e,s.query)))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t);break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!(r&&r.filter&&c.query!=null&&!r.filter(e,c.query)))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1));break}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),pa=fa})),ha,ga,_a,va,ya,ba,xa=t((()=>{We(),ha=1,K.hasGlobalWindow&&(ha=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1)),ga=ha,_a=.4,va=`#333`,ya=`#ccc`,ba=`#eee`})),Sa=t((()=>{}));function Ca(e,t,n,r,i){n||={};var a=[];ka(e,``,e,t,n,r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,o--,o<=0&&(s?c&&c():l&&l())},d=function(){o--,o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function wa(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Ta(e){return O(e[0])}function Ea(e,t,n){if(O(t[n]))if(O(e[n])||(e[n]=[]),ie(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),wa(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(Ta(i))for(var s=i[0].length,c=0;c<o;c++)a[c]?wa(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else wa(a,i,o);a.length=i.length}else e[n]=t[n]}function Da(e,t){return e===t||O(e)&&O(t)&&Oa(e,t)}function Oa(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ka(e,t,n,r,i,a,o,s){for(var c=N(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!z(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_]))if(z(v)&&!O(v)&&!B(v)){if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}ka(e,_,n[_],v,i,a&&a[_],o,s)}else h.push(_);else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y)for(var b=0;b<m.length;b++){var x=m[b];if(x.targetName===t&&x.stopTracks(h)){var S=T(m,x);m.splice(S,1)}}if(i.force||(h=M(h,function(e){return!Da(r[e],n[e])}),y=h.length),y>0||i.force&&!o.length){var C=void 0,w=void 0,E=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){E={};for(var b=0;b<y;b++){var _=h[b];E[_]=Ji(n[_]),Ea(n,r,_)}}var x=new ua(n,!1,!1,d?M(m,function(e){return e.targetName===t}):null);x.targetName=t,i.scope&&(x.scope=i.scope),f&&C&&x.whenWithKeys(0,C,h),E&&x.whenWithKeys(0,E,h),x.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(x,t),o.push(x)}}var Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra=t((()=>{Tr(),da(),en(),ma(),gn(),G(),xa(),Li(),Sa(),Nt(),Aa=`__zr_normal__`,ja=Cr.concat([`ignore`]),Ma=j(Cr,function(e,t){return e[t]=!0,e},{ignore:!1}),Na={},Pa=new J(0,0,0,0),Fa=[],Ia=function(){function e(e){this.id=v(),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;break}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=Pa,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Na,n,d):fn(Na,n,d),i.x=Na.x,i.y=Na.y,a=Na.align,o=Na.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=dn(f[0],d.width),m=dn(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(Fa),jt(Fa,Fa),J.copy(_,d),_.applyTransform(Fa)}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()?ya:va},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&vi(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,Di(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||{},C(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(z(e))for(var n=N(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,ja)},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(Aa,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Aa;if(!(!this.hasState()&&i)){var a=this.currentStates,o=this.stateTransition;if(!(T(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){y(`State `+e+` not exists.`);return}i||this.saveCurrentToNormalState(s);var c=!!(s&&s.hoverLayer||r);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,s,this._normalState,t,!n&&!this.__inHover&&o&&o.duration>0,o);var l=this._textContent,u=this._textGuide;return l&&l.useState(e,t,n,c),u&&u.useState(e,t,n,c),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),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=!!(u&&u.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(e.join(`,`),f,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,h=this._textGuide;m&&m.useStates(e,t,d),h&&h.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),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=T(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=T(r,e),a=T(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];C(t,i),i.textConfig&&(n||={},C(n,i.textConfig))}return n&&(t.textConfig=n),t},e.prototype._applyStateObj=function(e,t,n,r,i,a){var o=!(t&&r);t&&t.textConfig?(this.textConfig=C({},r?this.textConfig:n.textConfig),C(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<ja.length;l++){var u=ja[l],d=i&&Ma[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)&&e!==this){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;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new wr,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},C(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._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},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=new ua(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},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=T(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];!e||e===o.scope?o.stop(t):i.push(o)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Ca(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Ca(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Ca(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=1;function n(e,n,r,i){Object.defineProperty(t,e,{get:function(){if(!this[n]){var e=this[n]=[];a(this,e)}return this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}});function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}}Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))})(),e}(),D(Ia,pa),D(Ia,wr),La=Ia}));function za(e,t,n){return Ka.copy(e.getBoundingRect()),e.transform&&Ka.applyTransform(e.transform),qa.width=t,qa.height=n,!Ka.intersect(qa)}var Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya=t((()=>{o(),Ra(),en(),G(),Sa(),Ba=`__zr_style_`+Math.round(Math.random()*10),Va={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},Ha={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Va[Ba]=!0,Ua=[`z`,`z2`,`invisible`],Wa=[`invisible`],Ga=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype._init=function(t){for(var n=N(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(){},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&&za(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:C(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 ve(Va,e)},t.prototype.useStyle=function(e){e[Ba]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ba]},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,Ua)},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;if(n&&n.style?a?i?c=n.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(c,n.style)):s&&(c=r.style),c)if(a){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=N(l),d=0;d<u.length;d++){var f=u[d];f in c&&(c[f]=c[f],this.style[f]=l[f])}for(var p=N(c),d=0;d<p.length;d++){var f=p[d];this.style[f]=this.style[f]}this._transitionState(t,{style:c},o,this.getAnimationStyleProps())}else this.useStyle(c);for(var m=this.__inHover?Wa:Ua,d=0;d<m.length;d++){var f=m[d];n&&n[f]!=null?this[f]=n[f]:s&&r[f]!=null&&(this[f]=r[f])}},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 C(e,t),e},t.prototype.getAnimationStyleProps=function(){return Ha},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=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3})(),t}(La),Ka=new J(0,0,0,0),qa=new J(0,0,0,0),Ja=Ga}));function Xa(e,t,n,r,i,a){i[0]=eo(e,n),i[1]=eo(t,r),a[0]=to(e,n),a[1]=to(t,r)}function Za(e,t,n,r,i,a,o,s,c,l){var u=Pr,d=jr,f=u(e,n,i,o,co);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,co[p]);c[0]=eo(m,c[0]),l[0]=to(m,l[0])}f=u(t,r,a,s,lo);for(var p=0;p<f;p++){var h=d(t,r,a,s,lo[p]);c[1]=eo(h,c[1]),l[1]=to(h,l[1])}c[0]=eo(e,c[0]),l[0]=to(e,l[0]),c[0]=eo(o,c[0]),l[0]=to(o,l[0]),c[1]=eo(t,c[1]),l[1]=to(t,l[1]),c[1]=eo(s,c[1]),l[1]=to(s,l[1])}function Qa(e,t,n,r,i,a,o,s){var c=Vr,l=Rr,u=to(eo(c(e,n,i),1),0),d=to(eo(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=eo(e,i,f),o[1]=eo(t,a,p),s[0]=to(e,i,f),s[1]=to(t,a,p)}function $a(e,t,n,r,i,a,o,s,c){var l=sr,u=cr,d=Math.abs(i-a);if(d%io<1e-4&&d>1e-4){s[0]=e-n,s[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(ao[0]=ro(i)*n+e,ao[1]=no(i)*r+t,oo[0]=ro(a)*n+e,oo[1]=no(a)*r+t,l(s,ao,oo),u(c,ao,oo),i%=io,i<0&&(i+=io),a%=io,a<0&&(a+=io),i>a&&!o?a+=io:i<a&&o&&(i+=io),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(so[0]=ro(p)*n+e,so[1]=no(p)*r+t,l(s,so,s),u(c,so,c))}var eo,to,no,ro,io,ao,oo,so,co,lo,uo=t((()=>{pr(),ei(),eo=Math.min,to=Math.max,no=Math.sin,ro=Math.cos,io=Math.PI*2,ao=Hn(),oo=Hn(),so=Hn(),co=[],lo=[]}));function fo(e){return Math.round(e/To*1e8)/1e8%2*To}function po(e,t){var n=fo(e[0]);n<0&&(n+=Eo);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Eo?i=n+Eo:t&&n-i>=Eo?i=n-Eo:!t&&n>i?i=n+(Eo-fo(n-i)):t&&n<i&&(i=n-(Eo-fo(i-n))),e[0]=n,e[1]=i}var Y,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo=t((()=>{pr(),en(),xa(),uo(),ei(),Y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},mo=[],ho=[],go=[],_o=[],vo=[],yo=[],bo=Math.min,xo=Math.max,So=Math.cos,Co=Math.sin,wo=Math.abs,To=Math.PI,Eo=To*2,Do=typeof Float32Array<`u`,Oo=[],ko=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=wo(n/ga/e)||0,this._uy=wo(n/ga/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(Y.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=wo(e-this._xi),r=wo(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Y.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(Y.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(Y.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(),Oo[0]=r,Oo[1]=i,po(Oo,a),r=Oo[0],i=Oo[1];var o=i-r;return this.addData(Y.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=So(i)*n+e,this._yi=Co(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(Y.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Y.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)&&Do&&(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(Do&&(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,Do&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){go[0]=go[1]=vo[0]=vo[1]=Number.MAX_VALUE,_o[0]=_o[1]=yo[0]=yo[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 Y.M:t=r=e[a++],n=i=e[a++],vo[0]=r,vo[1]=i,yo[0]=r,yo[1]=i;break;case Y.L:Xa(t,n,e[a],e[a+1],vo,yo),t=e[a++],n=e[a++];break;case Y.C:Za(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],vo,yo),t=e[a++],n=e[a++];break;case Y.Q:Qa(t,n,e[a++],e[a++],e[a],e[a+1],vo,yo),t=e[a++],n=e[a++];break;case Y.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=So(f)*u+c,i=Co(f)*d+l),$a(c,l,u,d,f,p,m,vo,yo),t=So(p)*u+c,n=Co(p)*d+l;break;case Y.R:r=t=e[a++],i=n=e[a++];var h=e[a++],g=e[a++];Xa(r,i,r+h,i+g,vo,yo);break;case Y.Z:t=r,n=i;break}sr(go,go,vo),cr(_o,_o,yo)}return a===0&&(go[0]=go[1]=_o[0]=_o[1]=0),new J(go[0],go[1],_o[0]-go[0],_o[1]-go[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 Y.M:i=o=e[d++],a=s=e[d++];break;case Y.L:var h=e[d++],g=e[d++],_=h-i,v=g-a;(wo(_)>n||wo(v)>r||d===t-1)&&(m=Math.sqrt(_*_+v*v),i=h,a=g);break;case Y.C:var y=e[d++],b=e[d++],h=e[d++],g=e[d++],x=e[d++],S=e[d++];m=Lr(i,a,y,b,h,g,x,S,10),i=x,a=S;break;case Y.Q:var y=e[d++],b=e[d++],h=e[d++],g=e[d++];m=Wr(i,a,y,b,h,g,10),i=h,a=g;break;case Y.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=So(D)*T+C,s=Co(D)*E+w),m=xo(T,E)*bo(Eo,Math.abs(O)),i=So(k)*T+C,a=Co(k)*E+w;break;case Y.R:o=i=e[d++],s=a=e[d++];var A=e[d++],j=e[d++];m=A*2+j*2;break;case Y.Z:var _=o-i,v=s-a;m=Math.sqrt(_*_+v*v),i=o,a=s;break}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!==Y.L&&v>0&&(e.lineTo(y,b),v=0),S){case Y.M:o=c=n[x++],s=l=n[x++],e.moveTo(c,l);break;case Y.L:u=n[x++],d=n[x++];var w=wo(u-c),T=wo(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 Y.C:var k=n[x++],A=n[x++],j=n[x++],M=n[x++],ee=n[x++],N=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Fr(c,k,j,ee,D,mo),Fr(l,A,M,N,D,ho),e.bezierCurveTo(mo[1],ho[1],mo[2],ho[2],mo[3],ho[3]);break lo}h+=E}e.bezierCurveTo(k,A,j,M,ee,N),c=ee,l=N;break;case Y.Q:var k=n[x++],A=n[x++],j=n[x++],M=n[x++];if(f){var E=p[g++];if(h+E>_){var D=(_-h)/E;Hr(c,k,j,D,mo),Hr(l,A,M,D,ho),e.quadraticCurveTo(mo[1],ho[1],mo[2],ho[2]);break lo}h+=E}e.quadraticCurveTo(k,A,j,M),c=j,l=M;break;case Y.A:var te=n[x++],P=n[x++],F=n[x++],I=n[x++],L=n[x++],ne=n[x++],R=n[x++],z=!n[x++],re=F>I?F:I,ie=wo(F-I)>.001,ae=L+ne,B=!1;if(f){var E=p[g++];h+E>_&&(ae=L+ne*(_-h)/E,B=!0),h+=E}if(ie&&e.ellipse?e.ellipse(te,P,F,I,R,L,ae,z):e.arc(te,P,re,L,ae,z),B)break lo;C&&(o=So(L)*F+te,s=Co(L)*I+P),c=So(ae)*F+te,l=Co(ae)*I+P;break;case Y.R:o=c=n[x],s=l=n[x+1],u=n[x++],d=n[x++];var V=n[x++],oe=n[x++];if(f){var E=p[g++];if(h+E>_){var se=_-h;e.moveTo(u,d),e.lineTo(u+bo(se,V),d),se-=V,se>0&&e.lineTo(u+V,d+bo(se,oe)),se-=oe,se>0&&e.lineTo(u+xo(V-se,0),d+oe),se-=V,se>0&&e.lineTo(u,d+xo(oe-se,0));break lo}h+=E}e.rect(u,d,V,oe);break;case Y.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=Y,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e}(),Ao=ko}));function Mo(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}var No=t((()=>{}));function Po(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:Ir(e,t,n,r,i,a,o,s,l,u,null)<=d/2}var Fo=t((()=>{ei()}));function Io(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:Ur(e,t,n,r,i,a,s,c,null)<=l/2}var Lo=t((()=>{ei()}));function Ro(e){return e%=zo,e<0&&(e+=zo),e}var zo,Bo=t((()=>{zo=Math.PI*2}));function Vo(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)%Ho<1e-4)return!0;if(a){var d=r;r=Ro(i),i=Ro(d)}else r=Ro(r),i=Ro(i);r>i&&(i+=Ho);var f=Math.atan2(c,s);return f<0&&(f+=Ho),f>=r&&f<=i||f+Ho>=r&&f+Ho<=i}var Ho,Uo=t((()=>{Bo(),Ho=Math.PI*2}));function Wo(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 Go=t((()=>{}));function Ko(e,t){return Math.abs(e-t)<ns}function qo(){var e=is[0];is[0]=is[1],is[1]=e}function Jo(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=Nr(t,r,a,s,l,rs);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=rs[h],_=g===0||g===1?.5:1;jr(e,n,i,o,g)<c||(f<0&&(f=Pr(t,r,a,s,is),is[1]<is[0]&&f>1&&qo(),p=jr(t,r,a,s,is[0]),f>1&&(m=jr(t,r,a,s,is[1]))),f===2?g<is[0]?d+=p<t?_:-_:g<is[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<is[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Yo(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=Br(t,r,a,s,rs);if(c===0)return 0;var l=Vr(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Rr(t,r,a,l),f=0;f<c;f++){var p=rs[f]===0||rs[f]===1?.5:1,m=Rr(e,n,i,rs[f]);m<o||(rs[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}else{var p=rs[0]===0||rs[0]===1?.5:1,m=Rr(e,n,i,rs[0]);return m<o?0:a<t?p:-p}}function Xo(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);rs[0]=-c,rs[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=ts-1e-4){r=0,i=ts;var u=a?1:-1;return o>=rs[0]+e&&o<=rs[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=ts,i+=ts);for(var f=0,p=0;p<2;p++){var m=rs[p];if(m+e>o){var h=Math.atan2(s,m),u=a?1:-1;h<0&&(h=ts+h),(h>=r&&h<=i||h+ts>=r&&h+ts<=i)&&(h>Math.PI/2&&h<Math.PI*1.5&&(u=-u),f+=u)}}return f}function Zo(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===es.M&&m>1&&(n||(s+=Wo(c,l,u,d,r,i))),g&&(c=a[m],l=a[m+1],u=c,d=l),h){case es.M:u=a[m++],d=a[m++],c=u,l=d;break;case es.L:if(n){if(Mo(c,l,a[m],a[m+1],t,r,i))return!0}else s+=Wo(c,l,a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case es.C:if(n){if(Po(c,l,a[m++],a[m++],a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Jo(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 es.Q:if(n){if(Io(c,l,a[m++],a[m++],a[m],a[m+1],t,r,i))return!0}else s+=Yo(c,l,a[m++],a[m++],a[m],a[m+1],r,i)||0;c=a[m++],l=a[m++];break;case es.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+=Wo(c,l,f,p,r,i);var w=(r-_)*b/y+_;if(n){if(Vo(_,v,b,x,x+S,C,t,w,i))return!0}else s+=Xo(_,v,b,x,x+S,C,w,i);c=Math.cos(x+S)*y+_,l=Math.sin(x+S)*b+v;break;case es.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(Mo(u,d,f,d,t,r,i)||Mo(f,d,f,p,t,r,i)||Mo(f,p,u,p,t,r,i)||Mo(u,p,u,d,t,r,i))return!0}else s+=Wo(f,d,f,p,r,i),s+=Wo(u,p,u,d,r,i);break;case es.Z:if(n){if(Mo(c,l,u,d,t,r,i))return!0}else s+=Wo(c,l,u,d,r,i);c=u,l=d;break}}return!n&&!Ko(l,d)&&(s+=Wo(c,l,u,d,r,i)||0),s!==0}function Qo(e,t,n){return Zo(e,0,!1,t,n)}function $o(e,t,n,r){return Zo(e,t,!0,n,r)}var es,ts,ns,rs,is,as=t((()=>{jo(),No(),Fo(),Lo(),Uo(),ei(),Go(),es=Ao.CMD,ts=Math.PI*2,ns=1e-4,rs=[-1,-1,-1],is=[-1,-1]})),os,ss,cs,ls,us,ds=t((()=>{o(),Ya(),jo(),as(),G(),Li(),xa(),Sa(),Tr(),os=w({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Va),ss={style:w({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ha.style)},cs=Cr.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),ls=function(e){i(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<cs.length;++s)i[cs[s]]=this[cs[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=N(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?C(this.style,o):this.useStyle(o):a===`shape`?C(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(L(e)){var t=Oi(e,0);return t>.5?va:t>.2?ba:ya}else if(e)return ya}return va},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(L(t)){var n=this.__zr;if(!!(n&&n.isDarkMode())==Oi(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 Ao(!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)),$o(a,o/s,e,t)))return!0}if(this.hasFill())return Qo(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:C(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&4)},t.prototype.createStyle=function(e){return ve(os,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=C({},this.shape))},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;if(n&&n.shape?a?i?c=n.shape:(c=C({},r.shape),C(c,n.shape)):(c=C({},i?this.shape:r.shape),C(c,n.shape)):s&&(c=r.shape),c)if(a){this.shape=C({},this.shape);for(var l={},u=N(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 ss},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=function(t){i(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 b(e.style)},n.prototype.getDefaultShape=function(){return b(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}(Ja),us=ls})),fs,ps,ms,hs=t((()=>{o(),Ya(),ds(),G(),g(),Bn(),fs=w({strokeFirst:!0,font:u,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},os),ps=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return Mn(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return ve(fs,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||=An(this.style),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t}(Ja),ps.prototype.type=`tspan`,ms=ps}));function gs(e){return!!(e&&typeof e!=`string`&&e.width&&e.height)}var _s,vs,ys,bs,xs=t((()=>{o(),Ya(),en(),G(),_s=w({x:0,y:0},Va),vs={style:w({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ha.style)},ys=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return ve(_s,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r=gs(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 vs},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}(Ja),ys.prototype.type=`image`,bs=ys}));function Ss(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)}var Cs=t((()=>{}));function ws(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?(Ds(r*2)===Ds(i*2)&&(e.x1=e.x2=Es(r,s,!0)),Ds(a*2)===Ds(o*2)&&(e.y1=e.y2=Es(a,s,!0)),e):e}}function Ts(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=Es(r,s,!0),e.y=Es(i,s,!0),e.width=Math.max(Es(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Es(i+o,s,!1)-e.y,o===0?0:1),e):e}}function Es(e,t,n){if(!t)return e;var r=Ds(e*2);return(r+Ds(t))%2==0?r/2:(r+(n?1:-1))/2}var Ds,Os=t((()=>{Ds=Math.round})),ks,As,js,Ms,Ns=t((()=>{o(),ds(),Cs(),Os(),ks=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),As={},js=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ks},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=Ts(As,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?Ss(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(us),js.prototype.type=`rect`,Ms=js}));function Ps(e){return typeof e==`string`&&(e.indexOf(`px`)!==-1||e.indexOf(`rem`)!==-1||e.indexOf(`em`)!==-1)?e:isNaN(+e)?`12px`:e+`px`}function Fs(e,t){for(var n=0;n<Zs.length;n++){var r=Zs[n],i=t[r];i!=null&&(e[r]=i)}}function Is(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ls(e){return Rs(e),k(e.rich,Rs),e}function Rs(e){if(e){e.font=Js.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||Ys[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||Xs[n]?n:`top`,e.padding&&=de(e.padding)}}function zs(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Bs(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function Vs(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Hs(e){var t=e.text;return t!=null&&(t+=``),t}function Us(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s=t((()=>{o(),Bn(),hs(),G(),gn(),xs(),Ns(),en(),Ya(),g(),Ws={fill:`#000`},Gs=2,Ks={},qs={style:w({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},Ha.style)},Js=function(e){i(t,e);function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=Ws,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,Ls(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||Ws},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return C(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=N(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},C(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return qs},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`;On(Ks,r.overflowRect,i,a,o,s),i=Ks.baseX,a=Ks.baseY;var c=Sn(Hs(e),e,Ks.outerWidth,Ks.outerHeight),l=Us(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=ln(a,c.contentHeight,s);if(l||n){var _=cn(i,f,o),v=ln(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=Vs(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Bs(`fill`in e?e.fill:(x=!0,r.fill)),C=zs(`stroke`in e?e.stroke:!u&&(!r.autoStroke||x)?(y=Gs,b=!0,r.stroke):null),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ms),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,Fs(D,e),g+=m,E.setBoundingRect(jn(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;On(Ks,t.overflowRect,i,a,n,r),i=Ks.baseX,a=Ks.baseY;var o=Cn(Hs(e),e,Ks.outerWidth,Ks.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=cn(i,c,n),f=ln(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;Us(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&&Us(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=Vs(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ms),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Bs(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=zs(`stroke`in s?s.stroke:`stroke`in t?t.stroke:!u&&!o&&(!m.autoStroke||h)?(g=Gs,_=!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=le(s.opacity,t.opacity,1),Fs(p,s),y&&(p.lineWidth=le(s.lineWidth,t.lineWidth,g),p.lineDash=H(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(jn(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(Ms),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=H(e.fillOpacity,1)}else if(l){m=this._getOrCreateChild(bs),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=H(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=le(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Is(e)&&(t=[e.fontStyle,e.fontWeight,Ps(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&pe(t)||e.textFont||e.font},t}(Ja),Ys={left:!0,right:1,center:1},Xs={top:1,bottom:1,middle:1},Zs=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`],Qs=Js}));function ec(e){return e.replace(/^\s+|\s+$/g,``)}function tc(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}function nc(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%`;break}return rc(e,t,n)}function rc(e,t,n){return L(e)?ec(e).match(/%$/)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function ic(e,t,n){return t??=10,t=Math.min(Math.max(0,t),Ec),e=(+e).toFixed(t),n?e:+e}function ac(e){return e.sort(function(e,t){return e-t}),e}function oc(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return sc(e)}function sc(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(`.`),o=a<0?0:i-1-a;return Math.max(0,o-r)}function cc(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(kc(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function lc(e,t,n){return e[t]&&uc(e,n)[t]||0}function uc(e,t){var n=j(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=10**t,i=A(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=r*100,o=A(i,function(e){return Math.floor(e)}),s=j(o,function(e,t){return e+t},0),c=A(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return A(o,function(e){return e/r})}function dc(e,t){var n=Math.max(oc(e),oc(t)),r=e+t;return n>Ec?r:ic(r,n)}function fc(e){var t=Math.PI*2;return(e%t+t)%t}function pc(e){return e>-Tc&&e<Tc}function mc(e){if(e instanceof Date)return e;if(L(e)){var t=Mc.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))}else 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)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function hc(e){return 10**gc(e)}function gc(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/10**t>=10&&t++,t}function _c(e,t){var n=gc(e),r=10**n,i=e/r;return e=(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,n>=-20?+e.toFixed(n<0?-n:0):e}function vc(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function yc(e){e.sort(function(e,t){return s(e,t,0)?-1:1});for(var t=-1/0,n=1,r=0;r<e.length;){for(var i=e[r].interval,a=e[r].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-n),t=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(r,1):r++}return e;function s(e,t,n){return e.interval[n]<t.interval[n]||e.interval[n]===t.interval[n]&&(e.close[n]-t.close[n]===(n?-1:1)||!n&&s(e,t,1))}}function bc(e){var t=parseFloat(e);return t==e&&(t!==0||!L(e)||e.indexOf(`x`)<=0)?t:NaN}function xc(e){return!isNaN(bc(e))}function Sc(){return Math.round(Math.random()*9)}function Cc(e,t){return t===0?e:Cc(t,e%t)}function wc(e,t){return e==null?t:t==null?e:e*t/Cc(e,t)}var Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc=t((()=>{G(),Tc=1e-4,Ec=20,Dc=Math.min,Oc=Math.max,kc=Math.abs,Ac=nc,jc=9007199254740991,Mc=/^(?:(\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 Pc(e,t,n){if(zc){if(n){if(Rc[t])return;Rc[t]=!0}console[e](Lc+t)}}function Fc(e,t){Pc(`error`,e,t)}function Ic(e){throw Error(e)}var Lc,Rc,zc,Bc=t((()=>{Lc=`[ECharts] `,Rc={},zc=typeof console<`u`&&console.warn&&console.log}));function Vc(e,t,n){return(t-e)*n+e}function Hc(e){return e instanceof Array?e:e==null?[]:[e]}function Uc(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])}}}function Wc(e){return z(e)&&!F(e)&&!(e instanceof Date)?e.value:e}function Gc(e){return z(e)&&!(e instanceof Array)}function Kc(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=U();k(t,function(e,n){if(!z(e)){t[n]=null;return}});var s=qc(e,o,n);return(r||i)&&Jc(s,e,o,t),r&&Yc(s,t),r||i?Xc(s,t,i):a&&Zc(s,t),Qc(s),s}function qc(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`||rl(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Jc(e,t,n,r){k(r,function(i,a){if(!(!i||i.id==null)){var o=el(i.id),s=n.get(o);if(s!=null){var c=e[s];fe(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}function Yc(e,t){k(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)&&!rl(n)&&!rl(a)&&$c(`name`,a,n)){e[i].newOption=n,t[r]=null;return}}})}function Xc(e,t,n){k(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||rl(r.existing)||r.existing&&t.id!=null&&!$c(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}function Zc(e,t){k(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function Qc(e){var t=U();k(e,function(e){var n=e.existing;n&&t.set(n.id,e)}),k(e,function(e){var n=e.newOption;fe(!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={})}),k(e,function(e,n){var r=e.existing,i=e.newOption,a=e.keyInfo;if(z(i)){if(a.name=i.name==null?r?r.name:gl+n:el(i.name),r)a.id=el(r.id);else if(i.id!=null)a.id=el(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 $c(e,t,n){var r=tl(t[e],null),i=tl(n[e],null);return r!=null&&i!=null&&r===i}function el(e){return tl(e,``)}function tl(e,t){return e==null?t:L(e)?e:R(e)||ne(e)?e+``:t}function nl(e){var t=e.name;return!!(t&&t.indexOf(gl))}function rl(e){return e&&e.id!=null&&el(e.id).indexOf(_l)===0}function il(e,t,n){k(e,function(e){var r=e.newOption;z(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=al(t,r,e.existing,n))})}function al(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}function ol(e,t){var n={},r={};return i(e||[],n),i(t||[],r,n),[a(n),a(r)];function i(e,t,n){for(var r=0,i=e.length;r<i;r++){var a=tl(e[r].seriesId,null);if(a==null)return;for(var o=Hc(e[r].dataIndex),s=n&&n[a],c=0,l=o.length;c<l;c++){var u=o[c];s&&s[u]?s[u]=null:(t[a]||(t[a]={}))[u]=1}}}function a(e,t){var n=[];for(var r in e)if(e.hasOwnProperty(r)&&e[r]!=null)if(t)n.push(+r);else{var i=a(e[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function sl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return F(t.dataIndex)?A(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return F(t.name)?A(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name)}function cl(){var e=`__ec_inner_`+ yl++;return function(t){return t[e]||(t[e]={})}}function ll(e,t,n){var r=ul(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=dl(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 ul(e,t){var n;if(L(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=U(),a={},o=!1;return k(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&&T(t.includeMainTypes,s)<0)){o||=!!s;var l=i.get(s)||i.set(s,{});l[c]=e}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}function dl(e,t,n,r){r||=bl;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;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function fl(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function pl(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function ml(e){return e===`auto`?K.domSupported?`html`:`richText`:e||`html`}function hl(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(R(r)){var o=Vc(n||0,r,i);return ic(o,a?Math.max(oc(n||0),oc(r)):t)}else if(L(r))return i<1?n:r;else{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=Vc(p,m,i);s[d]=ic(o,a?Math.max(oc(p),oc(m)):t)}}return s}}var gl,_l,vl,yl,bl,X=t((()=>{G(),We(),Nc(),gl=`series\0`,_l=`\0_ec_\0`,vl=`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(`.`),yl=Sc(),bl={useDefault:!0,enableAll:!1,enableNone:!1},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):!1},e}()})),Z,xl,Sl=t((()=>{X(),Z=cl(),xl=function(e,t,n,r){if(r){var i=Z(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Z(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}}}));function Cl(e){return e!=null&&e!==`none`}function wl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function Tl(e){wl(e,`emphasis`,2)}function El(e){e.hoverState===2&&wl(e,`normal`,0)}function Dl(e){wl(e,`blur`,1)}function Ol(e){e.hoverState===1&&wl(e,`normal`,0)}function kl(e){e.selected=!0}function Al(e){e.selected=!1}function jl(e,t,n){t(e,n)}function Ml(e,t,n){jl(e,t,n),e.isGroup&&e.traverse(function(e){jl(e,t,n)})}function Nl(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 Pl(e,t,n,r){var i=n&&T(n,`select`)>=0,a=!1;if(e instanceof us){var o=gu(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(Cl(s)||Cl(c)){r||={};var l=r.style||{};l.fill===`inherit`?(a=!0,r=C({},r),l=C({},l),l.fill=s):!Cl(l.fill)&&Cl(s)?(a=!0,r=C({},r),l=C({},l),l.fill=Ai(s)):!Cl(l.stroke)&&Cl(c)&&(a||(r=C({},r),l=C({},l)),l.stroke=Ai(c)),r.style=l}}if(r&&r.z2==null){a||(r=C({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}function Fl(e,t,n){if(n&&n.z2==null){n=C({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}function Il(e,t,n){var r=T(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:Nl(e,[`opacity`],t,{opacity:1});n||={};var o=n.style||{};return o.opacity??(n=C({},n),o=C({opacity:r?i:a.opacity*.1},o),n.style=o),n}function Ll(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return Pl(this,e,t,n);if(e===`blur`)return Il(this,e,n);if(e===`select`)return Fl(this,e,n)}return n}function Rl(e){e.stateProxy=Ll;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Ll),n&&(n.stateProxy=Ll)}function zl(e,t){!ql(e,t)&&!e.__highByOuter&&Ml(e,Tl)}function Bl(e,t){!ql(e,t)&&!e.__highByOuter&&Ml(e,El)}function Vl(e,t){e.__highByOuter|=1<<(t||0),Ml(e,Tl)}function Hl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Ml(e,El)}function Ul(e){Ml(e,Dl)}function Wl(e){Ml(e,Ol)}function Gl(e){Ml(e,kl)}function Kl(e){Ml(e,Al)}function ql(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Jl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=_u(i),o=t===`series`,s=o?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!o&&r.push(s),a.isBlured&&(s.group.traverse(function(e){Ol(e)}),o&&n.push(i)),a.isBlured=!1}),k(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Yl(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&&Wl(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`||Dl(e)}),O(t))a(e.getData(),t);else if(z(t))for(var u=N(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),_u(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 Xl(e,t,n){if(!(e==null||t==null)){var r=n.getModel().getComponent(e,t);if(r){_u(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(e){Dl(e)})}}}function Zl(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=sl(i,t);a=(F(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=Z(o);Yl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Yl(r,u,d,n)}}}function Ql(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(Z(s[l]).focus===`self`){c=!0;break}return{focusSelf:c,dispatchers:s}}function $l(e,t,n){var r=Z(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&Xl(r.componentMainType,r.componentIndex,n),k(a,function(e){return zl(e,t)})):(Yl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&Xl(r.componentMainType,r.componentIndex,n),zl(e,t))}function eu(e,t,n){Jl(n);var r=Z(e),i=Ql(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?k(i,function(e){return Bl(e,t)}):Bl(e,t)}function tu(e,t,n){if(du(t)){var r=t.dataType,i=sl(e.getData(r),t);F(i)||(i=[i]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](i,r)}}function nu(e){k(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?Gl(t):Kl(t)})})}function ru(e){var t=[];return e.eachSeries(function(e){k(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 iu(e,t,n){cu(e,!0),Ml(e,Rl),su(e,t,n)}function au(e){cu(e,!1)}function ou(e,t,n,r){r?au(e):iu(e,t,n)}function su(e,t,n){var r=Z(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}function cu(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 lu(e){return!!(e&&e.__highDownDispatcher)}function uu(e){var t=hu[e];return t==null&&mu<=32&&(t=hu[e]=mu++),t}function du(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function fu(e){var t=e.type;return t===`highlight`||t===`downplay`}function pu(e){var t=gu(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 mu,hu,gu,_u,vu,yu,bu,xu,Su,Cu,wu,Tu,Eu=t((()=>{G(),Sl(),Li(),X(),ds(),mu=1,hu={},gu=cl(),_u=cl(),vu=[`emphasis`,`blur`,`select`],yu=[`normal`,`emphasis`,`blur`,`select`],bu=`highlight`,xu=`downplay`,Su=`select`,Cu=`unselect`,wu=`toggleSelect`,Tu=`selectchanged`}));function Du(e,t){if(t){var n=e.data,r=e.len(),i,a,o,s,c,l,u=Ou.M,d=Ou.C,f=Ou.L,p=Ou.R,m=Ou.A,h=Ou.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=Au(t[0]*t[0]+t[1]*t[1]),y=Au(t[2]*t[2]+t[3]*t[3]),b=ju(-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++],or(l,l,t),n[s++]=l[0],n[s++]=l[1],l[0]+=n[o++],l[1]+=n[o++],or(l,l,t),n[s++]=l[0],n[s++]=l[1]}for(c=0;c<a;c++){var x=ku[c];x[0]=n[o++],x[1]=n[o++],or(x,x,t),n[s++]=x[0],n[s++]=x[1]}}e.increaseVersion()}}var Ou,ku,Au,ju,Mu=t((()=>{jo(),pr(),Ou=Ao.CMD,ku=[[],[],[]],Au=Math.sqrt,ju=Math.atan2}));function Nu(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Pu(e,t){return(e[0]*t[0]+e[1]*t[1])/(Nu(e)*Nu(t))}function Fu(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Pu(e,t))}function Iu(e,t,n,r,i,a,o,s,c,l,u){var d=c*(Ku/180),f=Gu(d)*(e-n)/2+Wu(d)*(t-r)/2,p=-1*Wu(d)*(e-n)/2+Gu(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Uu(m),s*=Uu(m));var h=(i===a?-1:1)*Uu((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+Gu(d)*g-Wu(d)*_,y=(t+r)/2+Wu(d)*g+Gu(d)*_,b=Fu([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=Fu(x,S);if(Pu(x,S)<=-1&&(C=Ku),Pu(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Ku*1e6)/1e6;C=Ku*2+w%2*Ku}u.addData(l,v,y,o,s,b,C,d,a)}function Lu(e){var t=new Ao;if(!e)return t;var n=0,r=0,i=n,a=r,o,s=Ao.CMD,c=e.match(qu);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(Ju)||[],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,Iu(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,Iu(w,T,n,r,S,C,y,b,x,f,t);break}}(d===`z`||d===`Z`)&&(f=s.Z,t.addData(f),n=i,r=a),o=f}return t.toStatic(),t}function Ru(e){return e.setData!=null}function zu(e,t){var n=Lu(e),r=C({},t);return r.buildPath=function(e){var t=Ru(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){Du(n,e),this.dirtyShape()},r}function Bu(e,t){return new Yu(zu(e,t))}function Vu(e,t){var n=zu(e,t);return function(e){i(t,e);function t(t){var r=e.call(this,t)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return t}(Yu)}function Hu(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 us(t);return o.createPathProxy(),o.buildPath=function(e){if(Ru(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o}var Uu,Wu,Gu,Ku,qu,Ju,Yu,Xu=t((()=>{o(),ds(),jo(),Mu(),G(),Uu=Math.sqrt,Wu=Math.sin,Gu=Math.cos,Ku=Math.PI,qu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Ju=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Yu=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(us)})),Zu,Qu,$u=t((()=>{o(),G(),Ra(),en(),Zu=function(e){i(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){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),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=T(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=T(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),Zu.prototype.type=`group`,Qu=Zu})),ed,td,nd,rd=t((()=>{o(),ds(),ed=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),td=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new ed},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}(us),td.prototype.type=`circle`,nd=td})),id,ad,od,sd=t((()=>{o(),ds(),id=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),ad=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new id},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}(us),ad.prototype.type=`ellipse`,od=ad}));function cd(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<Sd))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function ld(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/yd(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)*yd(bd(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 ud(e){var t;if(F(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 dd(e,t){var n,r=bd(t.r,0),i=bd(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=vd(c-s),p=f>pd&&f%pd;if(p>Sd&&(f=p),!(r>Sd))e.moveTo(l,u);else if(f>pd-Sd)e.moveTo(l+r*hd(s),u+r*md(s)),e.arc(l,u,r,s,c,!d),i>Sd&&(e.moveTo(l+i*hd(c),u+i*md(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*hd(s),j=r*md(s),M=i*hd(c),ee=i*md(c),N=f>Sd;if(N){var te=t.cornerRadius;te&&(n=ud(te),m=n[0],h=n[1],g=n[2],_=n[3]);var P=vd(r-i)/2;if(v=xd(P,g),y=xd(P,_),b=xd(P,m),x=xd(P,h),w=S=bd(v,y),T=C=bd(b,x),(S>Sd||C>Sd)&&(E=r*hd(c),D=r*md(c),O=i*hd(s),k=i*md(s),f<fd)){var F=cd(A,j,O,k,E,D,M,ee);if(F){var I=A-F[0],L=j-F[1],ne=E-F[0],R=D-F[1],z=1/md(gd((I*ne+L*R)/(yd(I*I+L*L)*yd(ne*ne+R*R)))/2),re=yd(F[0]*F[0]+F[1]*F[1]);w=xd(S,(r-re)/(z+1)),T=xd(C,(i-re)/(z-1))}}}if(!N)e.moveTo(l+A,u+j);else if(w>Sd){var ie=xd(g,w),ae=xd(_,w),B=ld(O,k,A,j,r,ie,d),V=ld(E,D,M,ee,r,ae,d);e.moveTo(l+B.cx+B.x0,u+B.cy+B.y0),w<S&&ie===ae?e.arc(l+B.cx,u+B.cy,w,_d(B.y0,B.x0),_d(V.y0,V.x0),!d):(ie>0&&e.arc(l+B.cx,u+B.cy,ie,_d(B.y0,B.x0),_d(B.y1,B.x1),!d),e.arc(l,u,r,_d(B.cy+B.y1,B.cx+B.x1),_d(V.cy+V.y1,V.cx+V.x1),!d),ae>0&&e.arc(l+V.cx,u+V.cy,ae,_d(V.y1,V.x1),_d(V.y0,V.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d);if(!(i>Sd)||!N)e.lineTo(l+M,u+ee);else if(T>Sd){var ie=xd(m,T),ae=xd(h,T),B=ld(M,ee,E,D,i,-ae,d),V=ld(A,j,O,k,i,-ie,d);e.lineTo(l+B.cx+B.x0,u+B.cy+B.y0),T<C&&ie===ae?e.arc(l+B.cx,u+B.cy,T,_d(B.y0,B.x0),_d(V.y0,V.x0),!d):(ae>0&&e.arc(l+B.cx,u+B.cy,ae,_d(B.y0,B.x0),_d(B.y1,B.x1),!d),e.arc(l,u,i,_d(B.cy+B.y1,B.cx+B.x1),_d(V.cy+V.y1,V.cx+V.x1),d),ie>0&&e.arc(l+V.cx,u+V.cy,ie,_d(V.y1,V.x1),_d(V.y0,V.x0),!d))}else e.lineTo(l+M,u+ee),e.arc(l,u,i,c,s,d)}e.closePath()}}}var fd,pd,md,hd,gd,_d,vd,yd,bd,xd,Sd,Cd=t((()=>{G(),fd=Math.PI,pd=fd*2,md=Math.sin,hd=Math.cos,gd=Math.acos,_d=Math.atan2,vd=Math.abs,yd=Math.sqrt,bd=Math.max,xd=Math.min,Sd=1e-4})),wd,Td,Ed,Dd=t((()=>{o(),ds(),Cd(),wd=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}(),Td=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new wd},t.prototype.buildPath=function(e,t){dd(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(us),Td.prototype.type=`sector`,Ed=Td})),Od,kd,Ad,jd=t((()=>{o(),ds(),Od=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),kd=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Od},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}(us),kd.prototype.type=`ring`,Ad=kd}));function Md(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++)sr(u,u,e[f]),cr(d,d,e[f]);sr(u,u,r[0]),cr(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(Wn(e[f]));continue}else c=e[f-1],l=e[f+1];Jn(a,l,c),er(a,a,t);var h=nr(m,c),g=nr(m,l),_=h+g;_!==0&&(h/=_,g/=_),er(o,a,-h),er(s,a,g);var v=Kn([],m,o),y=Kn([],m,s);r&&(cr(v,v,u),sr(v,v,d),cr(y,y,u),sr(y,y,d)),i.push(v),i.push(y)}return n&&i.push(i.shift()),i}var Nd=t((()=>{pr()}));function Pd(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=Md(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 Fd=t((()=>{Nd()})),Id,Ld,Rd,zd=t((()=>{o(),ds(),Fd(),Id=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Ld=function(e){i(t,e);function t(t){return e.call(this,t)||this}return t.prototype.getDefaultShape=function(){return new Id},t.prototype.buildPath=function(e,t){Pd(e,t,!0)},t}(us),Ld.prototype.type=`polygon`,Rd=Ld})),Bd,Vd,Hd,Ud=t((()=>{o(),ds(),Fd(),Bd=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Vd=function(e){i(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 Bd},t.prototype.buildPath=function(e,t){Pd(e,t,!1)},t}(us),Vd.prototype.type=`polyline`,Hd=Vd})),Wd,Gd,Kd,qd,Jd=t((()=>{o(),ds(),Os(),Wd={},Gd=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Kd=function(e){i(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 Gd},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=ws(Wd,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}(us),Kd.prototype.type=`line`,qd=Kd}));function Yd(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?Mr:jr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?Mr:jr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?zr:Rr)(e.x1,e.cpx1,e.x2,t),(n?zr:Rr)(e.y1,e.cpy1,e.y2,t)]}var Xd,Zd,Qd,$d,ef=t((()=>{o(),ds(),pr(),ei(),Xd=[],Zd=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}(),Qd=function(e){i(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 Zd},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&&(Hr(n,o,i,u,Xd),o=Xd[1],i=Xd[2],Hr(r,s,a,u,Xd),s=Xd[1],a=Xd[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(Fr(n,o,c,i,u,Xd),o=Xd[1],c=Xd[2],i=Xd[3],Fr(r,s,l,a,u,Xd),s=Xd[1],l=Xd[2],a=Xd[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return Yd(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=Yd(this.shape,e,!0);return tr(t,t)},t}(us),Qd.prototype.type=`bezier-curve`,$d=Qd})),tf,nf,rf,af=t((()=>{o(),ds(),tf=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}(),nf=function(e){i(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 tf},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}(us),nf.prototype.type=`arc`,rf=nf})),of,sf,cf=t((()=>{o(),ds(),of=function(e){i(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),us.prototype.getBoundingRect.call(this)},t}(us),sf=of})),lf,uf,df=t((()=>{lf=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),uf=lf})),ff,pf,mf=t((()=>{o(),df(),ff=function(e){i(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}(uf),pf=ff})),hf,gf,_f=t((()=>{o(),df(),hf=function(e){i(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}(uf),gf=hf})),vf,yf,bf,xf,Sf,Cf,wf,Tf,Ef,Df,Of=t((()=>{Ft(),en(),vf=Math.min,yf=Math.max,bf=Math.abs,xf=[0,0],Sf=[0,0],Cf=Lt(),wf=Cf.minTv,Tf=Cf.maxTv,Ef=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new q;for(var n=0;n<2;n++)this._axes[n]=new q;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);q.sub(r[0],n[1],n[0]),q.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&&q.set(t,0,0),Cf.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||!i&&!Cf.negativeSize&&q.copy(t,r?Cf.useDir?Cf.dirMinTv:wf:Tf),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,xf),e._getProjMinMaxOnAxis(a,t._corners,Sf),Cf.negativeSize||xf[1]<Sf[0]||xf[0]>Sf[1]){if(i=!1,Cf.negativeSize||n)return i;var s=bf(Sf[0]-xf[1]),c=bf(xf[0]-Sf[1]);vf(s,c)>Tf.len()&&(s<c?q.scale(Tf,o,-s*r):q.scale(Tf,o,c*r))}else if(!n){var s=bf(Sf[0]-xf[1]),c=bf(xf[0]-Sf[1]);(Cf.useDir||vf(s,c)<wf.len())&&((s<c||!Cf.bidirectional)&&(q.scale(wf,o,s*r),Cf.useDir&&Cf.calcDirMTV()),(s>=c||!Cf.bidirectional)&&(q.scale(wf,o,-c*r),Cf.useDir&&Cf.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=vf(l,o),s=yf(l,s)}n[0]=o+Cf.touchThreshold,n[1]=s-Cf.touchThreshold,Cf.negativeSize=n[1]<n[0]},e}(),Df=Ef})),kf,Af,jf,Mf=t((()=>{o(),Ya(),en(),kf=[],Af=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,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.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(kf)),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}(Ja),jf=Af}));function Nf(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=H(r.duration,200),u=H(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)),I(d)&&(d=d(n,i)),I(l)&&(l=l(n)),{duration:l||0,delay:d,easing:u}}else return null}function Pf(e,t,n,r,i,a,o){var s=!1,c;I(i)?(o=a,a=i,i=null):z(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=Nf(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 Ff(e,t,n,r,i,a){Pf(`update`,e,t,n,r,i,a)}function If(e,t,n,r,i,a){Pf(`enter`,e,t,n,r,i,a)}function Lf(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 Rf(e,t,n,r,i,a){Lf(e)||Pf(`leave`,e,t,n,r,i,a)}function zf(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),Rf(e,{style:{opacity:0}},t,n,r)}function Bf(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||zf(e,t,n,r)}):zf(e,t,n,r)}var Vf=t((()=>{G(),X(),cl()})),Hf=n({Arc:()=>rf,BezierCurve:()=>$d,BoundingRect:()=>J,Circle:()=>nd,CompoundPath:()=>sf,Ellipse:()=>od,Group:()=>Qu,Image:()=>bs,IncrementalDisplayable:()=>jf,Line:()=>qd,LinearGradient:()=>pf,OrientedBoundingRect:()=>Df,Path:()=>us,Point:()=>q,Polygon:()=>Rd,Polyline:()=>Hd,RadialGradient:()=>gf,Rect:()=>Ms,Ring:()=>Ad,Sector:()=>Ed,Text:()=>Qs,WH:()=>Ep,XY:()=>Tp,applyTransform:()=>ep,calcZ2Range:()=>xp,clipPointsByRect:()=>ap,clipRectByRect:()=>op,createIcon:()=>sp,ensureCopyRect:()=>vp,ensureCopyTransform:()=>yp,expandOrShrinkRect:()=>fp,extendPath:()=>Wf,extendShape:()=>Uf,getShapeClass:()=>Kf,getTransform:()=>$f,groupTransition:()=>ip,initProps:()=>If,isBoundingRectAxisAligned:()=>_p,isElementRemoved:()=>Lf,lineLineIntersect:()=>lp,linePolygonIntersect:()=>cp,makeImage:()=>Jf,makePath:()=>qf,mergePath:()=>Op,registerShape:()=>Gf,removeElement:()=>Rf,removeElementWithFadeOut:()=>Bf,resizePath:()=>Xf,retrieveZInfo:()=>bp,setTooltipConfig:()=>mp,subPixelOptimize:()=>kp,subPixelOptimizeLine:()=>Zf,subPixelOptimizeRect:()=>Qf,transformDirection:()=>tp,traverseElements:()=>gp,traverseUpdateZ:()=>Sp,updateProps:()=>Ff});function Uf(e){return us.extend(e)}function Wf(e,t){return Dp(e,t)}function Gf(e,t){wp[e]=t}function Kf(e){if(wp.hasOwnProperty(e))return wp[e]}function qf(e,t,n,r){var i=Bu(e,t);return n&&(r===`center`&&(n=Yf(n,i.getBoundingRect())),Xf(i,n)),i}function Jf(e,t,n){var r=new bs({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(Yf(t,i))}}});return r}function Yf(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}}function Xf(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function Zf(e,t){return ws(e,e,{lineWidth:t}),e}function Qf(e,t){return Ts(e,e,t),e}function $f(e,t){for(var n=Tt([]);e&&e!==t;)Dt(n,e.getLocalTransform(),n),e=e.parent;return n}function ep(e,t,n){return t&&!O(t)&&(t=wr.getLocalTransform(t)),n&&(t=jt([],t)),or([],e,t)}function tp(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:kc(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:kc(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=ep(a,t,n),kc(a[0])>kc(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function np(e){return!e.isGroup}function rp(e){return e.shape!=null}function ip(e,t,n){if(!e||!t)return;function r(e){var t={};return e.traverse(function(e){np(e)&&e.anid&&(t[e.anid]=e)}),t}function i(e){var t={x:e.x,y:e.y,rotation:e.rotation};return rp(e)&&(t.shape=b(e.shape)),t}var a=r(e);t.traverse(function(e){if(np(e)&&e.anid){var t=a[e.anid];if(t){var r=i(e);e.attr(i(t)),Ff(e,r,n,Z(e).dataIndex)}}})}function ap(e,t){return A(e,function(e){var n=e[0];n=Oc(n,t.x),n=Dc(n,t.x+t.width);var r=e[1];return r=Oc(r,t.y),r=Dc(r,t.y+t.height),[n,r]})}function op(e,t){var n=Oc(e.x,t.x),r=Dc(e.x+e.width,t.x+t.width),i=Oc(e.y,t.y),a=Dc(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 sp(e,t,n){var r=C({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),w(i,n),new bs(r)):qf(e.replace(`path://`,``),r,n,`center`)}function cp(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(lp(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function lp(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=up(u,d,c,l);if(dp(f))return!1;var p=e-i,m=t-a,h=up(p,m,c,l)/f;if(h<0||h>1)return!1;var g=up(p,m,u,d)/f;return!(g<0||g>1)}function up(e,t,n,r){return e*r-n*t}function dp(e){return e<=1e-6&&e>=-1e-6}function fp(e,t,n,r,i){return t==null?e:(R(t)?Ap[0]=Ap[1]=Ap[2]=Ap[3]=t:(Ap[0]=t[0],Ap[1]=t[1],Ap[2]=t[2],Ap[3]=t[3]),r&&(Ap[0]=Oc(0,Ap[0]),Ap[1]=Oc(0,Ap[1]),Ap[2]=Oc(0,Ap[2]),Ap[3]=Oc(0,Ap[3])),n&&(Ap[0]=-Ap[0],Ap[1]=-Ap[1],Ap[2]=-Ap[2],Ap[3]=-Ap[3]),pp(e,Ap,`x`,`width`,3,1,i&&i[0]||0),pp(e,Ap,`y`,`height`,0,2,i&&i[1]||0),e)}function pp(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=Oc(0,Dc(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:kc(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function mp(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=L(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&&k(N(c),function(e){be(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Z(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:w({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function hp(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function gp(e,t){if(e)if(F(e))for(var n=0;n<e.length;n++)hp(e[n],t);else hp(e,t)}function _p(e){return!e||kc(e[1])<jp&&kc(e[2])<jp||kc(e[0])<jp&&kc(e[3])<jp}function vp(e,t){return e?J.copy(e,t):t.clone()}function yp(e,t){return t?Et(e||wt(),t):void 0}function bp(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function xp(e){var t=-1/0,n=1/0;hp(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 Sp(e,t,n){Cp(e,t,n,-1/0)}function Cp(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=Oc(Cp(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=Oc(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}var wp,Tp,Ep,Dp,Op,kp,Ap,jp,Mp=t((()=>{Xu(),Nt(),pr(),ds(),Tr(),xs(),$u(),$s(),rd(),sd(),Dd(),jd(),zd(),Ud(),Ns(),Jd(),ef(),af(),cf(),mf(),_f(),en(),Of(),Ft(),Mf(),Os(),G(),Sl(),Vf(),Nc(),wp={},Tp=[`x`,`y`],Ep=[`width`,`height`],Dp=Vu,Op=Hu,kp=Es,Ap=[0,0,0,0],jp=1e-5,Gf(`circle`,nd),Gf(`ellipse`,od),Gf(`sector`,Ed),Gf(`ring`,Ad),Gf(`polygon`,Rd),Gf(`polyline`,Hd),Gf(`rect`,Ms),Gf(`line`,qd),Gf(`bezierCurve`,$d),Gf(`arc`,rf)}));function Np(e,t){for(var n=0;n<vu.length;n++){var r=vu[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 Pp(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??=I(e.defaultText)?e.defaultText(i,e,n):e.defaultText;for(var c={normal:s},l=0;l<vu.length;l++){var u=vu[l],d=t[u];c[u]=H(r?r.getFormattedLabel(i,u,null,a,d&&d.get(`formatter`)):null,s)}return c}function Fp(e,t,n,r){n||=Wp;for(var i=e instanceof Qs,a=!1,o=0;o<yu.length;o++){var s=t[yu[o]];if(s&&s.getShallow(`show`)){a=!0;break}}var c=i?e:e.getTextContent();if(a){i||(c||(c=new Qs,e.setTextContent(c)),e.stateProxy&&(c.stateProxy=e.stateProxy));var l=Pp(n,t),u=t.normal,d=!!u.getShallow(`show`),f=Lp(u,r&&r.normal,n,!1,!i);f.text=l.normal,i||e.setTextConfig(Rp(u,n,!1));for(var o=0;o<vu.length;o++){var p=vu[o],s=t[p];if(s){var m=c.ensureState(p),h=!!H(s.getShallow(`show`),d);if(h!==d&&(m.ignore=!h),m.style=Lp(s,r&&r[p],n,!0,!i),m.style.text=l[p],!i){var g=e.ensureState(p);g.textConfig=Rp(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&&(Jp(c).setLabelText=function(e){var r=Pp(n,t,e);Np(c,r)})}else c&&(c.ignore=!0);e.dirty()}function Ip(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<vu.length;r++){var i=vu[r];n[i]=e.getModel([i,t])}return n}function Lp(e,t,n,r,i){var a={};return zp(a,e,n,r,i),t&&C(a,t),a}function Rp(e,t,n){t||={};var r={},i,a=e.getShallow(`rotate`),o=H(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 zp(e,t,n,r,i){n||=Wp;var a=t.ecModel,o=a&&a.option.textStyle,s=Bp(t),c;if(s){c={};var l=`richInheritPlainLabel`,u=H(t.get(l),a?a.get(l):void 0);for(var d in s)if(s.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);Vp(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=R(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=Yp.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=de(_),h.__marginType=Yp.textMargin)}Vp(e,t,o,null,null,n,r,i,!0,!1)}function Bp(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Wp).rich;if(n){t||={};for(var r=N(n),i=0;i<r.length;i++){var a=r[i];t[a]=1}}e=e.parentModel}return t}function Vp(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Wp;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=H(t.getShallow(`opacity`),n.opacity);(d===`inherit`||d===`auto`)&&(d=u||null),(f===`inherit`||f===`auto`)&&(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=H(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=H(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=H(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;_<Gp.length;_++){var v=Gp[_],y=i!==!1&&r?le(t.getShallow(v),r.getShallow(v),n[v]):H(t.getShallow(v),n[v]);y!=null&&(e[v]=y)}for(var _=0;_<Kp.length;_++){var v=Kp[_],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;_<qp.length;_++){var v=qp[_],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&&(e.backgroundColor=u),(e.borderColor===`auto`||e.borderColor===`inherit`)&&u&&(e.borderColor=u)}}function Hp(e,t){var n=t&&t.getModel(`textStyle`);return pe([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(` `))}function Up(e,t,n,r,i){var a=Jp(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=H(a.interpolatedValue,a.prevValue),c=a.value;function l(r){var l=hl(n,a.precision,s,c,r);a.interpolatedValue=r===1?null:l,Np(e,Pp({labelDataIndex:t,labelFetcher:i,defaultText:o?o(l):l+``},a.statesModels,l))}e.percent=0,(a.prevValue==null?If:Ff)(e,{percent:1},r,t,null,l)}var Wp,Gp,Kp,qp,Jp,Yp,Xp=t((()=>{$s(),G(),Eu(),X(),Mp(),Wp={},Gp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],Kp=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],qp=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],Jp=cl(),Yp={minMargin:1,textMargin:2}})),Zp,Qp,$p,em,tm,nm=t((()=>{Xp(),$s(),Zp=[`textStyle`,`color`],Qp=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],$p=new Qs,em=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(Zp):null)},e.prototype.getFont=function(){return Hp({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<Qp.length;n++)t[Qp[n]]=this.getShallow(Qp[n]);return $p.useStyle(t),$p.update(),$p.getBoundingRect()},e}(),tm=em})),rm,im,am,om=t((()=>{st(),rm=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],im=ot(rm),am=function(){function e(){}return e.prototype.getLineStyle=function(e){return im(this,e)},e}()})),sm,cm,lm,um=t((()=>{st(),sm=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],cm=ot(sm),lm=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return cm(this,e,t)},e}()})),dm,fm,pm=t((()=>{We(),at(),dt(),nm(),om(),um(),G(),dm=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){x(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(b(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(!K.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}(),Je(dm),Ze(dm),D(dm,am),D(dm,lm),D(dm,ut),D(dm,tm),fm=dm}));function mm(e){return e==null?0:e.length||1}function hm(e){return e}var gm,_m,vm=t((()=>{gm=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||hm,this._newKeyGetter=r||hm,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=mm(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=mm(c),d=mm(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=mm(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=mm(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),_m=gm})),ym,bm,xm,Sm,Cm,wm,Tm,Em,Dm=t((()=>{G(),ym=U([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),bm=`original`,xm=`arrayRows`,Sm=`objectRows`,Cm=`keyedColumns`,wm=`typedArray`,Tm=`unknown`,Em=`column`}));function Om(e){Fm(e).datasetMap=U()}function km(e,t,n){var r={},i=Am(t);if(!i||!e)return r;var a=[],o=[],s=t.ecModel,c=Fm(s).datasetMap,l=i.uid+`_`+n.seriesLayoutBy,u,d;e=e.slice(),k(e,function(t,n){var i=z(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});k(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 Am(e){if(!e.get(`data`,!0))return dl(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},bl).models[0]}function jm(e){return!e.get(`transform`,!0)&&!e.get(`fromTransformResult`,!0)?[]:dl(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},bl).models}function Mm(e,t){return Nm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Nm(e,t,n,r,i,a){var o,s=5;if(ie(e))return Pm.Not;var c,l;if(r){var u=r[a];z(u)?(c=u.name,l=u.type):L(u)&&(c=u)}if(l!=null)return l===`ordinal`?Pm.Must:Pm.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 Pm.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 Pm.Not;var f=_[c];if(!f||ie(f))return Pm.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=Wc(g);if(!F(y))return Pm.Not;if((o=b(y[a]))!=null)return o}function b(e){var t=L(e);if(e!=null&&Number.isFinite(Number(e))&&e!==``)return t?Pm.Might:Pm.Not;if(t&&e!==`-`)return Pm.Must}return Pm.Not}var Pm,Fm,Im=t((()=>{X(),G(),Dm(),Pm={Must:1,Might:2,Not:3},Fm=cl()}));function Lm(e){return e instanceof qm}function Rm(e,t,n){n||=Vm(e);var r=t.seriesLayoutBy,i=Hm(e,n,r,t.sourceHeader,t.dimensions);return new qm({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:b(t)})}function zm(e){return new qm({data:e,sourceFormat:ie(e)?wm:bm})}function Bm(e){return new qm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:b(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Vm(e){var t=Tm;if(ie(e))t=wm;else if(F(e)){e.length===0&&(t=xm);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(F(i)||ie(i)){t=xm;break}else if(z(i)){t=Sm;break}}}}else if(z(e)){for(var a in e)if(be(e,a)&&O(e[a])){t=Cm;break}}return t}function Hm(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:Wm(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?Gm(function(e){e!=null&&e!==`-`&&(L(e)?o??=1:o=0)},n,s,10):o=R(r)?r:r?1:0,!i&&o===1&&(i=[],Gm(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||=Um(e);else if(t===`keyedColumns`)i||(i=[],k(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Wc(e[0]);a=F(c)&&c.length||1}return{startIndex:o,dimensionsDefine:Wm(i),dimensionsDetectedCount:a}}function Um(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return N(n)}function Wm(e){if(e){var t=U();return A(e,function(e,n){e=z(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 Gm(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 Km(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var qm,Jm=t((()=>{G(),Dm(),X(),Im(),qm=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&&Mm(this,n)===Pm.Must&&(r.type=`ordinal`)}}return e}()}));function Ym(e,t){return lh[Qm(e,t)]}function Xm(e,t){return dh[Qm(e,t)]}function Zm(e){return ph[e]}function Qm(e,t){return e===`arrayRows`?e+`_`+t:e}function $m(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 Zm(a)(r,o,s)}else{var c=r;return a===`original`&&(c=Wc(r)),c}}}}var eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh=t((()=>{G(),X(),Jm(),Dm(),Bc(),oh=function(){function e(e,t){var n=Lm(e)?e:zm(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),ah(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;ah=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine,u=ih[Qm(o,s)];C(e,u),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=W(Ym(o,s),null,i,c,l),e.count=W(Xm(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};ih=(e={},e[xm+`_`+Em]={pure:!0,appendData:i},e[xm+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Sm]={pure:!0,appendData:i},e[Cm]={pure:!0,appendData:function(e){var t=this._data;k(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[bm]={appendData:i},e[wm]={persistent:!1,pure:!0,appendData:function(e){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}(),sh=function(e){F(e)||Fc(`series.data or dataset.source must be an array.`)},eh={},eh[xm+`_`+Em]=sh,eh[xm+`_row`]=sh,eh[Sm]=sh,eh[Cm]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Fc(`dimension name must not be null/undefined.`)},eh[bm]=sh,ch=function(e,t,n,r){return e[r]},lh=(th={},th[xm+`_`+Em]=function(e,t,n,r){return e[r+t]},th[xm+`_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},th[Sm]=ch,th[Cm]=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},th[bm]=ch,th),uh=function(e,t,n){return e.length},dh=(nh={},nh[xm+`_`+Em]=function(e,t,n){return Math.max(0,e.length-t)},nh[xm+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},nh[Sm]=uh,nh[Cm]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},nh[bm]=uh,nh),fh=function(e,t,n){return e[t]},ph=(rh={},rh[xm]=fh,rh[Sm]=function(e,t,n){return e[n]},rh[Cm]=fh,rh[bm]=function(e,t,n){var r=Wc(e);return r instanceof Array?r[t]:r},rh[wm]=fh,rh)}));function hh(e,t){var n={},r=n.encode={},i=U(),a=[],o=[],s={};k(e.dimensions,function(t){var n=e.getDimensionInfo(t),c=n.coordDim;if(c){var l=n.coordDimIndex;gh(r,c)[l]=t,n.isExtraCoord||(i.set(c,1),vh(n.type)&&(a[0]=t),gh(s,c)[l]=e.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(t)}ym.each(function(e,t){var i=gh(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=A(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 yh(s,t),n}function gh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function _h(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}function vh(e){return!(e===`ordinal`||e===`time`)}var yh,bh=t((()=>{G(),Dm(),yh=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}()})),xh,Sh,Ch=t((()=>{G(),xh=function(){function e(e){this.otherDims={},e!=null&&C(this,e)}return e}(),Sh=xh}));function wh(e,t){var n=t&&t.type;return n===`ordinal`?e:(n===`time`&&!R(e)&&e!=null&&e!==`-`&&(e=+mc(e)),e==null||e===``?NaN:Number(e))}var Th,Eh,Dh=t((()=>{Nc(),G(),Bc(),U({number:function(e){return parseFloat(e)},time:function(e){return+mc(e)},trim:function(e){return L(e)?pe(e):e}}),Th={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){R(t)||Ic(``),this._opFn=Th[e],this._rvalFloat=bc(t)}return e.prototype.evaluate=function(e){return R(e)?this._opFn(e,this._rvalFloat):this._opFn(bc(e),this._rvalFloat)},e}(),Eh=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=R(e)?e:bc(e),r=R(t)?t:bc(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=L(e),s=L(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=bc(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=bc(e)===this._rvalFloat)}return this._isEQ?t:!t},e}()}));function Oh(e){return e>65535?Nh:Ph}function kh(){return[1/0,-1/0]}function Ah(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function jh(e,t,n,r,i){var a=Lh[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 Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh=t((()=>{G(),Dh(),Jm(),Mh=`undefined`,Nh=typeof Uint32Array===Mh?Array:Uint32Array,Ph=typeof Uint16Array===Mh?Array:Uint16Array,Fh=typeof Int32Array===Mh?Array:Int32Array,Ih=typeof Float64Array===Mh?Array:Float64Array,Lh={float:Ih,int:Fh,ordinal:Array,number:Array,time:Ih},zh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=U()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=Rh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],Km(r),this._dimensions=A(t,function(e){return{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 Lh[t||`float`](this._rawCount),this._rawExtent[i]=kh(),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]=kh());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){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];jh(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=Rh.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=A(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=kh()),jh(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)});var n=t.sort(function(e,t){return e-t}),r=this.count();return r===0?0:r%2==1?n[(r-1)/2]:(n[r/2]+n[r/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=Oh(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(Oh(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=N(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Oh(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]]=kh();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(Oh(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(Oh(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]=kh(),d=new(Oh(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++)o[m]=c[this.getRawIndex(p+m)];var h=n(o),g=this.getRawIndex(Math.min(p+r(o,h)||0,l-1));c[g]=h,h<u[0]&&(u[0]=h),h>u[1]&&(u[1]=h),d[f++]=g}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){var t=this._chunks[e],n=kh();if(!t)return n;var r=this.count(),i=!this._indices,a;if(i)return this._rawExtent[e].slice();if(a=this._extent[e],a)return a.slice();a=n;for(var o=a[0],s=a[1],c=0;c<r;c++){var l=t[this.getRawIndex(c)];l<o&&(o=l),l>s&&(s=l)}return a=[o,s],this._extent[e]=a,a},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&&j(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Ah(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=b(this._extent),e._rawExtent=b(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 wh(e[r],this._dimensions[r])}Rh={arrayRows:e,objectRows:function(e,t,n,r){return wh(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return wh(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Bh=zh}));function Hh(e){return e instanceof Jh}function Uh(e){for(var t=U(),n=0;n<(e||[]).length;n++){var r=e[n],i=z(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function Wh(e){var t=Kh(e);return t.dimNameMap||=Uh(e.dimensionsDefine)}function Gh(e){return e>30}var Kh,qh,Jh,Yh=t((()=>{G(),X(),Jm(),Kh=cl(),qh={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},Jh=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||=Wh(this.source))},e.prototype.getSourceDimensionIndex=function(e){return H(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=Km(this.source),n=!Gh(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+=qh[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}()})),Xh,Zh,Qh,$h,eg,tg,ng,rg,ig,ag,og,sg,cg,lg,ug,dg,fg=t((()=>{G(),pm(),vm(),mh(),bh(),Ch(),Dm(),X(),Sl(),Jm(),Vh(),Yh(),Xh=z,Zh=A,Qh=typeof Int32Array>`u`?Array:Int32Array,$h=`e\0\0`,eg=-1,tg=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],ng=[`_approximateExtent`],ug=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;Hh(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=L(u)?new Sh({name:u}):u instanceof Sh?u:new Sh(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]=[]);var m=l;R(d.storeDimIndex)&&(m=d.storeDimIndex),p.itemName===0&&(this._nameDimIdx=m),p.itemId===0&&(this._idDimIdx=m),r&&(d.storeDimIndex=l)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=t,this._invertedIndicesMap=o,this._dimOmitted){var h=this._dimIdxToName=U();k(a,function(e){h.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(R(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},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 Bh&&(i=e),!i){var a=this.dimensions,o=Lm(e)||O(e)?new oh(e,a.length):e;i=new Bh;var s=Zh(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=hh(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&&lg(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&&Gc(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=tl(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=tl(l,null))}}if(this._shouldMakeIdFromName())for(var o=e;o<t;o++)lg(this,o);rg(this)}},e.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){Xh(e)?C(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=ag(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 ig(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))},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 F(e)?r.getValues(Zh(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],r=n&&n[t];return r==null||isNaN(r)?eg:r},e.prototype.each=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=Zh(og(e),this._getStoreDimIndex,this);this._store.each(i,r?W(t,r):t)},e.prototype.filterSelf=function(e,t,n){I(e)&&(n=t,t=e,e=[]);var r=n||this,i=Zh(og(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?W(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=N(e),i=[];return k(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){I(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){var i=n||r||this,a=Zh(og(e),this._getStoreDimIndex,this),o=cg(this);return o._store=this._store.map(a,i?W(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=Zh(og(e),this._getStoreDimIndex,this);this._store.modify(a,i?W(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=cg(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=cg(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=cg(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 fm(this.getRawDataItem(e),t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new _m(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ig(e,t)},function(e){return ig(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||{},Xh(e)?C(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),F(i)?i=i.slice():Xh(i)&&(i=C({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Xh(t)?C(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Xh(e)?C(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?C(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){xl(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){k(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:Zh(this.dimensions,this._getDimInfo,this),this.hostModel),sg(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];I(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(ue(arguments)))})},e.internalField=function(){rg=function(e){var t=e._invertedIndicesMap;k(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Qh(a.categories.length);for(var s=0;s<n.length;s++)n[s]=eg;for(var s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ag=function(e,t,n){return tl(e._getCategory(t,n),null)},ig=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=ag(e,e._idDimIdx,t)),n??=$h+t,n},og=function(e){return F(e)||(e=e==null?[]:[e]),e},cg=function(t){var n=new e(t._schema?t._schema:Zh(t.dimensions,t._getDimInfo,t),t.hostModel);return sg(n,t),n},sg=function(e,t){k(tg.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,k(ng,function(n){e[n]=b(t[n])}),e._calculationInfo=C({},t._calculationInfo)},lg=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=ag(e,i,t)),s==null&&a!=null&&(r[t]=s=ag(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}(),dg=ug}));function pg(e,t){return mg(e,t).dimensions}function mg(e,t){Lm(e)||(e=zm(e)),t||={};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=U(),a=[],o=gg(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Gh(o),c=r===e.dimensionsDefine,l=c?Wh(e):Uh(r),u=t.encodeDefine;!u&&t.encodeDefaulter&&(u=t.encodeDefaulter(e,o));for(var d=U(u),f=new Fh(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=z(n)?n:{name:n},o=new Sh,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=Hc(e).slice();if(n.length===1&&!L(n[0])&&n[0]<0){d.set(t,!1);return}var r=d.set(t,[]);k(n,function(e,n){var i=L(e)?l.get(e):e;i!=null&&i<o&&(r[n]=i,g(m(i),t,n))})});var h=0;k(n,function(e){var t,n,r,i;if(L(e))t=e,i={};else{i=e,t=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=C({},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=Hc(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++)}k(s,function(e,a){var o=m(e);if(c&&i.type!=null&&(o.type=i.type),g(w(o,i),t,a),o.name==null&&n){var s=n[a];!z(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&w(o.otherDims,r)})}});function g(e,t,n){ym.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)k(a,function(e){x(e)}),a.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var S=0;S<o;S++){var T=m(S);T.coordDim??(T.coordDim=_g(b,i,y),T.coordDimIndex=0,(!_||v<=0)&&(T.isExtraCoord=!0),v--),x(T),T.type==null&&(Mm(e,S)===Pm.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type=`ordinal`)}return hg(a),new Jh({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function hg(e){for(var t=U(),n=0;n<e.length;n++){var r=e[n],i=r.name,a=t.get(i)||0;a>0&&(r.name=i+(a-1)),a++,t.set(i,a)}}function gg(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return k(t,function(e){var t;z(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}function _g(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 vg=t((()=>{Dm(),Ch(),G(),Jm(),Vh(),X(),Im(),Yh()}));function yg(e){var t=e.getShallow(`coord`,!0),n=Cg.coord;if(t==null){var r=wg.get(e.type);r&&r.getCoord2&&(n=Cg.coord2,t=r.getCoord2(e))}return{coord:t,from:n}}var bg,xg,Sg,Cg,wg,Tg,Eg=t((()=>{G(),bg={},xg={},Sg=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){this._nonSeriesBoxMasterList=n(bg,!0),this._normalMasterList=n(xg,!1);function n(n,r){var i=[];return k(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}},e.prototype.update=function(e,t){k(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`){bg[e]=t;return}xg[e]=t},e.get=function(e){return xg[e]||bg[e]},e}(),Cg={coord:1,coord2:2},wg=U(),Tg=Sg}));function Dg(e){var t=e.get(`coordinateSystem`),n=new kg(t),r=Ag[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}function Og(e){return e.get(`type`)===`category`}var kg,Ag,jg=t((()=>{G(),X(),kg=function(){function e(e){this.coordSysDims=[],this.axisMap=U(),this.categoryAxisMap=U(),this.coordSysName=e}return e}(),Ag={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,bl).models[0],a=e.getReferringComponents(`yAxis`,bl).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Og(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Og(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,bl).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Og(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,bl).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Og(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Og(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();k(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Og(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,bl).models[0];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 Mg(e,t,n){n||={};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;Ng(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var c=!!(e&&e.get(`stack`)),l,u,d,f;if(k(a,function(e,t){L(e)&&(a[t]=e={name:e}),c&&!e.isExtraCoord&&(!r&&!l&&e.ordinalMeta&&(l=e),!u&&e.type!==`ordinal`&&e.type!==`time`&&(!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 p=u.coordDim,m=u.type,h=0;k(a,function(e){e.coordDim===p&&h++});var g={name:d,coordDim:p,coordDimIndex:h,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},_={name:f,coordDim:f,coordDimIndex:h+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(f,m),_.storeDimIndex=s.ensureCalculationDimension(d,m)),o.appendCalculationDimension(g),o.appendCalculationDimension(_)):(a.push(g),a.push(_))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:r,stackedOverDimension:f,stackResultDimension:d}}function Ng(e){return!Hh(e.schema)}function Pg(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Fg(e,t){return Pg(e,t)?e.getCalculationInfo(`stackResultDimension`):t}var Ig=t((()=>{G(),Yh()}));function Lg(e,t){var n=e.get(`coordinateSystem`),r=Tg.get(n),i;return t&&t.coordSysDims&&(i=A(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=_h(r.get(`type`))),n})),i||=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||[`x`,`y`],i}function Rg(e,t,n){var r,i;return n&&k(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 zg(e,t,n){n||={};var r=t.getSourceManager(),i,a=!1;e?(a=!0,i=zm(e)):(i=r.getSource(),a=i.sourceFormat===bm);var o=Dg(t),s=Lg(t,o),c=n.useEncodeDefaulter,l=I(c)?c:c?P(km,s,t):null,u={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},d=mg(i,u),f=Rg(d.dimensions,n.createInvertedIndices,o),p=a?null:r.getSharedDataStore(d),m=Mg(t,{schema:d,store:p}),h=new dg(d,t);h.setCalculationInfo(m);var g=f!=null&&Bg(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 Bg(e){if(e.sourceFormat===`original`)return!F(Wc(Vg(e.data||[])))}function Vg(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Hg,Ug=t((()=>{G(),fg(),vg(),bh(),X(),Eg(),jg(),Jm(),Ig(),Im(),Dm(),Hg=zg}));function Wg(e){return[e||``,Jg++].join(`_`)}function Gg(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Ge(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=Ge(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}function Kg(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(k(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]),k(u.successor,d?p:f)}k(c,function(){throw Error(``)});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 k(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),k(c,function(e){T(s.predecessor,e)<0&&s.predecessor.push(e);var t=r(n,e);T(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 k(e,function(e){T(t,e)>=0&&n.push(e)}),n}}function qg(e,t){return x(x({},e,!0),t,!0)}var Jg,Yg=t((()=>{G(),at(),Jg=Math.round(Math.random()*10)}));function Xg(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)/Qg);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]*Xg(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function Zg(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=Xg(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)*Xg(n,7,o===0?1: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 Qg,$g=t((()=>{Qg=Math.log(2)}));function e_(e,t,n,r,i){return n_(c_,t,r,i,!0)&&n_(e,n,c_[0],c_[1])}function t_(e,t){e&&n(e),t&&n(t);function n(e){var t=e[s_];t&&(t.clearMarkers&&t.clearMarkers(),delete e[s_])}}function n_(e,t,n,r,i){if(t.getBoundingClientRect&&K.domSupported&&!a_(t)){var a=t[s_]||(t[s_]={}),o=i_(r_(t,a),a,i);if(o)return o(e,n,r),!0}return!1}function r_(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(){k(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}function i_(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?Zg(s,o):Zg(o,s))}function a_(e){return e.nodeName.toUpperCase()===`CANVAS`}function o_(e){return e==null?``:(e+``).replace(l_,function(e,t){return u_[t]})}var s_,c_,l_,u_,d_=t((()=>{We(),$g(),G(),s_=`___zrEVENTSAVED`,c_=[],l_=/([&<>"'])/g,u_={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`}})),f_,p_=t((()=>{f_={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:`. `}}}}})),m_,h_=t((()=>{m_={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:``}}}}}));function g_(e,t){e=e.toUpperCase(),w_[e]=new fm(t),C_[e]=t}function __(e){if(L(e)){var t=C_[e.toUpperCase()]||{};return e===b_||e===x_?b(t):x(b(t),b(C_[S_]),!1)}else return x(b(e),b(C_[S_]),!1)}function v_(e){return w_[e]}function y_(){return w_[S_]}var b_,x_,S_,C_,w_,T_,E_=t((()=>{pm(),We(),p_(),h_(),G(),b_=`ZH`,x_=`EN`,S_=x_,C_={},w_={},T_=K.domSupported?function(){return(document.documentElement.lang||navigator.language||navigator.browserLanguage||S_).toUpperCase().indexOf(b_)>-1?b_:S_}():S_,g_(x_,f_),g_(b_,m_)}));function D_(){return O_}var O_,k_=t((()=>{O_=null}));function A_(e){return!L(e)&&!I(e)?j_(e):e}function j_(e){e||={};var t={},n=!0;return k(uv,function(t){n&&=e[t]==null}),k(uv,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=uv[s],l=z(a)&&!F(a)?a[c]:a,u=void 0;F(l)?(u=l.slice(),o=u[0]||``):L(l)?(o=l,u=[o]):(o==null?o=ov[r]:av[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}function M_(e,t){return e+=``,`0000`.substr(0,t-e.length)+e}function N_(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 P_(e){return e===N_(e)}function F_(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function I_(e,t,n,r){var i=mc(e),a=i[B_(n)](),o=i[V_(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[H_(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[U_(n)](),d=(u-1)%12+1,f=i[W_(n)](),p=i[G_(n)](),m=i[K_(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof fm?r:v_(r||T_)||y_()).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,M_(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,M_(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,M_(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,M_(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,M_(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,M_(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,M_(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,M_(m,3)).replace(/{S}/g,m+``)}function L_(e,t,n,r,i){var a=null;if(L(n))a=n;else if(I(n)){var o={time:e.time,level:e.time.level},s=D_();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=R_(e.value,i);a=n[u][u][0]}}return I_(new Date(e.value),a,i,r)}function R_(e,t){var n=mc(e),r=n[V_(t)]()+1,i=n[H_(t)](),a=n[U_(t)](),o=n[W_(t)](),s=n[G_(t)](),c=n[K_(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 z_(e,t,n){switch(t){case`year`:e[J_(n)](0);case`month`:e[Y_(n)](1);case`day`:e[X_(n)](0);case`hour`:e[Z_(n)](0);case`minute`:e[Q_(n)](0);case`second`:e[$_(n)](0)}return e}function B_(e){return e?`getUTCFullYear`:`getFullYear`}function V_(e){return e?`getUTCMonth`:`getMonth`}function H_(e){return e?`getUTCDate`:`getDate`}function U_(e){return e?`getUTCHours`:`getHours`}function W_(e){return e?`getUTCMinutes`:`getMinutes`}function G_(e){return e?`getUTCSeconds`:`getSeconds`}function K_(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function q_(e){return e?`setUTCFullYear`:`setFullYear`}function J_(e){return e?`setUTCMonth`:`setMonth`}function Y_(e){return e?`setUTCDate`:`setDate`}function X_(e){return e?`setUTCHours`:`setHours`}function Z_(e){return e?`setUTCMinutes`:`setMinutes`}function Q_(e){return e?`setUTCSeconds`:`setSeconds`}function $_(e){return e?`setUTCMilliseconds`:`setMilliseconds`}var ev,tv,nv,rv,iv,av,ov,sv,cv,lv,uv,dv,fv=t((()=>{G(),Nc(),E_(),pm(),k_(),ev=1e3,tv=ev*60,nv=tv*60,rv=nv*24,iv=rv*365,av={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})/},ov={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},sv=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`,cv=`{yyyy}-{MM}-{dd}`,lv={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:cv,hour:cv+` `+ov.hour,minute:cv+` `+ov.minute,second:cv+` `+ov.second,millisecond:sv},uv=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],dv=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`]}));function pv(e,t,n,r,i,a,o,s){return new Qs({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?`truncate`:null,lineHeight:s}}).getBoundingRect()}var mv=t((()=>{Mp()}));function hv(e){if(!xc(e))return L(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function gv(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}function _v(e,t,n){var r=`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`;function i(e){return e&&pe(e)?e:`-`}function a(e){return!!(e!=null&&!isNaN(e)&&isFinite(e))}var o=t===`time`,s=e instanceof Date;if(o||s){var c=o?mc(e):e;if(isNaN(+c)){if(s)return`-`}else return I_(c,r,n)}if(t===`ordinal`)return ne(e)?i(e):R(e)&&a(e)?e+``:`-`;var l=bc(e);return a(l)?hv(l):ne(e)?i(e):typeof e==`boolean`?e+``:`-`}function vv(e,t,n){F(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Tv[a];e=e.replace(Ev(o),Ev(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(Ev(Tv[c],s),n?o_(l):l)}return e}function yv(e,t){var n=L(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:`+o_(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+o_(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 bv(e,t,n){(e===`week`||e===`month`||e===`quarter`||e===`half-year`||e===`year`)&&(e=`MM-dd
|
|
9
|
+
yyyy`);var r=mc(t),i=n?`getUTC`:`get`,a=r[i+`FullYear`](),o=r[i+`Month`]()+1,s=r[i+`Date`](),c=r[i+`Hours`](),l=r[i+`Minutes`](),u=r[i+`Seconds`](),d=r[i+`Milliseconds`]();return e=e.replace(`MM`,M_(o,2)).replace(`M`,o).replace(`yyyy`,a).replace(`yy`,M_(a%100+``,2)).replace(`dd`,M_(s,2)).replace(`d`,s).replace(`hh`,M_(c,2)).replace(`h`,c).replace(`mm`,M_(l,2)).replace(`m`,l).replace(`ss`,M_(u,2)).replace(`s`,u).replace(`SSS`,M_(d,3)),e}function xv(e){return e&&e.charAt(0).toUpperCase()+e.substr(1)}function Sv(e,t){return t||=`transparent`,L(e)?e:z(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Cv(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var wv,Tv,Ev,Dv=t((()=>{G(),d_(),Nc(),fv(),Bn(),mv(),wv=de,Tv=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Ev=function(e,t){return`{`+e+(t??``)+`}`}}));function Ov(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)})}function kv(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 Av(e,t,n){n=wv(n||0);var r=t.width,i=t.height,a=Ac(e.left,r),o=Ac(e.top,i),s=Ac(e.right,r),c=Ac(e.bottom,i),l=Ac(e.width,r),u=Ac(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;break}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d;break}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}function jv(e,t,n){var r,i,a,o=e.boxCoordinateSystem,s;if(o){var c=yg(e),l=c.coord,u=c.from;if(o.dataToLayout){a=Vv.rect,s=u;var d=o.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&o.dataToPoint&&(a=Vv.point,s=u,i=o.dataToPoint(l))}return a??=Vv.rect,a===Vv.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 Mv(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=Av(w({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 Nv(e){var t=e.layoutMode||e.constructor.layoutMode;return z(t)?t:t?{type:t}:null}function Pv(e,t,n){var r=n&&n.ignoreSize;!F(r)&&(r=[r,r]);var i=o(zv[0],0),a=o(zv[1],1);c(zv[0],e,i),c(zv[1],e,a);function o(n,i){var a={},o=0,c={},l=0,u=2;if(Lv(n,function(t){c[t]=e[t]}),Lv(n,function(e){be(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(!be(a,f)&&be(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){Lv(e,function(e){t[e]=n[e]})}}function Fv(e){return Iv({},e)}function Iv(e,t){return t&&e&&Lv(Rv,function(n){be(t,n)&&(e[n]=t[n])}),e}var Lv,Rv,zv,Bv,Vv,Hv=t((()=>{G(),en(),Nc(),Dv(),Eg(),Lv=k,Rv=[`left`,`right`,`top`,`bottom`,`width`,`height`],zv=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]],Bv=Ov,P(Ov,`vertical`),P(Ov,`horizontal`),Vv={rect:1,point:2}}));function Uv(e){var t=[];return k(Gv.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=A(t,function(e){return Ge(e).main}),e!==`dataset`&&T(t,`dataset`)<=0&&t.unshift(`dataset`),t}var Wv,Gv,Kv,qv=t((()=>{o(),G(),pm(),Yg(),at(),X(),Hv(),Wv=cl(),Gv=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Wg(`ec_cpt_model`),i}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Nv(this),r=n?Fv(e):{};x(e,t.getTheme().get(this.mainType)),x(e,this.getDefaultOption()),n&&Pv(e,r,n)},t.prototype.mergeOption=function(e,t){x(this.option,e,!0);var n=Nv(this);n&&Pv(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!qe(e))return e.defaultOption;var t=Wv(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=x(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return dl(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return kv(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}(fm),Xe(Gv,fm),et(Gv),Gg(Gv),Kg(Gv,Uv),Kv=Gv}));function Jv(e,t,n,r){return Xv(e,$v,Hc(e.get([`aria`,`decal`,`decals`])),null,t,n,r)}function Yv(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 Xv(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:Yv(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 Zv(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Qv,$v,ey,ty=t((()=>{X(),Qv=cl(),$v=cl(),ey=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=Hc(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return Xv(this,Qv,r,i,e,t,n)},e.prototype.clearColorPalette=function(){Zv(this,Qv)},e}()}));function ny(e){var t,n;return z(e)?e.type&&(n=e):t=e,{text:t,frag:n}}var ry,iy,ay=t((()=>{G(),mh(),Dv(),ry=/\{@(.+?)\}/g,iy=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&&F(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),I(i))return s.status=t,s.dimensionIndex=r,i(s);if(L(i))return vv(i,s).replace(ry,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=$m(o,e,i);if(a&&F(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``})},e.prototype.getRawValue=function(e,t){return $m(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}()}));function oy(e){return new sy(e)}var sy,cy,ly=t((()=>{G(),sy=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?this._dueEnd=t._outputDueEnd: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(F(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,this._outputDueEnd=this._settedOutputEnd==null?p:this._settedOutputEnd}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){cy.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:cy.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),F(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){(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}(),cy=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 uy(e,t){var n=new yy,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Ic(``);var o=[],s={},c=e.dimensionsDefine;if(c)k(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(be(s,n)&&Ic(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=Ym(i,Em);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=W(dy,null,e)),n.cloneRawData=W(fy,null,e),n.count=W(Xm(i,Em),null,r,a,o);var d=Zm(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];if(n)return d(e,t,n.name)}};return n.getDimensionInfo=W(py,null,o,s),n.cloneAllDimensionInfo=W(my,null,o),n}function dy(e){var t=e.sourceFormat;return vy(t)||Ic(``),e.data}function fy(e){var t=e.sourceFormat,n=e.data;if(vy(t)||Ic(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}else if(t===`objectRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(C({},n[i]));return r}}function py(e,t,n){if(n!=null){if(R(n)||!isNaN(n)&&!be(t,n))return e[n];if(be(t,n))return t[n]}}function my(e){return b(e)}function hy(e){e=b(e);var t=e.type,n=``;t||Ic(n);var r=t.split(`:`);r.length!==2&&Ic(n);var i=!1;r[0]===`echarts`&&(t=r[1],i=!0),e.__isBuiltIn=i,by.set(t,e)}function gy(e,t,n){var r=Hc(e),i=r.length;i||Ic(``);for(var a=0,o=i;a<o;a++){var s=r[a];t=_y(s,t,n,i===1?null:a),a!==o-1&&(t.length=Math.max(t.length,1))}return t}function _y(e,t,n,r){var i=``;t.length||Ic(i),z(e)||Ic(i);var a=e.type,o=by.get(a);o||Ic(i);var s=A(t,function(e){return uy(e,o)});return A(Hc(o.transform({upstream:s[0],upstreamList:s,config:b(e.config)})),function(e,n){var r=``;z(e)||Ic(r),e.data||Ic(r),vy(Vm(e.data))||Ic(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:Em,sourceHeader:o,dimensions:a.metaRawOption.dimensions}}else i={seriesLayoutBy:Em,sourceHeader:0,dimensions:e.dimensions};return Rm(e.data,i,null)})}function vy(e){return e===`arrayRows`||e===`objectRows`}var yy,by,xy=t((()=>{Dm(),X(),G(),mh(),Dh(),Bc(),Jm(),yy=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 wh(e,t)},e}(),by=U()}));function Sy(e){e.option.transform&&me(e.option.transform)}function Cy(e){return e.mainType===`series`}function wy(e){throw Error(e)}var Ty,Ey=t((()=>{G(),Jm(),Dm(),Im(),xy(),Vh(),mh(),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(Cy(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=ie(o)?wm:bm,i=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=H(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=H(u.sourceHeader,d.sourceHeader),m=H(u.dimensions,d.dimensions);r=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[Rm(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=[Rm(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],i=[]}this._setLocalSource(r,i)},e.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get(`transform`,!0),r=t.get(`fromTransformResult`,!0);r!=null&&e.length!==1&&wy(``);var i,a=[],o=[];return k(e,function(e){e.prepareSource();var t=e.getSource(r||0);r!=null&&!t&&wy(``),a.push(t),o.push(e._getVersionSign())}),n?i=gy(n,a,{datasetIndex:t.componentIndex}):r!=null&&(i=[Bm(a[0])]),{sourceList:i,upstreamSignList:o}},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){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];Cy(this._sourceHost)&&s?o=s._innerGetDataStore(e,t,n):(o=new Bh,o.initData(new oh(t,e.length),e)),a[n]=o}return o},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Cy(e)){var t=Am(e);return t?[t.getSourceManager()]:[]}else return A(jm(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,r;if(Cy(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}()})),Dy,Oy,ky,Q,Ay=t((()=>{for(var e in G(),Li(),Dy={color:{},darkColor:{},size:{}},Oy=Dy.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)`},C(Oy,{primary:Oy.neutral80,secondary:Oy.neutral70,tertiary:Oy.neutral60,quaternary:Oy.neutral50,disabled:Oy.neutral20,border:Oy.neutral30,borderTint:Oy.neutral20,borderShade:Oy.neutral40,background:Oy.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Oy.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Oy.neutral70,axisLineTint:Oy.neutral40,axisTick:Oy.neutral70,axisTickMinor:Oy.neutral60,axisLabel:Oy.neutral70,axisSplitLine:Oy.neutral15,axisMinorSplitLine:Oy.neutral05}),Oy)Oy.hasOwnProperty(e)&&(ky=Oy[e],e===`theme`?Dy.darkColor.theme=Oy.theme.slice():e===`highlight`?Dy.darkColor.highlight=`rgba(255,231,130,0.4)`:e.indexOf(`accent`)===0?Dy.darkColor[e]=Ti(ky,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):Dy.darkColor[e]=Ti(ky,null,function(e){return e*.9},function(e){return 1-e**1.5}));Dy.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50},Q=Dy}));function jy(e){var t=e.lineHeight;return t==null?Jy:`line-height:`+o_(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:`+o_(r+``)+`px;color:`+o_(n)+`;font-weight:`+o_(i+``),valueStyle:`font-size:`+o_(o+``)+`px;color:`+o_(a)+`;font-weight:`+o_(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}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 k(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||[];fe(!s||F(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(be(l,c)){var u=new Eh(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}k(s,function(n,i){var s=t.valueFormatter,c=Fy(n)(s?C(C({},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=_v(t.header,`ordinal`,e.useUTC),p=My(r,e.renderMode).nameStyle,m=jy(r);return e.renderMode===`richText`?Wy(e,f,p)+a.richText+d:Vy(r,`<div style="`+p+`;`+m+`;">`+o_(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=F(e)?e:[e],A(e,function(e,t){return _v(e,F(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:_v(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=My(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:Yy[e],richText:Xy[e]}}function Vy(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=jy(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+`">`+o_(e)+`</span>`}function Uy(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=F(e)?e:[e],`<span style="`+i+`;`+r+`">`+A(e,function(e){return o_(e)}).join(` `)+`</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(F(t)?t.join(` `):t,a)}function Ky(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Sv(n)}function qy(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Jy,Yy,Xy,Zy,Qy=t((()=>{Dv(),G(),Dh(),Nc(),Ay(),Jy=`line-height:1`,Yy=[0,10,20,30],Xy=[``,`
|
|
24
10
|
`,`
|
|
25
11
|
|
|
26
12
|
`,`
|
|
27
13
|
|
|
28
14
|
|
|
29
|
-
`];function Fh(e,t){return t.type=e,t}function Ih(e){return e.type===`section`}function Lh(e){return Ih(e)?zh:Bh}function Rh(e){if(Ih(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return M(e.blocks,function(e){var n=Rh(e);n>=t&&(t=n+ +(r&&(!n||Ih(e)&&!e.noHeader)))}),t}return 0}function zh(e,t,n,r){var i=t.noHeader,a=Hh(Rh(t)),o=[],s=t.blocks||[];fe(!s||L(s)),s||=[];var c=e.orderMode;if(t.sortBlocks&&c){s=s.slice();var l={valueAsc:`asc`,valueDesc:`desc`};if(we(l,c)){var u=new Uf(l[c],null);s.sort(function(e,t){return u.evaluate(e.sortParam,t.sortParam)})}else c===`seriesDesc`&&s.reverse()}M(s,function(n,i){var s=t.valueFormatter,c=Lh(n)(s?E(E({},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):Uh(r,o.join(``),i?n:a.html);if(i)return d;var f=Om(t.header,`ordinal`,e.useUTC),p=Mh(r,e.renderMode).nameStyle,m=jh(r);return e.renderMode===`richText`?Kh(e,f,p)+a.richText+d:Uh(r,`<div style="`+p+`;`+m+`;">`+$p(f)+`</div>`+d,n)}function Bh(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=L(e)?e:[e],N(e,function(e,t){return Om(e,L(p)?p[t]:p,l)})};if(!(a&&o)){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Q.color.secondary,i),f=a?``:Om(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.dataIndex),h=!s||!a,g=!s&&a,_=Mh(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:Kh(e,f,v))+(o?``:qh(e,m,h,g,y)):Uh(r,(s?``:d)+(a?``:Wh(f,!s,v))+(o?``:Gh(m,h,g,y)),n)}}function Vh(e,t,n,r,i,a){if(e)return Lh(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function Hh(e){return{html:Nh[e],richText:Ph[e]}}function Uh(e,t,n){var r=`<div style="clear:both"></div>`,i=`margin: `+n+`px 0 0`,a=jh(e);return`<div style="`+i+`;`+a+`;">`+t+r+`</div>`}function Wh(e,t,n){var r=t?`margin-left:2px`:``;return`<span style="`+n+`;`+r+`">`+$p(e)+`</span>`}function Gh(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=L(e)?e:[e],`<span style="`+i+`;`+r+`">`+N(e,function(e){return $p(e)}).join(` `)+`</span>`}function Kh(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function qh(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(L(t)?t.join(` `):t,a)}function Jh(e,t){var n=e.getData().getItemVisual(t,`style`)[e.visualDrawType];return Nm(n)}function Yh(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var Xh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=qo()}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=Mm({color:t,type:e,renderMode:n,markerId:r});return z(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};L(t)?M(t,function(e){return E(n,e)}):E(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function Zh(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=L(s),l=Jh(t,n),u,d,f,p;if(o>1||c&&!o){var m=Qh(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=Ff(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 Fh(`section`,{header:_,noHeader:r||!g,sortParam:p,blocks:[Fh(`nameValue`,{markerType:`item`,markerColor:l,name:y,noName:!pe(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function Qh(e,t,n,r,i){var a=t.getData(),o=ee(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?M(r,function(e){u(Ff(a,n,e),e)}):M(e,u);function u(e,t){var n=a.getDimensionInfo(t);!n||n.otherDims.tooltip===!1||(o?l.push(Fh(`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 $h=X();function eg(e,t){return e.getName(t)||e.getId(t)}var tg=function(e){n(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=lh({count:ig,reset:ag}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),($h(this).sourceManager=new Ch(this)).prepareSource();var r=this.getInitialData(e,n);sg(r,this),this.dataTask.context.data=r,$h(this).dataBeforeProcessed=r,ng(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Gm(this),r=n?qm(e):{},i=this.subType;Qm.hasClass(i)&&(i+=`Series`),T(e,t.getTheme().get(this.subType)),T(e,this.getDefaultOption()),as(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Km(e,r,n)},t.prototype.mergeOption=function(e,t){e=T(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Gm(this);n&&Km(this.option,e,n);var r=$h(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);sg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,$h(this).dataBeforeProcessed=i,ng(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!U(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&as(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=lg(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return $h(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=lg(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}$h(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return G(e)},t.prototype.getSourceManager=function(){return $h(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return $h(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;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return Zh({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.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=th.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=eg(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=P(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[eg(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?!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`){V(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=eg(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=eg(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 Qm.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}(Qm);A(tg,sh),A(tg,th),Re(tg,Qm);function ng(e){var t=e.name;ys(e)||(e.name=rg(e)||t)}function rg(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return M(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function ig(e){return e.model.getRawData().count()}function ag(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),og}function og(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sg(e,t){M(xe(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,I(cg,t))})}function cg(e,t){var n=lg(e);return n&&n.setOutputEnd((t||this).count()),t}function lg(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 ug=tg,dg=Va.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()}}),fg={line:Gl,rect:io,roundRect:io,square:io,circle:ll,diamond:Va.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:Va.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:Va.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:dg},pg={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}},mg={};M(fg,function(e,t){mg[t]=new e});var hg=Va.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Bt(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=mg[r];i||=(r=`rect`,mg[r]),pg[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function gg(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 _g(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?Nu(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?Mu(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new hg({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=gg,a&&c.setColor(a),c}function vg(e,t){if(e!=null)return L(e)||(e=[e,e]),[Mo(e[0],t[0])||0,Mo(W(e[1],e[0]),t[1])||0]}function yg(){var e=X();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 bg=X(),xg=yg(),Sg=function(){function e(){this.group=new ol,this.uid=Ip(`viewChart`),this.renderTask=lh({plan:Tg,reset:Eg}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&wg(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&wg(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.updateLayout=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){id(this.group,e)},e.markUpdateMethod=function(e,t){bg(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}();function Cg(e,t,n){e&&Mc(e)&&(t===`emphasis`?uc:dc)(e,n)}function wg(e,t,n){var r=ws(e,t),i=t&&t.highlightKey!=null?Nc(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){Cg(e,n,i)}):M(is(r),function(t){Cg(e.getItemGraphicEl(t),n,i)})}Ie(Sg,[`dispose`]),Ue(Sg);function Tg(e){return xg(e.model)}function Eg(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&bg(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Dg[c]}var Dg={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)}}},Og=Sg,kg=`\0__throttleOriginMethod`,Ag=`\0__throttleRate`,jg=`\0__throttleType`;function Mg(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(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):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 Ng(e,t,n,r){var i=e[t];if(i){var a=i[kg]||i,o=i[jg];if(i[Ag]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Mg(a,n,r===`debounce`),i[kg]=a,i[jg]=r,i[Ag]=n}return i}}function Pg(e,t){var n=e[t];n&&n[kg]&&(n.clear&&n.clear(),e[t]=n[kg])}function Fg(e,t,n,r,i){var a=e+t;n.isSilent(a)||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:L(l)?c.getName(l[0]):c.getName(l),selected:z(r)?r:E({},r)})}})}function Ig(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(Fg(`map`,`selectchanged`,t,r,e),Fg(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(Fg(`map`,`selected`,t,r,e),Fg(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(Fg(`map`,`unselected`,t,r,e),Fg(`pie`,`unselected`,t,r,e))})}var Lg=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Rg=1,zg=2,Bg=Rg|zg;function Vg(e,t,n){n||=Bg,t?e.dirty|=n:e.dirty&=~n}function Hg(e,t){return t||=Bg,e.dirty==null||!!(e.dirty&t)}function Ug(e){if(e)return Hg(e)&&Wg(e,e.label,e),e}function Wg(e,t,n){var r=t.getComputedTransform();e.transform=cd(e.transform,r);var i=e.localRect=sd(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=Od.textMargin);for(var d=0;d<4;d++)Gg[d]=u===Od.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Od.textMargin&&$u(i,Gg,!1,!1);var f=e.rect=sd(e.rect,i);return r&&f.applyTransform(r),u===Od.minMargin&&$u(f,Gg,!1,!1),e.axisAligned=ad(r),(e.label=e.label||{}).ignore=t.ignore,Vg(e,!1),Vg(e,!0,zg),e}var Gg=[0,0,0,0];function Kg(e,t,n){return e.transform=cd(e.transform,n),e.localRect=sd(e.localRect,t),e.rect=sd(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=ad(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function qg(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 Jg(e,t){for(var n=0;n<Lg.length;n++){var r=Lg[n];e[r]??(e[r]=t[r])}return Ug(e)}function Yg(e){var t=e.obb;return(!t||Hg(e,zg))&&(e.obb=t||=new fu,t.fromBoundingRect(e.localRect,e.transform),Vg(e,!1,zg)),t}function Xg(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||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=Ug(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Zg(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Zg(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:Yg(e).intersect(Yg(t),n,r)}var Qg=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),$g=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 Qg(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 Qg(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 Qg(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Qg(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Qg(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Qg(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),e_=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,t_=[],n_=K.browser.firefox&&+K.browser.version.split(`.`)[0]<39;function r_(e,t,n,r){return n||={},r?i_(e,t,n):n_&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?i_(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function i_(e,t,n){if(K.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(Xp(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(qp(t_,e,r,i)){n.zrX=t_[0],n.zrY=t_[1];return}}n.zrX=n.zrY=0}function a_(e){return e||window.event}function o_(e,t,n){if(t=a_(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&&r_(e,i,t,n)}else{r_(e,t,t,n);var a=s_(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&e_.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function s_(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=r===0?Math.abs(n):Math.abs(r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function c_(e,t,n,r){e.addEventListener(t,n,r)}function l_(e,t,n,r){e.removeEventListener(t,n,r)}var u_=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function d_(e){return e.which===2||e.which===3}var f_=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=r_(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 h_)if(h_.hasOwnProperty(t)){var n=h_[t](this._track,e);if(n)return n}},e}();function p_(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function m_(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var h_={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=p_(r)/p_(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=m_(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}},g_=`silent`;function __(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:v_}}function v_(){u_(this.event)}var y_=function(e){n(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}(si),b_=function(){function e(e,t){this.x=e,this.y=t}return e}(),x_=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],S_=new J(0,0,0,0),C_=function(e){n(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new b_(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new y_,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new $g(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(x_,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=E_(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 b_(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 b_(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=__(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 b_(e,t);if(T_(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)&&(S_.copy(u.getBoundingRect()),u.transform&&S_.applyTransform(u.transform),S_.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(T_(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 f_;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 b_;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(si);M([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){C_.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=E_(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||yn(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function w_(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?g_:!0}return!1}function T_(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=w_(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==g_)){t.target=o;break}}}function E_(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var D_=C_,O_=32,k_=7;function A_(e){for(var t=0;e>=O_;)t|=e&1,e>>=1;return e+t}function j_(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++;M_(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function M_(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function N_(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 P_(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 F_(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 I_(e,t){var n=k_,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=F_(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=P_(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=F_(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=P_(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>=k_||m>=k_);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-F_(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-P_(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>=k_||g>=k_);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 L_(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<O_){a=j_(e,n,r,t),N_(e,n,r,n+a,t);return}var o=I_(e,t),s=A_(i);do{if(a=j_(e,n,r,t),a<s){var c=i;c>s&&(c=s),N_(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 R_=!1;function z_(){R_||(R_=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function B_(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var V_=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=B_}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,L_(n,B_)},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)&&(z_(),p.z=0),isNaN(p.z2)&&(z_(),p.z2=0),isNaN(p.zlevel)&&(z_(),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=O(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}(),H_=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function U_(){return new Date().getTime()}var W_=function(e){n(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=U_()-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&&(H_(t),!e._paused&&e.update())}H_(t)},t.prototype.start=function(){this._running||(this._time=U_(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=U_(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=U_()-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 oi(e,t.loop);return this.addAnimator(n),n},t}(si),G_=300,K_=K.domSupported,q_=(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:N(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),J_={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},Y_=!1;function X_(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Z_(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 Q_(e){e&&(e.zrByTouch=!0)}function $_(e,t){return o_(e.dom,new tv(e,t),!0)}function ev(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 tv=function(){function e(e,t){this.stopPropagation=Te,this.stopImmediatePropagation=Te,this.preventDefault=Te,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),nv={mousedown:function(e){e=o_(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=o_(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=o_(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=o_(this.dom,e);var t=e.toElement||e.relatedTarget;ev(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Y_=!0,e=o_(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Y_||(e=o_(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=o_(this.dom,e),Q_(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),nv.mousemove.call(this,e),nv.mousedown.call(this,e)},touchmove:function(e){e=o_(this.dom,e),Q_(e),this.handler.processGesture(e,`change`),nv.mousemove.call(this,e)},touchend:function(e){e=o_(this.dom,e),Q_(e),this.handler.processGesture(e,`end`),nv.mouseup.call(this,e),new Date-+this.__lastTouchMoment<G_&&nv.click.call(this,e)},pointerdown:function(e){nv.mousedown.call(this,e)},pointermove:function(e){X_(e)||nv.mousemove.call(this,e)},pointerup:function(e){nv.mouseup.call(this,e)},pointerout:function(e){X_(e)||nv.mouseout.call(this,e)}};M([`click`,`dblclick`,`contextmenu`],function(e){nv[e]=function(t){t=o_(this.dom,t),this.trigger(e,t)}});var rv={pointermove:function(e){X_(e)||rv.mousemove.call(this,e)},pointerup:function(e){rv.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 iv(e,t){var n=t.domHandlers;K.pointerEventsSupported?M(q_.pointer,function(r){ov(t,r,function(t){n[r].call(e,t)})}):(K.touchEventsSupported&&M(q_.touch,function(r){ov(t,r,function(i){n[r].call(e,i),Z_(t)})}),M(q_.mouse,function(r){ov(t,r,function(i){i=a_(i),t.touching||n[r].call(e,i)})}))}function av(e,t){K.pointerEventsSupported?M(J_.pointer,n):K.touchEventsSupported||M(J_.mouse,n);function n(n){function r(r){r=a_(r),ev(e,r.target)||(r=$_(e,r),t.domHandlers[n].call(e,r))}ov(t,n,r,{capture:!0})}}function ov(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,c_(e.domTarget,t,n,r)}function sv(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&l_(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var cv=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),lv=function(e){n(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 cv(t,nv),K_&&(r._globalHandlerScope=new cv(document,rv)),iv(r,r._localHandlerScope),r}return t.prototype.dispose=function(){sv(this._localHandlerScope),K_&&sv(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,K_&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?av(this,t):sv(t)}},t}(si),uv={},dv={};function fv(e){delete dv[e]}function pv(e){if(!e)return!1;if(typeof e==`string`)return Nr(e,1)<ui;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Nr(t[i].color,1);return n/=r,n<ui}return!1}var mv=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new V_,a=n.renderer||`canvas`;uv[a]||(a=P(uv)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new uv[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!K.node&&!K.worker&&!s?new lv(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?K.touchEventsSupported:!!l,d=44,f;u&&(f=W(n.pointerSize,d)),this.handler=new D_(i,o,c,o.root,f),this.animation=new W_({stage:{update:s?null:function(){return r._flush(!0)}}}),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=pv(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=U_();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=U_();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},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 ol&&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,fv(this.id))},e}();function hv(e,t){var n=new mv(S(),e,t);return dv[n.id]=n,n}function gv(e,t){uv[e]=t}var _v=``;typeof navigator<`u`&&(_v=navigator.platform||``);var vv=`rgba(0, 0, 0, 0.2)`,yv=Q.color.theme[0],bv=Ar(yv,null,null,.9),xv={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[bv,yv],aria:{decal:{decals:[{color:vv,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vv,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vv,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vv,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vv,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vv,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:_v.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},Sv=G();function Cv(e,t,n){var r=Sv.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var wv,Tv,Ev,Dv=`\0_ec_inner`,Ov=1,kv=function(e){n(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 Bd(r),this._locale=new Bd(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=Pv(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Pv(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!this.option||e===`recreate`?Ev(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&&M(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=G(),s=t&&t.replaceMergeMainTypeMap;ef(this),M(e,function(e,t){e!=null&&(Qm.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?w(e):T(n[t],e,!0))}),s&&s.each(function(e,t){Qm.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Qm.topologicalTravel(a,Qm.getAllClassMainTypes(),c,this);function c(t){var a=Cv(this,t,is(e[t])),o=r.get(t),c=ls(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);xs(c,t,Qm),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;M(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=Qm.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=E({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),E(r,s),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`&&wv(this)}this._seriesIndices||wv(this)},t.prototype.getOption=function(){var e=w(this.option);return M(e,function(t,n){if(Qm.hasClass(n)){for(var r=is(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[Dv],e},t.prototype.setTheme=function(e){this._theme=new Bd(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?te(a,function(e){return!!e}):Mv(`name`,i,a):Mv(`id`,r,a):(o=[],M(is(n),function(e){a[e]&&o.push(a[e])})),Nv(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(Nv(r?this.queryComponents(r):te(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?te(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(R(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=z(e)?r.get(e):V(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=vs(e,null);return te(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 te(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return te(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){Tv(this),M(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){M(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){Tv(this),M(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 M(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return Tv(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){Tv(this);var n=[];M(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=G(n)},t.prototype.restoreData=function(e){wv(this);var t=this._componentsMap,n=[];t.each(function(e,t){Qm.hasClass(t)&&n.push(t)}),Qm.topologicalTravel(n,Qm.getAllClassMainTypes(),function(n){M(t.get(n),function(t){t&&(n!==`series`||!Av(t,e))&&t.restoreData()})})},t.internalField=function(){wv=function(e){var t=e._seriesIndices=[];M(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=G(t)},Tv=function(e){},Ev=function(e,t){e.option={},e.option[Dv]=Ov,e._componentsMap=G({series:[]}),e._componentsCount=G();var n=t.aria;V(n)&&n.enabled==null&&(n.enabled=!0),jv(t,e._theme.option),T(t,xv,!1),e._mergeOption(t,null)}}(),t}(Bd);function Av(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 jv(e,t){var n=e.color&&!e.colorLayer;M(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Qm.hasClass(r)||(typeof t==`object`?e[r]=e[r]?T(e[r],t,!1):w(t):e[r]??(e[r]=t))})}function Mv(e,t,n){if(L(t)){var r=G();return M(t,function(e){e!=null&&vs(e,null)!=null&&r.set(e,!0)}),te(n,function(t){return t&&r.get(t[e])})}else{var i=vs(t,null);return te(n,function(t){return t&&i!=null&&t[e]===i})}}function Nv(e,t){return t.hasOwnProperty(`subType`)?te(e,function(e){return e&&e.subType===t.subType}):e}function Pv(e){var t=G();return e&&M(is(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}A(kv,th);var Fv=kv,Iv=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Lv=function(){function e(e){M(Iv,function(t){this[t]=F(e[t],e)},this)}return e}(),Rv=/^(min|max)?(.+)$/,zv=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(M(is(e.series),function(e){e&&e.data&&U(e.data)&&he(e.data)}),M(is(e.dataset),function(e){e&&e.source&&U(e.source)&&he(e.source)})),e=w(e);var r=this._optionBackup,i=Bv(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=[],w(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=w(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++)Vv(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Uv(a,this._currentMediaIndices)&&(o=N(a,function(e){return w(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}();function Bv(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||=s):((d||u)&&(e.options=e.media=null),a=e),u&&L(l)&&M(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),M(c,function(e){return f(e)}),M(r,function(e){return f(e.option)});function f(e){M(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function Vv(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return M(e,function(e,t){var n=t.match(Rv);if(!(!n||!n[1]||!n[2])){var a=n[1];Hv(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function Hv(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function Uv(e,t){return e.join(`,`)===t.join(`,`)}var Wv=zv,Gv=M,Kv=V,qv=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function Jv(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=qv.length;n<r;n++){var i=qv[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?T(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?T(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Yv(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,D(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function Xv(e){Yv(e,`itemStyle`),Yv(e,`lineStyle`),Yv(e,`areaStyle`),Yv(e,`label`),Yv(e,`labelLine`),Yv(e,`upperLabel`),Yv(e,`edgeLabel`)}function Zv(e,t){var n=Kv(e)&&e[t],r=Kv(n)&&n.textStyle;if(r)for(var i=0,a=os.length;i<a;i++){var o=os[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Qv(e){e&&(Xv(e),Zv(e,`label`),e.emphasis&&Zv(e.emphasis,`label`))}function $v(e){if(Kv(e)){Jv(e),Xv(e),Zv(e,`label`),Zv(e,`upperLabel`),Zv(e,`edgeLabel`),e.emphasis&&(Zv(e.emphasis,`label`),Zv(e.emphasis,`upperLabel`),Zv(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(Jv(t),Qv(t));var n=e.markLine;n&&(Jv(n),Qv(n));var r=e.markArea;r&&Qv(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!U(a))for(var o=0;o<a.length;o++)Qv(a[o]);M(e.categories,function(e){Xv(e)})}if(i&&!U(i))for(var o=0;o<i.length;o++)Qv(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Qv(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)L(c[o])?(Qv(c[o][0]),Qv(c[o][1])):Qv(c[o]);e.type===`gauge`?(Zv(e,`axisLabel`),Zv(e,`title`),Zv(e,`detail`)):e.type===`treemap`?(Yv(e.breadcrumb,`itemStyle`),M(e.levels,function(e){Xv(e)})):e.type===`tree`&&Xv(e.leaves)}}function ey(e){return L(e)?e:e?[e]:[]}function ty(e){return(L(e)?e[0]:e)||{}}function ny(e,t){Gv(ey(e.series),function(e){Kv(e)&&$v(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Gv(n,function(t){Gv(ey(e[t]),function(e){e&&(Zv(e,`axisLabel`),Zv(e.axisPointer,`label`))})}),Gv(ey(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Zv(t,`axisLabel`),Zv(t&&t.axisPointer,`label`)}),Gv(ey(e.calendar),function(e){Yv(e,`itemStyle`),Zv(e,`dayLabel`),Zv(e,`monthLabel`),Zv(e,`yearLabel`)}),Gv(ey(e.radar),function(e){Zv(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Gv(ey(e.geo),function(e){Kv(e)&&(Qv(e),Gv(ey(e.regions),function(e){Qv(e)}))}),Gv(ey(e.timeline),function(e){Qv(e),Yv(e,`label`),Yv(e,`itemStyle`),Yv(e,`controlStyle`,!0);var t=e.data;L(t)&&M(t,function(e){V(e)&&(Yv(e,`label`),Yv(e,`itemStyle`))})}),Gv(ey(e.toolbox),function(e){Yv(e,`iconStyle`),Gv(e.feature,function(e){Yv(e,`iconStyle`)})}),Zv(ty(e.axisPointer),`label`),Zv(ty(e.tooltip).axisPointer,`label`)}function ry(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function iy(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 ay(e){e&&M(oy,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oy=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],sy=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],cy=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function ly(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<cy.length;n++){var r=cy[n][1],i=cy[n][0];t[r]!=null&&(t[i]=t[r])}}function uy(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function dy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function fy(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function py(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&py(e[n].children,t)}function my(e,t){ny(e,t),e.series=is(e.series),M(e.series,function(e){if(V(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),uy(e.label);var n=e.data;if(n&&!U(n))for(var r=0;r<n.length;r++)uy(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=ry(e,`pointer.color`);i!=null&&iy(e,`itemStyle.color`,i)}else if(t===`bar`){ly(e),ly(e.backgroundStyle),ly(e.emphasis);var n=e.data;if(n&&!U(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(ly(n[r]),ly(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)),dy(e),py(e.data,dy)}else t===`graph`||t===`sankey`?fy(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&D(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),ay(e)}}),e.dataRange&&(e.visualMap=e.dataRange),M(sy,function(t){var n=e[t];n&&(L(n)||(n=[n]),M(n,function(e){ay(e)}))})}function hy(e){var t=G();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(),M(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),gy(e))})}function gy(e){M(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 _y=function(){function e(){this.group=new ol,this.uid=Ip(`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}();Ie(_y),Ue(_y);var vy=_y,yy=X(),by={itemStyle:We(Id,!0),lineStyle:We(Nd,!0)},xy={lineStyle:`stroke`,itemStyle:`fill`};function Sy(e,t){return e.visualStyleMapper||by[t]||(console.warn(`Unknown style type '`+t+`'.`),by.itemStyle)}function Cy(e,t){return e.visualDrawType||xy[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var wy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Sy(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Cy(e,r),c=a[s],l=R(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`||R(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||R(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=E({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Ty=new Bd,Ey={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Sy(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Ty.option=n[r];var o=i(Ty);E(e.ensureUniqueItemVisual(t,`style`),o),Ty.option.decal&&(e.setItemVisual(t,`decal`,Ty.option.decal),Ty.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Dy={performRawSeries:!0,overallReset:function(e){var t=G();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),yy(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=yy(t).scope,o=Cy(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}},Oy=Math.PI;function ky(e,t){t||={},D(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 ol,r=new io({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new wo({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 io({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 $l({shape:{startAngle:-Oy/2,endAngle:-Oy/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:Oy*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:Oy*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 Ay=function(){function e(e,t,n,r){this._stageTaskMap=G(),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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=G();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;M(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});fe(!(r.reset&&r.overallReset),``),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;M(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=G(),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)||lh({plan:Fy,reset:Iy,count:zy}));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||lh({reset:jy});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=G(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;fe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,M(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,lh({reset:My,onDirty:Py})));n.context={model:e,overallProgress: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 R(e)&&(e={overallReset:e,seriesType:By(e)}),e.uid=Ip(`stageHandler`),t&&(e.visualType=t),e},e}();function jy(e){e.overallReset(e.ecModel,e.api,e.payload)}function My(e){return e.overallProgress&&Ny}function Ny(){this.agent.dirty(),this.getDownstream().dirty()}function Py(){this.agent&&this.agent.dirty()}function Fy(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Iy(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=is(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?N(t,function(e,t){return Ry(t)}):Ly}var Ly=Ry(0);function Ry(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 zy(e){return e.data.count()}function By(e){Uy=null;try{e(Vy,Hy)}catch{}return Uy}var Vy={},Hy={},Uy;Wy(Vy,Fv),Wy(Hy,Lv),Vy.eachSeriesByType=Vy.eachRawSeriesByType=function(e){Uy=e},Vy.eachComponent=function(e){e.mainType===`series`&&e.subType&&(Uy=e.subType)};function Wy(e,t){for(var n in t.prototype)e[n]=Te}var Gy=Ay,$=Q.darkColor,Ky=$.background,qy=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},Jy={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},Yy={darkMode:!0,color:$.theme,backgroundColor:Ky,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}},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:Jy,y:Jy,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:qy(),logAxis:qy(),valueAxis:qy(),categoryAxis:qy(),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=qy();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}}}};Yy.categoryAxis.splitLine.show=!1;var Xy=Yy,Zy=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(z(e)){var i=Ne(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};M(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}(),Qy=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],$y=Qy.concat([`symbolKeepAspect`]),eb={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<Qy.length;o++){var s=Qy[o],c=e.get(s);R(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(E({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=P(i);function u(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}return{dataEach:a?u:null}}},tb={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function r(e,t){for(var n=e.getItemModel(t),r=0;r<$y.length;r++){var i=$y[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}};function nb(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:}}function rb(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:}}function ib(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}function ab(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var ob=Math.round(Math.random()*9),sb=typeof Object.defineProperty==`function`,cb=function(){function e(){this._id=`__ec_inner_`+ ob++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return sb?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}();function lb(e){return isFinite(e)}function ub(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=lb(r)?r:0,i=lb(i)?i:1,a=lb(a)?a:0,o=lb(o)?o:0,e.createLinearGradient(r,a,i,o)}function db(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=lb(o)?o:.5,s=lb(s)?s:.5,c=c>=0&&lb(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function fb(e,t,n){for(var r=t.type===`radial`?db(e,t,n):ub(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function pb(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 mb(e){return parseInt(e,10)}function hb(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]||mb(s[r])||mb(e.style[r]))-(mb(s[a])||0)-(mb(s[o])||0)|0}function gb(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:B(e)?[e]:L(e)?e:null}function _b(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&gb(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=N(n,function(e){return e/i}),r/=i)}return[n,r]}var vb=new ga(!0);function yb(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function bb(e){return typeof e==`string`&&e!==`none`}function xb(e){var t=e.fill;return t!=null&&t!==`none`}function Sb(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 Cb(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 wb(e,t,n){var r=Qe(t.image,t.__image,n);if(et(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)*Ee),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function Tb(e,t,n,r){var i,a=yb(n),o=xb(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||vb,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?fb(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?fb(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?wb(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?wb(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=_b(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&Cb(e,n),o&&Sb(e,n)):(o&&Sb(e,n),a&&Cb(e,n))),w&&e.setLineDash([])}function Eb(e,t,n){var r=t.__image=Qe(n.image,t.__image,t,t.onload);if(!(!r||!et(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 Db(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=_b(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(yb(n)&&e.strokeText(i,n.x,n.y),xb(n)&&e.fillText(i,n.x,n.y)):(xb(n)&&e.fillText(i,n.x,n.y),yb(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}var Ob=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],kb=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function Ab(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){Vb(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Ai.opacity:o}(r||t.blend!==n.blend)&&(a||=(Vb(e,i),!0),e.globalCompositeOperation=t.blend||Ai.blend);for(var s=0;s<Ob.length;s++){var c=Ob[s];(r||t[c]!==n[c])&&(a||=(Vb(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(Vb(e,i),!0),e.shadowColor=t.shadowColor||Ai.shadowColor),a}function jb(e,t,n,r,i){var a=Hb(t,i.inHover),o=r?null:n&&Hb(n,i.inHover)||{};if(a===o)return!1;var s=Ab(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(Vb(e,i),!0),bb(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(Vb(e,i),!0),bb(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(Vb(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||=(Vb(e,i),!0),e.lineWidth=c)}for(var l=0;l<kb.length;l++){var u=kb[l],d=u[0];(r||a[d]!==o[d])&&(s||=(Vb(e,i),!0),e[d]=a[d]||u[1])}return s}function Mb(e,t,n,r,i){return Ab(e,Hb(t,i.inHover),n&&Hb(n,i.inHover),r,i)}function Nb(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 Pb(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),Nb(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function Fb(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 Ib=1,Lb=2,Rb=3,zb=4;function Bb(e){var t=xb(e),n=yb(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 Vb(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function Hb(e,t){return t&&e.__hoverStyle||e.style}function Ub(e,t){Wb(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Wb(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||pb(a,o))&&(o&&o.length&&(Vb(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(Vb(e,n),e.save(),Pb(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof Va&&t.autoBatch&&Bb(t.style);s||Fb(i,l.transform)?(Vb(e,n),Nb(e,t)):u||Vb(e,n);var d=Hb(t,n.inHover);t instanceof Va?(n.lastDrawType!==Ib&&(c=!0,n.lastDrawType=Ib),jb(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),Tb(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof Wa?(n.lastDrawType!==Rb&&(c=!0,n.lastDrawType=Rb),jb(e,t,l,c,n),Db(e,t,d)):t instanceof Ya?(n.lastDrawType!==Lb&&(c=!0,n.lastDrawType=Lb),Mb(e,t,l,c,n),Eb(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==zb&&(c=!0,n.lastDrawType=zb),Gb(e,t,n)),u&&r&&Vb(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Gb(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},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Wb(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),Wb(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Kb=new cb,qb=new Ye(100),Jb=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function Yb(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&Kb.delete(e);var a=Kb.get(e);if(a)return a;var o=D(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,Kb.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<Jb.length;++s){var c=o[Jb[s]];if(c!=null&&!L(c)&&!z(c)&&!B(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var u;if(a){u=t.join(`,`)+(i?`-svg`:``);var d=qb.get(u);d&&(i?e.svgElement=d:e.image=d)}var f=Zb(o.dashArrayX),p=Qb(o.dashArrayY),m=Xb(o.symbol),h=$b(f),g=ex(p),_=!i&&l.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&qb.put(u,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=h.length;t<n;++t)e=Yo(e,h[t]);for(var r=1,t=0,n=m.length;t<n;++t)r=Yo(r,m[t].length);e*=r;var i=g*h.length*m.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<p.length;++t)e+=p[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%m.length,d=0,h=0,x=0;d<y.width*2;){for(var S=0,t=0;t<f[l].length;++t)S+=f[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=d+f[l][h]*C,T=a+p[s]*C,E=f[l][h]*o.symbolSize,D=p[s]*o.symbolSize,O=x/2%m[u].length;k(w,T,E,D,m[u][O])}d+=f[l][h],++x,++h,h===f[l].length&&(h=0)}++l,l===f.length&&(l=0)}a+=p[s],++c,++s,s===p.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=_g(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else Ub(b,u)}}}}function Xb(e){if(!e||e.length===0)return[[`rect`]];if(z(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!z(e[n])){t=!1;break}if(t)return Xb([e]);for(var r=[],n=0;n<e.length;++n)z(e[n])?r.push([e[n]]):r.push(e[n]);return r}function Zb(e){if(!e||e.length===0)return[[0,0]];if(B(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!B(e[r])){n=!1;break}if(n)return Zb([e]);for(var i=[],r=0;r<e.length;++r)if(B(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=N(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function Qb(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(B(e)){var t=Math.ceil(e);return[t,t]}var n=N(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function $b(e){return N(e,function(e){return ex(e)})}function ex(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}function tx(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=Yb(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=Yb(i,t)}}})}var nx=new si,rx={};function ix(e,t){rx[e]=t}function ax(e){return rx[e]}var ox={};function sx(e,t){ox[e]=t}var cx=1,lx=800,ux=900,dx=1e3,fx=2e3,px=5e3,mx=1e3,hx=1100,gx=2e3,_x=3e3,vx=4e3,yx=4500,bx=4600,xx=5e3,Sx=6e3,Cx=7e3,Tx={PROCESSOR:{FILTER:dx,SERIES_FILTER:lx,STATISTIC:px},VISUAL:{LAYOUT:mx,PROGRESSIVE_LAYOUT:hx,GLOBAL:gx,CHART:_x,POST_CHART_LAYOUT:bx,COMPONENT:vx,BRUSH:xx,CHART_ITEM:yx,ARIA:Sx,DECAL:Cx}},Ex=`__flagInMainProcess`,Dx=`__mainProcessVersion`,Ox=`__pendingUpdate`,kx=`__needsUpdateStatus`,Ax=/^[a-zA-Z0-9_]+$/,jx=`__connectUpdateStatus`,Mx=0,Nx=1,Px=2;function Fx(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return Lx(this,e,t)}}function Ix(e){return function(){return Lx(this,e,[...arguments])}}function Lx(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),si.prototype[t].apply(e,n)}var Rx=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(si),zx=Rx.prototype;zx.on=Ix(`on`),zx.off=Ix(`off`);var Bx,Vx,Hx,Ux,Wx,Gx,Kx,qx,Jx,Yx,Xx,Zx,Qx,$x,eS,tS,nS,rS,iS,aS=function(e){n(t,e);function t(t,n,r){var i=e.call(this,new Zy)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[Dx]=1,r.ssr;var c=i._zr=hv(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=Mg(F(c.flush,c),17),i._updateTheme(n),i._locale=lm(r.locale||sm),i._coordSysMgr=new Pp;var l=i._api=eS(i);function u(e,t){return e.__prio-t.__prio}return L_(pS,u),L_(dS,u),i._scheduler=new Gy(i,l,dS,pS),i._messageCenter=new Rx,i._initEvents(),i.resize=F(i.resize,i),c.animation.on(`frame`,i._onframe,i),Yx(c,i),Xx(c,i),he(i),i}return t.prototype._onframe=function(){if(!this._disposed){rS(this);var e=this._scheduler;if(this[Ox]){var t=this[Ox].silent;this[Ex]=!0,iS(this);try{Bx(this),Ux.update.call(this,null,this[Ox].updateParams)}catch(e){throw this[Ex]=!1,this[Ox]=null,e}this._zr.flush(),this[Ex]=!1,this[Ox]=null,qx.call(this,t),Jx.call(this,t)}else if(e.unfinished){var n=cx,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),Gx(this,r),e.performVisualTasks(r),$x(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>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[Ex]){if(this._disposed){this.id;return}var r,i,a;if(V(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[Ex]=!0,iS(this),!this._model||t){var o=new Wv(this._api),s=this._theme,c=this._model=new Fv;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},fS);var l={seriesTransition:a,optionChanged:!0};if(n)this[Ox]={silent:r,updateParams:l},this[Ex]=!1,this.getZr().wakeUp();else{try{Bx(this),Ux.update.call(this,null,l)}catch(e){throw this[Ox]=null,this[Ex]=!1,e}this._ssr||this._zr.flush(),this[Ox]=null,this[Ex]=!1,qx.call(this,r),Jx.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[Ex]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[Ox]&&(r??=this[Ox].silent,i=this[Ox].updateParams,this[Ox]=null),this[Ex]=!0,iS(this);try{this._updateTheme(e),n.setTheme(this._theme),Bx(this),Ux.update.call(this,{type:`setTheme`},i)}catch(e){throw this[Ex]=!1,e}this[Ex]=!1,qx.call(this,r),Jx.call(this,r)}}},t.prototype._updateTheme=function(e){z(e)&&(e=mS[e]),e&&(e=w(e),e&&my(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||K.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return M(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;M(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 M(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(_S[n]){var o=a,s=a,c=-a,u=-a,d=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();M(gS,function(a,l){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(w(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),c=i(p.right,c),u=i(p.bottom,u),d.push({dom:f,left:p.left,top:p.top})}}),o*=f,s*=f,c*=f,u*=f;var p=c-o,m=u-s,h=l.createCanvas(),g=hv(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:p,height:m}),t){var _=``;return M(d,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new io({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),M(d,function(e){var t=new Ya({style:{x:e.left*f-o,y:e.top*f-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return Wx(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return Wx(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return Wx(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return M(Es(n,e),function(e,n){n.indexOf(`Models`)>=0&&M(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))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=Es(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?rb(i,t):nb(i,a,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;M(sS,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&ab(i,function(e){var t=Z(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}else if(t.eventData)return a=E({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;M(uS,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),Ig(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&As(this.getDom(),yS,``);var e=this,t=e._api,n=e._model;M(e._componentsViews,function(e){e.dispose(n,t)}),M(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 gS[e.id]},t.prototype.resize=function(e){if(!this[Ex]){if(this._disposed){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[Ox]&&(r??=this[Ox].silent,n=!0,this[Ox]=null),this[Ex]=!0,iS(this);try{n&&Bx(this),Ux.update.call(this,{type:`resize`,animation:E({duration:0},e&&e.animation)})}catch(e){throw this[Ex]=!1,e}this[Ex]=!1,qx.call(this,r),Jx.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(V(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),hS[e]){var n=hS[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=E({},e);return t.type=lS[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(V(t)||(t={silent:!!t}),cS[e.type]&&this._model){if(this[Ex]){this._pendingActions.push(e);return}var n=t.silent;Kx.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),qx.call(this,n),Jx.call(this,n)}},t.prototype.updateLabelLayout=function(){nx.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Bx=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),Vx(e,!0),Vx(e,!1),t.plan()},Vx=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=Ne(e.type);u=new(t?vy.getClass(d.main,d.sub):Og.getClass(d.sub)),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)}},Hx=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){M([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=G(),M(is(c),function(e){var t=vs(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(Fc(n))if(t instanceof ug)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&bc(t,n,e._api);else{var r=xc(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&yc(t.mainType,t.componentIndex,e._api),a&&M(a,function(e){n.type===`highlight`?uc(e):dc(e)})}else Pc(n)&&t instanceof ug&&(wc(t,n,e._api),Tc(t),nS(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},Ux={prepareAndUpdate:function(e){Bx(this),Ux.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){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),Gx(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),Zx(this,r,i,e,n),nx.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=G();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),$x(this,r,i,e,{},o),nx.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Og.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),Zx(this,n,this._api,e,{}),nx.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()}),Og.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)}),nx.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){Ux.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=Es(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}}Wx=e,Gx=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Kx=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=cS[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ne(s[0]);this[Ex]=!0,iS(this);var u=[e],d=!1;e.batch&&(d=!0,u=N(e.batch,function(t){return t=D(E({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=Pc(e),_=Fc(e);if(_&&_c(this._api),M(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=E({},t),p.type=h,f.push(p),_){var a=Ds(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;Hx(n,c,t,u),nS(n)}else g?(Hx(n,c,t,`series`),nS(n)):l&&Hx(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Ox]?(Bx(this),Ux.update.call(this,e),this[Ox]=null):Ux[c].call(this,e)}catch(e){throw this[Ex]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[Ex]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;fe(V(y)),v=D({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)}},qx=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Kx.call(this,n,e)}},Jx=function(e){!e&&this.trigger(`updated`)},Yx=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[Ox]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},Xx=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=ab(n,Mc);r&&(Sc(r,e,t._api),nS(t))}).on(`mouseout`,function(e){var n=e.target,r=ab(n,Mc);r&&(Cc(r,e,t._api),nS(t))}).on(`click`,function(e){var n=e.target,r=ab(n,function(e){return Z(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Z(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 r(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;L_(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),M(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)})}}Zx=function(e,t,n,i,a){r(t),Qx(e,t,n,i,a),M(e._chartsViews,function(e){e.__alive=!1}),$x(e,t,n,i,a),M(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Qx=function(e,t,n,r,i,a){M(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),s(i,e),l(i,e)})},$x=function(e,t,n,r,i,u){var d=e._scheduler;i=E(i||{},{updatedSeries:t.getSeries()}),nx.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),c(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),o(t,n),Tc(t)}),d.unfinished=f||d.unfinished,nx.trigger(`series:layoutlabels`,t,n,i),nx.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];s(t,n),l(t,n)}),a(e,t),nx.trigger(`series:afterupdate`,t,n,i)},nS=function(e){e[kx]=!0,e.getZr().wakeUp()},iS=function(e){e[Dx]=(e[Dx]+1)%1e3},rS=function(e){e[kx]&&(e.getZr().storage.traverse(function(e){yu(e)||i(e)}),e[kx]=!1)};function i(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i===`emphasis`||i===`blur`||i===`select`||t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function a(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!K.node&&!K.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function o(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function s(e,t){if(!e.preventAutoZ){var n=ld(e);t.eachRendered(function(e){return dd(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!yu(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 l(e,t){var n=e.getModel(`stateAnimation`),r=e.isAnimationEnabled(),a=n.get(`duration`),o=a>0?{duration:a,delay:n.get(`delay`),easing:n.get(`easing`)}:null;t.eachRendered(function(e){if(e.states&&e.states.emphasis){if(yu(e))return;if(e instanceof Va&&Ic(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=o;var n=e.getTextContent(),a=e.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&i(e)}})}eS=function(e){return new(function(t){n(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){uc(t,n),nS(e)},r.prototype.leaveEmphasis=function(t,n){dc(t,n),nS(e)},r.prototype.enterBlur=function(t){fc(t),nS(e)},r.prototype.leaveBlur=function(t){pc(t),nS(e)},r.prototype.enterSelect=function(t){mc(t),nS(e)},r.prototype.leaveSelect=function(t){hc(t),nS(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r.prototype.getMainProcessVersion=function(){return e[Dx]},r}(Lv))(e)},tS=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[jx]=t}}M(lS,function(n,r){e._messageCenter.on(r,function(n){if(_S[e.group]&&e[jx]!==Mx){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];M(gS,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,Mx),M(i,function(e){e[jx]!==Nx&&e.dispatchAction(r)}),t(i,Px)}})})}}(),t}(si),oS=aS.prototype;oS.on=Fx(`on`),oS.off=Fx(`off`),oS.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)};var sS=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],cS={},lS={},uS={},dS=[],fS=[],pS=[],mS={},hS={},gS={},_S={},vS=new Date-0;new Date-0;var yS=`_echarts_instance_`;function bS(e,t,n){var r=!(n&&n.ssr);if(r){var i=xS(e);if(i)return i}var a=new aS(e,t,n);return a.id=`ec_`+ vS++,gS[a.id]=a,r&&As(e,yS,a.id),tS(a),nx.trigger(`afterinit`,a),a}function xS(e){return gS[js(e,yS)]}function SS(e,t){mS[e]=t}function CS(e){O(fS,e)<0&&fS.push(e)}function wS(e,t){NS(dS,e,t,fx)}function TS(e){DS(`afterinit`,e)}function ES(e){DS(`afterupdate`,e)}function DS(e,t){nx.on(e,t)}function OS(e,t,n){var r,i,a,o,s;R(t)&&(n=t,t=``),V(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;cS[r]||(fe(Ax.test(r)&&Ax.test(i)),a&&fe(i!==r),cS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},uS[i]=1,a&&s&&(uS[l]=1),lS[l]=r)}function kS(e,t){Pp.register(e,t)}function AS(e,t){NS(pS,e,t,mx,`layout`)}function jS(e,t){NS(pS,e,t,_x,`visual`)}var MS=[];function NS(e,t,n,r,i){if((R(t)||V(t))&&(n=t,t=r),!(O(MS,n)>=0)){MS.push(n);var a=Gy.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function PS(e,t){hS[e]=t}function FS(e,t,n){var r=ax(`registerMap`);r&&r(e,t,n)}var IS=yh;jS(gx,wy),jS(yx,Ey),jS(yx,Dy),jS(gx,eb),jS(yx,tb),jS(Cx,tx),CS(my),wS(ux,hy),PS(`default`,ky),OS({type:Bs,event:Bs,update:Bs},Te),OS({type:Vs,event:Vs,update:Vs},Te),OS({type:Hs,event:Gs,update:Hs,action:Te,refineEvent:LS,publishNonRefinedEvent:!0}),OS({type:Us,event:Gs,update:Us,action:Te,refineEvent:LS,publishNonRefinedEvent:!0}),OS({type:Ws,event:Gs,update:Ws,action:Te,refineEvent:LS,publishNonRefinedEvent:!0});function LS(e,t,n,r){return{eventContent:{selected:Ec(n),isFromClick:t.isFromClick||!1}}}SS(`default`,{}),SS(`dark`,Xy);var RS=[],zS={registerPreprocessor:CS,registerProcessor:wS,registerPostInit:TS,registerPostUpdate:ES,registerUpdateLifecycle:DS,registerAction:OS,registerCoordinateSystem:kS,registerLayout:AS,registerVisual:jS,registerTransform:IS,registerLoading:PS,registerMap:FS,registerImpl:ix,PRIORITY:Tx,ComponentModel:Qm,ComponentView:vy,SeriesModel:ug,ChartView:Og,registerComponentModel:function(e){Qm.registerClass(e)},registerComponentView:function(e){vy.registerClass(e)},registerSeriesModel:function(e){ug.registerClass(e)},registerChartView:function(e){Og.registerClass(e)},registerCustomSeries:function(e,t){sx(e,t)},registerSubTypeDefaulter:function(e,t){Qm.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){gv(e,t)}};function BS(e){if(L(e)){M(e,function(e){BS(e)});return}O(RS,e)>=0||(RS.push(e),R(e)&&(e={install:e}),e.install(zS))}var VS=null;function HS(){return VS}function US(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function WS(e){return e.get(`interval`)??`auto`}function GS(e){return e.type===`category`&&WS(e.getLabelModel())===0}function KS(e){return e===`middle`||e===`center`}X(),X();var qS={estimate:1,determine:2};function JS(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}var YS=`expandAxisBreak`,XS=Math.PI,ZS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],QS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],$S=X(),eC=X(),tC=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 nC(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=EC(e.axisName)&&KS(e.nameLocation);M(r,function(e){var t=Ug(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?ct(rC,n.transform):nt(rC),t.transform&&it(rC,rC,t.transform),J.copy(iC,t.localRect),iC.applyTransform(rC),s?s.union(iC):J.copy(s=new J(0,0,0,0),iC))}});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 rC=tt(),iC=new J(0,0,0,0),aC=function(e,t,n,r,i,a){if(KS(e.nameLocation)){var o=a.stOccupiedRect;o&&oC(Kg({},o,a.transGroup.transform),r,i)}else sC(a.labelInfoList,a.dirVec,r,i)};function oC(e,t,n){var r=new q;Zg(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&qg(t,r)}function sC(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||oC(s,n,r)}}var cC=function(){function e(e,t,n,r){this.group=new ol,this._axisModel=e,this._api=t,this._local={},this._shared=r||new tC(aC),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},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:le(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:EC(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new ol({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 q(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},M(lC,function(r){e[r]&&uC[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=Bo(t-e),i,a;return Vo(r)?(a=n>0?`top`:`bottom`,i=`center`):Vo(r-XS)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<XS?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}(),lC=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],uC={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Sn(u,u,l),Sn(d,d,l));var p=E({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())HS().buildAxisBreakLine(r,i,a,m);else{var h=new Gl(E({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Lu(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);z(g)&&(g=[g,g]),(z(_)||B(_))&&(_=[_,_]);var v=vg(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];M([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=_g(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;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){yC(t,i,s)&&dC(e,t,n,r,i,a,o,qS.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){yC(t,i,s)&&dC(e,t,n,r,i,a,o,qS.determine);var c=_C(e,i,a,r);mC(e,t.labelLayoutList,c),vC(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(EC(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new q(0,0),_=new q(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=tt();_.transform(ot(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*XS/180);var b,x;KS(u)?b=cC.innerTextLayout(e.rotation,y??e.rotation,d):(b=fC(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=ce(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new wo({x:g.x,y:g.y,rotation:b.rotation,silent:cC.isLabelSilent(r),style:vd(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(nd({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=cC.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=Ug({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:KS(u)?ZS[E]:QS[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function dC(e,t,n,r,i,a,o,s){xC(t)||bC(e,t,i,s,r,o);var c=t.labelLayoutList;CC(e,r,c,a),OC(r,e.rotation,c);var l=e.optionHideOverlap;pC(r,c,l),l&&Xg(te(c,function(e){return e&&!e.label.ignore})),nC(e,n,r,c)}function fC(e,t,n,r){var i=Bo(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return Vo(i-XS/2)?(o=c?`bottom`:`top`,a=`center`):Vo(i-XS*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<XS*1.5&&i>XS/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function pC(e,t,n){if(GS(e.axis))return;function r(e,r,i){var a=Ug(t[r]),o=Ug(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){hC(a.label);return}if(o.suggestIgnore){hC(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=Jg({marginForce:c},a),o=Jg({marginForce:c},o)}Zg(a,o,null,{touchThreshold:s})&&hC(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function mC(e,t,n){e.showMinorTicks||M(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=eC(r),a=$S(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){hC(r);return}}})}function hC(e){e&&(e.ignore=!0)}function gC(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&&(Sn(o,o,t),Sn(s,s,t));var u=new Gl({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Lu(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=eC(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function _C(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=gC(i.getTicksCoords(),n.transform,c,D(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function vC(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=D(c.getLineStyle(),D(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=gC(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function yC(e,t,n){if(xC(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),SC(e,null,null,null))}return!0}function bC(e,t,n,r,i,a){var o=i.axis,s=ce(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new ol;n.add(c);var l=JS(r);if(!s||o.scale.isBlank()){SC(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ce(e.raw.labelRotate,u.get(`rotate`))||0)*XS/180,p=cC.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;M(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];V(f)&&f.textStyle&&(l=new Bd(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=W(l.getShallow(`alignMinLabel`,!0),b),S=W(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=W(l.getShallow(`verticalAlignMinLabel`,!0),C),T=W(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new wo({x:0,y:0,rotation:0,silent:cC.isLabelSilent(i),z2:E,style:vd(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:R(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=$S(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,nd({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=cC.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),Z(D).eventData=k,e.break&&DC(i,a,D,e.break)}h.push(D),c.add(D)}),SC(t,N(h,function(e){return{label:e,priority:$S(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function xC(e){return!!e.labelLayoutList}function SC(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function CC(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);M(n,function(n,a){var o=Ug(n);if(o){var s=o.label,c=$S(s);o.suggestIgnore=s.ignore,s.ignore=!1,Pn(wC,TC),wC.x=t.axis.dataToCoord(c.tickValue),wC.y=e.labelOffset+e.labelDirection*i,wC.rotation=c.layoutRotation,r.add(wC),wC.updateTransform(),r.remove(wC),wC.decomposeTransform(),Pn(s,wC),s.markRedraw(),Vg(o,!0),Ug(o)}})}var wC=new io,TC=new io;function EC(e){return!!e}function DC(e,t,n,r){n.on(`click`,function(n){var i={type:YS,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function OC(e,t,n){var r=pm();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&$S(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&M(i,function(r){HS().adjustBreakLabelPair(e.axis.inverse,t,[Ug(n[r[0]]),Ug(n[r[1]])])})}}var kC=cC;function AC(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),ce(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 jC(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return MC(n,e,t),n.seriesInvolved&&PC(n,e),n}function MC(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];M(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=VC(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(M(n.getAxes(),I(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)&&M(f.baseAxes,I(p,d?`cross`:!0,u)),d&&M(f.otherAxes,I(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!BC(d))){s??=d.get(`triggerTooltip`),d=r?NC(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=VC(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:BC(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=FC(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function NC(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};M(s,function(e){c[e]=w(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&&D(l,u.textStyle)}return e.model.getModel(`axisPointer`,new Bd(c,n,r))}function PC(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||M(e.coordSysAxesInfo[VC(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 FC(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(IC(a[r+`AxisId`],n.id)||IC(a[r+`AxisIndex`],n.componentIndex)||IC(a[r+`AxisName`],n.name))return i}}function IC(e,t){return e===`all`||L(e)&&O(e,t)>=0||e===t}function LC(e){var t=RC(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=BC(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(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 RC(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[VC(e)]}function zC(e){var t=RC(e);return t&&t.axisPointerModel}function BC(e){return!!e.get([`handle`,`show`])}function VC(e){return e.type+`||`+e.id}var HC={},UC=function(e){n(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&&LC(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=zC(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){HC[e]=t},t.getAxisPointerClass=function(e){return e&&HC[e]},t.type=`axis`,t}(vy),WC=X();function GC(e,t){return!!WC(e)[t]}OS({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},Te);var KC={axisPointer:1,tooltip:1,brush:1};function qC(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||KC.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=ld(r),o=ld(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var JC=function(e){n(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=F(n._mousedownHandler,n),i=F(n._mousemoveHandler,n),a=F(n._mouseupHandler,n),o=F(n._mousewheelHandler,n),s=F(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=ld(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:W(c.z2,-1/0)},p=E({},n.triggerInfo);this._opt=D(E({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(QC(t,`mousedown`,r,f),QC(t,`mousemove`,i,f),QC(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(QC(t,`mousewheel`,o,f),QC(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,$C(t,`mousedown`,r),$C(t,`mousemove`,i),$C(t,`mouseup`,a),$C(t,`mousewheel`,o),$C(t,`pinch`,s)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(qC(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(d_(e)||YC(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||GC(t,`globalPan`)||YC(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!rw(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&u_(e.event),e.__ecRoamConsumed=!0,nw(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!YC(e)){var t=this._zr;if(!d_(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!YC(e)){var t=rw(`zoomOnMouseWheel`,e,this._opt),n=rw(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(GC(this._zr,`globalPan`)||YC(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(u_(r.event),r.__ecRoamConsumed=!0,nw(e,t,n,r,i))},t}(si);function YC(e){return e.__ecRoamConsumed}var XC=X();function ZC(e){var t=XC(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function QC(e,t,n,r){for(var i=ZC(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),ew(e,t)}function $C(e,t,n){for(var r=ZC(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||tw(e,t);return}}function ew(e,t){var n=ZC(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function tw(e,t){var n=ZC(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function nw(e,t,n,r,i){i.isAvailableBehavior=F(rw,null,n,r),e.trigger(t,i)}function rw(e,t,n){var r=n[e];return!e||r&&(!z(r)||t.event[r+`Key`])}var iw=JC,aw=X();function ow(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,pw(t,n,e),M(n,function(n){M(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,I(sw,e))})}),t.wrapMethod(`cloneShallow`,I(lw,e)),M(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,I(cw,e))}),fe(n[t.dataType]===t)}function sw(e,t){if(fw(this)){var n=E({},aw(this).datas);n[this.dataType]=t,pw(t,n,e)}else mw(t,this.dataType,aw(this).mainData,e);return t}function cw(e,t){return e.struct&&e.struct.update(),t}function lw(e,t){return M(aw(t).datas,function(n,r){n!==t&&mw(n.cloneShallow(),r,t,e)}),t}function uw(e){var t=aw(this).mainData;return e==null||t==null?t:aw(t).datas[e]}function dw(){var e=aw(this).mainData;return e==null?[{data:e}]:N(P(aw(e).datas),function(t){return{type:t,data:aw(e).datas[t]}})}function fw(e){return aw(e).mainData===e}function pw(e,t,n){aw(e).datas={},M(t,function(t,r){mw(t,r,e,n)})}function mw(e,t,n,r){aw(n).datas[t]=e,aw(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=uw,e.getLinkedDataAll=dw}var hw=ow,gw=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){R(e)&&(n=t,t=e,e=null),e||={},z(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),_w=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,L(n)?n.length:1),a.push(e);var r=new gw(vs(e.name,``),i);t?vw(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=wp(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new Cp(c,n);return l.initData(a),r&&r(l),hw({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function vw(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var yw=_w;function bw(e,t,n){if(e&&O(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(z(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function xw(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function Sw(e,t){return O(xw(e),t)>=0}function Cw(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var ww=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function Tw(e){for(var t=0;t<ww.length;t++)e.registerAction({type:ww[t],update:`updateView`},Te);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=bw(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=Sw(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}function Ew(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=nh(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}var Dw=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};Ow(n);var r=e.levels||[],i=new Bd({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=kw(r,t);var a=N(r||[],function(e){return new Bd(e,i,t)},this),o=yw.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Fh(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=Cw(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},E(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=G(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){Ew(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(ug);function Ow(e){var t=0;M(e.children,function(e){Ow(e);var n=e.value;L(n)&&(n=n[0]),t+=n});var n=e.value;L(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),L(e.value)?e.value[0]=n:e.value=n}function kw(e,t){var n=is(t.get(`color`)),r=is(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;M(e,function(e){var t=new Bd(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var Aw=Dw,jw=8,Mw=8,Nw=5,Pw=function(){function e(e){this.group=new ol,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=Um(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=Vm(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Wm(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=vs(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+jw*2,t.emptyItemWidth);t.totalWidth+=o+Mw,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new Rl({shape:{points:Fw(c,0,_,u,m===f.length-1,m===0)},style:D(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new wo({style:vd(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:I(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=vd(o,{text:v}),y.ensureState(`emphasis`).style=p,kc(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),Iw(y,e,g),c+=_+Mw}},e.prototype.remove=function(){this.group.removeAll()},e}();function Fw(e,t,n,r,i,a){var o=[[i?e:e-Nw,t],[e+n,t],[e+n,t+r],[i?e:e-Nw,t+r]];return!a&&o.splice(2,0,[e+n+Nw,t+r/2]),!i&&o.push([e,t+r/2]),o}function Iw(e,t,n){Z(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&Cw(n,t)}}var Lw=Pw,Rw=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function zw(){return new Rw}var Bw=ol,Vw=io,Hw=3,Uw=`label`,Ww=`upperLabel`,Gw=100,Kw=20,qw=30,Jw=We([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),Yw=function(e){var t=Jw(e);return t.stroke=t.fill=t.lineWidth=null,t},Xw=X(),Zw=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=Qw(),n}return t.prototype.render=function(e,t,n,r){if(!(O(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=bw(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new Bw,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=Qw(),o=Qw(),s=this._storage,c=[];function l(e,r,i,l){return $w(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,M(e,function(e,t){!e.isRemoved()&&o(t,t)})):new Ud(t,e,a,a).add(o).update(o).remove(I(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=Qw();return e&&M(e,function(e,n){var r=t[n];M(e,function(e){e&&(r.push(e),Xw(e).willDelete=!0)})}),t}function h(){M(u,function(e){M(e,function(e){e.parent&&e.parent.remove(e)})}),M(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(R(i)?0:i)||0,s=(R(a)?null:a)||`cubicOut`,c=zw();M(t.willDeleteEls,function(e,t){M(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=Xw(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),M(this._storage,function(e,n){M(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof ol?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=E({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(F(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this._controller,r=this._controllerHost;r||=(this._controllerHost={target:this.group},this._controllerHost);var i=this.seriesModel;n||(n=this._controller=new iw(e.getZr()),n.on(`pan`,F(this._onPan,this)),n.on(`zoom`,F(this._onZoom,this))),n.enable(i.get(`roam`),{api:e,zInfo:{component:i},triggerInfo:{roamTrigger:i.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}}),r.zoomLimit=i.get(`scaleLimit`),r.zoom=i.get(`zoom`)},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>Hw||Math.abs(e.dy)>Hw)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=tt();at(m,m,[-t,-n]),st(m,m,[f,f]),at(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Pm(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new Lw(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(Sw(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Qw(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(Og);function Qw(){return{nodeGroup:[],background:[],content:[]}}function $w(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),C=f.getModel([`emphasis`,`itemStyle`]),w=f.getModel([`blur`,`itemStyle`]),T=f.getModel([`select`,`itemStyle`]),D=S.get(`borderRadius`)||0,O=z(`nodeGroup`,Bw);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),Xw(O).nodeWidth=p,Xw(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=z(`background`,Vw,l,Kw);k&&ne(O,k,x&&u.upperLabelHeight);var A=f.getModel(`emphasis`),j=A.get(`focus`),M=A.get(`blurScope`),N=A.get(`disabled`),ee=j===`ancestor`?o.getAncestorsIndices():j===`descendant`?o.getDescendantIndices():j;if(x)Mc(O)&&jc(O,!1),k&&(jc(k,!N),d.setItemGraphicEl(o.dataIndex,k),Ac(k,ee,M));else{var te=z(`content`,Vw,l,qw);te&&F(O,te),k.disableMorphing=!0,k&&Mc(k)&&jc(k,!1),jc(O,!N),d.setItemGraphicEl(o.dataIndex,O);var P=f.getShallow(`cursor`);P&&te.attr(`cursor`,P),Ac(O,ee,M)}return O;function ne(t,n,r){var i=Z(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)I(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=Yw(S);c.fill=s;var l=Jw(C);l.fill=C.get(`borderColor`);var u=Jw(w);u.fill=w.get(`borderColor`);var d=Jw(T);if(d.fill=T.get(`borderColor`),r){var f=p-2*h;L(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,sc(n)}t.add(n)}function F(t,n){var r=Z(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:D}),g)I(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=Yw(S);l.fill=c,l.decal=s.decal;var u=Jw(C),d=Jw(w),f=Jw(T);L(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,sc(n)}t.add(n)}function I(e){!e.invisible&&a.push(e)}function L(t,n,r,i){var a=f.getModel(i?Ww:Uw),s=vs(f.get(`name`),null),c=a.getShallow(`show`);gd(t,_d(f,i?Ww:Uw),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=de(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,R(d,i,u);var m=l.getState(`emphasis`);R(m?m.style:null,i,u)}}function R(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function z(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,re(c,s)):g||(s=new r,s instanceof Ri&&(s.z2=eT(a,o)),B(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof Bw?(n.oldX=t.x,n.oldY=t.y):n.oldShape=E({},t.shape)}function B(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof ol;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function eT(e,t){return e*Gw+t}var tT=Zw,nT=M,rT=V,iT=-1,aT=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=w(t);this.type=r,this.mappingMethod=n,this._normalizeData=_T[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(cT(i),oT(i)):n===`category`?i.categories?sT(i):cT(i,!0):(fe(n!==`linear`||i.dataExtent),cT(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return F(this._normalizeData,this)},e.listVisualTypes=function(){return P(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){V(e)?M(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=L(t)?[]:V(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&nT(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(L(e))e=e.slice();else if(rT(e)){var t=[];nT(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||z(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(vT(u[1],e,l[1]))return a}else if(l[1]===1/0){if(vT(u[0],l[0],e))return a}else if(vT(u[0],l[0],e)&&vT(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:dT(`color`),getColorMapper:function(){var e=this.option;return F(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),fT.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=kr(t,e.parsedVisual,r),i?r:Mr(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Mr(kr(e,this.option.parsedVisual),`rgba`)},category:fT,piecewise:function(e,t){var n=hT.call(this,t);return n??=Mr(kr(e,this.option.parsedVisual),`rgba`),n},fixed:pT}},colorHue:lT(function(e,t){return Ar(e,t)}),colorSaturation:lT(function(e,t){return Ar(e,null,t)}),colorLightness:lT(function(e,t){return Ar(e,null,null,t)}),colorAlpha:lT(function(e,t){return jr(e,t)}),decal:{applyVisual:dT(`decal`),_normalizedToVisual:{linear:null,category:fT,piecewise:null,fixed:null}},opacity:{applyVisual:dT(`opacity`),_normalizedToVisual:mT([0,1])},liftZ:{applyVisual:dT(`liftZ`),_normalizedToVisual:{linear:pT,category:pT,piecewise:pT,fixed:pT}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:uT,category:fT,piecewise:function(e,t){var n=hT.call(this,t);return n??=uT.call(this,e),n},fixed:pT}},symbolSize:{applyVisual:dT(`symbolSize`),_normalizedToVisual:mT([0,1])}},e}();function oT(e){var t=e.pieceList;e.hasSpecialVisual=!1,M(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function sT(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(nT(t,function(e,t){n[e]=t}),!L(r)){var i=[];V(r)?nT(r,function(e,t){var r=n[t];i[r??iT]=e}):i[iT]=r,r=gT(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function cT(e,t){var n=e.visual,r=[];V(n)?nT(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),gT(e,r)}function lT(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:mT([0,1])}}function uT(e){var t=this.option.visual;return t[Math.round(jo(e,[0,1],[0,t.length-1],!0))]||{}}function dT(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function fT(e){var t=this.option.visual;return t[this.option.loop&&e!==iT?e%t.length:e]}function pT(){return this.option.visual[0]}function mT(e){return{linear:function(t){return jo(t,e,this.option.visual,!0)},category:fT,piecewise:function(t,n){var r=hT.call(this,n);return r??=jo(t,e,this.option.visual,!0),r},fixed:pT}}function hT(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[aT.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function gT(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=N(t,function(e){return Tr(e)||[0,0,0,1]})),t}var _T={linear:function(e){return jo(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=aT.findPieceIndex(e,t,!0);if(n!=null)return jo(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??iT},fixed:Te};function vT(e,t,n){return e?t<=n:t<n}var yT=aT,bT=`itemStyle`,xT=X(),ST={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||CT(t,{},e.getViewRoot().getAncestors(),e)}};function CT(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(bT),c=wT(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=TT(c),u=ET(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=TT(c),l.fill=f;else{var m=OT(e,i,a,s,c,p);M(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&CT(e,AT(i,c,e,t,m,r),n,r)})}}}function wT(e,t,n){var r=E({},t),i=n.designatedVisualItemStyle;return M([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function TT(e){var t=DT(e,`color`);if(t){var n=DT(e,`colorAlpha`),r=DT(e,`colorSaturation`);return r&&(t=Ar(t,null,null,r)),n&&(t=jr(t,n)),t}}function ET(e,t){return t==null?null:Ar(t,null,null,e)}function DT(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function OT(e,t,n,r,i,a){if(!(!a||!a.length)){var o=kT(t,`color`)||i.color!=null&&i.color!==`none`&&(kT(t,`colorAlpha`)||kT(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new yT(d);return xT(f).drColorMappingBy=u,f}}}function kT(e,t){var n=e.get(t);return L(n)&&n.length?{name:t,range:n}:null}function AT(e,t,n,r,i,a){var o=E({},t);if(i){var s=i.type,c=s===`color`&&xT(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}var jT=Math.max,MT=Math.min,NT=ce,PT=M,FT=[`itemStyle`,`borderWidth`],IT=[`itemStyle`,`gapWidth`],LT=[`upperLabel`,`show`],RT=[`upperLabel`,`height`],zT={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=Um(e,n).refContainer,o=Vm(e.getBoxLayoutParams(),a),s=i.size||[],c=Mo(NT(o.width,s[0]),a.width),l=Mo(NT(o.height,s[1]),a.height),u=r&&r.type,d=bw(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=xw(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?qT(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),BT(p,_,!1,0),v=p.getLayout(),PT(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(E({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(JT(o,f,d),!0),e.setLayoutInfo(o),YT(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function BT(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(FT),l=s.get(IT)/2,u=XT(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=jT(i-2*f,0),a=jT(a-f-p,0);var m=i*a,h=VT(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=MT(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=GT(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,KT(y,_,g,l,!1),_=MT(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&KT(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)BT(h[b],t,n,r+1)}}}function VT(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=te(o,function(e){return!e.isRemoved()}),UT(o,s);var l=WT(t,o,s);if(l.sum===0||(l.sum=HT(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function HT(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function UT(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function WT(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=[1/0,-1/0],PT(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function GT(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?jT(l*r/c,c/(l*i)):1/0}function KT(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=jT(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=jT(v-2*r,0);m[s[o]]=n[s[o]]+MT(r,g/2),m[s[a]]=l+MT(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function qT(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(FT),_=Math.max(g,XT(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function JT(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function YT(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new J(t.x-a.x,t.y-a.y,t.width,t.height);PT(e.viewChildren||[],function(e){YT(e,c,n,r,i+1)})}}function XT(e){return e.get(LT)?e.get(RT):0}function ZT(e){e.registerSeriesModel(Aw),e.registerChartView(tT),e.registerVisual(ST),e.registerLayout(zT),Tw(e)}function QT(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=eE(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=eE(s,[0,o]),i=a=eE(s,[i,a]),r=0}t[0]=eE(t[0],n),t[1]=eE(t[1],n);var c=$T(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=eE(t[r],u);var d=$T(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=$T(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function $T(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 eE(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}var tE=X(),nE=w,rE=F,iE=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 ol,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=I(aE,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}lE(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&&r.getBandWidth()>o)return!0;if(a){var s=RC(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=tE(e).pointerEl=new Cu[i.type](nE(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=tE(e).labelEl=new wo(nE(t.label));e.add(i),sE(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=tE(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=tE(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),sE(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=Ju(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){u_(e.event)},onmousedown:rE(this._onHandleDragMove,this,0,0),drift:rE(this._onHandleDragMove,this),ondragend:rE(this._onHandleDragEnd,this)}),n.add(r)),lE(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);L(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Ng(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){aE(this._axisPointerModel,!t&&this._moveAnimation,this._handle,cE(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(cE(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(cE(r)),tE(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),Pg(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 aE(e,t,n,r){oE(tE(n).lastProp,r)||(tE(n).lastProp=r,t?_u(n,r,e):(n.stopAnimation(),n.attr(r)))}function oE(e,t){if(V(e)&&V(t)){var n=!0;return M(t,function(t,r){n&&=oE(e[r],t)}),!!n}else return e===t}function sE(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function cE(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function lE(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)})}var uE=iE;function dE(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 fE(e,t,n,r,i){var a=mE(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=Dm(o.get(`padding`)||0),c=o.getFont(),l=Ft(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),pE(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:vd(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function pE(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 mE(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:US(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),z(o)?a=o.replace(`{value}`,a):R(o)&&(a=o(s))}return a}function hE(e,t,n){var r=tt();return ot(r,r,n.rotation),at(r,r,n.position),Vu([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function gE(e,t,n,r,i,a){var o=kC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),fE(t,r,i,a,{position:hE(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function _E(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function vE(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var yE=function(e){n(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=bE(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=dE(r),d=xE[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}gE(t,e,AC(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=AC(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=hE(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=bE(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(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}(uE);function bE(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var xE={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:_E([t,n[0]],[t,n[1]],SE(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:vE([t-r/2,n[0]],[r,i],SE(e))}}};function SE(e){return e.dim===`x`?0:1}var CE=yE,wE=function(e){n(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}(Qm),TE=X(),EE=M;function DE(e,t,n){if(!K.node){var r=t.getZr();TE(r).records||(TE(r).records={}),OE(r,t);var i=TE(r).records[e]||(TE(r).records[e]={});i.handler=n}}function OE(e,t){if(TE(e).initialized)return;TE(e).initialized=!0,n(`click`,I(jE,`click`)),n(`mousemove`,I(jE,`mousemove`)),n(`globalout`,AE);function n(n,r){e.on(n,function(n){var i=ME(t);EE(TE(e).records,function(e){e&&r(e,n,i.dispatchAction)}),kE(i.pendings,t)})}}function kE(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 AE(e,t,n){e.handler(`leave`,null,n)}function jE(e,t,n,r){t.handler(e,n,r)}function ME(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 NE(e,t){if(!K.node){var n=t.getZr();(TE(n).records||{})[e]&&(TE(n).records[e]=null)}}var PE=function(e){n(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`;DE(`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){NE(`axisPointer`,t)},t.prototype.dispose=function(e,t){NE(`axisPointer`,t)},t.type=`axisPointer`,t}(vy);function FE(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||L(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`?1:0,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(N(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 IE=X();function LE(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||F(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){qE(i)&&(i=FE({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=qE(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||qE(i),f={},p={},m={list:[],map:{}},h={showPointer:I(BE,p),showTooltip:I(VE,m)};M(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);M(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=GE(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&RE(e,o,h,!1,f)}})});var g={};return M(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&M(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,KE(t),KE(e)))),g[e.key]=a}})}),M(g,function(e,t){RE(u[t],e,h,!0,f)}),HE(p,u,f),UE(m,i,e,o),WE(u,o,n),f}}function RE(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=zE(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&E(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function zE(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return M(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(!(u==null||!isFinite(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),M(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function BE(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function VE(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=VC(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 HE(e,t,n){var r=n.axesInfo=[];M(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 UE(e,t,n,r){if(qE(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 WE(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=IE(r)[i]||{},o=IE(r)[i]={};M(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&M(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];M(a,function(e,t){!o[t]&&c.push(e)}),M(o,function(e,t){!a[t]&&s.push(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 GE(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 KE(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 qE(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function JE(e){UC.registerAxisPointerClass(`CartesianAxisPointer`,CE),e.registerComponentModel(wE),e.registerComponentView(PE),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!L(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=jC(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},LE)}var YE=function(e){n(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`,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}(Qm);function XE(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function ZE(e){if(K.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var QE=ZE([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),$E=ZE([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function eD(e,t){if(!e)return t;t=Em(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function tD(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}var nD=eD($E,`transition`),rD=eD(QE,`transform`),iD=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(K.transform3dSupported?`will-change:transform;`:``);function aD(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function oD(e,t,n){if(!z(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Nm(t);var a=aD(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=rD+`:`,l;O([`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 sD(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?`,`:``)+(K.transformSupported?``+rD+i:`,left`+i+`,top`+i)),nD+`:`+a}function cD(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!K.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=K.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+rD+`:`+o+`;`:[[`top`,0],[`left`,0],[QE,o]]}function lD(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),M([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function uD(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=Yh(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(sD(a,n,r)),o&&i.push(`background-color:`+o),M([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Em(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(lD(d)),f!=null&&i.push(`padding:`+Dm(f).join(`px `)+`px`),i.join(`;`)+`;`}function dD(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&Gp(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 fD=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,K.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&&(z(i)?document.querySelector(i):ie(i)?i:R(i)&&i(e.getDom()));dD(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;o_(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=tD(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=iD+uD(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+cD(i[0],i[1],!0)+(`border-color:`+Nm(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(z(i)&&n.get(`trigger`)===`item`&&!XE(n)&&(o=oD(n,r,i)),z(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,L(e)||(e=[e]);for(var s=0;s<e.length;s++)ie(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(dD(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;M(cD(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`,K.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(F(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;Kp(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}(),pD=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),gD(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;V(e)&&ts(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new wo({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:Yh(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),M([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),M([`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=hD(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;gD(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=mD(i.borderWidth||0),o=hD(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(F(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function mD(e){return Math.max(0,e)}function hD(e){var t=mD(e.shadowBlur||0),n=mD(e.shadowOffsetX||0),r=mD(e.shadowOffsetY||0);return{left:mD(t-n),right:mD(t+n),top:mD(t-r),bottom:mD(t+r)}}function gD(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _D=pD,vD=new io({shape:{x:-1,y:-1,width:2,height:2}}),yD=function(e){n(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(!(K.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=Ms(n.get(`renderMode`)))===`richText`?new _D(t):new fD(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(K.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`)?Ng(this,`_updatePosition`,50,`fixRate`):Pg(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);DE(`itemTooltip`,this._api,F(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(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||K.node||!n.getDom())){var i=xD(r,n);this._ticket=``;var a=r.dataByCoordSys,o=ED(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=vD;c.x=r.x,c.y=r.y,c.update(),Z(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=FE(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,r.from!==this.uid&&this._hide(xD(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&&bD([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(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;ab(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(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._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=F(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=bD([t.tooltipOption],r),o=this._renderMode,s=[],c=Fh(`section`,{blocks:[],noHeader:!0}),l=[],u=new Xh;M(e,function(e){M(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=mE(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Fh(`section`,{header:a,noHeader:!pe(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),M(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=US(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,Nm(m.color),o);var h=ch(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=bD([f],r).get(`valueFormatter`);d.blocks.push(_?E({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,f=Vh(c,u,o,a.get(`order`),n.get(`useUTC`),a.get(`textStyle`));f&&l.unshift(f);var p=o===`richText`?`
|
|
15
|
+
`],Zy=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Sc()}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=yv({color:t,type:e,renderMode:n,markerId:r});return L(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};F(t)?k(t,function(e){return C(n,e)}):C(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}()}));function $y(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=F(s),l=Ky(t,n),u,d,f,p;if(o>1||c&&!o){var m=eb(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=$m(i,n,a[0]),d=h.type}else p=u=c?s[0]:s;var g=nl(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:!pe(y),value:u,valueType:d,dataIndex:n})].concat(f||[])})}function eb(e,t,n,r,i){var a=t.getData(),o=j(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?k(r,function(e){u($m(a,n,e),e)}):k(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 tb=t((()=>{G(),Qy(),mh(),X()}));function nb(e,t){return e.getName(t)||e.getId(t)}function rb(e){var t=e.name;nl(e)||(e.name=ib(e)||t)}function ib(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return k(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}function ab(e){return e.model.getRawData().count()}function ob(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),sb}function sb(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function cb(e,t){k(_e(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,P(lb,t))})}function lb(e,t){var n=ub(e);return n&&n.setOutputEnd((t||this).count()),t}function ub(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 db,fb,pb,mb=t((()=>{o(),G(),We(),X(),qv(),ty(),ay(),Hv(),ly(),at(),Ey(),tb(),db=cl(),fb=function(e){i(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=oy({count:ab,reset:ob}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(db(this).sourceManager=new Ty(this)).prepareSource();var r=this.getInitialData(e,n);cb(r,this),this.dataTask.context.data=r,db(this).dataBeforeProcessed=r,rb(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Nv(this),r=n?Fv(e):{},i=this.subType;Kv.hasClass(i)&&(i+=`Series`),x(e,t.getTheme().get(this.subType)),x(e,this.getDefaultOption()),Uc(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Pv(e,r,n)},t.prototype.mergeOption=function(e,t){e=x(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Nv(this);n&&Pv(this.option,e,n);var r=db(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);cb(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,db(this).dataBeforeProcessed=i,rb(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!ie(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Uc(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=ub(this);if(t){var n=t.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return db(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=ub(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}db(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return U(e)},t.prototype.getSourceManager=function(){return db(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return db(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;var c=[],l=1/0,u=-1,d=0;return i.each(t,function(e,t){var n=s-o.dataToCoord(e),i=Math.abs(n);i<=r&&((i<l||i===l&&n>=0&&u<0)&&(l=i,u=n,d=0),n===u&&(c[d++]=t))}),c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return $y({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(K.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=ey.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=nb(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=N(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[nb(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?!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`){z(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c],u=nb(e,l);s[u]=!0,this._selectedDataIndicesMap[u]=e.getRawIndex(l)}}else if(a===`single`||a===!0){var d=t[o-1],u=nb(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 Kv.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}(Kv),D(fb,iy),D(fb,ey),Xe(fb,Kv),pb=fb}));function hb(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 gb(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?Jf(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?qf(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new Tb({shape:{symbolType:e,x:t,y:n,width:r,height:i}});return c.__isEmptyBrush=s,c.setColor=hb,a&&c.setColor(a),c}function _b(e,t){if(e!=null)return F(e)||(e=[e,e]),[Ac(e[0],t[0])||0,Ac(H(e[1],e[0]),t[1])||0]}var vb,yb,bb,xb,Sb,Cb,wb,Tb,Eb=t((()=>{G(),Mp(),en(),gn(),Nc(),Ay(),vb=us.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()}}),yb=us.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()}}),bb=us.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()}}),xb=us.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()}}),Sb={line:qd,rect:Ms,roundRect:Ms,square:Ms,circle:nd,diamond:yb,pin:bb,arrow:xb,triangle:vb},Cb={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}},wb={},k(Sb,function(e,t){wb[t]=new e}),Tb=us.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=fn(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=wb[r];i||=(r=`rect`,wb[r]),Cb[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}})}));function Db(){var e=cl();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 Ob=t((()=>{X()}));function kb(e,t,n){e&&lu(e)&&(t===`emphasis`?Vl:Hl)(e,n)}function Ab(e,t,n){var r=sl(e,t),i=t&&t.highlightKey!=null?uu(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){kb(e,n,i)}):k(Hc(r),function(t){kb(e.getItemGraphicEl(t),n,i)})}function jb(e){return Pb(e.model)}function Mb(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Nb(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ib[c]}var Nb,Pb,Fb,Ib,Lb,Rb=t((()=>{G(),$u(),Yg(),at(),X(),Eu(),ly(),Ob(),Mp(),Nb=cl(),Pb=Db(),Fb=function(){function e(){this.group=new Qu,this.uid=Wg(`viewChart`),this.renderTask=oy({plan:jb,reset:Mb}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ab(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ab(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.updateLayout=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){gp(this.group,e)},e.markUpdateMethod=function(e,t){Nb(e).updateMethod=t},e.protoInitialize=function(){var t=e.prototype;t.type=`chart`}(),e}(),Je(Fb,[`dispose`]),et(Fb),Ib={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)}}},Lb=Fb}));function zb(e){return e.get(`stack`)||Jb+e.seriesIndex}function Bb(e){return e.dim+e.index}function Vb(e,t){var n=[];return t.eachSeriesByType(e,function(e){Kb(e)&&n.push(e)}),n}function Hb(e){var t={};k(e,function(e){var n=e.coordinateSystem.getBaseAxis();if(!(n.type!==`time`&&n.type!==`value`))for(var r=e.getData(),i=n.dim+`_`+n.index,a=r.getDimensionIndex(r.mapDimension(n.dim)),o=r.getStore(),s=0,c=o.count();s<c;++s){var l=o.get(a,s);t[i]?t[i].push(l):t[i]=[l]}});var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];if(i){i.sort(function(e,t){return e-t});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function Ub(e){var t=Hb(e),n=[];return k(e,function(e){var r=e.coordinateSystem.getBaseAxis(),i=r.getExtent(),a;if(r.type===`category`)a=r.getBandWidth();else if(r.type===`value`||r.type===`time`){var o=t[r.dim+`_`+r.index],s=Math.abs(i[1]-i[0]),c=r.scale.getExtent(),l=Math.abs(c[1]-c[0]);a=o?s/l*o:s}else{var u=e.getData();a=Math.abs(i[1]-i[0])/u.count()}var d=Ac(e.get(`barWidth`),a),f=Ac(e.get(`barMaxWidth`),a),p=Ac(e.get(`barMinWidth`)||(qb(e)?.5:1),a),m=e.get(`barGap`),h=e.get(`barCategoryGap`),g=e.get(`defaultBarGap`);n.push({bandWidth:a,barWidth:d,barMaxWidth:f,barMinWidth:p,barGap:m,barCategoryGap:h,defaultBarGap:g,axisKey:Bb(r),stackId:zb(e)})}),Wb(n)}function Wb(e){var t={};k(e,function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:e.defaultBarGap||0,stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var c=e.barWidth;c&&!o[s].width&&(o[s].width=c,c=Math.min(a.remainedWidth,c),a.remainedWidth-=c);var l=e.barMaxWidth;l&&(o[s].maxWidth=l);var u=e.barMinWidth;u&&(o[s].minWidth=u);var d=e.barGap;d!=null&&(a.gap=d);var f=e.barCategoryGap;f!=null&&(a.categoryGap=f)});var n={};return k(t,function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,a=e.categoryGap;if(a==null){var o=N(r).length;a=Math.max(35-o*4,15)+`%`}var s=Ac(a,i),c=Ac(e.gap,1),l=e.remainedWidth,u=e.autoWidthCount,d=(l-s)/(u+(u-1)*c);d=Math.max(d,0),k(r,function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){var r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,l-=r+c*r,u--}else{var r=d;t&&t<r&&(r=Math.min(t,l)),n&&n>r&&(r=n),r!==d&&(e.width=r,l-=r+c*r,u--)}}),d=(l-s)/(u+(u-1)*c),d=Math.max(d,0);var f=0,p;k(r,function(e,t){e.width||=d,p=e,f+=e.width*(1+c)}),p&&(f-=p.width*c);var m=-f/2;k(r,function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:m,width:e.width},m+=e.width*(1+c)})}),n}function Gb(e,t,n){if(e&&t){var r=e[Bb(t)];return r!=null&&n!=null?r[zb(n)]:r}}function Kb(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}function qb(e){return e.pipelineContext&&e.pipelineContext.large}var Jb,Yb=t((()=>{G(),Nc(),Jb=`__ec_stack_`}));function Xb(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(){var e=[...arguments];r=new Date().getTime(),c=this,l=e;var f=u||t,p=u||n;u=null,s=r-(p?i:a)-f,clearTimeout(o),p?o=setTimeout(d,f):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 Zb(e,t,n,r){var i=e[t];if(i){var a=i[$b]||i,o=i[tx];if(i[ex]!==n||o!==r){if(n==null||!r)return e[t]=a;i=e[t]=Xb(a,n,r===`debounce`),i[$b]=a,i[tx]=r,i[ex]=n}return i}}function Qb(e,t){var n=e[t];n&&n[$b]&&(n.clear&&n.clear(),e[t]=n[$b])}var $b,ex,tx,nx=t((()=>{$b=`\0__throttleOriginMethod`,ex=`\0__throttleRate`,tx=`\0__throttleType`}));function rx(e,t,n,r,i){var a=e+t;n.isSilent(a)||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=sl(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:F(l)?c.getName(l[0]):c.getName(l),selected:L(r)?r:C({},r)})}})}function ix(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(rx(`map`,`selectchanged`,t,r,e),rx(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(rx(`map`,`selected`,t,r,e),rx(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(rx(`map`,`unselected`,t,r,e),rx(`pie`,`unselected`,t,r,e))})}var ax=t((()=>{G(),X()}));function ox(e,t,n,r,i){var a=n.width,o=n.height;switch(e){case`top`:r.set(n.x+a/2,n.y-t),i.set(0,-1);break;case`bottom`:r.set(n.x+a/2,n.y+o+t),i.set(0,1);break;case`left`:r.set(n.x-t,n.y+o/2),i.set(-1,0);break;case`right`:r.set(n.x+a+t,n.y+o/2),i.set(1,0);break}}function sx(e,t,n,r,i,a,o,s,c){o-=e,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var u=o*n+e,d=s*n+t;if(Math.abs(r-i)%vx<1e-4)return c[0]=u,c[1]=d,l-n;if(a){var f=r;r=Ro(i),i=Ro(f)}else r=Ro(r),i=Ro(i);r>i&&(i+=vx);var p=Math.atan2(s,o);if(p<0&&(p+=vx),p>=r&&p<=i||p+vx>=r&&p+vx<=i)return c[0]=u,c[1]=d,l-n;var m=n*Math.cos(r)+e,h=n*Math.sin(r)+t,g=n*Math.cos(i)+e,_=n*Math.sin(i)+t,v=(m-o)*(m-o)+(h-s)*(h-s),y=(g-o)*(g-o)+(_-s)*(_-s);return v<y?(c[0]=m,c[1]=h,Math.sqrt(v)):(c[0]=g,c[1]=_,Math.sqrt(y))}function cx(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d);u/=f,d/=f;var p=(c*u+l*d)/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}function lx(e,t,n,r,i,a,o){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,c=t+r,l=o[0]=Math.min(Math.max(i,e),s),u=o[1]=Math.min(Math.max(a,t),c);return Math.sqrt((l-i)*(l-i)+(u-a)*(u-a))}function ux(e,t,n){var r=lx(t.x,t.y,t.width,t.height,e.x,e.y,xx);return n.set(xx[0],xx[1]),r}function dx(e,t,n){for(var r=0,i=0,a=0,o=0,s,c,l=1/0,u=t.data,d=e.x,f=e.y,p=0;p<u.length;){var m=u[p++];p===1&&(r=u[p],i=u[p+1],a=r,o=i);var h=l;switch(m){case yx.M:a=u[p++],o=u[p++],r=a,i=o;break;case yx.L:h=cx(r,i,u[p],u[p+1],d,f,xx,!0),r=u[p++],i=u[p++];break;case yx.C:h=Ir(r,i,u[p++],u[p++],u[p++],u[p++],u[p],u[p+1],d,f,xx),r=u[p++],i=u[p++];break;case yx.Q:h=Ur(r,i,u[p++],u[p++],u[p],u[p+1],d,f,xx),r=u[p++],i=u[p++];break;case yx.A:var g=u[p++],_=u[p++],v=u[p++],y=u[p++],b=u[p++],x=u[p++];p+=1;var S=!!(1-u[p++]);s=Math.cos(b)*v+g,c=Math.sin(b)*y+_,p<=1&&(a=s,o=c);var C=(d-g)*y/v+g;h=sx(g,_,y,b,b+x,S,C,f,xx),r=Math.cos(b+x)*v+g,i=Math.sin(b+x)*y+_;break;case yx.R:a=r=u[p++],o=i=u[p++];var w=u[p++],T=u[p++];h=lx(a,o,w,T,d,f,xx);break;case yx.Z:h=cx(r,i,a,o,d,f,xx,!0),r=a,i=o;break}h<l&&(l=h,n.set(xx[0],xx[1]))}return l}function fx(e,t){if(e){var n=e.getTextGuideLine(),r=e.getTextContent();if(r&&n){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||bx,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var c=1/0,l=i.anchor,u=e.getComputedTransform(),d=u&&jt([],u),f=t.get(`length2`)||0;l&&Tx.copy(l);for(var p=0;p<o.length;p++){var m=o[p];ox(m,0,s,Sx,Ex),q.scaleAndAdd(Cx,Sx,Ex,f),Cx.transform(d);var h=e.getBoundingRect(),g=l?l.distance(Cx):e instanceof us?dx(Cx,e.path,Tx):ux(Cx,h,Tx);g<c&&(c=g,Cx.transform(u),Tx.transform(u),Tx.toArray(a[0]),Cx.toArray(a[1]),Sx.toArray(a[2]))}px(a,t.get(`minTurnAngle`)),n.setShape({points:a})}}}function px(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Sx.fromArray(e[0]),Cx.fromArray(e[1]),Tx.fromArray(e[2]),q.sub(Ex,Sx,Cx),q.sub(Dx,Tx,Cx);var n=Ex.len(),r=Dx.len();if(!(n<.001||r<.001)){Ex.scale(1/n),Dx.scale(1/r);var i=Ex.dot(Dx);if(Math.cos(t)<i){var a=cx(Cx.x,Cx.y,Tx.x,Tx.y,Sx.x,Sx.y,Ox,!1);kx.fromArray(Ox),kx.scaleAndAdd(Dx,a/Math.tan(Math.PI-t));var o=Tx.x===Cx.x?(kx.y-Cx.y)/(Tx.y-Cx.y):(kx.x-Cx.x)/(Tx.x-Cx.x);if(isNaN(o))return;o<0?q.copy(kx,Cx):o>1&&q.copy(kx,Tx),kx.toArray(e[1])}}}}function mx(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function hx(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=dr(r[0],r[1]),a=dr(r[1],r[2]);if(!i||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=ar([],r[1],r[0],o/i),c=ar([],r[1],r[2],o/a),l=ar([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}function gx(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(!i){r&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<yu.length;c++){var l=yu[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:H(i.states[l]&&i.states[l].ignore,s))||!H(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&mx(r,!0,l,u);continue}r||(r=new Hd,e.setTextGuideLine(r),!d&&(s||!o)&&mx(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),mx(r,!1,l,u)}}if(r){w(r.style,n),r.style.fill=null;var m=a.get(`showAbove`),h=e.textGuideLineConfig=e.textGuideLineConfig||{};h.showAbove=m||!1,r.buildPath=hx}}function _x(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<vu.length;r++){var i=vu[r];n[i]=e.getModel([i,t])}return n}var vx,yx,bx,xx,Sx,Cx,Tx,Ex,Dx,Ox,kx,Ax=t((()=>{Mp(),jo(),Bo(),ei(),G(),Nt(),pr(),Eu(),vx=Math.PI*2,yx=Ao.CMD,bx=[`top`,`right`,`bottom`,`left`],xx=[],Sx=new q,Cx=new q,Tx=new q,Ex=new q,Dx=new q,Ox=[],kx=new q}));function jx(e,t,n){n||=Kx,t?e.dirty|=n:e.dirty&=~n}function Mx(e,t){return t||=Kx,e.dirty==null||!!(e.dirty&t)}function Nx(e){if(e)return Mx(e)&&Px(e,e.label,e),e}function Px(e,t,n){var r=t.getComputedTransform();e.transform=yp(e.transform,r);var i=e.localRect=vp(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=Yp.textMargin);for(var d=0;d<4;d++)qx[d]=u===Yp.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===Yp.textMargin&&fp(i,qx,!1,!1);var f=e.rect=vp(e.rect,i);return r&&f.applyTransform(r),u===Yp.minMargin&&fp(f,qx,!1,!1),e.axisAligned=_p(r),(e.label=e.label||{}).ignore=t.ignore,jx(e,!1),jx(e,!0,Gx),e}function Fx(e,t,n){return e.transform=yp(e.transform,n),e.localRect=vp(e.localRect,t),e.rect=vp(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=_p(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function Ix(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 Lx(e,t){for(var n=0;n<Ux.length;n++){var r=Ux[n];e[r]??(e[r]=t[r])}return Nx(e)}function Rx(e){var t=e.obb;return(!t||Mx(e,Gx))&&(e.obb=t||=new Df,t.fromBoundingRect(e.localRect,e.transform),jx(e,!1,Gx)),t}function zx(e,t,n,r,i){var a=e.length,o=Tp[t],s=Ep[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c=0,l,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;l=m[o]-c,l<0&&(m[o]-=l,p.label[o]-=l,u=!0);var h=Math.max(-l,0);d+=h,c=m[o]+m[s]}d>0&&i&&S(-d/a,0,a);var g=e[0],_=e[a-1],v,y;b(),v<0&&C(-v,.8),y<0&&C(y,.8),b(),x(v,y,1),x(y,v,-1),b(),v<0&&w(-v),y<0&&w(y);function b(){v=g.rect[o]-n,y=r-_.rect[o]-_.rect[s]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){S(r*n,0,a);var i=r+e;i<0&&C(-i*n,1)}else C(-e*n,1)}}function S(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i],s=a.rect;s[o]+=t,a.label[o]+=t}}function C(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(var c=0;c<a-1;c++){var f=r[c]*d;S(f,0,c+1)}else for(var c=a-1;c>0;c--){var f=r[c-1]*d;S(-f,c,a)}}}function w(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?S(n,0,r+1):S(-n,a-r-1,a),e-=n,e<=0)return}return u}function Bx(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.defaultAttr,i=n.labelLine;n.label.attr(`ignore`,r.ignore),i&&i.attr(`ignore`,r.labelGuideIgnore)}}function Vx(e){var t=[];e.sort(function(e,t){return(t.suggestIgnore?1:0)-(e.suggestIgnore?1:0)||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=Nx(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Hx(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}function Hx(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:Rx(e).intersect(Rx(t),n,r)}var Ux,Wx,Gx,Kx,qx,Jx=t((()=>{Mp(),Xp(),Ux=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`],Wx=1,Gx=2,Kx=Wx|Gx,qx=[0,0,0,0]})),Yx,Xx,Zx,Qx=t((()=>{Yx=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),Xx=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 Yx(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 Yx(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 Yx(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Yx(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Yx(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Yx(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Zx=Xx}));function $x(e,t,n,r){return n||={},r?eS(e,t,n):lS&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?eS(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function eS(e,t,n){if(K.domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(a_(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(n_(cS,e,r,i)){n.zrX=cS[0],n.zrY=cS[1];return}}n.zrX=n.zrY=0}function tS(e){return e||window.event}function nS(e,t,n){if(t=tS(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&&$x(e,i,t,n)}else{$x(e,t,t,n);var a=rS(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&sS.test(t.type)&&(t.which=o&1?1:o&2?3:o&4?2:0),t}function rS(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=r===0?Math.abs(n):Math.abs(r),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function iS(e,t,n,r){e.addEventListener(t,n,r)}function aS(e,t,n,r){e.removeEventListener(t,n,r)}function oS(e){return e.which===2||e.which===3}var sS,cS,lS,uS,dS=t((()=>{We(),d_(),sS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cS=[],lS=K.browser.firefox&&+K.browser.version.split(`.`)[0]<39,uS=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}}));function fS(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function pS(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var mS,hS,gS=t((()=>{dS(),mS=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=$x(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 hS)if(hS.hasOwnProperty(t)){var n=hS[t](this._track,e);if(n)return n}},e}(),hS={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=fS(r)/fS(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=pS(r);return t.pinchX=o[0],t.pinchY=o[1],{type:`pinch`,target:e[0].target,event:t}}}}}}));function _S(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:vS}}function vS(){uS(this.event)}function yS(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?SS:!0}return!1}function bS(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=yS(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==SS)){t.target=o;break}}}function xS(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var SS,CS,wS,TS,ES,DS,OS,kS=t((()=>{o(),G(),pr(),Qx(),ma(),dS(),gS(),en(),SS=`silent`,CS=function(e){i(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}(pa),wS=function(){function e(e,t){this.x=e,this.y=t}return e}(),TS=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],ES=new J(0,0,0,0),DS=function(e){i(t,e);function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new wS(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new CS,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Zx(o),o}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(k(TS,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=xS(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 wS(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 wS(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=_S(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 wS(e,t);if(bS(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)&&(ES.copy(u.getBoundingRect()),u.transform&&ES.applyTransform(u.transform),ES.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(bS(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 mS;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 wS;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(pa),k([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){DS.prototype[e]=function(t){var n=t.zrX,r=t.zrY,i=xS(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||dr(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}}),OS=DS}));function AS(e){for(var t=0;e>=RS;)t|=e&1,e>>=1;return e+t}function jS(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++;MS(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function MS(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}}function NS(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 PS(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 FS(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 IS(e,t){var n=zS,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=FS(e[c],e,o,s,0,t);o+=u,s-=u,s!==0&&(l=PS(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=FS(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=PS(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>=zS||m>=zS);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-FS(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-PS(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>=zS||g>=zS);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 LS(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<RS){a=jS(e,n,r,t),NS(e,n,r,n+a,t);return}var o=IS(e,t),s=AS(i);do{if(a=jS(e,n,r,t),a<s){var c=i;c>s&&(c=s),NS(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 RS,zS,BS=t((()=>{RS=32,zS=7}));function VS(){US||(US=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function HS(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var US,WS,GS,KS=t((()=>{G(),BS(),Sa(),US=!1,WS=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=HS}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,LS(n,HS)},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)&&(VS(),p.z=0),isNaN(p.z2)&&(VS(),p.z2=0),isNaN(p.zlevel)&&(VS(),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=T(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}(),GS=WS})),qS,JS,YS=t((()=>{We(),qS=K.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},JS=qS}));function XS(){return new Date().getTime()}var ZS,QS,$S=t((()=>{o(),ma(),YS(),da(),ZS=function(e){i(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=XS()-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&&(JS(t),!e._paused&&e.update())}JS(t)},t.prototype.start=function(){this._running||(this._time=XS(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=XS(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=XS()-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 ua(e,t.loop);return this.addAnimator(n),n},t}(pa),QS=ZS}));function eC(e){var t=e.pointerType;return t===`pen`||t===`touch`}function tC(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 nC(e){e&&(e.zrByTouch=!0)}function rC(e,t){return nS(e.dom,new mC(e,t),!0)}function iC(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}function aC(e,t){var n=t.domHandlers;K.pointerEventsSupported?k(dC.pointer,function(r){sC(t,r,function(t){n[r].call(e,t)})}):(K.touchEventsSupported&&k(dC.touch,function(r){sC(t,r,function(i){n[r].call(e,i),tC(t)})}),k(dC.mouse,function(r){sC(t,r,function(i){i=tS(i),t.touching||n[r].call(e,i)})}))}function oC(e,t){K.pointerEventsSupported?k(fC.pointer,n):K.touchEventsSupported||k(fC.mouse,n);function n(n){function r(r){r=tS(r),iC(e,r.target)||(r=rC(e,r),t.domHandlers[n].call(e,r))}sC(t,n,r,{capture:!0})}}function sC(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,iS(e.domTarget,t,n,r)}function cC(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&aS(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var lC,uC,dC,fC,pC,mC,hC,gC,_C,vC,yC,bC=t((()=>{o(),dS(),G(),ma(),We(),lC=300,uC=K.domSupported,dC=(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:A(e,function(e){var t=e.replace(`mouse`,`pointer`);return n.hasOwnProperty(t)?t:e})}})(),fC={mouse:[`mousemove`,`mouseup`],pointer:[`pointermove`,`pointerup`]},pC=!1,mC=function(){function e(e,t){this.stopPropagation=xe,this.stopImmediatePropagation=xe,this.preventDefault=xe,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),hC={mousedown:function(e){e=nS(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=nS(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=nS(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){e=nS(this.dom,e);var t=e.toElement||e.relatedTarget;iC(this,t)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){pC=!0,e=nS(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){pC||(e=nS(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){e=nS(this.dom,e),nC(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),hC.mousemove.call(this,e),hC.mousedown.call(this,e)},touchmove:function(e){e=nS(this.dom,e),nC(e),this.handler.processGesture(e,`change`),hC.mousemove.call(this,e)},touchend:function(e){e=nS(this.dom,e),nC(e),this.handler.processGesture(e,`end`),hC.mouseup.call(this,e),new Date-+this.__lastTouchMoment<lC&&hC.click.call(this,e)},pointerdown:function(e){hC.mousedown.call(this,e)},pointermove:function(e){eC(e)||hC.mousemove.call(this,e)},pointerup:function(e){hC.mouseup.call(this,e)},pointerout:function(e){eC(e)||hC.mouseout.call(this,e)}},k([`click`,`dblclick`,`contextmenu`],function(e){hC[e]=function(t){t=nS(this.dom,t),this.trigger(e,t)}}),gC={pointermove:function(e){eC(e)||gC.mousemove.call(this,e)},pointerup:function(e){gC.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))}},_C=function(){function e(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return e}(),vC=function(e){i(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 _C(t,hC),uC&&(r._globalHandlerScope=new _C(document,gC)),aC(r,r._localHandlerScope),r}return t.prototype.dispose=function(){cC(this._localHandlerScope),uC&&cC(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,uC&&this.__pointerCapturing^+e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?oC(this,t):cC(t)}},t}(pa),yC=vC})),xC=n({dispose:()=>TC,disposeAll:()=>EC,getElementSSRData:()=>kC,getInstance:()=>DC,init:()=>wC,registerPainter:()=>OC,registerSSRDataGetter:()=>AC,version:()=>FC});function SC(e){delete MC[e]}function CC(e){if(!e)return!1;if(typeof e==`string`)return Oi(e,1)<_a;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Oi(t[i].color,1);return n/=r,n<_a}return!1}function wC(e,t){var n=new NC(v(),e,t);return MC[n.id]=n,n}function TC(e){e.dispose()}function EC(){for(var e in MC)MC.hasOwnProperty(e)&&MC[e].dispose();MC={}}function DC(e){return MC[e]}function OC(e,t){jC[e]=t}function kC(e){if(typeof PC==`function`)return PC(e)}function AC(e){PC=e}var jC,MC,NC,PC,FC,IC=t((()=>{We(),G(),kS(),KS(),$S(),bC(),Li(),xa(),$u(),jC={},MC={},NC=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n||={},this.dom=t,this.id=e;var i=new GS,a=n.renderer||`canvas`;jC[a]||(a=N(jC)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var o=new jC[a](t,i,n,e),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var c=!K.node&&!K.worker&&!s?new yC(o.getViewportRoot(),o.root):null,l=n.useCoarsePointer,u=l==null||l===`auto`?K.touchEventsSupported:!!l,d=44,f;u&&(f=H(n.pointerSize,d)),this.handler=new OS(i,o,c,o.root,f),this.animation=new QS({stage:{update:s?null:function(){return r._flush(!0)}}}),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=CC(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(e){var t,n=XS();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var r=XS();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:r-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()===`canvas`&&this.painter.refreshHover())},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 Qu&&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,SC(this.id))},e}(),FC=`6.0.0`})),LC,RC,zC,BC,VC,HC=t((()=>{Li(),Ay(),LC=``,typeof navigator<`u`&&(LC=navigator.platform||``),RC=`rgba(0, 0, 0, 0.2)`,zC=Q.color.theme[0],BC=Ti(zC,null,null,.9),VC={darkMode:`auto`,colorBy:`series`,color:Q.color.theme,gradientColor:[BC,zC],aria:{decal:{decals:[{color:RC,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:RC,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:RC,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:RC,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:RC,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:RC,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:LC.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}}));function UC(e,t,n){var r=WC.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}var WC,GC=t((()=>{G(),WC=U()}));function KC(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 qC(e,t){var n=e.color&&!e.colorLayer;k(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Kv.hasClass(r)||(typeof t==`object`?e[r]=e[r]?x(e[r],t,!1):b(t):e[r]??(e[r]=t))})}function JC(e,t,n){if(F(t)){var r=U();return k(t,function(e){e!=null&&tl(e,null)!=null&&r.set(e,!0)}),M(n,function(t){return t&&r.get(t[e])})}else{var i=tl(t,null);return M(n,function(t){return t&&i!=null&&t[e]===i})}}function YC(e,t){return t.hasOwnProperty(`subType`)?M(e,function(e){return e&&e.subType===t.subType}):e}function XC(e){var t=U();return e&&k(Hc(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}var ZC,QC,$C,ew,tw,nw,rw,iw=t((()=>{o(),G(),X(),pm(),qv(),HC(),Im(),GC(),ty(),ew=`\0_ec_inner`,tw=1,nw=function(e){i(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 fm(r),this._locale=new fm(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=XC(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,XC(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);!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&&k(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=U(),s=t&&t.replaceMergeMainTypeMap;Om(this),k(e,function(e,t){e!=null&&(Kv.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?b(e):x(n[t],e,!0))}),s&&s.each(function(e,t){Kv.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Kv.topologicalTravel(a,Kv.getAllClassMainTypes(),c,this);function c(t){var a=UC(this,t,Hc(e[t])),o=r.get(t),c=Kc(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);il(c,t,Kv),n[t]=null,r.set(t,null),i.set(t,0);var l=[],u=[],d=0,f;k(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=Kv.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(f)return;f=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=C({componentIndex:n},e.keyInfo);r=new o(i,this,this,s),C(r,s),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`&&ZC(this)}this._seriesIndices||ZC(this)},t.prototype.getOption=function(){var e=b(this.option);return k(e,function(t,n){if(Kv.hasClass(n)){for(var r=Hc(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!rl(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[ew],e},t.prototype.setTheme=function(e){this._theme=new fm(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?M(a,function(e){return!!e}):JC(`name`,i,a):JC(`id`,r,a):(o=[],k(Hc(n),function(e){a[e]&&o.push(a[e])})),YC(o,e)},t.prototype.findComponents=function(e){var t=e.query,n=e.mainType,r=i(t);return a(YC(r?this.queryComponents(r):M(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?M(t,e.filter):t}},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(I(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=L(e)?r.get(e):z(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=tl(e,null);return M(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 M(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return M(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){QC(this),k(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){k(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){QC(this),k(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 k(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return QC(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){QC(this);var n=[];k(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=U(n)},t.prototype.restoreData=function(e){ZC(this);var t=this._componentsMap,n=[];t.each(function(e,t){Kv.hasClass(t)&&n.push(t)}),Kv.topologicalTravel(n,Kv.getAllClassMainTypes(),function(n){k(t.get(n),function(t){t&&(n!==`series`||!KC(t,e))&&t.restoreData()})})},t.internalField=function(){ZC=function(e){var t=e._seriesIndices=[];k(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=U(t)},QC=function(e){},$C=function(e,t){e.option={},e.option[ew]=tw,e._componentsMap=U({series:[]}),e._componentsCount=U();var n=t.aria;z(n)&&n.enabled==null&&(n.enabled=!0),qC(t,e._theme.option),x(t,VC,!1),e._mergeOption(t,null)}}(),t}(fm),D(nw,ey),rw=nw})),aw,ow,sw,cw=t((()=>{G(),aw=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],ow=function(){function e(e){k(aw,function(t){this[t]=W(e[t],e)},this)}return e}(),sw=ow}));function lw(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||=s):((d||u)&&(e.options=e.media=null),a=e),u&&F(l)&&k(l,function(e){e&&e.option&&(e.query?r.push(e):i||=e)}),f(a),k(c,function(e){return f(e)}),k(r,function(e){return f(e.option)});function f(e){k(t,function(t){t(e,n)})}return{baseOption:a,timelineOptions:c||[],mediaDefault:i,mediaList:r}}function uw(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return k(e,function(e,t){var n=t.match(pw);if(!(!n||!n[1]||!n[2])){var a=n[1];dw(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}function dw(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t}function fw(e,t){return e.join(`,`)===t.join(`,`)}var pw,mw,hw,gw=t((()=>{X(),G(),pw=/^(min|max)?(.+)$/,mw=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(k(Hc(e.series),function(e){e&&e.data&&ie(e.data)&&me(e.data)}),k(Hc(e.dataset),function(e){e&&e.source&&ie(e.source)&&me(e.source)})),e=b(e);var r=this._optionBackup,i=lw(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=[],b(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=b(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++)uw(r[s].query,t,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!fw(a,this._currentMediaIndices)&&(o=A(a,function(e){return b(e===-1?i.option:r[e].option)})),this._currentMediaIndices=a,o},e}(),hw=mw}));function _w(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Ow.length;n<r;n++){var i=Ow[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?x(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?x(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function vw(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,w(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function yw(e){vw(e,`itemStyle`),vw(e,`lineStyle`),vw(e,`areaStyle`),vw(e,`label`),vw(e,`labelLine`),vw(e,`upperLabel`),vw(e,`edgeLabel`)}function bw(e,t){var n=Dw(e)&&e[t],r=Dw(n)&&n.textStyle;if(r)for(var i=0,a=vl.length;i<a;i++){var o=vl[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function xw(e){e&&(yw(e),bw(e,`label`),e.emphasis&&bw(e.emphasis,`label`))}function Sw(e){if(Dw(e)){_w(e),yw(e),bw(e,`label`),bw(e,`upperLabel`),bw(e,`edgeLabel`),e.emphasis&&(bw(e.emphasis,`label`),bw(e.emphasis,`upperLabel`),bw(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(_w(t),xw(t));var n=e.markLine;n&&(_w(n),xw(n));var r=e.markArea;r&&xw(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!ie(a))for(var o=0;o<a.length;o++)xw(a[o]);k(e.categories,function(e){yw(e)})}if(i&&!ie(i))for(var o=0;o<i.length;o++)xw(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)xw(s[o]);if(n=e.markLine,n&&n.data)for(var c=n.data,o=0;o<c.length;o++)F(c[o])?(xw(c[o][0]),xw(c[o][1])):xw(c[o]);e.type===`gauge`?(bw(e,`axisLabel`),bw(e,`title`),bw(e,`detail`)):e.type===`treemap`?(vw(e.breadcrumb,`itemStyle`),k(e.levels,function(e){yw(e)})):e.type===`tree`&&yw(e.leaves)}}function Cw(e){return F(e)?e:e?[e]:[]}function ww(e){return(F(e)?e[0]:e)||{}}function Tw(e,t){Ew(Cw(e.series),function(e){Dw(e)&&Sw(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Ew(n,function(t){Ew(Cw(e[t]),function(e){e&&(bw(e,`axisLabel`),bw(e.axisPointer,`label`))})}),Ew(Cw(e.parallel),function(e){var t=e&&e.parallelAxisDefault;bw(t,`axisLabel`),bw(t&&t.axisPointer,`label`)}),Ew(Cw(e.calendar),function(e){vw(e,`itemStyle`),bw(e,`dayLabel`),bw(e,`monthLabel`),bw(e,`yearLabel`)}),Ew(Cw(e.radar),function(e){bw(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Ew(Cw(e.geo),function(e){Dw(e)&&(xw(e),Ew(Cw(e.regions),function(e){xw(e)}))}),Ew(Cw(e.timeline),function(e){xw(e),vw(e,`label`),vw(e,`itemStyle`),vw(e,`controlStyle`,!0);var t=e.data;F(t)&&k(t,function(e){z(e)&&(vw(e,`label`),vw(e,`itemStyle`))})}),Ew(Cw(e.toolbox),function(e){vw(e,`iconStyle`),Ew(e.feature,function(e){vw(e,`iconStyle`)})}),bw(ww(e.axisPointer),`label`),bw(ww(e.tooltip).axisPointer,`label`)}var Ew,Dw,Ow,kw=t((()=>{G(),X(),Ew=k,Dw=z,Ow=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`]}));function Aw(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]],r!=null);i++);return r}function jw(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 Mw(e){e&&k(zw,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}function Nw(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Vw.length;n++){var r=Vw[n][1],i=Vw[n][0];t[r]!=null&&(t[i]=t[r])}}function Pw(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Fw(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Iw(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}function Lw(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Lw(e[n].children,t)}function Rw(e,t){Tw(e,t),e.series=Hc(e.series),k(e.series,function(e){if(z(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){e.clockWise!=null&&(e.clockwise=e.clockWise),Pw(e.label);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)Pw(n[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var i=Aw(e,`pointer.color`);i!=null&&jw(e,`itemStyle.color`,i)}else if(t===`bar`){Nw(e),Nw(e.backgroundStyle),Nw(e.emphasis);var n=e.data;if(n&&!ie(n))for(var r=0;r<n.length;r++)typeof n[r]==`object`&&(Nw(n[r]),Nw(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)),Fw(e),Lw(e.data,Fw)}else t===`graph`||t===`sankey`?Iw(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&w(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Mw(e)}}),e.dataRange&&(e.visualMap=e.dataRange),k(Bw,function(t){var n=e[t];n&&(F(n)||(n=[n]),k(n,function(e){Mw(e)}))})}var zw,Bw,Vw,Hw=t((()=>{G(),kw(),X(),zw=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],Bw=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Vw=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]]}));function Uw(e){var t=U();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(),k(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),Ww(e))})}function Ww(e){k(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=dc(d,_),m=_;break}}}return r[0]=d,r[1]=m,r})})}var Gw=t((()=>{G(),Nc()})),Kw,qw,Jw=t((()=>{$u(),Yg(),at(),Kw=function(){function e(){this.group=new Qu,this.uid=Wg(`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}(),Je(Kw),et(Kw),qw=Kw}));function Yw(e,t){return e.visualStyleMapper||Qw[t]||(console.warn(`Unknown style type '`+t+`'.`),Qw.itemStyle)}function Xw(e,t){return e.visualDrawType||$w[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Zw,Qw,$w,eT,tT,nT,rT,iT=t((()=>{G(),st(),um(),om(),pm(),X(),Zw=cl(),Qw={itemStyle:ot(sm,!0),lineStyle:ot(rm,!0)},$w={lineStyle:`stroke`,itemStyle:`fill`},eT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Yw(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Xw(e,r),c=a[s],l=I(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`||I(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||I(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=C({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},tT=new fm,nT={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Yw(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){tT.option=n[r];var o=i(tT);C(e.ensureUniqueItemVisual(t,`style`),o),tT.option.decal&&(e.setItemVisual(t,`decal`,tT.option.decal),tT.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},rT={performRawSeries:!0,overallReset:function(e){var t=U();e.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+`-`+n,i=t.get(r);i||(i={},t.set(r,i)),Zw(e).scope=i}}),e.eachSeries(function(t){if(!(t.isColorBySeries()||e.isSeriesFiltered(t))){var n=t.getRawData(),r={},i=t.getData(),a=Zw(t).scope,o=Xw(t,t.visualStyleAccessPath||`itemStyle`);i.each(function(e){var t=i.getRawIndex(e);r[t]=e}),n.each(function(e){var s=r[e];if(i.getItemVisual(s,`colorFromPalette`)){var c=i.ensureUniqueItemVisual(s,`style`),l=n.getName(e)||e+``,u=n.count();c[o]=t.getColorFromPalette(l,a,u)}})}})}}}));function aT(e,t){t||={},w(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 Qu,r=new Ms({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i=new Qs({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 Ms({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 rf({shape:{startAngle:-oT/2,endAngle:-oT/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:oT*3/2}).start(`circularInOut`),o.animateShape(!0).when(1e3,{startAngle:oT*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 oT,sT=t((()=>{G(),Mp(),Ay(),oT=Math.PI}));function cT(e){e.overallReset(e.ecModel,e.api,e.payload)}function lT(e){return e.overallProgress&&uT}function uT(){this.agent.dirty(),this.getDownstream().dirty()}function dT(){this.agent&&this.agent.dirty()}function fT(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function pT(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Hc(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?A(t,function(e,t){return mT(t)}):yT}function mT(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 hT(e){return e.data.count()}function gT(e){ST=null;try{e(bT,xT)}catch{}return ST}function _T(e,t){for(var n in t.prototype)e[n]=xe}var vT,yT,bT,xT,ST,CT,wT=t((()=>{G(),ly(),Yg(),iw(),cw(),X(),vT=function(){function e(e,t,n,r){this._stageTaskMap=U(),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),r=e.getData().count(),i=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get(`large`)&&r>=e.get(`largeThreshold`);e.pipelineContext=n.context={progressiveRender:i,modDataCount:e.get(`progressiveChunkMode`)===`mod`?r:null,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=U();e.eachSeries(function(e){var r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),t._pipe(e,e.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;k(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});fe(!(r.reset&&r.overallReset),``),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;k(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=U(),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)||oy({plan:fT,reset:pT,count:hT}));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||oy({reset:cT});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=U(),c=e.seriesType,l=e.getTargetSeries,u=!0,d=!1;fe(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):(u=!1,k(n.getSeries(),f));function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,oy({reset:lT,onDirty:dT})));n.context={model:e,overallProgress: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 I(e)&&(e={overallReset:e,seriesType:gT(e)}),e.uid=Wg(`stageHandler`),t&&(e.visualType=t),e},e}(),yT=mT(0),bT={},xT={},_T(bT,rw),_T(xT,sw),bT.eachSeriesByType=bT.eachRawSeriesByType=function(e){ST=e},bT.eachComponent=function(e){e.mainType===`series`&&e.subType&&(ST=e.subType)},CT=vT})),$,TT,ET,DT,OT,kT,AT=t((()=>{Ay(),$=Q.darkColor,TT=$.background,ET=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},DT={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},OT={darkMode:!0,color:$.theme,backgroundColor:TT,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}},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:DT,y:DT,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:ET(),logAxis:ET(),valueAxis:ET(),categoryAxis:ET(),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=ET();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}}}},OT.categoryAxis.splitLine.show=!1,kT=OT})),jT,MT=t((()=>{G(),at(),jT=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(L(e)){var i=Ge(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};k(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}()})),NT,PT,FT,IT,LT=t((()=>{G(),NT=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],PT=NT.concat([`symbolKeepAspect`]),FT={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<NT.length;o++){var s=NT[o],c=e.get(s);I(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(C({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),t.isSeriesFiltered(e))return;var l=N(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}}},IT={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<PT.length;r++){var i=PT[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}return{dataEach:n.hasItemOption?r:null}}}}));function RT(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:}}function zT(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:}}function BT(e,t,n,r){switch(n){case`color`:var i=e.ensureUniqueItemVisual(t,`style`);i[e.getVisual(`drawType`)]=r,e.setItemVisual(t,`colorFromPalette`,!1);break;case`opacity`:e.ensureUniqueItemVisual(t,`style`).opacity=r;break;case`symbol`:case`symbolSize`:case`liftZ`:e.setItemVisual(t,n,r);break;default:}}var VT=t((()=>{}));function HT(e,t,n){for(var r;e&&!(t(e)&&(r=e,n));)e=e.__hostTarget||e.parent;return r}var UT=t((()=>{})),WT,GT,KT,qT,JT=t((()=>{WT=Math.round(Math.random()*9),GT=typeof Object.defineProperty==`function`,KT=function(){function e(){this._id=`__ec_inner_`+ WT++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return GT?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}(),qT=KT}));function YT(e){return isFinite(e)}function XT(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=YT(r)?r:0,i=YT(i)?i:1,a=YT(a)?a:0,o=YT(o)?o:0,e.createLinearGradient(r,a,i,o)}function ZT(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=YT(o)?o:.5,s=YT(s)?s:.5,c=c>=0&&YT(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}function QT(e,t,n){for(var r=t.type===`radial`?ZT(e,t,n):XT(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function $T(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 eE(e){return parseInt(e,10)}function tE(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]||eE(s[r])||eE(e.style[r]))-(eE(s[a])||0)-(eE(s[o])||0)|0}var nE=t((()=>{}));function rE(e,t){return!e||e===`solid`||!(t>0)?null:e===`dashed`?[4*t,2*t]:e===`dotted`?[t]:R(e)?[e]:F(e)?e:null}function iE(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&rE(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(n=A(n,function(e){return e/i}),r/=i)}return[n,r]}var aE=t((()=>{G()}));function oE(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function sE(e){return typeof e==`string`&&e!==`none`}function cE(e){var t=e.fill;return t!=null&&t!==`none`}function lE(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 uE(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 dE(e,t,n){var r=vt(t.image,t.__image,n);if(bt(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)*ze),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function fE(e,t,n,r){var i,a=oE(n),o=cE(n),s=n.strokePercent,c=s<1,l=!t.path;(!t.silent||c)&&l&&t.createPathProxy();var u=t.path||DE,d=t.__dirty;if(!r){var f=n.fill,p=n.stroke,m=o&&!!f.colorStops,h=a&&!!p.colorStops,g=o&&!!f.image,_=a&&!!p.image,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0;(m||h)&&(S=t.getBoundingRect()),m&&(v=d?QT(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=v),h&&(y=d?QT(e,p,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),g&&(b=d||!t.__canvasFillPattern?dE(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),_&&(x=d||!t.__canvasStrokePattern?dE(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?e.fillStyle=v:g&&(b?e.fillStyle=b:o=!1),h?e.strokeStyle=y:_&&(x?e.strokeStyle=x:a=!1)}var C=t.getGlobalScale();u.setScale(C[0],C[1],t.segmentIgnoreThreshold);var w,T;e.setLineDash&&n.lineDash&&(i=iE(t),w=i[0],T=i[1]);var E=!0;(l||d&4)&&(u.setDPR(e.dpr),c?u.setContext(null):(u.setContext(e),E=!1),u.reset(),t.buildPath(u,t.shape,r),u.toStatic(),t.pathUpdated()),E&&u.rebuildPath(e,c?s:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r||(n.strokeFirst?(a&&uE(e,n),o&&lE(e,n)):(o&&lE(e,n),a&&uE(e,n))),w&&e.setLineDash([])}function pE(e,t,n){var r=t.__image=vt(n.image,t.__image,t,t.onload);if(!(!r||!bt(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 mE(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=iE(t),a=r[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(oE(n)&&e.strokeText(i,n.x,n.y),cE(n)&&e.fillText(i,n.x,n.y)):(cE(n)&&e.fillText(i,n.x,n.y),oE(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}function hE(e,t,n,r,i){var a=!1;if(!r&&(n||={},t===n))return!1;if(r||t.opacity!==n.opacity){SE(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Va.opacity:o}(r||t.blend!==n.blend)&&(a||=(SE(e,i),!0),e.globalCompositeOperation=t.blend||Va.blend);for(var s=0;s<OE.length;s++){var c=OE[s];(r||t[c]!==n[c])&&(a||=(SE(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(SE(e,i),!0),e.shadowColor=t.shadowColor||Va.shadowColor),a}function gE(e,t,n,r,i){var a=CE(t,i.inHover),o=r?null:n&&CE(n,i.inHover)||{};if(a===o)return!1;var s=hE(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(SE(e,i),!0),sE(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(SE(e,i),!0),sE(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(SE(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||=(SE(e,i),!0),e.lineWidth=c)}for(var l=0;l<kE.length;l++){var u=kE[l],d=u[0];(r||a[d]!==o[d])&&(s||=(SE(e,i),!0),e[d]=a[d]||u[1])}return s}function _E(e,t,n,r,i){return hE(e,CE(t,i.inHover),n&&CE(n,i.inHover),r,i)}function vE(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 yE(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),vE(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}function bE(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)}function xE(e){var t=cE(e),n=oE(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 SE(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill=``,t.batchStroke=``}function CE(e,t){return t&&e.__hoverStyle||e.style}function wE(e,t){TE(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function TE(e,t,n,r){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=n.prevElClipPaths,s=!1,c=!1;if((!o||$T(a,o))&&(o&&o.length&&(SE(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(SE(e,n),e.save(),yE(a,e,n),s=!0),n.prevElClipPaths=a),n.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u=t instanceof us&&t.autoBatch&&xE(t.style);s||bE(i,l.transform)?(SE(e,n),vE(e,t)):u||SE(e,n);var d=CE(t,n.inHover);t instanceof us?(n.lastDrawType!==AE&&(c=!0,n.lastDrawType=AE),gE(e,t,l,c,n),(!u||!n.batchFill&&!n.batchStroke)&&e.beginPath(),fE(e,t,d,u),u&&(n.batchFill=d.fill||``,n.batchStroke=d.stroke||``)):t instanceof ms?(n.lastDrawType!==ME&&(c=!0,n.lastDrawType=ME),gE(e,t,l,c,n),mE(e,t,d)):t instanceof bs?(n.lastDrawType!==jE&&(c=!0,n.lastDrawType=jE),_E(e,t,l,c,n),pE(e,t,d)):t.getTemporalDisplayables&&(n.lastDrawType!==NE&&(c=!0,n.lastDrawType=NE),EE(e,t,n)),u&&r&&SE(e,n),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function EE(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},o,s;for(o=t.getCursor(),s=r.length;o<s;o++){var c=r[o];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),TE(e,c,a,o===s-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}for(var l=0,u=i.length;l<u;l++){var c=i[l];c.beforeBrush&&c.beforeBrush(),c.innerBeforeBrush(),TE(e,c,a,l===u-1),c.innerAfterBrush(),c.afterBrush&&c.afterBrush(),a.prevEl=c}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var DE,OE,kE,AE,jE,ME,NE,PE=t((()=>{Ya(),jo(),St(),nE(),ds(),xs(),hs(),G(),aE(),Sa(),g(),DE=new Ao(!0),OE=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],kE=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]],AE=1,jE=2,ME=3,NE=4}));function FE(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&VE.delete(e);var a=VE.get(e);if(a)return a;var o=w(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,VE.set(e,s),e.dirty=!1,s;function c(e){for(var t=[n],a=!0,s=0;s<UE.length;++s){var c=o[UE[s]];if(c!=null&&!F(c)&&!L(c)&&!R(c)&&typeof c!=`boolean`){a=!1;break}t.push(c)}var l;if(a){l=t.join(`,`)+(i?`-svg`:``);var u=HE.get(l);u&&(i?e.svgElement=u:e.image=u)}var d=LE(o.dashArrayX),f=RE(o.dashArrayY),p=IE(o.symbol),m=zE(d),g=BE(f),_=!i&&h.createCanvas(),v=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},y=x(),b;_&&(_.width=y.width*n,_.height=y.height*n,b=_.getContext(`2d`)),S(),a&&HE.put(l,_||v),e.image=_,e.svgElement=v,e.svgWidth=y.width,e.svgHeight=y.height;function x(){for(var e=1,t=0,n=m.length;t<n;++t)e=wc(e,m[t]);for(var r=1,t=0,n=p.length;t<n;++t)r=wc(r,p[t].length);e*=r;var i=g*m.length*p.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function S(){b&&(b.clearRect(0,0,_.width,_.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,_.width,_.height)));for(var e=0,t=0;t<f.length;++t)e+=f[t];if(e<=0)return;for(var a=-g,s=0,c=0,l=0;a<y.height;){if(s%2==0){for(var u=c/2%p.length,m=0,h=0,x=0;m<y.width*2;){for(var S=0,t=0;t<d[l].length;++t)S+=d[l][t];if(S<=0)break;if(h%2==0){var C=(1-o.symbolSize)*.5,w=m+d[l][h]*C,T=a+f[s]*C,E=d[l][h]*o.symbolSize,D=f[s]*o.symbolSize,O=x/2%p[u].length;k(w,T,E,D,p[u][O])}m+=d[l][h],++x,++h,h===d[l].length&&(h=0)}++l,l===d.length&&(l=0)}a+=f[s],++c,++s,s===f.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=gb(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&v.children.push(d)}else wE(b,u)}}}}function IE(e){if(!e||e.length===0)return[[`rect`]];if(L(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!L(e[n])){t=!1;break}if(t)return IE([e]);for(var r=[],n=0;n<e.length;++n)L(e[n])?r.push([e[n]]):r.push(e[n]);return r}function LE(e){if(!e||e.length===0)return[[0,0]];if(R(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,r=0;r<e.length;++r)if(!R(e[r])){n=!1;break}if(n)return LE([e]);for(var i=[],r=0;r<e.length;++r)if(R(e[r])){var t=Math.ceil(e[r]);i.push([t,t])}else{var t=A(e[r],function(e){return Math.ceil(e)});t.length%2==1?i.push(t.concat(t)):i.push(t)}return i}function RE(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(R(e)){var t=Math.ceil(e);return[t,t]}var n=A(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}function zE(e){return A(e,function(e){return BE(e)})}function BE(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?t*2:t}var VE,HE,UE,WE=t((()=>{JT(),gt(),G(),Nc(),Eb(),PE(),g(),VE=new qT,HE=new ht(100),UE=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`]}));function GE(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=FE(n,t)}});var i=r.getVisual(`decal`);if(i){var a=r.getVisual(`style`);a.decal=FE(i,t)}}})}var KE=t((()=>{WE()})),qE,JE,YE=t((()=>{ma(),qE=new pa,JE=qE}));function XE(e,t){QE[e]=t}function ZE(e){return QE[e]}var QE,$E=t((()=>{QE={}}));function eD(e,t){tD[e]=t}var tD,nD=t((()=>{tD={}}));function rD(e){return function(){var t=[...arguments];if(this.isDisposed()){this.id;return}return aD(this,e,t)}}function iD(e){return function(){return aD(this,e,[...arguments])}}function aD(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),pa.prototype[t].apply(e,n)}function oD(e,t,n){var r=!(n&&n.ssr);if(r){var i=uD(e);if(i)return i}var a=new TO(e,t,n);return a.id=`ec_`+ RO++,IO[a.id]=a,r&&fl(e,BO,a.id),xO(a),JE.trigger(`afterinit`,a),a}function sD(e){if(F(e)){var t=e;e=null,k(t,function(t){t.group!=null&&(e=t.group)}),e||=`g_`+ zO++,k(t,function(t){t.group=e})}return LO[e]=!0,e}function cD(e){LO[e]=!1}function lD(e){L(e)?e=IO[e]:e instanceof TO||(e=uD(e)),e instanceof TO&&!e.isDisposed()&&e.dispose()}function uD(e){return IO[pl(e,BO)]}function dD(e){return IO[e]}function fD(e,t){PO[e]=t}function pD(e){T(MO,e)<0&&MO.push(e)}function mD(e,t){wD(jO,e,t,ID)}function hD(e){_D(`afterinit`,e)}function gD(e){_D(`afterupdate`,e)}function _D(e,t){JE.on(e,t)}function vD(e,t,n){var r,i,a,o,s;I(t)&&(n=t,t=``),z(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;OO[r]||(fe($D.test(r)&&$D.test(i)),a&&fe(i!==r),OO[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},AO[i]=1,a&&s&&(AO[l]=1),kO[l]=r)}function yD(e,t){Tg.register(e,t)}function bD(e){var t=Tg.get(e);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function xD(e,t){eD(e,t)}function SD(e,t){wD(NO,e,t,RD,`layout`)}function CD(e,t){wD(NO,e,t,VD,`visual`)}function wD(e,t,n,r,i){if((I(t)||z(t))&&(n=t,t=r),!(T(HO,n)>=0)){HO.push(n);var a=CT.wrapStageHandler(n,i);a.__prio=t,a.__raw=n,e.push(a)}}function TD(e,t){FO[e]=t}function ED(e){c({createCanvas:e})}function DD(e,t,n){var r=ZE(`registerMap`);r&&r(e,t,n)}function OD(e){var t=ZE(`getMap`);return t&&t(e)}function kD(e,t,n,r){return{eventContent:{selected:ru(n),isFromClick:t.isFromClick||!1}}}var AD,jD,MD,ND,PD,FD,ID,LD,RD,zD,BD,VD,HD,UD,WD,GD,KD,qD,JD,YD,XD,ZD,QD,$D,eO,tO,nO,rO,iO,aO,oO,sO,cO,lO,uO,dO,fO,pO,mO,hO,gO,_O,vO,yO,bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO,FO,IO,LO,RO,zO,BO,VO,HO,UO,WO,GO=t((()=>{o(),IC(),G(),We(),BS(),ma(),iw(),cw(),Eg(),gw(),Hw(),Gw(),mb(),Jw(),Rb(),Mp(),Sl(),Eu(),X(),nx(),iT(),sT(),wT(),AT(),at(),MT(),LT(),VT(),Bc(),ax(),xy(),E_(),UT(),KE(),YE(),g(),$E(),nD(),AD=`6.0.0`,jD={zrender:`6.0.0`},MD=1,ND=800,PD=900,FD=1e3,ID=2e3,LD=5e3,RD=1e3,zD=1100,BD=2e3,VD=3e3,HD=4e3,UD=4500,WD=4600,GD=5e3,KD=6e3,qD=7e3,JD={PROCESSOR:{FILTER:FD,SERIES_FILTER:ND,STATISTIC:LD},VISUAL:{LAYOUT:RD,PROGRESSIVE_LAYOUT:zD,GLOBAL:BD,CHART:VD,POST_CHART_LAYOUT:WD,COMPONENT:HD,BRUSH:GD,CHART_ITEM:UD,ARIA:KD,DECAL:qD}},YD=`__flagInMainProcess`,XD=`__mainProcessVersion`,ZD=`__pendingUpdate`,QD=`__needsUpdateStatus`,$D=/^[a-zA-Z0-9_]+$/,eO=`__connectUpdateStatus`,tO=0,nO=1,rO=2,iO=function(e){i(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(pa),aO=iO.prototype,aO.on=iD(`on`),aO.off=iD(`off`),TO=function(e){i(t,e);function t(t,n,r){var i=e.call(this,new jT)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i._dom=t;var a=`canvas`,o=`auto`,s=!1;i[XD]=1,r.ssr&&AC(function(e){var t=Z(e),n=t.dataIndex;if(n!=null){var r=U();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var c=i._zr=wC(t,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:H(r.useDirtyRect,s),useCoarsePointer:H(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Xb(W(c.flush,c),17),i._updateTheme(n),i._locale=__(r.locale||T_),i._coordSysMgr=new Tg;var l=i._api=bO(i);function u(e,t){return e.__prio-t.__prio}return LS(NO,u),LS(jO,u),i._scheduler=new CT(i,l,jO,NO),i._messageCenter=new iO,i._initEvents(),i.resize=W(i.resize,i),c.animation.on(`frame`,i._onframe,i),hO(c,i),gO(c,i),me(i),i}return t.prototype._onframe=function(){if(!this._disposed){CO(this);var e=this._scheduler;if(this[ZD]){var t=this[ZD].silent;this[YD]=!0,wO(this);try{oO(this),lO.update.call(this,null,this[ZD].updateParams)}catch(e){throw this[YD]=!1,this[ZD]=null,e}this._zr.flush(),this[YD]=!1,this[ZD]=null,pO.call(this,t),mO.call(this,t)}else if(e.unfinished){var n=MD,r=this._model,i=this._api;e.unfinished=!1;do{var a=+new Date;e.performSeriesTasks(r),e.performDataProcessorTasks(r),dO(this,r),e.performVisualTasks(r),yO(this,this._model,i,`remain`,{}),n-=+new Date-a}while(n>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[YD]){if(this._disposed){this.id;return}var r,i,a;if(z(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[YD]=!0,wO(this),!this._model||t){var o=new hw(this._api),s=this._theme,c=this._model=new rw;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},MO);var l={seriesTransition:a,optionChanged:!0};if(n)this[ZD]={silent:r,updateParams:l},this[YD]=!1,this.getZr().wakeUp();else{try{oO(this),lO.update.call(this,null,l)}catch(e){throw this[ZD]=null,this[YD]=!1,e}this._ssr||this._zr.flush(),this[ZD]=null,this[YD]=!1,pO.call(this,r),mO.call(this,r)}}},t.prototype.setTheme=function(e,t){if(!this[YD]){if(this._disposed){this.id;return}var n=this._model;if(n){var r=t&&t.silent,i=null;this[ZD]&&(r??=this[ZD].silent,i=this[ZD].updateParams,this[ZD]=null),this[YD]=!0,wO(this);try{this._updateTheme(e),n.setTheme(this._theme),oO(this),lO.update.call(this,{type:`setTheme`},i)}catch(e){throw this[YD]=!1,e}this[YD]=!1,pO.call(this,r),mO.call(this,r)}}},t.prototype._updateTheme=function(e){L(e)&&(e=PO[e]),e&&(e=b(e),e&&Rw(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||K.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return k(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e||={};var t=e.excludeComponents,n=this._model,r=[],i=this;k(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 k(r,function(e){e.group.ignore=!1}),a},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(LO[n]){var o=a,s=a,c=-a,l=-a,u=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();k(IO,function(a,d){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(b(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=h.createCanvas(),g=wC(m,{renderer:t?`svg`:`canvas`});if(g.resize({width:f,height:p}),t){var _=``;return k(u,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new Ms({shape:{x:0,y:0,width:f,height:p},style:{fill:e.connectedBackgroundColor}})),k(u,function(e){var t=new bs({style:{x:e.left*d-o,y:e.top*d-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),m.toDataURL(`image/`+(e&&e.type||`png`))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,t,n){return uO(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return uO(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return uO(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){if(this._disposed){this.id;return}var n=this._model,r;return k(ll(n,e),function(e,n){n.indexOf(`Models`)>=0&&k(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))}},this)},this),!!r},t.prototype.getVisual=function(e,t){var n=this._model,r=ll(n,e,{defaultMainType:`series`}),i=r.seriesModel.getData(),a=r.hasOwnProperty(`dataIndexInside`)?r.dataIndexInside:r.hasOwnProperty(`dataIndex`)?i.indexOfRawIndex(r.dataIndex):null;return a==null?zT(i,t):RT(i,a,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;k(DO,function(t){var n=function(n){var r=e.getModel(),i=n.target,a;if(t===`globalout`?a={}:i&&HT(i,function(e){var t=Z(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}else if(t.eventData)return a=C({},t.eventData),!0},!0),a){var o=a.componentType,s=a.componentIndex;(o===`markLine`||o===`markPoint`||o===`markArea`)&&(o=`series`,s=a.seriesIndex);var c=o&&s!=null&&r.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];a.event=n,a.type=t,e._$eventProcessor.eventInfo={targetEl:i,packedEvent:a,model:c,view:l},e.trigger(t,a)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;k(AO,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),ix(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0,this.getDom()&&fl(this.getDom(),BO,``);var e=this,t=e._api,n=e._model;k(e._componentsViews,function(e){e.dispose(n,t)}),k(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 IO[e.id]},t.prototype.resize=function(e){if(!this[YD]){if(this._disposed){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[ZD]&&(r??=this[ZD].silent,n=!0,this[ZD]=null),this[YD]=!0,wO(this);try{n&&oO(this),lO.update.call(this,{type:`resize`,animation:C({duration:0},e&&e.animation)})}catch(e){throw this[YD]=!1,e}this[YD]=!1,pO.call(this,r),mO.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed){this.id;return}if(z(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),FO[e]){var n=FO[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var t=C({},e);return t.type=kO[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed){this.id;return}if(z(t)||(t={silent:!!t}),OO[e.type]&&this._model){if(this[YD]){this._pendingActions.push(e);return}var n=t.silent;fO.call(this,e,n);var r=t.flush;r?this._zr.flush():r!==!1&&K.browser.weChat&&this._throttledZrFlush(),pO.call(this,n),mO.call(this,n)}},t.prototype.updateLabelLayout=function(){JE.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){oO=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),sO(e,!0),sO(e,!1),t.plan()},sO=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=Ge(e.type);u=new(t?qw.getClass(d.main,d.sub):Lb.getClass(d.sub)),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)}},cO=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),!r){k([].concat(e._componentsViews,e._chartsViews),u);return}var o={};o[r+`Id`]=n[r+`Id`],o[r+`Index`]=n[r+`Index`],o[r+`Name`]=n[r+`Name`];var s={mainType:r,query:o};i&&(s.subType=i);var c=n.excludeSeriesId,l;c!=null&&(l=U(),k(Hc(c),function(e){var t=tl(e,null);t!=null&&l.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!(l&&l.get(t.id)!=null))if(fu(n))if(t instanceof pb)n.type===`highlight`&&!n.notBlur&&!t.get([`emphasis`,`disabled`])&&Zl(t,n,e._api);else{var r=Ql(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&Xl(t.mainType,t.componentIndex,e._api),a&&k(a,function(e){n.type===`highlight`?Vl(e):Hl(e)})}else du(n)&&t instanceof pb&&(tu(t,n,e._api),nu(t),SO(e))},e),a&&a.eachComponent(s,function(t){l&&l.get(t.id)!=null||u(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e);function u(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},lO={prepareAndUpdate:function(e){oO(this),lO.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){r.setUpdatePayload(e),s.restoreData(r,e),s.performSeriesTasks(r),o.create(r,i),s.performDataProcessorTasks(r,e),dO(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),_O(this,r,i,e,n),JE.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var n=this,r=this._model,i=this._api;if(r){r.setUpdatePayload(e);var a=[];r.eachComponent(function(t,o){if(t!==`series`){var s=n.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var c=s.updateTransform(o,r,i,e);c&&c.update&&a.push(s)}else a.push(s)}});var o=U();r.eachSeries(function(t){var a=n._chartsMap[t.__viewId];if(a.updateTransform){var s=a.updateTransform(t,r,i,e);s&&s.update&&o.set(t.uid,1)}else o.set(t.uid,1)}),t(r),this._scheduler.performVisualTasks(r,e,{setDirty:!0,dirtyMap:o}),yO(this,r,i,e,{},o),JE.trigger(`afterupdate`,r,i)}},updateView:function(e){var n=this._model;n&&(n.setUpdatePayload(e),Lb.markUpdateMethod(e,`updateView`),t(n),this._scheduler.performVisualTasks(n,e,{setDirty:!0}),_O(this,n,this._api,e,{}),JE.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()}),Lb.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)}),JE.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){lO.update.call(this,e)}};function e(e,t,n,r,i){if(e._disposed){e.id;return}for(var a=e._model,o=e._coordSysMgr.getCoordinateSystems(),s,c=ll(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}}uO=e,dO=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},fO=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=OO[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&Ge(s[0]);this[YD]=!0,wO(this);var u=[e],d=!1;e.batch&&(d=!0,u=A(e.batch,function(t){return t=w(C({},t),e),t.batch=null,t}));var f=[],p,m=[],h=o.nonRefinedEventType,g=du(e),_=fu(e);if(_&&Jl(this._api),k(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):p=i,p||=C({},t),p.type=h,f.push(p),_){var a=ul(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;cO(n,c,t,u),SO(n)}else g?(cO(n,c,t,`series`),SO(n)):l&&cO(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[ZD]?(oO(this),lO.update.call(this,e),this[ZD]=null):lO[c].call(this,e)}catch(e){throw this[YD]=!1,e}if(p=d?{type:h,escapeConnect:a,batch:f}:f[0],this[YD]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;fe(z(y)),v=w({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)}},pO=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();fO.call(this,n,e)}},mO=function(e){!e&&this.trigger(`updated`)},hO=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),e.animation.isFinished()&&!t[ZD]&&!t._scheduler.unfinished&&!t._pendingActions.length&&t.trigger(`finished`)})},gO=function(e,t){e.on(`mouseover`,function(e){var n=e.target,r=HT(n,lu);r&&($l(r,e,t._api),SO(t))}).on(`mouseout`,function(e){var n=e.target,r=HT(n,lu);r&&(eu(r,e,t._api),SO(t))}).on(`click`,function(e){var n=e.target,r=HT(n,function(e){return Z(e).dataIndex!=null},!0);if(r){var i=r.selected?`unselect`:`select`,a=Z(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;LS(i,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),k(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)})}}_O=function(e,t,r,i,a){n(t),vO(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive=!1}),yO(e,t,r,i,a),k(e._chartsViews,function(e){e.__alive||e.remove(t,r)})},vO=function(e,t,n,r,i,a){k(a||e._componentsViews,function(e){var i=e.__model;c(i,e),e.render(i,t,n,r),s(i,e),l(i,e)})},yO=function(e,t,n,r,i,u){var d=e._scheduler;i=C(i||{},{updatedSeries:t.getSeries()}),JE.trigger(`series:beforeupdate`,t,n,i);var f=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var i=n.renderTask;d.updatePayload(i,r),c(t,n),u&&u.get(t.uid)&&i.dirty(),i.perform(d.getPerformArgs(i))&&(f=!0),n.group.silent=!!t.get(`silent`),o(t,n),nu(t)}),d.unfinished=f||d.unfinished,JE.trigger(`series:layoutlabels`,t,n,i),JE.trigger(`series:transition`,t,n,i),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];s(t,n),l(t,n)}),a(e,t),JE.trigger(`series:afterupdate`,t,n,i)},SO=function(e){e[QD]=!0,e.getZr().wakeUp()},wO=function(e){e[XD]=(e[XD]+1)%1e3},CO=function(e){e[QD]&&(e.getZr().storage.traverse(function(e){Lf(e)||r(e)}),e[QD]=!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 a(e,t){var n=e._zr.storage,r=0;n.traverse(function(e){e.isGroup||r++}),r>t.get(`hoverLayerThreshold`)&&!K.node&&!K.worker&&t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)})}})}function o(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}function s(e,t){if(!e.preventAutoZ){var n=bp(e);t.eachRendered(function(e){return Sp(e,n.z,n.zlevel),!0})}}function c(e,t){t.eachRendered(function(e){if(!Lf(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 l(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(Lf(e))return;if(e instanceof us&&pu(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)}})}bO=function(e){return new(function(t){i(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){Vl(t,n),SO(e)},n.prototype.leaveEmphasis=function(t,n){Hl(t,n),SO(e)},n.prototype.enterBlur=function(t){Ul(t),SO(e)},n.prototype.leaveBlur=function(t){Wl(t),SO(e)},n.prototype.enterSelect=function(t){Gl(t),SO(e)},n.prototype.leaveSelect=function(t){Kl(t),SO(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.getMainProcessVersion=function(){return e[XD]},n}(sw))(e)},xO=function(e){function t(e,t){for(var n=0;n<e.length;n++){var r=e[n];r[eO]=t}}k(kO,function(n,r){e._messageCenter.on(r,function(n){if(LO[e.group]&&e[eO]!==tO){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];k(IO,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,tO),k(i,function(e){e[eO]!==nO&&e.dispatchAction(r)}),t(i,rO)}})})}}(),t}(pa),EO=TO.prototype,EO.on=rD(`on`),EO.off=rD(`off`),EO.one=function(e,t,n){var r=this;function i(){var n=[...arguments];t&&t.apply&&t.apply(this,n),r.off(e,i)}this.on.call(this,e,i,n)},DO=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],OO={},kO={},AO={},jO=[],MO=[],NO=[],PO={},FO={},IO={},LO={},RO=new Date-0,zO=new Date-0,BO=`_echarts_instance_`,VO=cD,HO=[],UO=hy,CD(BD,eT),CD(UD,nT),CD(UD,rT),CD(BD,FT),CD(UD,IT),CD(qD,GE),pD(Rw),mD(PD,Uw),TD(`default`,aT),vD({type:bu,event:bu,update:bu},xe),vD({type:xu,event:xu,update:xu},xe),vD({type:Su,event:Tu,update:Su,action:xe,refineEvent:kD,publishNonRefinedEvent:!0}),vD({type:Cu,event:Tu,update:Cu,action:xe,refineEvent:kD,publishNonRefinedEvent:!0}),vD({type:wu,event:Tu,update:wu,action:xe,refineEvent:kD,publishNonRefinedEvent:!0}),fD(`default`,{}),fD(`dark`,kT),WO={}}));function KO(e){if(F(e)){k(e,function(e){KO(e)});return}T(qO,e)>=0||(qO.push(e),I(e)&&(e={install:e}),e.install(JO))}var qO,JO,YO=t((()=>{GO(),Jw(),Rb(),qv(),mb(),G(),$E(),IC(),nD(),qO=[],JO={registerPreprocessor:pD,registerProcessor:mD,registerPostInit:hD,registerPostUpdate:gD,registerUpdateLifecycle:_D,registerAction:vD,registerCoordinateSystem:yD,registerLayout:SD,registerVisual:CD,registerTransform:UO,registerLoading:TD,registerMap:DD,registerImpl:XE,PRIORITY:JD,ComponentModel:Kv,ComponentView:qw,SeriesModel:pb,ChartView:Lb,registerComponentModel:function(e){Kv.registerClass(e)},registerComponentView:function(e){qw.registerClass(e)},registerSeriesModel:function(e){pb.registerClass(e)},registerChartView:function(e){Lb.registerClass(e)},registerCustomSeries:function(e,t){eD(e,t)},registerSubTypeDefaulter:function(e,t){Kv.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){OC(e,t)}}})),XO,ZO=t((()=>{XO=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()}));function QO(e){return z(e)&&e.value!=null?e.value:e+``}var $O,ek,tk,nk=t((()=>{G(),$O=0,ek=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++$O,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&A(r,QO);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(!L(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||=U(this.categories)},e}(),tk=ek})),rk=null;function ik(){return rk}function ak(e,t,n,r,i){var a={},o=a.interval=_c(t/n,!0);r!=null&&o<r&&(o=a.interval=r),i!=null&&o>i&&(o=a.interval=i);var s=a.intervalPrecision=ok(o);return ck(a.niceTickExtent=[ic(Math.ceil(e[0]/o)*o,s),ic(Math.floor(e[1]/o)*o,s)],e),a}function ok(e){return oc(e)+2}function sk(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function ck(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),sk(e,0,t),sk(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function lk(e,t){return e>=t[0]&&e<=t[1]}function uk(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function dk(e,t){return e*(t[1]-t[0])+t[0]}function fk(e,t,n){var r=Math.log(e);return[Math.log(n?t[0]:Math.max(0,t[0]))/r,Math.log(n?t[1]:Math.max(0,t[1]))/r]}var pk,mk=t((()=>{Nc(),G(),pk=function(){function e(){this.normalize=uk,this.scale=dk}return e.prototype.updateMethods=function(e){e.hasBreaks()?(this.normalize=W(e.normalize,e),this.scale=W(e.scale,e)):(this.normalize=uk,this.scale=dk)},e}()})),hk,gk,_k=t((()=>{at(),mk(),G(),k_(),hk=function(){function e(e){this._calculator=new pk,this._setting=e||{},this._extent=[1/0,-1/0];var t=D_();t&&(this._brkCtx=t.createScaleBreakContext(),this._brkCtx.update(this._extent))}return e.prototype.getSetting=function(e){return this._setting[e]},e.prototype._innerUnionExtent=function(e){var t=this._extent;this._innerSetExtent(e[0]<t[0]?e[0]:t[0],e[1]>t[1]?e[1]:t[1])},e.prototype.unionExtentFromData=function(e,t){this._innerUnionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){this._innerSetExtent(e,t)},e.prototype._innerSetExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t),this._brkCtx&&this._brkCtx.update(n)},e.prototype.setBreaksFromOption=function(e){var t=D_();t&&this._innerSetBreak(t.parseAxisBreakOption(e,W(this.parse,this)))},e.prototype._innerSetBreak=function(e){this._brkCtx&&(this._brkCtx.setBreaks(e),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},e.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},e.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},e.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}(),et(hk),gk=hk})),vk,yk,bk=t((()=>{o(),_k(),nk(),mk(),G(),vk=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;n.type=`ordinal`;var r=n.getSetting(`ordinalMeta`);return r||=new tk({}),F(r)&&(r=new tk({categories:A(r,function(e){return z(e)?e.value:e})})),n._ordinalMeta=r,n._extent=n.getSetting(`extent`)||[0,r.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:L(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return lk(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],t=this._extent,n=t[0];n<=t[1];)e.push({value:n}),n++;return 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=Math.min(a,t.length);i<o;++i){var s=t[i];n[i]=s,r[s]=i}for(var c=0;i<a;++i){for(;r[c]!=null;)c++;n.push(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(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type=`ordinal`,t}(gk),gk.registerClass(vk),yk=vk})),xk,Sk,Ck,wk=t((()=>{o(),Nc(),Dv(),_k(),mk(),k_(),xk=ic,Sk=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`interval`,t._interval=0,t._intervalPrecision=2,t}return t.prototype.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.contain=function(e){return lk(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=ok(e)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=D_(),o=[];if(!t)return o;if(e.breakTicks===`only_break`&&a)return a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o;var s=1e4;n[0]<r[0]&&(e.expandToNicedExtent?o.push({value:xk(r[0]-t,i)}):o.push({value:n[0]}));for(var c=function(e,n){return Math.round((n-e)/t)},l=r[0];l<=r[1];){if(o.push({value:l}),l=xk(l+t,i),this._brkCtx){var u=this._brkCtx.calcNiceTickMultiple(l,c);u>=0&&(l=xk(l+u*t,i))}if(o.length>0&&l===o[o.length-1].value)break;if(o.length>s)return[]}var d=o.length?o[o.length-1].value:r[1];return n[1]>d&&(e.expandToNicedExtent?o.push({value:xk(d+t,i)}):o.push({value:n[1]})),a&&a.pruneTicksByBreak(e.pruneByBreak,o,this._brkCtx.breaks,function(e){return e.value},this._interval,this._extent),e.breakTicks!==`none`&&a&&a.addBreaksToTicks(o,this._brkCtx.breaks,this._extent),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks({expandToNicedExtent:!0}),n=[],r=this.getExtent(),i=1;i<t.length;i++){var a=t[i],o=t[i-1];if(!(o.break||a.break)){for(var s=0,c=[],l=(a.value-o.value)/e,u=ok(l);s<e-1;){var d=xk(o.value+(s+1)*l,u);d>r[0]&&d<r[1]&&c.push(d),s++}var f=D_();f&&f.pruneTicksByBreak(`auto`,c,this._getNonTransBreaks(),function(e){return e},this._interval,r),n.push(c)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;return n==null?n=oc(e.value)||0:n===`auto`&&(n=this._intervalPrecision),hv(xk(e.value,n,!0))},t.prototype.calcNiceTicks=function(e,t,n){e||=5;var r=this._extent.slice(),i=this._getExtentSpanWithBreaks();if(isFinite(i)){i<0&&(i=-i,r.reverse(),this._innerSetExtent(r[0],r[1]),r=this._extent.slice());var a=ak(r,i,e,t,n);this._intervalPrecision=a.intervalPrecision,this._interval=a.interval,this._niceExtent=a.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var t=this._extent.slice();if(t[0]===t[1])if(t[0]!==0){var n=Math.abs(t[0]);e.fixMax||(t[1]+=n/2),t[0]-=n/2}else t[1]=1;var r=t[1]-t[0];isFinite(r)||(t[0]=0,t[1]=1),this._innerSetExtent(t[0],t[1]),t=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var i=this._interval,a=this._intervalPrecision;e.fixMin||(t[0]=xk(Math.floor(t[0]/i)*i,a)),e.fixMax||(t[1]=xk(Math.ceil(t[1]/i)*i,a)),this._innerSetExtent(t[0],t[1])},t.prototype.setNiceExtent=function(e,t){this._niceExtent=[e,t]},t.type=`interval`,t}(gk),gk.registerClass(Sk),Ck=Sk}));function Tk(e,t,n,r){return z_(new Date(t),e,r).getTime()===z_(new Date(n),e,r).getTime()}function Ek(e,t){return e/=rv,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Dk(e){var t=30*rv;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ok(e){return e/=nv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function kk(e,t){return e/=t?tv:ev,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Ak(e){return _c(e,!0)}function jk(e,t,n){var r=Math.max(0,T(uv,t)-1);return z_(new Date(e),uv[r],n).getTime()}function Mk(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 Nk(e,t,n,r,i,a){var o=1e4,s=dv,c=0;function l(e,t,n,i,s,l,u){for(var d=Mk(s,e),f=t,p=new Date(f);f<n&&f<=r[1]&&(u.push({value:f}),!(c++>o));)if(p[s](p[i]()+e),f=p.getTime(),a){var m=a.calcNiceTickMultiple(f,d);m>0&&(p[s](p[i]()+m*e),f=p.getTime())}u.push({value:f,notAdd:!0})}function u(e,i,a){var o=[],s=!i.length;if(!Tk(N_(e),r[0],r[1],n)){s&&(i=[{value:jk(r[0],e,n)},{value:r[1]}]);for(var c=0;c<i.length-1;c++){var u=i[c].value,d=i[c+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/rv/365)),p=B_(n),m=q_(n);break;case`half-year`:case`quarter`:case`month`:f=Dk(t),p=V_(n),m=J_(n);break;case`week`:case`half-week`:case`day`:f=Ek(t,31),p=H_(n),m=Y_(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=Ok(t),p=U_(n),m=X_(n);break;case`minute`:f=kk(t,!0),p=W_(n),m=Z_(n);break;case`second`:f=kk(t,!1),p=G_(n),m=Q_(n);break;case`millisecond`:f=Ak(t),p=K_(n),m=$_(n);break}d>=r[0]&&u<=r[1]&&l(f,u,d,p,m,h,o),e===`year`&&a.length>1&&c===0&&a.unshift({value:a[0].value-f})}}for(var c=0;c<o.length;c++)a.push(o[c])}}for(var d=[],f=[],p=0,m=0,h=0;h<s.length;++h){var g=N_(s[h]);if(P_(s[h])&&(u(s[h],d[d.length-1]||[],f),g!==(s[h+1]?N_(s[h+1]):null))){if(f.length){m=p,f.sort(function(e,t){return e.value-t.value});for(var _=[],v=0;v<f.length;++v){var y=f[v].value;(v===0||f[v-1].value!==y)&&(_.push(f[v]),y>=r[0]&&y<=r[1]&&p++)}var b=i/t;if(p>b*1.5&&m>b/1.5||(d.push(_),p>b||e===s[h]))break}f=[]}}for(var x=M(A(d,function(e){return M(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),S=[],C=x.length-1,h=0;h<x.length;++h)for(var w=x[h],T=0;T<w.length;++T){var E=R_(w[T].value,n);S.push({value:w[T].value,time:{level:C-h,upperTimeUnit:E,lowerTimeUnit:E}})}S.sort(function(e,t){return e.value-t.value});for(var D=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&D.push(S[h]);return D}var Pk,Fk,Ik,Lk,Rk=t((()=>{o(),Nc(),fv(),mk(),wk(),_k(),G(),k_(),Pk=function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n},Fk=function(e){i(t,e);function t(t){var n=e.call(this,t)||this;return n.type=`time`,n}return t.prototype.getLabel=function(e){var t=this.getSetting(`useUTC`);return I_(e.value,lv[F_(N_(this._minLevelUnit))]||lv.second,t,this.getSetting(`locale`))},t.prototype.getFormattedLabel=function(e,t,n){var r=this.getSetting(`useUTC`);return L_(e,t,n,this.getSetting(`locale`),r)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=this._extent,r=D_(),i=[];if(!t)return i;var a=this.getSetting(`useUTC`);if(r&&e.breakTicks===`only_break`)return D_().addBreaksToTicks(i,this._brkCtx.breaks,this._extent),i;var o=R_(n[1],a);i.push({value:n[0],time:{level:0,upperTimeUnit:o,lowerTimeUnit:o}});var s=Nk(this._minLevelUnit,this._approxInterval,a,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(s);var c=R_(n[1],a);i.push({value:n[1],time:{level:0,upperTimeUnit:c,lowerTimeUnit:c}});var l=this.getSetting(`useUTC`),u=uv.length-1,d=0;return k(i,function(e){u=Math.min(u,T(uv,e.time.upperTimeUnit)),d=Math.max(d,e.time.level)}),r&&D_().pruneTicksByBreak(e.pruneByBreak,i,this._brkCtx.breaks,function(e){return e.value},this._approxInterval,this._extent),r&&e.breakTicks!==`none`&&D_().addBreaksToTicks(i,this._brkCtx.breaks,this._extent,function(e){for(var t=Math.max(T(uv,R_(e.vmin,l)),T(uv,R_(e.vmax,l))),n=0,r=0;r<uv.length;r++)if(!Tk(uv[r],e.vmin,e.vmax,l)){n=r;break}var i=Math.min(n,u);return{level:d,lowerTimeUnit:uv[Math.max(i,t)],upperTimeUnit:uv[i]}}),i},t.prototype.calcNiceExtent=function(e){var t=this.getExtent();if(t[0]===t[1]&&(t[0]-=rv,t[1]+=rv),t[1]===-1/0&&t[0]===1/0){var n=new Date;t[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),t[0]=t[1]-rv}this._innerSetExtent(t[0],t[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,t,n){e||=10,this._approxInterval=this._getExtentSpanWithBreaks()/e,t!=null&&this._approxInterval<t&&(this._approxInterval=t),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var r=Ik.length,i=Math.min(Pk(Ik,this._approxInterval,0,r),r-1);this._interval=Ik[i][1],this._intervalPrecision=ok(this._interval),this._minLevelUnit=Ik[Math.max(i-1,0)][0]},t.prototype.parse=function(e){return R(e)?e:+mc(e)},t.prototype.contain=function(e){return lk(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type=`time`,t}(Ck),Ik=[[`second`,ev],[`minute`,tv],[`hour`,nv],[`quarter-day`,nv*6],[`half-day`,nv*12],[`day`,rv*1.2],[`half-week`,rv*3.5],[`week`,rv*7],[`month`,rv*31],[`quarter`,rv*95],[`half-year`,iv/2],[`year`,iv]],gk.registerClass(Fk),Lk=Fk}));function zk(e,t){return Bk(e,oc(t))}var Bk,Vk,Hk,Uk,Wk,Gk,Kk,qk=t((()=>{o(),G(),_k(),Nc(),wk(),mk(),k_(),Bk=ic,Vk=Math.floor,Hk=Math.ceil,Uk=Math.pow,Wk=Math.log,Gk=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`log`,t.base=10,t._originalScale=new Ck,t}return t.prototype.getTicks=function(t){t||={};var n=this._extent.slice(),r=this._originalScale.getExtent(),i=e.prototype.getTicks.call(this,t),a=this.base,o=this._originalScale._innerGetBreaks(),s=D_();return A(i,function(e){var t=e.value,i=null,c=Uk(a,t);t===n[0]&&this._fixMin?i=r[0]:t===n[1]&&this._fixMax&&(i=r[1]);var l;if(s){var u=s.getTicksLogTransformBreak(e,a,o,zk);l=u.vBreak,i??=u.brkRoundingCriterion}return i!=null&&(c=zk(c,i)),{value:c,break:l}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(t,n){this._originalScale.setExtent(t,n);var r=fk(this.base,[t,n]);e.prototype.setExtent.call(this,r[0],r[1])},t.prototype.getExtent=function(){var t=this.base,n=e.prototype.getExtent.call(this);n[0]=Uk(t,n[0]),n[1]=Uk(t,n[1]);var r=this._originalScale.getExtent();return this._fixMin&&(n[0]=zk(n[0],r[0])),this._fixMax&&(n[1]=zk(n[1],r[1])),n},t.prototype.unionExtentFromData=function(e,t){this._originalScale.unionExtentFromData(e,t);var n=fk(this.base,e.getApproximateExtent(t),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e||=10;var t=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var r=hc(n);for(e/n*r<=.5&&(r*=10);!isNaN(r)&&Math.abs(r)<1&&Math.abs(r)>0;)r*=10;var i=[Bk(Hk(t[0]/r)*r),Bk(Vk(t[1]/r)*r)];this._interval=r,this._intervalPrecision=ok(r),this._niceExtent=i}},t.prototype.calcNiceExtent=function(t){e.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},t.prototype.contain=function(t){return t=Wk(t)/Wk(this.base),e.prototype.contain.call(this,t)},t.prototype.normalize=function(t){return t=Wk(t)/Wk(this.base),e.prototype.normalize.call(this,t)},t.prototype.scale=function(t){return t=e.prototype.scale.call(this,t),Uk(this.base,t)},t.prototype.setBreaksFromOption=function(e){var t=D_();if(t){var n=t.logarithmicParseBreaksFromOption(e,this.base,W(this.parse,this)),r=n.parsedOriginal,i=n.parsedLogged;this._originalScale._innerSetBreak(r),this._innerSetBreak(i)}},t.type=`log`,t}(Ck),gk.registerClass(Gk),Kk=Gk}));function Jk(e,t,n){var r=e.rawExtentInfo;return r||(r=new Xk(e,t,n),e.rawExtentInfo=r,r)}function Yk(e,t){return t==null?null:se(t)?NaN:e.parse(t)}var Xk,Zk,Qk,$k=t((()=>{G(),gn(),Xk=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var r=this._isOrdinal=e.type===`ordinal`;this._needCrossZero=e.type===`interval`&&t.getNeedCrossZero&&t.getNeedCrossZero();var i=t.get(`min`,!0);i??=t.get(`startValue`,!0);var a=this._modelMinRaw=i;I(a)?this._modelMinNum=Yk(e,a({min:n[0],max:n[1]})):a!==`dataMin`&&(this._modelMinNum=Yk(e,a));var o=this._modelMaxRaw=t.get(`max`,!0);if(I(o)?this._modelMaxNum=Yk(e,o({min:n[0],max:n[1]})):o!==`dataMax`&&(this._modelMaxNum=Yk(e,o)),r)this._axisDataLen=t.getCategories().length;else{var s=t.get(`boundaryGap`),c=F(s)?s:[s||0,s||0];typeof c[0]==`boolean`||typeof c[1]==`boolean`?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[dn(c[0],1),dn(c[1],1)]}},e.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,r=this._axisDataLen,i=this._boundaryGapInner,a=e?null:n-t||Math.abs(t),o=this._modelMinRaw===`dataMin`?t:this._modelMinNum,s=this._modelMaxRaw===`dataMax`?n:this._modelMaxNum,c=o!=null,l=s!=null;o??=e?r?0:NaN:t-i[0]*a,s??=e?r?r-1:NaN:n+i[1]*a,(o==null||!isFinite(o))&&(o=NaN),(s==null||!isFinite(s))&&(s=NaN);var u=se(o)||se(s)||e&&!r;this._needCrossZero&&(o>0&&s>0&&!c&&(o=0),o<0&&s<0&&!l&&(s=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(o=d,c=!0),f!=null&&(s=f,l=!0),{min:o,max:s,minFixed:c,maxFixed:l,isBlank:u}},e.prototype.modifyDataMinMax=function(e,t){this[Qk[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=Zk[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),Zk={min:`_determinedMin`,max:`_determinedMax`},Qk={min:`_dataMin`,max:`_dataMax`}}));function eA(e,t){var n=e.type,r=Jk(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,a=r.max,o=t.ecModel;if(o&&n===`time`){var s=Vb(`bar`,o),c=!1;if(k(s,function(e){c||=e.getBaseAxis()===t.axis}),c){var l=Ub(s),u=tA(i,a,t,l);i=u.min,a=u.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function tA(e,t,n,r){var i=n.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=Gb(r,n.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(e){s=Math.min(e.offset,s)});var c=-1/0;k(o,function(e){c=Math.max(e.offset+e.width,c)}),s=Math.abs(s),c=Math.abs(c);var l=s+c,u=t-e,d=u/(1-(s+c)/a)-u;return t+=d*(c/l),e-=d*(s/l),{min:e,max:t}}function nA(e,t){var n=t,r=eA(e,n),i=r.extent,a=n.get(`splitNumber`);e instanceof Kk&&(e.base=n.get(`logBase`));var o=e.type,s=n.get(`interval`),c=o===`interval`||o===`time`;e.setBreaksFromOption(lA(n)),e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get(`minInterval`):null,maxInterval:c?n.get(`maxInterval`):null}),s!=null&&e.setInterval&&e.setInterval(s)}function rA(e,t){if(t||=e.get(`type`),t)switch(t){case`category`:return new yk({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case`time`:return new Lk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`)});default:return new((gk.getClass(t))||Ck)}}function iA(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=A_(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}else if(L(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};else if(I(t)){if(e.type===`category`)return function(n,r){return t(aA(e,n),n.value-e.scale.getExtent()[0],null)};var r=D_();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(aA(e,n),i,a)}}else return function(t){return e.scale.getLabel(t)}}function aA(e,t){return e.type===`category`?e.scale.getLabel(t):t.value}function oA(e){return e.get(`interval`)??`auto`}function sA(e){return e.type===`category`&&oA(e.getLabelModel())===0}function cA(e){return e===`middle`||e===`center`}function lA(e){var t=e.get(`breaks`,!0);if(t!=null)return!D_()||!uA(e.axis)?void 0:t}function uA(e){return(e.dim===`x`||e.dim===`y`||e.dim===`z`||e.dim===`single`)&&e.type!==`category`}var dA=t((()=>{G(),bk(),wk(),_k(),Yb(),Rk(),qk(),$k(),fv(),k_()}));function fA(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function pA(e,t){var n=A(t,function(t){return e.scale.parse(t)});return e.type===`time`&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function mA(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=iA(e),i=e.scale.getExtent();return{labels:A(M(pA(e,n),function(e){return e>=i[0]&&e<=i[1]}),function(t){var n={value:t};return{formattedLabel:r(n),rawLabel:e.scale.getLabel(n),tickValue:t,time:void 0,break:void 0}})}}return e.type===`category`?gA(e,t):yA(e)}function hA(e,t,n){var r=e.getTickModel().get(`customValues`);if(r){var i=e.scale.getExtent();return{ticks:M(pA(e,r),function(e){return e>=i[0]&&e<=i[1]})}}return e.type===`category`?vA(e,t):{ticks:A(e.scale.getTicks(n),function(e){return e.value})}}function gA(e,t){var n=e.getLabelModel(),r=_A(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}function _A(e,t,n){var r=PA(e),i=oA(t),a=n.kind===MA.estimate;if(!a){var o=xA(r,i);if(o)return o}var s,c;I(i)?s=kA(e,i):(c=i===`auto`?CA(e,n):i,s=OA(e,c));var l={labels:s,labelCategoryInterval:c};return a?n.out.noPxChangeTryDetermine.push(function(){return SA(r,i,l),!0}):SA(r,i,l),l}function vA(e,t){var n=NA(e),r=oA(t),i=xA(n,r);if(i)return i;var a,o;if((!t.get(`show`)||e.scale.isBlank())&&(a=[]),I(r))a=kA(e,r,!0);else if(r===`auto`){var s=_A(e,e.getLabelModel(),fA(MA.determine));o=s.labelCategoryInterval,a=A(s.labels,function(e){return e.tickValue})}else o=r,a=OA(e,o,!0);return SA(n,r,{ticks:a,tickCategoryInterval:o})}function yA(e){var t=e.scale.getTicks(),n=iA(e);return{labels:A(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})}}function bA(e){return function(t){return jA(t)[e]||(jA(t)[e]={list:[]})}}function xA(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function SA(e,t,n){return e.list.push({key:t,value:n}),n}function CA(e,t){if(t.kind===MA.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return jA(e).autoInterval=n,!0}),n}return jA(e).autoInterval??(jA(e).autoInterval=e.calculateCategoryInterval(t))}function wA(e,t){var n=t.kind,r=DA(e),i=iA(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=sn(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===MA.estimate?(t.out.noPxChangeTryDetermine.push(W(TA,null,e,S,c)),S):EA(e,S,c)??S}function TA(e,t,n){return EA(e,t,n)==null}function EA(e,t,n){var r=AA(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 DA(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 OA(e,t,n){var r=iA(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],c=Math.max((t||0)+1,1),l=a[0],u=i.count();l!==0&&c>1&&u/c>2&&(l=Math.round(Math.ceil(l/c)*c));var d=sA(e),f=o.get(`showMinLabel`)||d,p=o.get(`showMaxLabel`)||d;f&&l!==a[0]&&h(a[0]);for(var m=l;m<=a[1];m+=c)h(m);p&&m-c!==a[1]&&h(a[1]);function h(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e,time:void 0,break:void 0})}return s}function kA(e,t,n){var r=e.scale,i=iA(e),a=[];return k(r.getTicks(),function(e){var o=r.getLabel(e),s=e.value;t(e.value,o)&&a.push(n?s:{formattedLabel:i(e),rawLabel:o,tickValue:s,time:void 0,break:void 0})}),a}var AA,jA,MA,NA,PA,FA=t((()=>{G(),gn(),X(),dA(),AA=cl(),jA=cl(),MA={estimate:1,determine:2},NA=bA(`axisTick`),PA=bA(`axisLabel`)}));function IA(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}function LA(e,t,n,r){var i=t.length;if(!e.onBand||n||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],t[0].onBand=!0,o=t[1]={coord:a[1],tickValue:t[0].tickValue,onBand:!0};else{var c=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/c;k(t,function(e){e.coord-=l/2,e.onBand=!0});var u=e.scale.getExtent();s=1+u[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:u[1]+1,onBand:!0},t.push(o)}var d=a[0]>a[1];f(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&f(a[0],t[0].coord)&&t.unshift({coord:a[0],onBand:!0}),f(a[1],o.coord)&&(r?o.coord=a[1]:t.pop()),r&&f(o.coord,a[1])&&t.push({coord:a[1],onBand:!0});function f(e,t){return e=ic(e),t=ic(t),d?e>t:e<t}}var RA,zA,BA,VA=t((()=>{G(),Nc(),FA(),RA=[0,1],zA=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.getPixelPrecision=function(e){return cc(e||this.scale.getExtent(),this._extent)},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._extent,r=this.scale;return e=r.normalize(r.parse(e)),this.onBand&&r.type===`ordinal`&&(n=n.slice(),IA(n,r.count())),tc(e,RA,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&r.type===`ordinal`&&(n=n.slice(),IA(n,r.count()));var i=tc(e,n,RA,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e||={};var t=e.tickModel||this.getTickModel(),n=hA(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}).ticks,r=A(n,function(e){return{coord:this.dataToCoord(this.scale.type===`ordinal`?this.scale.getRawOrdinalNumber(e):e),tickValue:e}},this),i=t.get(`alignWithLabel`);return LA(this,r,i,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if(this.scale.type===`ordinal`)return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);return e>0&&e<100||(e=5),A(this.scale.getMinorTicks(e),function(e){return A(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return e||=fA(MA.determine),mA(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(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(e){return e||=fA(MA.determine),wA(this,e)},e}(),BA=zA})),HA=`expandAxisBreak`;G(),Mp(),Sl(),Xp(),pm(),Nc(),Eb(),Nt(),pr(),dA(),Jx(),X(),k_(),en(),Ft(),Tr(),FA();var UA=Math.PI,WA=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],GA=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],KA=cl(),qA=cl(),JA=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 YA(e,t,n,r){var i=n.axis,a=t.ensureRecord(n),o=[],s,c=yj(e.axisName)&&cA(e.nameLocation);k(r,function(e){var t=Nx(e);if(!(!t||t.label.ignore)){o.push(t);var n=a.transGroup;c&&(n.transform?jt(XA,n.transform):Tt(XA),t.transform&&Dt(XA,XA,t.transform),J.copy(ZA,t.localRect),ZA.applyTransform(XA),s?s.union(ZA):J.copy(s=new J(0,0,0,0),ZA))}});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 XA=wt(),ZA=new J(0,0,0,0),QA=function(e,t,n,r,i,a){if(cA(e.nameLocation)){var o=a.stOccupiedRect;o&&$A(Fx({},o,a.transGroup.transform),r,i)}else ej(a.labelInfoList,a.dirVec,r,i)};function $A(e,t,n){var r=new q;Hx(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&Ix(t,r)}function ej(e,t,n,r){for(var i=q.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||$A(s,n,r)}}var tj=function(){function e(e,t,n,r){this.group=new Qu,this._axisModel=e,this._api=t,this._local={},this._shared=r||new JA(QA),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=H(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);(i==null||i===`auto`)&&(i=H(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:H(e.nameDirection,1),tickDirection:H(e.tickDirection,1),labelDirection:H(e.labelDirection,1),labelOffset:H(e.labelOffset,0),silent:H(e.silent,!0),axisName:r,nameLocation:le(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:yj(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new Qu({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 q(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},k(nj,function(r){e[r]&&rj[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=fc(t-e),i,a;return pc(r)?(a=n>0?`top`:`bottom`,i=`center`):pc(r-UA)?(a=n>0?`bottom`:`top`,i=`center`):(a=`middle`,i=r>0&&r<UA?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}(),nj=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],rj={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(or(u,u,l),or(d,d,l));var p=C({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&r.axis.scale.hasBreaks())ik().buildAxisBreakLine(r,i,a,m);else{var h=new qd(C({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Zf(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);L(g)&&(g=[g,g]),(L(_)||R(_))&&(_=[_,_]);var v=_b(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];k([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=gb(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;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){fj(t,i,s)&&ij(e,t,n,r,i,a,o,MA.estimate)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){fj(t,i,s)&&ij(e,t,n,r,i,a,o,MA.determine);var c=uj(e,i,a,r);sj(e,t.labelLayoutList,c),dj(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,s){var c=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),c.nameLayout=c.nameLocation=null);var l=e.axisName;if(yj(l)){var u=e.nameLocation,d=e.nameDirection,f=r.getModel(`nameTextStyle`),p=r.get(`nameGap`)||0,m=r.axis.getExtent(),h=r.axis.inverse?-1:1,g=new q(0,0),_=new q(0,0);u===`start`?(g.x=m[0]-h*p,_.x=-h):u===`end`?(g.x=m[1]+h*p,_.x=h):(g.x=(m[0]+m[1])/2,g.y=e.labelOffset+d*p,_.y=d);var v=wt();_.transform(kt(v,v,e.rotation));var y=r.get(`nameRotate`);y!=null&&(y=y*UA/180);var b,x;cA(u)?b=tj.innerTextLayout(e.rotation,y??e.rotation,d):(b=aj(e.rotation,u,y||0,m),x=e.raw.axisNameAvailableWidth,x!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var S=f.getFont(),C=r.get(`nameTruncate`,!0)||{},w=C.ellipsis,T=ce(e.raw.nameTruncateMaxWidth,C.maxWidth,x),E=s.nameMarginLevel||0,D=new Qs({x:g.x,y:g.y,rotation:b.rotation,silent:tj.isLabelSilent(r),style:Lp(f,{text:l,font:S,overflow:`truncate`,width:T,ellipsis:w,fill:f.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:f.get(`align`)||b.textAlign,verticalAlign:f.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(mp({el:D,componentModel:r,itemName:l}),D.__fullText=l,D.anid=`name`,r.get(`triggerEvent`)){var O=tj.makeAxisEventDataBase(r);O.targetType=`axisName`,O.name=l,Z(D).eventData=O}a.add(D),D.updateTransform(),t.nameEl=D;var k=c.nameLayout=Nx({label:D,priority:D.z2,defaultAttr:{ignore:D.ignore},marginDefault:cA(u)?WA[E]:GA[E]});if(c.nameLocation=u,i.add(D),D.decomposeTransform(),e.shouldNameMoveOverlap&&k){var A=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,k,_,A)}}}};function ij(e,t,n,r,i,a,o,s){mj(t)||pj(e,t,i,s,r,o);var c=t.labelLayoutList;gj(e,r,c,a),xj(r,e.rotation,c);var l=e.optionHideOverlap;oj(r,c,l),l&&Vx(M(c,function(e){return e&&!e.label.ignore})),YA(e,n,r,c)}function aj(e,t,n,r){var i=fc(n-e),a,o,s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return pc(i-UA/2)?(o=c?`bottom`:`top`,a=`center`):pc(i-UA*1.5)?(o=c?`top`:`bottom`,a=`center`):(o=`middle`,a=i<UA*1.5&&i>UA/2?c?`left`:`right`:c?`right`:`left`),{rotation:i,textAlign:a,textVerticalAlign:o}}function oj(e,t,n){if(sA(e.axis))return;function r(e,r,i){var a=Nx(t[r]),o=Nx(t[i]);if(!(!a||!o)){if(e===!1||a.suggestIgnore){cj(a.label);return}if(o.suggestIgnore){cj(o.label);return}var s=.1;if(!n){var c=[0,0,0,0];a=Lx({marginForce:c},a),o=Lx({marginForce:c},o)}Hx(a,o,null,{touchThreshold:s})&&cj(e?o.label:a.label)}}var i=e.get([`axisLabel`,`showMinLabel`]),a=e.get([`axisLabel`,`showMaxLabel`]),o=t.length;r(i,0,1),r(a,o-1,o-2)}function sj(e,t,n){e.showMinorTicks||k(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=qA(r),a=KA(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.tickValue){cj(r);return}}})}function cj(e){e&&(e.ignore=!0)}function lj(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&&(or(o,o,t),or(s,s,t));var u=new qd({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Zf(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=qA(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function uj(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=lj(i.getTicksCoords(),n.transform,c,w(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}function dj(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=w(c.getLineStyle(),w(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=lj(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}function fj(e,t,n){if(mj(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),hj(e,null,null,null))}return!0}function pj(e,t,n,r,i,a){var o=i.axis,s=ce(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new Qu;n.add(c);var l=fA(r);if(!s||o.scale.isBlank()){hj(t,[],c,l);return}var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(ce(e.raw.labelRotate,u.get(`rotate`))||0)*UA/180,p=tj.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),_=1/0,v=-1/0;k(d,function(e,t){var n=o.scale.type===`ordinal`?o.scale.getRawOrdinalNumber(e.tickValue):e.tickValue,r=e.formattedLabel,s=e.rawLabel,l=u;if(m&&m[n]){var f=m[n];z(f)&&f.textStyle&&(l=new fm(f.textStyle,u,i.ecModel))}var y=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),b=l.getShallow(`align`,!0)||p.textAlign,x=H(l.getShallow(`alignMinLabel`,!0),b),S=H(l.getShallow(`alignMaxLabel`,!0),b),C=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,w=H(l.getShallow(`verticalAlignMinLabel`,!0),C),T=H(l.getShallow(`verticalAlignMaxLabel`,!0),C),E=10+(e.time?.level||0);_=Math.min(_,E),v=Math.max(v,E);var D=new Qs({x:0,y:0,rotation:0,silent:tj.isLabelSilent(i),z2:E,style:Lp(l,{text:r,align:t===0?x:t===d.length-1?S:b,verticalAlign:t===0?w:t===d.length-1?T:C,fill:I(y)?y(o.type===`category`?s:o.type===`value`?n+``:n,t):y})});D.anid=`label_`+n;var O=KA(D);if(O.break=e.break,O.tickValue=n,O.layoutRotation=p.rotation,mp({el:D,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:s,tickIndex:t}}),g){var k=tj.makeAxisEventDataBase(i);k.targetType=`axisLabel`,k.value=s,k.tickIndex=t,e.break&&(k.break={start:e.break.parsedBreak.vmin,end:e.break.parsedBreak.vmax}),o.type===`category`&&(k.dataIndex=n),Z(D).eventData=k,e.break&&bj(i,a,D,e.break)}h.push(D),c.add(D)}),hj(t,A(h,function(e){return{label:e,priority:KA(e).break?e.z2+(v-_+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}function mj(e){return!!e.labelLayoutList}function hj(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}function gj(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);k(n,function(n,a){var o=Nx(n);if(o){var s=o.label,c=KA(s);o.suggestIgnore=s.ignore,s.ignore=!1,hr(_j,vj),_j.x=t.axis.dataToCoord(c.tickValue),_j.y=e.labelOffset+e.labelDirection*i,_j.rotation=c.layoutRotation,r.add(_j),_j.updateTransform(),r.remove(_j),_j.decomposeTransform(),hr(s,_j),s.markRedraw(),jx(o,!0),Nx(o)}})}var _j=new Ms,vj=new Ms;function yj(e){return!!e}function bj(e,t,n,r){n.on(`click`,function(n){var i={type:HA,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}function xj(e,t,n){var r=D_();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&KA(e.label).break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);(a===!0||a===`auto`)&&k(i,function(r){ik().adjustBreakLabelPair(e.axis.inverse,t,[Nx(n[r[0]]),Nx(n[r[1]])])})}}var Sj=tj;G();function Cj(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),ce(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}pm(),G();function wj(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Tj(n,e,t),n.seriesInvolved&&Dj(n,e),n}function Tj(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];k(n.getCoordinateSystems(),function(n){if(!n.axisPointerEnabled)return;var s=Pj(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(k(n.getAxes(),P(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)&&k(f.baseAxes,P(p,d?`cross`:!0,u)),d&&k(f.otherAxes,P(p,`cross`,!1))}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(!(!f||f===`auto`&&!r&&!Nj(d))){s??=d.get(`triggerTooltip`),d=r?Ej(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Pj(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:Nj(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=Oj(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}function Ej(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s=[`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],c={};k(s,function(e){c[e]=b(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&&w(l,u.textStyle)}return e.model.getModel(`axisPointer`,new fm(c,n,r))}function Dj(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||k(e.coordSysAxesInfo[Pj(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 Oj(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(kj(a[r+`AxisId`],n.id)||kj(a[r+`AxisIndex`],n.componentIndex)||kj(a[r+`AxisName`],n.name))return i}}function kj(e,t){return e===`all`||F(e)&&T(e,t)>=0||e===t}function Aj(e){var t=jj(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=Nj(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(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 jj(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[Pj(e)]}function Mj(e){var t=jj(e);return t&&t.axisPointerModel}function Nj(e){return!!e.get([`handle`,`show`])}function Pj(e){return e.type+`||`+e.id}o(),Jw();var Fj={},Ij=function(e){i(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&&Aj(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=Mj(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){Fj[e]=t},t.getAxisPointerClass=function(e){return e&&Fj[e]},t.type=`axis`,t}(qw);GO(),G(),X();var Lj=cl();function Rj(e,t){return!!Lj(e)[t]}vD({type:`takeGlobalCursor`,event:`globalCursorTaken`,update:`update`},xe),Mp();var zj={axisPointer:1,tooltip:1,brush:1};function Bj(e,t,n){var r=t.getComponentByElement(e.topTarget);if(!r||r===n||zj.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=bp(r),o=bp(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}o(),ma(),dS(),G(),X(),Mp();var Vj=function(e){i(t,e);function t(t){var n=e.call(this)||this;n._zr=t;var r=W(n._mousedownHandler,n),i=W(n._mousemoveHandler,n),a=W(n._mouseupHandler,n),o=W(n._mousewheelHandler,n),s=W(n._pinchHandler,n);return n.enable=function(e,n){var c=n.zInfo,l=bp(c.component),u=l.z,d=l.zlevel,f={component:c.component,z:u,zlevel:d,z2:H(c.z2,-1/0)},p=C({},n.triggerInfo);this._opt=w(C({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:f,triggerInfo:p}),e??=!0,(!this._enabled||this._controlType!==e)&&(this._enabled=!0,this.disable(),(e===!0||e===`move`||e===`pan`)&&(Gj(t,`mousedown`,r,f),Gj(t,`mousemove`,i,f),Gj(t,`mouseup`,a,f)),(e===!0||e===`scale`||e===`zoom`)&&(Gj(t,`mousewheel`,o,f),Gj(t,`pinch`,s,f)))},n.disable=function(){this._enabled=!1,Kj(t,`mousedown`,r),Kj(t,`mousemove`,i),Kj(t,`mouseup`,a),Kj(t,`mousewheel`,o),Kj(t,`pinch`,s)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,t,n){var r=this._opt,i=r.zInfoParsed;if(Bj(e,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return o===`global`&&(s=!0),s||=a.isInSelf(e,t,n),s&&a.isInClip&&!a.isInClip(e,t,n)&&(s=!1),s},t.prototype._decideCursorStyle=function(e,t,n,r){var i=e.target;if(!i&&this._checkPointer(e,t,n))return`grab`;if(r)return i&&i.cursor||`default`},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(oS(e)||Hj(e))){for(var t=e.target;t;){if(t.draggable)return;t=t.__hostTarget||t.parent}var n=e.offsetX,r=e.offsetY;this._checkPointer(e,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var t=this._zr;if(!(e.gestureEvent===`pinch`||Rj(t,`globalPan`)||Hj(e))){var n=e.offsetX,r=e.offsetY;if(!this._dragging||!Xj(`moveOnMouseMove`,e,this._opt)){var i=this._decideCursorStyle(e,n,r,!1);i&&t.setCursorStyle(i);return}t.setCursorStyle(`grabbing`);var a=this._x,o=this._y,s=n-a,c=r-o;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&uS(e.event),e.__ecRoamConsumed=!0,Yj(this,`pan`,`moveOnMouseMove`,e,{dx:s,dy:c,oldX:a,oldY:o,newX:n,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Hj(e)){var t=this._zr;if(!oS(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&t.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Hj(e)){var t=Xj(`zoomOnMouseWheel`,e,this._opt),n=Xj(`moveOnMouseWheel`,e,this._opt),r=e.wheelDelta,i=Math.abs(r),a=e.offsetX,o=e.offsetY;if(!(r===0||!t&&!n)){if(t){var s=i>3?1.4:i>1?1.2:1.1,c=r>0?s:1/s;this._checkTriggerMoveZoom(this,`zoom`,`zoomOnMouseWheel`,e,{scale:c,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r),u=(r>0?1:-1)*(l>3?.4:l>1?.15:.05);this._checkTriggerMoveZoom(this,`scrollMove`,`moveOnMouseWheel`,e,{scrollDelta:u,originX:a,originY:o,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Rj(this._zr,`globalPan`)||Hj(e))){var t=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,`zoom`,null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,t,n,r,i){e._checkPointer(r,i.originX,i.originY)&&(uS(r.event),r.__ecRoamConsumed=!0,Yj(e,t,n,r,i))},t}(pa);function Hj(e){return e.__ecRoamConsumed}var Uj=cl();function Wj(e){var t=Uj(e);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Gj(e,t,n,r){for(var i=Wj(e).roam,a=i[t]=i[t]||[],o=0;o<a.length;o++){var s=a[o].zInfoParsed;if((s.zlevel-r.zlevel||s.z-r.z||s.z2-r.z2)<=0)break}a.splice(o,0,{listener:n,zInfoParsed:r}),qj(e,t)}function Kj(e,t,n){for(var r=Wj(e).roam[t]||[],i=0;i<r.length;i++)if(r[i].listener===n){r.splice(i,1),r.length||Jj(e,t);return}}function qj(e,t){var n=Wj(e);n.uniform[t]||e.on(t,n.uniform[t]=function(e){var r=n.roam[t];if(r)for(var i=0;i<r.length;i++)r[i].listener(e)})}function Jj(e,t){var n=Wj(e).uniform;n[t]&&(e.off(t,n[t]),n[t]=null)}function Yj(e,t,n,r,i){i.isAvailableBehavior=W(Xj,null,n,r),e.trigger(t,i)}function Xj(e,t,n){var r=n[e];return!e||r&&(!L(r)||t.event[r+`Key`])}var Zj=Vj;function Qj(e,t){return Math.abs(e-t)<eM}function $j(e,t,n){var r=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];r+=Wo(i[0],i[1],o[0],o[1],t,n),i=o}var s=e[0];return(!Qj(i[0],s[0])||!Qj(i[1],s[1]))&&(r+=Wo(i[0],i[1],s[0],s[1],t,n)),r!==0}var eM,tM=t((()=>{Go(),eM=1e-8}));function nM(e,t){for(var n=0;n<e.length;n++)or(e[n],e[n],t)}function rM(e,t,n,r){for(var i=0;i<e.length;i++){var a=e[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(sr(t,t,a),cr(n,n,a))}}function iM(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var c=e[s][0],l=e[s][1],u=a*l-c*o;t+=u,n+=(a+c)*u,r+=(o+l)*u,a=c,o=l}return t?[n/t/3,r/t/3,t]:[e[0][0]||0,e[0][1]||0]}var aM,oM,sM,cM,lM,uM=t((()=>{o(),en(),pr(),tM(),Nt(),G(),aM=[],oM=function(){function e(e){this.name=e}return e.prototype.setCenter=function(e){this._center=e},e.prototype.getCenter=function(){var e=this._center;return e||=this._center=this.calcCenter(),e},e}(),sM=function(){function e(e,t){this.type=`polygon`,this.exterior=e,this.interiors=t}return e}(),cM=function(){function e(e){this.type=`linestring`,this.points=e}return e}(),lM=function(e){i(t,e);function t(t,n,r){var i=e.call(this,t)||this;return i.type=`geoJSON`,i.geometries=n,i._center=r&&[r[0],r[1]],i}return t.prototype.calcCenter=function(){for(var e=this.geometries,t,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return iM(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return k(i,function(t){t.type===`polygon`?rM(t.exterior,n,r,e):k(t.points,function(t){rM(t,n,r,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new J(n[0],n[1],r[0]-n[0],r[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;loopGeo:for(var r=0,i=n.length;r<i;r++){var a=n[r];if(a.type===`polygon`){var o=a.exterior,s=a.interiors;if($j(o,e[0],e[1])){for(var c=0;c<(s?s.length:0);c++)if($j(s[c],e[0],e[1]))continue loopGeo;return!0}}}return!1},t.prototype.transformTo=function(e,t,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||=n/a:n=a*r;for(var o=new J(e,t,n,r),s=i.calculateTransform(o),c=this.geometries,l=0;l<c.length;l++){var u=c[l];u.type===`polygon`?(nM(u.exterior,s),k(u.interiors,function(e){nM(e,s)})):k(u.points,function(e){nM(e,s)})}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},t.prototype.cloneShallow=function(e){e??=this.name;var n=new t(e,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(oM),function(e){i(t,e);function t(t,n){var r=e.call(this,t)||this;return r.type=`geoSVG`,r._elOnlyForCalculate=n,r}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,t=e.getBoundingRect(),n=[t.x+t.width/2,t.y+t.height/2],r=Tt(aM),i=e;i&&!i.isGeoSVGGraphicRoot;)Dt(r,i.getLocalTransform(),r),i=i.parent;return jt(r,r),or(n,n,r),n},t}(oM)}));function dM(e){if(!e.UTF8Encoding)return e;var t=e,n=t.UTF8Scale;n??=1024;var r=t.features;return k(r,function(e){var t=e.geometry,r=t.encodeOffsets,i=t.coordinates;if(r)switch(t.type){case`LineString`:t.coordinates=pM(i,r,n);break;case`Polygon`:fM(i,r,n);break;case`MultiLineString`:fM(i,r,n);break;case`MultiPolygon`:k(i,function(e,t){return fM(e,r[t],n)})}}),t.UTF8Encoding=!1,t}function fM(e,t,n){for(var r=0;r<e.length;r++)e[r]=pM(e[r],t[r],n)}function pM(e,t,n){for(var r=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,c=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),c=c>>1^-(c&1),s+=i,c+=a,i=s,a=c,r.push([s/n,c/n])}return r}function mM(e,t){return e=dM(e),A(M(e.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var n=e.properties,r=e.geometry,i=[];switch(r.type){case`Polygon`:var a=r.coordinates;i.push(new sM(a[0],a.slice(1)));break;case`MultiPolygon`:k(r.coordinates,function(e){e[0]&&i.push(new sM(e[0],e.slice(1)))});break;case`LineString`:i.push(new cM([r.coordinates]));break;case`MultiLineString`:i.push(new cM(r.coordinates))}var o=new lM(n[t||`name`],i,n.cp);return o.properties=n,o})}var hM=t((()=>{G(),uM()}));G(),X();var gM=cl();function _M(e){var t=e.mainData,n=e.datas;n||(n={main:t},e.datasAttr={main:`data`}),e.datas=e.mainData=null,wM(t,n,e),k(n,function(n){k(t.TRANSFERABLE_METHODS,function(t){n.wrapMethod(t,P(vM,e))})}),t.wrapMethod(`cloneShallow`,P(bM,e)),k(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,P(yM,e))}),fe(n[t.dataType]===t)}function vM(e,t){if(CM(this)){var n=C({},gM(this).datas);n[this.dataType]=t,wM(t,n,e)}else TM(t,this.dataType,gM(this).mainData,e);return t}function yM(e,t){return e.struct&&e.struct.update(),t}function bM(e,t){return k(gM(t).datas,function(n,r){n!==t&&TM(n.cloneShallow(),r,t,e)}),t}function xM(e){var t=gM(this).mainData;return e==null||t==null?t:gM(t).datas[e]}function SM(){var e=gM(this).mainData;return e==null?[{data:e}]:A(N(gM(e).datas),function(t){return{type:t,data:gM(e).datas[t]}})}function CM(e){return gM(e).mainData===e}function wM(e,t,n){gM(e).datas={},k(t,function(t,r){TM(t,r,e,n)})}function TM(e,t,n,r){gM(n).datas[t]=e,gM(e).mainData=n,e.dataType=t,r.struct&&(e[r.structAttr]=r.struct,r.struct[r.datasAttr[t]]=e),e.getLinkedData=xM,e.getLinkedDataAll=SM}var EM=_M;G(),fg(),vg(),X();var DM=function(){function e(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||``,this.hostTree=t}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(e,t,n){I(e)&&(n=t,t=e,e=null),e||={},L(e)&&(e={order:e});var r=e.order||`preorder`,i=this[e.attr||`children`],a;r===`preorder`&&(a=t.call(n,this));for(var o=0;!a&&o<i.length;o++)i[o].eachNode(e,t,n);r===`postorder`&&t.call(n,this)},e.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(e+1),r.height>t&&(t=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].getNodeById(e);if(i)return i}},e.prototype.contains=function(e){if(e===this)return!0;for(var t=0,n=this.children,r=n.length;t<r;t++){var i=n[t].contains(e);if(i)return i}},e.prototype.getAncestors=function(e){for(var t=[],n=e?this:this.parentNode;n;)t.push(n),n=n.parentNode;return t.reverse(),t},e.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},e.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},e.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||`value`),this.dataIndex)},e.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(e)},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},e.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},e.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},e}(),OM=function(){function e(e){this.type=`tree`,this._nodes=[],this.hostModel=e}return e.prototype.eachNode=function(e,t,n){this.root.eachNode(e,t,n)},e.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},e.prototype.getNodeById=function(e){return this.root.getNodeById(e)},e.prototype.update=function(){for(var e=this.data,t=this._nodes,n=0,r=t.length;n<r;n++)t[n].dataIndex=-1;for(var n=0,r=e.count();n<r;n++)t[e.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,n,r){var i=new e(n),a=[],o=1;s(t);function s(e,t){var n=e.value;o=Math.max(o,F(n)?n.length:1),a.push(e);var r=new DM(tl(e.name,``),i);t?kM(r,t):i.root=r,i._nodes.push(r);var c=e.children;if(c)for(var l=0;l<c.length;l++)s(c[l],r)}i.root.updateDepthAndHeight(0);var c=mg(a,{coordDimensions:[`value`],dimensionsCount:o}).dimensions,l=new dg(c,n);return l.initData(a),r&&r(l),EM({mainData:l,struct:i,structAttr:`tree`}),i.update(),i},e}();function kM(e,t){var n=t.children;e.parentNode!==t&&(n.push(e),e.parentNode=t)}var AM=OM;G();function jM(e,t,n){if(e&&T(t,e.type)>=0){var r=n.getData().tree.root,i=e.targetNode;if(L(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function MM(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function NM(e,t){return T(MM(e),t)>=0}function PM(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}G();var FM=[`treemapZoomToNode`,`treemapRender`,`treemapMove`];function IM(e){for(var t=0;t<FM.length;t++)e.registerAction({type:FM[t],update:`updateView`},xe);e.registerAction({type:`treemapRootToNode`,update:`updateView`},function(e,t){t.eachComponent({mainType:`series`,subType:`treemap`,query:e},n);function n(t,n){var r=jM(e,[`treemapZoomToNode`,`treemapRootToNode`],t);if(r){var i=t.getViewRoot();i&&(e.direction=NM(i,r.node)?`rollUp`:`drillDown`),t.resetViewRoot(r.node)}}})}ty();function LM(e){var t=e.getData().tree,n={};t.eachNode(function(t){for(var r=t;r&&r.depth>1;)r=r.parentNode;var i=Jv(e.ecModel,r.name||r.dataIndex+``,n);t.setVisual(`decal`,i)})}o(),G(),mb(),pm(),X(),Qy(),Ay();var RM=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};zM(n);var r=e.levels||[],i=new fm({itemStyle:this.designatedVisualItemStyle={}},this,t);r=e.levels=BM(r,t);var a=A(r||[],function(e){return new fm(e,i,t)},this),o=AM.createTree(n,this,s);function s(e){e.wrapMethod(`getItemModel`,function(e,t){var n=o.getNodeByDataIndex(t);return e.parentModel=(n?a[n.depth]:null)||i,e})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e);return Ny(`nameValue`,{name:r.getName(e),value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments);return n.treeAncestors=PM(this.getData().tree.getNodeByDataIndex(t),this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},C(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=U(),this._idIndexMapCount=0);var n=t.get(e);return n??t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;(!e||e!==t&&!t.contains(e))&&(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){LM(this)},t.type=`series.treemap`,t.layoutMode=`box`,t.defaultOption={progressive:0,coordinateSystemUsage:`box`,left:Q.size.l,top:Q.size.xxxl,right:Q.size.l,bottom:Q.size.xxxl,sort:!0,clipWindow:`origin`,squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:`▶`,zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:`global`,nodeClick:`zoomToNode`,animation:!0,animationDurationUpdate:900,animationEasing:`quinticInOut`,breadcrumb:{show:!0,height:22,left:`center`,bottom:Q.size.m,emptyItemWidth:25,itemStyle:{color:Q.color.backgroundShade,textStyle:{color:Q.color.secondary}},emphasis:{itemStyle:{color:Q.color.background}}},label:{show:!0,distance:0,padding:5,position:`inside`,color:Q.color.neutral00,overflow:`truncate`},upperLabel:{show:!1,position:[0,`50%`],height:20,overflow:`truncate`,verticalAlign:`middle`},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Q.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,`50%`],overflow:`truncate`,verticalAlign:`middle`}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:`index`,visibleMin:10,childrenVisibleMin:null,levels:[]},t}(pb);function zM(e){var t=0;k(e.children,function(e){zM(e);var n=e.value;F(n)&&(n=n[0]),t+=n});var n=e.value;F(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=t),n<0&&(n=0),F(e.value)?e.value[0]=n:e.value=n}function BM(e,t){var n=Hc(t.get(`color`)),r=Hc(t.get([`aria`,`decal`,`decals`]));if(n){e||=[];var i,a;k(e,function(e){var t=new fm(e),n=t.get(`color`),r=t.get(`decal`);(t.get([`itemStyle`,`color`])||n&&n!==`none`)&&(i=!0),(t.get([`itemStyle`,`decal`])||r&&r!==`none`)&&(a=!0)});var o=e[0]||={};return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),e}}var VM=RM;Mp(),Sl(),Hv(),G(),X(),Eu(),Xp();var HM=8,UM=8,WM=5,GM=function(){function e(e){this.group=new Qu,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel(`breadcrumb`),a=this.group;if(a.removeAll(),!(!i.get(`show`)||!n)){var o=i.getModel(`itemStyle`),s=i.getModel(`emphasis`),c=o.getModel(`textStyle`),l=s.getModel([`itemStyle`,`textStyle`]),u=jv(e,t).refContainer,d={left:i.get(`left`),right:i.get(`right`),top:i.get(`top`),bottom:i.get(`bottom`)},f={emptyItemWidth:i.get(`emptyItemWidth`),totalWidth:0,renderList:[]},p=Av(d,u);this._prepare(n,f,c),this._renderContent(e,f,p,o,s,c,l,r),Mv(a,d,u)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=tl(r.getModel().get(`name`),``),a=n.getTextRect(i),o=Math.max(a.width+HM*2,t.emptyItemWidth);t.totalWidth+=o+UM,t.renderList.push({node:r,text:i,width:o})}},e.prototype._renderContent=function(e,t,n,r,i,a,o,s){for(var c=0,l=t.emptyItemWidth,u=e.get([`breadcrumb`,`height`]),d=t.totalWidth,f=t.renderList,p=i.getModel(`itemStyle`).getItemStyle(),m=f.length-1;m>=0;m--){var h=f[m],g=h.node,_=h.width,v=h.text;d>n.width&&(d-=_-l,_=l,v=null);var y=new Rd({shape:{points:KM(c,0,_,u,m===f.length-1,m===0)},style:w(r.getItemStyle(),{lineJoin:`bevel`}),textContent:new Qs({style:Lp(a,{text:v})}),textConfig:{position:`inside`},z2:10*1e4,onclick:P(s,g)});y.disableLabelAnimation=!0,y.getTextContent().ensureState(`emphasis`).style=Lp(o,{text:v}),y.ensureState(`emphasis`).style=p,ou(y,i.get(`focus`),i.get(`blurScope`),i.get(`disabled`)),this.group.add(y),qM(y,e,g),c+=_+UM}},e.prototype.remove=function(){this.group.removeAll()},e}();function KM(e,t,n,r,i,a){var o=[[i?e:e-WM,t],[e+n,t],[e+n,t+r],[i?e:e-WM,t+r]];return!a&&o.splice(2,0,[e+n+WM,t+r/2]),!i&&o.push([e,t+r/2]),o}function qM(e,t,n){Z(e).eventData={componentType:`series`,componentSubType:`treemap`,componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:`treemap`,selfType:`breadcrumb`,nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&PM(n,t)}}var JM=GM,YM=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function XM(){return new YM}o(),G(),Mp(),Sl(),Eu(),vm(),en(),Nt(),st(),Rb(),Ya(),X(),Dv(),Xp();var ZM=Qu,QM=Ms,$M=3,eN=`label`,tN=`upperLabel`,nN=100,rN=20,iN=30,aN=ot([[`fill`,`color`],[`stroke`,`strokeColor`],[`lineWidth`,`strokeWidth`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`]]),oN=function(e){var t=aN(e);return t.stroke=t.fill=t.lineWidth=null,t},sN=cl(),cN=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._state=`ready`,n._storage=lN(),n}return t.prototype.render=function(e,t,n,r){if(!(T(t.findComponents({mainType:`series`,subType:`treemap`,query:r}),e)<0)){this.seriesModel=e,this.api=n,this.ecModel=t;var i=jM(r,[`treemapZoomToNode`,`treemapRootToNode`],e),a=r&&r.type,o=e.layoutInfo,s=!this._oldTree,c=this._storage,l=a===`treemapRootToNode`&&i&&c?{rootNodeGroup:c.nodeGroup[i.node.getRawIndex()],direction:r.direction}:null,u=this._giveContainerGroup(o),d=e.get(`animation`),f=this._doRender(u,e,l);d&&!s&&(!a||a===`treemapZoomToNode`||a===`treemapRootToNode`)?this._doAnimation(u,f,e,l):f.renderFinally(),this._resetController(n),this._renderBreadcrumb(e,n,i)}},t.prototype._giveContainerGroup=function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new ZM,this._initEvents(t),this.group.add(t)),t.x=e.x,t.y=e.y,t},t.prototype._doRender=function(e,t,n){var r=t.getData().tree,i=this._oldTree,a=lN(),o=lN(),s=this._storage,c=[];function l(e,r,i,l){return uN(t,o,s,n,a,c,e,r,i,l)}p(r.root?[r.root]:[],i&&i.root?[i.root]:[],e,r===i||!i,0);var u=m(s);if(this._oldTree=r,this._storage=o,this._controllerHost){var d=this.seriesModel.layoutInfo,f=r.root.getLayout();f.width===d.width&&f.height===d.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:a,willDeleteEls:u,renderFinally:h};function p(e,t,n,r,i){r?(t=e,k(e,function(e,t){!e.isRemoved()&&o(t,t)})):new _m(t,e,a,a).add(o).update(o).remove(P(o,null)).execute();function a(e){return e.getId()}function o(a,o){var s=a==null?null:e[a],c=o==null?null:t[o],u=l(s,c,n,i);u&&p(s&&s.viewChildren||[],c&&c.viewChildren||[],u,r,i+1)}}function m(e){var t=lN();return e&&k(e,function(e,n){var r=t[n];k(e,function(e){e&&(r.push(e),sN(e).willDelete=!0)})}),t}function h(){k(u,function(e){k(e,function(e){e.parent&&e.parent.remove(e)})}),k(c,function(e){e.invisible=!0,e.dirty()})}},t.prototype._doAnimation=function(e,t,n,r){var i=n.get(`animationDurationUpdate`),a=n.get(`animationEasing`),o=(I(i)?0:i)||0,s=(I(a)?null:a)||`cubicOut`,c=XM();k(t.willDeleteEls,function(e,t){k(e,function(e,n){if(!e.invisible){var i=e.parent,a,l=sN(i);if(r&&r.direction===`drillDown`)a=i===r.rootNodeGroup?{shape:{x:0,y:0,width:l.nodeWidth,height:l.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var u=0,d=0;l.willDelete||(u=l.nodeWidth/2,d=l.nodeHeight/2),a=t===`nodeGroup`?{x:u,y:d,style:{opacity:0}}:{shape:{x:u,y:d,width:0,height:0},style:{opacity:0}}}a&&c.add(e,a,o,0,s)}})}),k(this._storage,function(e,n){k(e,function(e,r){var i=t.lastsForAnimation[n][r],a={};i&&(e instanceof Qu?i.oldX!=null&&(a.x=e.x,a.y=e.y,e.x=i.oldX,e.y=i.oldY):(i.oldShape&&(a.shape=C({},e.shape),e.setShape(i.oldShape)),i.fadein?(e.setStyle(`opacity`,0),a.style={opacity:1}):e.style.opacity!==1&&(a.style={opacity:1})),c.add(e,a,o,0,s))})},this),this._state=`animating`,c.finished(W(function(){this._state=`ready`,t.renderFinally()},this)).start()},t.prototype._resetController=function(e){var t=this,n=this._controller,r=this._controllerHost;r||=(this._controllerHost={target:this.group},this._controllerHost);var i=this.seriesModel;n||(n=this._controller=new Zj(e.getZr()),n.on(`pan`,W(this._onPan,this)),n.on(`zoom`,W(this._onZoom,this))),n.enable(i.get(`roam`),{api:e,zInfo:{component:i},triggerInfo:{roamTrigger:i.get(`roamTrigger`),isInSelf:function(e,n,r){var i=t._containerGroup;return i?i.getBoundingRect().contain(n-i.x,r-i.y):!1}}}),r.zoomLimit=i.get(`scaleLimit`),r.zoom=i.get(`zoom`)},t.prototype._clearController=function(){var e=this._controller;this._controllerHost=null,e&&=(e.dispose(),null)},t.prototype._onPan=function(e){if(this._state!==`animating`&&(Math.abs(e.dx)>$M||Math.abs(e.dy)>$M)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:`treemapMove`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY,r=e.scale;if(this._state!==`animating`){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;var o=new J(a.x,a.y,a.width,a.height),s=null,c=this._controllerHost;s=c.zoomLimit;var l=c.zoom=c.zoom||1;if(l*=r,s){var u=s.min||0,d=s.max||1/0;l=Math.max(Math.min(d,l),u)}var f=l/c.zoom;c.zoom=l;var p=this.seriesModel.layoutInfo;t-=p.x,n-=p.y;var m=wt();Ot(m,m,[-t,-n]),At(m,m,[f,f]),Ot(m,m,[t,n]),o.applyTransform(m),this.api.dispatchAction({type:`treemapRender`,from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on(`click`,function(e){if(t._state===`ready`){var n=t.seriesModel.get(`nodeClick`,!0);if(n){var r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if(n===`zoomToNode`)t._zoomToNode(r);else if(n===`link`){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get(`link`,!0),s=a.get(`target`,!0)||`blank`;o&&Cv(o,s)}}}}},this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=this;n||(n=e.get(`leafDepth`,!0)==null?this.findTarget(t.getWidth()/2,t.getHeight()/2):{node:e.getViewRoot()},n||={node:e.getData().tree.root}),(this._breadcrumb||=new JM(this.group)).render(e,t,n.node,function(t){r._state!==`animating`&&(NM(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=lN(),this._state=`ready`,this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:`treemapZoomToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:`treemapRootToNode`,from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n;return this.seriesModel.getViewRoot().eachNode({attr:`viewChildren`,order:`preorder`},function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(e,t),o=i.shape;if(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height)n={node:r,offsetX:a[0],offsetY:a[1]};else return!1}},this),n},t.type=`treemap`,t}(Lb);function lN(){return{nodeGroup:[],background:[],content:[]}}function uN(e,t,n,r,i,a,o,s,c,l){if(!o)return;var u=o.getLayout(),d=e.getData(),f=o.getModel();if(d.setItemGraphicEl(o.dataIndex,null),!u||!u.isInView)return;var p=u.width,m=u.height,h=u.borderWidth,g=u.invisible,_=o.getRawIndex(),v=s&&s.getRawIndex(),y=o.viewChildren,b=u.upperHeight,x=y&&y.length,S=f.getModel(`itemStyle`),w=f.getModel([`emphasis`,`itemStyle`]),T=f.getModel([`blur`,`itemStyle`]),E=f.getModel([`select`,`itemStyle`]),D=S.get(`borderRadius`)||0,O=z(`nodeGroup`,ZM);if(!O)return;if(c.add(O),O.x=u.x||0,O.y=u.y||0,O.markRedraw(),sN(O).nodeWidth=p,sN(O).nodeHeight=m,u.isAboveViewRoot)return O;var k=z(`background`,QM,l,rN);k&&F(O,k,x&&u.upperLabelHeight);var A=f.getModel(`emphasis`),j=A.get(`focus`),M=A.get(`blurScope`),ee=A.get(`disabled`),N=j===`ancestor`?o.getAncestorsIndices():j===`descendant`?o.getDescendantIndices():j;if(x)lu(O)&&cu(O,!1),k&&(cu(k,!ee),d.setItemGraphicEl(o.dataIndex,k),su(k,N,M));else{var te=z(`content`,QM,l,iN);te&&I(O,te),k.disableMorphing=!0,k&&lu(k)&&cu(k,!1),cu(O,!ee),d.setItemGraphicEl(o.dataIndex,O);var P=f.getShallow(`cursor`);P&&te.attr(`cursor`,P),su(O,N,M)}return O;function F(t,n,r){var i=Z(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:m,r:D}),g)L(n);else{n.invisible=!1;var a=o.getVisual(`style`),s=a.stroke,c=oN(S);c.fill=s;var l=aN(w);l.fill=w.get(`borderColor`);var u=aN(T);u.fill=T.get(`borderColor`);var d=aN(E);if(d.fill=E.get(`borderColor`),r){var f=p-2*h;ne(n,s,a.opacity,{x:h,y:0,width:f,height:b})}else n.removeTextContent();n.setStyle(c),n.ensureState(`emphasis`).style=l,n.ensureState(`blur`).style=u,n.ensureState(`select`).style=d,Rl(n)}t.add(n)}function I(t,n){var r=Z(n);r.dataIndex=o.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(p-2*h,0),a=Math.max(m-2*h,0);if(n.culling=!0,n.setShape({x:h,y:h,width:i,height:a,r:D}),g)L(n);else{n.invisible=!1;var s=o.getVisual(`style`),c=s.fill,l=oN(S);l.fill=c,l.decal=s.decal;var u=aN(w),d=aN(T),f=aN(E);ne(n,c,s.opacity,null),n.setStyle(l),n.ensureState(`emphasis`).style=u,n.ensureState(`blur`).style=d,n.ensureState(`select`).style=f,Rl(n)}t.add(n)}function L(e){!e.invisible&&a.push(e)}function ne(t,n,r,i){var a=f.getModel(i?tN:eN),s=tl(f.get(`name`),null),c=a.getShallow(`show`);Fp(t,Ip(f,i?tN:eN),{defaultText:c?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:o.dataIndex});var l=t.getTextContent();if(l){var d=l.style,p=de(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:t.shape.height)-p[0]-p[2],0);(d.width!==e||d.height!==n)&&l.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow=`truncate`,R(d,i,u);var m=l.getState(`emphasis`);R(m?m.style:null,i,u)}}function R(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&i!=null){var a=e.get(`drillDownIcon`,!0);t.text=a?a+` `+i:i}}function z(e,r,a,o){var s=v!=null&&n[e][v],c=i[e];return s?(n[e][v]=null,re(c,s)):g||(s=new r,s instanceof Ja&&(s.z2=dN(a,o)),ie(c,s)),t[e][_]=s}function re(e,t){var n=e[_]={};t instanceof ZM?(n.oldX=t.x,n.oldY=t.y):n.oldShape=C({},t.shape)}function ie(e,t){var n=e[_]={},a=o.parentNode,s=t instanceof Qu;if(a&&(!r||r.direction===`drillDown`)){var c=0,l=0,u=i.background[a.getRawIndex()];!r&&u&&u.oldShape&&(c=u.oldShape.width,l=u.oldShape.height),s?(n.oldX=0,n.oldY=l):n.oldShape={x:c,y:l,width:0,height:0}}n.fadein=!s}}function dN(e,t){return e*nN+t}var fN=cN;G(),Li(),Nc();var pN=k,mN=z,hN=-1,gN=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=b(t);this.type=r,this.mappingMethod=n,this._normalizeData=ON[n];var a=e.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n===`piecewise`?(yN(i),_N(i)):n===`category`?i.categories?vN(i):yN(i,!0):(fe(n!==`linear`||i.dataExtent),yN(i))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return W(this._normalizeData,this)},e.listVisualTypes=function(){return N(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){z(e)?k(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,r){var i,a=F(t)?[]:z(t)?{}:(i=!0,null);return e.eachVisual(t,function(e,t){var o=n.call(r,e,t);i?a=o:a[t]=o}),a},e.retrieveVisuals=function(t){var n={},r;return t&&pN(e.visualHandlers,function(e,i){t.hasOwnProperty(i)&&(n[i]=t[i],r=!0)}),r?n:null},e.prepareVisualTypes=function(e){if(F(e))e=e.slice();else if(mN(e)){var t=[];pN(e,function(e,n){t.push(n)}),e=t}else return[];return e.sort(function(e,t){return t===`color`&&e!==`color`&&e.indexOf(`color`)===0?1:-1}),e},e.dependsOn=function(e,t){return t===`color`?!!(e&&e.indexOf(t)===0):e===t},e.findPieceIndex=function(e,t,n){for(var r,i=1/0,a=0,o=t.length;a<o;a++){var s=t[a].value;if(s!=null){if(s===e||L(s)&&s===e+``)return a;n&&d(s,a)}}for(var a=0,o=t.length;a<o;a++){var c=t[a],l=c.interval,u=c.close;if(l){if(l[0]===-1/0){if(kN(u[1],e,l[1]))return a}else if(l[1]===1/0){if(kN(u[0],l[0],e))return a}else if(kN(u[0],l[0],e)&&kN(u[1],e,l[1]))return a;n&&d(l[0],a),n&&d(l[1],a)}}if(n)return e===1/0?t.length-1:e===-1/0?0:r;function d(t,n){var a=Math.abs(t-e);a<i&&(i=a,r=n)}},e.visualHandlers={color:{applyVisual:SN(`color`),getColorMapper:function(){var e=this.option;return W(e.mappingMethod===`category`?function(e,t){return!t&&(e=this._normalizeData(e)),CN.call(this,e)}:function(t,n,r){var i=!!r;return!n&&(t=this._normalizeData(t)),r=Ci(t,e.parsedVisual,r),i?r:Di(r,`rgba`)},this)},_normalizedToVisual:{linear:function(e){return Di(Ci(e,this.option.parsedVisual),`rgba`)},category:CN,piecewise:function(e,t){var n=EN.call(this,t);return n??=Di(Ci(e,this.option.parsedVisual),`rgba`),n},fixed:wN}},colorHue:bN(function(e,t){return Ti(e,t)}),colorSaturation:bN(function(e,t){return Ti(e,null,t)}),colorLightness:bN(function(e,t){return Ti(e,null,null,t)}),colorAlpha:bN(function(e,t){return Ei(e,t)}),decal:{applyVisual:SN(`decal`),_normalizedToVisual:{linear:null,category:CN,piecewise:null,fixed:null}},opacity:{applyVisual:SN(`opacity`),_normalizedToVisual:TN([0,1])},liftZ:{applyVisual:SN(`liftZ`),_normalizedToVisual:{linear:wN,category:wN,piecewise:wN,fixed:wN}},symbol:{applyVisual:function(e,t,n){n(`symbol`,this.mapValueToVisual(e))},_normalizedToVisual:{linear:xN,category:CN,piecewise:function(e,t){var n=EN.call(this,t);return n??=xN.call(this,e),n},fixed:wN}},symbolSize:{applyVisual:SN(`symbolSize`),_normalizedToVisual:TN([0,1])}},e}();function _N(e){var t=e.pieceList;e.hasSpecialVisual=!1,k(t,function(t,n){t.originIndex=n,t.visual!=null&&(e.hasSpecialVisual=!0)})}function vN(e){var t=e.categories,n=e.categoryMap={},r=e.visual;if(pN(t,function(e,t){n[e]=t}),!F(r)){var i=[];z(r)?pN(r,function(e,t){var r=n[t];i[r??hN]=e}):i[hN]=r,r=DN(e,i)}for(var a=t.length-1;a>=0;a--)r[a]??(delete n[t[a]],t.pop())}function yN(e,t){var n=e.visual,r=[];z(n)?pN(n,function(e){r.push(e)}):n!=null&&r.push(n),!t&&r.length===1&&!{color:1,symbol:1}.hasOwnProperty(e.type)&&(r[1]=r[0]),DN(e,r)}function bN(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r(`color`,e(n(`color`),i))},_normalizedToVisual:TN([0,1])}}function xN(e){var t=this.option.visual;return t[Math.round(tc(e,[0,1],[0,t.length-1],!0))]||{}}function SN(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function CN(e){var t=this.option.visual;return t[this.option.loop&&e!==hN?e%t.length:e]}function wN(){return this.option.visual[0]}function TN(e){return{linear:function(t){return tc(t,e,this.option.visual,!0)},category:CN,piecewise:function(t,n){var r=EN.call(this,n);return r??=tc(t,e,this.option.visual,!0),r},fixed:wN}}function EN(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=n[gN.findPieceIndex(e,n)];if(r&&r.visual)return r.visual[this.type]}}function DN(e,t){return e.visual=t,e.type===`color`&&(e.parsedVisual=A(t,function(e){return vi(e)||[0,0,0,1]})),t}var ON={linear:function(e){return tc(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=gN.findPieceIndex(e,t,!0);if(n!=null)return tc(n,[0,t.length-1],[0,1],!0)},category:function(e){return(this.option.categories?this.option.categoryMap[e]:e)??hN},fixed:xe};function kN(e,t,n){return e?t<=n:t<n}var AN=gN;G(),Li(),X();var jN=`itemStyle`,MN=cl(),NN={seriesType:`treemap`,reset:function(e){var t=e.getData().tree.root;t.isRemoved()||PN(t,{},e.getViewRoot().getAncestors(),e)}};function PN(e,t,n,r){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(jN),c=FN(s,t,r),l=o.ensureUniqueItemVisual(e.dataIndex,`style`),u=s.get(`borderColor`),d=s.get(`borderColorSaturation`),f;d!=null&&(f=IN(c),u=LN(d,f)),l.stroke=u;var p=e.viewChildren;if(!p||!p.length)f=IN(c),l.fill=f;else{var m=zN(e,i,a,s,c,p);k(p,function(e,t){(e.depth>=n.length||e===n[e.depth])&&PN(e,VN(i,c,e,t,m,r),n,r)})}}}function FN(e,t,n){var r=C({},t),i=n.designatedVisualItemStyle;return k([`color`,`colorAlpha`,`colorSaturation`],function(n){i[n]=t[n];var a=e.get(n);i[n]=null,a!=null&&(r[n]=a)}),r}function IN(e){var t=RN(e,`color`);if(t){var n=RN(e,`colorAlpha`),r=RN(e,`colorSaturation`);return r&&(t=Ti(t,null,null,r)),n&&(t=Ei(t,n)),t}}function LN(e,t){return t==null?null:Ti(t,null,null,e)}function RN(e,t){var n=e[t];if(n!=null&&n!==`none`)return n}function zN(e,t,n,r,i,a){if(!(!a||!a.length)){var o=BN(t,`color`)||i.color!=null&&i.color!==`none`&&(BN(t,`colorAlpha`)||BN(t,`colorSaturation`));if(o){var s=t.get(`visualMin`),c=t.get(`visualMax`),l=n.dataExtent.slice();s!=null&&s<l[0]&&(l[0]=s),c!=null&&c>l[1]&&(l[1]=c);var u=t.get(`colorMappingBy`),d={type:o.name,dataExtent:l,visual:o.range};d.type===`color`&&(u===`index`||u===`id`)?(d.mappingMethod=`category`,d.loop=!0):d.mappingMethod=`linear`;var f=new AN(d);return MN(f).drColorMappingBy=u,f}}}function BN(e,t){var n=e.get(t);return F(n)&&n.length?{name:t,range:n}:null}function VN(e,t,n,r,i,a){var o=C({},t);if(i){var s=i.type,c=s===`color`&&MN(i).drColorMappingBy,l=c===`index`?r:c===`id`?a.mapIdToIndex(n.getId()):n.getValue(e.get(`visualDimension`));o[s]=i.mapValueToVisual(l)}return o}G(),en(),Nc(),Hv();var HN=Math.max,UN=Math.min,WN=ce,GN=k,KN=[`itemStyle`,`borderWidth`],qN=[`itemStyle`,`gapWidth`],JN=[`upperLabel`,`show`],YN=[`upperLabel`,`height`],XN={seriesType:`treemap`,reset:function(e,t,n,r){var i=e.option,a=jv(e,n).refContainer,o=Av(e.getBoxLayoutParams(),a),s=i.size||[],c=Ac(WN(o.width,s[0]),a.width),l=Ac(WN(o.height,s[1]),a.height),u=r&&r.type,d=jM(r,[`treemapZoomToNode`,`treemapRootToNode`],e),f=u===`treemapRender`||u===`treemapMove`?r.rootRect:null,p=e.getViewRoot(),m=MM(p);if(u!==`treemapMove`){var h=u===`treemapZoomToNode`?iP(e,d,p,c,l):f?[f.width,f.height]:[c,l],g=i.sort;g&&g!==`asc`&&g!==`desc`&&(g=`desc`);var _={squareRatio:i.squareRatio,sort:g,leafDepth:i.leafDepth};p.hostTree.clearLayouts();var v={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]};p.setLayout(v),ZN(p,_,!1,0),v=p.getLayout(),GN(m,function(e,t){var n=(m[t+1]||p).getValue();e.setLayout(C({dataExtent:[n,n],borderWidth:0,upperHeight:0},v))})}var y=e.getData().tree.root;y.setLayout(aP(o,f,d),!0),e.setLayoutInfo(o),oP(y,new J(-o.x,-o.y,n.getWidth(),n.getHeight()),m,p,0)}};function ZN(e,t,n,r){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),c=s.get(KN),l=s.get(qN)/2,u=sP(s),d=Math.max(c,u),f=c-l,p=d-l;e.setLayout({borderWidth:c,upperHeight:d,upperLabelHeight:u},!0),i=HN(i-2*f,0),a=HN(a-f-p,0);var m=i*a,h=QN(e,s,m,t,n,r);if(h.length){var g={x:f,y:p,width:i,height:a},_=UN(i,a),v=1/0,y=[];y.area=0;for(var b=0,x=h.length;b<x;){var S=h[b];y.push(S),y.area+=S.getLayout().area;var C=nP(y,_,t.squareRatio);C<=v?(b++,v=C):(y.area-=y.pop().getLayout().area,rP(y,_,g,l,!1),_=UN(g.width,g.height),y.length=y.area=0,v=1/0)}if(y.length&&rP(y,_,g,l,!0),!n){var w=s.get(`childrenVisibleMin`);w!=null&&m<w&&(n=!0)}for(var b=0,x=h.length;b<x;b++)ZN(h[b],t,n,r+1)}}}function QN(e,t,n,r,i,a){var o=e.children||[],s=r.sort;s!==`asc`&&s!==`desc`&&(s=null);var c=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!c)return e.viewChildren=[];o=M(o,function(e){return!e.isRemoved()}),eP(o,s);var l=tP(t,o,s);if(l.sum===0||(l.sum=$N(t,n,l.sum,s,o),l.sum===0))return e.viewChildren=[];for(var u=0,d=o.length;u<d;u++){var f=o[u].getValue()/l.sum*n;o[u].setLayout({area:f})}return c&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:l.dataExtent},!0),o}function $N(e,t,n,r,i){if(!r)return n;for(var a=e.get(`visibleMin`),o=i.length,s=o,c=o-1;c>=0;c--){var l=i[r===`asc`?o-c-1:c].getValue();l/n*t<a&&(s=c,n-=l)}return r===`asc`?i.splice(0,o-s):i.splice(s,o-s),n}function eP(e,t){return t&&e.sort(function(e,n){var r=t===`asc`?e.getValue()-n.getValue():n.getValue()-e.getValue();return r===0?t===`asc`?e.dataIndex-n.dataIndex:n.dataIndex-e.dataIndex:r}),e}function tP(e,t,n){for(var r=0,i=0,a=t.length;i<a;i++)r+=t[i].getValue();var o=e.get(`visualDimension`),s;return!t||!t.length?s=[NaN,NaN]:o===`value`&&n?(s=[t[t.length-1].getValue(),t[0].getValue()],n===`asc`&&s.reverse()):(s=[1/0,-1/0],GN(t,function(e){var t=e.getValue(o);t<s[0]&&(s[0]=t),t>s[1]&&(s[1]=t)})),{sum:r,dataExtent:s}}function nP(e,t,n){for(var r=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var c=e.area*e.area,l=t*t*n;return c?HN(l*r/c,c/(l*i)):1/0}function rP(e,t,n,r,i){var a=t===n.width?0:1,o=1-a,s=[`x`,`y`],c=[`width`,`height`],l=n[s[a]],u=t?e.area/t:0;(i||u>n[c[o]])&&(u=n[c[o]]);for(var d=0,f=e.length;d<f;d++){var p=e[d],m={},h=u?p.getLayout().area/u:0,g=m[c[o]]=HN(u-2*r,0),_=n[s[a]]+n[c[a]]-l,v=d===f-1||_<h?_:h,y=m[c[a]]=HN(v-2*r,0);m[s[o]]=n[s[o]]+UN(r,g/2),m[s[a]]=l+UN(r,y/2),l+=v,p.setLayout(m,!0)}n[s[o]]+=u,n[c[o]]-=u}function iP(e,t,n,r,i){var a=(t||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,c=r*i,l=c*e.option.zoomToNodeRatio;s=a.parentNode;){for(var u=0,d=s.children,f=0,p=d.length;f<p;f++)u+=d[f].getValue();var m=a.getValue();if(m===0)return o;l*=u/m;var h=s.getModel(),g=h.get(KN),_=Math.max(g,sP(h));l+=4*g*g+(3*g+_)*l**.5,l>9007199254740991&&(l=9007199254740991),a=s}l<c&&(l=c);var v=(l/c)**.5;return[r*v,i*v]}function aP(e,t,n){if(t)return{x:t.x,y:t.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var c=s.getLayout();o[0]+=c.x,o[1]+=c.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function oP(e,t,n,r,i){var a=e.getLayout(),o=n[i],s=o&&o===e;if(!(o&&!s||i===n.length&&e!==r)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var c=new J(t.x-a.x,t.y-a.y,t.width,t.height);GN(e.viewChildren||[],function(e){oP(e,c,n,r,i+1)})}}function sP(e){return e.get(JN)?e.get(YN):0}function cP(e){e.registerSeriesModel(VM),e.registerChartView(fN),e.registerVisual(NN),e.registerLayout(XN),IM(e)}function lP(e,t,n,r,i,a){e||=0;var o=n[1]-n[0];if(i!=null&&(i=dP(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r===`all`){var s=Math.abs(t[1]-t[0]);s=dP(s,[0,o]),i=a=dP(s,[i,a]),r=0}t[0]=dP(t[0],n),t[1]=dP(t[1],n);var c=uP(t,r);t[r]+=e;var l=i||0,u=n.slice();c.sign<0?u[0]+=l:u[1]-=l,t[r]=dP(t[r],u);var d=uP(t,r);return i!=null&&(d.sign!==c.sign||d.span<i)&&(t[1-r]=t[r]+c.sign*i),d=uP(t,r),a!=null&&d.span>a&&(t[1-r]=t[r]+d.sign*a),t}function uP(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 dP(e,t){return Math.min(t[1]==null?1/0:t[1],Math.max(t[0]==null?-1/0:t[0],e))}G(),Mp(),dS(),nx(),X();var fP=cl(),pP=b,mP=W,hP=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 Qu,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);else{var d=P(gP,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}bP(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&&r.getBandWidth()>o)return!0;if(a){var s=jj(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=fP(e).pointerEl=new Hf[i.type](pP(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=fP(e).labelEl=new Qs(pP(t.label));e.add(i),vP(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=fP(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=fP(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),vP(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=sp(i.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){uS(e.event)},onmousedown:mP(this._onHandleDragMove,this,0,0),drift:mP(this._onHandleDragMove,this),ondragend:mP(this._onHandleDragEnd,this)}),n.add(r)),bP(r,t,!1),r.setStyle(i.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=i.get(`size`);F(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Zb(this,`_doDispatchAxisPointer`,i.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,o)}},e.prototype._moveHandleToValue=function(e,t){gP(this._axisPointerModel,!t&&this._moveAnimation,this._handle,yP(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(yP(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(yP(r)),fP(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),Qb(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 gP(e,t,n,r){_P(fP(n).lastProp,r)||(fP(n).lastProp=r,t?Ff(n,r,e):(n.stopAnimation(),n.attr(r)))}function _P(e,t){if(z(e)&&z(t)){var n=!0;return k(t,function(t,r){n&&=_P(e[r],t)}),!!n}else return e===t}function vP(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function yP(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function bP(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)})}var xP=hP;G(),Mp(),gn(),Dv(),Nt(),dA(),Xp();function SP(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 CP(e,t,n,r,i){var a=TP(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=wv(o.get(`padding`)||0),c=o.getFont(),l=sn(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),wP(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:Lp(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function wP(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 TP(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:aA(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),L(o)?a=o.replace(`{value}`,a):I(o)&&(a=o(s))}return a}function EP(e,t,n){var r=wt();return kt(r,r,n.rotation),Ot(r,r,n.position),ep([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function DP(e,t,n,r,i,a){var o=Sj.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),CP(t,r,i,a,{position:EP(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function OP(e,t,n){return n||=0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function kP(e,t,n){return n||=0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}o();var AP=function(e){i(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=jP(o,a).getOtherAxis(a).getGlobalExtent(),l=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var u=SP(r),d=MP[s](a,l,c);d.style=u,e.graphicKey=d.type,e.pointer=d}DP(t,e,Cj(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=Cj(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=EP(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=jP(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=Math.min(o[1],l[c]),l[c]=Math.max(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}(xP);function jP(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var MP={line:function(e,t,n){return{type:`Line`,subPixelOptimize:!0,shape:OP([t,n[0]],[t,n[1]],NP(e))}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:`Rect`,shape:kP([t-r/2,n[0]],[r,i],NP(e))}}};function NP(e){return e.dim===`x`?0:1}var PP=AP;o(),qv(),Ay();var FP=function(e){i(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}(Kv);G(),We(),X();var IP=cl(),LP=k;function RP(e,t,n){if(!K.node){var r=t.getZr();IP(r).records||(IP(r).records={}),zP(r,t);var i=IP(r).records[e]||(IP(r).records[e]={});i.handler=n}}function zP(e,t){if(IP(e).initialized)return;IP(e).initialized=!0,n(`click`,P(HP,`click`)),n(`mousemove`,P(HP,`mousemove`)),n(`globalout`,VP);function n(n,r){e.on(n,function(n){var i=UP(t);LP(IP(e).records,function(e){e&&r(e,n,i.dispatchAction)}),BP(i.pendings,t)})}}function BP(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 VP(e,t,n){e.handler(`leave`,null,n)}function HP(e,t,n,r){t.handler(e,n,r)}function UP(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 WP(e,t){if(!K.node){var n=t.getZr();(IP(n).records||{})[e]&&(IP(n).records[e]=null)}}o(),Jw();var GP=function(e){i(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`;RP(`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){WP(`axisPointer`,t)},t.prototype.dispose=function(e,t){WP(`axisPointer`,t)},t.type=`axisPointer`,t}(qw);G(),X();function KP(e,t){var n=[],r=e.seriesIndex,i;if(r==null||!(i=t.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=sl(a,e);if(o==null||o<0||F(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`?1:0,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(A(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}}X(),G();var qP=cl();function JP(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||W(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){iF(i)&&(i=KP({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=iF(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||iF(i),f={},p={},m={list:[],map:{}},h={showPointer:P(ZP,p),showTooltip:P(QP,m)};k(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);k(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=nF(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o==null&&!c&&(o=r.pointToData(i)),o!=null&&YP(e,o,h,!1,f)}})});var g={};return k(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&k(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,rF(t),rF(e)))),g[e.key]=a}})}),k(g,function(e,t){YP(u[t],e,h,!0,f)}),$P(p,u,f),eF(m,i,e,o),tF(u,o,n),f}}function YP(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=XP(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&C(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}}function XP(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return k(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(!(u==null||!isFinite(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),k(d,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}function ZP(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function QP(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=Pj(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 $P(e,t,n){var r=n.axesInfo=[];k(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 eF(e,t,n,r){if(iF(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 tF(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=qP(r)[i]||{},o=qP(r)[i]={};k(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&k(n.seriesDataIndices,function(e){var t=e.seriesIndex+` | `+e.dataIndex;o[t]=e})});var s=[],c=[];k(a,function(e,t){!o[t]&&c.push(e)}),k(o,function(e,t){!a[t]&&s.push(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 nF(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 rF(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 iF(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}G();function aF(e){Ij.registerAxisPointerClass(`CartesianAxisPointer`,PP),e.registerComponentModel(FP),e.registerComponentView(GP),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!F(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=wj(e,t)}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},JP)}o(),qv(),Ay();var oF=function(e){i(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`,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}(Kv);Dv(),We();function sF(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function cF(e){if(K.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var lF=cF([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),uF=cF([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]);function dF(e,t){if(!e)return t;t=gv(t,!0);var n=e.indexOf(t);return e=n===-1?t:`-`+e.slice(0,n)+`-`+t,e.toLowerCase()}function fF(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?t?n[t]:n:null}G(),dS(),d_(),We(),Dv(),Qy();var pF=dF(uF,`transition`),mF=dF(lF,`transform`),hF=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(K.transform3dSupported?`will-change:transform;`:``);function gF(e){return e=e===`left`?`right`:e===`right`?`left`:e===`top`?`bottom`:`top`,e}function _F(e,t,n){if(!L(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Sv(t);var a=gF(n),o=Math.max(Math.round(i)*1.5,6),s=``,c=mF+`:`,l;T([`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 vF(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?`,`:``)+(K.transformSupported?``+mF+i:`,left`+i+`,top`+i)),pF+`:`+a}function yF(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!K.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=K.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+mF+`:`+o+`;`:[[`top`,0],[`left`,0],[lF,o]]}function bF(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=H(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),k([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}function xF(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(vF(a,n,r)),o&&i.push(`background-color:`+o),k([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=gv(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(bF(d)),f!=null&&i.push(`padding:`+wv(f).join(`px `)+`px`),i.join(`;`)+`;`}function SF(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&e_(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 CF=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,K.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&&(L(i)?document.querySelector(i):ae(i)?i:I(i)&&i(e.getDom()));SF(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;nS(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=fF(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=hF+xF(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+yF(i[0],i[1],!0)+(`border-color:`+Sv(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(L(i)&&n.get(`trigger`)===`item`&&!sF(n)&&(o=_F(n,r,i)),L(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,F(e)||(e=[e]);for(var s=0;s<e.length;s++)ae(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(SF(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style;k(yF(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`,K.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(W(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;t_(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}();G(),$s(),Qy(),Bc();var wF=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),DF(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;z(e)&&Ic(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new Qs({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`)}),k([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),k([`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=EF(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;DF(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=TF(i.borderWidth||0),o=EF(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(W(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function TF(e){return Math.max(0,e)}function EF(e){var t=TF(e.shadowBlur||0),n=TF(e.shadowOffsetX||0),r=TF(e.shadowOffsetY||0);return{left:TF(t-n),right:TF(t+n),top:TF(t-r),bottom:TF(t+r)}}function DF(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var OF=wF;o(),G(),We(),Dv(),Nc(),Mp(),Hv(),pm(),dA(),X(),Jw(),fv(),Sl(),ay(),Qy(),UT(),nx();var kF=new Ms({shape:{x:-1,y:-1,width:2,height:2}}),AF=function(e){i(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(!(K.node||!t.getDom())){var n=e.getComponent(`tooltip`);this._tooltipContent=(this._renderMode=ml(n.get(`renderMode`)))===`richText`?new OF(t):new CF(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!(K.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`)?Zb(this,`_updatePosition`,50,`fixRate`):Qb(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);RP(`itemTooltip`,this._api,W(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(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||K.node||!n.getDom())){var i=MF(r,n);this._ticket=``;var a=r.dataByCoordSys,o=LF(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=kF;c.x=r.x,c.y=r.y,c.update(),Z(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=KP(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,r.from!==this.uid&&this._hide(MF(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&&jF([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(Z(n).ssrType===`legend`)return;this._lastDataByCoordSys=null;var i,a;HT(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(Z(e).dataIndex==null?Z(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._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=W(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=jF([t.tooltipOption],r),o=this._renderMode,s=[],c=Ny(`section`,{blocks:[],noHeader:!0}),l=[],u=new Zy;k(e,function(e){k(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value;if(!(!t||i==null)){var a=TP(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=Ny(`section`,{header:a,noHeader:!pe(a),sortBlocks:!0,blocks:[]});c.blocks.push(d),k(e.seriesDataIndices,function(c){var f=n.getSeriesByIndex(c.seriesIndex),p=c.dataIndexInside,m=f.getDataParams(p);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=aA(t.axis,{value:i}),m.axisValueLabel=a,m.marker=u.makeTooltipMarker(`item`,Sv(m.color),o);var h=ny(f.formatTooltip(p,!0,null)),g=h.frag;if(g){var _=jF([f],r).get(`valueFormatter`);d.blocks.push(_?C({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`?`
|
|
30
16
|
|
|
31
|
-
`:`<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=Z(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=bD([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 Xh;h.marker=g.makeTooltipMarker(`item`,Nm(h.color),d);var _=ch(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?Vh(y?E({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=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(z(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=w(a),a.content=$p(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=bD(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Xh;this._showOrMove(d,function(){var n=w(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(z(u)){var p=e.ecModel.get(`useUTC`),m=L(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=_m(m.axisValue,d,p)),d=jm(d,n,!0)}else if(R(u)){var g=F(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`||L(t))return{color:r||i};if(!L(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),R(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),L(t))n=Mo(t[0],s),r=Mo(t[1],c);else if(V(t)){var p=t;p.width=l[0],p.height=l[1];var m=Vm(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(z(t)&&o){var h=wD(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=SD(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=TD(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=TD(d)?l[1]/2:d===`bottom`?l[1]:0),XE(e)){var h=CD(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&&M(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&M(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&&M(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&M(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,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){K.node||!t.getDom()||(Pg(this,`_updatePosition`),this._tooltipContent.dispose(),NE(`itemTooltip`,t))},t.type=`tooltip`,t}(vy);function bD(e,t,n){var r=t.ecModel,i;n?(i=new Bd(n,r,r),i=new Bd(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Bd&&(o=o.get(`tooltip`,!0)),z(o)&&(o={formatter:o}),o&&(i=new Bd(o,i,r)))}return i}function xD(e,t){return e.dispatchAction||F(t.dispatchAction,t)}function SD(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 CD(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 wD(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 TD(e){return e===`center`||e===`middle`}function ED(e,t,n){var r=Ds(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=ks(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=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}var DD=yD;function OD(e){BS(JE),e.registerComponentModel(YE),e.registerComponentView(DD),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},Te),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},Te)}var kD=M;function AD(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function jD(e,t,n){var r={};return kD(t,function(t){var a=r[t]=i();kD(e[t],function(e,r){if(yT.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new yT(i),r===`opacity`&&(i=w(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new yT(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function MD(e,t,n){var r;M(n,function(e){t.hasOwnProperty(e)&&AD(t[e])&&(r=!0)}),r&&M(n,function(n){t.hasOwnProperty(n)&&AD(t[n])?e[n]=w(t[n]):delete e[n]})}function ND(e,t,n,r){var i={};return M(e,function(e){i[e]=yT.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return nb(a,l,e)}function c(e,t){ib(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}var PD=function(e){n(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}(Qm),FD=function(e){n(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 wo({style:vd(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new wo({style:vd(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(){Pm(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Pm(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(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 _=Vm(g,Um(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 io({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}(vy);function ID(e){e.registerComponentModel(PD),e.registerComponentView(FD)}var LD={get:function(e,t,n){var r=w((RD[e]||{})[t]);return n&&L(r)?r[r.length-1]:r}},RD={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},zD=LD,BD=yT.mapVisual,VD=yT.eachVisual,HD=L,UD=M,WD=Io,GD=jo,KD=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&MD(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=F(e,this),this.controllerVisuals=jD(this.option.controller,t,e),this.targetVisuals=jD(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=ks(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return N(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){M(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],L(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(z(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(R(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option;this._dataExtent=WD([e.min,e.max])},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};T(r,n),T(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){HD(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},UD(r,function(e,t){if(yT.isValidType(t)){var n=zD.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;UD(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&w(t)||(a?i:[i]),c.symbolSize??=n&&w(n)||(a?s[0]:[s[0],s[0]]),c.symbol=BD(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;VD(l,function(e){e>u&&(u=e)}),c.symbolSize=BD(l,function(e){return GD(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(Qm),qD=[20,140],JD=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=qD[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=qD[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):L(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=Io((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=W(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=YD(this,`outOfRange`,this.getExtent()),n=YD(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=zp(KD.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(KD);function YD(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var XD=JD,ZD=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=Dm(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new io({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return M(yT.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),yT.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=Um(t,n).refContainer;Wm(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(vy),QD=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function $D(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=r.orient===`horizontal`?1:0,s=QD[o],c=[0,null,10],l={},u=0;u<3;u++)l[QD[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Vm(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function eO(e,t){return M(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}var tO=jo,nO=M,rO=Math.min,iO=Math.max,aO=12,oO=6,sO=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=F(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=F(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new wo({style:vd(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=$D(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new ol;s.add(c),c.add(n.outOfRange=cO()),c.add(n.inRange=cO(null,a?dO(this._orient):null,F(this._dragHandle,this,`all`,!1),F(this._dragHandle,this,`all`,!0))),c.setClipPath(new io({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=iO(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=F(this._dragHandle,this,n,!1),s=F(this._dragHandle,this,n,!0),c=zt(e.get(`handleSize`),r[0]),l=_g(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=dO(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){u_(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),jc(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new wo({cursor:u,draggable:!0,drift:o,onmousemove:function(e){u_(e.event)},ondragend:s,style:vd(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=zt(e.get(`indicatorSize`),n[0]),o=_g(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof Ya){var c=o.style;o.useStyle(E({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new wo({silent:!0,invisible:!0,style:vd(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:oO)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():uO(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[tO(t[0],n,r,!0),tO(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];QT(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[tO(r[0],i,a,!0),tO(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new nu(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new ol(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);nO([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=tO(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=Vu(n.handleLabelPoints[l],Bu(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=tO(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=Vu(c.indicatorLabelPoint,Bu(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=rO(iO(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=rO(iO(i[0],e),i[1]);var o=lO(n,a,i),s=[e-o,e+o],c=tO(e,i,a,!0),l=[tO(s[0],i,a,!0),tO(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||uO(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=Cs(u,d);this._dispatchHighDown(`downplay`,eO(f[0],n)),this._dispatchHighDown(`highlight`,eO(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(ab(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,eO(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=Bu(t,r?null:this.group);return L(e)?Vu(e,i,n):Hu(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(ZD);function cO(e,t,n,r){return new Rl({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){u_(e.event)},ondragend:r})}function lO(e,t,n){var r=aO/2,i=e.get(`hoverLinkDataSize`);return i&&(r=tO(i,t,n,!0)/2),r}function uO(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function dO(e){return e===`vertical`?`ns-resize`:`ew-resize`}var fO=sO,pO={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},mO=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})},hO=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(ND(t.stateList,t.targetVisuals,F(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(F(gO,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function gO(e,t,n,r){for(var i=t.targetVisuals[r],a=yT.prepareVisualTypes(i),o={color:rb(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}var _O=M;function vO(e){var t=e&&e.visualMap;L(t)||(t=t?[t]:[]),_O(t,function(e){if(e){yO(e,`splitList`)&&!yO(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&L(t)&&_O(t,function(e){V(e)&&(yO(e,`start`)&&!yO(e,`min`)&&(e.min=e.start),yO(e,`end`)&&!yO(e,`max`)&&(e.max=e.end))})}})}function yO(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var bO=!1;function xO(e){bO||(bO=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(pO,mO),M(hO,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(vO))}function SO(e){e.registerComponentModel(XD),e.registerComponentView(fO),xO(e)}var CO=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],wO[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=w(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=N(this._pieceList,function(e){return e=w(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=yT.listVisualTypes(),i=this.isCategory();M(t.pieces,function(e){M(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),M(n,function(e,n){var r=!1;M(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&M(this.stateList,function(e){(t[e]||(t[e]={}))[n]=zD.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,M(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;M(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=w(e)},t.prototype.getValueState=function(e){var t=yT.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){yT.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return M(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=zp(KD.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(KD),wO={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),Wo(e),M(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;M(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),TO(t,e)},pieces:function(e){var t=this.option;M(t.pieces,function(t,n){V(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=yT.retrieveVisuals(t),e.push(r)},this),TO(t,e),Wo(e),M(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function TO(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var EO=CO,DO=function(e){n(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),M(o.viewPieceList,function(o){var s=o.piece,u=new ol;u.onclick=F(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new wo({style:vd(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:W(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),zm(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:eO(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return $D(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new ol,o=this.visualMapModel.textStyleModel;a.add(new wo({style:vd(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=N(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=_g(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=w(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,M(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(ZD);function OO(e){e.registerComponentModel(EO),e.registerComponentView(DO),xO(e)}function kO(e){BS(SO),BS(OO)}function AO(e,t,n){var r=l.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}var jO=function(e){n(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.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r||=li,typeof t==`string`?a=AO(t,n,r):V(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(Ce(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.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=AO(`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}else 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=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);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;ae(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||fb(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=wb(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&&M(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(si),MO=1e5,NO=314159,PO=.01,FO=.001;function IO(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function LO(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}var RO=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=E({},n||{}),this.dpr=n.devicePixelRatio||li,this._singleCanvas=i,this.root=e,e.style&&(Ce(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new jO(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[NO]=u,u.zlevel=NO,a.push(NO),this._domRoot=e}else{this._width=hb(e,0,n),this._height=hb(e,1,n);var d=this._domRoot=LO(this._width,this._height);e.appendChild(d)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(MO),i||(i=n.ctx,i.save()),Wb(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(MO)},e.prototype.paintOne=function(e,t){Ub(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;H_(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(NO).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return K.wxa&&M(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(Wb(o,e,i,a),e.setPrevPaintRect(s))}else Wb(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=NO);var n=this._layers[e];return n||(n=new jO(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?T(n,this._layerConfig[e],!0):this._layerConfig[e-PO]&&T(n,this._layerConfig[e-PO],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&IO(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+FO,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?PO:0),this._needsManuallyCompositing),l.__builtin__||C(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,M(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?T(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+PO){var a=this._layers[i];T(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(O(n,e),1))},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;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=hb(i,0,r),t=hb(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(NO).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[NO].dom;var t=new jO(`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;this.eachLayer(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},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];Wb(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function zO(e){e.registerPainter(`canvas`,RO)}export{ZT as a,SS as c,OD as i,kO as n,BS as o,ID as r,bS as s,zO as t};
|
|
17
|
+
`:`<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=Z(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=jF([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 Zy;h.marker=g.makeTooltipMarker(`item`,Sv(h.color),d);var _=ny(s.formatTooltip(c,!1,l)),v=p.get(`order`),y=p.get(`valueFormatter`),b=_.frag,x=b?zy(y?C({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=Z(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;if(L(a)){var s=a;a={content:s,formatter:s},o=!0}o&&r&&a.content&&(a=b(a),a.content=o_(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=jF(c,this._tooltipModel,u?{position:u}:null),f=d.get(`content`),p=Math.random()+``,m=new Zy;this._showOrMove(d,function(){var n=b(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(L(u)){var p=e.ecModel.get(`useUTC`),m=F(n)?n[0]:n,h=m&&m.axisType&&m.axisType.indexOf(`time`)>=0;d=u,h&&(d=I_(m.axisValue,d,p)),d=vv(d,n,!0)}else if(I(u)){var g=W(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`||F(t))return{color:r||i};if(!F(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),I(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),F(t))n=Ac(t[0],s),r=Ac(t[1],c);else if(z(t)){var p=t;p.width=l[0],p.height=l[1];var m=Av(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(L(t)&&o){var h=FF(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else{var h=NF(n,r,i,s,c,u?null:20,d?null:20);n=h[0],r=h[1]}if(u&&(n-=IF(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=IF(d)?l[1]/2:d===`bottom`?l[1]:0),sF(e)){var h=PF(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&&k(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];i&&=o.length===s.length,i&&k(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&&k(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&k(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,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){K.node||!t.getDom()||(Qb(this,`_updatePosition`),this._tooltipContent.dispose(),WP(`itemTooltip`,t))},t.type=`tooltip`,t}(qw);function jF(e,t,n){var r=t.ecModel,i;n?(i=new fm(n,r,r),i=new fm(t.option,i,r)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof fm&&(o=o.get(`tooltip`,!0)),L(o)&&(o={formatter:o}),o&&(i=new fm(o,i,r)))}return i}function MF(e,t){return e.dispatchAction||W(t.dispatchAction,t)}function NF(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 PF(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 FF(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 IF(e){return e===`center`||e===`middle`}function LF(e,t,n){var r=ul(e).queryOptionMap,i=r.keys()[0];if(!(!i||i===`series`)){var a=dl(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=Z(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0}),s)return{componentMainType:i,componentIndex:a.componentIndex,el:s}}}}var RF=AF;YO(),G();function zF(e){KO(aF),e.registerComponentModel(oF),e.registerComponentView(RF),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},xe),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},xe)}G(),VT();var BF=k;function VF(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function HF(e,t,n){var r={};return BF(t,function(t){var a=r[t]=i();BF(e[t],function(e,r){if(AN.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),a[r]=new AN(i),r===`opacity`&&(i=b(i),i.type=`colorAlpha`,a.__hidden.__alphaForOpacity=new AN(i))}})}),r;function i(){var e=function(){};return e.prototype.__hidden=e.prototype,new e}}function UF(e,t,n){var r;k(n,function(e){t.hasOwnProperty(e)&&VF(t[e])&&(r=!0)}),r&&k(n,function(n){t.hasOwnProperty(n)&&VF(t[n])?e[n]=b(t[n]):delete e[n]})}function WF(e,t,n,r){var i={};return k(e,function(e){i[e]=AN.prepareVisualTypes(t[e])}),{progress:function(e,a){var o;r!=null&&(o=a.getDimensionIndex(r));function s(e){return RT(a,l,e)}function c(e,t){BT(a,l,e,t)}for(var l,u=a.getStore();(l=e.next())!=null;){var d=a.getRawDataItem(l);if(!(d&&d.visualMap===!1))for(var f=r==null?l:u.get(o,l),p=n(f),m=t[p],h=i[p],g=0,_=h.length;g<_;g++){var v=h[g];m[v]&&m[v].applyVisual(f,s,c)}}}}}o(),G(),Mp(),Sl(),Xp(),Hv(),qv(),Jw(),Dv(),Ay();var GF=function(e){i(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}(Kv),KF=function(e){i(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=H(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new Qs({style:Lp(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new Qs({style:Lp(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(){Cv(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Cv(p,`_`+e.get(`subtarget`))}),Z(c).eventData=Z(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 _=Av(g,jv(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 Ms({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}(qw);function qF(e){e.registerComponentModel(GF),e.registerComponentView(KF)}G(),Ay();var JF={get:function(e,t,n){var r=b((YF[e]||{})[t]);return n&&F(r)?r[r.length-1]:r}},YF={color:{active:[`#006edd`,`#e0ffff`],inactive:[Q.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:[`circle`,`roundRect`,`diamond`],inactive:[`none`]},symbolSize:{active:[10,50],inactive:[0,0]}},XF=JF;o(),G(),X(),Nc(),qv(),Ay();var ZF=AN.mapVisual,QF=AN.eachVisual,$F=F,eI=k,tI=ac,nI=tc,rI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=[`inRange`,`outOfRange`],n.replacableOptionKeys=[`inRange`,`outOfRange`,`target`,`controller`,`color`],n.layoutMode={type:`box`,ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&UF(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel(`textStyle`),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=W(e,this),this.controllerVisuals=HF(this.option.controller,t,e),this.targetVisuals=HF(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,t=this.option.seriesIndex;t==null&&e==null&&(t=`all`);var n=dl(this.ecModel,`series`,{index:t,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return A(n,function(e){return e.componentIndex})},t.prototype.eachTargetSeries=function(e,t){k(this.getTargetSeriesIndices(),function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)},this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries(function(n){n===e&&(t=!0)}),t},t.prototype.formatValueText=function(e,t,n){var r=this.option,i=r.precision,a=this.dataBound,o=r.formatter,s;n||=[`<`,`>`],F(e)&&(e=e.slice(),s=!0);var c=t?e:s?[l(e[0]),l(e[1])]:l(e);if(L(o))return o.replace(`{value}`,s?c[0]:c).replace(`{value2}`,s?c[1]:c);if(I(o))return s?o(e[0],e[1]):o(e);if(s)return e[0]===a[0]?n[0]+` `+c[1]:e[1]===a[1]?n[1]+` `+c[0]:c[0]+` - `+c[1];return c;function l(e){return e===a[0]?`min`:e===a[1]?`max`:(+e).toFixed(Math.min(i,20))}},t.prototype.resetExtent=function(){var e=this.option;this._dataExtent=tI([e.min,e.max])},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(t!=null)return e.getDimensionIndex(t);for(var n=e.dimensions,r=n.length-1;r>=0;r--){var i=n[r],a=e.getDimensionInfo(i);if(!a.isCalculationCoord)return a.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},r=t.target||={},i=t.controller||={};x(r,n),x(i,n);var a=this.isCategory();o.call(this,r),o.call(this,i),s.call(this,r,`inRange`,`outOfRange`),c.call(this,i);function o(n){$F(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get(`gradientColor`)}}function s(e,t,n){var r=e[t],i=e[n];r&&!i&&(i=e[n]={},eI(r,function(e,t){if(AN.isValidType(t)){var n=XF.get(t,`inactive`,a);n!=null&&(i[t]=n,t===`color`&&!i.hasOwnProperty(`opacity`)&&!i.hasOwnProperty(`colorAlpha`)&&(i.opacity=[0,0]))}}))}function c(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get(`inactiveColor`),i=this.getItemSymbol()||`roundRect`;eI(this.stateList,function(o){var s=this.itemSize,c=e[o];c||=e[o]={color:a?r:[r]},c.symbol??=t&&b(t)||(a?i:[i]),c.symbolSize??=n&&b(n)||(a?s[0]:[s[0],s[0]]),c.symbol=ZF(c.symbol,function(e){return e===`none`?i:e});var l=c.symbolSize;if(l!=null){var u=-1/0;QF(l,function(e){e>u&&(u=e)}),c.symbolSize=ZF(l,function(e){return nI(e,[0,u],[0,s[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get(`itemWidth`)),parseFloat(this.get(`itemHeight`))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type=`visualMap`,t.dependencies=[`series`],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:`vertical`,backgroundColor:Q.color.transparent,borderColor:Q.color.borderTint,contentColor:Q.color.theme[0],inactiveColor:Q.color.disabled,borderWidth:0,padding:Q.size.m,textGap:10,precision:0,textStyle:{color:Q.color.secondary}},t}(Kv);o(),G(),Nc(),Yg(),Ay();var iI=[20,140],aI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(e){e.mappingMethod=`linear`,e.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=iI[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=iI[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):F(t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),k(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=ac((this.get(`range`)||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]<e[0]&&(t[0]=e[0]),t[1]<e[0]&&(t[1]=e[0]),t},t.prototype.getValueState=function(e){var t=this.option.range,n=this.getExtent(),r=H(this.option.unboundedRange,!0);return(r&&t[0]<=n[0]||t[0]<=e)&&(r&&t[1]>=n[1]||e<=t[1])?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries(function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)},this),t.push({seriesId:n.id,dataIndex:r})},this),t},t.prototype.getVisualMeta=function(e){var t=oI(this,`outOfRange`,this.getExtent()),n=oI(this,`inRange`,this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var a=0,o=0,s=n.length,c=t.length;o<c&&(!n.length||t[o]<=n[0]);o++)t[o]<n[a]&&i(t[o],`outOfRange`);for(var l=1;a<s;a++,l=0)l&&r.length&&i(n[a],`outOfRange`),i(n[a],`inRange`);for(var l=1;o<c;o++)(!n.length||n[n.length-1]<t[o])&&(l&&=(r.length&&i(r[r.length-1].value,`outOfRange`),0),i(t[o],`outOfRange`));var u=r.length;return{stops:r,outerColors:[u?r[0].color:`transparent`,u?r[u-1].color:`transparent`]}},t.type=`visualMap.continuous`,t.defaultOption=qg(rI.defaultOption,{align:`auto`,calculable:!1,hoverLink:!0,realtime:!0,handleIcon:`path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z`,handleSize:`120%`,handleStyle:{borderColor:Q.color.neutral00,borderWidth:1},indicatorIcon:`circle`,indicatorSize:`50%`,indicatorStyle:{borderColor:Q.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Q.color.shadow}}),t}(rI);function oI(e,t,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var sI=aI;o(),G(),Mp(),Dv(),Hv(),Jw();var cI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return t.prototype.init=function(e,t){this.ecModel=e,this.api=t},t.prototype.render=function(e,t,n,r){if(this.visualMapModel=e,e.get(`show`)===!1){this.group.removeAll();return}this.doRender(e,t,n,r)},t.prototype.renderBackground=function(e){var t=this.visualMapModel,n=wv(t.get(`padding`)||0),r=e.getBoundingRect();e.add(new Ms({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:t.get(`backgroundColor`),stroke:t.get(`borderColor`),lineWidth:t.get(`borderWidth`)}}))},t.prototype.getControllerVisual=function(e,t,n){n||={};var r=n.forceState,i=this.visualMapModel,a={};t===`color`&&(a.color=i.get(`contentColor`));function o(e){return a[e]}function s(e,t){a[e]=t}var c=i.controllerVisuals[r||i.getValueState(e)];return k(AN.prepareVisualTypes(c),function(r){var i=c[r];n.convertOpacityToAlpha&&r===`opacity`&&(r=`colorAlpha`,i=c.__alphaForOpacity),AN.dependsOn(r,t)&&i&&i.applyVisual(e,o,s)}),a[t]},t.prototype.positionGroup=function(e){var t=this.visualMapModel,n=this.api,r=jv(t,n).refContainer;Mv(e,t.getBoxLayoutParams(),r)},t.prototype.doRender=function(e,t,n,r){},t.type=`visualMap`,t}(qw);G(),Hv();var lI=[[`left`,`right`,`width`],[`top`,`bottom`,`height`]];function uI(e,t,n){var r=e.option,i=r.align;if(i!=null&&i!==`auto`)return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=r.orient===`horizontal`?1:0,s=lI[o],c=[0,null,10],l={},u=0;u<3;u++)l[lI[1-o][u]]=c[u],l[s[u]]=u===2?n[0]:r[s[u]];var d=[[`x`,`width`,3],[`y`,`height`,0]][o],f=Av(l,a,r.padding);return s[(f.margin[d[2]]||0)+f[d[0]]+f[d[1]]*.5<a[d[1]]*.5?0:1]}function dI(e,t){return k(e||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey=`visualMap`+(t?t.componentIndex:``)}),e}o(),G(),mf(),dS(),Mp(),Nc(),X(),gn(),Eu(),Eb(),xs(),Sl(),Xp(),UT();var fI=tc,pI=k,mI=Math.min,hI=Math.max,gI=12,_I=6,vI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return t.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(this._hideIndicator,this)},t.prototype.doRender=function(e,t,n,r){(!r||r.type!==`selectDataRange`||r.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get(`orient`),this._useHandle=e.get(`calculable`),this._resetInterval(),this._renderBar(t);var n=e.get(`text`);this._renderEndsText(t,n,0),this._renderEndsText(t,n,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},t.prototype._renderEndsText=function(e,t,n){if(t){var r=t[1-n];r=r==null?``:r+``;var i=this.visualMapModel,a=i.get(`textGap`),o=i.itemSize,s=this._shapes.mainGroup,c=this._applyTransform([o[0]/2,n===0?-a:o[1]+a],s),l=this._applyTransform(n===0?`bottom`:`top`,s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new Qs({style:Lp(d,{x:c[0],y:c[1],verticalAlign:d.get(`verticalAlign`)||(u===`horizontal`?`middle`:l),align:d.get(`align`)||(u===`horizontal`?l:`center`),text:r})}))}},t.prototype._renderBar=function(e){var t=this.visualMapModel,n=this._shapes,r=t.itemSize,i=this._orient,a=this._useHandle,o=uI(t,this.api,r),s=n.mainGroup=this._createBarGroup(o),c=new Qu;s.add(c),c.add(n.outOfRange=yI()),c.add(n.inRange=yI(null,a?SI(this._orient):null,W(this._dragHandle,this,`all`,!1),W(this._dragHandle,this,`all`,!0))),c.setClipPath(new Ms({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var l=t.textStyleModel.getTextRect(`国`),u=hI(l.width,l.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(t,s,0,r,u,i),this._createHandle(t,s,1,r,u,i)),this._createIndicator(t,s,r,u,i),e.add(s)},t.prototype._createHandle=function(e,t,n,r,i,a){var o=W(this._dragHandle,this,n,!1),s=W(this._dragHandle,this,n,!0),c=dn(e.get(`handleSize`),r[0]),l=gb(e.get(`handleIcon`),-c/2,-c/2,c,c,null,!0),u=SI(this._orient);l.attr({cursor:u,draggable:!0,drift:o,ondragend:s,onmousemove:function(e){uS(e.event)}}),l.x=r[0]/2,l.useStyle(e.getModel(`handleStyle`).getItemStyle()),l.setStyle({strokeNoScale:!0,strokeFirst:!0}),l.style.lineWidth*=2,l.ensureState(`emphasis`).style=e.getModel([`emphasis`,`handleStyle`]).getItemStyle(),cu(l,!0),t.add(l);var d=this.visualMapModel.textStyleModel,f=new Qs({cursor:u,draggable:!0,drift:o,onmousemove:function(e){uS(e.event)},ondragend:s,style:Lp(d,{x:0,y:0,text:``})});f.ensureState(`blur`).style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var p=[c,0],m=this._shapes;m.handleThumbs[n]=l,m.handleLabelPoints[n]=p,m.handleLabels[n]=f},t.prototype._createIndicator=function(e,t,n,r,i){var a=dn(e.get(`indicatorSize`),n[0]),o=gb(e.get(`indicatorIcon`),-a/2,-a/2,a,a,null,!0);o.attr({cursor:`move`,invisible:!0,silent:!0,x:n[0]/2});var s=e.getModel(`indicatorStyle`).getItemStyle();if(o instanceof bs){var c=o.style;o.useStyle(C({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},s))}else o.useStyle(s);t.add(o);var l=this.visualMapModel.textStyleModel,u=new Qs({silent:!0,invisible:!0,style:Lp(l,{x:0,y:0,text:``})});this.group.add(u);var d=[(i===`horizontal`?r/2:_I)+n[0]/2,0],f=this._shapes;f.indicator=o,f.indicatorLabel=u,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,t,n,r){if(this._useHandle){if(this._dragging=!t,!t){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(e,i[1]),this._hideIndicator(),this._updateView()}t===!this.visualMapModel.get(`realtime`)&&this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():xI(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),n=e.getExtent(),r=[0,e.itemSize[1]];this._handleEnds=[fI(t[0],n,r,!0),fI(t[1],n,r,!0)]},t.prototype._updateInterval=function(e,t){t||=0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];lP(t,r,i,e,0);var a=n.getExtent();this._dataInterval=[fI(r[0],i,a,!0),fI(r[1],i,a,!0)]},t.prototype._updateView=function(e){var t=this.visualMapModel,n=t.getExtent(),r=this._shapes,i=[0,t.itemSize[1]],a=e?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,`inRange`),s=this._createBarVisual(n,n,i,`outOfRange`);r.inRange.setStyle({fill:o.barColor}).setShape(`points`,o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape(`points`,s.barPoints),this._updateHandle(a,o)},t.prototype._createBarVisual=function(e,t,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(e,i),o=[this.getControllerVisual(e[0],`symbolSize`,i),this.getControllerVisual(e[1],`symbolSize`,i)],s=this._createBarPoints(n,o);return{barColor:new pf(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},t.prototype._makeColorGradient=function(e,t){var n=100,r=[],i=(e[1]-e[0])/n;r.push({color:this.getControllerVisual(e[0],`color`,t),offset:0});for(var a=1;a<n;a++){var o=e[0]+i*a;if(o>e[1])break;r.push({color:this.getControllerVisual(o,`color`,t),offset:a/n})}return r.push({color:this.getControllerVisual(e[1],`color`,t),offset:1}),r},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get(`inverse`);return new Qu(t===`horizontal`&&!n?{scaleX:e===`bottom`?1:-1,rotation:Math.PI/2}:t===`horizontal`&&n?{scaleX:e===`bottom`?-1:1,rotation:-Math.PI/2}:t===`vertical`&&!n?{scaleX:e===`left`?1:-1,scaleY:-1}:{scaleX:e===`left`?1:-1})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),c=this._applyTransform(`left`,n.mainGroup);pI([0,1],function(l){var u=i[l];u.setStyle(`fill`,t.handlesColor[l]),u.y=e[l];var d=fI(e[l],[0,o[1]],s,!0),f=this.getControllerVisual(d,`symbolSize`);u.scaleX=u.scaleY=f/o[0],u.x=o[0]-f/2;var p=ep(n.handleLabelPoints[l],$f(u,this.group));if(this._orient===`horizontal`){var m=c===`left`||c===`top`?(o[0]-f)/2:(o[0]-f)/-2;p[1]+=m}a[l].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[l]),verticalAlign:`middle`,align:this._orient===`vertical`?this._applyTransform(`left`,n.mainGroup):`center`})},this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],c=this._shapes,l=c.indicator;if(l){l.attr(`invisible`,!1);var u=this.getControllerVisual(e,`color`,{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,`symbolSize`),f=fI(e,a,s,!0),p=o[0]-d/2,m={x:l.x,y:l.y};l.y=f,l.x=p;var h=ep(c.indicatorLabelPoint,$f(l,this.group)),g=c.indicatorLabel;g.attr(`invisible`,!1);var _=this._applyTransform(`left`,c.mainGroup),v=this._orient===`horizontal`;g.setStyle({text:(n||``)+i.formatValueText(t),verticalAlign:v?_:`middle`,align:v?`center`:_});var y={x:p,y:f,style:{fill:u}},b={style:{x:h[0],y:h[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:`cubicInOut`,additive:!0};l.x=m.x,l.y=m.y,l.animateTo(y,x),g.animateTo(b,x)}else l.attr(y),g.attr(b);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var C=0;C<S.length;C++)this.api.enterBlur(S[C])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on(`mousemove`,function(t){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,r=e._applyTransform([t.offsetX,t.offsetY],e._shapes.mainGroup,!0,!0);r[1]=mI(hI(0,r[1]),n[1]),e._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}}).on(`mouseout`,function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on(`mouseover`,this._hoverLinkFromSeriesMouseOver,this),e.on(`mouseout`,this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,t){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();e=mI(hI(i[0],e),i[1]);var o=bI(n,a,i),s=[e-o,e+o],c=fI(e,i,a,!0),l=[fI(s[0],i,a,!0),fI(s[1],i,a,!0)];s[0]<i[0]&&(l[0]=-1/0),s[1]>i[1]&&(l[1]=1/0),t&&(l[0]===-1/0?this._showIndicator(c,l[1],`< `,o):l[1]===1/0?this._showIndicator(c,l[0],`> `,o):this._showIndicator(c,c,`≈ `,o));var u=this._hoverLinkDataIndices,d=[];(t||xI(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var f=ol(u,d);this._dispatchHighDown(`downplay`,dI(f[0],n)),this._dispatchHighDown(`highlight`,dI(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(HT(e.target,function(e){var n=Z(e);if(n.dataIndex!=null)return t=n,!0},!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),t.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr(`invisible`,!0),e.indicatorLabel&&e.indicatorLabel.attr(`invisible`,!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n<t.length;n++)this.api.leaveBlur(t[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown(`downplay`,dI(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off(`mouseover`,this._hoverLinkFromSeriesMouseOver),e.off(`mouseout`,this._hideIndicator)},t.prototype._applyTransform=function(e,t,n,r){var i=$f(t,r?null:this.group);return F(e)?ep(e,i,n):tp(e,i,n)},t.prototype._dispatchHighDown=function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type=`visualMap.continuous`,t}(cI);function yI(e,t,n,r){return new Rd({shape:{points:e},draggable:!!n,cursor:t,drift:n,onmousemove:function(e){uS(e.event)},ondragend:r})}function bI(e,t,n){var r=gI/2,i=e.get(`hoverLinkDataSize`);return i&&(r=fI(i,t,n,!0)/2),r}function xI(e){return!!(e.get(`hoverLinkOnHandle`)??e.get(`realtime`))}function SI(e){return e===`vertical`?`ns-resize`:`ew-resize`}var CI=vI,wI={type:`selectDataRange`,event:`dataRangeSelected`,update:`update`},TI=function(e,t){t.eachComponent({mainType:`visualMap`,query:e},function(t){t.setSelected(e.selected)})};G(),VT();var EI=[{createOnAllSeries:!0,reset:function(e,t){var n=[];return t.eachComponent(`visualMap`,function(t){var r=e.pipelineContext;!t.isTargetSeries(e)||r&&r.large||n.push(WF(t.stateList,t.targetVisuals,W(t.getValueState,t),t.getDataDimensionIndex(e.getData())))}),n}},{createOnAllSeries:!0,reset:function(e,t){var n=e.getData(),r=[];t.eachComponent(`visualMap`,function(t){if(t.isTargetSeries(e)){var i=t.getVisualMeta(W(DI,null,e,t))||{stops:[],outerColors:[]},a=t.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}}),e.getData().setVisual(`visualMeta`,r)}}];function DI(e,t,n,r){for(var i=t.targetVisuals[r],a=AN.prepareVisualTypes(i),o={color:zT(e.getData(),`color`)},s=0,c=a.length;s<c;s++){var l=a[s],u=i[l===`opacity`?`__alphaForOpacity`:l];u&&u.applyVisual(n,d,f)}return o.color;function d(e){return o[e]}function f(e,t){o[e]=t}}G();var OI=k;function kI(e){var t=e&&e.visualMap;F(t)||(t=t?[t]:[]),OI(t,function(e){if(e){AI(e,`splitList`)&&!AI(e,`pieces`)&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&F(t)&&OI(t,function(e){z(e)&&(AI(e,`start`)&&!AI(e,`min`)&&(e.min=e.start),AI(e,`end`)&&!AI(e,`max`)&&(e.max=e.end))})}})}function AI(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}G();var jI=!1;function MI(e){jI||(jI=!0,e.registerSubTypeDefaulter(`visualMap`,function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?`continuous`:`piecewise`}),e.registerAction(wI,TI),k(EI,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kI))}function NI(e){e.registerComponentModel(sI),e.registerComponentView(CI),MI(e)}o(),G(),Nc(),Yg();var PI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],FI[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual(function(e,t){r===`categories`?(e.mappingMethod=`category`,e.categories=b(i)):(e.dataExtent=this.getExtent(),e.mappingMethod=`piecewise`,e.pieceList=A(this._pieceList,function(e){return e=b(e),t!==`inRange`&&(e.visual=null),e}))})},t.prototype.completeVisualOption=function(){var t=this.option,n={},r=AN.listVisualTypes(),i=this.isCategory();k(t.pieces,function(e){k(r,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),k(n,function(e,n){var r=!1;k(this.stateList,function(e){r=r||a(t,e,n)||a(t.target,e,n)},this),!r&&k(this.stateList,function(e){(t[e]||(t[e]={}))[n]=XF.get(n,e===`inRange`?`active`:`inactive`,i)})},this);function a(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,k(r,function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)},this),n.selectedMode===`single`){var a=!1;k(r,function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(a?i[n]=!1:a=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get(`itemSymbol`)},t.prototype.getSelectedMapKey=function(e){return this._mode===`categories`?e.value+``:e.index+``},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?`pieces`:this.option.categories?`categories`:`splitNumber`},t.prototype.setSelected=function(e){this.option.selected=b(e)},t.prototype.getValueState=function(e){var t=AN.findPieceIndex(e,this._pieceList);return t==null?`outOfRange`:this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?`inRange`:`outOfRange`},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries(function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(t,r){AN.findPieceIndex(t,n)===e&&i.push(r)},this),t.push({seriesId:r.id,dataIndex:i})},this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(e.value!=null)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var t=[],n=[``,``],r=this;function i(i,a){var o=r.getRepresentValue({interval:i});a||=r.getValueState(o);var s=e(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}var a=this._pieceList.slice();if(!a.length)a.push({interval:[-1/0,1/0]});else{var o=a[0].interval[0];o!==-1/0&&a.unshift({interval:[-1/0,o]}),o=a[a.length-1].interval[1],o!==1/0&&a.push({interval:[o,1/0]})}var s=-1/0;return k(a,function(e){var t=e.interval;t&&(t[0]>s&&i([s,t[0]],`outOfRange`),i(t.slice()),s=t[1])},this),{stops:t,outerColors:n}},t.type=`visualMap.piecewise`,t.defaultOption=qg(rI.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:`auto`,itemWidth:20,itemHeight:14,itemSymbol:`roundRect`,pieces:null,categories:null,splitNumber:5,selectedMode:`multiple`,itemGap:10,hoverLink:!0}),t}(rI),FI={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var c=o===i-1?r[1]:s+a;e.push({interval:[s,c],close:[1,1]})}t.maxOpen&&e.push({interval:[r[1],1/0],close:[0,0]}),yc(e),k(e,function(e,t){e.index=t,e.text=this.formatValueText(e.interval)},this)},categories:function(e){var t=this.option;k(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),II(t,e)},pieces:function(e){var t=this.option;k(t.pieces,function(t,n){z(t)||(t={value:t});var r={text:``,index:n};if(t.label!=null&&(r.text=t.label),t.hasOwnProperty(`value`)){var i=r.value=t.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],c=[-1/0,1/0],l=[],u=0;u<2;u++){for(var d=[[`gte`,`gt`,`min`],[`lte`,`lt`,`max`]][u],f=0;f<3&&a[u]==null;f++)a[u]=t[d[f]],o[u]=s[f],l[u]=f===2;a[u]??(a[u]=c[u])}l[0]&&a[1]===1/0&&(o[0]=0),l[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=AN.retrieveVisuals(t),e.push(r)},this),II(t,e),yc(e),k(e,function(e){var t=e.close,n=[[`<`,`≤`][t[1]],[`>`,`≥`][t[0]]];e.text=e.text||this.formatValueText(e.value==null?e.interval:e.value,!1,n)},this)}};function II(e,t){var n=e.inverse;(e.orient===`vertical`?!n:n)&&t.reverse()}var LI=PI;o(),G(),Mp(),Eb(),Hv(),Xp();var RI=function(e){i(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get(`textGap`),r=t.textStyleModel,i=this._getItemAlign(),a=t.itemSize,o=this._getViewData(),s=o.endsText,c=ce(t.get(`showLabel`,!0),!s),l=!t.get(`selectedMode`);s&&this._renderEndsText(e,s[0],a,c,i),k(o.viewPieceList,function(o){var s=o.piece,u=new Qu;u.onclick=W(this._onItemClick,this,s),this._enableHoverLink(u,o.indexInModelPieceList);var d=t.getRepresentValue(s);if(this._createItemSymbol(u,d,[0,0,a[0],a[1]],l),c){var f=this.visualMapModel.getValueState(d),p=r.get(`align`)||i;u.add(new Qs({style:Lp(r,{x:p===`right`?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get(`verticalAlign`)||`middle`,align:p,opacity:H(r.get(`opacity`),f===`outOfRange`?.5:1)}),silent:l}))}e.add(u)},this),s&&this._renderEndsText(e,s[1],a,c,i),Bv(t.get(`orient`),e,t.get(`itemGap`)),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on(`mouseover`,function(){return r(`highlight`)}).on(`mouseout`,function(){return r(`downplay`)});var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:dI(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if(t.orient===`vertical`)return uI(e,this.api,e.itemSize);var n=t.align;return(!n||n===`auto`)&&(n=`left`),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var a=new Qu,o=this.visualMapModel.textStyleModel;a.add(new Qs({style:Lp(o,{x:r?i===`right`?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:`middle`,align:r?i:`center`,text:t})})),e.add(a)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=A(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),n=e.get(`text`),r=e.get(`orient`),i=e.get(`inverse`);return(r===`horizontal`?i:!i)?t.reverse():n&&=n.slice().reverse(),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=gb(this.getControllerVisual(t,`symbol`),n[0],n[1],n[2],n[3],this.getControllerVisual(t,`color`));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=b(n.selected),a=t.getSelectedMapKey(e);r===`single`||r===!0?(i[a]=!0,k(i,function(e,t){i[t]=t===a})):i[a]=!i[a],this.api.dispatchAction({type:`selectDataRange`,from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type=`visualMap.piecewise`,t}(cI);function zI(e){e.registerComponentModel(LI),e.registerComponentView(RI),MI(e)}YO();function BI(e){KO(NI),KO(zI)}function VI(e){e.registerComponentModel(HI),e.registerComponentView(UI)}var HI,UI,WI=t((()=>{o(),qv(),Jw(),Dm(),Ey(),HI=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.prototype.init=function(t,n,r){e.prototype.init.call(this,t,n,r),this._sourceManager=new Ty(this),Sy(this)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),Sy(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type=`dataset`,t.defaultOption={seriesLayoutBy:Em},t}(Kv),UI=function(e){i(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`dataset`,t}return t.type=`dataset`,t}(qw)})),GI=n({createDimensions:()=>pg,createList:()=>KI,createScale:()=>qI,createSymbol:()=>gb,createTextStyle:()=>YI,dataStack:()=>XI,enableHoverEmphasis:()=>iu,getECData:()=>Z,getLayoutRect:()=>Av,mixinAxisModelCommonMethods:()=>JI});function KI(e){return Hg(null,e)}function qI(e,t){var n=t;t instanceof fm||(n=new fm(t));var r=rA(n);return r.setExtent(e[0],e[1]),nA(r,n),r}function JI(e){D(e,XO)}function YI(e,t){return t||={},Lp(e,null,null,t.state!==`normal`)}var XI,ZI=t((()=>{G(),Ug(),dA(),ZO(),pm(),Hv(),Ig(),Sl(),Xp(),vg(),Eb(),Eu(),XI={isDimensionStacked:Pg,enableDataStack:Mg,getStackedDimension:Fg}})),QI=n({MAX_SAFE_INTEGER:()=>jc,asc:()=>ac,getPercentWithPrecision:()=>lc,getPixelPrecision:()=>cc,getPrecision:()=>oc,getPrecisionSafe:()=>sc,isNumeric:()=>xc,isRadianAroundZero:()=>pc,linearMap:()=>tc,nice:()=>_c,numericToNumber:()=>bc,parseDate:()=>mc,parsePercent:()=>Ac,quantile:()=>vc,quantity:()=>hc,quantityExponent:()=>gc,reformIntervals:()=>yc,remRadian:()=>fc,round:()=>ic}),$I=t((()=>{Nc()})),eL=n({format:()=>I_,parse:()=>mc,roundTime:()=>z_}),tL=t((()=>{Nc(),fv()})),nL=n({Arc:()=>rf,BezierCurve:()=>$d,BoundingRect:()=>J,Circle:()=>nd,CompoundPath:()=>sf,Ellipse:()=>od,Group:()=>Qu,Image:()=>bs,IncrementalDisplayable:()=>jf,Line:()=>qd,LinearGradient:()=>pf,Polygon:()=>Rd,Polyline:()=>Hd,RadialGradient:()=>gf,Rect:()=>Ms,Ring:()=>Ad,Sector:()=>Ed,Text:()=>Qs,clipPointsByRect:()=>ap,clipRectByRect:()=>op,createIcon:()=>sp,extendPath:()=>Wf,extendShape:()=>Uf,getShapeClass:()=>Kf,getTransform:()=>$f,initProps:()=>If,makeImage:()=>Jf,makePath:()=>qf,mergePath:()=>Op,registerShape:()=>Gf,resizePath:()=>Xf,updateProps:()=>Ff}),rL=t((()=>{Mp()})),iL=n({addCommas:()=>hv,capitalFirst:()=>xv,encodeHTML:()=>o_,formatTime:()=>bv,formatTpl:()=>vv,getTextRect:()=>pv,getTooltipMarker:()=>yv,normalizeCssArray:()=>wv,toCamelCase:()=>gv,truncateText:()=>_n}),aL=t((()=>{Dv()})),oL=n({bind:()=>W,clone:()=>b,curry:()=>P,defaults:()=>w,each:()=>k,extend:()=>C,filter:()=>M,indexOf:()=>T,inherits:()=>E,isArray:()=>F,isFunction:()=>I,isObject:()=>z,isString:()=>L,map:()=>A,merge:()=>x,reduce:()=>j}),sL=t((()=>{G()}));function cL(e){var t=Kv.extend(e);return Kv.registerClass(t),t}function lL(e){var t=qw.extend(e);return qw.registerClass(t),t}function uL(e){var t=pb.extend(e);return pb.registerClass(t),t}function dL(e){var t=Lb.extend(e);return Lb.registerClass(t),t}var fL=t((()=>{qv(),Jw(),mb(),Rb(),fg(),IC(),Nt(),pr(),G(),Li(),nx(),ZI(),YO(),g(),hM(),$I(),tL(),rL(),aL(),sL(),We(),pm(),VA(),PE()}));function pL(e){if(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n].slice());return t}}function mL(e,t){var n=e.label,r=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:pL(r&&r.shape.points)}}function hL(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];t[i]!=null&&(e[i]=t[i])}}var gL,_L,vL,yL,bL,xL,SL,CL=t((()=>{Mp(),Sl(),Nc(),Tr(),Ax(),X(),G(),Jx(),Xp(),Bo(),gL=[`align`,`verticalAlign`,`width`,`height`,`fontSize`],_L=new wr,vL=cl(),yL=cl(),bL=[`x`,`y`,`rotation`],xL=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(e,t,n,r,i){var a=r.style,o=r.__hostTarget.textConfig||{},s=r.getComputedTransform(),c=r.getBoundingRect().plain();J.applyTransform(c,c,s),s?_L.setLocalTransform(s):(_L.x=_L.y=_L.rotation=_L.originX=_L.originY=0,_L.scaleX=_L.scaleY=1),_L.rotation=Ro(_L.rotation);var l=r.__hostTarget,u;if(l){u=l.getBoundingRect().plain();var d=l.getComputedTransform();J.applyTransform(u,u,d)}var f=u&&l.getTextGuideLine();this._labelList.push({label:r,labelLine:f,seriesModel:n,dataIndex:e,dataType:t,layoutOptionOrCb:i,layoutOption:null,rect:c,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:f&&f.ignore,x:_L.x,y:_L.y,scaleX:_L.scaleX,scaleY:_L.scaleY,rotation:_L.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:o.position,attachedRot:o.rotation}})},e.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var n=e.__model,r=n.get(`labelLayout`);(I(r)||N(r).length)&&e.group.traverse(function(e){if(e.ignore)return!0;var i=e.getTextContent(),a=Z(e);i&&!i.disableLabelLayout&&t._addLabel(a.dataIndex,a.dataType,n,i,r)})},e.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),n=e.getHeight();function r(e,t){return function(){fx(e,t)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,c=a.defaultAttr,l=void 0;l=I(a.layoutOptionOrCb)?a.layoutOptionOrCb(mL(a,s)):a.layoutOptionOrCb,l||={},a.layoutOption=l;var u=Math.PI/180;s&&s.setTextConfig({local:!1,position:l.x!=null||l.y!=null?null:c.attachedPos,rotation:l.rotate==null?c.attachedRot:l.rotate*u,offset:[l.dx||0,l.dy||0]});var d=!1;if(l.x==null?(o.x=c.x,o.setStyle(`x`,c.style.x)):(o.x=Ac(l.x,t),o.setStyle(`x`,0),d=!0),l.y==null?(o.y=c.y,o.setStyle(`y`,c.style.y)):(o.y=Ac(l.y,n),o.setStyle(`y`,0),d=!0),l.labelLinePoints){var f=s.getTextGuideLine();f&&(f.setShape({points:l.labelLinePoints}),d=!1)}var p=vL(o);p.needsUpdateLabelLine=d,o.rotation=l.rotate==null?c.rotation:l.rotate*u,o.scaleX=c.scaleX,o.scaleY=c.scaleY;for(var m=0;m<gL.length;m++){var h=gL[m];o.setStyle(h,l[h]==null?c.style[h]:l[h])}if(l.draggable){if(o.draggable=!0,o.cursor=`move`,s){var g=a.seriesModel;a.dataIndex!=null&&(g=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),o.on(`drag`,r(s,g.getModel(`labelLine`)))}}else o.off(`drag`),o.cursor=c.cursor}},e.prototype.layout=function(e){var t=e.getWidth(),n=e.getHeight(),r=[];k(this._labelList,function(e){e.defaultAttr.ignore||r.push(Lx({},e))});var i=M(r,function(e){return e.layoutOption.moveOverlap===`shiftX`}),a=M(r,function(e){return e.layoutOption.moveOverlap===`shiftY`});zx(i,0,0,t),zx(a,1,0,n);var o=M(r,function(e){return e.layoutOption.hideOverlap});Bx(o),Vx(o)},e.prototype.processLabelsOverall=function(){var e=this;k(this._chartViewList,function(t){var n=t.__model,r=t.ignoreLabelLineUpdate,i=n.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var a=!r,o=t.getTextContent();!a&&o&&(a=vL(o).needsUpdateLabelLine),a&&e._updateLabelLine(t,n),i&&e._animateLabels(t,n)})})},e.prototype._updateLabelLine=function(e,t){var n=e.getTextContent(),r=Z(e),i=r.dataIndex;if(n&&i!=null){var a=t.getData(r.dataType),o=a.getItemModel(i),s={},c=a.getItemVisual(i,`style`);c&&(s.stroke=c[a.getVisual(`drawType`)]);var l=o.getModel(`labelLine`);gx(e,_x(o),s),fx(e,l)}},e.prototype._animateLabels=function(e,t){var n=e.getTextContent(),r=e.getTextGuideLine();if(n&&(e.forceLabelAnimation||!n.ignore&&!n.invisible&&!e.disableLabelAnimation&&!Lf(e))){var i=vL(n),a=i.oldLayout,o=Z(e),s=o.dataIndex,c={x:n.x,y:n.y,rotation:n.rotation},l=t.getData(o.dataType);if(a){n.attr(a);var u=e.prevStates;u&&(T(u,`select`)>=0&&n.attr(i.oldLayoutSelect),T(u,`emphasis`)>=0&&n.attr(i.oldLayoutEmphasis)),Ff(n,c,t,s)}else if(n.attr(c),!Jp(n).valueAnimation){var d=H(n.style.opacity,1);n.style.opacity=0,If(n,{style:{opacity:d}},t,s)}if(i.oldLayout=c,n.states.select){var f=i.oldLayoutSelect={};hL(f,c,bL),hL(f,n.states.select,bL)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};hL(p,c,bL),hL(p,n.states.emphasis,bL)}Up(n,s,l,t,t)}if(r&&!r.ignore&&!r.invisible){var i=yL(r),a=i.oldLayout,m={points:r.shape.points};a?(r.attr({shape:a}),Ff(r,{shape:m},t)):(r.setShape(m),r.style.strokePercent=0,If(r,{style:{strokePercent:1}},t)),i.oldLayout=m}},e}(),SL=xL}));function wL(e){e.registerUpdateLifecycle(`series:beforeupdate`,function(e,t,n){var r=TL(t).labelManager;r||=TL(t).labelManager=new SL,r.clearLabels()}),e.registerUpdateLifecycle(`series:layoutlabels`,function(e,t,n){var r=TL(t).labelManager;n.updatedSeries.forEach(function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))}),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()})}var TL,EL=t((()=>{X(),CL(),TL=cl()})),DL=t((()=>{GO(),fL(),YO(),EL(),KO(wL)}));DL();function OL(e,t,n){var r=h.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}var kL,AL,jL=t((()=>{o(),G(),xa(),ma(),nE(),PE(),en(),Sa(),g(),kL=function(e){i(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.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var a;r||=ga,typeof t==`string`?a=OL(t,n,r):z(t)&&(a=t,t=a.id),i.id=t,i.dom=a;var o=a.style;return o&&(ye(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.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},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=OL(`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}else 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=this.__startIndex;l<this.__endIndex;++l){var u=e[l];if(u){var d=u.shouldBePainted(n,r,!0,!0),f=u.__isRendered&&(u.__dirty&1||!d)?u.getPrevPaintRect():null;f&&c(f);var p=d&&(u.__dirty&1||!u.__isRendered)?u.getPaintRect():null;p&&c(p)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var u=t[l],d=u&&u.shouldBePainted(n,r,!0,!0);if(u&&(!d||!u.__zr)&&u.__isRendered){var f=u.getPrevPaintRect();f&&c(f)}}var m;do{m=!1;for(var l=0;l<i.length;){if(i[l].isZero()){i.splice(l,1);continue}for(var h=l+1;h<i.length;)i[l].intersect(i[h])?(m=!0,i[l].union(i[h]),i.splice(h,1)):h++;l++}}while(m);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;B(t)?(o=(t.global||t.__width===r&&t.__height===a)&&t.__canvasGradient||QT(i,t,{x:0,y:0,width:r,height:a}),t.__canvasGradient=o,t.__width=r,t.__height=a):V(t)&&(t.scaleX=t.scaleX||l,t.scaleY=t.scaleY||l,o=dE(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&&k(n,function(e){f(e.x*l,e.y*l,e.width*l,e.height*l)})},t}(pa),AL=kL}));function ML(e){return e?e.__builtin__?!0:!(typeof e.resize!=`function`||typeof e.refresh!=`function`):!1}function NL(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}var PL,FL,IL,LL,RL,zL,BL=t((()=>{xa(),G(),jL(),YS(),We(),PE(),Sa(),nE(),PL=1e5,FL=314159,IL=.01,LL=.001,RL=function(){function e(e,t,n,r){this.type=`canvas`,this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type=`canvas`;var i=!e.nodeName||e.nodeName.toUpperCase()===`CANVAS`;this._opts=n=C({},n||{}),this.dpr=n.devicePixelRatio||ga,this._singleCanvas=i,this.root=e,e.style&&(ye(e),e.innerHTML=``),this.storage=t;var a=this._zlevelList;this._prevDisplayList=[];var o=this._layers;if(i){var s=e,c=s.width,l=s.height;n.width!=null&&(c=n.width),n.height!=null&&(l=n.height),this.dpr=n.devicePixelRatio||1,s.width=c*this.dpr,s.height=l*this.dpr,this._width=c,this._height=l;var u=new AL(s,this,this.dpr);u.__builtin__=!0,u.initContext(),o[FL]=u,u.zlevel=FL,a.push(FL),this._domRoot=e}else{this._width=tE(e,0,n),this._height=tE(e,1,n);var d=this._domRoot=NL(this._width,this._height);e.appendChild(d)}}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=this.storage.getDisplayList(!0),n=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(t,n,e,this._redrawId);for(var i=0;i<r.length;i++){var a=r[i],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=i===0?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=t.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(e){var t=e.length,n=this._hoverlayer;if(n&&n.clear(),t){for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,a=0;a<t;a++){var o=e[a];o.__inHover&&(n||=this._hoverlayer=this.getLayer(PL),i||(i=n.ctx,i.save()),TE(i,o,r,a===t-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(PL)},e.prototype.paintOne=function(e,t){wE(e,t)},e.prototype._paintList=function(e,t,n,r){if(this._redrawId===r){n||=!1,this._updateLayerStatus(e);var i=this._doPaintList(e,t,n),a=i.finished,o=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(e),a)this.eachLayer(function(e){e.afterBrush&&e.afterBrush()});else{var s=this;JS(function(){s._paintList(e,t,n,r)})}}},e.prototype._compositeManually=function(){var e=this.getLayer(FL).ctx,t=this._domRoot.width,n=this._domRoot.height;e.clearRect(0,0,t,n),this.eachBuiltinLayer(function(r){r.virtual&&e.drawImage(r.dom,0,0,t,n)})},e.prototype._doPaintList=function(e,t,n){for(var r=this,i=[],a=this._opts.useDirtyRect,o=0;o<this._zlevelList.length;o++){var s=this._zlevelList[o],c=this._layers[s];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&i.push(c)}for(var l=!0,u=!1,d=function(o){var s=i[o],c=s.ctx,d=a&&s.createRepaintRects(e,t,f._width,f._height),p=n?s.__startIndex:s.__drawIndex,m=!n&&s.incremental&&Date.now,h=m&&Date.now(),g=s.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,d);else if(p===s.__startIndex){var _=e[p];(!_.incremental||!_.notClear||n)&&s.clear(!1,g,d)}p===-1&&(console.error(`For some unknown reason. drawIndex is -1`),p=s.__startIndex);var v,y=function(t){var n={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(v=p;v<s.__endIndex;v++){var i=e[v];if(i.__inHover&&(u=!0),r._doPaintEl(i,s,a,t,n,v===s.__endIndex-1),m&&Date.now()-h>15)break}n.prevElClipPaths&&c.restore()};if(d)if(d.length===0)v=s.__endIndex;else for(var b=f.dpr,x=0;x<d.length;++x){var S=d[x];c.save(),c.beginPath(),c.rect(S.x*b,S.y*b,S.width*b,S.height*b),c.clip(),y(S),c.restore()}else c.save(),y(),c.restore();s.__drawIndex=v,s.__drawIndex<s.__endIndex&&(l=!1)},f=this,p=0;p<i.length;p++)d(p);return K.wxa&&k(this._layers,function(e){e&&e.ctx&&e.ctx.draw&&e.ctx.draw()}),{finished:l,needsRefreshHover:u}},e.prototype._doPaintEl=function(e,t,n,r,i,a){var o=t.ctx;if(n){var s=e.getPaintRect();(!r||s&&s.intersect(r))&&(TE(o,e,i,a),e.setPrevPaintRect(s))}else TE(o,e,i,a)},e.prototype.getLayer=function(e,t){this._singleCanvas&&!this._needsManuallyCompositing&&(e=FL);var n=this._layers[e];return n||(n=new AL(`zr_`+e,this,this.dpr),n.zlevel=e,n.__builtin__=!0,this._layerConfig[e]?x(n,this._layerConfig[e],!0):this._layerConfig[e-IL]&&x(n,this._layerConfig[e-IL],!0),t&&(n.virtual=t),this.insertLayer(e,n),n.initContext()),n},e.prototype.insertLayer=function(e,t){var n=this._layers,r=this._zlevelList,i=r.length,a=this._domRoot,o=null,s=-1;if(!n[e]&&ML(t)){if(i>0&&e>r[0]){for(s=0;s<i-1&&!(r[s]<e&&r[s+1]>e);s++);o=n[r[s]]}if(r.splice(s+1,0,e),n[e]=t,!t.virtual)if(o){var c=o.dom;c.nextSibling?a.insertBefore(t.dom,c.nextSibling):a.appendChild(t.dom)}else a.firstChild?a.insertBefore(t.dom,a.firstChild):a.appendChild(t.dom);t.painter||=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r];e.call(t,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__&&e.call(t,a,i)}},e.prototype.eachOtherLayer=function(e,t){for(var n=this._zlevelList,r=0;r<n.length;r++){var i=n[r],a=this._layers[i];a.__builtin__||e.call(t,a,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(e,t){e.__dirty=e.__used=!1});function t(e){i&&(i.__endIndex!==e&&(i.__dirty=!0),i.__endIndex=e)}if(this._singleCanvas)for(var n=1;n<e.length;n++){var r=e[n];if(r.zlevel!==e[n-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var i=null,a=0,o,s;for(s=0;s<e.length;s++){var r=e[s],c=r.zlevel,l=void 0;o!==c&&(o=c,a=0),r.incremental?(l=this.getLayer(c+LL,this._needsManuallyCompositing),l.incremental=!0,a=1):l=this.getLayer(c+(a>0?IL:0),this._needsManuallyCompositing),l.__builtin__||y(`ZLevel `+c+` has been used by unkown layer `+l.id),l!==i&&(l.__used=!0,l.__startIndex!==s&&(l.__dirty=!0),l.__startIndex=s,l.incremental?l.__drawIndex=-1:l.__drawIndex=s,t(s),i=l),r.__dirty&1&&!r.__inHover&&(l.__dirty=!0,l.incremental&&l.__drawIndex<0&&(l.__drawIndex=s))}t(s),this.eachBuiltinLayer(function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,k(this._layers,function(e){e.setUnpainted()})},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?x(n[e],t,!0):n[e]=t;for(var r=0;r<this._zlevelList.length;r++){var i=this._zlevelList[r];if(i===e||i===e+IL){var a=this._layers[i];x(a,n[e],!0)}}}},e.prototype.delLayer=function(e){var t=this._layers,n=this._zlevelList,r=t[e];r&&(r.dom.parentNode.removeChild(r.dom),delete t[e],n.splice(T(n,e),1))},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;if(e!=null&&(r.width=e),t!=null&&(r.height=t),e=tE(i,0,r),t=tE(i,1,r),n.style.display=``,this._width!==e||t!==this._height){for(var a in n.style.width=e+`px`,n.style.height=t+`px`,this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,t);this.refresh(!0)}this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this.getLayer(FL).resize(e,t)}return this},e.prototype.clearLayer=function(e){var t=this._layers[e];t&&t.clear()},e.prototype.dispose=function(){this.root.innerHTML=``,this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(e){if(e||={},this._singleCanvas&&!this._compositeManually)return this._layers[FL].dom;var t=new AL(`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;this.eachLayer(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},o=this.storage.getDisplayList(!0),s=0,c=o.length;s<c;s++){var l=o[s];TE(n,l,a,s===c-1)}return t.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),zL=RL}));function VL(e){e.registerPainter(`canvas`,zL)}var HL=t((()=>{BL()})),UL=n({Axis:()=>BA,ChartView:()=>Lb,ComponentModel:()=>Kv,ComponentView:()=>qw,List:()=>dg,Model:()=>fm,PRIORITY:()=>JD,SeriesModel:()=>pb,color:()=>si,connect:()=>sD,dataTool:()=>WO,default:()=>WL,dependencies:()=>jD,disConnect:()=>VO,disconnect:()=>cD,dispose:()=>lD,env:()=>K,extendChartView:()=>dL,extendComponentModel:()=>cL,extendComponentView:()=>lL,extendSeriesModel:()=>uL,format:()=>iL,getCoordinateSystemDimensions:()=>bD,getInstanceByDom:()=>uD,getInstanceById:()=>dD,getMap:()=>OD,graphic:()=>nL,helper:()=>GI,init:()=>oD,innerDrawElementOnCanvas:()=>wE,matrix:()=>Ct,number:()=>QI,parseGeoJSON:()=>mM,parseGeoJson:()=>mM,registerAction:()=>vD,registerCoordinateSystem:()=>yD,registerCustomSeries:()=>xD,registerLayout:()=>SD,registerLoading:()=>TD,registerLocale:()=>g_,registerMap:()=>DD,registerPostInit:()=>hD,registerPostUpdate:()=>gD,registerPreprocessor:()=>pD,registerProcessor:()=>mD,registerTheme:()=>fD,registerTransform:()=>UO,registerUpdateLifecycle:()=>_D,registerVisual:()=>CD,setCanvasCreator:()=>ED,setPlatformAPI:()=>c,throttle:()=>Xb,time:()=>eL,use:()=>KO,util:()=>oL,vector:()=>Vn,version:()=>AD,zrUtil:()=>_,zrender:()=>xC}),WL,GL=t((()=>{DL(),YO(),GO(),HL(),WI(),EL(),KO([VL,VI]),WL={init:function(){return oD.apply(null,arguments)}},KO(wL)})),KL=r((t=>{(function(n,r){typeof define==`function`&&define.amd?define([`exports`,`echarts`],r):typeof t==`object`&&typeof t.nodeName!=`string`?r(t,(GL(),e(UL))):r({},n.echarts)})(t,function(e,t){var n=function(e){typeof console<`u`&&console&&console.error&&console.error(e)};if(!t){n(`ECharts is not Loaded`);return}var r=`#B9B8CE`,i=`#100C2A`,a=function(){return{axisLine:{lineStyle:{color:r}},splitLine:{lineStyle:{color:`#484753`}},splitArea:{areaStyle:{color:[`rgba(255,255,255,0.02)`,`rgba(255,255,255,0.05)`]}},minorSplitLine:{lineStyle:{color:`#20203B`}}}},o=[`#4992ff`,`#7cffb2`,`#fddd60`,`#ff6e76`,`#58d9f9`,`#05c091`,`#ff8a45`,`#8d48e3`,`#dd79ff`],s={darkMode:!0,color:o,backgroundColor:i,axisPointer:{lineStyle:{color:`#817f91`},crossStyle:{color:`#817f91`},label:{color:`#fff`}},legend:{textStyle:{color:r}},textStyle:{color:r},title:{textStyle:{color:`#EEF1FA`},subtextStyle:{color:`#B9B8CE`}},toolbox:{iconStyle:{borderColor:r}},dataZoom:{borderColor:`#71708A`,textStyle:{color:r},brushStyle:{color:`rgba(135,163,206,0.3)`},handleStyle:{color:`#353450`,borderColor:`#C5CBE3`},moveHandleStyle:{color:`#B0B6C3`,opacity:.3},fillerColor:`rgba(135,163,206,0.2)`,emphasis:{handleStyle:{borderColor:`#91B7F2`,color:`#4D587D`},moveHandleStyle:{color:`#636D9A`,opacity:.7}},dataBackground:{lineStyle:{color:`#71708A`,width:1},areaStyle:{color:`#71708A`}},selectedDataBackground:{lineStyle:{color:`#87A3CE`},areaStyle:{color:`#87A3CE`}}},visualMap:{textStyle:{color:r}},timeline:{lineStyle:{color:r},label:{color:r},controlStyle:{color:r,borderColor:r}},calendar:{itemStyle:{color:i},dayLabel:{color:r},monthLabel:{color:r},yearLabel:{color:r}},timeAxis:a(),logAxis:a(),valueAxis:a(),categoryAxis:a(),line:{symbol:`circle`},graph:{color:o},gauge:{title:{color:r}},candlestick:{itemStyle:{color:`#FD1050`,color0:`#0CF49B`,borderColor:`#FD1050`,borderColor0:`#0CF49B`}}};s.categoryAxis.splitLine.show=!1,t.registerTheme(`dark`,s)})}));export{zF as a,oD as c,qF as i,VL as n,cP as o,BI as r,KO as s,KL as t};
|