koishi-plugin-chatluna-usage 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/echarts-CZNhpw9M.js +68 -0
- package/dist/index-Bvy3XN9m.js +8 -0
- package/dist/index.js +1 -0
- package/dist/model-pie-Ba0jUDul.js +1 -0
- package/dist/model-success-Bj37bQPf.js +1 -0
- package/dist/style.css +1 -0
- package/lib/index.cjs +424 -0
- package/lib/index.d.ts +311 -0
- package/lib/index.mjs +396 -0
- package/package.json +79 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import{defineComponent as Um,h as gh,shallowRef as ha,inject as va,toRefs as Ym,computed as li,getCurrentInstance as Xm,watch as ca,watchEffect as yh,onMounted as $m,onBeforeUnmount as Zm,isRef as qm,unref as Km,nextTick as Qm}from"vue";/*! *****************************************************************************
|
|
2
|
+
Copyright (c) Microsoft Corporation.
|
|
3
|
+
|
|
4
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
+
purpose with or without fee is hereby granted.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
***************************************************************************** */var Kl=function(r,t){return Kl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Kl(r,t)};function Y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var jm=function(){function r(){this.firefox=false,this.ie=false,this.edge=false,this.newEdge=false,this.weChat=false}return r}(),Jm=function(){function r(){this.browser=new jm,this.node=false,this.wxa=false,this.worker=false,this.svgSupported=false,this.touchEventsSupported=false,this.pointerEventsSupported=false,this.domSupported=false,this.transformSupported=false,this.transform3dSupported=false,this.hasGlobalWindow=typeof window<"u"}return r}(),$=new Jm;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($.wxa=true,$.touchEventsSupported=true):typeof document>"u"&&typeof self<"u"?$.worker=true:!$.hasGlobalWindow||"Deno"in window?($.node=true,$.svgSupported=true):t0(navigator.userAgent,$);function t0(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=true,e.version=i[1]),n&&(e.ie=true,e.version=n[1]),a&&(e.edge=true,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=true),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var of=12,e0="sans-serif",ei=of+"px "+e0,r0=20,i0=100,n0="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function a0(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-r0)/i0;t[i]=n}return t}var o0=a0(n0),Vi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=Vi.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||ei),r.measureText(e);e=e||"",i=i||ei;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||of,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=o0[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}},np=_r(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=true,r},{}),ap=_r(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=true,r},{}),ia=Object.prototype.toString,Zo=Array.prototype,s0=Zo.forEach,l0=Zo.filter,sf=Zo.slice,u0=Zo.map,mh=function(){}.constructor,da=mh?mh.prototype:null,lf="__proto__",f0=2311;function op(){return f0++}function uf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var t=r,e=ia.call(r);if(e==="[object Array]"){if(!An(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=tt(r[i])}}else if(ap[e]){if(!An(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!np[e]&&!An(r)&&!Vn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==lf&&(t[o]=tt(r[o]))}return t}function at(r,t,e){if(!U(t)||!U(r))return e?tt(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==lf){var n=r[i],a=t[i];U(a)&&U(n)&&!z(a)&&!z(n)&&!Vn(a)&&!Vn(n)&&!_h(a)&&!_h(n)&&!An(a)&&!An(n)?at(n,a,e):(e||!(i in r))&&(r[i]=tt(t[i]))}return r}function B(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==lf&&(r[e]=t[e]);return r}function st(r,t,e){for(var i=pt(t),n=0,a=i.length;n<a;n++){var o=i[n];r[o]==null&&(r[o]=t[o])}return r}function ft(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function h0(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Ne(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else st(r,t)}function Zt(r){return!r||typeof r=="string"?false:typeof r.length=="number"}function A(r,t,e){if(r&&t)if(r.forEach&&r.forEach===s0)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function W(r,t,e){if(!r)return[];if(!t)return ff(r);if(r.map&&r.map===u0)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function _r(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function At(r,t,e){if(!r)return[];if(!t)return ff(r);if(r.filter&&r.filter===l0)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function pt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function v0(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(sf.call(arguments)))}}var ct=da&&q(da.bind)?da.call.bind(da.bind):v0;function St(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(sf.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):ia.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function V(r){return typeof r=="string"}function Ql(r){return ia.call(r)==="[object String]"}function vt(r){return typeof r=="number"}function U(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function _h(r){return!!np[ia.call(r)]}function qt(r){return!!ap[ia.call(r)]}function Vn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function qo(r){return r.colorStops!=null}function c0(r){return r.image!=null}function mo(r){return r!==r}function Wn(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function Q(r,t){return r??t}function Mn(r,t,e){return r??t??e}function ff(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return sf.apply(r,t)}function sp(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ke(r,t){if(!r)throw new Error(t)}function ke(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lp="__ec_primitive__";function jl(r){r[lp]=true}function An(r){return r[lp]}var d0=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return pt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),up=typeof Map=="function";function p0(){return up?new Map:new d0}var g0=function(){function r(t){var e=z(t);this.data=p0();var i=this;t instanceof r?t.each(n):t&&A(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return up?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function j(r){return new g0(r)}function y0(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Ko(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&B(e,t),e}function fp(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function ri(r,t){return r.hasOwnProperty(t)}function $t(){}var m0=180/Math.PI;/*! *****************************************************************************
|
|
15
|
+
Copyright (c) Microsoft Corporation.
|
|
16
|
+
|
|
17
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
18
|
+
purpose with or without fee is hereby granted.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
21
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
22
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
23
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
24
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
25
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
26
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
27
|
+
***************************************************************************** */var Jl=function(r,t){return Jl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Jl(r,t)};function ht(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Jl(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Wi(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function _0(r){return[r[0],r[1]]}function Sh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function S0(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function w0(r){return Math.sqrt(b0(r))}function b0(r){return r[0]*r[0]+r[1]*r[1]}function Ms(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function x0(r,t){var e=w0(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function tu(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var eu=tu;function T0(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Ii=T0;function As(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function he(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Di(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Mi(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ui=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),C0=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=true,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ui(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new ui(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ui(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ui(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=false),this.handler.dispatchToElement(new ui(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ui(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),Fe=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),D0=Math.log(2);function ru(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/D0);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&n||(h+=(v%2?-1:1)*r[e][c]*ru(r,t-1,f,u,n|d,a),v++)}return a[o]=h,h}function wh(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=ru(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*ru(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var bh="___zrEVENTSAVED",Ls=[];function M0(r,t,e,i,n){return iu(Ls,t,i,n,true)&&iu(r,e,Ls[0],Ls[1])}function iu(r,t,e,i,n){if(t.getBoundingClientRect&&$.domSupported&&!hp(t)){var a=t[bh]||(t[bh]={}),o=A0(t,a),s=L0(o,a,n);if(s)return s(r,e,i),true}return false}function A0(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function L0(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=true,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?wh(s,o):wh(o,s))}function hp(r){return r.nodeName.toUpperCase()==="CANVAS"}var I0=/([&<>"'])/g,P0={"&":"&","<":"<",">":">",'"':""","'":"'"};function Wt(r){return r==null?"":(r+"").replace(I0,function(t,e){return P0[e]})}var R0=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Is=[],E0=$.browser.firefox&&+$.browser.version.split(".")[0]<39;function nu(r,t,e,i){return e=e||{},i?xh(r,t,e):E0&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):xh(r,t,e),e}function xh(r,t,e){if($.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(hp(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(iu(Is,r,i,n)){e.zrX=Is[0],e.zrY=Is[1];return}}e.zrX=e.zrY=0}function hf(r){return r||window.event}function ne(r,t,e){if(t=hf(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&nu(r,o,t,e)}else{nu(r,t,t,e);var a=k0(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&R0.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function k0(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function O0(r,t,e,i){r.addEventListener(t,e,i)}function B0(r,t,e,i){r.removeEventListener(t,e,i)}var vp=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=true},N0=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=nu(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Ps)if(Ps.hasOwnProperty(e)){var i=Ps[e](this._track,t);if(i)return i}},r}();function Th(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function F0(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Ps={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=Th(i)/Th(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=F0(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Pi(){return[1,0,0,1,0,0]}function vf(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function z0(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Ri(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function au(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function cf(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function H0(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function df(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}var Z=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),pa=Math.min,ga=Math.max,Dr=new Z,Mr=new Z,Ar=new Z,Lr=new Z,Ki=new Z,Qi=new Z,ot=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=pa(t.x,this.x),i=pa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ga(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ga(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Pi();return au(a,a,[-e.x,-e.y]),H0(a,a,[i,n]),au(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return false;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<l||u<n||s<f||h<o);if(e){var v=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(g,p),S=Math.min(y,m);a<l||u<n?_>d&&(d=_,g<p?Z.set(Qi,-g,0):Z.set(Qi,p,0)):_<v&&(v=_,g<p?Z.set(Ki,g,0):Z.set(Ki,-p,0)),s<f||h<o?S>d&&(d=S,y<m?Z.set(Qi,0,-y):Z.set(Qi,0,m)):_<v&&(v=_,y<m?Z.set(Ki,0,y):Z.set(Ki,0,-m))}return e&&Z.copy(e,c?Ki:Qi),c},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.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}Dr.x=Ar.x=e.x,Dr.y=Lr.y=e.y,Mr.x=Lr.x=e.x+e.width,Mr.y=Ar.y=e.y+e.height,Dr.transform(i),Lr.transform(i),Mr.transform(i),Ar.transform(i),t.x=pa(Dr.x,Mr.x,Ar.x,Lr.x),t.y=pa(Dr.y,Mr.y,Ar.y,Lr.y);var l=ga(Dr.x,Mr.x,Ar.x,Lr.x),u=ga(Dr.y,Mr.y,Ar.y,Lr.y);t.width=l-t.x,t.height=u-t.y},r}(),cp="silent";function G0(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:false,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:V0}}function V0(){vp(this.event)}var W0=function(r){ht(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Fe),ji=function(){function r(t,e){this.x=t,this.y=e}return r}(),U0=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rs=new ot(0,0,0,0),dp=function(r){ht(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new ji(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new W0,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new C0(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(U0,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=pp(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new ji(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new ji(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=G0(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new ji(e,i);if(Ch(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ot(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Rs.copy(c.getBoundingRect()),c.transform&&Rs.applyTransform(c.transform),Rs.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=v)for(var y=0;y<g;y+=d){var m=e+p*Math.cos(y),_=i+p*Math.sin(y);if(Ch(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new N0);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new ji;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Fe);A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){dp.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=pp(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||eu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Y0(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=false;i;){if(i.ignoreClip&&(a=true),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return false}i.silent&&(n=true);var s=i.__hostTarget;i=s||i.parent}return n?cp:true}return false}function Ch(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Y0(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==cp)){t.target=o;break}}}function pp(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var gp=32,Ji=7;function X0(r){for(var t=0;r>=gp;)t|=r&1,r>>=1;return r+t}function Dh(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;$0(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function $0(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Mh(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Es(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function ks(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function Z0(r,t){var e=Ji,i,n,a=0,o=[];i=[],n=[];function s(v,d){i[a]=v,n[a]=d,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var d=i[v],g=n[v],p=i[v+1],y=n[v+1];n[v]=g+y,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=ks(r[p],r,d,g,0,t);d+=m,g-=m,g!==0&&(y=Es(r[d+g-1],r,p,y,y-1,t),y!==0&&(g<=y?h(d,g,p,y):c(d,g,p,y)))}function h(v,d,g,p){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=g,S=v;if(r[S++]=r[_++],--p===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m];return}for(var b=e,w,x,T;;){w=0,x=0,T=false;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],x++,w=0,--p===0){T=true;break}}else if(r[S++]=o[m++],w++,x=0,--d===1){T=true;break}while((w|x)<b);if(T)break;do{if(w=ks(r[_],o,m,d,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=o[m+y];if(S+=w,m+=w,d-=w,d<=1){T=true;break}}if(r[S++]=r[_++],--p===0){T=true;break}if(x=Es(o[m],r,_,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=r[_+y];if(S+=x,_+=x,p-=x,p===0){T=true;break}}if(r[S++]=o[m++],--d===1){T=true;break}b--}while(w>=Ji||x>=Ji);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(y=0;y<p;y++)r[S+y]=r[_+y];r[S+p]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,g,p){var y=0;for(y=0;y<p;y++)o[y]=r[g+y];var m=v+d-1,_=p-1,S=g+p-1,b=0,w=0;if(r[S--]=r[m--],--d===0){for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y];return}if(p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_];return}for(var x=e;;){var T=0,D=0,M=false;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,D=0,--d===0){M=true;break}}else if(r[S--]=o[_--],D++,T=0,--p===1){M=true;break}while((T|D)<x);if(M)break;do{if(T=d-ks(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,w=S+1,b=m+1,y=T-1;y>=0;y--)r[w+y]=r[b+y];if(d===0){M=true;break}}if(r[S--]=o[_--],--p===1){M=true;break}if(D=p-Es(r[m],o,0,p,p-1,t),D!==0){for(S-=D,_-=D,p-=D,w=S+1,b=_+1,y=0;y<D;y++)r[w+y]=o[b+y];if(p<=1){M=true;break}}if(r[S--]=r[m--],--d===0){M=true;break}x--}while(T>=Ji||D>=Ji);if(M)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,m-=d,w=S+1,b=m+1,y=d-1;y>=0;y--)r[w+y]=r[b+y];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),y=0;y<p;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function io(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<gp){a=Dh(r,e,i,t),Mh(r,e,i,e+a,t);return}var o=Z0(r,t),s=X0(n);do{if(a=Dh(r,e,i,t),a<s){var l=n;l>s&&(l=s),Mh(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var jt=1,_n=2,Ti=4,Ah=false;function Os(){Ah||(Ah=true,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Lh(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var q0=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Lh}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||false;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,io(i,Lh)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=jt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Os(),f.z=0),isNaN(f.z2)&&(Os(),f.z2=0),isNaN(f.zlevel)&&(Os(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=ft(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),_o;_o=$.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Ln={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-Ln.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?Ln.bounceIn(r*2)*.5:Ln.bounceOut(r*2-1)*.5+.5}},ya=Math.pow,pr=Math.sqrt,So=1e-8,yp=1e-4,Ih=pr(3),ma=1/3,Re=Wi(),se=Wi(),Ei=Wi();function hr(r){return r>-So&&r<So}function mp(r){return r>So||r<-So}function Lt(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function Ph(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function wo(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(hr(f)&&hr(h))if(hr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[v++]=d)}else{var g=h*h-4*f*c;if(hr(g)){var p=h/f,d=-s/o+p,y=-p/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(g>0){var m=pr(g),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ya(-_,ma):_=ya(_,ma),S<0?S=-ya(-S,ma):S=ya(S,ma);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var b=(2*f*s-3*o*h)/(2*pr(f*f*f)),w=Math.acos(b)/3,x=pr(f),T=Math.cos(w),d=(-s-2*x*T)/(3*o),y=(-s+x*(T+Ih*Math.sin(w)))/(3*o),D=(-s+x*(T-Ih*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),D>=0&&D<=1&&(a[v++]=D)}}return v}function _p(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(hr(o)){if(mp(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(hr(f))n[0]=-a/(2*o);else if(f>0){var h=pr(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function bo(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function K0(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,d,g,p,y;Re[0]=l,Re[1]=u;for(var m=0;m<1;m+=.05)se[0]=Lt(r,e,n,o,m),se[1]=Lt(t,i,a,s,m),p=Ii(Re,se),p<v&&(h=m,v=p);v=1/0;for(var _=0;_<32&&!(c<yp);_++)d=h-c,g=h+c,se[0]=Lt(r,e,n,o,d),se[1]=Lt(t,i,a,s,d),p=Ii(se,Re),d>=0&&p<v?(h=d,v=p):(Ei[0]=Lt(r,e,n,o,g),Ei[1]=Lt(t,i,a,s,g),y=Ii(Ei,Re),g<=1&&y<v?(h=g,v=y):c*=.5);return pr(v)}function Q0(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var d=v*c,g=Lt(r,e,n,o,d),p=Lt(t,i,a,s,d),y=g-u,m=p-f;h+=Math.sqrt(y*y+m*m),u=g,f=p}return h}function Ut(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Rh(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function j0(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(hr(a)){if(mp(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(hr(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=pr(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function Sp(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function xo(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function J0(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;Re[0]=o,Re[1]=s;for(var c=0;c<1;c+=.05){se[0]=Ut(r,e,n,c),se[1]=Ut(t,i,a,c);var v=Ii(Re,se);v<h&&(u=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<yp);d++){var g=u-f,p=u+f;se[0]=Ut(r,e,n,g),se[1]=Ut(t,i,a,g);var v=Ii(se,Re);if(g>=0&&v<h)u=g,h=v;else{Ei[0]=Ut(r,e,n,p),Ei[1]=Ut(t,i,a,p);var y=Ii(Ei,Re);p<=1&&y<h?(u=p,h=y):f*=.5}}return pr(h)}function t_(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Ut(r,e,n,c),d=Ut(t,i,a,c),g=v-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=v,l=d}return u}var e_=/cubic-bezier\(([0-9,\.e ]+)\)/;function wp(r){var t=r&&e_.exec(r);if(t){var e=t[1].split(","),i=+ke(e[0]),n=+ke(e[1]),a=+ke(e[2]),o=+ke(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:wo(0,i,a,1,l,s)&&Lt(0,n,o,1,s[0])}}}var r_=function(){function r(t){this._inited=false,this._startTime=0,this._pausedTime=0,this._paused=false,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||false,this.onframe=t.onframe||$t,this.ondestroy=t.ondestroy||$t,this.onrestart=t.onrestart||$t,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=true),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return true;return false},r.prototype.pause=function(){this._paused=true},r.prototype.resume=function(){this._paused=false},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:Ln[t]||wp(t)},r}(),bp=function(){function r(t){this.value=t}return r}(),i_=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new bp(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),na=function(){function r(t){this._list=new i_,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new bp(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),Eh={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 gr(r){return r=Math.round(r),r<0?0:r>255?255:r}function ou(r){return r<0?0:r>1?1:r}function Bs(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?gr(parseFloat(t)/100*255):gr(parseInt(t,10))}function In(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ou(parseFloat(t)/100):ou(parseFloat(t))}function Ns(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function _a(r,t,e){return r+(t-r)*e}function ie(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function su(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var xp=new na(20),Sa=null;function fi(r,t){Sa&&su(Sa,t),Sa=xp.put(r,Sa||t.slice())}function Ze(r,t){if(r){t=t||[];var e=xp.get(r);if(e)return su(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in Eh)return su(t,Eh[i]),fi(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){ie(t,0,0,0,1);return}return ie(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),fi(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){ie(t,0,0,0,1);return}return ie(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),fi(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ie(t,+u[0],+u[1],+u[2],1):ie(t,0,0,0,1);f=In(u.pop());case"rgb":if(u.length>=3)return ie(t,Bs(u[0]),Bs(u[1]),Bs(u[2]),u.length===3?f:In(u[3])),fi(r,t),t;ie(t,0,0,0,1);return;case"hsla":if(u.length!==4){ie(t,0,0,0,1);return}return u[3]=In(u[3]),kh(u,t),fi(r,t),t;case"hsl":if(u.length!==3){ie(t,0,0,0,1);return}return kh(u,t),fi(r,t),t;default:return}}ie(t,0,0,0,1)}}function kh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=In(r[1]),n=In(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],ie(t,gr(Ns(o,a,e+1/3)*255),gr(Ns(o,a,e)*255),gr(Ns(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Oh(r,t){var e=Ze(r);if(e){for(var i=0;i<3;i++)e[i]=e[i]*(1-t)|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Qo(e,e.length===4?"rgba":"rgb")}}function n_(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Ze(t[n]),s=Ze(t[a]),l=i-n,u=Qo([gr(_a(o[0],s[0],l)),gr(_a(o[1],s[1],l)),gr(_a(o[2],s[2],l)),ou(_a(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}function Qo(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function To(r,t){var e=Ze(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Bh=new na(100);function Nh(r){if(V(r)){var t=Bh.get(r);return t||(t=Oh(r,-.1),Bh.put(r,t)),t}else if(qo(r)){var e=B({},r);return e.colorStops=W(r.colorStops,function(i){return{offset:i.offset,color:Oh(i.color,-.1)}}),e}return r}function a_(r){return r.type==="linear"}function o_(r){return r.type==="radial"}(function(){return $.hasGlobalWindow&&q(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}})();var lu=Array.prototype.slice;function Ue(r,t,e){return(t-r)*e+r}function Fs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Ue(t[a],e[a],i);return r}function s_(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Ue(t[o][s],e[o][s],i)}return r}function wa(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Fh(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function l_(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function u_(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:lu.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function no(r){if(Zt(r)){var t=r.length;if(Zt(r[0])){for(var e=[],i=0;i<t;i++)e.push(lu.call(r[i]));return e}return lu.call(r)}return r}function ao(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function f_(r){return Zt(r&&r[0])?2:1}var ba=0,oo=1,Tp=2,Sn=3,uu=4,fu=5,zh=6;function Hh(r){return r===uu||r===fu}function xa(r){return r===oo||r===Tp}var tn=[0,0,0,0],h_=function(){function r(t){this.keyframes=[],this.discrete=false,this._invalid=false,this._needsSort=false,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=true,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=true;var n=this.keyframes,a=n.length,o=false,s=zh,l=e;if(Zt(e)){var u=f_(e);s=u,(u===1&&!vt(e[0])||u===2&&!vt(e[0][0]))&&(o=true)}else if(vt(e)&&!mo(e))s=ba;else if(V(e))if(!isNaN(+e))s=ba;else{var f=Ze(e);f&&(l=f,s=Sn)}else if(qo(e)){var h=B({},l);h.colorStops=W(e.colorStops,function(v){return{offset:v.offset,color:Ze(v.color)}}),a_(e)?s=uu:o_(e)&&(s=fu),l=h}a===0?this.valType=s:(s!==this.valType||s===zh)&&(o=true),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=q(i)?i:Ln[i]||wp(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,p){return g.time-p.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=xa(n),u=Hh(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?u_(c,v,n):u&&l_(c.colorStops,v.colorStops))}if(!s&&n!==fu&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var d=i[0].value,f=0;f<a;f++)n===ba?i[f].additiveValue=i[f].value-d:n===Sn?i[f].additiveValue=wa([],i[f].value,d,-1):xa(n)&&(i[f].additiveValue=n===oo?wa([],i[f].value,d,-1):Fh([],i[f].value,d,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Sn,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var g=c(h+1,s-1);for(f=g;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var p=d.percent-v.percent,y=p===0?1:c((e-v.percent)/p,1);d.easingFunc&&(y=d.easingFunc(y));var m=i?this._additiveValue:u?tn:t[l];if((xa(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:d.rawValue;else if(xa(a))a===oo?Fs(m,v[n],d[n],y):s_(m,v[n],d[n],y);else if(Hh(a)){var _=v[n],S=d[n],b=a===uu;t[l]={type:b?"linear":"radial",x:Ue(_.x,S.x,y),y:Ue(_.y,S.y,y),colorStops:W(_.colorStops,function(x,T){var D=S.colorStops[T];return{offset:Ue(x.offset,D.offset,y),color:ao(Fs([],x.color,D.color,y))}}),global:S.global},b?(t[l].x2=Ue(_.x2,S.x2,y),t[l].y2=Ue(_.y2,S.y2,y)):t[l].r=Ue(_.r,S.r,y)}else if(u)Fs(m,v[n],d[n],y),i||(t[l]=ao(m));else{var w=Ue(v[n],d[n],y);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ba?t[i]=t[i]+n:e===Sn?(Ze(t[i],tn),wa(tn,tn,n,1),t[i]=ao(tn)):e===oo?wa(t[i],t[i],n,1):e===Tp&&Fh(t[i],t[i],n,1)},r}(),pf=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){uf("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,pt(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new h_(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Sn&&u&&(u=ao(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,no(u),n),this._trackKeys.push(s)}l.addKeyframe(t,no(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=true},r.prototype.resume=function(){this._clip.resume(),this._paused=false},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=true,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new r_({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var g=false,p=0;p<d.length;p++)if(d[p]._clip){g=true;break}g||(e._additiveAnimators=null)}for(var p=0;p<i.length;p++)i[p].step(e._target,v);var y=e._onframeCbs;if(y)for(var p=0;p<y.length;p++)y[p](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return W(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return true;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=true,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=false;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=no(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||pt(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function Ai(){return new Date().getTime()}var v_=function(r){ht(t,r);function t(e){var i=r.call(this)||this;return i._running=false,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=false,e=e||{},i.stage=e.stage||{},i}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 i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=Ai()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=true;function i(){e._running&&(_o(i),!e._paused&&e.update())}_o(i)},t.prototype.start=function(){this._running||(this._time=Ai(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=false},t.prototype.pause=function(){this._paused||(this._pauseStart=Ai(),this._paused=true)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ai()-this._pauseStart,this._paused=false)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new pf(e,i.loop);return this.addAnimator(n),n},t}(Fe),c_=300,zs=$.domSupported,Hs=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=W(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Gh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Vh=false;function hu(r){var t=r.pointerType;return t==="pen"||t==="touch"}function d_(r){r.touching=true,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=false,r.touchTimer=null},700)}function Gs(r){r&&(r.zrByTouch=true)}function p_(r,t){return ne(r.dom,new g_(r,t),true)}function Cp(r,t){for(var e=t,i=false;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var g_=function(){function r(t,e){this.stopPropagation=$t,this.stopImmediatePropagation=$t,this.preventDefault=$t,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),_e={mousedown:function(r){r=ne(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ne(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(true),this.trigger("mousemove",r)},mouseup:function(r){r=ne(this.dom,r),this.__togglePointerCapture(false),this.trigger("mouseup",r)},mouseout:function(r){r=ne(this.dom,r);var t=r.toElement||r.relatedTarget;Cp(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Vh=true,r=ne(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Vh||(r=ne(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ne(this.dom,r),Gs(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),_e.mousemove.call(this,r),_e.mousedown.call(this,r)},touchmove:function(r){r=ne(this.dom,r),Gs(r),this.handler.processGesture(r,"change"),_e.mousemove.call(this,r)},touchend:function(r){r=ne(this.dom,r),Gs(r),this.handler.processGesture(r,"end"),_e.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<c_&&_e.click.call(this,r)},pointerdown:function(r){_e.mousedown.call(this,r)},pointermove:function(r){hu(r)||_e.mousemove.call(this,r)},pointerup:function(r){_e.mouseup.call(this,r)},pointerout:function(r){hu(r)||_e.mouseout.call(this,r)}};A(["click","dblclick","contextmenu"],function(r){_e[r]=function(t){t=ne(this.dom,t),this.trigger(r,t)}});var vu={pointermove:function(r){hu(r)||vu.mousemove.call(this,r)},pointerup:function(r){vu.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(false),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function y_(r,t){var e=t.domHandlers;$.pointerEventsSupported?A(Hs.pointer,function(i){so(t,i,function(n){e[i].call(r,n)})}):($.touchEventsSupported&&A(Hs.touch,function(i){so(t,i,function(n){e[i].call(r,n),d_(t)})}),A(Hs.mouse,function(i){so(t,i,function(n){n=hf(n),t.touching||e[i].call(r,n)})}))}function m_(r,t){$.pointerEventsSupported?A(Gh.pointer,e):$.touchEventsSupported||A(Gh.mouse,e);function e(i){function n(a){a=hf(a),Cp(r,a.target)||(a=p_(r,a),t.domHandlers[i].call(r,a))}so(t,i,n,{capture:true})}}function so(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,O0(r.domTarget,t,e,i)}function Vs(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&B0(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Wh=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=false,this.domTarget=t,this.domHandlers=e}return r}(),__=function(r){ht(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=false,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Wh(e,_e),zs&&(n._globalHandlerScope=new Wh(document,vu)),y_(n,n._localHandlerScope),n}return t.prototype.dispose=function(){Vs(this._localHandlerScope),zs&&Vs(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,zs&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?m_(this,i):Vs(i)}},t}(Fe),Dp=1;$.hasGlobalWindow&&(Dp=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Co=Dp,cu=.4,du="#333",pu="#ccc",S_="#eee",Uh=vf,Yh=5e-5;function Ir(r){return r>Yh||r<-Yh}var Pr=[],hi=[],Ws=Pi(),Us=Math.abs,gf=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ir(this.rotation)||Ir(this.x)||Ir(this.y)||Ir(this.scaleX-1)||Ir(this.scaleY-1)||Ir(this.skewX)||Ir(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Uh(i),this.invTransform=null);return}i=i||Pi(),e?this.getLocalTransform(i):Uh(i),t&&(e?Ri(i,t,i):z0(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Pr);var i=Pr[0]<0?-1:1,n=Pr[1]<0?-1:1,a=((Pr[0]-i)*e+i)/Pr[0]||0,o=((Pr[1]-n)*e+n)/Pr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Pi(),df(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Pi(),Ri(hi,t.invTransform,e),e=hi);var i=this.originX,n=this.originY;(i||n)&&(Ws[4]=i,Ws[5]=n,Ri(hi,e,Ws),hi[4]-=i,hi[5]-=n,e=hi),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&he(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&he(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&Us(t[0]-1)>1e-10&&Us(t[3]-1)>1e-10?Math.sqrt(Us(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){w_(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var d=i+s,g=n+l;e[4]=-d*a-c*g*o,e[5]=-g*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&cf(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.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}(),r}(),Un=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function w_(r,t){for(var e=0;e<Un.length;e++){var i=Un[e];r[i]=t[i]}}var Xh={};function Jt(r,t){t=t||ei;var e=Xh[t];e||(e=Xh[t]=new na(500));var i=e.get(r);return i==null&&(i=Vi.measureText(r,t).width,e.put(r,i)),i}function $h(r,t,e,i){var n=Jt(r,t),a=mf(t),o=wn(0,n,e),s=Ci(0,a,i),l=new ot(o,s,n,a);return l}function yf(r,t,e,i){var n=((r||"")+"").split(`
|
|
28
|
+
`),a=n.length;if(a===1)return $h(n[0],t,e,i);for(var o=new ot(0,0,0,0),s=0;s<n.length;s++){var l=$h(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function wn(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Ci(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function mf(r){return Jt("国",r)}function Sr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Do(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=Sr(i[0],e.width),u+=Sr(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var Ys="__zr_normal__",Xs=Un.concat(["ignore"]),b_=_r(Un,function(r,t){return r[t]=true,r},{ignore:false}),vi={},x_=new ot(0,0,0,0),jo=function(){function r(t){this.id=op(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=false;a.parent=n?this:null;var u=false;if(a.copyTransform(e),i.position!=null){var f=x_;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vi,i,f):Do(vi,i,f),a.x=vi.x,a.y=vi.y,o=vi.align,s=vi.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Sr(h[0],f.width),v=Sr(h[1],f.height)),u=true,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=true)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=true)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=true,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=jt,l&&e.dirtyStyle(true)}},r.prototype.canBeInsideText=function(){return true},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?pu:du},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Ze(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Qo(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=true,this.markRedraw()},r.prototype.show=function(){this.ignore=false,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(U(t))for(var i=t,n=pt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==Ys)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Xs)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(Ys,false,t)},r.prototype.useState=function(t,e,i,n){var a=t===Ys,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ft(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){uf("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(true),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(false),this.__dirty&=~jt),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=false;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(true);var v=this._mergeStates(n),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,false,!e&&!this.__inHover&&d&&d.duration>0,d);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,e,c),p&&p.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(false),this.__dirty&=~jt)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=true;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ft(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=ft(n,t),o=ft(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,true):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];B(e,a),a.textConfig&&(i=i||{},B(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=B({},n?this.textConfig:i.textConfig),B(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=false,f=0;f<Xs.length;f++){var h=Xs[f],c=a&&b_[h];e&&e[h]!=null?c?(u=true,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(u=true,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||i)[d]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new gf,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=jt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new pf(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=ft(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){$s(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){$s(this,t,e,i,true)},r.prototype._transitionState=function(t,e,i,n){for(var a=$s(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=false,t.__dirty=jt;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Ne(jo,Fe);Ne(jo,gf);function $s(r,t,e,i,n){e=e||{};var a=[];Mp(r,"",r,t,e,i,a,n);var o=a.length,s=false,l=e.done,u=e.aborted,f=function(){s=true,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(d,g){e.during(g)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function Zs(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function T_(r){return Zt(r[0])}function C_(r,t,e){if(Zt(t[e]))if(Zt(r[e])||(r[e]=[]),qt(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),Zs(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(T_(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?Zs(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else Zs(a,n,o);a.length=n.length}else r[e]=t[e]}function D_(r,t){return r===t||Zt(r)&&Zt(t)&&M_(r,t)}function M_(r,t){var e=r.length;if(e!==t.length)return false;for(var i=0;i<e;i++)if(r[i]!==t[i])return false;return true}function Mp(r,t,e,i,n,a,o,s){for(var l=pt(i),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!U(a),d=r.animators,g=[],p=0;p<l.length;p++){var y=l[p],m=i[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(U(m)&&!Zt(m)&&!qo(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}Mp(r,y,e[y],m,n,a&&a[y],o,s)}else g.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var S=0;S<d.length;S++){var b=d[S];if(b.targetName===t){var w=b.stopTracks(g);if(w){var x=ft(d,b);d.splice(x,1)}}}if(n.force||(g=At(g,function(C){return!D_(i[C],e[C])}),_=g.length),_>0||n.force&&!o.length){var T=void 0,D=void 0,M=void 0;if(s){D={},c&&(T={});for(var S=0;S<_;S++){var y=g[S];D[y]=e[y],c?T[y]=i[y]:e[y]=i[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=g[S];M[y]=no(e[y]),C_(e,i,y)}}var b=new pf(e,false,false,h?At(d,function(L){return L.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&T&&b.whenWithKeys(0,T,g),M&&b.whenWithKeys(0,M,g),b.whenWithKeys(u??500,s?D:i,g).delay(f||0),r.addAnimator(b,t),o.push(b)}}var It=function(r){ht(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=true,i._children=[],i.attr(e),i}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 i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[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,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=ft(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=ft(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new ot(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ot.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t}(jo);It.prototype.type="group";/*!
|
|
29
|
+
* ZRender, a high performance 2d drawing library.
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
32
|
+
* All rights reserved.
|
|
33
|
+
*
|
|
34
|
+
* LICENSE
|
|
35
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
36
|
+
*/var lo={},Ap={};function A_(r){delete Ap[r]}function L_(r){if(!r)return false;if(typeof r=="string")return To(r,1)<cu;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=To(t[n].color,1);return e/=i,e<cu}return false}var I_=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=true,this._needsRefreshHover=true,this._darkMode=false,i=i||{},this.dom=e,this.id=t;var a=new q0,o=i.renderer||"canvas";lo[o]||(o=pt(lo)[0]),i.useDirtyRect=i.useDirtyRect==null?false:i.useDirtyRect;var s=new lo[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!$.node&&!$.worker&&!l?new __(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?$.touchEventsSupported:!!f,c=44,v;h&&(v=Q(i.pointerSize,c)),this.handler=new dp(a,s,u,s.root,v),this.animation=new v_({stage:{update:l?null:function(){return n._flush(true)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=L_(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(true),this._needsRefresh=false,this.painter.refresh(),this._needsRefresh=false)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=true,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(false)},r.prototype._flush=function(t){var e,i=Ai();this._needsRefresh&&(e=true,this.refreshImmediately(t)),this._needsRefreshHover&&(e=true,this.refreshHoverImmediately());var n=Ai();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=true},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=false,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof It&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=true,A_(this.id))},r}();function Zh(r,t){var e=new I_(op(),r,t);return Ap[e.id]=e,e}function P_(r,t){lo[r]=t}var qh=1e-4,Lp=20;function R_(r){return r.replace(/^\s+|\s+$/g,"")}function gu(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function dt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return V(r)?R_(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function bt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Lp),r=(+r).toFixed(t),e?r:+r}function Ye(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return E_(r)}function E_(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function k_(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function O_(r,t){var e=_r(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=W(r,function(v){return(isNaN(v)?0:v)/e*i*100}),a=i*100,o=W(n,function(v){return Math.floor(v)}),s=_r(o,function(v,d){return v+d},0),l=W(n,function(v,d){return v-o[d]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return W(o,function(v){return v/i})}function B_(r,t){var e=Math.max(Ye(r),Ye(t)),i=r+t;return e>Lp?i:bt(i,e)}function Ip(r){var t=Math.PI*2;return(r%t+t)%t}function Mo(r){return r>-qh&&r<qh}var N_=/^(?:(\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 Qe(r){if(r instanceof Date)return r;if(V(r)){var t=N_.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(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(r==null)return new Date(NaN);return new Date(Math.round(r))}function F_(r){return Math.pow(10,_f(r))}function _f(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Pp(r,t){var e=_f(r),i=Math.pow(10,e),n=r/i,a;return n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function Ao(r){var t=parseFloat(r);return t==r&&(t!==0||!V(r)||r.indexOf("x")<=0)?t:NaN}function z_(r){return!isNaN(Ao(r))}function Rp(){return Math.round(Math.random()*9)}function Ep(r,t){return t===0?r:Ep(t,r%t)}function Kh(r,t){return r==null?t:t==null?r:r*t/Ep(r,t)}function Yt(r){throw new Error(r)}function Qh(r,t,e){return(t-r)*e+r}var kp="series\0",H_="\0_ec_\0";function Ft(r){return r instanceof Array?r:r==null?[]:[r]}function yu(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var jh=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function aa(r){return U(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function G_(r){return U(r)&&!(r instanceof Array)}function V_(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=j();A(t,function(l,u){if(!U(l)){t[u]=null;return}});var s=W_(r,o,e);return(i||n)&&U_(s,r,o,t),i&&Y_(s,t),i||n?X_(s,t,n):a&&$_(s,t),Z_(s),s}function W_(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||Yn(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function U_(r,t,e,i){A(i,function(n,a){if(!(!n||n.id==null)){var o=Pn(n.id),s=e.get(o);if(s!=null){var l=r[s];Ke(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function Y_(r,t){A(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!Yn(e)&&!Yn(a)&&Op("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function X_(r,t,e){A(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Yn(n.existing)||n.existing&&i.id!=null&&!Op("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function $_(r,t){A(t,function(e){r.push({newOption:e,brandNew:true,existing:null,keyInfo:null})})}function Z_(r){var t=j();A(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),A(r,function(e){var i=e.newOption;Ke(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),A(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(U(a)){if(o.name=a.name!=null?Pn(a.name):n?n.name:kp+i,n)o.id=Pn(n.id);else if(a.id!=null)o.id=Pn(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Op(r,t,e){var i=Be(t[r],null),n=Be(e[r],null);return i!=null&&n!=null&&i===n}function Pn(r){return Be(r,"")}function Be(r,t){return r==null?t:V(r)?r:vt(r)||Ql(r)?r+"":t}function Sf(r){var t=r.name;return!!(t&&t.indexOf(kp))}function Yn(r){return r&&r.id!=null&&Pn(r.id).indexOf(H_)===0}function q_(r,t,e){A(r,function(i){var n=i.newOption;U(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=K_(t,n,i.existing,e))})}function K_(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function ii(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?W(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?W(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function wt(){var r="__ec_inner_"+Q_++;return function(t){return t[r]||(t[r]={})}}var Q_=Rp();function qs(r,t,e){var i=wf(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=oa(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:true,enableNone:e&&e.enableNone!=null?e.enableNone:true});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function wf(r,t){var e;if(V(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=j(),a={},o=false;return A(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ft(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var we={useDefault:true,enableAll:false,enableNone:false};function oa(r,t,e,i){i=i||we;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===false?(Ke(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(Ke(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function Bp(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function j_(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function J_(r){return r==="auto"?$.domSupported?"html":"richText":r||"html"}function t1(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(vt(i)){var o=Qh(e||0,i,n);return bt(o,a?Math.max(Ye(e||0),Ye(i)):t)}else{if(V(i))return n<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,d=u[h],o=Qh(v,d,n);s[h]=bt(o,a?Math.max(Ye(v),Ye(d)):t)}}return s}}var e1=".",Rr="___EC__COMPONENT__CONTAINER___",Np="___EC__EXTENDED_CLASS___";function Oe(r){var t={main:"",sub:""};if(r){var e=r.split(e1);t.main=e[0]||"",t.sub=e[1]||""}return t}function r1(r){Ke(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function i1(r){return!!(r&&r[Np])}function bf(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return n1(i)?n=function(a){Y(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},h0(n,this)),B(n.prototype,e),n[Np]=true,n.extend=this.extend,n.superCall=s1,n.superApply=l1,n.superClass=i,n}}function n1(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Fp(r,t){r.extend=t.extend}var a1=Math.round(Math.random()*10);function o1(r){var t=["__\0is_clz",a1++].join("_");r.prototype[t]=true,r.isInstance=function(e){return!!(e&&e[t])}}function s1(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function l1(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Jo(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){r1(n),i.prototype.type=n;var a=Oe(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Rr){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Rr]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=Oe(i),a=[],o=t[n.main];return o&&o[Rr]?A(o,function(s,l){l!==Rr&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=Oe(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return A(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=Oe(i),a=t[n.main];return a&&a[Rr]};function e(i){var n=t[i.main];return(!n||!n[Rr])&&(n=t[i.main]={},n[Rr]=true),n}}function Xn(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||false,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ft(n,l)>=0||a&&ft(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var u1=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],f1=Xn(u1),h1=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return f1(this,t,e)},r}(),mu=new na(50);function v1(r){if(typeof r=="string"){var t=mu.get(r);return t&&t.image}else return r}function zp(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=mu.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!ts(t)&&a.pending.push(o)):(t=Vi.loadImage(r,Jh,Jh),t.__zrImageSrc=r,mu.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function Jh(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function ts(r){return r&&r.width&&r.height}var Ks=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function c1(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=false;return}var o=(t+"").split(`
|
|
37
|
+
`);a=Hp(e,i,n,a);for(var s=false,l={},u=0,f=o.length;u<f;u++)Gp(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
38
|
+
`),r.isTruncated=s}function Hp(r,t,e,i){i=i||{};var n=B({},i);n.font=t,e=Q(e,"..."),n.maxIterations=Q(i.maxIterations,2);var a=n.minChar=Q(i.minChar,0);n.cnCharWidth=Jt("国",t);var o=n.ascCharWidth=Jt("a",t);n.placeholder=Q(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Jt(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Gp(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=false;return}var o=Jt(t,n);if(o<=i){r.textLine=t,r.isTruncated=false;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?d1(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Jt(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=true}function d1(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function p1(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=mf(n),s=Q(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=false,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?Vp(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
|
|
39
|
+
`):[];var v=c.length*s,d=Q(t.height,v);if(v>d&&u){var g=Math.floor(d/s);f=f||c.length>g,c=c.slice(0,g)}if(r&&a&&h!=null)for(var p=Hp(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<c.length;m++)Gp(y,c[m],p),c[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<c.length;m++)S=Math.max(Jt(c[m],n),S);h==null&&(h=S);var b=S;return i&&(_+=i[0]+i[2],b+=i[1]+i[3],h+=i[1]+i[3]),l&&(b=h),{lines:c,height:d,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:h,isTruncated:f}}var g1=function(){function r(){}return r}(),tv=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),y1=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=false}return r}();function m1(r,t){var e=new y1;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=Ks.lastIndex=0,l;(l=Ks.exec(r))!=null;){var u=l.index;u>s&&Qs(e,r.substring(s,u),t,o),Qs(e,l[2],t,o,l[1]),s=Ks.lastIndex}s<r.length&&Qs(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate",p={};function y(N,H,G){N.width=H,N.lineHeight=G,h+=G,c=Math.max(c,H)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,b=0,w=0;w<_.tokens.length;w++){var x=_.tokens[w],T=x.styleName&&t.rich[x.styleName]||{},D=x.textPadding=T.padding,M=D?D[1]+D[3]:0,C=x.font=T.font||t.font;x.contentHeight=mf(C);var L=Q(T.height,x.contentHeight);if(x.innerHeight=L,D&&(L+=D[0]+D[2]),x.height=L,x.lineHeight=Mn(T.lineHeight,t.lineHeight,L),x.align=T&&T.align||t.align,x.verticalAlign=T&&T.verticalAlign||"middle",g&&n!=null&&h+x.lineHeight>n){var I=e.lines.length;w>0?(_.tokens=_.tokens.slice(0,w),y(_,b,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<I;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")x.percentWidth=P,f.push(x),x.contentWidth=Jt(x.text,C);else{if(R){var E=T.backgroundColor,F=E&&E.image;F&&(F=v1(F),ts(F)&&(x.width=Math.max(x.width,F.width*L/F.height)))}var k=d&&i!=null?i-b:null;k!=null&&k<x.width?!R||k<M?(x.text="",x.width=x.contentWidth=0):(c1(p,x.text,k-M,C,t.ellipsis,{minChar:t.truncateMinChar}),x.text=p.text,e.isTruncated=e.isTruncated||p.isTruncated,x.width=x.contentWidth=Jt(x.text,C)):x.contentWidth=Jt(x.text,C)}x.width+=M,b+=x.width,T&&(S=Math.max(S,x.lineHeight))}y(_,b,S)}e.outerWidth=e.width=Q(i,c),e.outerHeight=e.height=Q(n,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var x=f[m],O=x.percentWidth;x.width=parseInt(O,10)/100*e.width}return e}function Qs(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=false,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Sr(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
|
|
40
|
+
`),u=true),i.accumWidth=d}else{var g=Vp(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
|
|
41
|
+
`);for(var p=0;p<f.length;p++){var y=f[p],m=new g1;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:Jt(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new tv)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new tv([m]))}}function _1(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var S1=_r(",&?/;] ".split(""),function(r,t){return r[t]=true,r},{});function w1(r){return _1(r)?!!S1[r]:true}function Vp(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
|
|
42
|
+
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Jt(c,t),d=i?false:!w1(c);if(a.length?f+v>e:n+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var _u="__zr_style_"+Math.round(Math.random()*10),jr={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},es={style:{shadowBlur:true,shadowOffsetX:true,shadowOffsetY:true,shadowColor:true,opacity:true}};jr[_u]=true;var ev=["z","z2","invisible"],b1=["invisible"],sa=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=pt(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}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,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&x1(this,e,i)||o&&!o[0]&&!o[3])return false;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return false}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return false;l=l.parent}return true},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ot(0,0,0,0)),i?ot.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ot(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(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=_n,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&_n)},t.prototype.styleUpdated=function(){this.__dirty&=~_n},t.prototype.createStyle=function(e){return Ko(jr,e)},t.prototype.useStyle=function(e){e[_u]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[_u]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,ev)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=pt(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var d=pt(u),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?b1:ev,c=0;c<g.length;c++){var v=g[c];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return B(e,i),e},t.prototype.getAnimationStyleProps=function(){return es},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=false,e.z=0,e.z2=0,e.zlevel=0,e.culling=false,e.cursor="pointer",e.rectHover=false,e.incremental=false,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=jt|_n}(),t}(jo),js=new ot(0,0,0,0),Js=new ot(0,0,0,0);function x1(r,t,e){return js.copy(r.getBoundingRect()),r.transform&&js.applyTransform(r.transform),Js.width=t,Js.height=e,!js.intersect(Js)}var le=Math.min,ue=Math.max,tl=Math.sin,el=Math.cos,Er=Math.PI*2,Ta=Wi(),Ca=Wi(),Da=Wi();function rv(r,t,e,i,n,a){n[0]=le(r,e),n[1]=le(t,i),a[0]=ue(r,e),a[1]=ue(t,i)}var iv=[],nv=[];function T1(r,t,e,i,n,a,o,s,l,u){var f=_p,h=Lt,c=f(r,e,n,o,iv);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,n,o,iv[v]);l[0]=le(d,l[0]),u[0]=ue(d,u[0])}c=f(t,i,a,s,nv);for(var v=0;v<c;v++){var g=h(t,i,a,s,nv[v]);l[1]=le(g,l[1]),u[1]=ue(g,u[1])}l[0]=le(r,l[0]),u[0]=ue(r,u[0]),l[0]=le(o,l[0]),u[0]=ue(o,u[0]),l[1]=le(t,l[1]),u[1]=ue(t,u[1]),l[1]=le(s,l[1]),u[1]=ue(s,u[1])}function C1(r,t,e,i,n,a,o,s){var l=Sp,u=Ut,f=ue(le(l(r,e,n),1),0),h=ue(le(l(t,i,a),1),0),c=u(r,e,n,f),v=u(t,i,a,h);o[0]=le(r,n,c),o[1]=le(t,a,v),s[0]=ue(r,n,c),s[1]=ue(t,a,v)}function D1(r,t,e,i,n,a,o,s,l){var u=Di,f=Mi,h=Math.abs(n-a);if(h%Er<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(Ta[0]=el(n)*e+r,Ta[1]=tl(n)*i+t,Ca[0]=el(a)*e+r,Ca[1]=tl(a)*i+t,u(s,Ta,Ca),f(l,Ta,Ca),n=n%Er,n<0&&(n=n+Er),a=a%Er,a<0&&(a=a+Er),n>a&&!o?a+=Er:n<a&&o&&(n+=Er),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(Da[0]=el(v)*e+r,Da[1]=tl(v)*i+t,u(s,Da,s),f(l,Da,l))}var nt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},kr=[],Or=[],Me=[],tr=[],Ae=[],Le=[],rl=Math.min,il=Math.max,Br=Math.cos,Nr=Math.sin,Ve=Math.abs,Su=Math.PI,ur=Su*2,nl=typeof Float32Array<"u",en=[];function al(r){var t=Math.round(r/Su*1e8)/1e8;return t%2*Su}function Wp(r,t){var e=al(r[0]);e<0&&(e+=ur);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=ur?n=e+ur:t&&e-n>=ur?n=e-ur:!t&&e>n?n=e+(ur-al(e-n)):t&&e<n&&(n=e-(ur-al(n-e))),r[0]=e,r[1]=n}var ni=function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=false),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Ve(i/Co/t)||0,this._uy=Ve(i/Co/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(nt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ve(t-this._xi),n=Ve(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(nt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(nt.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(nt.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),en[0]=n,en[1]=a,Wp(en,o),n=en[0],a=en[1];var s=a-n;return this.addData(nt.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Br(a)*i+t,this._yi=Nr(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(nt.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(nt.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&nl&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();nl&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,nl&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Me[0]=Me[1]=Ae[0]=Ae[1]=Number.MAX_VALUE,tr[0]=tr[1]=Le[0]=Le[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case nt.M:e=n=t[o++],i=a=t[o++],Ae[0]=n,Ae[1]=a,Le[0]=n,Le[1]=a;break;case nt.L:rv(e,i,t[o],t[o+1],Ae,Le),e=t[o++],i=t[o++];break;case nt.C:T1(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ae,Le),e=t[o++],i=t[o++];break;case nt.Q:C1(e,i,t[o++],t[o++],t[o],t[o+1],Ae,Le),e=t[o++],i=t[o++];break;case nt.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var g=!t[o++];l&&(n=Br(v)*h+u,a=Nr(v)*c+f),D1(u,f,h,c,v,d,g,Ae,Le),e=Br(d)*h+u,i=Nr(d)*c+f;break;case nt.R:n=e=t[o++],a=i=t[o++];var p=t[o++],y=t[o++];rv(n,a,n+p,a+y,Ae,Le);break;case nt.Z:e=n,i=a;break}Di(Me,Me,Ae),Mi(tr,tr,Le)}return o===0&&(Me[0]=Me[1]=tr[0]=tr[1]=0),new ot(Me[0],Me[1],tr[0]-Me[0],tr[1]-Me[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,l=o);var g=-1;switch(v){case nt.M:a=s=t[c++],o=l=t[c++];break;case nt.L:{var p=t[c++],y=t[c++],m=p-a,_=y-o;(Ve(m)>i||Ve(_)>n||c===e-1)&&(g=Math.sqrt(m*m+_*_),a=p,o=y);break}case nt.C:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++],w=t[c++],x=t[c++];g=Q0(a,o,S,b,p,y,w,x,10),a=w,o=x;break}case nt.Q:{var S=t[c++],b=t[c++],p=t[c++],y=t[c++];g=t_(a,o,S,b,p,y,10),a=p,o=y;break}case nt.A:var T=t[c++],D=t[c++],M=t[c++],C=t[c++],L=t[c++],I=t[c++],P=I+L;c+=1,d&&(s=Br(L)*M+T,l=Nr(L)*C+D),g=il(M,C)*rl(ur,Math.abs(I)),a=Br(P)*M+T,o=Nr(P)*C+D;break;case nt.R:{s=a=t[c++],l=o=t[c++];var R=t[c++],E=t[c++];g=R*2+E*2;break}case nt.Z:{var m=s-a,_=l-o;g=Math.sqrt(m*m+_*_),a=s,o=l;break}}g>=0&&(u[h++]=g,f+=g)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,d,g,p=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=e*g,!m)))t:for(var w=0;w<o;){var x=i[w++],T=w===1;switch(T&&(u=i[w],f=i[w+1],s=u,l=f),x!==nt.L&&_>0&&(t.lineTo(S,b),_=0),x){case nt.M:s=u=i[w++],l=f=i[w++],t.moveTo(u,f);break;case nt.L:{h=i[w++],c=i[w++];var D=Ve(h-u),M=Ve(c-f);if(D>n||M>a){if(v){var C=d[y++];if(p+C>m){var L=(m-p)/C;t.lineTo(u*(1-L)+h*L,f*(1-L)+c*L);break t}p+=C}t.lineTo(h,c),u=h,f=c,_=0}else{var I=D*D+M*M;I>_&&(S=h,b=c,_=I)}break}case nt.C:{var P=i[w++],R=i[w++],E=i[w++],F=i[w++],k=i[w++],O=i[w++];if(v){var C=d[y++];if(p+C>m){var L=(m-p)/C;bo(u,P,E,k,L,kr),bo(f,R,F,O,L,Or),t.bezierCurveTo(kr[1],Or[1],kr[2],Or[2],kr[3],Or[3]);break t}p+=C}t.bezierCurveTo(P,R,E,F,k,O),u=k,f=O;break}case nt.Q:{var P=i[w++],R=i[w++],E=i[w++],F=i[w++];if(v){var C=d[y++];if(p+C>m){var L=(m-p)/C;xo(u,P,E,L,kr),xo(f,R,F,L,Or),t.quadraticCurveTo(kr[1],Or[1],kr[2],Or[2]);break t}p+=C}t.quadraticCurveTo(P,R,E,F),u=E,f=F;break}case nt.A:var N=i[w++],H=i[w++],G=i[w++],K=i[w++],et=i[w++],it=i[w++],Ht=i[w++],te=!i[w++],Qt=G>K?G:K,Ct=Ve(G-K)>.001,mt=et+it,X=false;if(v){var C=d[y++];p+C>m&&(mt=et+it*(m-p)/C,X=true),p+=C}if(Ct&&t.ellipse?t.ellipse(N,H,G,K,Ht,et,mt,te):t.arc(N,H,Qt,et,mt,te),X)break t;T&&(s=Br(et)*G+N,l=Nr(et)*K+H),u=Br(mt)*G+N,f=Nr(mt)*K+H;break;case nt.R:s=u=i[w],l=f=i[w+1],h=i[w++],c=i[w++];var J=i[w++],De=i[w++];if(v){var C=d[y++];if(p+C>m){var Tt=m-p;t.moveTo(h,c),t.lineTo(h+rl(Tt,J),c),Tt-=J,Tt>0&&t.lineTo(h+J,c+rl(Tt,De)),Tt-=De,Tt>0&&t.lineTo(h+il(J-Tt,0),c+De),Tt-=J,Tt>0&&t.lineTo(h,c+il(De-Tt,0));break t}p+=C}t.rect(h,c,J,De);break;case nt.Z:if(v){var C=d[y++];if(p+C>m){var L=(m-p)/C;t.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}p+=C}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=nt,r.initDefaultProps=function(){var t=r.prototype;t._saveData=true,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function ci(r,t,e,i,n,a,o){if(n===0)return false;var s=n,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return false;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function M1(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return false;var h=l;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return false;var c=K0(r,t,e,i,n,a,o,s,u,f);return c<=h/2}function A1(r,t,e,i,n,a,o,s,l){if(o===0)return false;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return false;var f=J0(r,t,e,i,n,a,s,l);return f<=u/2}var av=Math.PI*2;function Ma(r){return r%=av,r<0&&(r+=av),r}var rn=Math.PI*2;function L1(r,t,e,i,n,a,o,s,l){if(o===0)return false;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return false;if(Math.abs(i-n)%rn<1e-4)return true;if(a){var h=i;i=Ma(n),n=Ma(h)}else i=Ma(i),n=Ma(n);i>n&&(n+=rn);var c=Math.atan2(l,s);return c<0&&(c+=rn),c>=i&&c<=n||c+rn>=i&&c+rn<=n}function Fr(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var er=ni.CMD,zr=Math.PI*2,I1=1e-4;function P1(r,t){return Math.abs(r-t)<I1}var Bt=[-1,-1,-1],oe=[-1,-1];function R1(){var r=oe[0];oe[0]=oe[1],oe[1]=r}function E1(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=wo(t,i,a,s,u,Bt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,g=0;g<f;g++){var p=Bt[g],y=p===0||p===1?.5:1,m=Lt(r,e,n,o,p);m<l||(c<0&&(c=_p(t,i,a,s,oe),oe[1]<oe[0]&&c>1&&R1(),v=Lt(t,i,a,s,oe[0]),c>1&&(d=Lt(t,i,a,s,oe[1]))),c===2?p<oe[0]?h+=v<t?y:-y:p<oe[1]?h+=d<v?y:-y:h+=s<d?y:-y:p<oe[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function k1(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=j0(t,i,a,s,Bt);if(l===0)return 0;var u=Sp(t,i,a);if(u>=0&&u<=1){for(var f=0,h=Ut(t,i,a,u),c=0;c<l;c++){var v=Bt[c]===0||Bt[c]===1?.5:1,d=Ut(r,e,n,Bt[c]);d<o||(Bt[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Bt[0]===0||Bt[0]===1?.5:1,d=Ut(r,e,n,Bt[0]);return d<o?0:a<t?v:-v}}function O1(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);Bt[0]=-l,Bt[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=zr-1e-4){i=0,n=zr;var f=a?1:-1;return o>=Bt[0]+r&&o<=Bt[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=zr,n+=zr);for(var c=0,v=0;v<2;v++){var d=Bt[v];if(d+r>o){var g=Math.atan2(s,d),f=a?1:-1;g<0&&(g=zr+g),(g>=i&&g<=n||g+zr>=i&&g+zr<=n)&&(g>Math.PI/2&&g<Math.PI*1.5&&(f=-f),c+=f)}}return c}function Up(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,d=0;d<o;){var g=a[d++],p=d===1;switch(g===er.M&&d>1&&(e||(s+=Fr(l,u,f,h,i,n))),p&&(l=a[d],u=a[d+1],f=l,h=u),g){case er.M:f=a[d++],h=a[d++],l=f,u=h;break;case er.L:if(e){if(ci(l,u,a[d],a[d+1],t,i,n))return true}else s+=Fr(l,u,a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case er.C:if(e){if(M1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,i,n))return true}else s+=E1(l,u,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case er.Q:if(e){if(A1(l,u,a[d++],a[d++],a[d],a[d+1],t,i,n))return true}else s+=k1(l,u,a[d++],a[d++],a[d],a[d+1],i,n)||0;l=a[d++],u=a[d++];break;case er.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],b=a[d++],w=a[d++];d+=1;var x=!!(1-a[d++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,p?(f=c,h=v):s+=Fr(l,u,c,v,i,n);var T=(i-y)*S/_+y;if(e){if(L1(y,m,S,b,b+w,x,t,T,n))return true}else s+=O1(y,m,S,b,b+w,x,T,n);l=Math.cos(b+w)*_+y,u=Math.sin(b+w)*S+m;break;case er.R:f=l=a[d++],h=u=a[d++];var D=a[d++],M=a[d++];if(c=f+D,v=h+M,e){if(ci(f,h,c,h,t,i,n)||ci(c,h,c,v,t,i,n)||ci(c,v,f,v,t,i,n)||ci(f,v,f,h,t,i,n))return true}else s+=Fr(c,h,c,v,i,n),s+=Fr(f,v,f,h,i,n);break;case er.Z:if(e){if(ci(l,u,f,h,t,i,n))return true}else s+=Fr(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!P1(u,h)&&(s+=Fr(l,u,f,h,i,n)||0),s!==0}function B1(r,t,e){return Up(r,0,false,t,e)}function N1(r,t,e,i){return Up(r,t,true,e,i)}var Yp=st({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:false,strokeFirst:false},jr),F1={style:st({fill:true,stroke:true,strokePercent:true,fillOpacity:true,strokeOpacity:true,lineDashOffset:true,lineWidth:true,miterLimit:true},es.style)},ol=Un.concat(["invisible","culling","z","z2","zlevel","parent"]),ut=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=true;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<ol.length;++s)n[ol[s]]=this[ol[s]];n.__dirty|=jt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=pt(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?B(this.style,s):this.useStyle(s):o==="shape"?B(this.shape,s):r.prototype.attrKV.call(this,o,s)}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(V(e)){var i=To(e,0);return i>.5?du:i>.2?S_:pu}else if(e)return pu}return du},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(V(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=To(e,0)<cu;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~Ti},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 ni(false)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=false;this.path||(a=true,this.createPathProxy());var o=this.path;(a||this.__dirty&Ti)&&(o.beginPath(),this.buildPath(o,this.shape,false),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),N1(s,l/u,e,i)))return true}if(this.hasFill())return B1(s,e,i)}return false},t.prototype.dirtyShape=function(){this.__dirty|=Ti,this._rect&&(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(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:B(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ti)},t.prototype.createStyle=function(e){return Ko(Yp,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=B({},n.shape),B(u,i.shape)):(u=B({},a?this.shape:n.shape),B(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=B({},this.shape);for(var f={},h=pt(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return F1},t.prototype.isZeroArea=function(){return false},t.extend=function(e){var i=function(a){ht(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return tt(e.style)},o.prototype.getDefaultShape=function(){return tt(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=false,e.autoBatch=false,e.__dirty=jt|_n|Ti}(),t}(sa),z1=st({strokeFirst:true,font:ei,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Yp),Lo=function(r){ht(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Ko(z1,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=yf(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(sa);Lo.prototype.type="tspan";var H1=st({x:0,y:0},jr),G1={style:st({x:true,y:true,width:true,height:true,sx:true,sy:true,sWidth:true,sHeight:true},es.style)};function V1(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Tr=function(r){ht(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Ko(H1,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=V1(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return G1},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ot(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(sa);Tr.prototype.type="image";function W1(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Li=Math.round;function Xp(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Li(i*2)===Li(n*2)&&(r.x1=r.x2=qr(i,s,true)),Li(a*2)===Li(o*2)&&(r.y1=r.y2=qr(a,s,true))),r}}function $p(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=qr(i,s,true),r.y=qr(n,s,true),r.width=Math.max(qr(i+a,s,false)-r.x,a===0?0:1),r.height=Math.max(qr(n+o,s,false)-r.y,o===0?0:1)),r}}function qr(r,t,e){if(!t)return r;var i=Li(r*2);return(i+Li(t))%2===0?i/2:(i+(e?1:-1))/2}var U1=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),Y1={},xt=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new U1},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=$p(Y1,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?W1(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ut);xt.prototype.type="rect";var ov={fill:"#000"},sv=2,X1={style:st({fill:true,stroke:true,fillOpacity:true,strokeOpacity:true,lineWidth:true,fontSize:true,lineHeight:true,width:true,height:true,textShadowColor:true,textShadowBlur:true,textShadowOffsetX:true,textShadowOffsetY:true,backgroundColor:true,padding:true,borderColor:true,borderWidth:true,borderRadius:true},es.style)},Pt=function(r){ht(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=ov,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(true)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Q1(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ot(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ov},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return B(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=pt(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},B(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return X1},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||ei,n=e.padding,a=dv(e),o=p1(a,e),s=sl(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var g=e.x||0,p=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=g,S=Ci(p,o.contentHeight,m);if(s||n){var b=wn(g,f,y),w=Ci(p,u,m);s&&this._renderBackground(e,e,b,w,f,u)}S+=v/2,n&&(_=cv(g,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var x=0,T=false,D=vv("fill"in e?e.fill:(T=true,d.fill)),M=hv("stroke"in e?e.stroke:!l&&(!d.autoStroke||T)?(x=sv,d.stroke):null),C=e.textShadowBlur>0,L=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(Lo),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,E.textAlign=y,E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=true,C&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=M,E.fill=D,M&&(E.lineWidth=e.lineWidth||x,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=i,uv(E,e),S+=v,L&&R.setBoundingRect(new ot(wn(E.x,h,E.textAlign),Ci(E.y,I,E.textBaseline),h,I))}},t.prototype._updateRichTexts=function(){var e=this.style,i=dv(e),n=m1(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var d=wn(u,o,c),g=Ci(f,s,v),p=d,y=g;l&&(p+=l[3],y+=l[0]);var m=p+a;sl(e)&&this._renderBackground(e,e,d,g,o,s);for(var _=!!e.backgroundColor,S=0;S<n.lines.length;S++){for(var b=n.lines[S],w=b.tokens,x=w.length,T=b.lineHeight,D=b.width,M=0,C=p,L=m,I=x-1,P=void 0;M<x&&(P=w[M],!P.align||P.align==="left");)this._placeToken(P,e,T,y,C,"left",_),D-=P.width,C+=P.width,M++;for(;I>=0&&(P=w[I],P.align==="right");)this._placeToken(P,e,T,y,L,"right",_),D-=P.width,L-=P.width,I--;for(C+=(a-(C-p)-(m-L)-D)/2;M<=I;)P=w[M],this._placeToken(P,e,T,y,C+P.width/2,"center",_),C+=P.width,M++;y+=T}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&sl(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,d=e.textPadding;d&&(o=cv(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var g=this._getOrCreateChild(Lo),p=g.createStyle();g.useStyle(p);var y=this._defaultStyle,m=false,_=0,S=vv("fill"in u?u.fill:"fill"in i?i.fill:(m=true,y.fill)),b=hv("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=sv,y.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;p.text=e.text,p.x=o,p.y=h,w&&(p.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,p.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=e.font||ei,p.opacity=Mn(u.opacity,i.opacity,1),uv(p,u),b&&(p.lineWidth=Mn(u.lineWidth,i.lineWidth,_),p.lineDash=Q(u.lineDash,i.lineDash),p.lineDashOffset=i.lineDashOffset||0,p.stroke=b),S&&(p.fill=S);var x=e.contentWidth,T=e.contentHeight;g.setBoundingRect(new ot(wn(p.x,x,p.textAlign),Ci(p.y,T,p.textBaseline),x,T))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,d=this,g,p;if(c||e.lineHeight||u&&f){g=this._getOrCreateChild(xt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=n,y.y=a,y.width=o,y.height=s,y.r=v,g.dirtyShape()}if(c){var m=g.style;m.fill=l||null,m.fillOpacity=Q(e.fillOpacity,1)}else if(h){p=this._getOrCreateChild(Tr),p.onload=function(){d.dirtyStyle()};var _=p.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=g.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Q(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=true,m.lineWidth*=2)}var S=(g||p).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Mn(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return K1(e)&&(i=[e.fontStyle,e.fontWeight,q1(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&ke(i)||e.textFont||e.font},t}(sa),$1={left:true,right:1,center:1},Z1={top:1,bottom:1,middle:1},lv=["fontStyle","fontWeight","fontSize","fontFamily"];function q1(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?of+"px":r+"px"}function uv(r,t){for(var e=0;e<lv.length;e++){var i=lv[e],n=t[i];n!=null&&(r[i]=n)}}function K1(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Q1(r){return fv(r),A(r.rich,fv),r}function fv(r){if(r){r.font=Pt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||$1[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Z1[e]?e:"top";var i=r.padding;i&&(r.padding=sp(r.padding))}}function hv(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function vv(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function cv(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function dv(r){var t=r.text;return t!=null&&(t+=""),t}function sl(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var rt=wt(),j1=function(r,t,e,i){if(i){var n=rt(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=rt(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},pv=1,gv={},Zp=wt(),xf=wt(),Tf=0,rs=1,is=2,de=["emphasis","blur","select"],Io=["normal","emphasis","blur","select"],J1=10,tS=9,Jr="highlight",uo="downplay",Rn="select",fo="unselect",En="toggleSelect";function di(r){return r!=null&&r!=="none"}function ns(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function qp(r){ns(r,"emphasis",is)}function Kp(r){r.hoverState===is&&ns(r,"normal",Tf)}function Cf(r){ns(r,"blur",rs)}function Qp(r){r.hoverState===rs&&ns(r,"normal",Tf)}function eS(r){r.selected=true}function rS(r){r.selected=false}function yv(r,t,e){t(r,e)}function je(r,t,e){yv(r,t,e),r.isGroup&&r.traverse(function(i){yv(i,t,e)})}function mv(r,t){switch(t){case"emphasis":r.hoverState=is;break;case"normal":r.hoverState=Tf;break;case"blur":r.hoverState=rs;break;case"select":r.selected=true}}function iS(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function nS(r,t,e,i){var n=e&&ft(e,"select")>=0,a=false;if(r instanceof ut){var o=Zp(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(di(s)||di(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=true,i=B({},i),u=B({},u),u.fill=s):!di(u.fill)&&di(s)?(a=true,i=B({},i),u=B({},u),u.fill=Nh(s)):!di(u.stroke)&&di(l)&&(a||(i=B({},i),u=B({},u)),u.stroke=Nh(l)),i.style=u}}if(i&&i.z2==null){a||(i=B({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??J1)}return i}function aS(r,t,e){if(e&&e.z2==null){e=B({},e);var i=r.z2SelectLift;e.z2=r.z2+(i??tS)}return e}function oS(r,t,e){var i=ft(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:iS(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:i?n:a.opacity*.1},o),e.style=o),e}function ll(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return nS(this,r,t,e);if(r==="blur")return oS(this,r,e);if(r==="select")return aS(this,r,e)}return e}function sS(r){r.stateProxy=ll;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=ll),e&&(e.stateProxy=ll)}function _v(r,t){!eg(r,t)&&!r.__highByOuter&&je(r,qp)}function Sv(r,t){!eg(r,t)&&!r.__highByOuter&&je(r,Kp)}function Po(r,t){r.__highByOuter|=1<<(t||0),je(r,qp)}function Ro(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&je(r,Kp)}function lS(r){je(r,Cf)}function jp(r){je(r,Qp)}function Jp(r){je(r,eS)}function tg(r){je(r,rS)}function eg(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function rg(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=xf(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){Qp(u)}),s&&e.push(a)),o.isBlured=false}),A(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,false,t)})}function wu(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&jp(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(p){p.__highByOuter&&f&&t==="self"||Cf(p)}),Zt(t))a(u.getData(),t);else if(U(t))for(var d=pt(t),g=0;g<d.length;g++)a(u.getData(d[g]),t[d[g]]);l.push(u),xf(u).isBlured=true}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,true,n)}})}}function bu(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){xf(i).isBlured=true;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Cf(a)})}}}function uS(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=ii(n,t);a=(z(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=rt(o);wu(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&wu(i,f,h,e)}}}function Df(r,t,e,i){var n={focusSelf:false,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(rt(s[u]).focus==="self"){l=true;break}return{focusSelf:l,dispatchers:s}}function fS(r,t,e){var i=rt(r),n=Df(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&bu(i.componentMainType,i.componentIndex,e),A(a,function(s){return _v(s,t)})):(wu(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&bu(i.componentMainType,i.componentIndex,e),_v(r,t))}function hS(r,t,e){rg(e);var i=rt(r),n=Df(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?A(n,function(a){return Sv(a,t)}):Sv(r,t)}function vS(r,t,e){if(Cu(t)){var i=t.dataType,n=r.getData(i),a=ii(n,t);z(a)||(a=[a]),r[t.type===En?"toggleSelect":t.type===Rn?"select":"unselect"](a,i)}}function wv(r){var t=r.getAllData();A(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?Jp(a):tg(a)})})}function cS(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();A(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function xu(r,t,e){ig(r,true),je(r,sS),pS(r,t,e)}function dS(r){ig(r,false)}function $n(r,t,e,i){i?dS(r):xu(r,t,e)}function pS(r,t,e){var i=rt(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var bv=["emphasis","blur","select"],gS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Eo(r,t,e,i){e=e||"itemStyle";for(var n=0;n<bv.length;n++){var a=bv[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[gS[e]]()}}function ig(r,t){var e=t===false,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function Tu(r){return!!(r&&r.__highDownDispatcher)}function yS(r){var t=gv[r];return t==null&&pv<=32&&(t=gv[r]=pv++),t}function Cu(r){var t=r.type;return t===Rn||t===fo||t===En}function xv(r){var t=r.type;return t===Jr||t===uo}function mS(r){var t=Zp(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var pi=ni.CMD,_S=[[],[],[]],Tv=Math.sqrt,SS=Math.atan2;function wS(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=pi.M,h=pi.C,c=pi.L,v=pi.R,d=pi.A,g=pi.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case g:a=2;break;case d:var p=t[4],y=t[5],m=Tv(t[0]*t[0]+t[1]*t[1]),_=Tv(t[2]*t[2]+t[3]*t[3]),S=SS(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=p,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],he(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],he(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=_S[l];b[0]=e[o++],b[1]=e[o++],he(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var ul=Math.sqrt,Aa=Math.sin,La=Math.cos,nn=Math.PI;function Cv(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Du(r,t){return(r[0]*t[0]+r[1]*t[1])/(Cv(r)*Cv(t))}function Dv(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(Du(r,t))}function Mv(r,t,e,i,n,a,o,s,l,u,f){var h=l*(nn/180),c=La(h)*(r-e)/2+Aa(h)*(t-i)/2,v=-1*Aa(h)*(r-e)/2+La(h)*(t-i)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=ul(d),s*=ul(d));var g=(n===a?-1:1)*ul((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,p=g*o*v/s,y=g*-s*c/o,m=(r+e)/2+La(h)*p-Aa(h)*y,_=(t+i)/2+Aa(h)*p+La(h)*y,S=Dv([1,0],[(c-p)/o,(v-y)/s]),b=[(c-p)/o,(v-y)/s],w=[(-1*c-p)/o,(-1*v-y)/s],x=Dv(b,w);if(Du(b,w)<=-1&&(x=nn),Du(b,w)>=1&&(x=0),x<0){var T=Math.round(x/nn*1e6)/1e6;x=nn*2+T%2*nn}f.addData(u,m,_,o,s,S,x,h,a)}var bS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,xS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function TS(r){var t=new ni;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=ni.CMD,l=r.match(bS);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(xS)||[],d=v.length,g=0;g<d;g++)v[g]=parseFloat(v[g]);for(var p=0;p<d;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=e,D=i,M=void 0,C=void 0;switch(h){case"l":e+=v[p++],i+=v[p++],c=s.L,t.addData(c,e,i);break;case"L":e=v[p++],i=v[p++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[p++],i+=v[p++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[p++],i=v[p++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[p++],c=s.L,t.addData(c,e,i);break;case"H":e=v[p++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[p++],c=s.L,t.addData(c,e,i);break;case"V":i=v[p++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[p++],v[p++],v[p++],v[p++],v[p++],v[p++]),e=v[p-2],i=v[p-1];break;case"c":c=s.C,t.addData(c,v[p++]+e,v[p++]+i,v[p++]+e,v[p++]+i,v[p++]+e,v[p++]+i),e+=v[p-2],i+=v[p-1];break;case"S":y=e,m=i,M=t.len(),C=t.data,o===s.C&&(y+=e-C[M-4],m+=i-C[M-3]),c=s.C,T=v[p++],D=v[p++],e=v[p++],i=v[p++],t.addData(c,y,m,T,D,e,i);break;case"s":y=e,m=i,M=t.len(),C=t.data,o===s.C&&(y+=e-C[M-4],m+=i-C[M-3]),c=s.C,T=e+v[p++],D=i+v[p++],e+=v[p++],i+=v[p++],t.addData(c,y,m,T,D,e,i);break;case"Q":T=v[p++],D=v[p++],e=v[p++],i=v[p++],c=s.Q,t.addData(c,T,D,e,i);break;case"q":T=v[p++]+e,D=v[p++]+i,e+=v[p++],i+=v[p++],c=s.Q,t.addData(c,T,D,e,i);break;case"T":y=e,m=i,M=t.len(),C=t.data,o===s.Q&&(y+=e-C[M-4],m+=i-C[M-3]),e=v[p++],i=v[p++],c=s.Q,t.addData(c,y,m,e,i);break;case"t":y=e,m=i,M=t.len(),C=t.data,o===s.Q&&(y+=e-C[M-4],m+=i-C[M-3]),e+=v[p++],i+=v[p++],c=s.Q,t.addData(c,y,m,e,i);break;case"A":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,D=i,e=v[p++],i=v[p++],c=s.A,Mv(T,D,e,i,w,x,_,S,b,c,t);break;case"a":_=v[p++],S=v[p++],b=v[p++],w=v[p++],x=v[p++],T=e,D=i,e+=v[p++],i+=v[p++],c=s.A,Mv(T,D,e,i,w,x,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var ng=function(r){ht(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(ut);function ag(r){return r.setData!=null}function og(r,t){var e=TS(r),i=B({},t);return i.buildPath=function(n){if(ag(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){wS(e,n),this.dirtyShape()},i}function CS(r,t){return new ng(og(r,t))}function DS(r,t){var e=og(r,t),i=function(n){ht(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(ng);return i}function MS(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(true))}var o=new ut(t);return o.createPathProxy(),o.buildPath=function(s){if(ag(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var AS=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),as=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new AS},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(ut);as.prototype.type="circle";var LS=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Mf=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new LS},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(ut);Mf.prototype.type="ellipse";var sg=Math.PI,fl=sg*2,Hr=Math.sin,gi=Math.cos,IS=Math.acos,Rt=Math.atan2,Av=Math.abs,kn=Math.sqrt,bn=Math.max,Ie=Math.min,me=1e-4;function PS(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=h*l-f*u;if(!(c*c<me))return c=(f*(t-a)-h*(r-n))/c,[r+c*l,t+c*u]}function Ia(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/kn(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,d=e+f,g=i+h,p=(c+d)/2,y=(v+g)/2,m=d-c,_=g-v,S=m*m+_*_,b=n-a,w=c*g-d*v,x=(_<0?-1:1)*kn(bn(0,b*b*S-w*w)),T=(w*_-m*x)/S,D=(-w*m-_*x)/S,M=(w*_+m*x)/S,C=(-w*m+_*x)/S,L=T-p,I=D-y,P=M-p,R=C-y;return L*L+I*I>P*P+R*R&&(T=M,D=C),{cx:T,cy:D,x0:-f,y0:-h,x1:T*(n/b-1),y1:D*(n/b-1)}}function RS(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function ES(r,t){var e,i=bn(t.r,0),n=bn(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=Av(u-l),d=v>fl&&v%fl;if(d>me&&(v=d),!(i>me))r.moveTo(f,h);else if(v>fl-me)r.moveTo(f+i*gi(l),h+i*Hr(l)),r.arc(f,h,i,l,u,!c),n>me&&(r.moveTo(f+n*gi(u),h+n*Hr(u)),r.arc(f,h,n,u,l,c));else{var g=void 0,p=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0,x=void 0,T=void 0,D=void 0,M=void 0,C=void 0,L=void 0,I=void 0,P=void 0,R=i*gi(l),E=i*Hr(l),F=n*gi(u),k=n*Hr(u),O=v>me;if(O){var N=t.cornerRadius;N&&(e=RS(N),g=e[0],p=e[1],y=e[2],m=e[3]);var H=Av(i-n)/2;if(_=Ie(H,y),S=Ie(H,m),b=Ie(H,g),w=Ie(H,p),D=x=bn(_,S),M=T=bn(b,w),(x>me||T>me)&&(C=i*gi(u),L=i*Hr(u),I=n*gi(l),P=n*Hr(l),v<sg)){var G=PS(R,E,I,P,C,L,F,k);if(G){var K=R-G[0],et=E-G[1],it=C-G[0],Ht=L-G[1],te=1/Hr(IS((K*it+et*Ht)/(kn(K*K+et*et)*kn(it*it+Ht*Ht)))/2),Qt=kn(G[0]*G[0]+G[1]*G[1]);D=Ie(x,(i-Qt)/(te+1)),M=Ie(T,(n-Qt)/(te-1))}}}if(!O)r.moveTo(f+R,h+E);else if(D>me){var Ct=Ie(y,D),mt=Ie(m,D),X=Ia(I,P,R,E,i,Ct,c),J=Ia(C,L,F,k,i,mt,c);r.moveTo(f+X.cx+X.x0,h+X.cy+X.y0),D<x&&Ct===mt?r.arc(f+X.cx,h+X.cy,D,Rt(X.y0,X.x0),Rt(J.y0,J.x0),!c):(Ct>0&&r.arc(f+X.cx,h+X.cy,Ct,Rt(X.y0,X.x0),Rt(X.y1,X.x1),!c),r.arc(f,h,i,Rt(X.cy+X.y1,X.cx+X.x1),Rt(J.cy+J.y1,J.cx+J.x1),!c),mt>0&&r.arc(f+J.cx,h+J.cy,mt,Rt(J.y1,J.x1),Rt(J.y0,J.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,i,l,u,!c);if(!(n>me)||!O)r.lineTo(f+F,h+k);else if(M>me){var Ct=Ie(g,M),mt=Ie(p,M),X=Ia(F,k,C,L,n,-mt,c),J=Ia(R,E,I,P,n,-Ct,c);r.lineTo(f+X.cx+X.x0,h+X.cy+X.y0),M<T&&Ct===mt?r.arc(f+X.cx,h+X.cy,M,Rt(X.y0,X.x0),Rt(J.y0,J.x0),!c):(mt>0&&r.arc(f+X.cx,h+X.cy,mt,Rt(X.y0,X.x0),Rt(X.y1,X.x1),!c),r.arc(f,h,n,Rt(X.cy+X.y1,X.cx+X.x1),Rt(J.cy+J.y1,J.cx+J.x1),c),Ct>0&&r.arc(f+J.cx,h+J.cy,Ct,Rt(J.y1,J.x1),Rt(J.y0,J.x0),!c))}else r.lineTo(f+F,h+k),r.arc(f,h,n,u,l,c)}r.closePath()}}}var kS=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=true,this.cornerRadius=0}return r}(),Cr=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new kS},t.prototype.buildPath=function(e,i){ES(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ut);Cr.prototype.type="sector";var OS=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),Af=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new OS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,false),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,true)},t}(ut);Af.prototype.type="ring";function BS(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Di(f,f,r[c]),Mi(h,h,r[c]);Di(f,f,i[0]),Mi(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){n.push(_0(r[c]));continue}else l=r[c-1],u=r[c+1];S0(a,u,l),Ms(a,a,t);var g=tu(d,l),p=tu(d,u),y=g+p;y!==0&&(g/=y,p/=y),Ms(o,a,-g),Ms(s,a,p);var m=Sh([],d,o),_=Sh([],d,s);i&&(Mi(m,m,f),Di(m,m,h),Mi(_,_,f),Di(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function lg(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=BS(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var NS=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),Lf=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new NS},t.prototype.buildPath=function(e,i){lg(e,i,true)},t}(ut);Lf.prototype.type="polygon";var FS=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),la=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new FS},t.prototype.buildPath=function(e,i){lg(e,i,false)},t}(ut);la.prototype.type="polyline";var zS={},HS=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),wr=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new HS},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Xp(zS,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(ut);wr.prototype.type="line";var Gt=[],GS=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function Lv(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?Ph:Lt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Ph:Lt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Rh:Ut)(r.x1,r.cpx1,r.x2,t),(e?Rh:Ut)(r.y1,r.cpy1,r.y2,t)]}var If=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new GS},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(xo(n,l,o,c,Gt),l=Gt[1],o=Gt[2],xo(a,u,s,c,Gt),u=Gt[1],s=Gt[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(bo(n,l,f,o,c,Gt),l=Gt[1],f=Gt[2],o=Gt[3],bo(a,u,h,s,c,Gt),u=Gt[1],h=Gt[2],s=Gt[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return Lv(this.shape,e,false)},t.prototype.tangentAt=function(e){var i=Lv(this.shape,e,true);return x0(i,i)},t}(ut);If.prototype.type="bezier-curve";var VS=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=true}return r}(),os=function(r){ht(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new VS},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t}(ut);os.prototype.type="arc";var WS=function(r){ht(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,true)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ut.prototype.getBoundingRect.call(this)},t}(ut),ug=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),fg=function(r){ht(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e??0,l.y=i??0,l.x2=n??1,l.y2=a??0,l.type="linear",l.global=s||false,l}return t}(ug),US=function(r){ht(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=i??.5,s.r=n??.5,s.type="radial",s.global=o||false,s}return t}(ug),Gr=[0,0],Vr=[0,0],Pa=new Z,Ra=new Z,ko=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new Z;for(var i=0;i<2;i++)this._axes[i]=new Z;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);Z.sub(n[0],i[1],i[0]),Z.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=true,n=!e;return Pa.set(1/0,1/0),Ra.set(0,0),!this._intersectCheckOneSide(this,t,Pa,Ra,n,1)&&(i=false,n)||!this._intersectCheckOneSide(t,this,Pa,Ra,n,-1)&&(i=false,n)||n||Z.copy(e,i?Pa:Ra),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=true,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Gr),this._getProjMinMaxOnAxis(l,e._corners,Vr),Gr[1]<Vr[0]||Gr[0]>Vr[1]){if(s=false,a)return s;var f=Math.abs(Vr[0]-Gr[1]),h=Math.abs(Gr[0]-Vr[1]);Math.min(f,h)>n.len()&&(f<h?Z.scale(n,u,-f*o):Z.scale(n,u,h*o))}else if(i){var f=Math.abs(Vr[0]-Gr[1]),h=Math.abs(Gr[0]-Vr[1]);Math.min(f,h)<i.len()&&(f<h?Z.scale(i,u,f*o):Z.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}(),YS=[],XS=function(r){ht(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=true,e.incremental=true,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,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=false},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||false;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ot(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(YS)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return true}return false},t}(sa),$S=wt();function ZS(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=Q(i.duration,200),f=Q(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),q(h)&&(h=h(e,n)),q(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Pf(r,t,e,i,n,a,o){var s=false,l;q(n)?(o=a,a=n,n=null):U(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=ZS(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function zt(r,t,e,i,n,a){Pf("update",r,t,e,i,n,a)}function ve(r,t,e,i,n,a){Pf("enter",r,t,e,i,n,a)}function On(r){if(!r.__zr)return true;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return true}return false}function Oo(r,t,e,i,n,a){On(r)||Pf("leave",r,t,e,i,n,a)}function Iv(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Oo(r,{style:{opacity:0}},t,e,i)}function Bo(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Iv(n,t,e,i)}):Iv(r,t,e,i)}function Rf(r){$S(r).oldStyle=r.style}var No=Math.max,Fo=Math.min,Mu={};function qS(r){return ut.extend(r)}var KS=DS;function QS(r,t){return KS(r,t)}function Te(r,t){Mu[r]=t}function jS(r){if(Mu.hasOwnProperty(r))return Mu[r]}function Ef(r,t,e,i){var n=CS(r,t);return e&&(i==="center"&&(e=vg(e,n.getBoundingRect())),cg(n,e)),n}function hg(r,t,e){var i=new Tr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(vg(t,a))}}});return i}function vg(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var JS=MS;function cg(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Zn(r,t){return Xp(r,r,{lineWidth:t}),r}function tw(r){return $p(r.shape,r.shape,r.style),r}var ew=qr;function rw(r,t){for(var e=vf([]);r&&r!==t;)Ri(e,r.getLocalTransform(),e),r=r.parent;return e}function kf(r,t,e){return t&&!Zt(t)&&(t=gf.getLocalTransform(t)),e&&(t=df([],t)),he([],r,t)}function iw(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=kf(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Pv(r){return!r.isGroup}function nw(r){return r.shape!=null}function dg(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){Pv(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return nw(o)&&(s.shape=B({},o.shape)),s}var a=i(r);t.traverse(function(o){if(Pv(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),zt(o,l,e,rt(o).dataIndex)}}})}function aw(r,t){return W(r,function(e){var i=e[0];i=No(i,t.x),i=Fo(i,t.x+t.width);var n=e[1];return n=No(n,t.y),n=Fo(n,t.y+t.height),[i,n]})}function ow(r,t){var e=No(r.x,t.x),i=Fo(r.x+r.width,t.x+t.width),n=No(r.y,t.y),a=Fo(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function Of(r,t,e){var i=B({rectHover:true},t),n=i.style={strokeNoScale:true};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),st(n,e),new Tr(i)):Ef(r.replace("path://",""),i,e,"center")}function sw(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(pg(r,t,e,i,s[0],s[1],o[0],o[1]))return true;o=s}}function pg(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=hl(f,h,l,u);if(lw(c))return false;var v=r-n,d=t-a,g=hl(v,d,l,u)/c;if(g<0||g>1)return false;var p=hl(v,d,f,h)/c;return!(p<0||p>1)}function hl(r,t,e,i){return r*i-e*t}function lw(r){return r<=1e-6&&r>=-1e-6}function ss(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=V(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&A(pt(l),function(f){ri(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=rt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:st({content:i,encodeHTMLContent:true,formatterParams:s},n)}}function Rv(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function ls(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)Rv(r[e],t);else Rv(r,t)}Te("circle",as);Te("ellipse",Mf);Te("sector",Cr);Te("ring",Af);Te("polygon",Lf);Te("polyline",la);Te("rect",xt);Te("line",wr);Te("bezierCurve",If);Te("arc",os);const uw=Object.freeze(Object.defineProperty({__proto__:null,Arc:os,BezierCurve:If,BoundingRect:ot,Circle:as,CompoundPath:WS,Ellipse:Mf,Group:It,Image:Tr,IncrementalDisplayable:XS,Line:wr,LinearGradient:fg,OrientedBoundingRect:ko,Path:ut,Point:Z,Polygon:Lf,Polyline:la,RadialGradient:US,Rect:xt,Ring:Af,Sector:Cr,Text:Pt,applyTransform:kf,clipPointsByRect:aw,clipRectByRect:ow,createIcon:Of,extendPath:QS,extendShape:qS,getShapeClass:jS,getTransform:rw,groupTransition:dg,initProps:ve,isElementRemoved:On,lineLineIntersect:pg,linePolygonIntersect:sw,makeImage:hg,makePath:Ef,mergePath:JS,registerShape:Te,removeElement:Oo,removeElementWithFadeOut:Bo,resizePath:cg,setTooltipConfig:ss,subPixelOptimize:ew,subPixelOptimizeLine:Zn,subPixelOptimizeRect:tw,transformDirection:iw,traverseElements:ls,updateProps:zt},Symbol.toStringTag,{value:"Module"}));var us={};function fw(r,t){for(var e=0;e<de.length;e++){var i=de[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(true),r.setStyle({text:t.normal}),r.useStates(o,true)}function Ev(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=q(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<de.length;u++){var f=de[u],h=t[f];l[f]=Q(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function ua(r,t,e,i){e=e||us;for(var n=r instanceof Pt,a=false,o=0;o<Io.length;o++){var s=t[Io[o]];if(s&&s.getShallow("show")){a=true;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new Pt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Ev(e,t),f=t.normal,h=!!f.getShallow("show"),c=br(f,i&&i.normal,e,false,!n);c.text=u.normal,n||r.setTextConfig(kv(f,e,false));for(var o=0;o<de.length;o++){var v=de[o],s=t[v];if(s){var d=l.ensureState(v),g=!!Q(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=br(s,i&&i[v],e,true,!n),d.style.text=u[v],!n){var p=r.ensureState(v);p.textConfig=kv(s,e,true)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(fs(l).setLabelText=function(y){var m=Ev(e,t,y);fw(l,m)})}else l&&(l.ignore=true);r.dirty()}function fa(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<de.length;i++){var n=de[i];e[n]=r.getModel([n,t])}return e}function br(r,t,e,i,n){var a={};return hw(a,r,e,i,n),t&&B(a,t),a}function kv(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=Q(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function hw(r,t,e,i,n){e=e||us;var a=t.ecModel,o=a&&a.option.textStyle,s=vw(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);Fv(l[u]={},f,o,e,i,n,false,true)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),Fv(r,t,o,e,i,n,true,false)}function vw(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||us).rich;if(e){t=t||{};for(var i=pt(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var Ov=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Bv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Nv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Fv(r,t,e,i,n,a,o,s){e=!n&&e||us;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=Q(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=Q(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=Q(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=Q(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<Ov.length;g++){var p=Ov[g],y=Q(t.getShallow(p),e[p]);y!=null&&(r[p]=y)}for(var g=0;g<Bv.length;g++){var p=Bv[g],y=t.getShallow(p);y!=null&&(r[p]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!i.disableBox){for(var g=0;g<Nv.length;g++){var p=Nv[g],y=t.getShallow(p);y!=null&&(r[p]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function cw(r,t){var e=t&&t.getModel("textStyle");return ke([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var fs=wt();function dw(r,t,e,i){if(r){var n=fs(r);n.prevValue=n.value,n.value=e;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}var pw=["textStyle","color"],vl=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],cl=new Pt,gw=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(pw):null)},r.prototype.getFont=function(){return cw({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<vl.length;i++)e[vl[i]]=this.getShallow(vl[i]);return cl.useStyle(e),cl.update(),cl.getBoundingRect()},r}(),gg=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yw=Xn(gg),mw=function(){function r(){}return r.prototype.getLineStyle=function(t){return yw(this,t)},r}(),yg=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_w=Xn(yg),Sw=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return _w(this,t,e)},r}(),yt=function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){at(this.option,t,true)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(tt(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!$.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r}();bf(yt);o1(yt);Ne(yt,mw);Ne(yt,Sw);Ne(yt,h1);Ne(yt,gw);var ww=Math.round(Math.random()*10);function hs(r){return[r||"",ww++].join("_")}function bw(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=Oe(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=Oe(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function xw(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(A(a,function(m){c[m]=true});h.length;){var v=h.pop(),d=f[v],g=!!c[v];g&&(s.call(l,v,d.originalDeps.slice()),delete c[v]),A(d.successor,g?y:p)}A(c,function(){var m="";throw new Error(m)});function p(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=true,p(m)}};function e(a){var o={},s=[];return A(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),A(h,function(c){ft(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);ft(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return A(a,function(l){ft(o,l)>=0&&s.push(l)}),s}}function mg(r,t){return at(at({},r,true),t,true)}const Tw={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:". "}}}},Cw={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var zo="ZH",Bf="EN",ki=Bf,ho={},Nf={},_g=$.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ki).toUpperCase();return r.indexOf(zo)>-1?zo:ki}():ki;function Sg(r,t){r=r.toUpperCase(),Nf[r]=new yt(t),ho[r]=t}function Dw(r){if(V(r)){var t=ho[r.toUpperCase()]||{};return r===zo||r===Bf?tt(t):at(tt(t),tt(ho[ki]),false)}else return at(tt(r),tt(ho[ki]),false)}function Mw(r){return Nf[r]}function Aw(){return Nf[ki]}Sg(Bf,Tw);Sg(zo,Cw);var Ff=1e3,zf=Ff*60,Bn=zf*60,fe=Bn*24,zv=fe*365,xn={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ea="{yyyy}-{MM}-{dd}",Hv={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ea,hour:Ea+" "+xn.hour,minute:Ea+" "+xn.minute,second:Ea+" "+xn.second,millisecond:xn.none},dl=["year","month","day","hour","minute","second","millisecond"],wg=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function rr(r,t){return r+="","0000".substr(0,t-r.length)+r}function Oi(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function Lw(r){return r===Oi(r)}function Iw(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vs(r,t,e,i){var n=Qe(r),a=n[Hf(e)](),o=n[Bi(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[cs(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[qn(e)](),h=(f-1)%12+1,c=n[ds(e)](),v=n[ps(e)](),d=n[gs(e)](),g=f>=12?"pm":"am",p=g.toUpperCase(),y=i instanceof yt?i:Mw(i||_g)||Aw(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,p+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,rr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,rr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,rr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,rr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,rr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,rr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,rr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,rr(d,3)).replace(/{S}/g,d+"")}function Pw(r,t,e,i,n){var a=null;if(V(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},xn);if(r.level>0)for(var s=0;s<dl.length;++s)o[dl[s]]="{primary|"+o[dl[s]]+"}";var l=e?e.inherit===false?e:st(e,o):o,u=bg(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=wg.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return vs(new Date(r.value),a,n,i)}function bg(r,t){var e=Qe(r),i=e[Bi(t)]()+1,n=e[cs(t)](),a=e[qn(t)](),o=e[ds(t)](),s=e[ps(t)](),l=e[gs(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,d=v&&i===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Gv(r,t,e){var i=vt(r)?Qe(r):r;switch(t=t||bg(r,e),t){case"year":return i[Hf(e)]();case"half-year":return i[Bi(e)]()>=6?1:0;case"quarter":return Math.floor((i[Bi(e)]()+1)/4);case"month":return i[Bi(e)]();case"day":return i[cs(e)]();case"half-day":return i[qn(e)]()/24;case"hour":return i[qn(e)]();case"minute":return i[ds(e)]();case"second":return i[ps(e)]();case"millisecond":return i[gs(e)]()}}function Hf(r){return r?"getUTCFullYear":"getFullYear"}function Bi(r){return r?"getUTCMonth":"getMonth"}function cs(r){return r?"getUTCDate":"getDate"}function qn(r){return r?"getUTCHours":"getHours"}function ds(r){return r?"getUTCMinutes":"getMinutes"}function ps(r){return r?"getUTCSeconds":"getSeconds"}function gs(r){return r?"getUTCMilliseconds":"getMilliseconds"}function Rw(r){return r?"setUTCFullYear":"setFullYear"}function xg(r){return r?"setUTCMonth":"setMonth"}function Tg(r){return r?"setUTCDate":"setDate"}function Cg(r){return r?"setUTCHours":"setHours"}function Dg(r){return r?"setUTCMinutes":"setMinutes"}function Mg(r){return r?"setUTCSeconds":"setSeconds"}function Ag(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Lg(r){if(!z_(r))return V(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Ig(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ys=sp;function Au(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&ke(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Qe(r):r;if(isNaN(+l)){if(s)return"-"}else return vs(l,i,e)}if(t==="ordinal")return Ql(r)?n(r):vt(r)&&a(r)?r+"":"-";var u=Ao(r);return a(u)?Lg(u):Ql(r)?n(r):typeof r=="boolean"?r+"":"-"}var Vv=["a","b","c","d","e","f","g"],pl=function(r,t){return"{"+r+(t??"")+"}"};function Pg(r,t,e){z(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Vv[a];r=r.replace(pl(o),pl(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(pl(Vv[l],s),e?Wt(u):u)}return r}function Ew(r,t){var e=V(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Wt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Wt(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function ai(r,t){return t=t||"transparent",V(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Wv(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vo=A,kw=["left","right","top","bottom","width","height"],ka=[["width","left","right"],["height","top","bottom"]];function Gf(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var g=f.width+(c?-c.x+f.x:0);v=a+g,v>i||l.newline?(a=0,v=g,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var p=f.height+(c?-c.y+f.y:0);d=o+p,d>n||l.newline?(a+=s+e,o=0,d=p,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var Nn=Gf;St(Gf,"vertical");St(Gf,"horizontal");function Ni(r,t,e){e=ys(e||0);var i=t.width,n=t.height,a=dt(r.left,i),o=dt(r.top,n),s=dt(r.right,i),l=dt(r.bottom,n),u=dt(r.width,i),f=dt(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var d=new ot(a+e[3],o+e[0],u,f);return d.margin=e,d}function Kn(r){var t=r.layoutMode||r.constructor.layoutMode;return U(t)?t:t?{type:t}:null}function Fi(r,t,e){var i=e&&e.ignoreSize;!z(i)&&(i=[i,i]);var n=o(ka[0],0),a=o(ka[1],1);u(ka[0],r,n),u(ka[1],r,a);function o(f,h){var c={},v=0,d={},g=0,p=2;if(vo(f,function(_){d[_]=r[_]}),vo(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),l(c,_)&&v++,l(d,_)&&g++}),i[h])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(g===p||!v)return d;if(v>=p)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){vo(f,function(v){h[v]=c[v]})}}function ms(r){return Ow({},r)}function Ow(r,t){return t&&r&&vo(kw,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var Bw=wt(),lt=function(r){Y(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=hs("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Kn(this),a=n?ms(e):{},o=i.getTheme();at(e,o.get(this.mainType)),at(e,this.getDefaultOption()),n&&Fi(e,a,n)},t.prototype.mergeOption=function(e,i){at(this.option,e,true);var n=Kn(this);n&&Fi(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!i1(e))return e.defaultOption;var i=Bw(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=at(s,n[l],true);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return oa(this.ecModel,e,{index:this.get(n,true),id:this.get(a,true)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},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}(yt);Fp(lt,yt);Jo(lt);bw(lt);xw(lt,Nw);function Nw(r){var t=[];return A(lt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=W(t,function(e){return Oe(e).main}),r!=="dataset"&&ft(t,"dataset")<=0&&t.unshift("dataset"),t}var Rg="";typeof navigator<"u"&&(Rg=navigator.platform||"");var yi="rgba(0, 0, 0, 0.2)";const Fw={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Rg.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:false};var Eg=j(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pe="original",Kt="arrayRows",Ce="objectRows",ze="keyedColumns",yr="typedArray",kg="unknown",qe="column",Ui="row",Dt={Must:1,Might:2,Not:3},Og=wt();function zw(r){Og(r).datasetMap=j()}function Hw(r,t,e){var i={},n=Vf(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=Og(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),A(r,function(g,p){var y=U(g)?g:r[p]={name:g};y.type==="ordinal"&&f==null&&(f=p,h=d(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});A(r,function(g,p){var y=g.name,m=d(g);if(f==null){var _=c.valueWayDim;v(i[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===p)v(i[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(g,p,y){for(var m=0;m<y;m++)g.push(p+m)}function d(g){var p=g.dimsDef;return p?p.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function Gw(r,t,e){var i={},n=Vf(r);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ce||a===ze)&&A(o,function(f,h){(U(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var g=Ng(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(g);var p=g===Dt.Not;if(p&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!p&&c[f.n]===Dt.Not)&&(f.n=v),y(f)&&c[f.n]!==Dt.Not)return f;p||(g===Dt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function Vf(r){var t=r.get("data",true);if(!t)return oa(r.ecModel,"dataset",{index:r.get("datasetIndex",true),id:r.get("datasetId",true)},we).models[0]}function Vw(r){return!r.get("transform",true)&&!r.get("fromTransformResult",true)?[]:oa(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",true),id:r.get("fromDatasetId",true)},we).models}function Bg(r,t){return Ng(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function Ng(r,t,e,i,n,a){var o,s=5;if(qt(r))return Dt.Not;var l,u;if(i){var f=i[a];U(f)?(l=f.name,u=f.type):V(f)&&(l=f)}if(u!=null)return u==="ordinal"?Dt.Must:Dt.Not;if(t===Kt){var h=r;if(e===Ui){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[n+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===Ce){var g=r;if(!l)return Dt.Not;for(var v=0;v<g.length&&v<s;v++){var p=g[v];if(p&&(o=S(p[l]))!=null)return o}}else if(t===ze){var y=r;if(!l)return Dt.Not;var c=y[l];if(!c||qt(c))return Dt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===pe)for(var m=r,v=0;v<m.length&&v<s;v++){var p=m[v],_=aa(p);if(!z(_))return Dt.Not;if((o=S(_[a]))!=null)return o}function S(b){var w=V(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return w?Dt.Might:Dt.Not;if(w&&b!=="-")return Dt.Must}return Dt.Not}var Ww=j();function Uw(r,t,e){var i=Ww.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var Uv=wt();wt();var Wf=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Ft(this.get("color",true)),a=this.get("colorLayer",true);return Xw(this,Uv,n,a,t,e,i)},r.prototype.clearColorPalette=function(){$w(this,Uv)},r}();function Yw(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function Xw(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:Yw(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function $w(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Oa,an,Yv,Xv="\0_ec_inner",Zw=1,Uf=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new yt(a),this._locale=new yt(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=qv(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,qv(i))},t.prototype._resetOption=function(e,i){var n=false,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Yv(this,o):(this.restoreData(),this._mergeOption(o,i)),n=true}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=true,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&A(l,function(u){n=true,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=j(),u=i&&i.replaceMergeMainTypeMap;zw(this),A(e,function(h,c){h!=null&&(lt.hasClass(c)?c&&(s.push(c),l.set(c,true)):n[c]=n[c]==null?tt(h):at(n[c],h,true))}),u&&u.each(function(h,c){lt.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,true))}),lt.topologicalTravel(s,lt.getAllClassMainTypes(),f,this);function f(h){var c=Uw(this,h,Ft(e[h])),v=a.get(h),d=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=V_(v,c,d);q_(g,h,lt),n[h]=null,a.set(h,null),o.set(h,0);var p=[],y=[],m=0,_;A(g,function(S,b){var w=S.existing,x=S.newOption;if(!x)w&&(w.mergeOption({},this),w.optionUpdated({},false));else{var T=h==="series",D=lt.getClass(h,S.keyInfo.subType,!T);if(!D)return;if(h==="tooltip"){if(_)return;_=true}if(w&&w.constructor===D)w.name=S.keyInfo.name,w.mergeOption(x,this),w.optionUpdated(x,false);else{var M=B({componentIndex:b},S.keyInfo);w=new D(x,this,this,M),B(w,M),S.brandNew&&(w.__requireNewView=true),w.init(x,this,this),w.optionUpdated(null,true)}}w?(p.push(w.option),y.push(w),m++):(p.push(void 0),y.push(void 0))},this),n[h]=p,a.set(h,y),o.set(h,m),h==="series"&&Oa(this)}this._seriesIndices||Oa(this)},t.prototype.getOption=function(){var e=tt(this.option);return A(e,function(i,n){if(lt.hasClass(n)){for(var a=Ft(i),o=a.length,s=false,l=o-1;l>=0;l--)a[l]&&!Yn(a[l])?s=true:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Xv],e},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,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],A(Ft(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=$v("id",a,s):o!=null?l=$v("name",o,s):l=At(s,function(u){return!!u}),Zv(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):At(this._componentsMap.get(n),function(u){return!!u});return l(Zv(o,e));function s(u){var f=n+"Index",h=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?At(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(q(e)){var o=i,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var l=V(e)?a.get(e):U(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Be(e,null);return At(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return At(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return At(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){an(this),A(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){A(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){an(this),A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return A(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return an(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){an(this);var n=[];A(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=j(n)},t.prototype.restoreData=function(e){Oa(this);var i=this._componentsMap,n=[];i.each(function(a,o){lt.hasClass(o)&&n.push(o)}),lt.topologicalTravel(n,lt.getAllClassMainTypes(),function(a){A(i.get(a),function(o){o&&(a!=="series"||!qw(o,e))&&o.restoreData()})})},t.internalField=function(){Oa=function(e){var i=e._seriesIndices=[];A(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=j(i)},an=function(e){},Yv=function(e,i){e.option={},e.option[Xv]=Zw,e._componentsMap=j({series:[]}),e._componentsCount=j();var n=i.aria;U(n)&&n.enabled==null&&(n.enabled=true),Kw(i,e._theme.option),at(i,Fw,false),e._mergeOption(i,null)}}(),t}(yt);function qw(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function Kw(r,t){var e=r.color&&!r.colorLayer;A(t,function(i,n){n==="colorLayer"&&e||lt.hasClass(n)||(typeof i=="object"?r[n]=r[n]?at(r[n],i,false):tt(i):r[n]==null&&(r[n]=i))})}function $v(r,t,e){if(z(t)){var i=j();return A(t,function(a){if(a!=null){var o=Be(a,null);o!=null&&i.set(a,true)}}),At(e,function(a){return a&&i.get(a[r])})}else{var n=Be(t,null);return At(e,function(a){return a&&n!=null&&a[r]===n})}}function Zv(r,t){return t.hasOwnProperty("subType")?At(r,function(e){return e&&e.subType===t.subType}):r}function qv(r){var t=j();return r&&A(Ft(r.replaceMerge),function(e){t.set(e,true)}),{replaceMergeMainTypeMap:t}}Ne(Uf,Wf);var Qw=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fg=function(){function r(t){A(Qw,function(e){this[e]=ct(t[e],t)},this)}return r}(),gl={},Yf=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];A(gl,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){A(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){gl[t]=e},r.get=function(t){return gl[t]},r}(),jw=/^(min|max)?(.+)$/,Jw=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(A(Ft(t.series),function(o){o&&o.data&&qt(o.data)&&jl(o.data)}),A(Ft(t.dataset),function(o){o&&o.source&&qt(o.source)&&jl(o.source)})),t=tt(t);var n=this._optionBackup,a=tb(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tt(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=tt(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)eb(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!ib(o,this._currentMediaIndices)&&(s=W(o,function(f){return tt(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function tb(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&z(u)&&A(u,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),A(l,function(v){return c(v)}),A(i,function(v){return c(v.option)});function c(v){A(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function eb(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=true;return A(r,function(a,o){var s=o.match(jw);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();rb(i[u],a,l)||(n=false)}}),n}function rb(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function ib(r,t){return r.join(",")===t.join(",")}var ge=A,Qn=U,Kv=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function yl(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=Kv.length;e<i;e++){var n=Kv[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?at(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?at(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Ot(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,st(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Tn(r){Ot(r,"itemStyle"),Ot(r,"lineStyle"),Ot(r,"areaStyle"),Ot(r,"label"),Ot(r,"labelLine"),Ot(r,"upperLabel"),Ot(r,"edgeLabel")}function _t(r,t){var e=Qn(r)&&r[t],i=Qn(e)&&e.textStyle;if(i)for(var n=0,a=jh.length;n<a;n++){var o=jh[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function ae(r){r&&(Tn(r),_t(r,"label"),r.emphasis&&_t(r.emphasis,"label"))}function nb(r){if(Qn(r)){yl(r),Tn(r),_t(r,"label"),_t(r,"upperLabel"),_t(r,"edgeLabel"),r.emphasis&&(_t(r.emphasis,"label"),_t(r.emphasis,"upperLabel"),_t(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(yl(t),ae(t));var e=r.markLine;e&&(yl(e),ae(e));var i=r.markArea;i&&ae(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!qt(a))for(var o=0;o<a.length;o++)ae(a[o]);A(r.categories,function(u){Tn(u)})}if(n&&!qt(n))for(var o=0;o<n.length;o++)ae(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ae(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(ae(l[o][0]),ae(l[o][1])):ae(l[o]);r.type==="gauge"?(_t(r,"axisLabel"),_t(r,"title"),_t(r,"detail")):r.type==="treemap"?(Ot(r.breadcrumb,"itemStyle"),A(r.levels,function(u){Tn(u)})):r.type==="tree"&&Tn(r.leaves)}}function We(r){return z(r)?r:r?[r]:[]}function Qv(r){return(z(r)?r[0]:r)||{}}function ab(r,t){ge(We(r.series),function(i){Qn(i)&&nb(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ge(e,function(i){ge(We(r[i]),function(n){n&&(_t(n,"axisLabel"),_t(n.axisPointer,"label"))})}),ge(We(r.parallel),function(i){var n=i&&i.parallelAxisDefault;_t(n,"axisLabel"),_t(n&&n.axisPointer,"label")}),ge(We(r.calendar),function(i){Ot(i,"itemStyle"),_t(i,"dayLabel"),_t(i,"monthLabel"),_t(i,"yearLabel")}),ge(We(r.radar),function(i){_t(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),ge(We(r.geo),function(i){Qn(i)&&(ae(i),ge(We(i.regions),function(n){ae(n)}))}),ge(We(r.timeline),function(i){ae(i),Ot(i,"label"),Ot(i,"itemStyle"),Ot(i,"controlStyle",true);var n=i.data;z(n)&&A(n,function(a){U(a)&&(Ot(a,"label"),Ot(a,"itemStyle"))})}),ge(We(r.toolbox),function(i){Ot(i,"iconStyle"),ge(i.feature,function(n){Ot(n,"iconStyle")})}),_t(Qv(r.axisPointer),"label"),_t(Qv(r.tooltip).axisPointer,"label")}function ob(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function sb(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function jv(r){r&&A(lb,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var lb=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ub=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ml=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function on(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<ml.length;e++){var i=ml[e][1],n=ml[e][0];t[i]!=null&&(t[n]=t[i])}}function Jv(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function tc(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function fb(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function zg(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&zg(r[e].children,t)}function Hg(r,t){ab(r,t),r.series=Ft(r.series),A(r.series,function(e){if(U(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Jv(e.label);var n=e.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)Jv(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=ob(e,"pointer.color");o!=null&&sb(e,"itemStyle.color",o)}else if(i==="bar"){on(e),on(e.backgroundStyle),on(e.emphasis);var n=e.data;if(n&&!qt(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(on(n[a]),on(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),tc(e),zg(e.data,tc)}else i==="graph"||i==="sankey"?fb(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&st(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),jv(e)}}),r.dataRange&&(r.visualMap=r.dataRange),A(ub,function(e){var i=r[e];i&&(z(i)||(i=[i]),A(i,function(n){jv(n)}))})}function hb(r){var t=j();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(vb)}function vb(r){A(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var g=NaN,p=e-1;p>=0;p--){var y=r[p];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=B_(c,m),g=m;break}}}return i[0]=c,i[1]=g,i})})}var _s=function(){function r(t){this.data=t.data||(t.sourceFormat===ze?{}:[]),this.sourceFormat=t.sourceFormat||kg,this.seriesLayoutBy=t.seriesLayoutBy||qe,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&Bg(this,i)===Dt.Must&&(n.type="ordinal")}}return r}();function Xf(r){return r instanceof _s}function Lu(r,t,e){e=e||Vg(r);var i=t.seriesLayoutBy,n=db(r,e,i,t.sourceHeader,t.dimensions),a=new _s({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:tt(t)});return a}function Gg(r){return new _s({data:r,sourceFormat:qt(r)?yr:pe})}function cb(r){return new _s({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:tt(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Vg(r){var t=kg;if(qt(r))t=yr;else if(z(r)){r.length===0&&(t=Kt);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(z(n)||qt(n)){t=Kt;break}else if(U(n)){t=Ce;break}}}}else if(U(r)){for(var a in r)if(ri(r,a)&&Zt(r[a])){t=ze;break}}return t}function db(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:ec(n),startIndex:o,dimensionsDetectedCount:a};if(t===Kt){var s=r;i==="auto"||i==null?rc(function(u){u!=null&&u!=="-"&&(V(u)?o==null&&(o=1):o=0)},e,s,10):o=vt(i)?i:i?1:0,!n&&o===1&&(n=[],rc(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===Ui?s.length:s[0]?s[0].length:null}else if(t===Ce)n||(n=pb(r));else if(t===ze)n||(n=[],A(r,function(u,f){n.push(f)}));else if(t===pe){var l=aa(r[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:ec(n),dimensionsDetectedCount:a}}function pb(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return pt(e)}function ec(r){if(r){var t=j();return W(r,function(e,i){e=U(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function rc(r,t,e,i){if(t===Ui)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function Wg(r){var t=r.sourceFormat;return t===Ce||t===ze}var Wr,Ur,Yr,ic,nc,Ug=function(){function r(t,e){var i=Xf(t)?t:Gg(t);this._source=i;var n=this._data=i.data;i.sourceFormat===yr&&(this._offset=0,this._dimSize=e,this._data=n),nc(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=false,t.persistent=true}(),r.internalField=function(){var t;nc=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=ic[$f(u,f)];if(B(o,v),u===yr)o.getItem=e,o.count=n,o.fillStorage=i;else{var d=Yg(u,f);o.getItem=ct(d,null,s,h,c);var g=Xg(u,f);o.count=ct(g,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],d=v[0]==null?1/0:v[0],g=v[1]==null?-1/0:v[1],p=s-o,y=l[c],m=0;m<p;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>g&&(g=_)}v[0]=d,v[1]=g}},n=function(){return this._data?this._data.length/this._dimSize:0};ic=(t={},t[Kt+"_"+qe]={pure:true,appendData:a},t[Kt+"_"+Ui]={pure:true,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ce]={pure:true,appendData:a},t[ze]={pure:true,appendData:function(o){var s=this._data;A(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[pe]={appendData:a},t[yr]={persistent:false,pure:true,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),ac=function(r,t,e,i){return r[i]},gb=(Wr={},Wr[Kt+"_"+qe]=function(r,t,e,i){return r[i+t]},Wr[Kt+"_"+Ui]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Wr[Ce]=ac,Wr[ze]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[i]:null}return a},Wr[pe]=ac,Wr);function Yg(r,t){var e=gb[$f(r,t)];return e}var oc=function(r,t,e){return r.length},yb=(Ur={},Ur[Kt+"_"+qe]=function(r,t,e){return Math.max(0,r.length-t)},Ur[Kt+"_"+Ui]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ur[Ce]=oc,Ur[ze]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Ur[pe]=oc,Ur);function Xg(r,t){var e=yb[$f(r,t)];return e}var _l=function(r,t,e){return r[t]},mb=(Yr={},Yr[Kt]=_l,Yr[Ce]=function(r,t,e){return r[e]},Yr[ze]=_l,Yr[pe]=function(r,t,e){var i=aa(r);return i instanceof Array?i[t]:i},Yr[yr]=_l,Yr);function $g(r){var t=mb[r];return t}function $f(r,t){return r===Kt?r+"_"+t:r}function zi(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return $g(a)(i,o,s)}else{var l=i;return a===pe&&(l=aa(i)),l}}}}var _b=/\{@(.+?)\}/g,Sb=function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&z(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(a))return l.status=e,l.dimensionIndex=n,a(l);if(V(a)){var f=Pg(a,l);return f.replace(_b,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var g=zi(s,t,d);if(o&&z(o.interpolatedValue)){var p=s.getDimensionIndex(d);p>=0&&(g=o.interpolatedValue[p])}return g!=null?g+"":""})}},r.prototype.getRawValue=function(t,e){return zi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function sc(r){var t,e;return U(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Fn(r){return new wb(r)}var wb=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=true}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=false,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<d)){var g=this._progress;if(z(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],v,d,l,u);else this._doProgress(g,v,d,l,u)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=true,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){lc.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:lc.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=false,this._disposed=true)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),lc=function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}}();function co(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!vt(r)&&r!=null&&r!=="-"&&(r=+Qe(r)),r==null||r===""?NaN:Number(r))}j({number:function(r){return parseFloat(r)},time:function(r){return+Qe(r)},trim:function(r){return V(r)?ke(r):r}});var bb=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=vt(t)?t:Ao(t),n=vt(e)?e:Ao(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=V(t),l=V(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),xb=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return co(t,e)},r}();function Tb(r,t){var e=new xb,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==qe&&Yt(o);var s=[],l={},u=r.dimensionsDefine;if(u)A(u,function(g,p){var y=g.name,m={index:p,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";ri(l,y)&&Yt(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=Yg(n,qe);t.__isBuiltIn&&(e.getRawDataItem=function(g){return h(i,a,s,g)},e.getRawData=ct(Cb,null,r)),e.cloneRawData=ct(Db,null,r);var c=Xg(n,qe);e.count=ct(c,null,i,a,s);var v=$g(n);e.retrieveValue=function(g,p){var y=h(i,a,s,g);return d(y,p)};var d=e.retrieveValueFromItem=function(g,p){if(g!=null){var y=s[p];if(y)return v(g,p,y.name)}};return e.getDimensionInfo=ct(Mb,null,s,l),e.cloneAllDimensionInfo=ct(Ab,null,s),e}function Cb(r){var t=r.sourceFormat;if(!Zf(t)){var e="";Yt(e)}return r.data}function Db(r){var t=r.sourceFormat,e=r.data;if(!Zf(t)){var i="";Yt(i)}if(t===Kt){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===Ce){for(var n=[],a=0,o=e.length;a<o;a++)n.push(B({},e[a]));return n}}function Mb(r,t,e){if(e!=null){if(vt(e)||!isNaN(e)&&!ri(t,e))return r[e];if(ri(t,e))return t[e]}}function Ab(r){return tt(r)}var Zg=j();function Lb(r){r=tt(r);var t=r.type,e="";t||Yt(e);var i=t.split(":");i.length!==2&&Yt(e);var n=false;i[0]==="echarts"&&(t=i[1],n=true),r.__isBuiltIn=n,Zg.set(t,r)}function Ib(r,t,e){var i=Ft(r),n=i.length,a="";n||Yt(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=Pb(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function Pb(r,t,e,i){var n="";t.length||Yt(n),U(r)||Yt(n);var a=r.type,o=Zg.get(a);o||Yt(n);var s=W(t,function(u){return Tb(u,o)}),l=Ft(o.transform({upstream:s[0],upstreamList:s,config:tt(r.config)}));return W(l,function(u,f){var h="";U(u)||Yt(h),u.data||Yt(h);var c=Vg(u.data);Zf(c)||Yt(h);var v,d=t[0];if(d&&f===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),v={seriesLayoutBy:qe,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:qe,sourceHeader:0,dimensions:u.dimensions};return Lu(u.data,v,null)})}function Zf(r){return r===Kt||r===Ce}var Ss="undefined",Rb=typeof Uint32Array===Ss?Array:Uint32Array,Eb=typeof Uint16Array===Ss?Array:Uint16Array,qg=typeof Int32Array===Ss?Array:Int32Array,uc=typeof Float64Array===Ss?Array:Float64Array,Kg={float:uc,int:qg,ordinal:Array,number:Array,time:uc},Sl;function mi(r){return r>65535?Rb:Eb}function _i(){return[1/0,-1/0]}function kb(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function fc(r,t,e,i,n){var a=Kg[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var Iu=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=j()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Sl[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],Wg(n),this._dimensions=W(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new Kg[e||"float"](this._rawCount),this._rawExtent[a]=_i(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=_i());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,true),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];fc(i,u,f.type,l,true)}for(var h=[],c=s;c<l;c++)for(var v=c-s,d=0;d<a;d++){var f=n[d],g=Sl.arrayRows.call(this,t[v]||h,f.property,v,d);i[d][c]=g;var p=o[d];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=W(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=_i()),fc(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var d=0;d<s;d++){var g=a[d],p=this._dimValueGetter(c,u[d],v,d);g[v]=p;var y=l[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],d=Math.abs(v);d<=i&&((d<s||d===s&&v>=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=mi(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=mi(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,d=i.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var g=h[f][d];v=e(g,c)}else{for(var p=0;p<l;p++)s[p]=h[t[p]][d];s[p]=c,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=pt(t),a=n.length;if(!a)return this;var o=e.count(),s=mi(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,d=false;if(!e._indices){var g=0;if(a===1){for(var p=v[n[0]],y=0;y<i;y++){var m=p[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=g),g++}d=true}else if(a===2){for(var p=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y<i;y++){var m=p[y],w=_[y];(m>=h&&m<=c||isNaN(m))&&(w>=S&&w<=b||isNaN(w))&&(l[u++]=g),g++}d=true}}if(!d)if(a===1)for(var y=0;y<o;y++){var x=e.getRawIndex(y),m=v[n[0]][x];(m>=h&&m<=c||isNaN(m))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var T=true,x=e.getRawIndex(y),D=0;D<a;D++){var M=n[D],m=v[M][x];(m<t[M][0]||m>t[M][1])&&(T=false)}T&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=_i();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=n[e[v]][c];l[o]=h;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var g=e[f],p=d[f],y=u[g],m=n[g];m&&(m[c]=p),p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],true),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(mi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var g=Math.min(d+l,o-1),p=Math.min(d+l*2,o),y=(p+g)/2,m=0,_=g;_<p;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(m+=b)}m/=p-g;var w=d,x=Math.min(d+l,o),T=d-1,D=a[u];f=-1,c=w;for(var M=-1,C=0,_=w;_<x;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){C++,M<0&&(M=S);continue}h=Math.abs((T-y)*(b-D)-(T-_)*(m-D)),h>f&&(f=h,c=S)}C>0&&C<x-w&&(v[s++]=Math.min(M,c),c=Math.max(M,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],true),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),l=new(mi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],g=a;f+a>s&&(g=s-f);for(var p=0;p<g;p++){var y=this.getRawIndex(f+p),m=o[y];m<c&&(c=m,h=f+p),m>d&&(d=m,v=f+p)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],true),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=_i(),c=new(mi(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(d+g);s[g]=u[p]}var y=i(s),m=this.getRawIndex(Math.min(d+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=_i();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&_r(t,function(s,l){return s[l]=true,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?kb(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tt(this._extent),t._rawExtent=tt(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return co(e[a],this._dimensions[a])}Sl={arrayRows:t,objectRows:function(e,i,n,a){return co(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return co(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),Ob=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=true,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=true},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=false)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Ba(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",true),l=qt(s)?yr:pe,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=Q(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=Q(h.sourceHeader,c.sourceHeader),g=Q(h.dimensions,c.dimensions),p=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||g;n=p?[Lu(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",true);n=[Lu(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",true),n=e.get("fromTransformResult",true);if(n!=null){var a="";t.length!==1&&hc(a)}var o,s=[],l=[];return A(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&hc(h),s.push(f),l.push(u._getVersionSign())}),i?o=Ib(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[cb(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return true;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return true}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Ba(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new Iu,s.initData(new Ug(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ba(t)){var e=Vf(t);return e?[e.getSourceManager()]:[]}else return W(Vw(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Ba(t))e=t.get("seriesLayoutBy",true),i=t.get("sourceHeader",true),n=t.get("dimensions",true);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",true),i=a.get("sourceHeader",true),n=a.get("dimensions",true)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r}();function Ba(r){return r.mainType==="series"}function hc(r){throw new Error(r)}var Bb="line-height:1";function Qg(r){var t=r.lineHeight;return t==null?Bb:"line-height:"+Wt(t+"")+"px"}function jg(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Wt(i+"")+"px;color:"+Wt(e)+";font-weight:"+Wt(n+""),valueStyle:"font-size:"+Wt(o+"")+"px;color:"+Wt(a)+";font-weight:"+Wt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var Nb=[0,10,20,30],Fb=["",`
|
|
43
|
+
`,`
|
|
44
|
+
|
|
45
|
+
`,`
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
`];function jn(r,t){return t.type=r,t}function Pu(r){return r.type==="section"}function Jg(r){return Pu(r)?zb:Hb}function ty(r){if(Pu(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var a=ty(n);a>=t&&(t=a+ +(i&&(!a||Pu(n)&&!n.noHeader)))}),t}return 0}function zb(r,t,e,i){var n=t.noHeader,a=Gb(ty(t)),o=[],s=t.blocks||[];Ke(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ri(u,l)){var f=new bb(u[l],null);s.sort(function(g,p){return f.evaluate(g.sortParam,p.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(g,p){var y=t.valueFormatter,m=Jg(g)(y?B(B({},r),{valueFormatter:y}):r,g,p>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Ru(i,o.join(""),n?e:a.html);if(n)return h;var c=Au(t.header,"ordinal",r.useUTC),v=jg(i,r.renderMode).nameStyle,d=Qg(i);return r.renderMode==="richText"?ey(r,c,v)+a.richText+h:Ru(i,'<div style="'+v+";"+d+';">'+Wt(c)+"</div>"+h,e)}function Hb(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],W(S,function(b,w){return Au(b,z(v)?v[w]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":Au(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=jg(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":ey(r,c,m))+(o?"":Ub(r,d,g,p,_)):Ru(i,(s?"":h)+(a?"":Vb(c,!s,m))+(o?"":Wb(d,g,p,_)),e)}}function vc(r,t,e,i,n,a){if(r){var o=Jg(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function Gb(r){return{html:Nb[r],richText:Fb[r]}}function Ru(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=Qg(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function Vb(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+Wt(r)+"</span>"}function Wb(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+a+";"+i+'">'+W(r,function(o){return Wt(o)}).join(" ")+"</span>"}function ey(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function Ub(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function Yb(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return ai(i)}function ry(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var wl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=Rp()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=Ew({color:e,type:t,renderMode:i,markerId:n});return V(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};z(e)?A(e,function(a){return B(i,a)}):B(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function Xb(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=z(s),u=Yb(t,e),f,h,c,v;if(o>1||l&&!o){var d=$b(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);v=f=zi(n,e,a[0]),h=g.type}else v=f=l?s[0]:s;var p=Sf(t),y=p&&t.name||"",m=n.getName(e),_=i?y:m;return jn("section",{header:y,noHeader:i||!p,sortParam:v,blocks:[jn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ke(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function $b(r,t,e,i,n){var a=t.getData(),o=_r(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==false&&d.displayName!=null},false),s=[],l=[],u=[];i.length?A(i,function(h){f(zi(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===false||(o?u.push(jn("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ir=wt();function Na(r,t){return r.getName(t)||r.getId(t)}var Zb="__universalTransitionEnabled",be=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=Fn({count:Kb,reset:Qb}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=ir(this).sourceManager=new Ob(this);a.prepareSource();var o=this.getInitialData(e,n);dc(o,this),this.dataTask.context.data=o,ir(this).dataBeforeProcessed=o,cc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Kn(this),a=n?ms(e):{},o=this.subType;lt.hasClass(o)&&(o+="Series"),at(e,i.getTheme().get(this.subType)),at(e,this.getDefaultOption()),yu(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Fi(e,a,n)},t.prototype.mergeOption=function(e,i){e=at(this.option,e,true),this.fillDataTextStyle(e.data);var n=Kn(this);n&&Fi(this.option,e,n);var a=ir(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);dc(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ir(this).dataBeforeProcessed=o,cc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!qt(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&yu(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Eu(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ir(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Eu(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}ir(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",true);if(e)return j(e)},t.prototype.getSourceManager=function(){return ir(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ir(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"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.formatTooltip=function(e,i,n){return Xb({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if($.node&&!(e&&e.ssr))return false;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=false),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Wf.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},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,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Na(o,l);n[u]=false,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=pt(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return false;var a=this.getData(i);return(n==="all"||n[Na(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Zb])return true;var e=this.option.universalTransition;return e?e===true?true:e&&e.enabled:false},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],c=Na(e,h);u[c]=true,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===true){var v=i[l-1],c=Na(e,v);o.selectedMap=(n={},n[c]=true,n),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return lt.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=false,e.hasSymbolVisual=false,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(lt);Ne(be,Sb);Ne(be,Wf);Fp(be,lt);function cc(r){var t=r.name;Sf(r)||(r.name=qb(r)||t)}function qb(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return A(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function Kb(r){return r.model.getRawData().count()}function Qb(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),jb}function jb(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function dc(r,t){A(y0(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,St(Jb,t))})}function Jb(r,t){var e=Eu(r);return e&&e.setOutputEnd((t||this).count()),t}function Eu(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var xe=function(){function r(){this.group=new It,this.uid=hs("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();bf(xe);Jo(xe);function qf(){var r=wt();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var iy=wt(),tx=qf(),ce=function(){function r(){this.group=new It,this.uid=hs("viewChart"),this.renderTask=Fn({plan:ex,reset:rx}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&gc(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&gc(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){ls(this.group,t)},r.markUpdateMethod=function(t,e){iy(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function pc(r,t,e){r&&Tu(r)&&(t==="emphasis"?Po:Ro)(r,e)}function gc(r,t,e){var i=ii(r,t),n=t&&t.highlightKey!=null?yS(t.highlightKey):null;i!=null?A(Ft(i),function(a){pc(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){pc(a,e,n)})}bf(ce);Jo(ce);function ex(r){return tx(r.model)}function rx(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&iy(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),ix[l]}var ix={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:true,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ho="\0__throttleOriginMethod",yc="\0__throttleRate",mc="\0__throttleType";function ws(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];i=new Date().getTime(),l=this,u=v;var g=f||t,p=f||e;f=null,s=i-(p?n:a)-g,clearTimeout(o),p?o=setTimeout(h,g):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function ny(r,t,e,i){var n=r[t];if(n){var a=n[Ho]||n,o=n[mc],s=n[yc];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=ws(a,e,i==="debounce"),n[Ho]=a,n[mc]=i,n[yc]=e}return n}}function ku(r,t){var e=r[t];e&&e[Ho]&&(e.clear&&e.clear(),r[t]=e[Ho])}var _c=wt(),Sc={itemStyle:Xn(yg,true),lineStyle:Xn(gg,true)},nx={lineStyle:"stroke",itemStyle:"fill"};function ay(r,t){var e=r.visualStyleMapper||Sc[t];return e||(console.warn("Unknown style type '"+t+"'."),Sc.itemStyle)}function oy(r,t){var e=r.visualDrawType||nx[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var ax={createOnAllSeries:true,performRawSeries:true,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=ay(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=true);var l=oy(r,i),u=o[l],f=q(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",true)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",false),{dataEach:function(v,d){var g=r.getDataParams(d),p=B({},o);p[l]=f(g),v.setItemVisual(d,"style",p)}}}},sn=new yt,ox={createOnAllSeries:true,performRawSeries:true,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=ay(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){sn.option=l[i];var u=n(sn),f=o.ensureUniqueItemVisual(s,"style");B(f,u),sn.option.decal&&(o.setItemVisual(s,"decal",sn.option.decal),sn.option.decal.dirty=true),a in u&&o.setItemVisual(s,"colorFromPalette",false)}}:null}}}},sx={performRawSeries:true,overallReset:function(r){var t=j();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),_c(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=_c(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=oy(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(v,o,d)}})}})}},Fa=Math.PI;function lx(r,t){t=t||{},st(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:true,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new It,i=new xt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new Pt({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 xt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new os({shape:{startAngle:-Fa/2,endAngle:-Fa/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(true).when(1e3,{endAngle:Fa*3/2}).start("circularInOut"),o.animateShape(true).when(1e3,{startAngle:Fa*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var sy=function(){function r(t,e,i,n){this._stageTaskMap=j(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=j();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;A(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";Ke(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:true})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=false,o=this;A(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(p){s(n,p)&&(p.dirty(),v=true)}),v&&c.dirty(),o.updatePayload(c,i);var g=o.getPerformArgs(c,n.block);d.each(function(p){p.perform(g)}),c.perform(g)&&(a=true)}else h&&h.each(function(p,y){s(n,p)&&p.dirty();var m=o.getPerformArgs(p,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(p.context.model),o.updatePayload(p,i),p.perform(m)&&(a=true)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=j(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||Fn({plan:cx,reset:dx,count:gx}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||Fn({reset:ux});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=j(),u=t.seriesType,f=t.getTargetSeries,h=true,c=false,v="";Ke(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,d):f?f(i,n).each(d):(h=false,A(i.getSeries(),d));function d(g){var p=g.uid,y=l.set(p,s&&s.get(p)||(c=true,Fn({reset:fx,onDirty:vx})));y.context={model:g,overallProgress:h},y.agent=o,y.__block=h,a._pipe(g,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:yx(t)}),t.uid=hs("stageHandler"),e&&(t.visualType=e),t},r}();function ux(r){r.overallReset(r.ecModel,r.api,r.payload)}function fx(r){return r.overallProgress&&hx}function hx(){this.agent.dirty(),this.getDownstream().dirty()}function vx(){this.agent&&this.agent.dirty()}function cx(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function dx(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ft(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?W(t,function(e,i){return ly(i)}):px}var px=ly(0);function ly(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function gx(r){return r.data.count()}function yx(r){Go=null;try{r(Jn,uy)}catch{}return Go}var Jn={},uy={},Go;fy(Jn,Uf);fy(uy,Fg);Jn.eachSeriesByType=Jn.eachRawSeriesByType=function(r){Go=r};Jn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Go=r.subType)};function fy(r,t){for(var e in t.prototype)r[e]=$t}var wc=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const mx={color:wc,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],wc]};var kt="#B9B8CE",bc="#100C2A",za=function(){return{axisLine:{lineStyle:{color:kt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xc=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],hy={darkMode:true,color:xc,backgroundColor:bc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:kt},pageTextStyle:{color:kt}},textStyle:{color:kt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:kt}},dataZoom:{borderColor:"#71708A",textStyle:{color:kt},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:kt}},timeline:{lineStyle:{color:kt},label:{color:kt},controlStyle:{color:kt,borderColor:kt}},calendar:{itemStyle:{color:bc},dayLabel:{color:kt},monthLabel:{color:kt},yearLabel:{color:kt}},timeAxis:za(),logAxis:za(),valueAxis:za(),categoryAxis:za(),line:{symbol:"circle"},graph:{color:xc},gauge:{title:{color:kt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:kt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};hy.categoryAxis.splitLine.show=false;var _x=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(V(t)){var a=Oe(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var f=false,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=l,f=true)}}s.hasOwnProperty(u)&&(i[u]=l,f=true),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return true;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return true;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),Ou=["symbol","symbolSize","symbolRotate","symbolOffset"],Tc=Ou.concat(["symbolKeepAspect"]),Sx={createOnAllSeries:true,performRawSeries:true,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=false,o=0;o<Ou.length;o++){var s=Ou[o],l=r.get(s);q(l)?(a=true,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=pt(n);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),g=0;g<u.length;g++){var p=u[g];h.setItemVisual(c,p,n[p](v,d))}}return{dataEach:a?f:null}}},bx={createOnAllSeries:true,performRawSeries:true,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<Tc.length;s++){var l=Tc[s],u=o.getShallow(l,true);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function xx(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Tx(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function Cx(r,t){function e(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}A([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=B({},n),o.dispatchAction(B(n,{type:i[1],seriesIndex:e(a,n)}))})})}function Si(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=ii(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:V(l)?l:B({},l)})}})}function Dx(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(Si("map","selectchanged",t,n,i),Si("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Si("map","selected",t,n,i),Si("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Si("map","unselected",t,n,i),Si("pie","unselected",t,n,i))})}function Cn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var Mx=Math.round(Math.random()*9),Ax=typeof Object.defineProperty=="function",Lx=function(){function r(){this._id="__ec_inner_"+Mx++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return Ax?Object.defineProperty(i,this._id,{value:e,enumerable:false,configurable:true}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],true):false},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),Ix=ut.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),Px=ut.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),Rx=ut.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,i-d,e,i),r.bezierCurveTo(e,i-d,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),Ex=ut.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),kx={line:wr,rect:xt,roundRect:xt,square:xt,circle:as,diamond:Px,pin:Rx,arrow:Ex,triangle:Ix},Ox={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},Bu={};A(kx,function(r,t){Bu[t]=new r});var Bx=ut.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Do(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=Bu[i];n||(i="rect",n=Bu[i]),Ox[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function Nx(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Hi(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=hg(r.slice(8),new ot(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=Ef(r.slice(7),{},new ot(t,e,i,n),o?"center":"cover"):l=new Bx({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=Nx,a&&l.setColor(a),l}function Fx(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function vy(r,t){if(r!=null)return z(r)||(r=[r,r]),[dt(r[0],t[0])||0,dt(Q(r[1],r[0]),t[1])||0]}function Kr(r){return isFinite(r)}function zx(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Kr(i)?i:0,n=Kr(n)?n:1,a=Kr(a)?a:0,o=Kr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Hx(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=Kr(o)?o:.5,s=Kr(s)?s:.5,l=l>=0&&Kr(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function Nu(r,t,e){for(var i=t.type==="radial"?Hx(r,t,e):zx(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Gx(r,t){if(r===t||!r&&!t)return false;if(!r||!t||r.length!==t.length)return true;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return true;return false}function Ha(r){return parseInt(r,10)}function Ga(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Ha(s[i])||Ha(r.style[i]))-(Ha(s[a])||0)-(Ha(s[o])||0)|0}function Vx(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:vt(r)?[r]:z(r)?r:null}function cy(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&Vx(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=W(e,function(a){return a/n}),i/=n)}return[e,i]}var Wx=new ni(true);function Vo(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Cc(r){return typeof r=="string"&&r!=="none"}function Wo(r){var t=r.fill;return t!=null&&t!=="none"}function Dc(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Mc(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Fu(r,t,e){var i=zp(t.image,t.__image,e);if(ts(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*m0),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function Ux(r,t,e,i){var n,a=Vo(e),o=Wo(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||Wx,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,g=a&&!!v.colorStops,p=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,w=void 0;(d||g)&&(w=t.getBoundingRect()),d&&(m=h?Nu(r,c,w):t.__canvasFillGradient,t.__canvasFillGradient=m),g&&(_=h?Nu(r,v,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),p&&(S=h||!t.__canvasFillPattern?Fu(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?Fu(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:p&&(S?r.fillStyle=S:o=false),g?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=false)}var x=t.getGlobalScale();f.setScale(x[0],x[1],t.segmentIgnoreThreshold);var T,D;r.setLineDash&&e.lineDash&&(n=cy(t),T=n[0],D=n[1]);var M=true;(u||h&Ti)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=false),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),T&&(r.setLineDash(T),r.lineDashOffset=D),i||(e.strokeFirst?(a&&Mc(r,e),o&&Dc(r,e)):(o&&Dc(r,e),a&&Mc(r,e))),T&&r.setLineDash([])}function Yx(r,t,e){var i=t.__image=zp(e.image,t.__image,t,t.onload);if(!(!i||!ts(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function Xx(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||ei,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=cy(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Vo(e)&&r.strokeText(n,e.x,e.y),Wo(e)&&r.fillText(n,e.x,e.y)):(Wo(e)&&r.fillText(n,e.x,e.y),Vo(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Ac=["shadowBlur","shadowOffsetX","shadowOffsetY"],Lc=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function dy(r,t,e,i,n){var a=false;if(!i&&(e=e||{},t===e))return false;if(i||t.opacity!==e.opacity){Xt(r,n),a=true;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?jr.opacity:o}(i||t.blend!==e.blend)&&(a||(Xt(r,n),a=true),r.globalCompositeOperation=t.blend||jr.blend);for(var s=0;s<Ac.length;s++){var l=Ac[s];(i||t[l]!==e[l])&&(a||(Xt(r,n),a=true),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(Xt(r,n),a=true),r.shadowColor=t.shadowColor||jr.shadowColor),a}function Ic(r,t,e,i,n){var a=ta(t,n.inHover),o=i?null:e&&ta(e,n.inHover)||{};if(a===o)return false;var s=dy(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(Xt(r,n),s=true),Cc(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(Xt(r,n),s=true),Cc(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(Xt(r,n),s=true),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(Xt(r,n),s=true),r.lineWidth=u)}for(var f=0;f<Lc.length;f++){var h=Lc[f],c=h[0];(i||a[c]!==o[c])&&(s||(Xt(r,n),s=true),r[c]=a[c]||h[1])}return s}function $x(r,t,e,i,n){return dy(r,ta(t,n.inHover),e&&ta(e,n.inHover),i,n)}function py(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function Zx(r,t,e){for(var i=false,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),py(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function qx(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Pc=1,Rc=2,Ec=3,kc=4;function Kx(r){var t=Wo(r),e=Vo(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function Xt(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ta(r,t){return t&&r.__hoverStyle||r.style}function gy(r,t){Qr(r,t,{inHover:false,viewWidth:0,viewHeight:0},true)}function Qr(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,false,false)){t.__dirty&=~jt,t.__isRendered=false;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=false,l=false;if((!o||Gx(a,o))&&(o&&o.length&&(Xt(r,e),r.restore(),l=s=true,e.prevElClipPaths=null,e.allClipped=false,e.prevEl=null),a&&a.length&&(Xt(r,e),r.save(),Zx(a,r,e),s=true),e.prevElClipPaths=a),e.allClipped){t.__isRendered=false;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=true);var f=t instanceof ut&&t.autoBatch&&Kx(t.style);s||qx(n,u.transform)?(Xt(r,e),py(r,t)):f||Xt(r,e);var h=ta(t,e.inHover);t instanceof ut?(e.lastDrawType!==Pc&&(l=true,e.lastDrawType=Pc),Ic(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),Ux(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof Lo?(e.lastDrawType!==Ec&&(l=true,e.lastDrawType=Ec),Ic(r,t,u,l,e),Xx(r,t,h)):t instanceof Tr?(e.lastDrawType!==Rc&&(l=true,e.lastDrawType=Rc),$x(r,t,u,l,e),Yx(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==kc&&(l=true,e.lastDrawType=kc),Qx(r,t,e)),f&&i&&Xt(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=true}function Qx(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:false,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qr(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Qr(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=true,r.restore()}var bl=new Lx,Oc=new na(100),Bc=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function zu(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&bl.delete(r);var a=bl.get(r);if(a)return a;var o=st(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:true,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,bl.set(r,s),r.dirty=false,s;function l(u){for(var f=[e],h=true,c=0;c<Bc.length;++c){var v=o[Bc[c]];if(v!=null&&!z(v)&&!V(v)&&!vt(v)&&typeof v!="boolean"){h=false;break}f.push(v)}var d;if(h){d=f.join(",")+(n?"-svg":"");var g=Oc.get(d);g&&(n?u.svgElement=g:u.image=g)}var p=my(o.dashArrayX),y=jx(o.dashArrayY),m=yy(o.symbol),_=Jx(p),S=_y(y),b=!n&&Vi.createCanvas(),w=n&&{tag:"g",attrs:{},key:"dcl",children:[]},x=D(),T;b&&(b.width=x.width*e,b.height=x.height*e,T=b.getContext("2d")),M(),h&&Oc.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=x.width,u.svgHeight=x.height;function D(){for(var C=1,L=0,I=_.length;L<I;++L)C=Kh(C,_[L]);for(var P=1,L=0,I=m.length;L<I;++L)P=Kh(P,m[L].length);C*=P;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(C,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var C=0,L=0;L<y.length;++L)C+=y[L];if(C<=0)return;for(var I=-S,P=0,R=0,E=0;I<x.height;){if(P%2===0){for(var F=R/2%m.length,k=0,O=0,N=0;k<x.width*2;){for(var H=0,L=0;L<p[E].length;++L)H+=p[E][L];if(H<=0)break;if(O%2===0){var G=(1-o.symbolSize)*.5,K=k+p[E][O]*G,et=I+y[P]*G,it=p[E][O]*o.symbolSize,Ht=y[P]*o.symbolSize,te=N/2%m[F].length;Qt(K,et,it,Ht,m[F][te])}k+=p[E][O],++N,++O,O===p[E].length&&(O=0)}++E,E===p.length&&(E=0)}I+=y[P],++R,++P,P===y.length&&(P=0)}function Qt(Ct,mt,X,J,De){var Tt=n?1:e,Je=Hi(De,Ct*Tt,mt*Tt,X*Tt,J*Tt,o.color,o.symbolKeepAspect);if(n){var Ge=i.painter.renderOneToVNode(Je);Ge&&w.children.push(Ge)}else gy(T,Je)}}}}function yy(r){if(!r||r.length===0)return[["rect"]];if(V(r))return[[r]];for(var t=true,e=0;e<r.length;++e)if(!V(r[e])){t=false;break}if(t)return yy([r]);for(var i=[],e=0;e<r.length;++e)V(r[e])?i.push([r[e]]):i.push(r[e]);return i}function my(r){if(!r||r.length===0)return[[0,0]];if(vt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=true,i=0;i<r.length;++i)if(!vt(r[i])){e=false;break}if(e)return my([r]);for(var n=[],i=0;i<r.length;++i)if(vt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=W(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function jx(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(vt(r)){var t=Math.ceil(r);return[t,t]}var e=W(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function Jx(r){return W(r,function(t){return _y(t)})}function _y(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function tT(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=zu(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=zu(n,t)}}})}var Se=new Fe,Sy={};function eT(r,t){Sy[r]=t}function rT(r){return Sy[r]}var iT=1,nT=800,aT=900,oT=1e3,sT=2e3,lT=5e3,wy=1e3,uT=1100,Kf=2e3,by=3e3,fT=4e3,bs=4500,hT=4600,vT=5e3,cT=6e3,xy=7e3,dT={PROCESSOR:{FILTER:oT,SERIES_FILTER:nT,STATISTIC:lT},VISUAL:{LAYOUT:wy,PROGRESSIVE_LAYOUT:uT,GLOBAL:Kf,CHART:by,POST_CHART_LAYOUT:hT,COMPONENT:fT,BRUSH:vT,CHART_ITEM:bs,ARIA:cT,DECAL:xy}},Et="__flagInMainProcess",Vt="__pendingUpdate",xl="__needsUpdateStatus",Nc=/^[a-zA-Z0-9_]+$/,Tl="__connectUpdateStatus",Fc=0,pT=1,gT=2;function Ty(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Dy(this,r,t)}}function Cy(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Dy(this,r,t)}}function Dy(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Fe.prototype[t].apply(r,e)}var My=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Fe),Ay=My.prototype;Ay.on=Cy("on");Ay.off=Cy("off");var wi,Cl,Va,nr,Dl,Ml,Al,ln,un,zc,Hc,Ll,Gc,Wa,Vc,Ly,ee,Wc,Iy=function(r){Y(t,r);function t(e,i,n){var a=r.call(this,new _x)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},V(i)&&(i=Py[i]),a._dom=e;var o="canvas",s="auto",l=false;n.ssr;var u=a._zr=Zh(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Q(n.useDirtyRect,l),useCoarsePointer:Q(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=ws(ct(u.flush,u),17),i=tt(i),i&&Hg(i,true),a._theme=i,a._locale=Dw(n.locale||_g),a._coordSysMgr=new Yf;var f=a._api=Vc(a);function h(c,v){return c.__prio-v.__prio}return io(Yo,h),io(Hu,h),a._scheduler=new sy(a,f,Hu,Yo),a._messageCenter=new My,a._initEvents(),a.resize=ct(a.resize,a),u.animation.on("frame",a._onframe,a),zc(u,a),Hc(u,a),jl(a),a}return t.prototype._onframe=function(){if(!this._disposed){Wc(this);var e=this._scheduler;if(this[Vt]){var i=this[Vt].silent;this[Et]=true;try{wi(this),nr.update.call(this,null,this[Vt].updateParams)}catch(l){throw this[Et]=false,this[Vt]=null,l}this._zr.flush(),this[Et]=false,this[Vt]=null,ln.call(this,i),un.call(this,i)}else if(e.unfinished){var n=iT,a=this._model,o=this._api;e.unfinished=false;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Ml(this,a),e.performVisualTasks(a),Wa(this,this._model,o,"remain",{}),n-=+new Date-s}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,i,n){if(!this[Et]){if(this._disposed){this.id;return}var a,o,s;if(U(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Et]=true,!this._model||i){var l=new Jw(this._api),u=this._theme,f=this._model=new Uf;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Gu);var h={seriesTransition:s,optionChanged:true};if(n)this[Vt]={silent:a,updateParams:h},this[Et]=false,this.getZr().wakeUp();else{try{wi(this),nr.update.call(this,null,h)}catch(c){throw this[Vt]=null,this[Et]=false,c}this._ssr||this._zr.flush(),this[Vt]=null,this[Et]=false,ln.call(this,a),un.call(this,a)}}},t.prototype.setTheme=function(){},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||$.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if($.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return A(i,function(n){n.stopAnimation(null,true)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;A(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=true)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(a,function(l){l.group.ignore=false}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Uc[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();A(Hn,function(_,S){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(tt(e)),w=_.getDom().getBoundingClientRect();l=a(w.left,l),u=a(w.top,u),f=o(w.right,f),h=o(w.bottom,h),c.push({dom:b,left:w.left,top:w.top})}}),l*=v,u*=v,f*=v,h*=v;var d=f-l,g=h-u,p=Vi.createCanvas(),y=Zh(p,{renderer:i?"svg":"canvas"});if(y.resize({width:d,height:g}),i){var m="";return A(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new xt({shape:{x:0,y:0,width:d,height:g},style:{fill:e.connectedBackgroundColor}})),A(c,function(_){var S=new Tr({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Dl(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Dl(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=qs(n,e);return A(o,function(s,l){l.indexOf("Models")>=0&&A(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=qs(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?xx(s,l,i):Tx(s,i)},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;A(yT,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&Cn(s,function(d){var g=rt(d);if(g&&g.dataIndex!=null){var p=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},true}else if(g.eventData)return l=B({},g.eventData),true},true),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(i,l)}};n.zrEventfulCallAtLast=true,e._zr.on(i,n,e)}),A(zn,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),A(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),Dx(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},true)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=true;var e=this.getDom();e&&Bp(this.getDom(),jf,"");var i=this,n=i._api,a=i._model;A(i._componentsViews,function(o){o.dispose(a,n)}),A(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete Hn[i.id]},t.prototype.resize=function(e){if(!this[Et]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[Vt]&&(a==null&&(a=this[Vt].silent),n=true,this[Vt]=null),this[Et]=true;try{n&&wi(this),nr.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Et]=false,o}this[Et]=false,ln.call(this,a),un.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(U(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Vu[e]){var n=Vu[e](this._api,i),a=this._zr;this._loadingFX=n,a.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 i=B({},e);return i.type=zn[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(U(i)||(i={silent:!!i}),!!Uo[e.type]&&this._model){if(this[Et]){this._pendingActions.push(e);return}var n=i.silent;Al.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==false&&$.browser.weChat&&this._throttledZrFlush(),ln.call(this,n),un.call(this,n)}},t.prototype.updateLabelLayout=function(){Se.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=true,this.getZr().wakeUp()},t.internalField=function(){wi=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Cl(h,true),Cl(h,false),c.plan()},Cl=function(h,c){for(var v=h._model,d=h._scheduler,g=c?h._componentsViews:h._chartsViews,p=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=false;c?v.eachComponent(function(w,x){w!=="series"&&S(x)}):v.eachSeries(S);function S(w){var x=w.__requireNewView;w.__requireNewView=false;var T="_ec_"+w.id+"_"+w.type,D=!x&&p[T];if(!D){var M=Oe(w.type),C=c?xe.getClass(M.main,M.sub):ce.getClass(M.sub);D=new C,D.init(v,m),p[T]=D,g.push(D),y.add(D.group)}w.__viewId=D.__id=T,D.__alive=true,D.__model=w,D.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!c&&d.prepareView(D,w,v,m)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),g.splice(_,1),p[b.__id]===b&&delete p[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Va=function(h,c,v,d,g){var p=h._model;if(p.setUpdatePayload(v),!d){A([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};g&&(m.subType=g);var _=v.excludeSeriesId,S;_!=null&&(S=j(),A(Ft(_),function(w){var x=Be(w,null);x!=null&&S.set(x,true)})),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;if(!x)if(xv(v))if(w instanceof be)v.type===Jr&&!v.notBlur&&!w.get(["emphasis","disabled"])&&uS(w,v,h._api);else{var T=Df(w.mainType,w.componentIndex,v.name,h._api),D=T.focusSelf,M=T.dispatchers;v.type===Jr&&D&&!v.notBlur&&bu(w.mainType,w.componentIndex,h._api),M&&A(M,function(C){v.type===Jr?Po(C):Ro(C)})}else Cu(v)&&w instanceof be&&(vS(w,v,h._api),wv(w),ee(h))},h),p&&p.eachComponent(m,function(w){var x=S&&S.get(w.id)!=null;x||b(h[d==="series"?"_chartsMap":"_componentsMap"][w.__viewId])},h);function b(w){w&&w.__alive&&w[c]&&w[c](w.__model,p,h._api,v)}},nr={prepareAndUpdate:function(h){wi(this),nr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,g=this._zr,p=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),p.create(v,d),y.performDataProcessorTasks(v,h),Ml(this,v),p.update(v,d),e(v),y.performVisualTasks(v,h),Ll(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");g.setBackgroundColor(m),_!=null&&_!=="auto"&&g.setDarkMode(_),Se.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var g=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&g.push(_)}else g.push(_)}});var p=j();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&p.set(y.uid,1)}else p.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:true,dirtyMap:p}),Wa(this,v,d,h,{},p),Se.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),ce.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:true}),Ll(this,c,this._api,h,{}),Se.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),ce.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:true}),v.eachComponent(function(d,g){if(d!=="series"){var p=c.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,v,c._api,h)}}),v.eachSeries(function(d){var g=c._chartsMap[d.__viewId];g.updateVisual(d,v,c._api,h)}),Se.trigger("afterupdate",v,this._api))},updateLayout:function(h){nr.update.call(this,h)}},Dl=function(h,c,v,d){if(h._disposed){h.id;return}for(var g=h._model,p=h._coordSysMgr.getCoordinateSystems(),y,m=qs(g,v),_=0;_<p.length;_++){var S=p[_];if(S[c]&&(y=S[c](g,m,d))!=null)return y}},Ml=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(g){d.updateStreamModes(g,v[g.__viewId])})},Al=function(h,c){var v=this,d=this.getModel(),g=h.type,p=h.escapeConnect,y=Uo[g],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&Oe(_[0]);this[Et]=true;var w=[h],x=false;h.batch&&(x=true,w=W(h.batch,function(P){return P=st(B({},P),h),P.batch=null,P}));var T=[],D,M=Cu(h),C=xv(h);if(C&&rg(this._api),A(w,function(P){if(D=y.action(P,v._model,v._api),D=D||B({},P),D.type=m.event||D.type,T.push(D),C){var R=wf(h),E=R.queryOptionMap,F=R.mainTypeSpecified,k=F?E.keys()[0]:"series";Va(v,S,P,k),ee(v)}else M?(Va(v,S,P,"series"),ee(v)):b&&Va(v,S,P,b.main,b.sub)}),S!=="none"&&!C&&!M&&!b)try{this[Vt]?(wi(this),nr.update.call(this,h),this[Vt]=null):nr[S].call(this,h)}catch(P){throw this[Et]=false,P}if(x?D={type:m.event||g,escapeConnect:p,batch:T}:D=T[0],this[Et]=false,!c){var L=this._messageCenter;if(L.trigger(D.type,D),M){var I={type:"selectchanged",escapeConnect:p,selected:cS(d),isFromClick:h.isFromClick||false,fromAction:h.type,fromActionPayload:h};L.trigger(I.type,I)}}},ln=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Al.call(this,v,h)}},un=function(h){!h&&this.trigger("updated")},zc=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Vt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},Hc=function(h,c){h.on("mouseover",function(v){var d=v.target,g=Cn(d,Tu);g&&(fS(g,v,c._api),ee(c))}).on("mouseout",function(v){var d=v.target,g=Cn(d,Tu);g&&(hS(g,v,c._api),ee(c))}).on("click",function(v){var d=v.target,g=Cn(d,function(m){return rt(m).dataIndex!=null},true);if(g){var p=g.selected?"unselect":"select",y=rt(g);c._api.dispatchAction({type:p,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:true})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],d=false;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:w})}),d){var g=c.concat(v),p,y;io(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),A(g,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;p!=null&&(S=Math.max(p,S)),b?(S===p&&b!==y&&S++,y=b):y&&(S===p&&S++,y=""),p=S,_.setZLevel(S)})}}Ll=function(h,c,v,d,g){i(c),Gc(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive=false}),Wa(h,c,v,d,g),A(h._chartsViews,function(p){p.__alive||p.remove(c,v)})},Gc=function(h,c,v,d,g,p){A(p||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},Wa=function(h,c,v,d,g,p){var y=h._scheduler;g=B(g||{},{updatedSeries:c.getSeries()}),Se.trigger("series:beforeupdate",c,v,g);var m=false;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=true;var b=S.renderTask;y.updatePayload(b,d),u(_,S),p&&p.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=true),S.group.silent=!!_.get("silent"),o(_,S),wv(_)}),y.unfinished=m||y.unfinished,Se.trigger("series:layoutlabels",c,v,g),Se.trigger("series:transition",c,v,g),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),Se.trigger("series:afterupdate",c,v,g)},ee=function(h){h[xl]=true,h.getZr().wakeUp()},Wc=function(h){h[xl]&&(h.getZr().storage.traverse(function(c){On(c)||n(c)}),h[xl]=false)};function n(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var g=v[d];g==="emphasis"||g==="blur"||g==="select"||c.push(g)}h.selected&&h.states.select&&c.push("select"),h.hoverState===is&&h.states.emphasis?c.push("emphasis"):h.hoverState===rs&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,g=0;d.traverse(function(p){p.isGroup||g++}),g>c.get("hoverLayerThreshold")&&!$.node&&!$.worker&&c.eachSeries(function(p){if(!p.preventUsingHoverLayer){var y=h._chartsMap[p.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=true)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(g){return l(g,v,d,-1/0),true})}}function l(h,c,v,d){var g=h.getTextContent(),p=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(l(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(g&&(g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+2)),p){var S=h.textGuideLineConfig;p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+(S&&S.showAbove?1:-1))}return d}function u(h,c){c.eachRendered(function(v){if(!On(v)){var d=v.getTextContent(),g=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=v.get("duration"),p=g>0?{duration:g,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(On(y))return;if(y instanceof ut&&mS(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=p;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=p),S&&(S.stateTransition=p)}y.__dirty&&n(y)}})}Vc=function(h){return new(function(c){Y(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},v.prototype.enterEmphasis=function(d,g){Po(d,g),ee(h)},v.prototype.leaveEmphasis=function(d,g){Ro(d,g),ee(h)},v.prototype.enterBlur=function(d){lS(d),ee(h)},v.prototype.leaveBlur=function(d){jp(d),ee(h)},v.prototype.enterSelect=function(d){Jp(d),ee(h)},v.prototype.leaveSelect=function(d){tg(d),ee(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v}(Fg))(h)},Ly=function(h){function c(v,d){for(var g=0;g<v.length;g++){var p=v[g];p[Tl]=d}}A(zn,function(v,d){h._messageCenter.on(d,function(g){if(Uc[h.group]&&h[Tl]!==Fc){if(g&&g.escapeConnect)return;var p=h.makeActionFromEvent(g),y=[];A(Hn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Fc),A(y,function(m){m[Tl]!==pT&&m.dispatchAction(p)}),c(y,gT)}})})}}(),t}(Fe),Qf=Iy.prototype;Qf.on=Ty("on");Qf.off=Ty("off");Qf.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var yT=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Uo={},zn={},Hu=[],Gu=[],Yo=[],Py={},Vu={},Hn={},Uc={},mT=+new Date-0,jf="_echarts_instance_";function _T(r,t,e){var i=!(e&&e.ssr);if(i){var n=ST(r);if(n)return n}var a=new Iy(r,t,e);return a.id="ec_"+mT++,Hn[a.id]=a,i&&Bp(r,jf,a.id),Ly(a),Se.trigger("afterinit",a),a}function ST(r){return Hn[j_(r,jf)]}function Ry(r,t){Py[r]=t}function Ey(r){ft(Gu,r)<0&&Gu.push(r)}function ky(r,t){th(Hu,r,t,sT)}function wT(r){Jf("afterinit",r)}function bT(r){Jf("afterupdate",r)}function Jf(r,t){Se.on(r,t)}function Yi(r,t,e){q(t)&&(e=t,t="");var i=U(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!zn[t]&&(Ke(Nc.test(i)&&Nc.test(t)),Uo[i]||(Uo[i]={action:e,actionInfo:r}),zn[t]=i)}function xT(r,t){Yf.register(r,t)}function TT(r,t){th(Yo,r,t,wy,"layout")}function oi(r,t){th(Yo,r,t,by,"visual")}var Yc=[];function th(r,t,e,i,n){if((q(t)||U(t))&&(e=t,t=i),!(ft(Yc,e)>=0)){Yc.push(e);var a=sy.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function Oy(r,t){Vu[r]=t}function CT(r,t,e){var i=rT("registerMap");i&&i(r,t,e)}var DT=Lb;oi(Kf,ax);oi(bs,ox);oi(bs,sx);oi(Kf,Sx);oi(bs,bx);oi(xy,tT);Ey(Hg);ky(aT,hb);Oy("default",lx);Yi({type:Jr,event:Jr,update:Jr},$t);Yi({type:uo,event:uo,update:uo},$t);Yi({type:Rn,event:Rn,update:Rn},$t);Yi({type:fo,event:fo,update:fo},$t);Yi({type:En,event:En,update:En},$t);Ry("light",mx);Ry("dark",hy);function fn(r){return r==null?0:r.length||1}function Xc(r){return r}var MT=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Xc,this._newKeyGetter=n||Xc,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],u=fn(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=fn(u),c=fn(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=fn(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var l=e[s],u=fn(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),AT=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function LT(r,t){var e={},i=e.encode={},n=j(),a=[],o=[],s={};A(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;Il(i,d)[g]=c,v.isExtraCoord||(n.set(d,1),PT(v.type)&&(a[0]=c),Il(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}Eg.each(function(p,y){var m=Il(i,y),_=v.otherDims[y];_!=null&&_!==false&&(m[_]=v.name)})});var l=[],u={};n.each(function(c,v){var d=i[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=W(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new AT(s,t),e}function Il(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function IT(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function PT(r){return!(r==="ordinal"||r==="time")}var po=function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r}(),RT=wt(),ET={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},By=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=zy(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Q(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Wg(this.source),i=!Hy(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=ET[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=true,this._fullDimCount++,this._updateDimOmitted(true)},r}();function Ny(r){return r instanceof By}function Fy(r){for(var t=j(),e=0;e<(r||[]).length;e++){var i=r[e],n=U(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function zy(r){var t=RT(r);return t.dimNameMap||(t.dimNameMap=Fy(r.dimensionsDefine))}function Hy(r){return r>30}var hn=U,ar=W,kT=typeof Int32Array>"u"?Array:Int32Array,OT="e\0\0",$c=-1,BT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],NT=["_approximateExtent"],Zc,Ua,vn,cn,Pl,dn,Rl,Gy=function(){function r(t,e){this.type="list",this._dimOmitted=false,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=false,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=false;Ny(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=true,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=false,u={},f=0;f<i.length;f++){var h=i[f],c=V(h)?new po({name:h}):h instanceof po?h:new po(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=true),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=j();A(o,function(p){g.set(a[p].storeDimIndex,p)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof Iu&&(a=t),!a){var o=this.dimensions,s=Xf(t)||Zt(t)?new Ug(t,o.length):t;a=new Iu;var l=ar(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=LT(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&Rl(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==yr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===pe;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&G_(h)&&(this.hasItemOption=true),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=Be(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=Be(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Rl(this,f);Zc(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){hn(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=vn(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return Ua(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return z(t)?n.getValues(ar(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return false;return true},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?$c:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var n=i||this,a=ar(cn(t),this._getStoreDimIndex,this);this._store.each(a,n?ct(e,n):e)},r.prototype.filterSelf=function(t,e,i){q(t)&&(i=e,e=t,t=[]);var n=i||this,a=ar(cn(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?ct(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=pt(t);return A(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){q(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=ar(cn(t),this._getStoreDimIndex,this),s=dn(this);return s._store=this._store.map(o,a?ct(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=ar(cn(t),this._getStoreDimIndex,this);this._store.modify(o,a?ct(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=dn(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=dn(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=dn(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new yt(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new MT(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Ua(t,i)},function(i){return Ua(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},hn(t)?B(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),z(a)?a=a.slice():hn(a)&&(a=B({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,hn(e)?B(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){hn(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;j1(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ar(this.dimensions,this._getDimInfo,this),this.hostModel)),Pl(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];q(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(ff(arguments)))})},r.internalField=function(){Zc=function(t){var e=t._invertedIndicesMap;A(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new kT(o.categories.length);for(var l=0;l<i.length;l++)i[l]=$c;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},vn=function(t,e,i){return Be(t._getCategory(e,i),null)},Ua=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=vn(t,t._idDimIdx,e)),i==null&&(i=OT+e),i},cn=function(t){return z(t)||(t=t!=null?[t]:[]),t},dn=function(t){var e=new r(t._schema?t._schema:ar(t.dimensions,t._getDimInfo,t),t.hostModel);return Pl(e,t),e},Pl=function(t,e){A(BT.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,A(NT,function(i){t[i]=tt(e[i])}),t._calculationInfo=B({},e._calculationInfo)},Rl=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=vn(t,a,e)),l==null&&o!=null&&(n[e]=l=vn(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}}(),r}();function Vy(r,t){Xf(r)||(r=Gg(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=j(),a=[],o=zT(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Hy(o),l=i===r.dimensionsDefine,u=l?zy(r):Fy(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=j(f),c=new qg(o),v=0;v<c.length;v++)c[v]=-1;function d(D){var M=c[D];if(M<0){var C=i[D],L=U(C)?C:{name:C},I=new po,P=L.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),L.type!=null&&(I.type=L.type),L.displayName!=null&&(I.displayName=L.displayName);var R=a.length;return c[D]=R,I.storeDimIndex=D,a.push(I),I}return a[M]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(D,M){var C=Ft(D).slice();if(C.length===1&&!V(C[0])&&C[0]<0){h.set(M,false);return}var L=h.set(M,[]);A(C,function(I,P){var R=V(I)?u.get(I):I;R!=null&&R<o&&(L[P]=R,p(d(R),M,P))})});var g=0;A(e,function(D){var M,C,L,I;if(V(D))M=D,I={};else{I=D,M=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=B({},I),I.ordinalMeta=P,C=I.dimsDef,L=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var R=h.get(M);if(R!==false){if(R=Ft(R),!R.length)for(var E=0;E<(C&&C.length||1);E++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&R.push(g++)}A(R,function(F,k){var O=d(F);if(l&&I.type!=null&&(O.type=I.type),p(st(O,I),M,k),O.name==null&&C){var N=C[k];!U(N)&&(N={name:N}),O.name=O.displayName=N.name,O.defaultTooltip=N.defaultTooltip}L&&st(O.otherDims,L)})}});function p(D,M,C){Eg.get(M)!=null?D.otherDims[M]=C:(D.coordDim=M,D.coordDimIndex=C,n.set(M,true))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)A(a,function(D){b(D)}),a.sort(function(D,M){return D.storeDimIndex-M.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),T=x.coordDim;T==null&&(x.coordDim=HT(S,n,_),x.coordDimIndex=0,(!y||m<=0)&&(x.isExtraCoord=true),m--),b(x),x.type==null&&(Bg(r,w)===Dt.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return FT(a),new By({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function FT(r){for(var t=j(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function zT(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return A(t,function(a){var o;U(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function HT(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,true),r}var GT=function(){function r(t){this.coordSysDims=[],this.axisMap=j(),this.categoryAxisMap=j(),this.coordSysName=t}return r}();function VT(r){var t=r.get("coordinateSystem"),e=new GT(t),i=WT[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var WT={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",we).models[0],a=r.getReferringComponents("yAxis",we).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),bi(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),bi(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",we).models[0];t.coordSysDims=["single"],e.set("single",n),bi(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",we).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),bi(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),bi(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();A(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),bi(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function bi(r){return r.get("type")==="category"}function UT(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;YT(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(A(a,function(m,_){V(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=true),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=true);var v=f.coordDim,d=f.type,g=0;A(a,function(m){m.coordDim===v&&g++});var p={name:h,coordDim:v,coordDimIndex:g,type:d,isExtraCoord:true,isCalculationCoord:true,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:g+1,type:d,isExtraCoord:true,isCalculationCoord:true,storeDimIndex:a.length+1};o?(s&&(p.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(p),o.appendCalculationDimension(y)):(a.push(p),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function YT(r){return!Ny(r.schema)}function Gi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function XT(r,t){return Gi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function $T(r,t){var e=r.get("coordinateSystem"),i=Yf.get(e),n;return t&&t.coordSysDims&&(n=W(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=IT(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function ZT(r,t,e){var i,n;return e&&A(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=true)),a.otherDims.itemName!=null&&(n=true)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function eh(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=false;n=i.getSource(),a=n.sourceFormat===pe;var o=VT(t),s=$T(t,o),l=e.useEncodeDefaulter,u=q(l)?l:l?St(Hw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Vy(n,f),c=ZT(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),d=UT(t,{schema:h,store:v}),g=new Gy(h,t);g.setCalculationInfo(d);var p=c!=null&&qT(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return g.hasItemOption=false,g.initData(a?n:v,null,p),g}function qT(r){if(r.sourceFormat===pe){var t=KT(r.data||[]);return!z(aa(t))}}function KT(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var He=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();Jo(He);var QT=0,Wu=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++QT}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&W(i,jT);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==false})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!V(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=j(this.categories))},r}();function jT(r){return U(r)&&r.value!=null?r.value:r+""}function Uu(r){return r.type==="interval"||r.type==="log"}function JT(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=Pp(a/t);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=Wy(o),l=n.niceTickExtent=[bt(Math.ceil(r[0]/o)*o,s),bt(Math.floor(r[1]/o)*o,s)];return tC(l,r),n}function El(r){var t=Math.pow(10,_f(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,bt(e*t)}function Wy(r){return Ye(r)+2}function qc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function tC(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),qc(r,0,t),qc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function xs(r,t){return r>=t[0]&&r<=t[1]}function Ts(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Cs(r,t){return r*(t[1]-t[0])+t[0]}var rh=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Wu({})),z(n)&&(n=new Wu({categories:W(n,function(a){return U(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:V(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),xs(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Ts(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Cs(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[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 i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},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}(He);He.registerClass(rh);var Xr=bt,Xi=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return xs(e,this._extent)},t.prototype.normalize=function(e){return Ts(e,this._extent)},t.prototype.scale=function(e){return Cs(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Wy(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(e?s.push({value:Xr(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Xr(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Xr(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(true),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=Xr(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=Ye(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Xr(e.value,n,true);return Lg(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=JT(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Xr(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Xr(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(He);He.registerClass(Xi);var Uy=typeof Float32Array<"u",eC=Uy?Float32Array:Array;function Xe(r){return z(r)?Uy?new Float32Array(r):r:new eC(r)}var rC="__ec_stack_";function Yy(r){return r.get("stack")||rC+r.seriesIndex}function ih(r){return r.dim+r.index}function Xy(r,t){var e=[];return t.eachSeriesByType(r,function(i){Zy(i)&&e.push(i)}),e}function iC(r){var t={};A(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),g=0,p=d.count();g<p;++g){var y=d.get(v,g);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,u){return l-u});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function $y(r){var t=iC(r),e=[];return A(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=dt(i.get("barWidth"),s),g=dt(i.get("barMaxWidth"),s),p=dt(i.get("barMinWidth")||(qy(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:g,barMinWidth:p,barGap:y,barCategoryGap:m,axisKey:ih(a),stackId:Yy(i)})}),nC(e)}function nC(r){var t={};A(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var d=i.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return A(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=pt(a).length;s=Math.max(35-l*4,15)+"%"}var u=dt(s,o),f=dt(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),A(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var d=0,g;A(a,function(y,m){y.width||(y.width=v),g=y,d+=y.width*(1+f)}),g&&(d-=g.width*f);var p=-d/2;A(a,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:p,width:y.width},p+=y.width*(1+f)})}),e}function aC(r,t,e){if(r&&t){var i=r[ih(t)];return i}}function oC(r,t){var e=Xy(r,t),i=$y(e);A(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Yy(n),u=i[ih(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function sC(r){return{seriesType:r,plan:qf(),reset:function(t){if(Zy(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",true),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=Gi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=lC(n,a),d=qy(t),g=t.get("barMinHeight")||0,p=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,w=d&&Xe(b*3),x=d&&l&&Xe(b*3),T=d&&Xe(b),D=i.master.getRect(),M=c?D.width:D.height,C,L=S.getStore(),I=0;(C=_.next())!=null;){var P=L.get(h?p:o,C),R=L.get(s,C),E=v,F=void 0;h&&(F=+P-L.get(o,C));var k=void 0,O=void 0,N=void 0,H=void 0;if(c){var G=i.dataToPoint([P,R]);if(h){var K=i.dataToPoint([F,R]);E=K[0]}k=E,O=G[1]+m,N=G[0]-E,H=y,Math.abs(N)<g&&(N=(N<0?-1:1)*g)}else{var G=i.dataToPoint([R,P]);if(h){var K=i.dataToPoint([R,F]);E=K[1]}k=G[0]+m,O=E,N=y,H=G[1]-E,Math.abs(H)<g&&(H=(H<=0?-1:1)*g)}d?(w[I]=k,w[I+1]=O,w[I+2]=c?N:H,x&&(x[I]=c?D.x:k,x[I+1]=c?O:D.y,x[I+2]=M),T[C]=C):S.setItemLayout(C,{x:k,y:O,width:N,height:H}),I+=3}d&&S.setLayout({largePoints:w,largeDataIndices:T,largeBackgroundPoints:x,valueAxisHorizontal:c})}}}}}}function Zy(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function qy(r){return r.pipelineContext&&r.pipelineContext.large}function lC(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var uC=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},Ky=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return vs(e.value,Hv[Iw(Oi(this._minLevelUnit))]||Hv.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Pw(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=gC(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=fe,i[1]+=fe),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-fe}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Ya.length,l=Math.min(uC(Ya,this._approxInterval,0,s),s-1);this._interval=Ya[l][1],this._minLevelUnit=Ya[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return vt(e)?e:+Qe(e)},t.prototype.contain=function(e){return xs(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Ts(this.parse(e),this._extent)},t.prototype.scale=function(e){return Cs(e,this._extent)},t.type="time",t}(Xi),Ya=[["second",Ff],["minute",zf],["hour",Bn],["quarter-day",Bn*6],["half-day",Bn*12],["day",fe*1.2],["half-week",fe*3.5],["week",fe*7],["month",fe*31],["quarter",fe*95],["half-year",zv/2],["year",zv]];function fC(r,t,e,i){var n=Qe(t),a=Qe(e),o=function(d){return Gv(n,d,i)===Gv(a,d,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function hC(r,t){return r/=fe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function vC(r){var t=30*fe;return r/=t,r>6?6:r>3?3:r>2?2:1}function cC(r){return r/=Bn,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Kc(r,t){return r/=t?zf:Ff,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function dC(r){return Pp(r)}function pC(r,t,e){var i=new Date(r);switch(Oi(t)){case"year":case"month":i[xg(e)](0);case"day":i[Tg(e)](1);case"hour":i[Cg(e)](0);case"minute":i[Dg(e)](0);case"second":i[Mg(e)](0),i[Ag(e)](0)}return i.getTime()}function gC(r,t,e,i){var n=1e4,a=wg,o=0;function s(M,C,L,I,P,R,E){for(var F=new Date(C),k=C,O=F[I]();k<L&&k<=i[1];)E.push({value:k}),O+=M,F[P](O),k=F.getTime();E.push({value:k,notAdd:true})}function l(M,C,L){var I=[],P=!C.length;if(!fC(Oi(M),i[0],i[1],e)){P&&(C=[{value:pC(new Date(i[0]),M,e)},{value:i[1]}]);for(var R=0;R<C.length-1;R++){var E=C[R].value,F=C[R+1].value;if(E!==F){var k=void 0,O=void 0,N=void 0,H=false;switch(M){case"year":k=Math.max(1,Math.round(t/fe/365)),O=Hf(e),N=Rw(e);break;case"half-year":case"quarter":case"month":k=vC(t),O=Bi(e),N=xg(e);break;case"week":case"half-week":case"day":k=hC(t),O=cs(e),N=Tg(e),H=true;break;case"half-day":case"quarter-day":case"hour":k=cC(t),O=qn(e),N=Cg(e);break;case"minute":k=Kc(t,true),O=ds(e),N=Dg(e);break;case"second":k=Kc(t,false),O=ps(e),N=Mg(e);break;case"millisecond":k=dC(t),O=gs(e),N=Ag(e);break}s(k,E,F,O,N,H,I),M==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-k})}}for(var R=0;R<I.length;R++)L.push(I[R]);return I}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<n;++v){var d=Oi(a[v]);if(Lw(a[v])){l(a[v],u[u.length-1]||[],f);var g=a[v+1]?Oi(a[v+1]):null;if(d!==g){if(f.length){c=h,f.sort(function(M,C){return M.value-C.value});for(var p=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(p.push(f[y]),m>=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(p),h>_||r===a[v]))break}f=[]}}}for(var S=At(W(u,function(M){return At(M,function(C){return C.value>=i[0]&&C.value<=i[1]&&!C.notAdd})}),function(M){return M.length>0}),b=[],w=S.length-1,v=0;v<S.length;++v)for(var x=S[v],T=0;T<x.length;++T)b.push({value:x[T].value,level:w-v});b.sort(function(M,C){return M.value-C.value});for(var D=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&D.push(b[v]);return D}He.registerClass(Ky);var Qc=He.prototype,Gn=Xi.prototype,yC=bt,mC=Math.floor,_C=Math.ceil,Xa=Math.pow,ye=Math.log,nh=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Xi,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=Gn.getTicks.call(this,e);return W(o,function(s){var l=s.value,u=bt(Xa(this.base,l));return u=l===n[0]&&this._fixMin?$a(u,a[0]):u,u=l===n[1]&&this._fixMax?$a(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var n=ye(this.base);e=ye(Math.max(0,e))/n,i=ye(Math.max(0,i))/n,Gn.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=Qc.getExtent.call(this);i[0]=Xa(e,i[0]),i[1]=Xa(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=$a(i[0],a[0])),this._fixMax&&(i[1]=$a(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=ye(e[0])/ye(i),e[1]=ye(e[1])/ye(i),Qc.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=F_(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[bt(_C(i[0]/a)*a),bt(mC(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){Gn.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=ye(e)/ye(this.base),xs(e,this._extent)},t.prototype.normalize=function(e){return e=ye(e)/ye(this.base),Ts(e,this._extent)},t.prototype.scale=function(e){return e=Cs(e,this._extent),Xa(this.base,e)},t.type="log",t}(He),Qy=nh.prototype;Qy.getMinorTicks=Gn.getMinorTicks;Qy.getLabel=Gn.getLabel;function $a(r,t){return yC(r,Ye(t))}He.registerClass(nh);var SC=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",true);a==null&&(a=e.get("startValue",true));var o=this._modelMinRaw=a;q(o)?this._modelMinNum=Za(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Za(t,o));var s=this._modelMaxRaw=e.get("max",true);if(q(s)?this._modelMaxNum=Za(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=Za(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Sr(u[0],1),Sr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=mo(s)||mo(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=true),v!=null&&(l=v,f=true),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[bC[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=wC[t];this[i]=e},r.prototype.freeze=function(){this.frozen=true},r}(),wC={min:"_determinedMin",max:"_determinedMax"},bC={min:"_dataMin",max:"_dataMax"};function xC(r,t,e){var i=r.rawExtentInfo;return i||(i=new SC(r,t,e),r.rawExtentInfo=i,i)}function Za(r,t){return t==null?null:mo(t)?NaN:r.parse(t)}function jy(r,t){var e=r.type,i=xC(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=Xy("bar",o),l=false;if(A(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=$y(s),f=TC(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function TC(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=aC(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;A(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;A(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function jc(r,t){var e=t,i=jy(r,e),n=i.extent,a=e.get("splitNumber");r instanceof nh&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function CC(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new rh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Ky({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(He.getClass(t)||Xi)}}function DC(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function $i(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):V(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a??"");return o}}(t):q(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(ah(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function ah(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function MC(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof rh?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=$i(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=AC(v,o.get("rotate")||0);l?l.union(d):l=d}return l}}function AC(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ot(r.x,r.y,a,o);return s}function oh(r){var t=r.get("interval");return t??"auto"}function Jy(r){return r.type==="category"&&oh(r.getLabelModel())===0}function LC(r,t){var e={};return A(r.mapDimensionsAll(t),function(i){e[XT(r,i)]=true}),pt(e)}var IC=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}(),Jc=[],PC={registerPreprocessor:Ey,registerProcessor:ky,registerPostInit:wT,registerPostUpdate:bT,registerUpdateLifecycle:Jf,registerAction:Yi,registerCoordinateSystem:xT,registerLayout:TT,registerVisual:oi,registerTransform:DT,registerLoading:Oy,registerMap:CT,registerImpl:eT,PRIORITY:dT,ComponentModel:lt,ComponentView:xe,SeriesModel:be,ChartView:ce,registerComponentModel:function(r){lt.registerClass(r)},registerComponentView:function(r){xe.registerClass(r)},registerSeriesModel:function(r){be.registerClass(r)},registerChartView:function(r){ce.registerClass(r)},registerSubTypeDefaulter:function(r,t){lt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){P_(r,t)}};function xr(r){if(z(r)){A(r,function(t){xr(t)});return}ft(Jc,r)>=0||(Jc.push(r),q(r)&&(r={install:r}),r.install(PC))}var ea=wt();function tm(r,t){var e=W(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function RC(r){var t=r.getLabelModel().get("customValues");if(t){var e=$i(r),i=r.scale.getExtent(),n=tm(r,t),a=At(n,function(o){return o>=i[0]&&o<=i[1]});return{labels:W(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?kC(r):BC(r)}function EC(r,t){var e=r.getTickModel().get("customValues");if(e){var i=r.scale.getExtent(),n=tm(r,e);return{ticks:At(n,function(a){return a>=i[0]&&a<=i[1]})}}return r.type==="category"?OC(r,t):{ticks:W(r.scale.getTicks(),function(a){return a.value})}}function kC(r){var t=r.getLabelModel(),e=em(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function em(r,t){var e=rm(r,"labels"),i=oh(t),n=im(e,i);if(n)return n;var a,o;return q(i)?a=om(r,i):(o=i==="auto"?NC(r):i,a=am(r,o)),nm(e,i,{labels:a,labelCategoryInterval:o})}function OC(r,t){var e=rm(r,"ticks"),i=oh(t),n=im(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(i))a=om(r,i,true);else if(i==="auto"){var s=em(r,r.getLabelModel());o=s.labelCategoryInterval,a=W(s.labels,function(l){return l.tickValue})}else o=i,a=am(r,o,true);return nm(e,i,{ticks:a,tickCategoryInterval:o})}function BC(r){var t=r.scale.getTicks(),e=$i(r);return{labels:W(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function rm(r,t){return ea(r)[t]||(ea(r)[t]=[])}function im(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function nm(r,t,e){return r.push({key:t,value:e}),e}function NC(r){var t=ea(r).autoInterval;return t??(ea(r).autoInterval=r.calculateCategoryInterval())}function FC(r){var t=zC(r),e=$i(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=a[1];l+=s){var d=0,g=0,p=yf(e({value:l}),t.font,"center","top");d=p.width*1.3,g=p.height*1.3,c=Math.max(c,d,7),v=Math.max(v,g,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=ea(r.model),b=r.getExtent(),w=S.lastAutoInterval,x=S.lastTickCount;return w!=null&&x!=null&&Math.abs(w-_)<=1&&Math.abs(x-o)<=1&&w>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=w:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function zC(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function am(r,t,e){var i=$i(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Jy(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&g(a[0]);for(var d=u;d<=a[1];d+=l)g(d);v&&d-l!==a[1]&&g(a[1]);function g(p){var y={value:p};s.push(e?p:{formattedLabel:i(y),rawLabel:n.getLabel(y),tickValue:p})}return s}function om(r,t,e){var i=r.scale,n=$i(r),a=[];return A(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var td=[0,1],HC=function(){function r(t,e,i){this.onBand=false,this.inverse=false,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return k_(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),ed(i,n.count())),gu(t,td,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),ed(i,n.count()));var a=gu(t,i,td,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=EC(this,e),n=i.ticks,a=W(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return GC(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=W(i,function(a){return W(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return RC(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return FC(this)},r}();function ed(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function GC(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;A(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=bt(v),d=bt(d),h?v>d:v<d}}function sm(r,t,e,i,n,a,o,s){var l=n-r,u=a-t,f=e-r,h=i-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,d=v/c;d*=c;var g=o[0]=r+d*f,p=o[1]=t+d*h;return Math.sqrt((g-n)*(g-n)+(p-a)*(p-a))}var vr=new Z,gt=new Z,Mt=new Z,cr=new Z,Ee=new Z,Xo=[],Nt=new Z;function VC(r,t){if(t<=180&&t>0){t=t/180*Math.PI,vr.fromArray(r[0]),gt.fromArray(r[1]),Mt.fromArray(r[2]),Z.sub(cr,vr,gt),Z.sub(Ee,Mt,gt);var e=cr.len(),i=Ee.len();if(!(e<.001||i<.001)){cr.scale(1/e),Ee.scale(1/i);var n=cr.dot(Ee),a=Math.cos(t);if(a<n){var o=sm(gt.x,gt.y,Mt.x,Mt.y,vr.x,vr.y,Xo);Nt.fromArray(Xo),Nt.scaleAndAdd(Ee,o/Math.tan(Math.PI-t));var s=Mt.x!==gt.x?(Nt.x-gt.x)/(Mt.x-gt.x):(Nt.y-gt.y)/(Mt.y-gt.y);if(isNaN(s))return;s<0?Z.copy(Nt,gt):s>1&&Z.copy(Nt,Mt),Nt.toArray(r[1])}}}}function WC(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,vr.fromArray(r[0]),gt.fromArray(r[1]),Mt.fromArray(r[2]),Z.sub(cr,gt,vr),Z.sub(Ee,Mt,gt);var i=cr.len(),n=Ee.len();if(!(i<.001||n<.001)){cr.scale(1/i),Ee.scale(1/n);var a=cr.dot(t),o=Math.cos(e);if(a<o){var s=sm(gt.x,gt.y,Mt.x,Mt.y,vr.x,vr.y,Xo);Nt.fromArray(Xo);var l=Math.PI/2,u=Math.acos(Ee.dot(t)),f=l+u-e;if(f>=l)Z.copy(Nt,Mt);else{Nt.scaleAndAdd(Ee,s/Math.tan(Math.PI/2-f));var h=Mt.x!==gt.x?(Nt.x-gt.x)/(Mt.x-gt.x):(Nt.y-gt.y)/(Mt.y-gt.y);if(isNaN(h))return;h<0?Z.copy(Nt,gt):h>1&&Z.copy(Nt,Mt)}Nt.toArray(r[1])}}}}function kl(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===true&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function UC(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=eu(i[0],i[1]),a=eu(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=As([],i[1],i[0],o/n),l=As([],i[1],i[2],o/a),u=As([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function YC(r,t,e){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,l=0;l<Io.length;l++){var u=Io[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:Q(n.states[u]&&n.states[u].ignore,s);if(v||!Q(c,o)){var d=h?i:i&&i.states[u];d&&(d.ignore=true),i&&kl(i,true,u,f);continue}i||(i=new la,r.setTextGuideLine(i),!h&&(s||!o)&&kl(i,true,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),kl(i,false,u,f)}}if(i){st(i.style,e),i.style.fill=null;var g=a.get("showAbove"),p=r.textGuideLineConfig=r.textGuideLineConfig||{};p.showAbove=g||false,i.buildPath=UC}}function XC(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<de.length;i++){var n=de[i];e[n]=r.getModel([n,t])}return e}function $C(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new ko(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function ZC(r,t,e,i,n,a){var o=r.length;if(o<2)return;r.sort(function(w,x){return w.rect[t]-x.rect[t]});for(var s=0,l,u=false,f=0;f<o;f++){var h=r[f],c=h.rect;l=c[t]-s,l<0&&(c[t]-=l,h.label[t]-=l,u=true),s=c[t]+c[e]}var v=r[0],d=r[o-1],g,p;y(),g<0&&S(-g,.8),p<0&&S(p,.8),y(),m(g,p,1),m(p,g,-1),y(),g<0&&b(-g),p<0&&b(p);function y(){g=v.rect[t]-i,p=n-d.rect[t]-d.rect[e]}function m(w,x,T){if(w<0){var D=Math.min(x,-w);if(D>0){_(D*T,0,o);var M=D+w;M<0&&S(-M*T,1)}else S(-w*T,1)}}function _(w,x,T){w!==0&&(u=true);for(var D=x;D<T;D++){var M=r[D],C=M.rect;C[t]+=w,M.label[t]+=w}}function S(w,x){for(var T=[],D=0,M=1;M<o;M++){var C=r[M-1].rect,L=Math.max(r[M].rect[t]-C[t]-C[e],0);T.push(L),D+=L}if(D){var I=Math.min(Math.abs(w)/D,x);if(w>0)for(var M=0;M<o-1;M++){var P=T[M]*I;_(P,0,M+1)}else for(var M=o-1;M>0;M--){var P=T[M-1]*I;_(-P,M,o)}}}function b(w){var x=w<0?-1:1;w=Math.abs(w);for(var T=Math.ceil(w/(o-1)),D=0;D<o-1;D++)if(x>0?_(T,0,D+1):_(-T,o-D-1,o),w-=T,w<=0)return}return u}function qC(r,t,e,i){return ZC(r,"y","height",t,e)}function KC(r){var t=[];r.sort(function(g,p){return p.priority-g.priority});var e=new ot(0,0,0,0);function i(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=false)}g.ignore=true}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=false,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){c=true;break}if(d.obb||(d.obb=new ko(d.localRect,d.transform)),h||(h=new ko(s,l)),h.intersect(d.obb)){c=true;break}}}c?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function rd(r,t,e){var i=Vi.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",r)),i.width=n*e,i.height=a*e,i}var Ol=function(r){ht(t,r);function t(e,i,n){var a=r.call(this)||this;a.motionBlur=false,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=false,a.config={},a.incremental=false,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=true,a.__firstTimePaint=true,a.__used=false,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||Co,typeof e=="string"?o=rd(e,i,n):U(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(fp(o),o.onselectstart=function(){return false},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}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=true},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=rd("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=false,null;var o=[],s=this.maxRepaintRectCount,l=false,u=new ot(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=false,b=1/0,w=0,x=0;x<o.length;++x){var T=o[x];if(T.intersect(m)){var D=new ot(0,0,0,0);D.copy(T),D.union(m),o[x]=D,S=true;break}else if(l){u.copy(m),u.union(T);var M=m.width*m.height,C=T.width*T.height,L=u.width*u.height,I=L-M-C;I<b&&(b=I,w=x)}}if(l&&(o[w].union(m),S=true),!S){var _=new ot(0,0,0,0);_.copy(m),o.push(_)}l||(l=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(n,a,true,true),d=c.__isRendered&&(c.__dirty&jt||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&jt||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=i[h],v=c&&c.shouldBePainted(n,a,true,true);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=false;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=true,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=i+"px"),a.width=e*n,a.height=i*n,s&&(s.width=e*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(e,i,n){var a=this.dom,o=this.ctx,s=a.width,l=a.height;i=i||this.clearColor;var u=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,l/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),i&&i!=="transparent"){var _=void 0;if(qo(i)){var S=i.global||i.__width===y&&i.__height===m;_=S&&i.__canvasGradient||Nu(o,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=_,i.__width=y,i.__height=m}else c0(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Fu(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(g,p,y,m),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!n||u?d(0,0,s,l):n.length&&A(n,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t}(Fe),id=1e5,$r=314159,qa=.01,QC=.001;function jC(r){return r?r.__builtin__?true:!(typeof r.resize!="function"||typeof r.refresh!="function"):false}function JC(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var tD=function(){function r(t,e,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=false,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=B({},i||{}),this.dpr=i.devicePixelRatio||Co,this._singleCanvas=a,this.root=t;var o=t.style;o&&(fp(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var f=t,h=f.width,c=f.height;i.width!=null&&(h=i.width),i.height!=null&&(c=i.height),this.dpr=i.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new Ol(f,this,this.dpr);v.__builtin__=true,v.initContext(),l[$r]=v,v.zlevel=$r,s.push($r),this._domRoot=t}else{this._width=Ga(t,0,i),this._height=Ga(t,1,i);var u=this._domRoot=JC(this._width,this._height);t.appendChild(u)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(true),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(false))},r.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),!!e){for(var n={inHover:true,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(id)),a||(a=i.ctx,a.save()),Qr(a,s,n,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(id)},r.prototype.paintOne=function(t,e){gy(t,e)},r.prototype._paintList=function(t,e,i,n){if(this._redrawId===n){i=i||false,this._updateLayerStatus(t);var a=this._doPaintList(t,e,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;_o(function(){l._paintList(t,e,i,n)})}}},r.prototype._compositeManually=function(){var t=this.getLayer($r).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)})},r.prototype._doPaintList=function(t,e,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&a.push(u)}for(var f=true,h=false,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=i?p.__startIndex:p.__drawIndex,S=!i&&p.incremental&&Date.now,b=S&&Date.now(),w=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(false,w,m);else if(_===p.__startIndex){var x=t[_];(!x.incremental||!x.notClear||i)&&p.clear(false,w,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var T,D=function(I){var P={inHover:false,allClipped:false,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(T=_;T<p.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=true),n._doPaintEl(R,p,o,I,P,T===p.__endIndex-1),S){var E=Date.now()-b;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=p.__endIndex;else for(var M=v.dpr,C=0;C<m.length;++C){var L=m[C];y.save(),y.beginPath(),y.rect(L.x*M,L.y*M,L.width*M,L.height*M),y.clip(),D(L),y.restore()}else y.save(),D(),y.restore();p.__drawIndex=T,p.__drawIndex<p.__endIndex&&(f=false)},v=this,d=0;d<a.length;d++)c(d);return $.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,i,n,a,o){var s=e.ctx;if(i){var l=t.getPaintRect();(!n||l&&l.intersect(n))&&(Qr(s,t,a,o),t.setPrevPaintRect(l))}else Qr(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=$r);var i=this._layers[t];return i||(i=new Ol("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=true,this._layerConfig[t]?at(i,this._layerConfig[t],true):this._layerConfig[t-qa]&&at(i,this._layerConfig[t-qa],true),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},r.prototype.insertLayer=function(t,e){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,l=-1;if(!i[t]&&jC(e)){if(a>0&&t>n[0]){for(l=0;l<a-1&&!(n[l]<t&&n[l+1]>t);l++);s=i[n[l]]}if(n.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(e.dom,u.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=false});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=true),a.__endIndex=h)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=true;break}}var a=null,o=0,s,l;for(l=0;l<t.length;l++){var n=t[l],u=n.zlevel,f=void 0;s!==u&&(s=u,o=0),n.incremental?(f=this.getLayer(u+QC,this._needsManuallyCompositing),f.incremental=true,o=1):f=this.getLayer(u+(o>0?qa:0),this._needsManuallyCompositing),f.__builtin__||uf("ZLevel "+u+" has been used by unkown layer "+f.id),f!==a&&(f.__used=true,f.__startIndex!==l&&(f.__dirty=true),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,e(l),a=f),n.__dirty&jt&&!n.__inHover&&(f.__dirty=true,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}e(l),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=true,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?at(i[t],e,true):i[t]=e;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+qa){var o=this._layers[a];at(o,i[t],true)}}}},r.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,n=e[t];n&&(n.dom.parentNode.removeChild(n.dom),delete e[t],i.splice(ft(i,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),e!=null&&(n.height=e),t=Ga(a,0,n),e=Ga(a,1,n),i.style.display="",this._width!==t||e!==this._height){i.style.width=t+"px",i.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(true)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer($r).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[$r].dom;var e=new Ol("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(false,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?i.drawImage(h.dom,0,0,n,a):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else for(var o={inHover:false,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(true),l=0,u=s.length;l<u;l++){var f=s[l];Qr(i,f,o,l===u-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r}();function eD(r){r.registerPainter("canvas",tD)}var rD=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:false,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:false,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(lt),Yu=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",we).models[0]},t.type="cartesian2dAxis",t}(lt);Ne(Yu,IC);var lm={show:true,z:0,inverse:false,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:false,triggerEvent:false,tooltip:{show:false},axisPointer:{},axisLine:{show:true,onZero:true,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:true,inside:false,length:5,lineStyle:{width:1}},axisLabel:{show:true,inside:false,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:true,showMinLine:true,showMaxLine:true,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:false,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},iD=at({boundaryGap:true,deduplication:null,splitLine:{show:false},axisTick:{alignWithLabel:false,interval:"auto"},axisLabel:{interval:"auto"}},lm),sh=at({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:false,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:false,lineStyle:{color:"#F4F7FD",width:1}}},lm),nD=at({splitNumber:6,axisLabel:{showMinLabel:false,showMaxLabel:false,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:false}},sh),aD=st({logBase:10},sh);const oD={category:iD,value:sh,time:nD,log:aD};var sD={value:1,category:1,time:1,log:1};function nd(r,t,e,i){A(sD,function(n,a){var o=at(at({},oD[a],true),i,true),s=function(l){Y(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Kn(this),v=c?ms(f):{},d=h.getTheme();at(f,d.get(a+"Axis")),at(f,this.getDefaultOption()),f.type=ad(f),c&&Fi(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Wu.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",ad)}function ad(r){return r.type||(r.data?"category":"value")}var lD=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return W(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),At(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Xu=["x","y"];function od(r){return r.type==="interval"||r.type==="time"}var uD=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Xu,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!od(e)||!od(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=df([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new ot(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return he(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return he(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new ot(a,o,s,l)},t}(lD),fD=function(r){Y(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return false;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(HC);function $u(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(g,d[1]),d[0])}a.position=[u==="y"?d[c[l]]:h[0],u==="x"?d[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=p[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Wn(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function sd(r){return r.get("coordinateSystem")==="cartesian2d"}function ld(r){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,we).models[0];t[i]=a}),t}var Bl=Math.log;function hD(r,t,e){var i=Xi.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,true),o=n.length-1,s=i.getInterval.call(e),l=jy(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=Bl(r.base);u=[Bl(u[0])/c,Bl(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var d=i.getInterval.call(r),g=u[0],p=u[1];if(f&&h)d=(p-g)/o;else if(f)for(p=u[0]+d*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)d=El(d),p=u[0]+d*o;else if(h)for(g=u[1]-d*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)d=El(d),g=u[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=El(d));var m=d*o;p=Math.ceil(u[1]/d)*d,g=bt(p-m),g<0&&u[0]>=0?(g=0,p=bt(m)):p>0&&u[1]<=0&&(p=0,g=-bt(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,g+d*_,p+d*S),i.setInterval.call(r,d),(_||S)&&i.setNiceExtent.call(r,g+d,p-d)}var vD=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=true,this.dimensions=Xu,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=pt(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],d=v.model,g=v.scale;Uu(g)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(jc(g,d),Uu(g)&&(s=v))}f.length&&(s||(s=f.pop(),jc(s.scale,s.model)),A(f,function(p){hD(p.scale,p.model,s.scale)}))}}n(i.x),n(i.y);var a={};A(i.x,function(o){ud(i,"y",o,a)}),A(i.y,function(o){ud(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=Ni(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=MC(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()});function l(){A(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),cD(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}U(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",we).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",we).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ft(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:false,right:false,top:false,bottom:false},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,A(s.x,function(f,h){A(s.y,function(c,v){var d="x"+h+"y"+v,g=new uD(d);g.master=n,g.model=t,n._coordsMap[d]=g,n._coordsList.push(g),g.addAxis(f),g.addAxis(c)})});function u(f){return function(h,c){if(Nl(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=true;var d=new fD(f,CC(h),[0,0],h.get("type"),v),g=d.type==="category";d.onBand=g&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){A(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(sd(n)){var a=ld(n),o=a.xAxisModel,s=a.yAxisModel;if(!Nl(o,e)||!Nl(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){A(LC(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return A(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);ft(e,a)<0&&e.push(a),ft(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,true),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){if(sd(n)){var a=ld(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=Xu,r}();function Nl(r,t){return r.getCoordSysModel()===t}function ud(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)fd(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&fd(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=true);function f(h){return h.dim+"_"+h.index}}function fd(r){return r&&r.type!=="category"&&r.type!=="time"&&DC(r)}function cD(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}var dr=Math.PI,mr=function(){function r(t,e){this.group=new It,this.opt=e,this.axisModel=t,st(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:true,handleAutoShown:function(){return true}});var i=new It({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!hd[t]},r.prototype.add=function(t){hd[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=Ip(e-t),a,o;return Mo(n)?(o=i>0?"top":"bottom",a="center"):Mo(n-dr)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<dr?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),hd={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(he(s,s,o),he(l,l,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new wr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:true,z2:1});Zn(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);V(c)&&(c=[c,c]),(V(v)||vt(v))&&(v=[v,v]);var d=vy(t.get(["axisLine","symbolOffset"])||0,v),g=v[0],p=v[1];A([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Hi(c[m],-g/2,-p/2,g,p,f.stroke,true),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:true,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=gD(e,i,t,r),a=mD(e,i,t,r);if(pD(t,a,n),yD(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=$C(W(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));KC(o)}},axisName:function(r,t,e,i){var n=Wn(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,cd(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*dr/180);var d;cd(a)?c=mr.innerTextLayout(r.rotation,v??r.rotation,o):(c=dD(r.rotation,a,v||0,u),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var g=s.getFont(),p=t.get("nameTruncate",true)||{},y=p.ellipsis,m=Wn(r.nameTruncateMaxWidth,p.maxWidth,d),_=new Pt({x:h[0],y:h[1],rotation:c.rotation,silent:mr.isLabelSilent(t),style:br(s,{text:n,font:g,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(ss({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=mr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,rt(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function dD(r,t,e,i){var n=Ip(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Mo(n-dr/2)?(o=l?"bottom":"top",a="center"):Mo(n-dr*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<dr*1.5&&n>dr/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function pD(r,t,e){if(!Jy(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===false?(re(a),re(u)):vd(a,o)&&(i?(re(o),re(f)):(re(a),re(u))),n===false?(re(s),re(h)):vd(l,s)&&(n?(re(l),re(c)):(re(s),re(h)))}}function re(r){r&&(r.ignore=true)}function vd(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=vf([]);return cf(n,n,-r.rotation),e.applyTransform(Ri([],n,r.getLocalTransform())),i.applyTransform(Ri([],n,t.getLocalTransform())),e.intersect(i)}}function cd(r){return r==="middle"||r==="center"}function um(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(he(o,o,t),he(s,s,t));var f=new wr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:true,silent:true});Zn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function gD(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=um(u,t.transform,l,st(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function yD(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=st(s.getLineStyle(),st(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=um(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function mD(r,t,e,i){var n=e.axis,a=Wn(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Wn(i.labelRotate,o.get("rotate"))||0)*dr/180,f=mr.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(true),c=[],v=mr.isLabelSilent(e),d=e.get("triggerEvent");return A(l,function(g,p){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,m=g.formattedLabel,_=g.rawLabel,S=o;if(h&&h[y]){var b=h[y];U(b)&&b.textStyle&&(S=new yt(b.textStyle,o,e.ecModel))}var w=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),x=n.dataToCoord(y),T=S.getShallow("align",true)||f.textAlign,D=Q(S.getShallow("alignMinLabel",true),T),M=Q(S.getShallow("alignMaxLabel",true),T),C=S.getShallow("verticalAlign",true)||S.getShallow("baseline",true)||f.textVerticalAlign,L=Q(S.getShallow("verticalAlignMinLabel",true),C),I=Q(S.getShallow("verticalAlignMaxLabel",true),C),P=new Pt({x,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(g.level||0),style:br(S,{text:m,align:p===0?D:p===l.length-1?M:T,verticalAlign:p===0?L:p===l.length-1?I:C,fill:q(w)?w(n.type==="category"?_:n.type==="value"?y+"":y,p):w})});if(P.anid="label_"+y,ss({el:P,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:p}}),d){var R=mr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=p,n.type==="category"&&(R.dataIndex=y),rt(P).eventData=R}t.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}function _D(r,t){var e={axesInfo:{},seriesInvolved:false,coordSysAxesInfo:{},coordSysMap:{}};return SD(e,r,t),e.seriesInvolved&&bD(e,r),e}function SD(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",true)||[],o=[];A(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ra(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(A(s.getAxes(),St(g,false,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&A(d.baseAxes,St(g,v?"cross":true,c)),v&&A(d.otherAxes,St(g,"cross",false))}function g(p,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!p&&!Zu(_))){y==null&&(y=_.get("triggerTooltip")),_=p?wD(m,h,n,t,p,y):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),x=ra(m.model),T=y||b||m.type==="category",D=r.axesInfo[x]={key:x,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:T,snap:b,useHandle:Zu(_),seriesModels:[],linkGroup:null};u[x]=D,r.seriesInvolved=r.seriesInvolved||T;var M=xD(a,m);if(M!=null){var C=o[M]||(o[M]={axesInfo:{}});C.axesInfo[x]=D,C.mapper=a[M].mapper,D.linkGroup=C}}}})}function wD(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};A(s,function(c){l[c]=tt(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=false),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??true,!a){var h=l.lineStyle=o.get("crossStyle");h&&st(u,h.textStyle)}}return r.model.getModel("axisPointer",new yt(l,e,i))}function bD(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],true),a=e.get(["tooltip","show"],true);!i||n==="none"||n===false||n==="item"||a===false||e.get(["axisPointer","show"],true)===false||A(r.coordSysAxesInfo[ra(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function xD(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(Fl(a[i+"AxisId"],e.id)||Fl(a[i+"AxisIndex"],e.componentIndex)||Fl(a[i+"AxisName"],e.name))return n}}function Fl(r,t){return r==="all"||z(r)&&ft(r,t)>=0||r===t}function TD(r){var t=lh(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=Zu(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function lh(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ra(r)]}function CD(r){var t=lh(r);return t&&t.axisPointerModel}function Zu(r){return!!r.get(["handle","show"])}function ra(r){return r.type+"||"+r.id}var dd={},fm=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&TD(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,true)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,false)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=CD(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){dd[e]=i},t.getAxisPointerClass=function(e){return e&&dd[e]},t.type="axis",t}(xe),qu=wt();function DD(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:true});if(u.length){var f=s.length,h=qu(r).splitAreaColors,c=j(),v=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(g!=null){v=(g+(f-1)*d)%f;break}}var p=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,w=void 0;n.isHorizontal()?(_=p,S=l.y,b=m-_,w=l.height,p=_+b):(_=l.x,S=p,b=l.width,w=m-S,p=S+w);var x=u[d-1].tickValue;x!=null&&c.set(x,v),t.add(new xt({anid:x!=null?"area_"+x:null,shape:{x:_,y:S,width:b,height:w},style:st({fill:s[v]},y),autoBatch:true,silent:true})),v=(v+1)%f}qu(r).splitAreaColors=c}}}function MD(r){qu(r).splitAreaColors=null}var AD=["axisLine","axisTickLabel","axisName"],LD=["splitArea","splitLine","minorSplitLine"],hm=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new It,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=$u(s,e),u=new mr(e,B({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Uu(c[v].getOtherAxis(e.axis).scale))return true;return false}},l));A(AD,u.add,u),this._axisGroup.add(u.getGroup()),A(LD,function(h){e.get([h,"show"])&&ID[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||dg(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){MD(this)},t.type="cartesianAxis",t}(fm),ID={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==false,u=a.get("showMaxLine")!==false;s=z(s)?s:[s];for(var f=i.coordinateSystem.getRect(),h=n.isHorizontal(),c=0,v=n.getTicksCoords({tickModel:a}),d=[],g=[],p=o.getLineStyle(),y=0;y<v.length;y++){var m=n.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;h?(d[0]=m,d[1]=f.y,g[0]=m,g[1]=f.y+f.height):(d[0]=f.x,d[1]=m,g[0]=f.x+f.width,g[1]=m);var S=c++%s.length,b=new wr({anid:_!=null?"line_"+_:null,autoBatch:true,shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:st({stroke:s[S]},p),silent:true});Zn(b.shape,p.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var d=0;d<u[v].length;d++){var g=n.toGlobalCoord(u[v][d].coord);l?(f[0]=g,f[1]=s.y,h[0]=g,h[1]=s.y+s.height):(f[0]=s.x,f[1]=g,h[0]=s.x+s.width,h[1]=g);var p=new wr({anid:"minor_line_"+u[v][d].tickValue,autoBatch:true,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:true});Zn(p.shape,c.lineWidth),t.add(p)}},splitArea:function(r,t,e,i){DD(r,t,e,i)}},vm=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(hm),PD=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=vm.type,e}return t.type="yAxis",t}(hm),RD=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new xt({shape:e.coordinateSystem.getRect(),style:st({fill:e.get("backgroundColor")},e.getItemStyle()),silent:true,z2:-1}))},t.type="grid",t}(xe),pd={offset:0};function ED(r){r.registerComponentView(RD),r.registerComponentModel(rD),r.registerCoordinateSystem("cartesian2d",vD),nd(r,"x",Yu,pd),nd(r,"y",Yu,pd),r.registerComponentView(vm),r.registerComponentView(PD),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Zr=wt(),gd=tt,zl=ct,kD=function(){function r(){this._dragging=false,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new It,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=St(yd,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}_d(s,e,true),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return false;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return true;if(o){var l=lh(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return false}return i===true},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Zr(t).pointerEl=new uw[a.type](gd(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Zr(t).labelEl=new Pt(gd(e.label));t.add(a),md(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Zr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Zr(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),md(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=true,n=this._handle=Of(a.get("icon"),{cursor:"move",draggable:true,onmousemove:function(u){vp(u.event)},onmousedown:zl(this._onHandleDragMove,this,0,0),drift:zl(this._onHandleDragMove,this),ondragend:zl(this._onHandleDragEnd,this)}),i.add(n)),_d(n,e,false),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,ny(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){yd(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Hl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=true;var n=this.updateHandleTransform(Hl(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(Hl(n)),Zr(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=false;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ku(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function yd(r,t,e,i){cm(Zr(e).lastProp,i)||(Zr(e).lastProp=i,t?zt(e,i,r):(e.stopAnimation(),e.attr(i)))}function cm(r,t){if(U(r)&&U(t)){var e=true;return A(t,function(i,n){e=e&&cm(r[n],i)}),!!e}else return r===t}function md(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Hl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function _d(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function OD(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function BD(r,t,e,i,n){var a=e.get("value"),o=dm(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ys(s.get("padding")||0),u=s.getFont(),f=yf(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var g=n.verticalAlign;g==="bottom"&&(h[1]-=v),g==="middle"&&(h[1]-=v/2),ND(h,c,v,i);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:br(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function ND(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function dm(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:ah(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),V(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function pm(r,t,e){var i=Pi();return cf(i,i,e.rotation),au(i,i,e.position),kf([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function FD(r,t,e,i,n,a){var o=mr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),BD(t,i,n,a,{position:pm(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function zD(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function HD(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var GD=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=Sd(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,true));if(u&&u!=="none"){var c=OD(a),v=VD[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=$u(l.model,n);FD(i,e,d,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=$u(i.axis.grid.model,i,{labelInside:false});a.labelMargin=n.get(["handle","margin"]);var o=pm(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(true),u=Sd(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t}(kD);function Sd(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var VD={line:function(r,t,e){var i=zD([t,e[0]],[t,e[1]],wd(r));return{type:"Line",subPixelOptimize:true,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:HD([t-i/2,e[0]],[i,n],wd(r))}}};function wd(r){return r.dim==="x"?0:1}var WD=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:false,triggerTooltip:true,triggerEmphasis:true,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:true,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:false,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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(lt),$e=wt(),UD=A;function gm(r,t,e){if(!$.node){var i=t.getZr();$e(i).records||($e(i).records={}),YD(i,t);var n=$e(i).records[r]||($e(i).records[r]={});n.handler=e}}function YD(r,t){if($e(r).initialized)return;$e(r).initialized=true,e("click",St(bd,"click")),e("mousemove",St(bd,"mousemove")),e("globalout",$D);function e(i,n){r.on(i,function(a){var o=ZD(t);UD($e(r).records,function(s){s&&n(s,a,o.dispatchAction)}),XD(o.pendings,t)})}}function XD(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function $D(r,t,e){r.handler("leave",null,e)}function bd(r,t,e,i){t.handler(r,e,i)}function ZD(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Ku(r,t){if(!$.node){var e=t.getZr(),i=($e(e).records||{})[r];i&&($e(e).records[r]=null)}}var qD=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";gm("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Ku("axisPointer",i)},t.prototype.dispose=function(e,i){Ku("axisPointer",i)},t.type="axisPointer",t}(xe);function ym(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=ii(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),g=[];g[v]=a.get(d,o),g[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(g)||[]}else e=l.dataToPoint(a.getValues(W(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),e=[p.x+p.width/2,p.y+p.height/2]}return{point:e,el:s}}var xd=wt();function KD(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||ct(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){go(n)&&(n=ym({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=go(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||go(n),c={},v={},d={list:[],map:{}},g={showPointer:St(jD,v),showTooltip:St(JD,d)};A(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);A(s.coordSysAxesInfo[m],function(S,b){var w=S.axis,x=iM(u,S);if(!h&&_&&(!u||x)){var T=x&&x.value;T==null&&!l&&(T=w.pointToData(n)),T!=null&&Td(S,T,g,false,c)}})});var p={};return A(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&A(_.axesInfo,function(S,b){var w=v[b];if(S!==y&&w){var x=w.value;_.mapper&&(x=y.axis.scale.parse(_.mapper(x,Cd(S),Cd(y)))),p[y.key]=x}})}),A(p,function(y,m){Td(f[m],y,g,true,c)}),tM(v,f,c),eM(d,n,r,o),rM(f,o,e),c}}function Td(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=QD(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&B(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function QD(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return A(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,g=Math.abs(d);g<=o&&((g<o||d>=0&&s<0)&&(o=g,s=d,n=h,a.length=0),A(c,function(p){a.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:a,snapToValue:n}}function jD(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function JD(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=ra(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function tM(r,t,e){var i=e.axesInfo=[];A(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function eM(r,t,e,i){if(go(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:true,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function rM(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=xd(i)[n]||{},o=xd(i)[n]={};A(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&A(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];A(a,function(u,f){!o[f]&&l.push(u)}),A(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:true,notBlur:true,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:true,notBlur:true,batch:s})}function iM(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function Cd(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function go(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function mm(r){fm.registerAxisPointerClass("CartesianAxisPointer",GD),r.registerComponentModel(WD),r.registerComponentView(qD),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=_D(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KD)}function nM(r){xr(ED),xr(mm)}function aM(r,t){var e=ys(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new xt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:true,z2:-1}),r}var oM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:true,showContent:true,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:false,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:false,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(lt);function _m(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Sm(r){if($.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var wm=Sm(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),sM=Sm(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function bm(r,t){if(!r)return t;t=Ig(t,true);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function lM(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var uM=bm(sM,"transition"),uh=bm(wm,"transform"),fM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+($.transform3dSupported?"will-change:transform;":"");function hM(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function vM(r,t,e){if(!V(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=ai(t);var a=hM(e),o=Math.max(Math.round(n)*1.5,6),s="",l=uh+":",u;ft(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+n+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function cM(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=$.transformSupported?","+uh+i:",left"+i+",top"+i),uM+":"+n}function Dd(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!$.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=$.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+uh+":"+o+";":[["top",0],["left",0],[wm,o]]}function dM(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=Q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),A(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function pM(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=ry(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(cM(n,e)),a&&i.push("background-color:"+a),A(["width","color","radius"],function(v){var d="border-"+v,g=Ig(d),p=r.get(g);p!=null&&i.push(d+":"+p+(v==="color"?"":"px"))}),i.push(dM(f)),h!=null&&i.push("padding:"+ys(h).join("px ")+"px"),i.join(";")+";"}function Md(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&M0(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var gM=function(){function r(t,e){if(this._show=false,this._styleCoord=[0,0,0,0],this._enterable=true,this._alwaysShowContent=false,this._firstShow=true,this._longHide=true,$.wxa)return null;var i=document.createElement("div");i.domBelongToZr=true,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(V(a)?document.querySelector(a):Vn(a)?a:q(a)&&a(t.getDom()));Md(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=true),s._inContent=true},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();ne(f,l,true),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=false,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=lM(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=fM+pM(t,!this._firstShow,this._longHide)+Dd(a[0],a[1],true)+("border-color:"+ai(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=true,this._firstShow=false,this._longHide=false},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(V(a)&&i.get("trigger")==="item"&&!_m(i)&&(s=vM(i,n,a)),V(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)Vn(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(Md(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=Dd(i[0],i[1]);A(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",$.transform3dSupported&&(e.willChange=""),this._show=false,this._longHideTimeout=setTimeout(function(){return t._longHide=true},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=false,this._hideTimeout=setTimeout(ct(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),yM=function(){function r(t){this._show=false,this._styleCoord=[0,0,0,0],this._alwaysShowContent=false,this._enterable=true,this._zr=t.getZr(),Ld(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=true},r.prototype.setContent=function(t,e,i,n,a){var o=this;U(t)&&Yt(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new Pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:ry(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=true),l._inContent=true}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=false})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=Ad(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;Ld(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=fr(a.borderWidth||0),s=Ad(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=false},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=false,this._hideTimeout=setTimeout(ct(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function fr(r){return Math.max(0,r)}function Ad(r){var t=fr(r.shadowBlur||0),e=fr(r.shadowOffsetX||0),i=fr(r.shadowOffsetY||0);return{left:fr(t-e),right:fr(t+e),top:fr(t-i),bottom:fr(t+i)}}function Ld(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var mM=new xt({shape:{x:-1,y:-1,width:2,height:2}}),_M=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!($.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=J_(n.get("renderMode"));this._tooltipContent=a==="richText"?new yM(i):new gM(i,{appendTo:n.get("appendToBody",true)?"body":n.get("appendTo",true)})}},t.prototype.render=function(e,i,n){if(!($.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?ny(this,"_updatePosition",50,"fixRate"):ku(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");gm("itemTooltip",this._api,ct(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||$.node||!n.getDom())){var o=Id(a,n);this._ticket="";var s=a.dataByCoordSys,l=xM(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=mM;f.x=a.x,f.y=a.y,f.update(),rt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=ym(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(Id(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=pn([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),true}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=rt(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Cn(n,function(f){if(rt(f).dataIndex!=null)return l=f,true;if(rt(f).tooltipConfig!=null)return u=f,true},true),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=ct(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=pn([i.tooltipOption],a),l=this._renderMode,u=[],f=jn("section",{blocks:[],noHeader:true}),h=[],c=new wl;A(e,function(m){A(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var w=dm(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),x=jn("section",{header:w,noHeader:!ke(w),sortBlocks:true,blocks:[]});f.blocks.push(x),A(_.seriesDataIndices,function(T){var D=n.getSeriesByIndex(T.seriesIndex),M=T.dataIndexInside,C=D.getDataParams(M);if(!(C.dataIndex<0)){C.axisDim=_.axisDim,C.axisIndex=_.axisIndex,C.axisType=_.axisType,C.axisId=_.axisId,C.axisValue=ah(S.axis,{value:b}),C.axisValueLabel=w,C.marker=c.makeTooltipMarker("item",ai(C.color),l);var L=sc(D.formatTooltip(M,true,null)),I=L.frag;if(I){var P=pn([D],a).get("valueFormatter");x.blocks.push(P?B({valueFormatter:P},I):I)}L.text&&h.push(L.text),u.push(C)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,d=s.get("order"),g=vc(f,c,l,d,n.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var p=l==="richText"?`
|
|
49
|
+
|
|
50
|
+
`:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=rt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=pn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new wl;y.marker=m.makeTooltipMarker("item",ai(y.color),v);var _=sc(u.formatTooltip(f,false,h)),S=g.get("order"),b=g.get("valueFormatter"),w=_.frag,x=w?vc(b?B({valueFormatter:b},w):w,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,x,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=rt(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(V(l)){var f=l;l={content:f,formatter:f},u=true}u&&a&&l.content&&(l=tt(l),l.content=Wt(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=pn(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new wl;this._showOrMove(d,function(){var m=tt(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(V(c)){var p=e.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=vs(y.axisValue,v,p)),v=Pg(v,n,true)}else if(q(c)){var _=ct(function(S,b){S===this._ticket&&(h.setContent(b,f,e,g,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||z(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),q(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),z(i))n=dt(i[0],u),a=dt(i[1],f);else if(U(i)){var g=i;g.width=h[0],g.height=h[1];var p=Ni(g,{width:u,height:f});n=p.x,a=p.y,c=null,v=null}else if(V(i)&&l){var y=bM(i,d,h,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=SM(n,a,o,u,f,c?null:20,v?null:20);n=y[0],a=y[1]}if(c&&(n-=Pd(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Pd(v)?h[1]/2:v==="bottom"?h[1]:0),_m(e)){var y=wM(n,a,o,u,f);n=y[0],a=y[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=false)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){$.node||!i.getDom()||(ku(this,"_updatePosition"),this._tooltipContent.dispose(),Ku("itemTooltip",i))},t.type="tooltip",t}(xe);function pn(r,t,e){var i=t.ecModel,n;e?(n=new yt(e,i,i),n=new yt(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof yt&&(o=o.get("tooltip",true)),V(o)&&(o={formatter:o}),o&&(n=new yt(o,n,i)))}return n}function Id(r,t){return r.dispatchAction||ct(t.dispatchAction,t)}function SM(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function wM(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function bM(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Pd(r){return r==="center"||r==="middle"}function xM(r,t,e){var i=wf(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=oa(t,n,i.get(n),{useDefault:false,enableAll:false,enableNone:false}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=rt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,true}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function TM(r){xr(mm),r.registerComponentModel(oM),r.registerComponentView(_M),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},$t),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},$t)}var CM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:true},e}return t.type="title",t.defaultOption={z:6,show:true,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(lt),DM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Q(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Pt({style:br(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:true}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Pt({style:br(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:true}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",true);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Wv(d,"_"+e.get("target"))}),g&&v.on("click",function(){Wv(g,"_"+e.get("subtarget"))}),rt(f).eventData=rt(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Ni(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var b=_.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var x=new xt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:true,silent:true});a.add(x)}},t.type="title",t}(xe);function MM(r){r.registerComponentModel(CM),r.registerComponentView(DM)}function fh(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=zi(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(zi(r,t,e[o]));return a.join(" ")}}function xm(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var i=[],n=0;n<e.length;n++){var a=r.getDimensionIndex(e[n]);a>=0&&i.push(t[a])}return i.join(" ")}var hh=function(r){Y(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=Hi(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:true,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=AM,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Po(this.childAt(0))},t.prototype.downplay=function(){Ro(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=false;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var c=this.childAt(0);c.silent=false;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):zt(c,v,s,i),Rf(c)}if(this._updateCommon(e,i,l,n,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ve(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,d,g,p,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,g=a.labelStatesModels,p=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),g=fa(m),p=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=vy(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var w=e.getItemVisual(i,"style"),x=w.fill;if(s instanceof Tr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},w))}else s.__isEmptyBrush?s.useStyle(B({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=true;var D=e.getItemVisual(i,"liftZ"),M=this._z2;D!=null?M==null&&(this._z2=s.z2,s.z2+=D):M!=null&&(s.z2=M,this._z2=null);var C=o&&o.useNameLabel;ua(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:L,inheritColor:x,defaultOpacity:w.opacity});function L(R){return C?e.getName(R):fh(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=p==null||p===true?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),$n(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=rt(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=true,n&&n.fadeLabel){var l=a.getTextContent();l&&Oo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Oo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return Fx(e.getItemVisual(i,"symbolSize"))},t}(It);function AM(r,t){this.parent.drift(r,t)}function Gl(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Rd(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function Ed(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:fa(t),cursorStyle:t.get("cursor")}}var LM=function(){function r(t){this.group=new It,this._SymbolCtor=t||hh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Rd(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=Ed(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Gl(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Gl(t,d,h,e)){i.remove(v);return}var g=t.getItemVisual(h,"symbol")||"circle",p=v&&v.getSymbolType&&v.getSymbolType();if(!v||p&&p!==g)i.remove(v),v=new o(t,h,l,u),v.setPosition(d);else{v.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?v.attr(y):zt(v,y,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ed(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Rd(i);function n(l){l.isGroup||(l.incremental=true,l.ensureState("emphasis").hoverLayer=true)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Gl(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){ls(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r}();function vh(r,t){return r.type===t}var IM=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Qu=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:true},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===true&&(i=e.selector=["all","inverse"]),z(i)&&A(i,function(a,o){V(a)&&(a={type:a}),i[o]=at(a,IM(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=false,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=true;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(c)),c.length?i=i.concat(c):f=true}else f=true;f&&Sf(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=j(),s=W(a,function(l){return(V(l)||vt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,true),new yt(l,this,this.ecModel))},this);this._data=At(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;A(a,function(o){i[o.get("name")]=false})}i[e]=true},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=false)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=true),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;A(e,function(n){i[n.get("name",true)]=true})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;A(e,function(n){var a=n.get("name",true);i.hasOwnProperty(a)||(i[a]=true),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&ft(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:true,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:true,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:true,selector:false,selectorLabel:{show:true,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:true,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:false}},t}(lt),xi=St,ju=A,Ka=It,Tm=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=false,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ka),this.group.add(this._selectorGroup=new Ka),this._isFirstRender=true},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=false,this.resetInner(),!!e.get("show",true)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",true),u=e.get("selectorPosition",true);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),v=Ni(f,h,c),d=this.layoutInner(e,o,v,a,l,u),g=Ni(st({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=aM(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),f=j(),h=i.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),ju(i.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
51
|
+
`)){var p=new Ka;p.newline=true,u.add(p);return}var y=n.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),w=this._createItem(y,g,d,v,i,e,_,b,S,h,a);w.on("click",xi(kd,g,null,a,c)).on("mouseover",xi(Ju,y.name,null,a,c)).on("mouseout",xi(tf,y.name,null,a,c)),n.ssr&&w.eachChild(function(x){var T=rt(x);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(g,true)}else n.eachRawSeries(function(x){if(!f.get(g)&&x.legendVisualProvider){var T=x.legendVisualProvider;if(!T.containName(g))return;var D=T.indexOfName(g),M=T.getItemVisual(D,"style"),C=T.getItemVisual(D,"legendIcon"),L=Ze(M.fill);L&&L[3]===0&&(L[3]=.2,M=B(B({},M),{fill:Qo(L,"rgba")}));var I=this._createItem(x,g,d,v,i,e,{},M,C,h,a);I.on("click",xi(kd,null,g,a,c)).on("mouseover",xi(Ju,null,g,a,c)).on("mouseout",xi(tf,null,g,a,c)),n.ssr&&I.eachChild(function(P){var R=rt(P);R.seriesIndex=x.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(g,true)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();ju(e,function(u){var f=u.type,h=new Pt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);ua(h,{normal:c,emphasis:v},{defaultText:u.title}),xu(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=PM(f,a,l,u,v,p,c),b=new Ka,w=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(RM({itemWidth:d,itemHeight:g,icon:f,iconRotate:x,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,M=o.get("formatter"),C=i;V(M)&&M?C=M.replace("{name}",i??""):q(M)&&(C=M(i));var L=p?w.getTextColor():a.get("inactiveColor");b.add(new Pt({style:br(w,{text:C,x:T,y:g/2,fill:L,align:D,verticalAlign:"middle"},{inheritColor:L})}));var I=new xt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&ss({el:I,componentModel:o,itemName:i,itemTooltipOption:P.option}),b.add(I),b.eachChild(function(R){R.silent=true}),I.silent=!h,this.getContentGroup().add(b),xu(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Nn(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Nn("horizontal",u,e.get("selectorItemGap",true));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",true),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=true},t.type="legend.plain",t}(xe);function PM(r,t,e,i,n,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),ju(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:zu(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var d=t.get("inactiveBorderWidth"),g=u[f];u.lineWidth=d==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function RM(r){var t=r.icon||"roundRect",e=Hi(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function kd(r,t,e,i){tf(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Ju(r,t,e,i)}function Cm(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function Ju(r,t,e,i){Cm(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function tf(r,t,e,i){Cm(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function EM(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return false;return true})}function gn(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),Od(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){A(n,function(l,u){s[l?"select":"unSelect"](u)}),Od(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function Od(r,t){var e=t||{};return A(r.getData(),function(i){var n=i.get("name");if(!(n===`
|
|
52
|
+
`||n==="")){var a=r.isSelected(n);ri(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function kM(r){r.registerAction("legendToggleSelect","legendselectchanged",St(gn,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",St(gn,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",St(gn,"inverseSelect")),r.registerAction("legendSelect","legendselected",St(gn,"select")),r.registerAction("legendUnSelect","legendunselected",St(gn,"unSelect"))}function Dm(r){r.registerComponentModel(Qu),r.registerComponentView(Tm),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,EM),r.registerSubTypeDefaulter("legend",function(){return"plain"}),kM(r)}var OM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=ms(e);r.prototype.init.call(this,e,i,n),Bd(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Bd(this,this.option,e)},t.type="legend.scroll",t.defaultOption=mg(Qu.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Qu);function Bd(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,Fi(t,e,{type:"box",ignoreSize:!!n})}var Nd=It,Vl=["width","height"],Wl=["x","y"],BM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=true,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Nd),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Nd)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",true),c=z(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Pt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:true})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=Of(i.get("pageIcons",true)[i.getOrient().name][p],{onclick:ct(u._pageGo,u,y,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Vl[u],h=Wl[u],c=Vl[1-u],v=Wl[1-u];o&&Nn("horizontal",l,e.get("selectorItemGap",true));var d=e.get("selectorButtonGap",true),g=l.getBoundingRect(),p=[-g.x,-g.y],y=tt(n);o&&(y[f]=n[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-u]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Nn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),Nn("horizontal",c,e.get("pageButtonItemGap",true));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>n[o],p=[-v.x,-v.y];i||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=Q(e.get("pageButtonGap",true),e.get("itemGap",true));if(g){var S=e.get("pageButtonPosition",true);S==="end"?m[a]+=n[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=g?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=n[o],g){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=b[s],h.setClipPath(new xt({shape:w})),h.__rectSize=w[o]}else c.eachChild(function(T){T.attr({invisible:true,silent:true})});var x=this._getPageInfo(e);return x.pageIndex!=null&&zt(f,{x:x.contentPosition[0],y:x.contentPosition[1]},g?e:null),this._updatePageInfoView(e,x),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;A(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",true):e.get("pageIconInactiveColor",true)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",V(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",true),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Vl[o],l=Wl[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],c=f.length,v=c?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=S(h);d.contentPosition[o]=-g.s;for(var p=u+1,y=g,m=g,_=null;p<=c;++p)_=S(f[p]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=u-1,y=g,m=g,_=null;p>=-1;--p)_=S(f[p]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(w){if(w){var x=w.getBoundingRect(),T=x[l]+w[l];return{s:T,e:T+x[s],i:w.__legendDataIndex}}}function b(w,x){return w.e>=x&&w.s<=x+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i??a},t.type="legend.scroll",t}(Tm);function NM(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function FM(r){xr(Dm),r.registerComponentModel(OM),r.registerComponentView(BM),NM(r)}function zM(r){xr(Dm),xr(FM)}var HM=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=true,e}return t.prototype.getInitialData=function(e){return eh(null,this,{useEncodeDefaulter:true})},t.prototype.getLegendIcon=function(e){var i=new It,n=Hi("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,false);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=Hi(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:true,clip:true,label:{position:"top"},endLabel:{show:false,valueAnimation:true,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:true},step:false,smooth:false,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:true,showAllSymbol:"auto",connectNulls:false,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:false},t}(be);function Mm(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=GM(n,e),o=i.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=W(r.dimensions,function(d){return t.mapDimension(d)}),c=false,v=t.getCalculationInfo("stackResultDimension");return Gi(t,h[0])&&(c=true,h[0]=v),Gi(t,h[1])&&(c=true,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function GM(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:vt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function Am(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function VM(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function WM(r,t,e,i,n,a,o,s){for(var l=VM(r,t),u=[],f=[],h=[],c=[],v=[],d=[],g=[],p=Mm(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=true,w=void 0,x=void 0;switch(S.cmd){case"=":w=S.idx*2,x=S.idx1*2;var T=y[w],D=y[w+1],M=m[x],C=m[x+1];(isNaN(T)||isNaN(D))&&(T=M,D=C),u.push(T,D),f.push(M,C),h.push(e[w],e[w+1]),c.push(i[x],i[x+1]),g.push(t.getRawIndex(S.idx1));break;case"+":var L=S.idx,I=p.dataDimsForPoint,P=n.dataToPoint([t.get(I[0],L),t.get(I[1],L)]);x=L*2,u.push(P[0],P[1]),f.push(m[x],m[x+1]);var R=Am(p,n,t,L);h.push(R[0],R[1]),c.push(i[x],i[x+1]),g.push(t.getRawIndex(L));break;case"-":b=false}b&&(v.push(S),d.push(d.length))}d.sort(function(it,Ht){return g[it]-g[Ht]});for(var E=u.length,F=Xe(E),k=Xe(E),O=Xe(E),N=Xe(E),H=[],_=0;_<d.length;_++){var G=d[_],K=_*2,et=G*2;F[K]=u[et],F[K+1]=u[et+1],k[K]=f[et],k[K+1]=f[et+1],O[K]=h[et],O[K+1]=h[et+1],N[K]=c[et],N[K+1]=c[et+1],H[_]=v[G]}return{current:F,next:k,stackedOnCurrent:O,stackedOnNext:N,status:H}}var or=Math.min,sr=Math.max;function ti(r,t){return isNaN(r)||isNaN(t)}function ef(r,t,e,i,n,a,o,s,l){for(var u,f,h,c,v,d,g=e,p=0;p<i;p++){var y=t[g*2],m=t[g*2+1];if(g>=n||g<0)break;if(ti(y,m)){if(l){g+=a;continue}break}if(g===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){g+=a;continue}if(o>0){for(var b=g+a,w=t[b*2],x=t[b*2+1];w===y&&x===m&&p<i;)p++,b+=a,g+=a,w=t[b*2],x=t[b*2+1],y=t[g*2],m=t[g*2+1],_=y-u,S=m-f;var T=p+1;if(l)for(;ti(w,x)&&T<i;)T++,b+=a,w=t[b*2],x=t[b*2+1];var D=.5,M=0,C=0,L=void 0,I=void 0;if(T>=i||ti(w,x))v=y,d=m;else{M=w-u,C=x-f;var P=y-u,R=w-y,E=m-f,F=x-m,k=void 0,O=void 0;if(s==="x"){k=Math.abs(P),O=Math.abs(R);var N=M>0?1:-1;v=y-N*k*o,d=m,L=y+N*O*o,I=m}else if(s==="y"){k=Math.abs(E),O=Math.abs(F);var H=C>0?1:-1;v=y,d=m-H*k*o,L=y,I=m+H*O*o}else k=Math.sqrt(P*P+E*E),O=Math.sqrt(R*R+F*F),D=O/(O+k),v=y-M*o*(1-D),d=m-C*o*(1-D),L=y+M*o*D,I=m+C*o*D,L=or(L,sr(w,y)),I=or(I,sr(x,m)),L=sr(L,or(w,y)),I=sr(I,or(x,m)),M=L-y,C=I-m,v=y-M*k/O,d=m-C*k/O,v=or(v,sr(u,y)),d=or(d,sr(f,m)),v=sr(v,or(u,y)),d=sr(d,or(f,m)),M=y-v,C=m-d,L=y+M*O/k,I=m+C*O/k}r.bezierCurveTo(h,c,v,d,y,m),h=L,c=I}else r.lineTo(y,m)}u=y,f=m,g+=a}return p}var Lm=function(){function r(){this.smooth=0,this.smoothConstraint=true}return r}(),UM=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lm},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&ti(n[o*2-2],n[o*2-1]);o--);for(;a<o&&ti(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=ef(e,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=ni.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,g=void 0,p=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=a[h++],d=a[h++],g=a[h++],p=a[h++],y=a[h++],m=a[h++];var b=u?wo(s,v,g,y,e,f):wo(l,d,p,m,e,f);if(b>0)for(var w=0;w<b;w++){var x=f[w];if(x<=1&&x>=0){var S=u?Lt(l,d,p,m,x):Lt(s,v,g,y,x);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(ut),YM=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Lm),XM=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new YM},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&ti(n[s*2-2],n[s*2-1]);s--);for(;o<s&&ti(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=ef(e,n,o,s,s,1,i.smooth,l,i.connectNulls);ef(e,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t}(ut);function Im(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new xt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=q(n)?function(p){n(p,h)}:null;ve(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,g)}return h}function Pm(r,t,e){var i=r.getArea(),n=bt(i.r0,1),a=bt(i.r,1),o=new Cr({shape:{cx:bt(r.cx,1),cy:bt(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,ve(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function $M(r,t,e,i,n){if(r){if(r.type==="polar")return Pm(r,t,e);if(r.type==="cartesian2d")return Im(r,t,e,i,n)}else return null;return null}function Fd(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return true}}function zd(r){for(var t=1/0,e=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[i,n]]}function Hd(r,t){var e=zd(r),i=e[0],n=e[1],a=zd(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Gd(r){return vt(r)?r:r?.5:0}function ZM(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=Xe(i*2),a=0;a<i;a++){var o=Am(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function lr(r,t,e,i,n){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(n){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+h[o])/2,g=[];u[o]=g[o]=d,u[1-o]=f[1-o],g[1-o]=h[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function qM(r,t){var e=[],i=r.length,n,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),g=n_(d,[f.color,h.color]);return{coord:c,color:g}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function KM(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=W(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=qM(u,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var d=10,g=c[0].coord-d,p=c[v-1].coord+d,y=p-g;if(y<.001)return"transparent";A(c,function(_){_.offset=(_.coord-g)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new fg(0,0,0,0,c,true);return m[n]=g,m[n+"2"]=p,m}}}function QM(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&jM(a,t))){var o=t.mapDimension(a.dim),s={};return A(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function jM(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(hh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return false;return true}function JM(r,t){return isNaN(r)||isNaN(t)}function tA(r){for(var t=r.length/2;t>0&&JM(r[t*2-2],r[t*2-1]);t--);return t-1}function Vd(r,t){return[r[t*2],r[t*2+1]]}function eA(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Rm(r){if(r.get(["endLabel","show"]))return true;for(var t=0;t<de.length;t++)if(r.get([de[t],"endLabel","show"]))return true;return false}function Ul(r,t,e,i){if(vh(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Rm(i)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Im(t,e,i,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",true)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return Pm(t,e,i)}function rA(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),n=e.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var iA=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new It,i=new LM;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=ct(this._changePolyState,this)},t.prototype.render=function(e,i,n){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,g=this._polygon,p=this._lineGroup,y=!i.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=Mm(a,s,_),b=m&&ZM(a,s,S),w=e.get("showSymbol"),x=e.get("connectNulls"),T=w&&!h&&QM(e,s,a),D=this._data;D&&D.eachItemGraphicEl(function(it,Ht){it.__temp&&(o.remove(it),D.setItemGraphicEl(Ht,null))}),w||v.remove(),o.add(p);var M=h?false:e.get("step"),C;a&&a.getArea&&e.get("clip",true)&&(C=a.getArea(),C.width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var L=KM(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&M===this._step))w&&v.updateData(s,{isIgnore:T,clipShape:C,disableAnimation:true,getSymbolPoint:function(it){return[f[it*2],f[it*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,C),M&&(b&&(b=lr(b,f,a,M,x)),f=lr(f,null,a,M,x)),d=this._newPolyline(f),m?g=this._newPolygon(f,b):g&&(p.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,ai(L)),p.setClipPath(Ul(this,a,true,e));else{m&&!g?g=this._newPolygon(f,b):g&&!m&&(p.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,ai(L));var I=p.getClipPath();if(I){var P=Ul(this,a,false,e);ve(I,{shape:P.shape},e)}else p.setClipPath(Ul(this,a,true,e));w&&v.updateData(s,{isIgnore:T,clipShape:C,disableAnimation:true,getSymbolPoint:function(it){return[f[it*2],f[it*2+1]]}}),(!Fd(this._stackedOnPoints,b)||!Fd(this._points,f))&&(y?this._doUpdateAnimation(s,b,a,n,M,_,x):(M&&(b&&(b=lr(b,f,a,M,x)),f=lr(f,null,a,M,x)),d.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:b})))}var R=e.getModel("emphasis"),E=R.get("focus"),F=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(st(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),Eo(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}rt(d).seriesIndex=e.seriesIndex,$n(d,E,F,k);var N=Gd(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:N,smoothMonotone:H,connectNulls:x}),g){var G=s.getCalculationInfo("stackedOnSeries"),K=0;g.useStyle(st(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),G&&(K=Gd(G.get("smooth"))),g.setShape({smooth:N,stackedOnSmooth:K,smoothMonotone:H,connectNulls:x}),Eo(g,e,"areaStyle"),rt(g).seriesIndex=e.seriesIndex,$n(g,E,F,k)}var et=this._changePolyState;s.eachItemGraphicEl(function(it){it&&(it.onHoverStateChange=et)}),this._polyline.onHoverStateChange=et,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),g&&this.packEventData(e,g))},t.prototype.packEventData=function(e,i){rt(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=ii(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new hh(o,s),u.x=f,u.y=h,u.setZ(c,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),u.__temp=true,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(true),this.group.add(u)}u.highlight()}else ce.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=ii(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ce.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;mv(this._polyline,e),i&&mv(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new UM({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new XM({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=false):i.type==="polar"&&(a=s.dim==="angle",o=true);var u=e.hostModel,f=u.get("animationDuration");q(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var g=v;if(g){var p=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=i.pointToCoord(p);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var w=n;a?(y=w.x,m=w.x+w.width,_=v.x):(y=w.y+w.height,m=w.y,_=v.y)}var x=m===y?0:(_-y)/(m-y);l&&(x=1-x);var T=q(h)?h(d):f*x+c,D=g.getSymbolPath(),M=D.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:true,delay:T}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=true}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(Rm(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Pt({z2:200}),u.ignoreClip=true,s.setTextContent(this._endLabel),s.disableLabelAnimation=true);var f=tA(l);f>=0&&(ua(s,fa(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?xm(o,v):fh(o,h)},enableTextSetter:true},rA(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),y=p.isHorizontal(),m=p.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),w=(y?0:-g)*(m?-1:1),x=y?"x":"y",T=eA(h,S,x),D=T.range,M=D[1]-D[0],C=void 0;if(M>=1){if(M>1&&!v){var L=Vd(h,D[0]);u.attr({x:L[0]+b,y:L[1]+w}),o&&(C=c.getRawValue(D[0]))}else{var L=f.getPointOn(S,x);L&&u.attr({x:L[0]+b,y:L[1]+w});var I=c.getRawValue(D[0]),P=c.getRawValue(D[1]);o&&(C=t1(n,d,I,P,T.t))}a.lastFrameIndex=D[0]}else{var R=e===1||a.lastFrameIndex>0?D[0]:0,L=Vd(h,R);o&&(C=c.getRawValue(R)),u.attr({x:L[0]+b,y:L[1]+w})}if(o){var E=fs(u);typeof E.setLabelText=="function"&&E.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=WM(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,g=c.next,p=c.stackedOnNext;if(o&&(d=lr(c.stackedOnCurrent,c.current,n,o,l),v=lr(c.current,null,n,o,l),p=lr(c.stackedOnNext,c.next,n,o,l),g=lr(c.next,null,n,o,l)),Hd(v,g)>3e3||f&&Hd(d,p)>3e3){u.stopAnimation(),u.setShape({points:g}),f&&(f.stopAnimation(),f.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:g}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),zt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),zt(f,{shape:{stackedOnPoints:p}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var w=e.getItemGraphicEl(_[S].idx1);w&&m.push({el:w,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var x=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,M=m[T].ptIdx*2;D.x=x[M],D.y=x[M+1],D.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(true),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(ce);function nA(r,t){return{seriesType:r,plan:qf(),reset:function(e){var i=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var a=W(n.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),o=a.length,s=i.getCalculationInfo("stackResultDimension");Gi(i,a[0])&&(a[0]=s),Gi(i,a[1])&&(a[1]=s);var l=i.getStore(),u=i.getDimensionIndex(a[0]),f=i.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=Xe(v*o),g=[],p=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(o===1){var S=l.get(u,y);_=n.dataToPoint(S,null,p)}else g[0]=l.get(u,y),g[1]=l.get(f,y),_=n.dataToPoint(g,null,p);d[m++]=_[0],d[m++]=_[1]}c.setLayout("points",d)}}}}}}var aA={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},oA=function(r){return Math.round(r.length/2)};function Em(r){return{seriesType:r,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;V(a)?d=aA[a]:q(a)&&(d=a),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,oA))}}}}}function sA(r){r.registerChartView(iA),r.registerSeriesModel(HM),r.registerLayout(nA("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Em("line"))}var rf=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return eh(null,this,{useEncodeDefaulter:true})},t.prototype.getMarkerPosition=function(e,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(n)A(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var d=c.getTicksCoords(),g=c.getTickModel().get("alignWithLabel"),p=o[v],y=i[v]==="x1"||i[v]==="y1";if(y&&!g&&(p+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var w=d[b].coord,x=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(x===p){_=w;break}else if(x<p)m=w;else if(m!=null&&x>p){_=(w+m)/2;break}b===1&&(S=x-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:true,barMinHeight:0,barMinAngle:0,large:false,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(be);be.registerClass(rf);var lA=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return eh(null,this,{useEncodeDefaulter:true,createInvertedIndices:!!this.get("realtimeSort",true)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):false},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=mg(rf.defaultOption,{clip:true,roundCap:false,showBackground:false,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:false}),t}(rf),uA=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=true}return r}(),Wd=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new uA},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var g=Math.cos(f),p=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(g*o+n,p*o+a),e.arc(g*u+n,p*u+a,l,-Math.PI+f,f,!c)):e.moveTo(g*s+n,p*s+a),e.arc(n,a,s,f,h,!c),e.arc(y*u+n,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(n,a,o,h,f,c)},t}(ut);function fA(r,t){t=t||{};var e=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Do(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,d=(c+v)/2,g=u.startAngle,p=u.endAngle,y=(g+p)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(g),w=h+c*S(g),x="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(y),w=h+(v-l)*S(y),x="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(y),w=h+(v+l)*S(y),x="center",T="bottom";break;case"startAngle":b=f+d*_(g)+Qa(g,l+m,false),w=h+d*S(g)+ja(g,l+m,false),x="right",T="middle";break;case"insideStartAngle":b=f+d*_(g)+Qa(g,-l+m,false),w=h+d*S(g)+ja(g,-l+m,false),x="left",T="middle";break;case"middle":b=f+d*_(y),w=h+d*S(y),x="center",T="middle";break;case"endArc":b=f+(c+l)*_(y),w=h+(c+l)*S(y),x="center",T="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),w=h+(c-l)*S(y),x="center",T="top";break;case"endAngle":b=f+d*_(p)+Qa(p,l+m,true),w=h+d*S(p)+ja(p,l+m,true),x="left",T="middle";break;case"insideEndAngle":b=f+d*_(p)+Qa(p,-l+m,true),w=h+d*S(p)+ja(p,-l+m,true),x="right",T="middle";break;default:return Do(i,n,a)}return i=i||{},i.x=b,i.y=w,i.align=x,i.verticalAlign=T,i}}function hA(r,t,e,i){if(vt(i)){r.setTextConfig({rotation:i});return}else if(z(t)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Qa(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ja(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Dn(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;z(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:W(i,function(a){return Sr(a,n)})}}var Yl=Math.max,Xl=Math.min;function vA(r,t){var e=r.getArea&&r.getArea();if(vh(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var cA=function(r){Y(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=true,e}return t.prototype.render=function(e,i,n,a){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,n):this._renderNormal(e,i,n,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){ls(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,n,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=dA(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",true)||v,g=vA(u,s);o.removeClipPath();var p=e.get("roundCap",true),y=e.get("showBackground",true),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,w=a&&a.isInitSort,x=a&&a.type==="changeAxisOrder";function T(C){var L=Ja[u.type](s,C),I=wA(u,h,L);return I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[C]=I,I}s.diff(l).add(function(C){var L=s.getItemModel(C),I=Ja[u.type](s,C,L);if(y&&T(C),!(!s.hasValue(C)||!Zd[u.type](I))){var P=false;d&&(P=Ud[u.type](g,I));var R=Yd[u.type](e,s,C,I,h,c,f.model,false,p);v&&(R.forceLabelAnimation=true),qd(R,s,C,L,I,e,h,u.type==="polar"),w?R.attr({shape:I}):v?Xd(v,c,R,I,C,h,false,false):ve(R,{shape:I},e,C),s.setItemGraphicEl(C,R),o.add(R),R.ignore=P}}).update(function(C,L){var I=s.getItemModel(C),P=Ja[u.type](s,C,I);if(y){var R=void 0;b.length===0?R=T(L):(R=b[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[C]=R);var E=Ja[u.type](s,C),F=Om(h,E,u);zt(R,{shape:F},c,C)}var k=l.getItemGraphicEl(L);if(!s.hasValue(C)||!Zd[u.type](P)){o.remove(k);return}var O=false;if(d&&(O=Ud[u.type](g,P),O&&o.remove(k)),k?Rf(k):k=Yd[u.type](e,s,C,P,h,c,f.model,!!k,p),v&&(k.forceLabelAnimation=true),x){var N=k.getTextContent();if(N){var H=fs(N);H.prevValue!=null&&(H.prevValue=H.value)}}else qd(k,s,C,I,P,e,h,u.type==="polar");w?k.attr({shape:P}):v?Xd(v,c,k,P,C,h,true,x):zt(k,{shape:P},e,C,null),s.setItemGraphicEl(C,k),k.ignore=O,o.add(k)}).remove(function(C){var L=l.getItemGraphicEl(C);L&&Bo(L,e,C)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new It);D.removeAll();for(var M=0;M<S.length;++M)D.add(S[M]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,i,n){this._clear(),Qd(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),Qd(i,this.group,this._progressiveEls,true)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",true)&&$M(e.coordinateSystem,false,e),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,n){var a=this;if(i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,n),this._isFirstFrame=false;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,n){var a=[];return e.each(e.mapDimension(i.dim),function(o,s){var l=n(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:W(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,n){for(var a=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return true;s=h}return false},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return true},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:true,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Bo(a,e,rt(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=true},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(ce),Ud={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=Yl(t.x,r.x),s=Xl(t.x+t.width,n),l=Yl(t.y,r.y),u=Xl(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>n?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=Xl(t.r,r.r),a=Yl(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},Yd={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new xt({shape:B({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?Wd:Cr,f=new u({shape:i,z2:1});f.name="item";var h=km(n);if(f.calculateTextPosition=fA(h,{isRoundCap:u===Wd}),a){var c=f.shape,v=n?"r":"endAngle",d={};c[v]=n?i.r0:i.startAngle,d[v]=i[v],(s?zt:ve)(f,{shape:d},a)}return f}};function dA(r,t){var e=r.get("realtimeSort",true),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function Xd(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?zt:ve)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?zt:ve)(e,{shape:u},f,n)}function $d(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return true;return false}var pA=["x","y","width","height"],gA=["cx","cy","r","startAngle","endAngle"],Zd={cartesian2d:function(r){return!$d(r,pA)},polar:function(r){return!$d(r,gA)}},Ja={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),n=e?mA(e,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function yA(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function km(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function qd(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=Dn(i.getModel("itemStyle"),f,true);B(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=fa(i);ua(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:fh(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var g=r.getTextContent();if(s&&g){var p=i.get(["label","position"]);r.textConfig.inside=p==="middle"?true:null,hA(r,p==="outside"?v:p,km(o),i.get(["label","rotate"]))}dw(g,d,a.getRawValue(e),function(m){return xm(t,m)});var y=i.getModel(["emphasis"]);$n(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),Eo(r,i),yA(n)&&(r.style.fill="none",r.style.stroke="none",A(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function mA(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var _A=function(){function r(){}return r}(),Kd=function(r){Y(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new _A},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(ut);function Qd(r,t,e,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new Kd({shape:{points:u},incremental:!!i,silent:true,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new Kd({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:true,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,rt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",jd),h.on("mousemove",jd)),e&&e.push(h)}var jd=ws(function(r){var t=this,e=SA(t,r.offsetX,r.offsetY);rt(t).dataIndex=e>=0?e:null},30,false);function SA(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[i]=u,l[n]=a[c+2],s[i]=a[c+i],s[n]=a[c+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function Om(r,t,e){if(vh(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function wA(r,t,e){var i=r.type==="polar"?Cr:xt;return new i({shape:Om(t,e,r),silent:true,z2:0})}function bA(r){r.registerChartView(cA),r.registerSeriesModel(lA),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,St(oC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,sC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Em("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var Jd=Math.PI*2,to=Math.PI/180;function Bm(r,t){return Ni(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Nm(r,t){var e=Bm(r,t),i=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var a=dt(e.width,t.getWidth()),o=dt(e.height,t.getHeight()),s=Math.min(a,o),l=dt(n[0],s/2),u=dt(n[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(i);f=v[0]||0,h=v[1]||0}else z(i)||(i=[i,i]),f=dt(i[0],a)+e.x,h=dt(i[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function xA(r,t,e){t.eachSeriesByType(r,function(i){var n=i.getData(),a=n.mapDimension("value"),o=Bm(i,e),s=Nm(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*to,v=i.get("endAngle"),d=i.get("padAngle")*to;v=v==="auto"?c-Jd:-v*to;var g=i.get("minAngle")*to,p=g+d,y=0;n.each(a,function(F){!isNaN(F)&&y++});var m=n.getSum(a),_=Math.PI/(m||y)*2,S=i.get("clockwise"),b=i.get("roseType"),w=i.get("stillShowZeroSum"),x=n.getDataExtent(a);x[0]=0;var T=S?1:-1,D=[c,v],M=T*d/2;Wp(D,!S),c=D[0],v=D[1];var C=Fm(i);C.startAngle=c,C.endAngle=v,C.clockwise=S;var L=Math.abs(v-c),I=L,P=0,R=c;if(n.setLayout({viewRect:o,r:f}),n.each(a,function(F,k){var O;if(isNaN(F)){n.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?O=m===0&&w?_:F*_:O=L/y,O<p?(O=p,I-=p):P+=F;var N=R+T*O,H=0,G=0;d>O?(H=R+T*O/2,G=H):(H=R+M,G=N-M),n.setItemLayout(k,{angle:O,startAngle:H,endAngle:G,clockwise:S,cx:l,cy:u,r0:h,r:b?gu(F,x,[h,f]):f}),R=N}),I<Jd&&y)if(I<=.001){var E=L/y;n.each(a,function(F,k){if(!isNaN(F)){var O=n.getItemLayout(k);O.angle=E;var N=0,H=0;E<d?(N=c+T*(k+1/2)*E,H=N):(N=c+T*k*E+M,H=c+T*(k+1)*E-M),O.startAngle=N,O.endAngle=H}})}else _=I/P,R=c,n.each(a,function(F,k){if(!isNaN(F)){var O=n.getItemLayout(k),N=O.angle===p?p:F*_,H=0,G=0;N<d?(H=R+T*N/2,G=H):(H=R+M,G=R+T*N-M),O.startAngle=H,O.endAngle=G,R+=T*N}})})}var Fm=wt();function TA(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return false;return true})}}}}var CA=Math.PI/180;function tp(r,t,e,i,n,a,o,s,l,u){if(r.length<2)return;function f(g){for(var p=g.rB,y=p*p,m=0;m<g.list.length;m++){var _=g.list[m],S=Math.abs(_.label.y-e),b=i+_.len,w=b*b,x=Math.sqrt(Math.abs((1-S*S/y)*w)),T=t+(x+_.len2)*n,D=T-_.label.x,M=_.targetTextWidth-D*n;zm(_,M,true),_.label.x=T}}function h(g){for(var p={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],S=_.label.y>e?y:p,b=Math.abs(_.label.y-e);if(b>=S.maxY){var w=_.label.x-t-_.len2*n,x=i+_.len,T=Math.abs(w)<x?Math.sqrt(b*b/(1-w*w/x/x)):x;S.rB=T,S.maxY=b}S.list.push(_)}f(p),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}qC(r,l,l+o)&&h(r)}function DA(r,t,e,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;$l(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!$l(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,g=d.linePoints,p=void 0;d.labelAlignTo==="edge"?v.x<t?p=g[2][0]-d.labelDistance-o-d.edgeDistance:p=o+n-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?p=f-o-d.bleedMargin:p=o+n-h-d.bleedMargin:v.x<t?p=v.x-o-d.bleedMargin:p=o+n-v.x-d.bleedMargin,d.targetTextWidth=p,zm(d,p)}}tp(u,t,e,i,1,n,a,o,s,h),tp(l,t,e,i,-1,n,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!$l(d)&&d.linePoints){var v=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,w=g[1][0]-g[2][0];y?v.x<t?g[2][0]=o+d.edgeDistance+b+d.labelDistance:g[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?g[2][0]=v.x+d.labelDistance:g[2][0]=v.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=v.y}}}function zm(r,t,e){if(e===void 0&&(e=false),r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var v=t-l,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",d)}var g=i.getBoundingRect();a.width=g.width;var p=(i.style.margin||0)+2.1;a.height=g.height+p,a.y-=(a.height-h)/2}}}function $l(r){return r.position==="center"}function MA(r){var t=r.getData(),e=[],i,n,a=false,o=(r.get("minShowLabelAngle")||0)*CA,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(w){w.ignore=true}function d(w){if(!w.ignore)return true;for(var x in w.states)if(w.states[x].ignore===false)return true;return false}t.each(function(w){var x=t.getItemGraphicEl(w),T=x.shape,D=x.getTextContent(),M=x.getTextGuideLine(),C=t.getItemModel(w),L=C.getModel("label"),I=L.get("position")||C.get(["emphasis","label","position"]),P=L.get("distanceToLabelLine"),R=L.get("alignTo"),E=dt(L.get("edgeDistance"),u),F=L.get("bleedMargin"),k=C.getModel("labelLine"),O=k.get("length");O=dt(O,u);var N=k.get("length2");if(N=dt(N,u),Math.abs(T.endAngle-T.startAngle)<o){A(D.states,v),D.ignore=true,M&&(A(M.states,v),M.ignore=true);return}if(d(D)){var H=(T.startAngle+T.endAngle)/2,G=Math.cos(H),K=Math.sin(H),et,it,Ht,te;i=T.cx,n=T.cy;var Qt=I==="inside"||I==="inner";if(I==="center")et=T.cx,it=T.cy,te="center";else{var Ct=(Qt?(T.r+T.r0)/2*G:T.r*G)+i,mt=(Qt?(T.r+T.r0)/2*K:T.r*K)+n;if(et=Ct+G*3,it=mt+K*3,!Qt){var X=Ct+G*(O+l-T.r),J=mt+K*(O+l-T.r),De=X+(G<0?-1:1)*N,Tt=J;R==="edge"?et=G<0?f+E:f+u-E:et=De+(G<0?-P:P),it=Tt,Ht=[[Ct,mt],[X,J],[De,Tt]]}te=Qt?"center":R==="edge"?G>0?"right":"left":G>0?"left":"right"}var Je=Math.PI,Ge=0,Zi=L.get("rotate");if(vt(Zi))Ge=Zi*(Je/180);else if(I==="center")Ge=0;else if(Zi==="radial"||Zi===true){var Vm=G<0?-H+Je:-H;Ge=Vm}else if(Zi==="tangential"&&I!=="outside"&&I!=="outer"){var si=Math.atan2(G,K);si<0&&(si=Je*2+si);var Wm=K>0;Wm&&(si=Je+si),Ge=si-Je}if(a=!!Ge,D.x=et,D.y=it,D.rotation=Ge,D.setStyle({verticalAlign:"middle"}),Qt){D.setStyle({align:te});var Ds=D.states.select;Ds&&(Ds.x+=D.x,Ds.y+=D.y)}else{var qi=D.getBoundingRect().clone();qi.applyTransform(D.getComputedTransform());var ph=(D.style.margin||0)+2.1;qi.y-=ph/2,qi.height+=ph,e.push({label:D,labelLine:M,position:I,len:O,len2:N,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Z(G,K),linePoints:Ht,textAlign:te,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:F,rect:qi,unconstrainedWidth:qi.width,labelStyleWidth:D.style.width})}x.setTextConfig({inside:Qt})}}),!a&&r.get("avoidLabelOverlap")&&DA(e,i,n,l,u,c,f,h);for(var g=0;g<e.length;g++){var p=e[g],y=p.label,m=p.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:p.textAlign}),_&&(A(y.states,v),y.ignore=true);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=p.linePoints;_||!b?(A(m.states,v),m.ignore=true):(VC(b,p.minTurnAngle),WC(b,p.surfaceNormal,p.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new Z(b[0][0],b[0][1])})}}}var AA=function(r){Y(t,r);function t(e,i,n){var a=r.call(this)||this;a.z2=2;var o=new Pt;return a.setTextContent(o),a.updateData(e,i,n,true),a}return t.prototype.updateData=function(e,i,n,a){var o=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),f=e.getItemLayout(i),h=B(Dn(l.getModel("itemStyle"),f,true),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(ve(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:true}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,ve(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),ve(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,zt(o,{shape:{endAngle:f.endAngle}},s,i))}else Rf(o),zt(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),Eo(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(v)*d,p=Math.sin(v)*d,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=B({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Dn(u.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:g,y:p,shape:Dn(l.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:Dn(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:g,y:p}),B(_.ensureState("select"),{x:g,y:p}),$n(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;ua(a,fa(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new la,this.setTextGuideLine(v)),YC(this,XC(o),{stroke:u,opacity:Mn(s.get(["lineStyle","opacity"]),f,1)})}},t}(Cr),LA=function(r){Y(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=true,e}return t.prototype.render=function(e,i,n,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=Fm(e),v=new Cr({shape:B(Nm(e,n),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var g=new AA(o,d,u);o.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var p=s.getItemGraphicEl(g);p.updateData(o,d,u),p.off("click"),l.add(p),o.setItemGraphicEl(d,p)}).remove(function(d){var g=s.getItemGraphicEl(d);Bo(g,e,d)}).execute(),MA(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(ce);function IA(r,t,e){t=z(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var i=r.getSource(),n=Vy(i,t).dimensions,a=new Gy(n,r);return a.initData(i,e),a}var PA=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r}(),RA=wt(),EA=function(r){Y(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new PA(ct(this.getData,this),ct(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return IA(this,{coordDimensions:["value"],encodeDefaulter:St(Gw,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),n=RA(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=O_(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){yu(e,"labelLine",["show"]);var i=e.labelLine,n=e.emphasis.labelLine;i.show=i.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:true,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:true,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:true,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:true,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:true,length:15,length2:15,smooth:false,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:true,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:true},emphasis:{scale:true,scaleSize:5},avoidLabelOverlap:true,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(be);function kA(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function OA(r){r.registerChartView(LA),r.registerSeriesModel(EA),Cx("pie",r.registerAction),r.registerLayout(St(xA,"pie")),r.registerProcessor(TA("pie")),r.registerProcessor(kA("pie"))}var Zl=null;function BA(r){return Zl||(Zl=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,16)}).bind(window)),Zl(r)}var ql=null;function NA(r){ql||(ql=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(t){clearTimeout(t)}).bind(window)),ql(r)}function FA(r){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r)),(document.querySelector("head")||document.body).appendChild(t),t}function eo(r,t){t===void 0&&(t={});var e=document.createElement(r);return Object.keys(t).forEach(function(i){e[i]=t[i]}),e}function Hm(r,t,e){var i=window.getComputedStyle(r,null)||{display:"none"};return i[t]}function nf(r){if(!document.documentElement.contains(r))return{detached:true,rendered:false};for(var t=r;t!==document;){if(Hm(t,"display")==="none")return{detached:false,rendered:false};t=t.parentNode}return{detached:false,rendered:true}}var zA='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',af=0,yo=null;function HA(r,t){r.__resize_mutation_handler__||(r.__resize_mutation_handler__=WA.bind(r));var e=r.__resize_listeners__;if(!e){if(r.__resize_listeners__=[],window.ResizeObserver){var i=r.offsetWidth,n=r.offsetHeight,a=new ResizeObserver(function(){!r.__resize_observer_triggered__&&(r.__resize_observer_triggered__=true,r.offsetWidth===i&&r.offsetHeight===n)||$o(r)}),o=nf(r),s=o.detached,l=o.rendered;r.__resize_observer_triggered__=s===false&&l===false,r.__resize_observer__=a,a.observe(r)}else if(r.attachEvent&&r.addEventListener)r.__resize_legacy_resize_handler__=function(){$o(r)},r.attachEvent("onresize",r.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",r.__resize_mutation_handler__);else if(af||(yo=FA(zA)),UA(r),r.__resize_rendered__=nf(r).rendered,window.MutationObserver){var u=new MutationObserver(r.__resize_mutation_handler__);u.observe(document,{attributes:true,childList:true,characterData:true,subtree:true}),r.__resize_mutation_observer__=u}}r.__resize_listeners__.push(t),af++}function GA(r,t){var e=r.__resize_listeners__;if(e){if(t&&e.splice(e.indexOf(t),1),!e.length||!t){if(r.detachEvent&&r.removeEventListener){r.detachEvent("onresize",r.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",r.__resize_mutation_handler__);return}r.__resize_observer__?(r.__resize_observer__.unobserve(r),r.__resize_observer__.disconnect(),r.__resize_observer__=null):(r.__resize_mutation_observer__&&(r.__resize_mutation_observer__.disconnect(),r.__resize_mutation_observer__=null),r.removeEventListener("scroll",ch),r.removeChild(r.__resize_triggers__.triggers),r.__resize_triggers__=null),r.__resize_listeners__=null}!--af&&yo&&yo.parentNode.removeChild(yo)}}function VA(r){var t=r.__resize_last__,e=t.width,i=t.height,n=r.offsetWidth,a=r.offsetHeight;return n!==e||a!==i?{width:n,height:a}:null}function WA(){var r=nf(this),t=r.rendered,e=r.detached;t!==this.__resize_rendered__&&(!e&&this.__resize_triggers__&&(dh(this),this.addEventListener("scroll",ch,true)),this.__resize_rendered__=t,$o(this))}function ch(){var r=this;dh(this),this.__resize_raf__&&NA(this.__resize_raf__),this.__resize_raf__=BA(function(){var t=VA(r);t&&(r.__resize_last__=t,$o(r))})}function $o(r){!r||!r.__resize_listeners__||r.__resize_listeners__.forEach(function(t){t.call(r,r)})}function UA(r){var t=Hm(r,"position");(!t||t==="static")&&(r.style.position="relative"),r.__resize_old_position__=t,r.__resize_last__={};var e=eo("div",{className:"resize-triggers"}),i=eo("div",{className:"resize-expand-trigger"}),n=eo("div"),a=eo("div",{className:"resize-contract-trigger"});i.appendChild(n),e.appendChild(i),e.appendChild(a),r.appendChild(e),r.__resize_triggers__={triggers:e,expand:i,expandChild:n,contract:a},dh(r),r.addEventListener("scroll",ch,true),r.__resize_last__={width:r.offsetWidth,height:r.offsetHeight}}function dh(r){var t=r.__resize_triggers__,e=t.expand,i=t.expandChild,n=t.contract,a=n.scrollWidth,o=n.scrollHeight,s=e.offsetWidth,l=e.offsetHeight,u=e.scrollWidth,f=e.scrollHeight;n.scrollLeft=a,n.scrollTop=o,i.style.width=s+1+"px",i.style.height=l+1+"px",e.scrollLeft=u,e.scrollTop=f}var Pe=function(){return Pe=Object.assign||function(r){for(var t,e=1,i=arguments.length;e<i;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r},Pe.apply(this,arguments)};var YA=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function XA(r){return t=Object.create(null),YA.forEach(function(e){t[e]=function(i){return function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(!r.value)throw new Error("ECharts is not initialized yet.");return r.value[i].apply(r.value,n)}}(e)}),t;var t}var $A={autoresize:[Boolean,Object]},ZA=/^on[^a-z]/,ep=function(r){return ZA.test(r)};function ro(r,t){var e=qm(r)?Km(r):r;return e&&typeof e=="object"&&"value"in e?e.value||t:e||t}var qA="ecLoadingOptions",KA={loading:Boolean,loadingOptions:Object},yn=null,Gm="x-vue-echarts",rp=[],mn=[];(function(r,t){if(r&&typeof document<"u"){var e,i=t.prepend===true?"prepend":"append",n=t.singleTag===true,a=typeof t.container=="string"?document.querySelector(t.container):document.getElementsByTagName("head")[0];if(n){var o=rp.indexOf(a);o===-1&&(o=rp.push(a)-1,mn[o]={}),e=mn[o]&&mn[o][i]?mn[o][i]:mn[o][i]=s()}else e=s();r.charCodeAt(0)===65279&&(r=r.substring(1)),e.styleSheet?e.styleSheet.cssText+=r:e.appendChild(document.createTextNode(r))}function s(){var l=document.createElement("style");if(l.setAttribute("type","text/css"),t.attributes)for(var u=Object.keys(t.attributes),f=0;f<u.length;f++)l.setAttribute(u[f],t.attributes[u[f]]);var h=i==="prepend"?"afterbegin":"beforeend";return a.insertAdjacentElement(h,l),l}})(`x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
|
|
53
|
+
.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}
|
|
54
|
+
`,{});var QA=function(){if(yn!=null)return yn;if(typeof HTMLElement>"u"||typeof customElements>"u")return yn=false;try{new Function("tag",`class EChartsElement extends HTMLElement {
|
|
55
|
+
__dispose = null;
|
|
56
|
+
|
|
57
|
+
disconnectedCallback() {
|
|
58
|
+
if (this.__dispose) {
|
|
59
|
+
this.__dispose();
|
|
60
|
+
this.__dispose = null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if (customElements.get(tag) == null) {
|
|
66
|
+
customElements.define(tag, EChartsElement);
|
|
67
|
+
}
|
|
68
|
+
`)(Gm)}catch{return yn=false}return yn=true}(),jA="ecTheme",JA="ecInitOptions",tL="ecUpdateOptions",ip=/(^&?~?!?)native:/,rL=Um({name:"echarts",props:Pe(Pe({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},$A),KA),emits:{},inheritAttrs:false,setup:function(r,t){var e=t.attrs,i=ha(),n=ha(),a=ha(),o=ha(),s=va(jA,null),l=va(JA,null),u=va(tL,null),f=Ym(r),h=f.autoresize,c=f.manualUpdate,v=f.loading,d=f.loadingOptions,g=li(function(){return o.value||r.option||null}),p=li(function(){return r.theme||ro(s,{})}),y=li(function(){return r.initOptions||ro(l,{})}),m=li(function(){return r.updateOptions||ro(u,{})}),_=li(function(){return function(C){var L={};for(var I in C)ep(I)||(L[I]=C[I]);return L}(e)}),S={},b=Xm().proxy.$listeners,w={};function x(C){if(n.value){var L=a.value=_T(n.value,p.value,y.value);r.group&&(L.group=r.group),Object.keys(w).forEach(function(P){var R=w[P];if(R){var E=P.toLowerCase();E.charAt(0)==="~"&&(E=E.substring(1),R.__once__=true);var F=L;if(E.indexOf("zr:")===0&&(F=L.getZr(),E=E.substring(3)),R.__once__){delete R.__once__;var k=R;R=function(){for(var O=[],N=0;N<arguments.length;N++)O[N]=arguments[N];k.apply(void 0,O),F.off(E,R)}}F.on(E,R)}}),h.value?Qm(function(){L&&!L.isDisposed()&&L.resize(),I()}):I()}function I(){var P=C||g.value;P&&L.setOption(P,m.value)}}function T(){a.value&&(a.value.dispose(),a.value=void 0)}b?Object.keys(b).forEach(function(C){ip.test(C)?S[C.replace(ip,"$1")]=b[C]:w[C]=b[C]}):Object.keys(e).filter(function(C){return ep(C)}).forEach(function(C){var L=C.charAt(2).toLowerCase()+C.slice(3);if(L.indexOf("native:")!==0)L.substring(L.length-4)==="Once"&&(L="~".concat(L.substring(0,L.length-4))),w[L]=e[C];else{var I="on".concat(L.charAt(7).toUpperCase()).concat(L.slice(8));S[I]=e[C]}});var D=null;ca(c,function(C){typeof D=="function"&&(D(),D=null),C||(D=ca(function(){return r.option},function(L,I){L&&(a.value?a.value.setOption(L,Pe({notMerge:L!==I},m.value)):x())},{deep:true}))},{immediate:true}),ca([p,y],function(){T(),x()},{deep:true}),yh(function(){r.group&&a.value&&(a.value.group=r.group)});var M=XA(a);return function(C,L,I){var P=va(qA,{}),R=li(function(){return Pe(Pe({},ro(P,{})),I==null?void 0:I.value)});yh(function(){var E=C.value;E&&(L.value?E.showLoading(R.value):E.hideLoading())})}(a,v,d),function(C,L,I){var P=null;ca([I,C,L],function(R,E,F){var k=R[0],O=R[1],N=R[2];if(k&&O&&N){var H=N===true?{}:N,G=H.throttle,K=G===void 0?100:G,et=H.onResize,it=function(){O.resize(),et==null||et()};P=K?ws(it,K):it,HA(k,P)}F(function(){k&&P&&GA(k,P)})})}(a,h,n),$m(function(){x()}),Zm(function(){QA&&i.value?i.value.__dispose=T:T()}),Pe({chart:a,root:i,inner:n,setOption:function(C,L){r.manualUpdate&&(o.value=C),a.value?a.value.setOption(C,L||{}):x(C)},nonEventAttrs:_,nativeListeners:S},M)},render:function(){var r=Pe(Pe({},this.nonEventAttrs),this.nativeListeners);return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",gh(Gm,r,[gh("div",{ref:"inner",class:"vue-echarts-inner"})])}});xr([bA,eD,nM,zM,sA,OA,MM,TM]);export{rL as default};
|