@dsrcjs/ai-widget 1.0.5 → 1.0.7
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/README.md +37 -40
- package/dist/ai-dana-chat.js +56 -56
- package/dist/echarts-3nlHlFS7.js +18 -0
- package/dist/i18n.d.ts +1 -0
- package/dist/index-ve2JSWl1.js +19 -0
- package/dist/index.js +1 -1
- package/dist/{markdown-impl-Cu_bBFxI.js → markdown-impl-DeMW_FqG.js} +1 -1
- package/dist/{stream-entry-CNdFWIwY.js → stream-entry-Cqex_Oyn.js} +1 -1
- package/package.json +2 -2
- package/dist/echarts-B6eiFnZN.js +0 -18
- package/dist/index-D2Riqtpn.js +0 -19
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var Kl=function(e,t){return Kl=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])},Kl(e,t)};function F(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Kl(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var $l=12,kx="sans-serif",Tn=$l+"px "+kx,Cx=20,Dx=100,Ax="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Lx(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n<e.length;n++){var i=String.fromCharCode(n+32),r=(e.charCodeAt(n)-Cx)/Dx;t[i]=r}return t}var Px=Lx(Ax),ce={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var e,t;return function(n,i){if(!e){var r=ce.createCanvas();e=r&&r.getContext("2d")}if(e)return t!==i&&(t=e.font=i||Tn),e.measureText(n);n=n||"",i=i||Tn;var o=/((?:\d+)?\.?\d*)px/.exec(i),a=o&&+o[1]||$l,s=0;if(i.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=Px[n[l]];s+=u==null?a:u*a}return{width:s}}})(),loadImage:function(e,t,n){var i=new Image;return i.onload=t,i.onerror=n,i.src=e,i},getTime:function(){return Date.now?Date.now():+new Date}},Lf=In(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Pf=In(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Xr=Object.prototype.toString,fa=Array.prototype,Ox=fa.forEach,Rx=fa.filter,Ql=fa.slice,Nx=fa.map,Of=function(){}.constructor,da=Of?Of.prototype:null,Jl="__proto__",tu=2311,Ex=Math.pow(2,53)-1;function Rf(){return tu>=Ex&&(tu=0),tu++}function eu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function rt(e){if(e==null||typeof e!="object")return e;var t=e,n=Xr.call(e);if(n==="[object Array]"){if(!jr(e)){t=[];for(var i=0,r=e.length;i<r;i++)t[i]=rt(e[i])}}else if(Pf[n]){if(!jr(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var i=0,r=e.length;i<r;i++)t[i]=e[i]}}}else if(!Lf[n]&&!jr(e)&&!Yr(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==Jl&&(t[a]=rt(e[a]))}return t}function pt(e,t,n){if(!j(t)||!j(e))return n?rt(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==Jl){var r=e[i],o=t[i];j(o)&&j(r)&&!B(o)&&!B(r)&&!Yr(o)&&!Yr(r)&&!Nf(o)&&!Nf(r)&&!jr(o)&&!jr(r)?pt(r,o,n):(n||!(i in e))&&(e[i]=rt(t[i]))}return e}function N(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==Jl&&(e[n]=t[n]);return e}function zx(e,t,n){e=e||{};for(var i=0;i<n.length;i++){var r=n[i];e[r]=t[r]}return e}function vt(e,t,n){for(var i=St(t),r=0,o=i.length;r<o;r++){var a=i[r];e[a]==null&&(e[a]=t[a])}return e}function st(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n}return-1}function Bx(e,t){var n=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var r in n)n.hasOwnProperty(r)&&(e.prototype[r]=n[r]);e.prototype.constructor=e,e.superClass=t}function Oe(e,t,n){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else vt(e,t)}function ne(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function C(e,t,n){if(e&&t)if(e.forEach&&e.forEach===Ox)e.forEach(t,n);else if(e.length===+e.length)for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(n,e[o],o,e)}function Z(e,t,n){if(!e)return[];if(!t)return iu(e);if(e.map&&e.map===Nx)return e.map(t,n);for(var i=[],r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r,e));return i}function In(e,t,n,i){if(e&&t){for(var r=0,o=e.length;r<o;r++)n=t.call(i,n,e[r],r,e);return n}}function Bt(e,t,n){if(!e)return[];if(!t)return iu(e);if(e.filter&&e.filter===Rx)return e.filter(t,n);for(var i=[],r=0,o=e.length;r<o;r++)t.call(n,e[r],r,e)&&i.push(e[r]);return i}function Fx(e,t,n){if(e&&t){for(var i=0,r=e.length;i<r;i++)if(t.call(n,e[i],i,e))return e[i]}}function St(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}function Vx(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return e.apply(t,n.concat(Ql.call(arguments)))}}var _t=da&&tt(da.bind)?da.call.bind(da.bind):Vx;function xt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){return e.apply(this,t.concat(Ql.call(arguments)))}}function B(e){return Array.isArray?Array.isArray(e):Xr.call(e)==="[object Array]"}function tt(e){return typeof e=="function"}function q(e){return typeof e=="string"}function nu(e){return Xr.call(e)==="[object String]"}function yt(e){return typeof e=="number"}function j(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function Nf(e){return!!Lf[Xr.call(e)]}function ie(e){return!!Pf[Xr.call(e)]}function Yr(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function ga(e){return e.colorStops!=null}function Gx(e){return e.image!=null}function Zr(e){return e!==e}function qr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e.length;n<i;n++)if(e[n]!=null)return e[n]}function Y(e,t){return e??t}function Qn(e,t,n){return e??t??n}function iu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ql.apply(e,t)}function ru(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function cn(e,t){if(!e)throw new Error(t)}function Xe(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ef="__ec_primitive__";function ou(e){e[Ef]=!0}function jr(e){return e[Ef]}var Hx=(function(){function e(){this.data={}}return e.prototype.delete=function(t){var n=this.has(t);return n&&delete this.data[t],n},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,n){return this.data[t]=n,this},e.prototype.keys=function(){return St(this.data)},e.prototype.forEach=function(t){var n=this.data;for(var i in n)n.hasOwnProperty(i)&&t(n[i],i)},e})(),zf=typeof Map=="function";function Wx(){return zf?new Map:new Hx}var Ux=(function(){function e(t){var n=B(t);this.data=Wx();var i=this;t instanceof e?t.each(r):t&&C(t,r);function r(o,a){n?i.set(o,a):i.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,n){return this.data.set(t,n),n},e.prototype.each=function(t,n){this.data.forEach(function(i,r){t.call(n,i,r)})},e.prototype.keys=function(){var t=this.data.keys();return zf?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e})();function $(e){return new Ux(e)}function Xx(e,t){for(var n=new e.constructor(e.length+t.length),i=0;i<e.length;i++)n[i]=e[i];for(var r=e.length,i=0;i<t.length;i++)n[i+r]=t[i];return n}function va(e,t){var n;if(Object.create)n=Object.create(e);else{var i=function(){};i.prototype=e,n=new i}return t&&N(n,t),n}function Bf(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function jt(e,t){return e.hasOwnProperty(t)}function Ht(){}var Yx=180/Math.PI,Zx=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),qx=(function(){function e(){this.browser=new Zx,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e})(),nt=new qx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(nt.wxa=!0,nt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?nt.worker=!0:!nt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(nt.node=!0,nt.svgSupported=!0):jx(navigator.userAgent,nt);function jx(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11);var s=t.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}var Kx=".",Jn="___EC__COMPONENT__CONTAINER___",Ff="___EC__EXTENDED_CLASS___";function Ye(e){var t={main:"",sub:""};if(e){var n=e.split(Kx);t.main=n[0]||"",t.sub=n[1]||""}return t}function $x(e){cn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Qx(e){return!!(e&&e[Ff])}function au(e,t){e.$constructor=e,e.extend=function(n){var i=this,r;return Jx(i)?r=(function(o){F(a,o);function a(){return o.apply(this,arguments)||this}return a})(i):(r=function(){(n.$constructor||i).apply(this,arguments)},Bx(r,this)),N(r.prototype,n),r[Ff]=!0,r.extend=this.extend,r.superCall=nb,r.superApply=ib,r.superClass=i,r}}function Jx(e){return tt(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Vf(e,t){e.extend=t.extend}var tb=Math.round(Math.random()*10);function eb(e){var t=["__\0is_clz",tb++].join("_");e.prototype[t]=!0,e.isInstance=function(n){return!!(n&&n[t])}}function nb(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[t].apply(e,n)}function ib(e,t,n){return this.superClass.prototype[t].apply(e,n)}function ya(e){var t={};e.registerClass=function(i){var r=i.type||i.prototype.type;if(r){$x(r),i.prototype.type=r;var o=Ye(r);if(!o.sub)t[o.main]=i;else if(o.sub!==Jn){var a=n(o);a[o.sub]=i}}return i},e.getClass=function(i,r,o){var a=t[i];if(a&&a[Jn]&&(a=r?a[r]:null),o&&!a)throw new Error(r?"Component "+i+"."+(r||"")+" is used but not imported.":i+".type should be specified.");return a},e.getClassesByMainType=function(i){var r=Ye(i),o=[],a=t[r.main];return a&&a[Jn]?C(a,function(s,l){l!==Jn&&o.push(s)}):o.push(a),o},e.hasClass=function(i){var r=Ye(i);return!!t[r.main]},e.getAllClassMainTypes=function(){var i=[];return C(t,function(r,o){i.push(o)}),i},e.hasSubTypes=function(i){var r=Ye(i),o=t[r.main];return o&&o[Jn]};function n(i){var r=t[i.main];return(!r||!r[Jn])&&(r=t[i.main]={},r[Jn]=!0),r}}function Kr(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(r&&st(r,l)>=0||o&&st(o,l)<0)){var u=i.getShallow(l,t);u!=null&&(a[e[s][0]]=u)}}return a}}var rb=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ob=Kr(rb),ab=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return ob(this,t,n)},e})(),Gf=(function(){function e(t){this.value=t}return e})(),sb=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new Gf(t);return this.insertEntry(n),n},e.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++},e.prototype.remove=function(t){var n=t.prev,i=t.next;n?n.next=i:this.head=i,i?i.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),qi=(function(){function e(t){this._list=new sb,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new Gf(n),s.key=t,i.insertEntry(s),r[t]=s}return o},e.prototype.get=function(t){var n=this._map[t],i=this._list;if(n!=null)return n!==i.tail&&(i.remove(n),i.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),su=new qi(50);function lb(e){if(typeof e=="string"){var t=su.get(e);return t&&t.image}else return e}function Hf(e,t,n,i,r){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var o=su.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!ma(t)&&o.pending.push(a)):(t=ce.loadImage(e,Wf,Wf),t.__zrImageSrc=e,su.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function Wf(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function ma(e){return e&&e.width&&e.height}function Ze(){return[1,0,0,1,0,0]}function $r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function lu(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Qr(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function uu(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function cu(e,t,n,i){i===void 0&&(i=[0,0]);var r=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),h=Math.cos(n);return e[0]=r*h+s*c,e[1]=-r*c+s*h,e[2]=o*h+l*c,e[3]=-o*c+h*l,e[4]=h*(a-i[0])+c*(u-i[1])+i[0],e[5]=h*(u-i[1])-c*(a-i[0])+i[1],e}function ub(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Jr(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function ji(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function cb(e){return[e[0],e[1]]}function hu(e,t,n){return e[0]=t,e[1]=n,e}function Uf(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function Xf(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function hb(e){return Math.sqrt(pb(e))}function pb(e){return e[0]*e[0]+e[1]*e[1]}function pu(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function fu(e,t){var n=hb(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function du(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var gu=du;function fb(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ki=fb;function vu(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function ge(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function $i(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Qi(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var it=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,i=this.y-t.y;return Math.sqrt(n*n+i*i)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,i=this.y-t.y;return n*n+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,i=this.y;return this.x=t[0]*n+t[2]*i+t[4],this.y=t[1]*n+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,i){t.x=n,t.y=i},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,i){t.x=n.x+i.x,t.y=n.y+i.y},e.sub=function(t,n,i){t.x=n.x-i.x,t.y=n.y-i.y},e.scale=function(t,n,i){t.x=n.x*i,t.y=n.y*i},e.scaleAndAdd=function(t,n,i,r){t.x=n.x+i.x*r,t.y=n.y+i.y*r},e.lerp=function(t,n,i,r){var o=1-r;t.x=o*n.x+r*i.x,t.y=o*n.y+r*i.y},e})(),ti=Math.min,Ji=Math.max,yu=Math.abs,Yf=["x","y"],db=["width","height"],ei=new it,ni=new it,ii=new it,ri=new it,he=jf(),to=he.minTv,mu=he.maxTv,eo=[0,0],Q=(function(){function e(t,n,i,r){_u(this,t,n,i,r)}return e.set=function(t,n,i,r,o){return r<0&&(n=n+r,r=-r),o<0&&(i=i+o,o=-o),t.x=n,t.y=i,t.width=r,t.height=o,t},e.prototype.union=function(t){var n=ti(t.x,this.x),i=ti(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ji(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ji(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=n,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){return gb(Ze(),this,t)},e.prototype.intersect=function(t,n,i){return e.intersect(this,t,n,i)},e.intersect=function(t,n,i,r){i&&it.set(i,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=NaN),!t||!n)return!1;t instanceof e||(t=_u(vb,t.x,t.y,t.width,t.height)),n instanceof e||(n=_u(yb,n.x,n.y,n.width,n.height));var s=!!i;he.reset(r,s);var l=he.touchThreshold,u=t.x+l,c=t.x+t.width-l,h=t.y+l,p=t.y+t.height-l,f=n.x+l,d=n.x+n.width-l,g=n.y+l,v=n.y+n.height-l;if(u>c||h>p||f>d||g>v)return!1;var y=!(c<f||d<u||p<g||v<h);return(s||o)&&(eo[0]=1/0,eo[1]=0,qf(u,c,f,d,0,s,o,a),qf(h,p,g,v,1,s,o,a),s&&it.copy(i,y?he.useDir?he.dirMinTv:to:mu)),y},e.contain=function(t,n,i){return n>=t.x&&n<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){Zf(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(t,n){return t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height,t},e.applyTransform=function(t,n,i){if(!i){t!==n&&Zf(t,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ei.x=ii.x=n.x,ei.y=ri.y=n.y,ni.x=ri.x=n.x+n.width,ni.y=ii.y=n.y+n.height,ei.transform(i),ri.transform(i),ni.transform(i),ii.transform(i),t.x=ti(ei.x,ni.x,ii.x,ri.x),t.y=ti(ei.y,ni.y,ii.y,ri.y);var l=Ji(ei.x,ni.x,ii.x,ri.x),u=Ji(ei.y,ni.y,ii.y,ri.y);t.width=l-t.x,t.height=u-t.y},e.calculateTransform=function(t,n,i){var r=i.width/n.width,o=i.height/n.height;return t=$r(t||[]),uu(t,t,hu(xu,-n.x,-n.y)),ub(t,t,hu(xu,r,o)),uu(t,t,hu(xu,i.x,i.y)),t},e})();Q.create;var _u=Q.set,Zf=Q.copy,gb=Q.calculateTransform;Q.applyTransform,Q.contain;var vb=new Q(0,0,0,0),yb=new Q(0,0,0,0),xu=[];function qf(e,t,n,i,r,o,a,s){var l=yu(t-n),u=yu(i-e),c=ti(l,u),h=Yf[r],p=Yf[1-r],f=db[r];t<n||i<e?l<u?(o&&(mu[h]=-l),s&&(a[h]=t,a[f]=0)):(o&&(mu[h]=u),s&&(a[h]=e,a[f]=0)):(a&&(a[h]=Ji(e,n),a[f]=ti(t,i)-a[h]),o&&(c<eo[0]||he.useDir)&&(eo[0]=ti(c,eo[0]),(l<u||!he.bidirectional)&&(to[h]=l,to[p]=0,he.useDir&&he.calcDirMTV()),(l>=u||!he.bidirectional)&&(to[h]=-u,to[p]=0,he.useDir&&he.calcDirMTV())))}function jf(){var e=0,t=new it,n=new it,i={minTv:new it,maxTv:new it,useDir:!1,dirMinTv:new it,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(o,a){i.touchThreshold=0,o&&o.touchThreshold!=null&&(i.touchThreshold=Ji(0,o.touchThreshold)),i.negativeSize=!1,a&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,o&&o.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),n.copy(i.minTv),e=o.direction,i.bidirectional=o.bidirectional==null||!!o.bidirectional,i.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var o=i.minTv,a=i.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(e),u=Math.cos(e),c=l*o.y+u*o.x;if(r(c)){r(o.x)&&r(o.y)&&a.set(0,0);return}if(n.x=s*u/c,n.y=s*l/c,r(n.x)&&r(n.y)){a.set(0,0);return}(i.bidirectional||t.dot(n)>0)&&n.len()<a.len()&&a.copy(n)}};function r(o){return yu(o)<1e-10}return i}function qe(e){_a||(_a=new qi(100)),e=e||Tn;var t=_a.get(e);return t||(t={font:e,strWidthCache:new qi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ce.measureText("\u56FD",e).width,asciiCharWidth:ce.measureText("a",e).width},_a.put(e,t)),t}var _a;function mb(e){if(!(bu>=Kf)){e=e||Tn;for(var t=[],n=+new Date,i=0;i<=127;i++)t[i]=ce.measureText(String.fromCharCode(i),e).width;var r=+new Date-n;return r>16?bu=Kf:r>2&&bu++,t}}var bu=0,Kf=5;function $f(e,t){return e.asciiWidthMapTried||(e.asciiWidthMap=mb(e.font),e.asciiWidthMapTried=!0),0<=t&&t<=127?e.asciiWidthMap!=null?e.asciiWidthMap[t]:e.asciiCharWidth:e.stWideCharWidth}function je(e,t){var n=e.strWidthCache,i=n.get(t);return i==null&&(i=ce.measureText(t,e.font).width,n.put(t,i)),i}function Qf(e,t,n,i){var r=je(qe(t),e),o=xa(t),a=tr(0,r,n),s=oi(0,o,i),l=new Q(a,s,r,o);return l}function Jf(e,t,n,i){var r=((e||"")+"").split(`
|
|
2
|
+
`),o=r.length;if(o===1)return Qf(r[0],t,n,i);for(var a=new Q(0,0,0,0),s=0;s<r.length;s++){var l=Qf(r[s],t,n,i);s===0?a.copy(l):a.union(l)}return a}function tr(e,t,n,i){return n==="right"?i?e+=t:e-=t:n==="center"&&(i?e+=t/2:e-=t/2),e}function oi(e,t,n,i){return n==="middle"?i?e+=t/2:e-=t/2:n==="bottom"&&(i?e+=t:e-=t),e}function xa(e){return qe(e).stWideCharWidth}function ai(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ba(e,t,n){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=ai(i[0],n.width),u+=ai(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=h,e}var wu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function _b(e,t,n,i,r,o){if(!n){e.text="",e.isTruncated=!1;return}var a=(t+"").split(`
|
|
3
|
+
`);o=td(n,i,r,o);for(var s=!1,l={},u=0,c=a.length;u<c;u++)ed(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;e.text=a.join(`
|
|
4
|
+
`),e.isTruncated=s}function td(e,t,n,i){i=i||{};var r=N({},i);n=Y(n,"..."),r.maxIterations=Y(i.maxIterations,2);var o=r.minChar=Y(i.minChar,0),a=r.fontMeasureInfo=qe(t),s=a.asciiCharWidth;r.placeholder=Y(i.placeholder,"");for(var l=e=Math.max(0,e-1),u=0;u<o&&l>=s;u++)l-=s;var c=je(a,n);return c>l&&(n="",c=0),l=e-c,r.ellipsis=n,r.ellipsisWidth=c,r.contentWidth=l,r.containerWidth=e,r}function ed(e,t,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(!i){e.textLine="",e.isTruncated=!1;return}var a=je(o,t);if(a<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=n.maxIterations){t+=n.ellipsis;break}var l=s===0?xb(t,r,o):a>0?Math.floor(t.length*r/a):0;t=t.substr(0,l),a=je(o,t)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function xb(e,t,n){for(var i=0,r=0,o=e.length;r<o&&i<t;r++)i+=$f(n,e.charCodeAt(r));return r}function bb(e,t,n,i){var r=Mu(e),o=t.overflow,a=t.padding,s=a?a[1]+a[3]:0,l=a?a[0]+a[2]:0,u=t.font,c=o==="truncate",h=xa(u),p=Y(t.lineHeight,h),f=t.lineOverflow==="truncate",d=!1,g=t.width;g==null&&n!=null&&(g=n-s);var v=t.height;v==null&&i!=null&&(v=i-l);var y;g!=null&&(o==="break"||o==="breakAll")?y=r?id(r,t.font,g,o==="breakAll",0).lines:[]:y=r?r.split(`
|
|
5
|
+
`):[];var m=y.length*p;if(v==null&&(v=m),m>v&&f){var _=Math.floor(v/p);d=d||y.length>_,y=y.slice(0,_),m=y.length*p}if(r&&c&&g!=null)for(var x=td(g,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},w=0;w<y.length;w++)ed(b,y[w],x),y[w]=b.textLine,d=d||b.isTruncated;for(var S=v,M=0,T=qe(u),w=0;w<y.length;w++)M=Math.max(je(T,y[w]),M);g==null&&(g=M);var k=g;return S+=l,k+=s,{lines:y,height:v,outerWidth:k,outerHeight:S,lineHeight:p,calculatedLineHeight:h,contentWidth:M,contentHeight:m,width:g,isTruncated:d}}var wb=(function(){function e(){}return e})(),nd=(function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e})(),Sb=(function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e})();function Mb(e,t,n,i,r){var o=new Sb,a=Mu(e);if(!a)return o;var s=t.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=t.width;c==null&&n!=null&&(c=n-l);var h=t.height;h==null&&i!=null&&(h=i-u);for(var p=t.overflow,f=(p==="break"||p==="breakAll")&&c!=null?{width:c,accumWidth:0,breakAll:p==="breakAll"}:null,d=wu.lastIndex=0,g;(g=wu.exec(a))!=null;){var v=g.index;v>d&&Su(o,a.substring(d,v),t,f),Su(o,g[2],t,f,g[1]),d=wu.lastIndex}d<a.length&&Su(o,a.substring(d,a.length),t,f);var y=[],m=0,_=0,x=p==="truncate",b=t.lineOverflow==="truncate",w={};function S(ot,At,Rt){ot.width=At,ot.lineHeight=Rt,m+=Rt,_=Math.max(_,At)}t:for(var M=0;M<o.lines.length;M++){for(var T=o.lines[M],k=0,I=0,A=0;A<T.tokens.length;A++){var D=T.tokens[A],L=D.styleName&&t.rich[D.styleName]||{},P=D.textPadding=L.padding,R=P?P[1]+P[3]:0,z=D.font=L.font||t.font;D.contentHeight=xa(z);var O=Y(L.height,D.contentHeight);if(D.innerHeight=O,P&&(O+=P[0]+P[2]),D.height=O,D.lineHeight=Qn(L.lineHeight,t.lineHeight,O),D.align=L&&L.align||r,D.verticalAlign=L&&L.verticalAlign||"middle",b&&h!=null&&m+D.lineHeight>h){var E=o.lines.length;A>0?(T.tokens=T.tokens.slice(0,A),S(T,I,k),o.lines=o.lines.slice(0,M+1)):o.lines=o.lines.slice(0,M),o.isTruncated=o.isTruncated||o.lines.length<E;break t}var G=L.width,H=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")D.percentWidth=G,y.push(D),D.contentWidth=je(qe(z),D.text);else{if(H){var U=L.backgroundColor,X=U&&U.image;X&&(X=lb(X),ma(X)&&(D.width=Math.max(D.width,X.width*O/X.height)))}var W=x&&c!=null?c-I:null;W!=null&&W<D.width?!H||W<R?(D.text="",D.width=D.contentWidth=0):(_b(w,D.text,W-R,z,t.ellipsis,{minChar:t.truncateMinChar}),D.text=w.text,o.isTruncated=o.isTruncated||w.isTruncated,D.width=D.contentWidth=je(qe(z),D.text)):D.contentWidth=je(qe(z),D.text)}D.width+=R,I+=D.width,L&&(k=Math.max(k,D.lineHeight))}S(T,I,k)}o.outerWidth=o.width=Y(c,_),o.outerHeight=o.height=Y(h,m),o.contentHeight=m,o.contentWidth=_,o.outerWidth+=l,o.outerHeight+=u;for(var M=0;M<y.length;M++){var D=y[M],et=D.percentWidth;D.width=parseInt(et,10)/100*o.width}return o}function Su(e,t,n,i,r){var o=t==="",a=r&&n.rich[r]||{},s=e.lines,l=a.font||n.font,u=!1,c,h;if(i){var p=a.padding,f=p?p[1]+p[3]:0;if(a.width!=null&&a.width!=="auto"){var d=ai(a.width,i.width)+f;s.length>0&&d+i.accumWidth>i.width&&(c=t.split(`
|
|
6
|
+
`),u=!0),i.accumWidth=d}else{var g=id(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,h=g.linesWidths,c=g.lines}}c||(c=t.split(`
|
|
7
|
+
`));for(var v=qe(l),y=0;y<c.length;y++){var m=c[y],_=new wb;if(_.styleName=r,_.text=m,_.isLineHolder=!m&&!o,typeof a.width=="number"?_.width=a.width:_.width=h?h[y]:je(v,m),!y&&!u){var x=(s[s.length-1]||(s[0]=new nd)).tokens,b=x.length;b===1&&x[0].isLineHolder?x[0]=_:(m||!b||o)&&x.push(_)}else s.push(new nd([_]))}}function Tb(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Ib=In(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function kb(e){return Tb(e)?!!Ib[e]:!0}function id(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=qe(t),p=0;p<e.length;p++){var f=e.charAt(p);if(f===`
|
|
8
|
+
`){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var d=$f(h,f.charCodeAt(0)),g=i?!1:!kb(f);if(o.length?c+d>n:r+c+d>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=d,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=d)):g?(o.push(l),a.push(u),l=f,u=d):(o.push(f),a.push(d));continue}c+=d,g?(l+=f,u+=d):(l&&(s+=l,l="",u=0),s+=f)}return l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}function rd(e,t,n,i,r,o){if(e.baseX=n,e.baseY=i,e.outerWidth=e.outerHeight=null,!!t){var a=t.width*2,s=t.height*2;Q.set(od,tr(n,a,r),oi(i,s,o),a,s),Q.intersect(t,od,null,ad);var l=ad.outIntersectRect;e.outerWidth=l.width,e.outerHeight=l.height,e.baseX=tr(l.x,l.width,r,!0),e.baseY=oi(l.y,l.height,o,!0)}}var od=new Q(0,0,0,0),ad={outIntersectRect:{},clamp:!0};function Mu(e){return e!=null?e+="":e=""}function Cb(e){var t=Mu(e.text),n=e.font,i=je(qe(n),t),r=xa(n);return Tu(e,i,r,null)}function Tu(e,t,n,i){var r=new Q(tr(e.x||0,t,e.textAlign),oi(e.y||0,n,e.textBaseline),t,n),o=i??(sd(e)?e.lineWidth:0);return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function sd(e){var t=e.stroke;return t!=null&&t!=="none"&&e.lineWidth>0}var ld=$r,ud=5e-5;function si(e){return e>ud||e<-ud}var li=[],er=[],Iu=Ze(),ku=Math.abs,no=(function(){function e(){}return e.prototype.getLocalTransform=function(t){return Db(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return si(this.rotation)||si(this.x)||si(this.y)||si(this.scaleX-1)||si(this.scaleY-1)||si(this.skewX)||si(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),i=this.transform;if(!(n||t)){i&&(ld(i),this.invTransform=null);return}i=i||Ze(),n?this.getLocalTransform(i):ld(i),t&&(n?Qr(i,t,i):lu(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Ze(),Jr(this.invTransform,i)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(li);var i=li[0]<0?-1:1,r=li[1]<0?-1:1,o=((li[0]-i)*n+i)/li[0]||0,a=((li[1]-r)*n+r)/li[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ze(),Qr(er,t.invTransform,n),n=er);var i=this.originX,r=this.originY;(i||r)&&(Iu[4]=i,Iu[5]=r,Qr(er,n,Iu),er[4]-=i,er[5]-=r,n=er),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var i=[t,n],r=this.invTransform;return r&&ge(i,i,r),i},e.prototype.transformCoordToGlobal=function(t,n){var i=[t,n],r=this.transform;return r&&ge(i,i,r),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&ku(t[0]-1)>1e-10&&ku(t[3]-1)>1e-10?Math.sqrt(ku(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Sa(this,t)},e.getLocalTransform=function(t,n){n=n||[];var i=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,p=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(i||r||s||l){var d=i+s,g=r+l;n[4]=-d*o-p*g*a,n[5]=-g*a-f*d*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=f*o,n[2]=p*a,u&&cu(n,n,u),n[4]+=i+c,n[5]+=r+h,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),Db=no.getLocalTransform,wa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Sa(e,t){return zx(e,t,wa)}var io={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-io.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?io.bounceIn(e*2)*.5:io.bounceOut(e*2-1)*.5+.5}},Ma=Math.pow,kn=Math.sqrt,Ta=1e-8,cd=1e-4,hd=kn(3),Ia=1/3,Ke=ji(),ve=ji(),nr=ji();function Cn(e){return e>-Ta&&e<Ta}function pd(e){return e>Ta||e<-Ta}function Ft(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function fd(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function ka(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-t*2+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,f=0;if(Cn(c)&&Cn(h))if(Cn(s))o[0]=0;else{var d=-l/s;d>=0&&d<=1&&(o[f++]=d)}else{var g=h*h-4*c*p;if(Cn(g)){var v=h/c,d=-s/a+v,y=-v/2;d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y)}else if(g>0){var m=kn(g),_=c*s+1.5*a*(-h+m),x=c*s+1.5*a*(-h-m);_<0?_=-Ma(-_,Ia):_=Ma(_,Ia),x<0?x=-Ma(-x,Ia):x=Ma(x,Ia);var d=(-s-(_+x))/(3*a);d>=0&&d<=1&&(o[f++]=d)}else{var b=(2*c*s-3*a*h)/(2*kn(c*c*c)),w=Math.acos(b)/3,S=kn(c),M=Math.cos(w),d=(-s-2*S*M)/(3*a),y=(-s+S*(M+hd*Math.sin(w)))/(3*a),T=(-s+S*(M-hd*Math.sin(w)))/(3*a);d>=0&&d<=1&&(o[f++]=d),y>=0&&y<=1&&(o[f++]=y),T>=0&&T<=1&&(o[f++]=T)}}return f}function dd(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(Cn(a)){if(pd(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(Cn(c))r[0]=-o/(2*a);else if(c>0){var h=kn(c),u=(-o+h)/(2*a),p=(-o-h)/(2*a);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function Ca(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Ab(e,t,n,i,r,o,a,s,l,u,c){var h,p=.005,f=1/0,d,g,v,y;Ke[0]=l,Ke[1]=u;for(var m=0;m<1;m+=.05)ve[0]=Ft(e,n,r,a,m),ve[1]=Ft(t,i,o,s,m),v=Ki(Ke,ve),v<f&&(h=m,f=v);f=1/0;for(var _=0;_<32&&!(p<cd);_++)d=h-p,g=h+p,ve[0]=Ft(e,n,r,a,d),ve[1]=Ft(t,i,o,s,d),v=Ki(ve,Ke),d>=0&&v<f?(h=d,f=v):(nr[0]=Ft(e,n,r,a,g),nr[1]=Ft(t,i,o,s,g),y=Ki(nr,Ke),g<=1&&y<f?(h=g,f=y):p*=.5);return kn(f)}function Lb(e,t,n,i,r,o,a,s,l){for(var u=e,c=t,h=0,p=1/l,f=1;f<=l;f++){var d=f*p,g=Ft(e,n,r,a,d),v=Ft(t,i,o,s,d),y=g-u,m=v-c;h+=Math.sqrt(y*y+m*m),u=g,c=v}return h}function re(e,t,n,i){var r=1-i;return r*(r*e+2*i*t)+i*i*n}function gd(e,t,n,i){return 2*((1-i)*(t-e)+i*(n-t))}function Pb(e,t,n,i,r){var o=e-2*t+n,a=2*(t-e),s=e-i,l=0;if(Cn(o)){if(pd(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(Cn(c)){var u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=kn(c),u=(-a+h)/(2*o),p=(-a-h)/(2*o);u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function vd(e,t,n){var i=e+n-2*t;return i===0?.5:(e-t)/i}function Da(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Ob(e,t,n,i,r,o,a,s,l){var u,c=.005,h=1/0;Ke[0]=a,Ke[1]=s;for(var p=0;p<1;p+=.05){ve[0]=re(e,n,r,p),ve[1]=re(t,i,o,p);var f=Ki(Ke,ve);f<h&&(u=p,h=f)}h=1/0;for(var d=0;d<32&&!(c<cd);d++){var g=u-c,v=u+c;ve[0]=re(e,n,r,g),ve[1]=re(t,i,o,g);var f=Ki(ve,Ke);if(g>=0&&f<h)u=g,h=f;else{nr[0]=re(e,n,r,v),nr[1]=re(t,i,o,v);var y=Ki(nr,Ke);v<=1&&y<h?(u=v,h=y):c*=.5}}return kn(h)}function Rb(e,t,n,i,r,o,a){for(var s=e,l=t,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,f=re(e,n,r,p),d=re(t,i,o,p),g=f-s,v=d-l;u+=Math.sqrt(g*g+v*v),s=f,l=d}return u}var Nb=/cubic-bezier\(([0-9,\.e ]+)\)/;function yd(e){var t=e&&Nb.exec(e);if(t){var n=t[1].split(","),i=+Xe(n[0]),r=+Xe(n[1]),o=+Xe(n[2]),a=+Xe(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:ka(0,i,o,1,l,s)&&Ft(0,r,a,1,s[0])}}}var Eb=(function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ht,this.ondestroy=t.ondestroy||Ht,this.onrestart=t.onrestart||Ht,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tt(t)?t:io[t]||yd(t)},e})(),md={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 Dn(e){return e=Math.round(e),e<0?0:e>255?255:e}function Cu(e){return e<0?0:e>1?1:e}function Du(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Dn(parseFloat(t)/100*255):Dn(parseInt(t,10))}function ui(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Cu(parseFloat(t)/100):Cu(parseFloat(t))}function Au(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Aa(e,t,n){return e+(t-e)*n}function ye(e,t,n,i,r){return e[0]=t,e[1]=n,e[2]=i,e[3]=r,e}function Lu(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var _d=new qi(20),La=null;function ir(e,t){La&&Lu(La,t),La=_d.put(e,La||t.slice())}function $e(e,t){if(e){t=t||[];var n=_d.get(e);if(n)return Lu(t,n);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in md)return Lu(t,md[i]),ir(e,t),t;var r=i.length;if(i.charAt(0)==="#"){if(r===4||r===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){ye(t,0,0,0,1);return}return ye(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,r===5?parseInt(i.slice(4),16)/15:1),ir(e,t),t}else if(r===7||r===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){ye(t,0,0,0,1);return}return ye(t,(o&16711680)>>16,(o&65280)>>8,o&255,r===9?parseInt(i.slice(7),16)/255:1),ir(e,t),t}return}var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===r){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?ye(t,+u[0],+u[1],+u[2],1):ye(t,0,0,0,1);c=ui(u.pop());case"rgb":if(u.length>=3)return ye(t,Du(u[0]),Du(u[1]),Du(u[2]),u.length===3?c:ui(u[3])),ir(e,t),t;ye(t,0,0,0,1);return;case"hsla":if(u.length!==4){ye(t,0,0,0,1);return}return u[3]=ui(u[3]),Pu(u,t),ir(e,t),t;case"hsl":if(u.length!==3){ye(t,0,0,0,1);return}return Pu(u,t),ir(e,t),t;default:return}}ye(t,0,0,0,1)}}function Pu(e,t){var n=(parseFloat(e[0])%360+360)%360/360,i=ui(e[1]),r=ui(e[2]),o=r<=.5?r*(i+1):r+i-r*i,a=r*2-o;return t=t||[],ye(t,Dn(Au(a,o,n+1/3)*255),Dn(Au(a,o,n)*255),Dn(Au(a,o,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function zb(e){if(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r,s=(o+r)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+r):u=a/(2-o-r);var c=((o-t)/6+a/2)/a,h=((o-n)/6+a/2)/a,p=((o-i)/6+a/2)/a;t===o?l=p-h:n===o?l=1/3+c-p:i===o&&(l=2/3+h-c),l<0&&(l+=1),l>1&&(l-=1)}var f=[l*360,u,s];return e[3]!=null&&f.push(e[3]),f}}function xd(e,t){var n=$e(e);if(n){for(var i=0;i<3;i++)n[i]=n[i]*(1-t)|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return ro(n,n.length===4?"rgba":"rgb")}}function Bb(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var i=e*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=$e(t[r]),s=$e(t[o]),l=i-r,u=ro([Dn(Aa(a[0],s[0],l)),Dn(Aa(a[1],s[1],l)),Dn(Aa(a[2],s[2],l)),Cu(Aa(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}function Ou(e,t,n,i){var r=$e(e);if(e)return r=zb(r),n!=null&&(r[1]=ui(tt(n)?n(r[1]):n)),i!=null&&(r[2]=ui(tt(i)?i(r[2]):i)),ro(Pu(r),"rgba")}function ro(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Pa(e,t){var n=$e(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var bd=new qi(100);function wd(e){if(q(e)){var t=bd.get(e);return t||(t=xd(e,-.1),bd.put(e,t)),t}else if(ga(e)){var n=N({},e);return n.colorStops=Z(e.colorStops,function(i){return{offset:i.offset,color:xd(i.color,-.1)}}),n}return e}function Fb(e){return e.type==="linear"}function Vb(e){return e.type==="radial"}(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(e){return Buffer.from(e).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null}})();var Ru=Array.prototype.slice;function hn(e,t,n){return(t-e)*n+e}function Nu(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=hn(t[o],n[o],i);return e}function Gb(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=hn(t[a][s],n[a][s],i)}return e}function Oa(e,t,n,i){for(var r=t.length,o=0;o<r;o++)e[o]=t[o]+n[o]*i;return e}function Sd(e,t,n,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+n[a][s]*i}return e}function Hb(e,t){for(var n=e.length,i=t.length,r=n>i?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function Wb(e,t,n){var i=e,r=t;if(!(!i.push||!r.push)){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(n===1?r[l]:Ru.call(r[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(n===1)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function Ra(e){if(ne(e)){var t=e.length;if(ne(e[0])){for(var n=[],i=0;i<t;i++)n.push(Ru.call(e[i]));return n}return Ru.call(e)}return e}function Na(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function Ub(e){return ne(e&&e[0])?2:1}var Ea=0,za=1,Md=2,oo=3,Eu=4,zu=5,Td=6;function Id(e){return e===Eu||e===zu}function Ba(e){return e===za||e===Md}var ao=[0,0,0,0],Xb=(function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=Td,l=n;if(ne(n)){var u=Ub(n);s=u,(u===1&&!yt(n[0])||u===2&&!yt(n[0][0]))&&(a=!0)}else if(yt(n)&&!Zr(n))s=Ea;else if(q(n))if(!isNaN(+n))s=Ea;else{var c=$e(n);c&&(l=c,s=oo)}else if(ga(n)){var h=N({},l);h.colorStops=Z(n.colorStops,function(f){return{offset:f.offset,color:$e(f.color)}}),Fb(n)?s=Eu:Vb(n)&&(s=zu),l=h}o===0?this.valType=s:(s!==this.valType||s===Td)&&(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:n,percent:0};return i&&(p.easing=i,p.easingFunc=tt(i)?i:io[i]||yd(i)),r.push(p),p},e.prototype.prepare=function(t,n){var i=this.keyframes;this._needsSort&&i.sort(function(g,v){return g.time-v.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Ba(r),u=Id(r),c=0;c<o;c++){var h=i[c],p=h.value,f=a.value;h.percent=h.time/t,s||(l&&c!==o-1?Wb(p,f,r):u&&Hb(p.colorStops,f.colorStops))}if(!s&&r!==zu&&n&&this.needsAnimate()&&n.needsAnimate()&&r===n.valType&&!n._finished){this._additiveTrack=n;for(var d=i[0].value,c=0;c<o;c++)r===Ea?i[c].additiveValue=i[c].value-d:r===oo?i[c].additiveValue=Oa([],i[c].value,d,-1):Ba(r)&&(i[c].additiveValue=r===za?Oa([],i[c].value,d,-1):Sd([],i[c].value,d,-1))}},e.prototype.step=function(t,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,r=i?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,u=o===oo,c,h=this._lastFr,p=Math.min,f,d;if(s===1)f=d=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var g=p(h+1,s-1);for(c=g;c>=0&&!(a[c].percent<=n);c--);c=p(c,s-2)}else{for(c=h;c<s&&!(a[c].percent>n);c++);c=p(c-1,s-2)}d=a[c+1],f=a[c]}if(f&&d){this._lastFr=c,this._lastFrP=n;var v=d.percent-f.percent,y=v===0?1:p((n-f.percent)/v,1);d.easingFunc&&(y=d.easingFunc(y));var m=i?this._additiveValue:u?ao:t[l];if((Ba(o)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?f.rawValue:d.rawValue;else if(Ba(o))o===za?Nu(m,f[r],d[r],y):Gb(m,f[r],d[r],y);else if(Id(o)){var _=f[r],x=d[r],b=o===Eu;t[l]={type:b?"linear":"radial",x:hn(_.x,x.x,y),y:hn(_.y,x.y,y),colorStops:Z(_.colorStops,function(S,M){var T=x.colorStops[M];return{offset:hn(S.offset,T.offset,y),color:Na(Nu([],S.color,T.color,y))}}),global:x.global},b?(t[l].x2=hn(_.x2,x.x2,y),t[l].y2=hn(_.y2,x.y2,y)):t[l].r=hn(_.r,x.r,y)}else if(u)Nu(m,f[r],d[r],y),i||(t[l]=Na(m));else{var w=hn(f[r],d[r],y);i?this._additiveValue=w:t[l]=w}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,i=this.propName,r=this._additiveValue;n===Ea?t[i]=t[i]+r:n===oo?($e(t[i],ao),Oa(ao,ao,r,1),t[i]=Na(ao)):n===za?Oa(t[i],t[i],r,1):n===Md&&Sd(t[i],t[i],r,1)},e})(),Bu=(function(){function e(t,n,i,r){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&r){eu("Can' use additive animation on looped animation.");return}this._additiveAnimators=r,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,i){return this.whenWithKeys(t,n,St(n),i)},e.prototype.whenWithKeys=function(t,n,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new Xb(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var h=c.keyframes,p=h[h.length-1];u=p&&p.value,c.valType===oo&&u&&(u=Na(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ra(u),r),this._trackKeys.push(s)}l.addKeyframe(t,Ra(n[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,i=0;i<n;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,n=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,n)for(var i=0;i<n.length;i++)n[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,n=this._trackKeys,i=0;i<n.length;i++)t[n[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var n,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(n=o)}return n},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var n=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[c-1];h&&(n._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Eb({life:r,loop:this._loop,delay:this._delay||0,onframe:function(f){n._started=2;var d=n._additiveAnimators;if(d){for(var g=!1,v=0;v<d.length;v++)if(d[v]._clip){g=!0;break}g||(n._additiveAnimators=null)}for(var v=0;v<i.length;v++)i[v].step(n._target,f);var y=n._onframeCbs;if(y)for(var v=0;v<y.length;v++)y[v](n._target,f)},ondestroy:function(){n._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var n=this._clip;t&&n.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return Z(this._trackKeys,function(n){return t._tracks[n]})},e.prototype.stopTracks=function(t,n){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(n?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,n,i){if(t){n=n||this._trackKeys;for(var r=0;r<n.length;r++){var o=n[r],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Ra(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,n){n=n||St(t);for(var i=0;i<n.length;i++){var r=n[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e})(),Qe=(function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,n,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(r=i,i=n,n=null),!i||!t)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:n,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},u=o[t].length-1,c=o[t][u];return c&&c.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var n=this._$handlers;return!n||!n[t]||!n[t].length},e.prototype.off=function(t,n){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(n){if(i[t]){for(var r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==n&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=n.length,s=r.length,l=0;l<s;l++){var u=r[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(a){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,n[0]);break;case 2:u.h.call(u.ctx,n[0],n[1]);break;default:u.h.apply(u.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=n.length,s=n[a-1],l=r.length,u=0;u<l;u++){var c=r[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(s);break;case 1:c.h.call(s,n[0]);break;case 2:c.h.call(s,n[0],n[1]);break;default:c.h.apply(s,n.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e})(),kd=1;nt.hasGlobalWindow&&(kd=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fa=kd,Fu=.4,Vu="#333",Gu="#ccc",Yb="#eee",oe=1,so=2,rr=4,Hu="__zr_normal__",Wu=wa.concat(["ignore"]),Zb=In(wa,function(e,t){return e[t]=!0,e},{ignore:!1}),or={},qb=new Q(0,0,0,0),Va=[],Ga=0,Ha=1,Wa=(function(){function e(t){this.id=Rf(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,i){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=n.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var u=!1;o.copyTransform(n);var c=i.position!=null,h=i.autoOverflowArea,p=void 0;if((h||c)&&(p=qb,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),r||p.applyTransform(this.transform)),c){this.calculateTextPosition?this.calculateTextPosition(or,i,p):ba(or,i,p),o.x=or.x,o.y=or.y,a=or.align,s=or.verticalAlign;var f=i.origin;if(f&&i.rotation!=null){var d=void 0,g=void 0;f==="center"?(d=p.width*.5,g=p.height*.5):(d=ai(f[0],p.width),g=ai(f[1],p.height)),u=!0,o.originX=-o.x+d+(r?0:p.x),o.originY=-o.y+g+(r?0:p.y)}}i.rotation!=null&&(o.rotation=i.rotation);var v=i.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(h){var m=y.overflowRect=y.overflowRect||new Q(0,0,0,0);o.getLocalTransform(Va),Jr(Va,Va),Q.copy(m,p),m.applyTransform(Va)}else y.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,b=void 0,w=void 0;_&&this.canBeInsideText()?(x=i.insideFill,b=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(x),w=!0)):(x=i.outsideFill,b=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(x),w=!0)),x=x||"#000",(x!==y.fill||b!==y.stroke||w!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=x,y.stroke=b,y.autoStroke=w,y.align=a,y.verticalAlign=s,n.setDefaultTextStyle(y)),n.__dirty|=oe,l&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gu:Vu},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),i=typeof n=="string"&&$e(n);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,ro(i,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},N(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(j(t))for(var i=t,r=St(i),o=0;o<r.length;o++){var a=r[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var n=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==Hu)){var a=r.targetName,s=a?n[a]:n;r.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var n=this._normalState;n||(n=this._normalState={}),t.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(t,n,Wu)},e.prototype._savePrimaryToNormal=function(t,n,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]!=null&&!(o in n)&&(n[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(Hu,!1,t)},e.prototype.useState=function(t,n,i,r){var o=t===Hu,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,t)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){eu("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=this._textContent,h=Dd(this,c,u,r);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,u,this._normalState,n,Ld(this,i,l),l);var p=this._textGuide;return c&&c.useState(t,n,i,!!h),p&&p.useState(t,n,i,!!h),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=Ga,this.__dirty&=~oe),u}}},e.prototype.useStates=function(t,n,i){if(!t.length)this.clearStates();else{var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&r.push(c)}var h=r[a-1],p=this._textContent,f=Dd(this,p,h,i);f&&!this.__inHover&&(this.__inHover=f);var d=this._mergeStates(r),g=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,Ld(this,n,g),g);var v=this._textGuide;p&&p.useStates(t,n,!!f),v&&v.useStates(t,n,!!f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=Ga,this.__dirty&=~oe)}},e.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var n=t.__hostTarget;t=n?t.ignoreHostSilent?null:n:t.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var n=this.animators[t];n.targetName&&n.changeTarget(this[n.targetName])}},e.prototype.removeState=function(t){var n=st(this.currentStates,t);if(n>=0){var i=this.currentStates.slice();i.splice(n,1),this.useStates(i)}},e.prototype.replaceState=function(t,n,i){var r=this.currentStates.slice(),o=st(r,t),a=st(r,n)>=0;o>=0?a?r.splice(o,1):r[o]=n:i&&!a&&r.push(n),this.useStates(r)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},i,r=0;r<t.length;r++){var o=t[r];N(n,o),o.textConfig&&(i=i||{},N(i,o.textConfig))}return i&&(n.textConfig=i),n},e.prototype._applyStateObj=function(t,n,i,r,o,a){if(this.__inHover!==Ha){var s=!(n&&r);n&&n.textConfig?(this.textConfig=N({},r?this.textConfig:i.textConfig),N(this.textConfig,n.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,c=0;c<Wu.length;c++){var h=Wu[c],p=o&&Zb[h];n&&n[h]!=null?p?(u=!0,l[h]=n[h]):this[h]=n[h]:s&&i[h]!=null&&(p?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!o)for(var c=0;c<this.animators.length;c++){var f=this.animators[c],d=f.targetName;f.getLoop()||f.__changeFinalValue(d?(n||i)[d]:n||i)}u&&this._transitionState(t,l,a)}},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var n=this.__zr;n&&t.addSelfToZr(n),t.__zr=n,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var n=this._textContent;n!==t&&(n&&n!==t&&this.removeTextContent(),t.innerTransformable=new no,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=oe;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var n=this.animators;if(n)for(var i=0;i<n.length;i++)t.animation.addAnimator(n[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var i=0;i<n.length;i++)t.animation.removeAnimator(n[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,n,i){var r=t?this[t]:this,o=new Bu(r,n,i);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,n){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(n)}).done(function(){var o=r.animators,a=st(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];!t||t===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,n,i){Uu(this,t,n,i)},e.prototype.animateFrom=function(t,n,i){Uu(this,t,n,i,!0)},e.prototype._transitionState=function(t,n,i,r){for(var o=Uu(this,n,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=(function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=Ga,t.__dirty=oe;function n(i,r,o,a){Object.defineProperty(t,i,{get:function(){if(!this[r]){var l=this[r]=[];s(this,l)}return this[r]},set:function(l){this[o]=l[0],this[a]=l[1],this[r]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[o]},set:function(c){l[o]=c}}),Object.defineProperty(u,1,{get:function(){return l[a]},set:function(c){l[a]=c}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),e})();Oe(Wa,Qe),Oe(Wa,no);function Uu(e,t,n,i,r){n=n||{};var o=[];Cd(e,"",e,t,n,i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,a--,a<=0&&(s?l&&l():u&&u())},h=function(){a--,a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(d,g){n.during(g)});for(var p=0;p<o.length;p++){var f=o[p];c&&f.done(c),h&&f.aborted(h),n.force&&f.duration(n.duration),f.start(n.easing)}return o}function Xu(e,t,n){for(var i=0;i<n;i++)e[i]=t[i]}function jb(e){return ne(e[0])}function Kb(e,t,n){if(ne(t[n]))if(ne(e[n])||(e[n]=[]),ie(t[n])){var i=t[n].length;e[n].length!==i&&(e[n]=new t[n].constructor(i),Xu(e[n],t[n],i))}else{var r=t[n],o=e[n],a=r.length;if(jb(r))for(var s=r[0].length,l=0;l<a;l++)o[l]?Xu(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else Xu(o,r,a);o.length=r.length}else e[n]=t[n]}function $b(e,t){return e===t||ne(e)&&ne(t)&&Qb(e,t)}function Qb(e,t){var n=e.length;if(n!==t.length)return!1;for(var i=0;i<n;i++)if(e[i]!==t[i])return!1;return!0}function Cd(e,t,n,i,r,o,a,s){for(var l=St(i),u=r.duration,c=r.delay,h=r.additive,p=r.setToFinal,f=!j(o),d=e.animators,g=[],v=0;v<l.length;v++){var y=l[v],m=i[y];if(m!=null&&n[y]!=null&&(f||o[y]))if(j(m)&&!ne(m)&&!ga(m)){if(t){s||(n[y]=m,e.updateDuringAnimation(t));continue}Cd(e,y,n[y],m,r,o&&o[y],a,s)}else g.push(y);else s||(n[y]=m,e.updateDuringAnimation(t),g.push(y))}var _=g.length;if(!h&&_)for(var x=0;x<d.length;x++){var b=d[x];if(b.targetName===t){var w=b.stopTracks(g);if(w){var S=st(d,b);d.splice(S,1)}}}if(r.force||(g=Bt(g,function(I){return!$b(i[I],n[I])}),_=g.length),_>0||r.force&&!a.length){var M=void 0,T=void 0,k=void 0;if(s){T={},p&&(M={});for(var x=0;x<_;x++){var y=g[x];T[y]=n[y],p?M[y]=i[y]:n[y]=i[y]}}else if(p){k={};for(var x=0;x<_;x++){var y=g[x];k[y]=Ra(n[y]),Kb(n,i,y)}}var b=new Bu(n,!1,!1,h?Bt(d,function(A){return A.targetName===t}):null);b.targetName=t,r.scope&&(b.scope=r.scope),p&&M&&b.whenWithKeys(0,M,g),k&&b.whenWithKeys(0,k,g),b.whenWithKeys(u??500,s?T:i,g).delay(c||0),e.addAnimator(b,t),a.push(b)}}function Dd(e,t,n,i){return!(n&&n.hoverLayer||i)||Ad(e)||t&&Ad(t)?Ga:Ha}function Ad(e){return e.type==="text"||e.type==="tspan"}function Ld(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}var Yu="__zr_style_"+Math.round(Math.random()*10),ci={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ua={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ci[Yu]=!0;var Pd=["z","z2","invisible"],Jb=["invisible"],lo=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var i=St(n),r=0;r<i.length;r++){var o=i[r];o==="style"?this.useStyle(n[o]):e.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(n){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(n,i,r,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&tw(this,n,i)||a&&!a[0]&&!a[3])return!1;if(r&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(n,i){return this.rectContain(n,i)},t.prototype.traverse=function(n,i){n.call(i,this)},t.prototype.rectContain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect();return o.contain(r[0],r[1])},t.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,r=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new Q(0,0,0,0)),i?Q.applyTransform(n,r,i):n.copy(r),(a||s||l)&&(n.width+=a*2+Math.abs(s),n.height+=a*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-a),n.y=Math.min(n.y,n.y+l-a));var u=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-u),n.y=Math.floor(n.y-u),n.width=Math.ceil(n.width+1+u*2),n.height=Math.ceil(n.height+1+u*2))}return n},t.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new Q(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(n){return this.animate("style",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(n,i){n!=="style"?e.prototype.attrKV.call(this,n,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(n,i){return typeof n=="string"?this.style[n]=i:N(this.style,n),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=so,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&so)},t.prototype.styleUpdated=function(){this.__dirty&=~so},t.prototype.createStyle=function(n){return va(ci,n)},t.prototype.useStyle=function(n){n[Yu]||(n=this.createStyle(n)),this.style=n,this.dirtyStyle()},t.prototype._useHoverStyle=function(n){this.__hoverStyle=n},t.prototype.isStyleObject=function(n){return n[Yu]},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,i,Pd)},t.prototype._applyStateObj=function(n,i,r,o,a,s){e.prototype._applyStateObj.call(this,n,i,r,o,a,s);var l=!(i&&o),u=this.__inHover===Ha,c;if(i&&i.style?a?o?c=i.style:(c=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:r.style),this._mergeStyle(c,i.style)):l&&(c=r.style),c)if(a){var h=this.style;if(this.style=this.createStyle(l?{}:h),l)for(var p=St(h),f=0;f<p.length;f++){var d=p[f];d in c&&(c[d]=c[d],this.style[d]=h[d])}for(var g=St(c),f=0;f<g.length;f++){var d=g[f];this.style[d]=this.style[d]}this._transitionState(n,{style:c},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(c):this.useStyle(c);if(!u)for(var v=this.__inHover?Jb:Pd,f=0;f<v.length;f++){var d=v[f];i&&i[d]!=null?this[d]=i[d]:l&&r[d]!=null&&(this[d]=r[d])}},t.prototype._mergeStates=function(n){for(var i=e.prototype._mergeStates.call(this,n),r,o=0;o<n.length;o++){var a=n[o];a.style&&(r=r||{},this._mergeStyle(r,a.style))}return r&&(i.style=r),i},t.prototype._mergeStyle=function(n,i){return N(n,i),n},t.prototype.getAnimationStyleProps=function(){return Ua},t.initDefaultProps=(function(){var n=t.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=0,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=oe|so})(),t})(Wa),Zu=new Q(0,0,0,0),qu=new Q(0,0,0,0);function tw(e,t,n){return Zu.copy(e.getBoundingRect()),e.transform&&Zu.applyTransform(e.transform),qu.width=t,qu.height=n,!Zu.intersect(qu)}var me=Math.min,_e=Math.max,ju=Math.sin,Ku=Math.cos,hi=Math.PI*2,Xa=ji(),Ya=ji(),Za=ji();function Od(e,t,n,i,r,o){r[0]=me(e,n),r[1]=me(t,i),o[0]=_e(e,n),o[1]=_e(t,i)}var Rd=[],Nd=[];function ew(e,t,n,i,r,o,a,s,l,u){var c=dd,h=Ft,p=c(e,n,r,a,Rd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<p;f++){var d=h(e,n,r,a,Rd[f]);l[0]=me(d,l[0]),u[0]=_e(d,u[0])}p=c(t,i,o,s,Nd);for(var f=0;f<p;f++){var g=h(t,i,o,s,Nd[f]);l[1]=me(g,l[1]),u[1]=_e(g,u[1])}l[0]=me(e,l[0]),u[0]=_e(e,u[0]),l[0]=me(a,l[0]),u[0]=_e(a,u[0]),l[1]=me(t,l[1]),u[1]=_e(t,u[1]),l[1]=me(s,l[1]),u[1]=_e(s,u[1])}function nw(e,t,n,i,r,o,a,s){var l=vd,u=re,c=_e(me(l(e,n,r),1),0),h=_e(me(l(t,i,o),1),0),p=u(e,n,r,c),f=u(t,i,o,h);a[0]=me(e,r,p),a[1]=me(t,o,f),s[0]=_e(e,r,p),s[1]=_e(t,o,f)}function iw(e,t,n,i,r,o,a,s,l){var u=$i,c=Qi,h=Math.abs(r-o);if(h%hi<1e-4&&h>1e-4){s[0]=e-n,s[1]=t-i,l[0]=e+n,l[1]=t+i;return}if(Xa[0]=Ku(r)*n+e,Xa[1]=ju(r)*i+t,Ya[0]=Ku(o)*n+e,Ya[1]=ju(o)*i+t,u(s,Xa,Ya),c(l,Xa,Ya),r=r%hi,r<0&&(r=r+hi),o=o%hi,o<0&&(o=o+hi),r>o&&!a?o+=hi:r<o&&a&&(r+=hi),a){var p=o;o=r,r=p}for(var f=0;f<o;f+=Math.PI/2)f>r&&(Za[0]=Ku(f)*n+e,Za[1]=ju(f)*i+t,u(s,Za,s),c(l,Za,l))}var ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},pi=[],fi=[],Je=[],An=[],tn=[],en=[],$u=Math.min,Qu=Math.max,di=Math.cos,gi=Math.sin,pn=Math.abs,Ju=Math.PI,Ln=Ju*2,tc=typeof Float32Array<"u",uo=[];function ec(e){var t=Math.round(e/Ju*1e8)/1e8;return t%2*Ju}function Ed(e,t){var n=ec(e[0]);n<0&&(n+=Ln);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=Ln?r=n+Ln:t&&n-r>=Ln?r=n-Ln:!t&&n>r?r=n+(Ln-ec(n-r)):t&&n<r&&(r=n-(Ln-ec(r-n))),e[0]=n,e[1]=r}var vi=(function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,n,i){i=i||0,i>0&&(this._ux=pn(i/Fa/t)||0,this._uy=pn(i/Fa/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(ft.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var i=pn(t-this._xi),r=pn(n-this._yi),o=i>this._ux||r>this._uy;if(this.addData(ft.L,t,n),this._ctx&&o&&this._ctx.lineTo(t,n),o)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,n,i,r,o,a){return this._drawPendingPt(),this.addData(ft.C,t,n,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,n,i,r,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,n,i,r){return this._drawPendingPt(),this.addData(ft.Q,t,n,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,n,i,r),this._xi=i,this._yi=r,this},e.prototype.arc=function(t,n,i,r,o,a){this._drawPendingPt(),uo[0]=r,uo[1]=o,Ed(uo,a),r=uo[0],o=uo[1];var s=o-r;return this.addData(ft.A,t,n,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,n,i,r,o,a),this._xi=di(o)*i+t,this._yi=gi(o)*i+n,this},e.prototype.arcTo=function(t,n,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,i,r,o),this},e.prototype.rect=function(t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,i,r),this.addData(ft.R,t,n,i,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ft.Z);var t=this._ctx,n=this._x0,i=this._y0;return t&&t.closePath(),this._xi=n,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var n=t.length;!(this.data&&this.data.length===n)&&tc&&(this.data=new Float32Array(n));for(var i=0;i<n;i++)this.data[i]=t[i];this._len=n}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var n=t.length,i=0,r=this._len,o=0;o<n;o++)i+=t[o].len();var a=this.data;if(tc&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+i),r>0&&a))for(var s=0;s<r;s++)this.data[s]=a[s];for(var o=0;o<n;o++)for(var l=t[o].data,s=0;s<l.length;s++)this.data[r++]=l[s];this._len=r}},e.prototype.addData=function(t,n,i,r,o,a,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var h=0;h<arguments.length;h++)c[this._len++]=arguments[h]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n<this._len;n++)t[n]=this.data[n];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,tc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Je[0]=Je[1]=tn[0]=tn[1]=Number.MAX_VALUE,An[0]=An[1]=en[0]=en[1]=-Number.MAX_VALUE;var t=this.data,n=0,i=0,r=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(n=t[a],i=t[a+1],r=n,o=i),s){case ft.M:n=r=t[a++],i=o=t[a++],tn[0]=r,tn[1]=o,en[0]=r,en[1]=o;break;case ft.L:Od(n,i,t[a],t[a+1],tn,en),n=t[a++],i=t[a++];break;case ft.C:ew(n,i,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],tn,en),n=t[a++],i=t[a++];break;case ft.Q:nw(n,i,t[a++],t[a++],t[a],t[a+1],tn,en),n=t[a++],i=t[a++];break;case ft.A:var u=t[a++],c=t[a++],h=t[a++],p=t[a++],f=t[a++],d=t[a++]+f;a+=1;var g=!t[a++];l&&(r=di(f)*h+u,o=gi(f)*p+c),iw(u,c,h,p,f,d,g,tn,en),n=di(d)*h+u,i=gi(d)*p+c;break;case ft.R:r=n=t[a++],o=i=t[a++];var v=t[a++],y=t[a++];Od(r,o,r+v,o+y,tn,en);break;case ft.Z:n=r,i=o;break}$i(Je,Je,tn),Qi(An,An,en)}return a===0&&(Je[0]=Je[1]=An[0]=An[1]=0),new Q(Je[0],Je[1],An[0]-Je[0],An[1]-Je[1])},e.prototype._calculateLength=function(){var t=this.data,n=this._len,i=this._ux,r=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,h=0,p=0;p<n;){var f=t[p++],d=p===1;d&&(o=t[p],a=t[p+1],s=o,l=a);var g=-1;switch(f){case ft.M:o=s=t[p++],a=l=t[p++];break;case ft.L:{var v=t[p++],y=t[p++],m=v-o,_=y-a;(pn(m)>i||pn(_)>r||p===n-1)&&(g=Math.sqrt(m*m+_*_),o=v,a=y);break}case ft.C:{var x=t[p++],b=t[p++],v=t[p++],y=t[p++],w=t[p++],S=t[p++];g=Lb(o,a,x,b,v,y,w,S,10),o=w,a=S;break}case ft.Q:{var x=t[p++],b=t[p++],v=t[p++],y=t[p++];g=Rb(o,a,x,b,v,y,10),o=v,a=y;break}case ft.A:var M=t[p++],T=t[p++],k=t[p++],I=t[p++],A=t[p++],D=t[p++],L=D+A;p+=1,d&&(s=di(A)*k+M,l=gi(A)*I+T),g=Qu(k,I)*$u(Ln,Math.abs(D)),o=di(L)*k+M,a=gi(L)*I+T;break;case ft.R:{s=o=t[p++],l=a=t[p++];var P=t[p++],R=t[p++];g=P*2+R*2;break}case ft.Z:{var m=s-o,_=l-a;g=Math.sqrt(m*m+_*_),o=s,a=l;break}}g>=0&&(u[h++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,n){var i=this.data,r=this._ux,o=this._uy,a=this._len,s,l,u,c,h,p,f=n<1,d,g,v=0,y=0,m,_=0,x,b;if(!(f&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,g=this._pathLen,m=n*g,!m)))t:for(var w=0;w<a;){var S=i[w++],M=w===1;switch(M&&(u=i[w],c=i[w+1],s=u,l=c),S!==ft.L&&_>0&&(t.lineTo(x,b),_=0),S){case ft.M:s=u=i[w++],l=c=i[w++],t.moveTo(u,c);break;case ft.L:{h=i[w++],p=i[w++];var T=pn(h-u),k=pn(p-c);if(T>r||k>o){if(f){var I=d[y++];if(v+I>m){var A=(m-v)/I;t.lineTo(u*(1-A)+h*A,c*(1-A)+p*A);break t}v+=I}t.lineTo(h,p),u=h,c=p,_=0}else{var D=T*T+k*k;D>_&&(x=h,b=p,_=D)}break}case ft.C:{var L=i[w++],P=i[w++],R=i[w++],z=i[w++],O=i[w++],E=i[w++];if(f){var I=d[y++];if(v+I>m){var A=(m-v)/I;Ca(u,L,R,O,A,pi),Ca(c,P,z,E,A,fi),t.bezierCurveTo(pi[1],fi[1],pi[2],fi[2],pi[3],fi[3]);break t}v+=I}t.bezierCurveTo(L,P,R,z,O,E),u=O,c=E;break}case ft.Q:{var L=i[w++],P=i[w++],R=i[w++],z=i[w++];if(f){var I=d[y++];if(v+I>m){var A=(m-v)/I;Da(u,L,R,A,pi),Da(c,P,z,A,fi),t.quadraticCurveTo(pi[1],fi[1],pi[2],fi[2]);break t}v+=I}t.quadraticCurveTo(L,P,R,z),u=R,c=z;break}case ft.A:var G=i[w++],H=i[w++],U=i[w++],X=i[w++],W=i[w++],et=i[w++],ot=i[w++],At=!i[w++],Rt=U>X?U:X,gt=pn(U-X)>.001,Mt=W+et,J=!1;if(f){var I=d[y++];v+I>m&&(Mt=W+et*(m-v)/I,J=!0),v+=I}if(gt&&t.ellipse?t.ellipse(G,H,U,X,ot,W,Mt,At):t.arc(G,H,Rt,W,Mt,At),J)break t;M&&(s=di(W)*U+G,l=gi(W)*X+H),u=di(Mt)*U+G,c=gi(Mt)*X+H;break;case ft.R:s=u=i[w],l=c=i[w+1],h=i[w++],p=i[w++];var at=i[w++],Ue=i[w++];if(f){var I=d[y++];if(v+I>m){var Nt=m-v;t.moveTo(h,p),t.lineTo(h+$u(Nt,at),p),Nt-=at,Nt>0&&t.lineTo(h+at,p+$u(Nt,Ue)),Nt-=Ue,Nt>0&&t.lineTo(h+Qu(at-Nt,0),p+Ue),Nt-=at,Nt>0&&t.lineTo(h,p+Qu(Ue-Nt,0));break t}v+=I}t.rect(h,p,at,Ue);break;case ft.Z:if(f){var I=d[y++];if(v+I>m){var A=(m-v)/I;t.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break t}v+=I}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=ft,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function ar(e,t,n,i,r,o,a){if(r===0)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>e+s&&o>n+s||o<e-s&&o<n-s)return!1;if(e!==n)l=(t-i)/(e-n),u=(e*i-n*t)/(e-n);else return Math.abs(o-e)<=s/2;var c=l*o-a+u,h=c*c/(l*l+1);return h<=s/2*s/2}function rw(e,t,n,i,r,o,a,s,l,u,c){if(l===0)return!1;var h=l;if(c>t+h&&c>i+h&&c>o+h&&c>s+h||c<t-h&&c<i-h&&c<o-h&&c<s-h||u>e+h&&u>n+h&&u>r+h&&u>a+h||u<e-h&&u<n-h&&u<r-h&&u<a-h)return!1;var p=Ab(e,t,n,i,r,o,a,s,u,c);return p<=h/2}function ow(e,t,n,i,r,o,a,s,l){if(a===0)return!1;var u=a;if(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>e+u&&s>n+u&&s>r+u||s<e-u&&s<n-u&&s<r-u)return!1;var c=Ob(e,t,n,i,r,o,s,l);return c<=u/2}var zd=Math.PI*2;function qa(e){return e%=zd,e<0&&(e+=zd),e}var co=Math.PI*2;function aw(e,t,n,i,r,o,a,s,l){if(a===0)return!1;var u=a;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(i-r)%co<1e-4)return!0;if(o){var h=i;i=qa(r),r=qa(h)}else i=qa(i),r=qa(r);i>r&&(r+=co);var p=Math.atan2(l,s);return p<0&&(p+=co),p>=i&&p<=r||p+co>=i&&p+co<=r}function yi(e,t,n,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;(a===1||a===0)&&(s=i<t?.5:-.5);var l=a*(n-e)+e;return l===r?1/0:l>r?s:0}var Pn=vi.CMD,mi=Math.PI*2,sw=1e-4;function lw(e,t){return Math.abs(e-t)<sw}var Kt=[-1,-1,-1],xe=[-1,-1];function uw(){var e=xe[0];xe[0]=xe[1],xe[1]=e}function cw(e,t,n,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var c=ka(t,i,o,s,u,Kt);if(c===0)return 0;for(var h=0,p=-1,f=void 0,d=void 0,g=0;g<c;g++){var v=Kt[g],y=v===0||v===1?.5:1,m=Ft(e,n,r,a,v);m<l||(p<0&&(p=dd(t,i,o,s,xe),xe[1]<xe[0]&&p>1&&uw(),f=Ft(t,i,o,s,xe[0]),p>1&&(d=Ft(t,i,o,s,xe[1]))),p===2?v<xe[0]?h+=f<t?y:-y:v<xe[1]?h+=d<f?y:-y:h+=s<d?y:-y:v<xe[0]?h+=f<t?y:-y:h+=s<f?y:-y)}return h}function hw(e,t,n,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=Pb(t,i,o,s,Kt);if(l===0)return 0;var u=vd(t,i,o);if(u>=0&&u<=1){for(var c=0,h=re(t,i,o,u),p=0;p<l;p++){var f=Kt[p]===0||Kt[p]===1?.5:1,d=re(e,n,r,Kt[p]);d<a||(Kt[p]<u?c+=h<t?f:-f:c+=o<h?f:-f)}return c}else{var f=Kt[0]===0||Kt[0]===1?.5:1,d=re(e,n,r,Kt[0]);return d<a?0:o<t?f:-f}}function pw(e,t,n,i,r,o,a,s){if(s-=t,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Kt[0]=-l,Kt[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=mi-1e-4){i=0,r=mi;var c=o?1:-1;return a>=Kt[0]+e&&a<=Kt[1]+e?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=mi,r+=mi);for(var p=0,f=0;f<2;f++){var d=Kt[f];if(d+e>a){var g=Math.atan2(s,d),c=o?1:-1;g<0&&(g=mi+g),(g>=i&&g<=r||g+mi>=i&&g+mi<=r)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),p+=c)}}return p}function Bd(e,t,n,i,r){for(var o=e.data,a=e.len(),s=0,l=0,u=0,c=0,h=0,p,f,d=0;d<a;){var g=o[d++],v=d===1;switch(g===Pn.M&&d>1&&(n||(s+=yi(l,u,c,h,i,r))),v&&(l=o[d],u=o[d+1],c=l,h=u),g){case Pn.M:c=o[d++],h=o[d++],l=c,u=h;break;case Pn.L:if(n){if(ar(l,u,o[d],o[d+1],t,i,r))return!0}else s+=yi(l,u,o[d],o[d+1],i,r)||0;l=o[d++],u=o[d++];break;case Pn.C:if(n){if(rw(l,u,o[d++],o[d++],o[d++],o[d++],o[d],o[d+1],t,i,r))return!0}else s+=cw(l,u,o[d++],o[d++],o[d++],o[d++],o[d],o[d+1],i,r)||0;l=o[d++],u=o[d++];break;case Pn.Q:if(n){if(ow(l,u,o[d++],o[d++],o[d],o[d+1],t,i,r))return!0}else s+=hw(l,u,o[d++],o[d++],o[d],o[d+1],i,r)||0;l=o[d++],u=o[d++];break;case Pn.A:var y=o[d++],m=o[d++],_=o[d++],x=o[d++],b=o[d++],w=o[d++];d+=1;var S=!!(1-o[d++]);p=Math.cos(b)*_+y,f=Math.sin(b)*x+m,v?(c=p,h=f):s+=yi(l,u,p,f,i,r);var M=(i-y)*x/_+y;if(n){if(aw(y,m,x,b,b+w,S,t,M,r))return!0}else s+=pw(y,m,x,b,b+w,S,M,r);l=Math.cos(b+w)*_+y,u=Math.sin(b+w)*x+m;break;case Pn.R:c=l=o[d++],h=u=o[d++];var T=o[d++],k=o[d++];if(p=c+T,f=h+k,n){if(ar(c,h,p,h,t,i,r)||ar(p,h,p,f,t,i,r)||ar(p,f,c,f,t,i,r)||ar(c,f,c,h,t,i,r))return!0}else s+=yi(p,h,p,f,i,r),s+=yi(c,f,c,h,i,r);break;case Pn.Z:if(n){if(ar(l,u,c,h,t,i,r))return!0}else s+=yi(l,u,c,h,i,r);l=c,u=h;break}}return!n&&!lw(u,h)&&(s+=yi(l,u,c,h,i,r)||0),s!==0}function fw(e,t,n){return Bd(e,0,!1,t,n)}function dw(e,t,n,i){return Bd(e,t,!0,n,i)}var Fd=vt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ci),gw={style:vt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ua.style)},nc=wa.concat(["invisible","culling","z","z2","zlevel","parent"]),dt=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(l){n.buildPath(l,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s<nc.length;++s)r[nc[s]]=this[nc[s]];r.__dirty|=oe}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(n){var i=St(n);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var o=0;o<i.length;o++){var a=i[o],s=n[a];a==="style"?this.style?N(this.style,s):this.useStyle(s):a==="shape"?N(this.shape,s):e.prototype.attrKV.call(this,a,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 n=this.style.fill;if(n!=="none"){if(q(n)){var i=Pa(n,0);return i>.5?Vu:i>.2?Yb:Gu}else if(n)return Gu}return Vu},t.prototype.getInsideTextStroke=function(n){var i=this.style.fill;if(q(i)){var r=this.__zr,o=!!(r&&r.isDarkMode()),a=Pa(n,0)<Fu;if(o===a)return i}},t.prototype.buildPath=function(n,i,r){},t.prototype.pathUpdated=function(){this.__dirty&=~rr},t.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},t.prototype.createPathProxy=function(){this.path=new vi(!1)},t.prototype.hasStroke=function(){var n=this.style,i=n.stroke;return!(i==null||i==="none"||!(n.lineWidth>0))},t.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,i=this.style,r=!n;if(r){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&rr)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),n=a.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||r){s.copy(n);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??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 n},t.prototype.contain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect(),a=this.style;if(n=r[0],i=r[1],o.contain(n,i)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,u=a.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),dw(s,l/u,n,i)))return!0}if(this.hasFill())return fw(s,n,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=rr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,i){n==="shape"?this.setShape(i):e.prototype.attrKV.call(this,n,i)},t.prototype.setShape=function(n,i){var r=this.shape;return r||(r=this.shape={}),typeof n=="string"?r[n]=i:N(r,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&rr)},t.prototype.createStyle=function(n){return va(Fd,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var i=this._normalState;n.shape&&!i.shape&&(i.shape=N({},this.shape))},t.prototype._applyStateObj=function(n,i,r,o,a,s){if(e.prototype._applyStateObj.call(this,n,i,r,o,a,s),this.__inHover!==Ha){var l=!(i&&o),u;if(i&&i.shape?a?o?u=i.shape:(u=N({},r.shape),N(u,i.shape)):(u=N({},o?this.shape:r.shape),N(u,i.shape)):l&&(u=r.shape),u)if(a){this.shape=N({},this.shape);for(var c={},h=St(u),p=0;p<h.length;p++){var f=h[p];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(n){for(var i=e.prototype._mergeStates.call(this,n),r,o=0;o<n.length;o++){var a=n[o];a.shape&&(r=r||{},this._mergeStyle(r,a.shape))}return r&&(i.shape=r),i},t.prototype.getAnimationStyleProps=function(){return gw},t.prototype.isZeroArea=function(){return!1},t.extend=function(n){var i=(function(o){F(a,o);function a(s){var l=o.call(this,s)||this;return n.init&&n.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return rt(n.style)},a.prototype.getDefaultShape=function(){return rt(n.shape)},a})(t);for(var r in n)typeof n[r]=="function"&&(i.prototype[r]=n[r]);return i},t.initDefaultProps=(function(){var n=t.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=oe|so|rr})(),t})(lo),vw=vt({strokeFirst:!0,font:Tn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fd),ja=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return sd(this.style)},t.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(n){return va(vw,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Cb(this.style)),this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(lo);ja.prototype.type="tspan";var yw=vt({x:0,y:0},ci),mw={style:vt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ua.style)};function _w(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var On=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return va(yw,n)},t.prototype._getSize=function(n){var i=this.style,r=i[n];if(r!=null)return r;var o=_w(i.image)?i.image:this.__image;if(!o)return 0;var a=n==="width"?"height":"width",s=i[a];return s==null?o[n]:o[n]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return mw},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new Q(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(lo);On.prototype.type="image";function xw(e,t){var n=t.x,i=t.y,r=t.width,o=t.height,a=t.r,s,l,u,c;r<0&&(n=n+r,r=-r),o<0&&(i=i+o,o=-o),typeof a=="number"?s=l=u=c=a:a instanceof Array?a.length===1?s=l=u=c=a[0]:a.length===2?(s=u=a[0],l=c=a[1]):a.length===3?(s=a[0],l=c=a[1],u=a[2]):(s=a[0],l=a[1],u=a[2],c=a[3]):s=l=u=c=0;var h;s+l>r&&(h=s+l,s*=r/h,l*=r/h),u+c>r&&(h=u+c,u*=r/h,c*=r/h),l+u>o&&(h=l+u,l*=o/h,u*=o/h),s+c>o&&(h=s+c,s*=o/h,c*=o/h),e.moveTo(n+s,i),e.lineTo(n+r-l,i),l!==0&&e.arc(n+r-l,i+l,l,-Math.PI/2,0),e.lineTo(n+r,i+o-u),u!==0&&e.arc(n+r-u,i+o-u,u,0,Math.PI/2),e.lineTo(n+c,i+o),c!==0&&e.arc(n+c,i+o-c,c,Math.PI/2,Math.PI),e.lineTo(n,i+s),s!==0&&e.arc(n+s,i+s,s,Math.PI,Math.PI*1.5),e.closePath()}var sr=Math.round;function Vd(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s&&(sr(i*2)===sr(r*2)&&(e.x1=e.x2=_i(i,s,!0)),sr(o*2)===sr(a*2)&&(e.y1=e.y2=_i(o,s,!0))),e}}function Gd(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s&&(e.x=_i(i,s,!0),e.y=_i(r,s,!0),e.width=Math.max(_i(i+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(_i(r+a,s,!1)-e.y,a===0?0:1)),e}}function _i(e,t,n){if(!t)return e;var i=sr(e*2);return(i+sr(t))%2===0?i/2:(i+(n?1:-1))/2}var bw=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),ww={},Ct=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new bw},t.prototype.buildPath=function(n,i){var r,o,a,s;if(this.subPixelOptimize){var l=Gd(ww,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?xw(n,i):n.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(dt);Ct.prototype.type="rect";var Hd={fill:"#000"},Wd=2,nn={},Sw={style:vt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ua.style)},$t=(function(e){F(t,e);function t(n){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Hd,i.attr(n),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var i=this._children[n];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 n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(n){var i=this.innerTransformable;return i?i.getLocalTransform(n):e.prototype.getLocalTransform.call(this,n)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Cw(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=n},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);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 n=new Q(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(n.copy(l),n.applyTransform(u),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}this._rect=o||n}return this._rect},t.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||Hd},t.prototype.setTextContent=function(n){},t.prototype._mergeStyle=function(n,i){if(!i)return n;var r=i.rich,o=n.rich||r&&{};return N(n,i),r&&o?(this._mergeRich(o,r),n.rich=o):o&&(n.rich=o),n},t.prototype._mergeRich=function(n,i){for(var r=St(i),o=0;o<r.length;o++){var a=r[o];n[a]=n[a]||{},N(n[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return Sw},t.prototype._getOrCreateChild=function(n){var i=this._children[this._childCursor];return(!i||!(i instanceof n))&&(i=new n),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var n=this.style,i=n.font||Tn,r=n.padding,o=this._defaultStyle,a=n.x||0,s=n.y||0,l=n.align||o.align||"left",u=n.verticalAlign||o.verticalAlign||"top";rd(nn,o.overflowRect,a,s,l,u),a=nn.baseX,s=nn.baseY;var c=Kd(n),h=bb(c,n,nn.outerWidth,nn.outerHeight),p=ic(n),f=!!n.backgroundColor,d=h.outerHeight,g=h.outerWidth,v=h.lines,y=h.lineHeight;this.isTruncated=!!h.isTruncated;var m=a,_=oi(s,h.contentHeight,u);if(p||r){var x=tr(a,g,l),b=oi(s,d,u);p&&this._renderBackground(n,n,x,b,g,d)}_+=y/2,r&&(m=jd(a,l,r),u==="top"?_+=r[0]:u==="bottom"&&(_-=r[2]));for(var w=0,S=!1,M=!1,T=qd("fill"in n?n.fill:(M=!0,o.fill)),k=Zd("stroke"in n?n.stroke:!f&&(!o.autoStroke||M)?(w=Wd,S=!0,o.stroke):null),I=n.textShadowBlur>0,A=0;A<v.length;A++){var D=this._getOrCreateChild(ja),L=D.createStyle();D.useStyle(L),L.text=v[A],L.x=m,L.y=_,L.textAlign=l,L.textBaseline="middle",L.opacity=n.opacity,L.strokeFirst=!0,I&&(L.shadowBlur=n.textShadowBlur||0,L.shadowColor=n.textShadowColor||"transparent",L.shadowOffsetX=n.textShadowOffsetX||0,L.shadowOffsetY=n.textShadowOffsetY||0),L.stroke=k,L.fill=T,k&&(L.lineWidth=n.lineWidth||w,L.lineDash=n.lineDash,L.lineDashOffset=n.lineDashOffset||0),L.font=i,Xd(L,n),_+=y,D.setBoundingRect(Tu(L,h.contentWidth,h.calculatedLineHeight,S?0:null))}},t.prototype._updateRichTexts=function(){var n=this.style,i=this._defaultStyle,r=n.align||i.align,o=n.verticalAlign||i.verticalAlign,a=n.x||0,s=n.y||0;rd(nn,i.overflowRect,a,s,r,o),a=nn.baseX,s=nn.baseY;var l=Kd(n),u=Mb(l,n,nn.outerWidth,nn.outerHeight,r),c=u.width,h=u.outerWidth,p=u.outerHeight,f=n.padding;this.isTruncated=!!u.isTruncated;var d=tr(a,h,r),g=oi(s,p,o),v=d,y=g;f&&(v+=f[3],y+=f[0]);var m=v+c;ic(n)&&this._renderBackground(n,n,d,g,h,p);for(var _=!!n.backgroundColor,x=0;x<u.lines.length;x++){for(var b=u.lines[x],w=b.tokens,S=w.length,M=b.lineHeight,T=b.width,k=0,I=v,A=m,D=S-1,L=void 0;k<S&&(L=w[k],!L.align||L.align==="left");)this._placeToken(L,n,M,y,I,"left",_),T-=L.width,I+=L.width,k++;for(;D>=0&&(L=w[D],L.align==="right");)this._placeToken(L,n,M,y,A,"right",_),T-=L.width,A-=L.width,D--;for(I+=(c-(I-v)-(m-A)-T)/2;k<=D;)L=w[k],this._placeToken(L,n,M,y,I+L.width/2,"center",_),I+=L.width,k++;y+=M}},t.prototype._placeToken=function(n,i,r,o,a,s,l){var u=i.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,h=o+r/2;c==="top"?h=o+n.height/2:c==="bottom"&&(h=o+r-n.height/2);var p=!n.isLineHolder&&ic(u);p&&this._renderBackground(u,i,s==="right"?a-n.width:s==="center"?a-n.width/2:a,h-n.height/2,n.width,n.height);var f=!!u.backgroundColor,d=n.textPadding;d&&(a=jd(a,s,d),h-=n.height/2-d[0]-n.innerHeight/2);var g=this._getOrCreateChild(ja),v=g.createStyle();g.useStyle(v);var y=this._defaultStyle,m=!1,_=0,x=!1,b=qd("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),w=Zd("stroke"in u?u.stroke:"stroke"in i?i.stroke:!f&&!l&&(!y.autoStroke||m)?(_=Wd,x=!0,y.stroke):null),S=u.textShadowBlur>0||i.textShadowBlur>0;v.text=n.text,v.x=a,v.y=h,S&&(v.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,v.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",v.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,v.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),v.textAlign=s,v.textBaseline="middle",v.font=n.font||Tn,v.opacity=Qn(u.opacity,i.opacity,1),Xd(v,u),w&&(v.lineWidth=Qn(u.lineWidth,i.lineWidth,_),v.lineDash=Y(u.lineDash,i.lineDash),v.lineDashOffset=i.lineDashOffset||0,v.stroke=w),b&&(v.fill=b),g.setBoundingRect(Tu(v,n.contentWidth,n.contentHeight,x?0:null))},t.prototype._renderBackground=function(n,i,r,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,h=l&&l.image,p=l&&!h,f=n.borderRadius,d=this,g,v;if(p||n.lineHeight||u&&c){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=r,y.y=o,y.width=a,y.height=s,y.r=f,g.dirtyShape()}if(p){var m=g.style;m.fill=l||null,m.fillOpacity=Y(n.fillOpacity,1)}else if(h){v=this._getOrCreateChild(On),v.onload=function(){d.dirtyStyle()};var _=v.style;_.image=l.image,_.x=r,_.y=o,_.width=a,_.height=s}if(u&&c){var m=g.style;m.lineWidth=u,m.stroke=c,m.strokeOpacity=Y(n.strokeOpacity,1),m.lineDash=n.borderDash,m.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var x=(g||v).style;x.shadowBlur=n.shadowBlur||0,x.shadowColor=n.shadowColor||"transparent",x.shadowOffsetX=n.shadowOffsetX||0,x.shadowOffsetY=n.shadowOffsetY||0,x.opacity=Qn(n.opacity,i.opacity,1)},t.makeFont=function(n){var i="";return kw(n)&&(i=[n.fontStyle,n.fontWeight,Iw(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),i&&Xe(i)||n.textFont||n.font},t})(lo),Mw={left:!0,right:1,center:1},Tw={top:1,bottom:1,middle:1},Ud=["fontStyle","fontWeight","fontSize","fontFamily"];function Iw(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?$l+"px":e+"px"}function Xd(e,t){for(var n=0;n<Ud.length;n++){var i=Ud[n],r=t[i];r!=null&&(e[i]=r)}}function kw(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Cw(e){return Yd(e),C(e.rich,Yd),e}function Yd(e){if(e){e.font=$t.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Mw[t]?t:"left";var n=e.verticalAlign;n==="center"&&(n="middle"),e.verticalAlign=n==null||Tw[n]?n:"top";var i=e.padding;i&&(e.padding=ru(e.padding))}}function Zd(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function qd(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function jd(e,t,n){return t==="right"?e-n[1]:t==="center"?e+n[3]/2-n[1]/2:e+n[3]}function Kd(e){var t=e.text;return t!=null&&(t+=""),t}function ic(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var $d=1e-4,Qd=20;function Dw(e){return e.replace(/^\s+|\s+$/g,"")}var Wt=Math.min,ct=Math.max,Lt=Math.abs,fn=Math.round,xi=Math.floor,ho=Math.ceil,bi=Math.pow,po=Math.log,rc=Math.LN10,Aw=Math.PI,Lw=Math.random;function oc(e,t,n,i){var r=t[0],o=t[1],a=n[0],s=n[1],l=o-r,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}var bt=Pw;function Pw(e,t,n){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return ac(e,t,n)}function ac(e,t,n){return q(e)?Ow(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function Ow(e){return!!Dw(e).match(/%$/)}function lt(e,t,n){return isNaN(t)?n?""+e:+e:(t=Wt(ct(0,t),Qd),e=(+e).toFixed(t),n?e:+e)}function sc(e){return e.sort(function(t,n){return t-n}),e}function dn(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(fn(e*t)/t===e)return n}return Rw(e)}function Rw(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return ct(0,a-i)}function Nw(e,t,n){var i=Lt(e[1]-e[0]);if(!isFinite(i)||i===0)return NaN;var r=po(2*Lt(n||1)*Lt(i))/rc,o=po(Lt(t))/rc,a=ct(0,ho(-r+o));return isFinite(a)||(a=NaN),a}function Ew(e,t){var n=In(e,function(f,d){return f+(isNaN(d)?0:d)},0);if(n===0)return[];for(var i=bi(10,t),r=Z(e,function(f){return(isNaN(f)?0:f)/n*i*100}),o=i*100,a=Z(r,function(f){return xi(f)}),s=In(a,function(f,d){return f+d},0),l=Z(r,function(f,d){return f-a[d]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,p=l.length;h<p;++h)l[h]>u&&(u=l[h],c=h);++a[c],l[c]=0,++s}return Z(a,function(f){return f/i})}function zw(e,t){var n=ct(dn(e),dn(t)),i=e+t;return n>Qd?i:lt(i,n)}var Jd=bi(2,53)-1;function tg(e){var t=Aw*2;return(e%t+t)%t}function Ka(e){return e>-$d&&e<$d}var Bw=/^(?:(\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 lr(e){if(e instanceof Date)return e;if(q(e)){var t=Bw.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(fn(e))}function eg(e){return bi(10,lc(e))}function lc(e){if(e===0)return 0;var t=xi(po(e)/rc);return e/bi(10,t)>=10&&t++,t}var ng=2;function uc(e,t){var n=lc(e),i=bi(10,n),r=e/i,o;return t===ng?o=1:t?r<1.5?o=1:r<2.5?o=2:r<4?o=3:r<7?o=5:o=10:r<1?o=1:r<2?o=2:r<3?o=3:r<5?o=5:o=10,e=o*i,lt(e,-n)}function $a(e){var t=parseFloat(e);return t==e&&(t!==0||!q(e)||e.indexOf("x")<=0)?t:NaN}function Fw(e){return!isNaN($a(e))}function cc(){return fn(Lw()*9)}function ig(e,t){return t===0?e:ig(t,e%t)}function rg(e,t){return e==null?t:t==null?e:e*t/ig(e,t)}function be(e){return e!=null&&isFinite(e)}var Vw="[ECharts] ",Gw=typeof console<"u"&&console.warn&&console.log;function Hw(e,t,n){Gw&&console[e](Vw+t)}function og(e,t){Hw("error",e)}function ae(e){throw new Error(e)}function ag(e,t,n){return(t-e)*n+e}var sg="series\0",Ww="\0_ec_\0";function Qt(e){return e instanceof Array?e:e==null?[]:[e]}function Qa(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var lg=["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 fo(e){return j(e)&&!B(e)&&!(e instanceof Date)?e.value:e}function Uw(e){return j(e)&&!(e instanceof Array)}function Xw(e,t,n){var i=n==="normalMerge",r=n==="replaceMerge",o=n==="replaceAll";e=e||[],t=(t||[]).slice();var a=$();C(t,function(l,u){if(!j(l)){t[u]=null;return}});var s=Yw(e,a,n);return(i||r)&&Zw(s,e,a,t),i&&qw(s,t),i||r?jw(s,t,r):o&&Kw(s,t),$w(s),s}function Yw(e,t,n){var i=[];if(n==="replaceAll")return i;for(var r=0;r<e.length;r++){var o=e[r];o&&o.id!=null&&t.set(o.id,r),i.push({existing:n==="replaceMerge"||vo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function Zw(e,t,n,i){C(i,function(r,o){if(!(!r||r.id==null)){var a=go(r.id),s=n.get(a);if(s!=null){var l=e[s];cn(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=r,l.existing=t[s],i[o]=null}}})}function qw(e,t){C(t,function(n,i){if(!(!n||n.name==null))for(var r=0;r<e.length;r++){var o=e[r].existing;if(!e[r].newOption&&o&&(o.id==null||n.id==null)&&!vo(n)&&!vo(o)&&ug("name",o,n)){e[r].newOption=n,t[i]=null;return}}})}function jw(e,t,n){C(t,function(i){if(i){for(var r,o=0;(r=e[o])&&(r.newOption||vo(r.existing)||r.existing&&i.id!=null&&!ug("id",i,r.existing));)o++;r?(r.newOption=i,r.brandNew=n):e.push({newOption:i,brandNew:n,existing:null,keyInfo:null}),o++}})}function Kw(e,t){C(t,function(n){e.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function $w(e){var t=$();C(e,function(n){var i=n.existing;i&&t.set(i.id,n)}),C(e,function(n){var i=n.newOption;cn(!i||i.id==null||!t.get(i.id)||t.get(i.id)===n,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,n),!n.keyInfo&&(n.keyInfo={})}),C(e,function(n,i){var r=n.existing,o=n.newOption,a=n.keyInfo;if(j(o)){if(a.name=o.name!=null?go(o.name):r?r.name:sg+i,r)a.id=go(r.id);else if(o.id!=null)a.id=go(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,n)}})}function ug(e,t,n){var i=rn(t[e],null),r=rn(n[e],null);return i!=null&&r!=null&&i===r}function go(e){return rn(e,"")}function rn(e,t){return e==null?t:q(e)?e:yt(e)||nu(e)?e+"":t}function hc(e){var t=e.name;return!!(t&&t.indexOf(sg))}function vo(e){return e&&e.id!=null&&go(e.id).indexOf(Ww)===0}function Qw(e,t,n){C(e,function(i){var r=i.newOption;j(r)&&(i.keyInfo.mainType=t,i.keyInfo.subType=Jw(t,r,i.existing,n))})}function Jw(e,t,n,i){var r=t.type?t.type:n?n.subType:i.determineSubType(e,t);return r}function wi(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return B(t.dataIndex)?Z(t.dataIndex,function(n){return e.indexOfRawIndex(n)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return B(t.name)?Z(t.name,function(n){return e.indexOfName(n)}):e.indexOfName(t.name)}function ht(){var e="__ec_inner_"+tS++;return function(t){return t[e]||(t[e]={})}}var tS=cc();function pc(e,t,n){var i=fc(t,n),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=a,l=n?n.defaultMainType:null;return!r&&l&&o.set(l,{}),o.each(function(u,c){var h=yo(e,c,u,{useDefault:l===c,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});s[c+"Models"]=h.models,s[c+"Model"]=h.models[0]}),s}function fc(e,t){var n;if(q(e)){var i={};i[e+"Index"]=0,n=i}else n=e;var r=$(),o={},a=!1;return C(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],h=(u[2]||"").toLowerCase();if(!(!c||!h||t&&t.includeMainTypes&&st(t.includeMainTypes,c)<0)){a=a||!!c;var p=r.get(c)||r.set(c,{});p[h]=s}}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var we={useDefault:!0,enableAll:!1,enableNone:!1};function yo(e,t,n,i){i=i||we;var r=n.index,o=n.id,a=n.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=e.getComponent(t))?[l]:[],s}if(r==="none"||r===!1){if(i.enableNone)return s.models=[],s;r=-1}return r==="all"&&(i.enableAll?r=o=a=null:r=-1),s.models=e.queryComponents({mainType:t,index:r,id:o,name:a}),s}function eS(e,t,n){var i={};i[t+"Id"]=e[t+"Id"],i[t+"Index"]=e[t+"Index"],i[t+"Name"]=e[t+"Name"];var r={mainType:t,query:i};return n&&(r.subType=n),r}function cg(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function nS(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function iS(e){return e==="auto"?nt.domSupported?"html":"richText":e||"html"}function rS(e,t,n,i,r){var o=t==null||t==="auto";if(i==null)return i;if(yt(i)){var a=ag(n||0,i,r);return lt(a,o?Math.max(dn(n||0),dn(i)):t)}else{if(q(i))return r<1?n:i;for(var s=[],l=n,u=i,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var p=e.getDimensionInfo(h);if(p&&p.type==="ordinal")s[h]=(r<1&&l?l:u)[h];else{var f=l&&l[h]?l[h]:0,d=u[h],a=ag(f,d,r);s[h]=lt(a,o?Math.max(dn(f),dn(d)):t)}}return s}}function Se(){return[1/0,-1/0]}function dc(e,t){gn(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function hg(e,t){gn(t)&&t<e[0]&&(e[0]=t)}function pg(e,t){gn(t)&&t>e[1]&&(e[1]=t)}function oS(e,t){ur(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function gn(e){return e!=null&&isFinite(e)}function ur(e,t){return gn(e)&&gn(t)&&e<=t}function aS(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function sS(e){ur(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function fg(){var e="__ec_once_"+lS++;return function(t,n){jt(t,e)||(t[e]=1,n())}}var lS=cc();function gc(e,t,n){var i=$(),r=0;C(e,function(o){var a=t(o),s=i.get(a)||0;n&&n(o,s),!s&&!n&&(e[r++]=o),i.set(a,s+1)}),n||(e.length=r)}function uS(e){return e.value+""}function cS(e){return e+""}function hS(e,t){return Y(t,!0)?e.seriesIndex+2:0}function dg(e,t,n){var i=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,large:e.get("large")&&i>=e.get("largeThreshold"),modDataCount:e.get("progressiveChunkMode")==="mod"?e.getData().count():null}}function pS(e,t){return{seriesType:e,overallReset:t}}function vc(e){return{overallReset:e}}var ut=ht(),fS=function(e,t,n,i){if(i){var r=ut(i);r.dataIndex=n,r.dataType=t,r.seriesIndex=e,r.ssrType="chart",i.type==="group"&&i.traverse(function(o){var a=ut(o);a.seriesIndex=e,a.dataIndex=n,a.dataType=t,a.ssrType="chart"})}},cr="undefined",gg="series",vg=$(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),pe="original",Ut="arrayRows",Me="objectRows",Re="keyedColumns",Rn="typedArray",yg="unknown",on="column",Si="row",dS=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],mg=(function(){function e(t){C(dS,function(n){this[n]=_t(t[n],t)},this)}return e})();function gS(e,t){return t.mainType===gg?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}var _g=1,xg={},bg=ht(),yc=ht(),mc=0,Ja=1,ts=2,se=["emphasis","blur","select"],es=["normal","emphasis","blur","select"],vS=10,yS=9,Mi="highlight",ns="downplay",is="select",_c="unselect",rs="toggleSelect",xc="selectchanged";function hr(e){return e!=null&&e!=="none"}function os(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function wg(e){os(e,"emphasis",ts)}function Sg(e){e.hoverState===ts&&os(e,"normal",mc)}function bc(e){os(e,"blur",Ja)}function Mg(e){e.hoverState===Ja&&os(e,"normal",mc)}function mS(e){e.selected=!0}function _S(e){e.selected=!1}function Tg(e,t,n){t(e,n)}function vn(e,t,n){Tg(e,t,n),e.isGroup&&e.traverse(function(i){Tg(i,t,n)})}function Ig(e,t){switch(t){case"emphasis":e.hoverState=ts;break;case"normal":e.hoverState=mc;break;case"blur":e.hoverState=Ja;break;case"select":e.selected=!0}}function xS(e,t,n,i){for(var r=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=r[s];o[s]=l??(i&&i[s])}for(var a=0;a<e.animators.length;a++){var u=e.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function bS(e,t,n,i){var r=n&&st(n,"select")>=0,o=!1;if(e instanceof dt){var a=bg(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(hr(s)||hr(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(o=!0,i=N({},i),u=N({},u),u.fill=s):!hr(u.fill)&&hr(s)?(o=!0,i=N({},i),u=N({},u),u.fill=wd(s)):!hr(u.stroke)&&hr(l)&&(o||(i=N({},i),u=N({},u)),u.stroke=wd(l)),i.style=u}}if(i&&i.z2==null){o||(i=N({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(c??vS)}return i}function wS(e,t,n){if(n&&n.z2==null){n=N({},n);var i=e.z2SelectLift;n.z2=e.z2+(i??yS)}return n}function SS(e,t,n){var i=st(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:xS(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=N({},n),a=N({opacity:i?r:o.opacity*.1},a),n.style=a),n}function wc(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return bS(this,e,t,n);if(e==="blur")return SS(this,e,n);if(e==="select")return wS(this,e,n)}return n}function MS(e){e.stateProxy=wc;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=wc),n&&(n.stateProxy=wc)}function kg(e,t){!Pg(e,t)&&!e.__highByOuter&&vn(e,wg)}function Cg(e,t){!Pg(e,t)&&!e.__highByOuter&&vn(e,Sg)}function mo(e,t){e.__highByOuter|=1<<(t||0),vn(e,wg)}function _o(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&vn(e,Sg)}function Dg(e){vn(e,bc)}function Sc(e){vn(e,Mg)}function Ag(e){vn(e,mS)}function Lg(e){vn(e,_S)}function Pg(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Og(e){var t=e.getModel(),n=[],i=[];t.eachComponent(function(r,o){var a=yc(o),s=gS(e,o),l=r==="series";!l&&i.push(s),a.isBlured&&(s.group.traverse(function(u){Mg(u)}),l&&n.push(o)),a.isBlured=!1}),C(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(n,!1,t)})}function Mc(e,t,n,i){var r=i.getModel();n=n||"coordinateSystem";function o(u,c){for(var h=0;h<c.length;h++){var p=u.getItemGraphicEl(c[h]);p&&Sc(p)}}if(e!=null&&!(!t||t==="none")){var a=r.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(u){var c=a===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var p=h&&s?h===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!p||t==="series"&&c)){var f=i.getViewOfSeriesModel(u);if(f.group.traverse(function(v){v.__highByOuter&&c&&t==="self"||bc(v)}),ne(t))o(u.getData(),t);else if(j(t))for(var d=St(t),g=0;g<d.length;g++)o(u.getData(d[g]),t[d[g]]);l.push(u),yc(u).isBlured=!0}}),r.eachComponent(function(u,c){if(u!=="series"){var h=i.getViewOfComponentModel(c);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,r)}})}}function Tc(e,t,n){if(!(e==null||t==null)){var i=n.getModel().getComponent(e,t);if(i){yc(i).isBlured=!0;var r=n.getViewOfComponentModel(i);!r||!r.focusBlurEnabled||r.group.traverse(function(o){bc(o)})}}}function TS(e,t,n){var i=e.seriesIndex,r=e.getData(t.dataType);if(r){var o=wi(r,t);o=(B(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var u=ut(a);Mc(i,u.focus,u.blurScope,n)}else{var c=e.get(["emphasis","focus"]),h=e.get(["emphasis","blurScope"]);c!=null&&Mc(i,c,h,n)}}}function Ic(e,t,n,i){var r={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||n==null)return r;var o=i.getModel().getComponent(e,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s=a.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(ut(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function IS(e,t,n){var i=ut(e),r=Ic(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=r.dispatchers,a=r.focusSelf;o?(a&&Tc(i.componentMainType,i.componentIndex,n),C(o,function(s){return kg(s,t)})):(Mc(i.seriesIndex,i.focus,i.blurScope,n),i.focus==="self"&&Tc(i.componentMainType,i.componentIndex,n),kg(e,t))}function kS(e,t,n){Og(n);var i=ut(e),r=Ic(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;r?C(r,function(o){return Cg(o,t)}):Cg(e,t)}function CS(e,t,n){if(Dc(t)){var i=t.dataType,r=e.getData(i),o=wi(r,t);B(o)||(o=[o]),e[t.type===rs?"toggleSelect":t.type===is?"select":"unselect"](o,i)}}function Rg(e){var t=e.getAllData();C(t,function(n){var i=n.data,r=n.type;i.eachItemGraphicEl(function(o,a){e.isSelected(a,r)?Ag(o):Lg(o)})})}function DS(e){var t=[];return e.eachSeries(function(n){var i=n.getAllData();C(i,function(r){r.data;var o=r.type,a=n.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:n.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function kc(e,t,n){Eg(e,!0),vn(e,MS),LS(e,t,n)}function AS(e){Eg(e,!1)}function pr(e,t,n,i){i?AS(e):kc(e,t,n)}function LS(e,t,n){var i=ut(e);t!=null?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Ng=["emphasis","blur","select"],PS={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function as(e,t,n,i){n=n||"itemStyle";for(var r=0;r<Ng.length;r++){var o=Ng[r],a=t.getModel([o,n]),s=e.ensureState(o);s.style=a[PS[n]]()}}function Eg(e,t){var n=t===!1,i=e;e.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function Cc(e){return!!(e&&e.__highDownDispatcher)}function OS(e){var t=xg[e];return t==null&&_g<=32&&(t=xg[e]=_g++),t}function Dc(e){var t=e.type;return t===is||t===_c||t===rs}function zg(e){var t=e.type;return t===Mi||t===ns}function RS(e){var t=bg(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}var fr=vi.CMD,NS=[[],[],[]],Bg=Math.sqrt,ES=Math.atan2;function zS(e,t){if(t){var n=e.data,i=e.len(),r,o,a,s,l,u,c=fr.M,h=fr.C,p=fr.L,f=fr.R,d=fr.A,g=fr.Q;for(a=0,s=0;a<i;){switch(r=n[a++],s=a,o=0,r){case c:o=1;break;case p:o=1;break;case h:o=3;break;case g:o=2;break;case d:var v=t[4],y=t[5],m=Bg(t[0]*t[0]+t[1]*t[1]),_=Bg(t[2]*t[2]+t[3]*t[3]),x=ES(-t[1]/_,t[0]/m);n[a]*=m,n[a++]+=v,n[a]*=_,n[a++]+=y,n[a++]*=m,n[a++]*=_,n[a++]+=x,n[a++]+=x,a+=2,s=a;break;case f:u[0]=n[a++],u[1]=n[a++],ge(u,u,t),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],ge(u,u,t),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var b=NS[l];b[0]=n[a++],b[1]=n[a++],ge(b,b,t),n[s++]=b[0],n[s++]=b[1]}}e.increaseVersion()}}var Ac=Math.sqrt,ss=Math.sin,ls=Math.cos,xo=Math.PI;function Fg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Lc(e,t){return(e[0]*t[0]+e[1]*t[1])/(Fg(e)*Fg(t))}function Vg(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Lc(e,t))}function Gg(e,t,n,i,r,o,a,s,l,u,c){var h=l*(xo/180),p=ls(h)*(e-n)/2+ss(h)*(t-i)/2,f=-1*ss(h)*(e-n)/2+ls(h)*(t-i)/2,d=p*p/(a*a)+f*f/(s*s);d>1&&(a*=Ac(d),s*=Ac(d));var g=(r===o?-1:1)*Ac((a*a*(s*s)-a*a*(f*f)-s*s*(p*p))/(a*a*(f*f)+s*s*(p*p)))||0,v=g*a*f/s,y=g*-s*p/a,m=(e+n)/2+ls(h)*v-ss(h)*y,_=(t+i)/2+ss(h)*v+ls(h)*y,x=Vg([1,0],[(p-v)/a,(f-y)/s]),b=[(p-v)/a,(f-y)/s],w=[(-1*p-v)/a,(-1*f-y)/s],S=Vg(b,w);if(Lc(b,w)<=-1&&(S=xo),Lc(b,w)>=1&&(S=0),S<0){var M=Math.round(S/xo*1e6)/1e6;S=xo*2+M%2*xo}c.addData(u,m,_,a,s,x,S,h,o)}var BS=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,FS=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function VS(e){var t=new vi;if(!e)return t;var n=0,i=0,r=n,o=i,a,s=vi.CMD,l=e.match(BS);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),p=void 0,f=c.match(FS)||[],d=f.length,g=0;g<d;g++)f[g]=parseFloat(f[g]);for(var v=0;v<d;){var y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=n,T=i,k=void 0,I=void 0;switch(h){case"l":n+=f[v++],i+=f[v++],p=s.L,t.addData(p,n,i);break;case"L":n=f[v++],i=f[v++],p=s.L,t.addData(p,n,i);break;case"m":n+=f[v++],i+=f[v++],p=s.M,t.addData(p,n,i),r=n,o=i,h="l";break;case"M":n=f[v++],i=f[v++],p=s.M,t.addData(p,n,i),r=n,o=i,h="L";break;case"h":n+=f[v++],p=s.L,t.addData(p,n,i);break;case"H":n=f[v++],p=s.L,t.addData(p,n,i);break;case"v":i+=f[v++],p=s.L,t.addData(p,n,i);break;case"V":i=f[v++],p=s.L,t.addData(p,n,i);break;case"C":p=s.C,t.addData(p,f[v++],f[v++],f[v++],f[v++],f[v++],f[v++]),n=f[v-2],i=f[v-1];break;case"c":p=s.C,t.addData(p,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i,f[v++]+n,f[v++]+i),n+=f[v-2],i+=f[v-1];break;case"S":y=n,m=i,k=t.len(),I=t.data,a===s.C&&(y+=n-I[k-4],m+=i-I[k-3]),p=s.C,M=f[v++],T=f[v++],n=f[v++],i=f[v++],t.addData(p,y,m,M,T,n,i);break;case"s":y=n,m=i,k=t.len(),I=t.data,a===s.C&&(y+=n-I[k-4],m+=i-I[k-3]),p=s.C,M=n+f[v++],T=i+f[v++],n+=f[v++],i+=f[v++],t.addData(p,y,m,M,T,n,i);break;case"Q":M=f[v++],T=f[v++],n=f[v++],i=f[v++],p=s.Q,t.addData(p,M,T,n,i);break;case"q":M=f[v++]+n,T=f[v++]+i,n+=f[v++],i+=f[v++],p=s.Q,t.addData(p,M,T,n,i);break;case"T":y=n,m=i,k=t.len(),I=t.data,a===s.Q&&(y+=n-I[k-4],m+=i-I[k-3]),n=f[v++],i=f[v++],p=s.Q,t.addData(p,y,m,n,i);break;case"t":y=n,m=i,k=t.len(),I=t.data,a===s.Q&&(y+=n-I[k-4],m+=i-I[k-3]),n+=f[v++],i+=f[v++],p=s.Q,t.addData(p,y,m,n,i);break;case"A":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],M=n,T=i,n=f[v++],i=f[v++],p=s.A,Gg(M,T,n,i,w,S,_,x,b,p,t);break;case"a":_=f[v++],x=f[v++],b=f[v++],w=f[v++],S=f[v++],M=n,T=i,n+=f[v++],i+=f[v++],p=s.A,Gg(M,T,n,i,w,S,_,x,b,p,t);break}}(h==="z"||h==="Z")&&(p=s.Z,t.addData(p),n=r,i=o),a=p}return t.toStatic(),t}var Hg=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(n){},t})(dt);function Wg(e){return e.setData!=null}function Ug(e,t){var n=VS(e),i=N({},t);return i.buildPath=function(r){var o=Wg(r);if(o&&r.canSave()){r.appendPath(n);var a=r.getContext();a&&r.rebuildPath(a,1)}else{var a=o?r.getContext():r;a&&n.rebuildPath(a,1)}},i.applyTransform=function(r){zS(n,r),this.dirtyShape()},i}function GS(e,t){return new Hg(Ug(e,t))}function HS(e,t){var n=Ug(e,t),i=(function(r){F(o,r);function o(a){var s=r.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o})(Hg);return i}function WS(e,t){for(var n=[],i=e.length,r=0;r<i;r++){var o=e[r];n.push(o.getUpdatedPathProxy(!0))}var a=new dt(t);return a.createPathProxy(),a.buildPath=function(s){if(Wg(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var Pt=(function(e){F(t,e);function t(n){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(n),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(n){return this._children[n]},t.prototype.childOfName=function(n){for(var i=this._children,r=0;r<i.length;r++)if(i[r].name===n)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},t.prototype.addBefore=function(n,i){if(n&&n!==this&&n.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,i){var r=st(this._children,n);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(n,i){var r=this._children,o=r[i];if(n&&n!==this&&n.parent!==this&&n!==o){r[i]=n,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var i=this.__zr;i&&i!==n.__zr&&n.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(n){var i=this.__zr,r=this._children,o=st(r,n);return o<0?this:(r.splice(o,1),n.parent=null,i&&n.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,i=this.__zr,r=0;r<n.length;r++){var o=n[r];i&&o.removeSelfFromZr(i),o.parent=null}return n.length=0,this},t.prototype.eachChild=function(n,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];n.call(i,a,o)}return this},t.prototype.traverse=function(n,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=n.call(i,o);o.isGroup&&!a&&o.traverse(n,i)}return this},t.prototype.addSelfToZr=function(n){e.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.addSelfToZr(n)}},t.prototype.removeSelfFromZr=function(n){e.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++){var r=this._children[i];r.removeSelfFromZr(n)}},t.prototype.getBoundingRect=function(n){for(var i=new Q(0,0,0,0),r=n||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(o);c?(Q.applyTransform(i,u,c),a=a||i.clone(),a.union(i)):(a=a||u.clone(),a.union(u))}}return a||i},t})(Wa);Pt.prototype.type="group";var US=(function(){function e(){this.cx=0,this.cy=0,this.r=0}return e})(),us=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new US},t.prototype.buildPath=function(n,i){n.moveTo(i.cx+i.r,i.cy),n.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t})(dt);us.prototype.type="circle";var XS=(function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e})(),Pc=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new XS},t.prototype.buildPath=function(n,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*r,c=l*r;n.moveTo(o-s,a),n.bezierCurveTo(o-s,a-c,o-u,a-l,o,a-l),n.bezierCurveTo(o+u,a-l,o+s,a-c,o+s,a),n.bezierCurveTo(o+s,a+c,o+u,a+l,o,a+l),n.bezierCurveTo(o-u,a+l,o-s,a+c,o-s,a),n.closePath()},t})(dt);Pc.prototype.type="ellipse";var Xg=Math.PI,Oc=Xg*2,Ti=Math.sin,dr=Math.cos,YS=Math.acos,Xt=Math.atan2,Yg=Math.abs,bo=Math.sqrt,wo=Math.max,an=Math.min,Ne=1e-4;function ZS(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,p=h*l-c*u;if(!(p*p<Ne))return p=(c*(t-o)-h*(e-r))/p,[e+p*l,t+p*u]}function cs(e,t,n,i,r,o,a){var s=e-n,l=t-i,u=(a?o:-o)/bo(s*s+l*l),c=u*l,h=-u*s,p=e+c,f=t+h,d=n+c,g=i+h,v=(p+d)/2,y=(f+g)/2,m=d-p,_=g-f,x=m*m+_*_,b=r-o,w=p*g-d*f,S=(_<0?-1:1)*bo(wo(0,b*b*x-w*w)),M=(w*_-m*S)/x,T=(-w*m-_*S)/x,k=(w*_+m*S)/x,I=(-w*m+_*S)/x,A=M-v,D=T-y,L=k-v,P=I-y;return A*A+D*D>L*L+P*P&&(M=k,T=I),{cx:M,cy:T,x0:-c,y0:-h,x1:M*(r/b-1),y1:T*(r/b-1)}}function qS(e){var t;if(B(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function jS(e,t){var n,i=wo(t.r,0),r=wo(t.r0||0,0),o=i>0,a=r>0;if(!(!o&&!a)){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,h=t.cy,p=!!t.clockwise,f=Yg(u-l),d=f>Oc&&f%Oc;if(d>Ne&&(f=d),!(i>Ne))e.moveTo(c,h);else if(f>Oc-Ne)e.moveTo(c+i*dr(l),h+i*Ti(l)),e.arc(c,h,i,l,u,!p),r>Ne&&(e.moveTo(c+r*dr(u),h+r*Ti(u)),e.arc(c,h,r,u,l,p));else{var g=void 0,v=void 0,y=void 0,m=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,k=void 0,I=void 0,A=void 0,D=void 0,L=void 0,P=i*dr(l),R=i*Ti(l),z=r*dr(u),O=r*Ti(u),E=f>Ne;if(E){var G=t.cornerRadius;G&&(n=qS(G),g=n[0],v=n[1],y=n[2],m=n[3]);var H=Yg(i-r)/2;if(_=an(H,y),x=an(H,m),b=an(H,g),w=an(H,v),T=S=wo(_,x),k=M=wo(b,w),(S>Ne||M>Ne)&&(I=i*dr(u),A=i*Ti(u),D=r*dr(l),L=r*Ti(l),f<Xg)){var U=ZS(P,R,D,L,I,A,z,O);if(U){var X=P-U[0],W=R-U[1],et=I-U[0],ot=A-U[1],At=1/Ti(YS((X*et+W*ot)/(bo(X*X+W*W)*bo(et*et+ot*ot)))/2),Rt=bo(U[0]*U[0]+U[1]*U[1]);T=an(S,(i-Rt)/(At+1)),k=an(M,(r-Rt)/(At-1))}}}if(!E)e.moveTo(c+P,h+R);else if(T>Ne){var gt=an(y,T),Mt=an(m,T),J=cs(D,L,P,R,i,gt,p),at=cs(I,A,z,O,i,Mt,p);e.moveTo(c+J.cx+J.x0,h+J.cy+J.y0),T<S&>===Mt?e.arc(c+J.cx,h+J.cy,T,Xt(J.y0,J.x0),Xt(at.y0,at.x0),!p):(gt>0&&e.arc(c+J.cx,h+J.cy,gt,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!p),e.arc(c,h,i,Xt(J.cy+J.y1,J.cx+J.x1),Xt(at.cy+at.y1,at.cx+at.x1),!p),Mt>0&&e.arc(c+at.cx,h+at.cy,Mt,Xt(at.y1,at.x1),Xt(at.y0,at.x0),!p))}else e.moveTo(c+P,h+R),e.arc(c,h,i,l,u,!p);if(!(r>Ne)||!E)e.lineTo(c+z,h+O);else if(k>Ne){var gt=an(g,k),Mt=an(v,k),J=cs(z,O,I,A,r,-Mt,p),at=cs(P,R,D,L,r,-gt,p);e.lineTo(c+J.cx+J.x0,h+J.cy+J.y0),k<M&>===Mt?e.arc(c+J.cx,h+J.cy,k,Xt(J.y0,J.x0),Xt(at.y0,at.x0),!p):(Mt>0&&e.arc(c+J.cx,h+J.cy,Mt,Xt(J.y0,J.x0),Xt(J.y1,J.x1),!p),e.arc(c,h,r,Xt(J.cy+J.y1,J.cx+J.x1),Xt(at.cy+at.y1,at.cx+at.x1),p),gt>0&&e.arc(c+at.cx,h+at.cy,gt,Xt(at.y1,at.x1),Xt(at.y0,at.x0),!p))}else e.lineTo(c+z,h+O),e.arc(c,h,r,u,l,p)}e.closePath()}}}var KS=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e})(),Nn=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new KS},t.prototype.buildPath=function(n,i){jS(n,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(dt);Nn.prototype.type="sector";var $S=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),Rc=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new $S},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.PI*2;n.moveTo(r+i.r,o),n.arc(r,o,i.r,0,a,!1),n.moveTo(r+i.r0,o),n.arc(r,o,i.r0,0,a,!0)},t})(dt);Rc.prototype.type="ring";function QS(e,t,n,i){var r=[],o=[],a=[],s=[],l,u,c,h;if(i){c=[1/0,1/0],h=[-1/0,-1/0];for(var p=0,f=e.length;p<f;p++)$i(c,c,e[p]),Qi(h,h,e[p]);$i(c,c,i[0]),Qi(h,h,i[1])}for(var p=0,f=e.length;p<f;p++){var d=e[p];if(n)l=e[p?p-1:f-1],u=e[(p+1)%f];else if(p===0||p===f-1){r.push(cb(e[p]));continue}else l=e[p-1],u=e[p+1];Xf(o,u,l),pu(o,o,t);var g=du(d,l),v=du(d,u),y=g+v;y!==0&&(g/=y,v/=y),pu(a,o,-g),pu(s,o,v);var m=Uf([],d,a),_=Uf([],d,s);i&&(Qi(m,m,c),$i(m,m,h),Qi(_,_,c),$i(_,_,h)),r.push(m),r.push(_)}return n&&r.push(r.shift()),r}function Zg(e,t,n){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=QS(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[s*2],u=o[s*2+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);for(var s=1,h=r.length;s<h;s++)e.lineTo(r[s][0],r[s][1])}n&&e.closePath()}}var JS=(function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e})(),Nc=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new JS},t.prototype.buildPath=function(n,i){Zg(n,i,!0)},t})(dt);Nc.prototype.type="polygon";var tM=(function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e})(),So=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tM},t.prototype.buildPath=function(n,i){Zg(n,i,!1)},t})(dt);So.prototype.type="polyline";var eM={},nM=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})(),yn=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new nM},t.prototype.buildPath=function(n,i){var r,o,a,s;if(this.subPixelOptimize){var l=Vd(eM,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(n.moveTo(r,o),u<1&&(a=r*(1-u)+a*u,s=o*(1-u)+s*u),n.lineTo(a,s))},t.prototype.pointAt=function(n){var i=this.shape;return[i.x1*(1-n)+i.x2*n,i.y1*(1-n)+i.y2*n]},t})(dt);yn.prototype.type="line";var le=[],iM=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e})();function qg(e,t,n){var i=e.cpx2,r=e.cpy2;return i!=null||r!=null?[(n?fd:Ft)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?fd:Ft)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?gd:re)(e.x1,e.cpx1,e.x2,t),(n?gd:re)(e.y1,e.cpy1,e.y2,t)]}var hs=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new iM},t.prototype.buildPath=function(n,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,c=i.cpx2,h=i.cpy2,p=i.percent;p!==0&&(n.moveTo(r,o),c==null||h==null?(p<1&&(Da(r,l,a,p,le),l=le[1],a=le[2],Da(o,u,s,p,le),u=le[1],s=le[2]),n.quadraticCurveTo(l,u,a,s)):(p<1&&(Ca(r,l,c,a,p,le),l=le[1],c=le[2],a=le[3],Ca(o,u,h,s,p,le),u=le[1],h=le[2],s=le[3]),n.bezierCurveTo(l,u,c,h,a,s)))},t.prototype.pointAt=function(n){return qg(this.shape,n,!1)},t.prototype.tangentAt=function(n){var i=qg(this.shape,n,!0);return fu(i,i)},t})(dt);hs.prototype.type="bezier-curve";var rM=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),ps=(function(e){F(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new rM},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,c=Math.cos(s),h=Math.sin(s);n.moveTo(c*a+r,h*a+o),n.arc(r,o,a,s,l,!u)},t})(dt);ps.prototype.type="arc";var oM=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="compound",n}return t.prototype._updatePathDirty=function(){for(var n=this.shape.paths,i=this.shapeChanged(),r=0;r<n.length;r++)i=i||n[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<n.length;r++)n[r].path||n[r].createPathProxy(),n[r].path.setScale(i[0],i[1],n[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(n,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(n,r[o].shape,!0)},t.prototype.afterBrush=function(){for(var n=this.shape.paths||[],i=0;i<n.length;i++)n[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),dt.prototype.getBoundingRect.call(this)},t})(dt),jg=(function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,n){this.colorStops.push({offset:t,color:n})},e})(),Kg=(function(e){F(t,e);function t(n,i,r,o,a,s){var l=e.call(this,a)||this;return l.x=n??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t})(jg),aM=(function(e){F(t,e);function t(n,i,r,o,a){var s=e.call(this,o)||this;return s.x=n??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return t})(jg),Ec=Math.min,sM=Math.max,fs=Math.abs,Ii=[0,0],ki=[0,0],Et=jf(),ds=Et.minTv,gs=Et.maxTv,$g=(function(){function e(t,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new it;for(var i=0;i<2;i++)this._axes[i]=new it;t&&this.fromBoundingRect(t,n)}return e.prototype.fromBoundingRect=function(t,n){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),n)for(var u=0;u<4;u++)i[u].transform(n);it.sub(r[0],i[1],i[0]),it.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize();for(var u=0;u<2;u++)this._origin[u]=r[u].dot(i[0])},e.prototype.intersect=function(t,n,i){var r=!0,o=!n;return n&&it.set(n,0,0),Et.reset(i,!o),!this._intersectCheckOneSide(this,t,o,1)&&(r=!1,o)||!this._intersectCheckOneSide(t,this,o,-1)&&(r=!1,o)||!o&&!Et.negativeSize&&it.copy(n,r?Et.useDir?Et.dirMinTv:ds:gs),r},e.prototype._intersectCheckOneSide=function(t,n,i,r){for(var o=!0,a=0;a<2;a++){var s=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,Ii),t._getProjMinMaxOnAxis(a,n._corners,ki),Et.negativeSize||Ii[1]<ki[0]||Ii[0]>ki[1]){if(o=!1,Et.negativeSize||i)return o;var l=fs(ki[0]-Ii[1]),u=fs(Ii[0]-ki[1]);Ec(l,u)>gs.len()&&(l<u?it.scale(gs,s,-l*r):it.scale(gs,s,u*r))}else if(!i){var l=fs(ki[0]-Ii[1]),u=fs(Ii[0]-ki[1]);(Et.useDir||Ec(l,u)<ds.len())&&((l<u||!Et.bidirectional)&&(it.scale(ds,s,l*r),Et.useDir&&Et.calcDirMTV()),(l>=u||!Et.bidirectional)&&(it.scale(ds,s,-u*r),Et.useDir&&Et.calcDirMTV()))}}return o},e.prototype._getProjMinMaxOnAxis=function(t,n,i){for(var r=this._axes[t],o=this._origin,a=n[0].dot(r)+o[t],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(r)+o[t];s=Ec(c,s),l=sM(c,l)}i[0]=s+Et.touchThreshold,i[1]=l-Et.touchThreshold,Et.negativeSize=i[1]<i[0]},e})(),Qg=0,lM=1,uM=2,cM=1,vs=0,hM=[],pM=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.notClear=!0,n.incremental=lM,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return t.prototype.traverse=function(n,i){n.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(n,i){i?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},t.prototype.addDisplayables=function(n,i){i=i||!1;for(var r=0;r<n.length;r++)this.addDisplayable(n[r],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(n){for(var i=this._cursor;i<this._displayables.length;i++)n&&n(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)n&&n(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.parent=this,i.update(),i.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var i=this._temporaryDisplayables[n];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new Q(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(hM)),n.union(o)}this._rect=n}return this._rect},t.prototype.contain=function(n,i){var r=this.transformCoordToLocal(n,i),o=this.getBoundingRect();if(o.contain(r[0],r[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(n,i))return!0}return!1},t})(lo),fM=ht();function dM(e,t,n,i,r){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,h=void 0;i?(u=Y(i.duration,200),c=Y(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(h=o.delay)),tt(h)&&(h=h(n,r)),tt(u)&&(u=u(n));var p={duration:u||0,delay:h,easing:c};return p}else return null}function zc(e,t,n,i,r,o,a){var s=!1,l;tt(r)?(a=o,o=r,r=null):j(r)&&(o=r.cb,a=r.during,s=r.isFrom,l=r.removeOpt,r=r.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=dM(e,i,r,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(c&&c.duration>0){var h=c.duration,p=c.delay,f=c.easing,d={duration:h,delay:p||0,easing:f,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};s?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!s&&t.attr(n),a&&a(1),o&&o()}function Yt(e,t,n,i,r,o){zc("update",e,t,n,i,r,o)}function fe(e,t,n,i,r,o){zc("enter",e,t,n,i,r,o)}function Mo(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var n=e.animators[t];if(n.scope==="leave")return!0}return!1}function ys(e,t,n,i,r,o){Mo(e)||zc("leave",e,t,n,i,r,o)}function Jg(e,t,n,i){e.removeTextContent(),e.removeTextGuideLine(),ys(e,{style:{opacity:0}},t,n,i)}function To(e,t,n){function i(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(r){r.isGroup||Jg(r,t,n,i)}):Jg(e,t,n,i)}function Bc(e){fM(e).oldStyle=e.style}var Fc={},En=["x","y"],gr=["width","height"],tv=0,ev=1,ms=2;function gM(e){return dt.extend(e)}var vM=HS;function yM(e,t){return vM(e,t)}function Ee(e,t){Fc[e]=t}function mM(e){if(Fc.hasOwnProperty(e))return Fc[e]}function Vc(e,t,n,i){var r=GS(e,t);return n&&(i==="center"&&(n=iv(n,r.getBoundingRect())),rv(r,n)),r}function nv(e,t,n){var i=new On({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(n==="center"){var o={width:r.width,height:r.height};i.setStyle(iv(t,o))}}});return i}function iv(e,t){var n=t.width/t.height,i=e.height*n,r;i<=e.width?r=e.height:(i=e.width,r=i/n);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-i/2,y:a-r/2,width:i,height:r}}var _M=WS;function rv(e,t){if(e.applyTransform){var n=e.getBoundingRect(),i=n.calculateTransform(t);e.applyTransform(i)}}function Io(e,t){return Vd(e,e,{lineWidth:t}),e}function xM(e,t){return Gd(e,e,t),e}var bM=_i;function wM(e,t){for(var n=$r([]);e&&e!==t;)Qr(n,e.getLocalTransform(),n),e=e.parent;return n}function Gc(e,t,n){return t&&!ne(t)&&(t=no.getLocalTransform(t)),n&&(t=Jr([],t)),ge([],e,t)}function SM(e,t,n){var i=t[4]===0||t[5]===0||t[0]===0?1:Lt(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:Lt(2*t[4]/t[2]),o=[e==="left"?-i:e==="right"?i:0,e==="top"?-r:e==="bottom"?r:0];return o=Gc(o,t,n),Lt(o[0])>Lt(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function ov(e){return!e.isGroup}function MM(e){return e.shape!=null}function av(e,t,n){if(!e||!t)return;function i(a){var s={};return a.traverse(function(l){ov(l)&&l.anid&&(s[l.anid]=l)}),s}function r(a){var s={x:a.x,y:a.y,rotation:a.rotation};return MM(a)&&(s.shape=rt(a.shape)),s}var o=i(e);t.traverse(function(a){if(ov(a)&&a.anid){var s=o[a.anid];if(s){var l=r(a);a.attr(r(s)),Yt(a,l,n,ut(a).dataIndex)}}})}function TM(e,t){return Z(e,function(n){var i=n[0];i=ct(i,t.x),i=Wt(i,t.x+t.width);var r=n[1];return r=ct(r,t.y),r=Wt(r,t.y+t.height),[i,r]})}function IM(e,t){var n=ct(e.x,t.x),i=Wt(e.x+e.width,t.x+t.width),r=ct(e.y,t.y),o=Wt(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Hc(e,t,n){var i=N({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(r.image=e.slice(8),vt(r,n),new On(i)):Vc(e.replace("path://",""),i,n,"center")}function kM(e,t,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(sv(e,t,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function sv(e,t,n,i,r,o,a,s){var l=n-e,u=i-t,c=a-r,h=s-o,p=Wc(c,h,l,u);if(CM(p))return!1;var f=e-r,d=t-o,g=Wc(f,d,l,u)/p;if(g<0||g>1)return!1;var v=Wc(f,d,c,h)/p;return!(v<0||v>1)}function Wc(e,t,n,i){return e*i-n*t}function CM(e){return e<=1e-6&&e>=-1e-6}function _s(e,t,n,i,r){return t==null||(yt(t)?wt[0]=wt[1]=wt[2]=wt[3]=t:(wt[0]=t[0],wt[1]=t[1],wt[2]=t[2],wt[3]=t[3]),i&&(wt[0]=ct(0,wt[0]),wt[1]=ct(0,wt[1]),wt[2]=ct(0,wt[2]),wt[3]=ct(0,wt[3])),n&&(wt[0]=-wt[0],wt[1]=-wt[1],wt[2]=-wt[2],wt[3]=-wt[3]),lv(e,wt,"x","width",3,1,r&&r[0]||0),lv(e,wt,"y","height",0,2,r&&r[1]||0)),e}var wt=[0,0,0,0];function lv(e,t,n,i,r,o,a){var s=t[o]+t[r],l=e[i];e[i]+=s,a=ct(0,Wt(a,l)),e[i]<a?(e[i]=a,e[n]+=t[r]>=0?-t[r]:t[o]>=0?l+t[o]:Lt(s)>1e-8?(l-a)*t[r]/s:0):e[n]-=t[r]}function xs(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=q(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&C(St(l),function(c){jt(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ut(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:vt({content:i,encodeHTMLContent:!0,formatterParams:s},r)}}function Uc(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function ko(e,t){if(e)if(B(e))for(var n=0;n<e.length;n++)Uc(e[n],t);else Uc(e,t)}function Xc(e){return!e||Lt(e[1])<bs&&Lt(e[2])<bs||Lt(e[0])<bs&&Lt(e[3])<bs}var bs=1e-5;function Co(e,t){return e?Q.copy(e,t):t.clone()}function Yc(e,t){return t?lu(e||Ze(),t):void 0}function Zc(e){return{z:e.get("z")||0,zlevel:e.get("zlevel")||0}}function DM(e){var t=-1/0,n=1/0;Uc(e,function(o){i(o),i(o.getTextContent()),i(o.getTextGuideLine())});function i(o){if(!(!o||o.isGroup)){var a=o.currentStates;if(a.length)for(var s=0;s<a.length;s++)r(o.states[a[s]]);r(o)}}function r(o){if(o){var a=o.z2;a>t&&(t=a),a<n&&(n=a)}}return n>t&&(n=t=0),{min:n,max:t}}function qc(e,t,n){uv(e,t,n,-1/0)}function uv(e,t,n,i){if(e.ignoreModelZ)return i;var r=e.getTextContent(),o=e.getTextGuideLine(),a=e.isGroup;if(a)for(var s=e.childrenRef(),l=0;l<s.length;l++)i=ct(uv(s[l],t,n,i),i);else e.z=t,e.zlevel=n,i=ct(e.z2||0,i);if(r&&(r.z=t,r.zlevel=n,isFinite(i)&&(r.z2=i+2)),o){var u=e.textGuideLineConfig;o.z=t,o.zlevel=n,isFinite(i)&&(o.z2=i+(u&&u.showAbove?1:-1))}return i}function AM(e){return e.animation={duration:0},e}function LM(e,t){return t?lu(Do.transform,t):$r(Do.transform),Do.decomposeTransform(),Sa(e,Do),e}var Do=new no;Do.transform=Ze();function PM(e){var t=e.getZr().painter;return t.getType()==="canvas"?t:null}Ee("circle",us),Ee("ellipse",Pc),Ee("sector",Nn),Ee("ring",Rc),Ee("polygon",Nc),Ee("polyline",So),Ee("rect",Ct),Ee("line",yn),Ee("bezierCurve",hs),Ee("arc",ps);const OM=Object.freeze(Object.defineProperty({__proto__:null,Arc:ps,BezierCurve:hs,BoundingRect:Q,Circle:us,CompoundPath:oM,Ellipse:Pc,Group:Pt,HOVER_LAYER_FOR_INCREMENTAL:ms,HOVER_LAYER_FROM_THRESHOLD:ev,HOVER_LAYER_NO:tv,Image:On,IncrementalDisplayable:pM,Line:yn,LinearGradient:Kg,OrientedBoundingRect:$g,Path:dt,Point:it,Polygon:Nc,Polyline:So,RadialGradient:aM,Rect:Ct,Ring:Rc,Sector:Nn,Text:$t,WH:gr,XY:En,applyTransform:Gc,calcZ2Range:DM,clipPointsByRect:TM,clipRectByRect:IM,createIcon:Hc,decomposeTransform:LM,ensureCopyRect:Co,ensureCopyTransform:Yc,expandOrShrinkRect:_s,extendPath:yM,extendShape:gM,getCurrentCanvasPainter:PM,getShapeClass:mM,getTransform:wM,groupTransition:av,initProps:fe,isBoundingRectAxisAligned:Xc,isElementRemoved:Mo,lineLineIntersect:sv,linePolygonIntersect:kM,makeImage:nv,makePath:Vc,mergePath:_M,payloadDisableAnimation:AM,registerShape:Ee,removeElement:ys,removeElementWithFadeOut:To,resizePath:rv,retrieveZInfo:Zc,setTooltipConfig:xs,subPixelOptimize:bM,subPixelOptimizeLine:Io,subPixelOptimizeRect:xM,transformDirection:SM,traverseElements:ko,traverseUpdateZ:qc,updateProps:Yt},Symbol.toStringTag,{value:"Module"}));var ws={};function RM(e,t){for(var n=0;n<se.length;n++){var i=se[n],r=t[i],o=e.ensureState(i);o.style=o.style||{},o.style.text=r}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function cv(e,t,n){var i=e.labelFetcher,r=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;i&&(s=i.getFormattedLabel(r,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=tt(e.defaultText)?e.defaultText(r,e,n):e.defaultText);for(var l={normal:s},u=0;u<se.length;u++){var c=se[u],h=t[c];l[c]=Y(i?i.getFormattedLabel(r,c,null,o,h&&h.get("formatter")):null,s)}return l}function vr(e,t,n,i){n=n||ws;for(var r=e instanceof $t,o=!1,a=0;a<es.length;a++){var s=t[es[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?e:e.getTextContent();if(o){r||(l||(l=new $t,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=cv(n,t),c=t.normal,h=!!c.getShallow("show"),p=yr(c,i&&i.normal,n,!1,!r);p.text=u.normal,r||e.setTextConfig(hv(c,n,!1));for(var a=0;a<se.length;a++){var f=se[a],s=t[f];if(s){var d=l.ensureState(f),g=!!Y(s.getShallow("show"),h);if(g!==h&&(d.ignore=!g),d.style=yr(s,i&&i[f],n,!0,!r),d.style.text=u[f],!r){var v=e.ensureState(f);v.textConfig=hv(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(p.x=l.style.x),l.style.y!=null&&(p.y=l.style.y),l.ignore=!h,l.useStyle(p),l.dirty(),n.enableTextSetter&&(Ss(l).setLabelText=function(y){var m=cv(n,t,y);RM(l,m)})}else l&&(l.ignore=!0);e.dirty()}function Ci(e,t){t=t||"label";for(var n={normal:e.getModel(t)},i=0;i<se.length;i++){var r=se[i];n[r]=e.getModel([r,t])}return n}function yr(e,t,n,i,r){var o={};return NM(o,e,n,i,r),t&&N(o,t),o}function hv(e,t,n){t=t||{};var i={},r,o=e.getShallow("rotate"),a=Y(e.getShallow("distance"),n?null:5),s=e.getShallow("offset");return r=e.getShallow("position")||(n?null:"inside"),r==="outside"&&(r=t.defaultOutsidePosition||"top"),r!=null&&(i.position=r),s!=null&&(i.offset=s),o!=null&&(o*=Math.PI/180,i.rotation=o),a!=null&&(i.distance=a),i.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}function NM(e,t,n,i,r){n=n||ws;var o=t.ecModel,a=o&&o.option.textStyle,s=EM(t),l;if(s){l={};var u="richInheritPlainLabel",c=Y(t.get(u),o?o.get(u):void 0);for(var h in s)if(s.hasOwnProperty(h)){var p=t.getModel(["rich",h]);gv(l[h]={},p,a,t,c,n,i,r,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("lineOverflow");d&&(e.lineOverflow=d);var g=e,v=t.get("minMargin");if(v!=null)v=yt(v)?v/2:0,g.margin=[v,v,v,v],g.__marginType=mr.minMargin;else{var y=t.get("textMargin");y!=null&&(g.margin=ru(y),g.__marginType=mr.textMargin)}gv(e,t,a,null,null,n,i,r,!0,!1)}function EM(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||ws).rich;if(n){t=t||{};for(var i=St(n),r=0;r<i.length;r++){var o=i[r];t[o]=1}}e=e.parentModel}return t}var pv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],fv=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],dv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gv(e,t,n,i,r,o,a,s,l,u){n=!a&&n||ws;var c=o&&o.inheritColor,h=t.getShallow("color"),p=t.getShallow("textBorderColor"),f=Y(t.getShallow("opacity"),n.opacity);(h==="inherit"||h==="auto")&&(c?h=c:h=null),(p==="inherit"||p==="auto")&&(c?p=c:p=null),s||(h=h||n.color,p=p||n.textBorderColor),h!=null&&(e.fill=h),p!=null&&(e.stroke=p);var d=Y(t.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(e.lineWidth=d);var g=Y(t.getShallow("textBorderType"),n.textBorderType);g!=null&&(e.lineDash=g);var v=Y(t.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!u&&(f=o&&o.defaultOpacity),f!=null&&(e.opacity=f),!a&&!s&&e.fill==null&&o.inheritColor&&(e.fill=o.inheritColor);for(var y=0;y<pv.length;y++){var m=pv[y],_=r!==!1&&i?Qn(t.getShallow(m),i.getShallow(m),n[m]):Y(t.getShallow(m),n[m]);_!=null&&(e[m]=_)}for(var y=0;y<fv.length;y++){var m=fv[y],_=t.getShallow(m);_!=null&&(e[m]=_)}if(e.verticalAlign==null){var x=t.getShallow("baseline");x!=null&&(e.verticalAlign=x)}if(!l||!o.disableBox){for(var y=0;y<dv.length;y++){var m=dv[y],_=t.getShallow(m);_!=null&&(e[m]=_)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&c&&(e.backgroundColor=c),(e.borderColor==="auto"||e.borderColor==="inherit")&&c&&(e.borderColor=c)}}function zM(e,t){var n=t&&t.getModel("textStyle");return Xe([e.fontStyle||n&&n.getShallow("fontStyle")||"",e.fontWeight||n&&n.getShallow("fontWeight")||"",(e.fontSize||n&&n.getShallow("fontSize")||12)+"px",e.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Ss=ht();function BM(e,t,n,i){if(e){var r=Ss(e);r.prevValue=r.value,r.value=n;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}var mr={minMargin:1,textMargin:2},FM=["textStyle","color"],jc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Kc=new $t,VM=(function(){function e(){}return e.prototype.getTextColor=function(t){var n=this.ecModel;return this.getShallow("color")||(!t&&n?n.get(FM):null)},e.prototype.getFont=function(){return zM({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var n={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<jc.length;i++)n[jc[i]]=this.getShallow(jc[i]);return Kc.useStyle(n),Kc.update(),Kc.getBoundingRect()},e})(),vv=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],GM=Kr(vv),HM=(function(){function e(){}return e.prototype.getLineStyle=function(t){return GM(this,t)},e})(),yv=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],WM=Kr(yv),UM=(function(){function e(){}return e.prototype.getItemStyle=function(t,n){return WM(this,t,n)},e})(),Tt=(function(){function e(t,n,i){this.parentModel=n,this.ecModel=i,this.option=t}return e.prototype.init=function(t,n,i){},e.prototype.mergeOption=function(t,n){pt(this.option,t,!0)},e.prototype.get=function(t,n){return t==null?this.option:this._doGet(this.parsePath(t),!n&&this.parentModel)},e.prototype.getShallow=function(t,n){var i=this.option,r=i==null?i:i[t];if(r==null&&!n){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},e.prototype.getModel=function(t,n){var i=t!=null,r=i?this.parsePath(t):null,o=i?this._doGet(r):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),new e(o,n,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!nt.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,n){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&!(t[r]&&(i=i&&typeof i=="object"?i[t[r]]:null,i==null));r++);return i==null&&n&&(i=n._doGet(this.resolveParentPath(t),n.parentModel)),i},e})();au(Tt),eb(Tt),Oe(Tt,HM),Oe(Tt,UM),Oe(Tt,ab),Oe(Tt,VM);function Ao(e){return e==null?0:e.length||1}function mv(e){return e}var XM=(function(){function e(t,n,i,r,o,a){this._old=t,this._new=n,this._oldKeyGetter=i||mv,this._newKeyGetter=r||mv,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,i={},r=new Array(t.length),o=new Array(n.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],u=Ao(l);if(u>1){var c=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(c,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=i[l],c=r[l],h=Ao(u),p=Ao(c);if(h>1&&p===1)this._updateManyToOne&&this._updateManyToOne(c,u),r[l]=null;else if(h===1&&p>1)this._updateOneToMany&&this._updateOneToMany(c,u),r[l]=null;else if(h===1&&p===1)this._update&&this._update(c,u),r[l]=null;else if(h>1&&p>1)this._updateManyToMany&&this._updateManyToMany(c,u),r[l]=null;else if(h>1)for(var f=0;f<h;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(t,n){for(var i=0;i<t.length;i++){var r=t[i],o=n[r],a=Ao(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);n[r]=null}},e.prototype._initIndexMap=function(t,n,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),!!n){var l=n[s],u=Ao(l);u===0?(n[s]=a,o&&i.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},e})(),Vt={Must:1,Might:2,Not:3},_v=ht();function YM(e){_v(e).datasetMap=$()}function ZM(e,t,n){var i={},r=$c(t);if(!r||!e)return i;var o=[],a=[],s=t.ecModel,l=_v(s).datasetMap,u=r.uid+"_"+n.seriesLayoutBy,c,h;e=e.slice(),C(e,function(g,v){var y=j(g)?g:e[v]={name:g};y.type==="ordinal"&&c==null&&(c=v,h=d(y)),i[y.name]=[]});var p=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});C(e,function(g,v){var y=g.name,m=d(g);if(c==null){var _=p.valueWayDim;f(i[y],_,m),f(a,_,m),p.valueWayDim+=m}else if(c===v)f(i[y],0,m),f(o,0,m);else{var _=p.categoryWayDim;f(i[y],_,m),f(a,_,m),p.categoryWayDim+=m}});function f(g,v,y){for(var m=0;m<y;m++)g.push(v+m)}function d(g){var v=g.dimsDef;return v?v.length:1}return o.length&&(i.itemName=o),a.length&&(i.seriesName=a),i}function qM(e,t,n){var i={},r=$c(e);if(!r)return i;var o=t.sourceFormat,a=t.dimensionsDefine,s;(o===Me||o===Re)&&C(a,function(c,h){(j(c)?c.name:c)==="name"&&(s=h)});var l=(function(){for(var c={},h={},p=[],f=0,d=Math.min(5,n);f<d;f++){var g=bv(t.data,o,t.seriesLayoutBy,a,t.startIndex,f);p.push(g);var v=g===Vt.Not;if(v&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v||!v&&p[c.n]===Vt.Not)&&(c.n=f),y(c)&&p[c.n]!==Vt.Not)return c;v||(g===Vt.Might&&h.v==null&&f!==s&&(h.v=f),(h.n==null||h.n===h.v)&&(h.n=f))}function y(m){return m.v!=null&&m.n!=null}return y(c)?c:y(h)?h:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function $c(e){var t=e.get("data",!0);if(!t)return yo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},we).models[0]}function jM(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:yo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},we).models}function xv(e,t){return bv(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function bv(e,t,n,i,r,o){var a,s=5;if(ie(e))return Vt.Not;var l,u;if(i){var c=i[o];j(c)?(l=c.name,u=c.type):q(c)&&(l=c)}if(u!=null)return u==="ordinal"?Vt.Must:Vt.Not;if(t===Ut){var h=e;if(n===Si){for(var p=h[o],f=0;f<(p||[]).length&&f<s;f++)if((a=x(p[r+f]))!=null)return a}else for(var f=0;f<h.length&&f<s;f++){var d=h[r+f];if(d&&(a=x(d[o]))!=null)return a}}else if(t===Me){var g=e;if(!l)return Vt.Not;for(var f=0;f<g.length&&f<s;f++){var v=g[f];if(v&&(a=x(v[l]))!=null)return a}}else if(t===Re){var y=e;if(!l)return Vt.Not;var p=y[l];if(!p||ie(p))return Vt.Not;for(var f=0;f<p.length&&f<s;f++)if((a=x(p[f]))!=null)return a}else if(t===pe)for(var m=e,f=0;f<m.length&&f<s;f++){var v=m[f],_=fo(v);if(!B(_))return Vt.Not;if((a=x(_[o]))!=null)return a}function x(b){var w=q(b);if(b!=null&&isFinite(Number(b))&&b!=="")return w?Vt.Might:Vt.Not;if(w&&b!=="-")return Vt.Must}return Vt.Not}var Ms=(function(){function e(t){this.data=t.data||(t.sourceFormat===Re?{}:[]),this.sourceFormat=t.sourceFormat||yg,this.seriesLayoutBy=t.seriesLayoutBy||on,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var i=0;i<n.length;i++){var r=n[i];r.type==null&&xv(this,i)===Vt.Must&&(r.type="ordinal")}}return e})();function Qc(e){return e instanceof Ms}function Jc(e,t,n){n=n||Sv(e);var i=t.seriesLayoutBy,r=$M(e,n,i,t.sourceHeader,t.dimensions),o=new Ms({data:e,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:rt(t)});return o}function wv(e){return new Ms({data:e,sourceFormat:ie(e)?Rn:pe})}function KM(e){return new Ms({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function Sv(e){var t=yg;if(ie(e))t=Rn;else if(B(e)){e.length===0&&(t=Ut);for(var n=0,i=e.length;n<i;n++){var r=e[n];if(r!=null){if(B(r)||ie(r)){t=Ut;break}else if(j(r)){t=Me;break}}}}else if(j(e)){for(var o in e)if(jt(e,o)&&ne(e[o])){t=Re;break}}return t}function $M(e,t,n,i,r){var o,a;if(!e)return{dimensionsDefine:Mv(r),startIndex:a,dimensionsDetectedCount:o};if(t===Ut){var s=e;i==="auto"||i==null?Tv(function(u){u!=null&&u!=="-"&&(q(u)?a==null&&(a=1):a=0)},n,s,10):a=yt(i)?i:i?1:0,!r&&a===1&&(r=[],Tv(function(u,c){r[c]=u!=null?u+"":""},n,s,1/0)),o=r?r.length:n===Si?s.length:s[0]?s[0].length:null}else if(t===Me)r||(r=QM(e));else if(t===Re)r||(r=[],C(e,function(u,c){r.push(c)}));else if(t===pe){var l=fo(e[0]);o=B(l)&&l.length||1}return{startIndex:a,dimensionsDefine:Mv(r),dimensionsDetectedCount:o}}function QM(e){for(var t=0,n;t<e.length&&!(n=e[t++]););if(n)return St(n)}function Mv(e){if(e){var t=$();return Z(e,function(n,i){n=j(n)?n:{name:n};var r={name:n.name,displayName:n.displayName,type:n.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function Tv(e,t,n,i){if(t===Si)for(var r=0;r<n.length&&r<i;r++)e(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)e(o[r],r)}function Iv(e){var t=e.sourceFormat;return t===Me||t===Re}var _r,Di,Ai,Li,kv,Cv,Dv=(function(){function e(t,n){var i=Qc(t)?t:wv(t);this._source=i;var r=this._data=i.data,o=i.sourceFormat;i.seriesLayoutBy,o===Rn&&(this._offset=0,this._dimSize=n,this._data=r),Cv(this,r,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,n){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=(function(){var t=e.prototype;t.pure=!1,t.persistent=!0})(),e.internalField=(function(){var t;Cv=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,h=l.startIndex,p=l.dimensionsDefine,f=kv[eh(u,c)];if(N(a,f),u===Rn)a.getItem=n,a.count=r,a.fillStorage=i;else{var d=Lv(u,c);a.getItem=_t(d,null,s,h,p);var g=Ov(u,c);a.count=_t(g,null,s,h,p)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,h=0;h<u;h++)s[h]=l[c+h];return s},i=function(a,s,l,u){for(var c=this._data,h=this._dimSize,p=0;p<h;p++){for(var f=u[p],d=f[0]==null?1/0:f[0],g=f[1]==null?-1/0:f[1],v=s-a,y=l[p],m=0;m<v;m++){var _=c[m*h+p];y[a+m]=_,_<d&&(d=_),_>g&&(g=_)}f[0]=d,f[1]=g}},r=function(){return this._data?this._data.length/this._dimSize:0};kv=(t={},t[Ut+"_"+on]={pure:!0,appendData:o},t[Ut+"_"+Si]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Me]={pure:!0,appendData:o},t[Re]={pure:!0,appendData:function(a){var s=this._data;C(a,function(l,u){for(var c=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)c.push(l[h])})}},t[pe]={appendData:o},t[Rn]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}})(),e})(),Ts=function(e){B(e)||og("series.data or dataset.source must be an array.")};_r={},_r[Ut+"_"+on]=Ts,_r[Ut+"_"+Si]=Ts,_r[Me]=Ts,_r[Re]=function(e,t){for(var n=0;n<t.length;n++){var i=t[n].name;i==null&&og("dimension name must not be null/undefined.")}},_r[pe]=Ts;var Av=function(e,t,n,i){return e[i]},JM=(Di={},Di[Ut+"_"+on]=function(e,t,n,i){return e[i+t]},Di[Ut+"_"+Si]=function(e,t,n,i,r){i+=t;for(var o=r||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},Di[Me]=Av,Di[Re]=function(e,t,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,l=s!=null?e[s]:null;o[a]=l?l[i]:null}return o},Di[pe]=Av,Di);function Lv(e,t){var n=JM[eh(e,t)];return n}var Pv=function(e,t,n){return e.length},tT=(Ai={},Ai[Ut+"_"+on]=function(e,t,n){return Math.max(0,e.length-t)},Ai[Ut+"_"+Si]=function(e,t,n){var i=e[0];return i?Math.max(0,i.length-t):0},Ai[Me]=Pv,Ai[Re]=function(e,t,n){var i=n[0].name,r=i!=null?e[i]:null;return r?r.length:0},Ai[pe]=Pv,Ai);function Ov(e,t){var n=tT[eh(e,t)];return n}var th=function(e,t,n){return e[t]},eT=(Li={},Li[Ut]=th,Li[Me]=function(e,t,n){return e[n]},Li[Re]=th,Li[pe]=function(e,t,n){var i=fo(e);return i instanceof Array?i[t]:i},Li[Rn]=th,Li);function Rv(e){var t=eT[e];return t}function eh(e,t){return e===Ut?e+"_"+t:e}function xr(e,t,n){if(e){var i=e.getRawDataItem(t);if(i!=null){var r=e.getStore(),o=r.getSource().sourceFormat;if(n!=null){var a=e.getDimensionIndex(n),s=r.getDimensionProperty(a);return Rv(o)(i,a,s)}else{var l=i;return o===pe&&(l=fo(i)),l}}}}var nT=(function(){function e(t,n){this._encode=t,this._schema=n}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e})();function iT(e,t){var n={},i=n.encode={},r=$(),o=[],a=[],s={};C(e.dimensions,function(p){var f=e.getDimensionInfo(p),d=f.coordDim;if(d){var g=f.coordDimIndex;nh(i,d)[g]=p,f.isExtraCoord||(r.set(d,1),oT(f.type)&&(o[0]=p),nh(s,d)[g]=e.getDimensionIndex(f.name)),f.defaultTooltip&&a.push(p)}vg.each(function(v,y){var m=nh(i,y),_=f.otherDims[y];_!=null&&_!==!1&&(m[_]=f.name)})});var l=[],u={};r.each(function(p,f){var d=i[f];u[f]=d[0],l=l.concat(d)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Z(l,function(p){return e.getDimensionInfo(p).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=i.label;c&&c.length&&(o=c.slice());var h=i.tooltip;return h&&h.length?a=h.slice():a.length||(a=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=a,n.userOutput=new nT(s,t),n}function nh(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function rT(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function oT(e){return!(e==="ordinal"||e==="time")}var Is=(function(){function e(t){this.otherDims={},t!=null&&N(this,t)}return e})();function br(e,t){var n=t&&t.type;return n==="ordinal"?e:(n==="time"&&!yt(e)&&e!=null&&e!=="-"&&(e=+lr(e)),e==null||e===""?NaN:Number(e))}$({number:function(e){return parseFloat(e)},time:function(e){return+lr(e)},trim:function(e){return q(e)?Xe(e):e}});var aT=(function(){function e(t,n){var i=t==="desc";this._resultLT=i?1:-1,n==null&&(n=i?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,n){var i=yt(t)?t:$a(t),r=yt(n)?n:$a(n),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=q(t),l=q(n);s&&(i=l?t:0),l&&(r=s?n:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},e})();function Nv(e){var t="",n=-1/0,i=-1/0,r=1/0,o=1/0;return e&&(e.g!=null&&(t+="G"+e.g,n=e.g),e.ge!=null&&(t+="GE"+e.ge,i=e.ge),e.l!=null&&(t+="L"+e.l,r=e.l),e.le!=null&&(t+="LE"+e.le,o=e.le)),{key:t,g:n,ge:i,l:r,le:o}}function Ev(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var sT=typeof Uint32Array===cr?Array:Uint32Array,lT=typeof Uint16Array===cr?Array:Uint16Array,zv=typeof Int32Array===cr?Array:Int32Array,Bv=typeof Float64Array===cr?Array:Float64Array,Fv={float:Bv,int:zv,ordinal:Array,number:Array,time:Bv},ih;function wr(e){return e>65535?sT:lT}function uT(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Vv(e,t,n,i,r){var o=Fv[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];e[t]=l}}else e[t]=new o(i)}var rh=(function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return e.prototype.initData=function(t,n,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=ih[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],Iv(r),this._dimensions=Z(n,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,n){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===n)return o}else o=r.length;return r[o]={type:n},i.set(t,o),this._chunks[o]=new Fv[n||"float"](this._rawCount),this._rawExtent[o]=Se(),o},e.prototype.collectOrdinalMeta=function(t,n){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=Se());for(var l=o[t],u=a;u<s;u++){var c=i[u]=n.parseAndCollect(i[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}r.ordinalMeta=n,r.ordinalOffset=s,r.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var n=this._dimensions[t],i=n.ordinalMeta;return i},e.prototype.getDimensionProperty=function(t){var n=this._dimensions[t];return n&&n.property},e.prototype.appendData=function(t){var n=this._provider,i=this.count();n.appendData(t);var r=n.count();return n.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},e.prototype.appendValues=function(t,n){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,n||0),u=0;u<o;u++){var c=r[u];Vv(i,u,c.type,l,!0)}for(var h=[],p=s;p<l;p++)for(var f=p-s,d=0;d<o;d++){var c=r[d],g=ih.arrayRows.call(this,t[f]||h,c.property,f,d);i[d][p]=g;var v=a[d];g<v[0]&&(v[0]=g),g>v[1]&&(v[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,n,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Z(a,function(m){return m.property}),c=0;c<s;c++){var h=a[c];l[c]||(l[c]=Se()),Vv(o,c,h.type,n,i)}if(r.fillStorage)r.fillStorage(t,n,o,l);else for(var p=[],f=t;f<n;f++){p=r.getItem(f,p);for(var d=0;d<s;d++){var g=o[d],v=this._dimValueGetter(p,u[d],f,d);g[f]=v;var y=l[d];v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(n)]:NaN},e.prototype.getValues=function(t,n){var i=[],r=[];if(n==null){n=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;for(var o=0,a=r.length;o<a;o++)i.push(this.get(r[o],n));return i},e.prototype.getByRawIndex=function(t,n){if(!(n>=0&&n<this._rawCount))return NaN;var i=this._chunks[t];return i?i[n]:NaN},e.prototype.getSum=function(t){var n=this._chunks[t],i=0;if(n)for(var r=0,o=this.count();r<o;r++){var a=this.get(t,r);isNaN(a)||(i+=a)}return i},e.prototype.getMedian=function(t){var n=[];this.each([t],function(r){isNaN(r)||n.push(r)}),sc(n);var i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,i=n[t];if(i!=null&&i<this._count&&i===t)return t;for(var r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(n[a]<t)r=a+1;else if(n[a]>t)o=a-1;else return a}return-1},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var i=n.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=n[o]}else t=new i(n.buffer,0,r)}else{var i=wr(this._rawCount);t=new i(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,n){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=wr(i._rawCount),a=new o(r),s=[],l=t.length,u=0,c=t[0],h=i._chunks,p=0;p<r;p++){var f=void 0,d=i.getRawIndex(p);if(l===0)f=n(p);else if(l===1){var g=h[c][d];f=n(g,p)}else{for(var v=0;v<l;v++)s[v]=h[t[v]][d];s[v]=p,f=n.apply(null,s)}f&&(a[u++]=d)}return u<r&&(i._indices=a),i._count=u,i._extent=[],i._updateGetRawIdx(),i},e.prototype.selectRange=function(t){var n=this.clone(),i=n._count;if(!i)return this;var r=St(t),o=r.length;if(!o)return this;var a=n.count(),s=wr(n._rawCount),l=new s(a),u=0,c=r[0],h=t[c][0],p=t[c][1],f=n._chunks,d=!1;if(!n._indices){var g=0;if(o===1){for(var v=f[r[0]],y=0;y<i;y++){var m=v[y];(m>=h&&m<=p||isNaN(m))&&(l[u++]=g),g++}d=!0}else if(o===2){for(var v=f[r[0]],_=f[r[1]],x=t[r[1]][0],b=t[r[1]][1],y=0;y<i;y++){var m=v[y],w=_[y];(m>=h&&m<=p||isNaN(m))&&(w>=x&&w<=b||isNaN(w))&&(l[u++]=g),g++}d=!0}}if(!d)if(o===1)for(var y=0;y<a;y++){var S=n.getRawIndex(y),m=f[r[0]][S];(m>=h&&m<=p||isNaN(m))&&(l[u++]=S)}else for(var y=0;y<a;y++){for(var M=!0,S=n.getRawIndex(y),T=0;T<o;T++){var k=r[T],m=f[k][S];(m<t[k][0]||m>t[k][1])&&(M=!1)}M&&(l[u++]=n.getRawIndex(y))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.map=function(t,n){var i=this.clone(t);return this._updateDims(i,t,n),i},e.prototype.modify=function(t,n){this._updateDims(this,t,n)},e.prototype._updateDims=function(t,n,i){for(var r=t._chunks,o=[],a=n.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<n.length;c++)u[n[c]]=Se();for(var h=0;h<s;h++){for(var p=t.getRawIndex(h),f=0;f<a;f++)l[f]=r[n[f]][p];l[a]=h;var d=i&&i.apply(null,l);if(d!=null){typeof d!="object"&&(o[0]=d,d=o);for(var c=0;c<d.length;c++){var g=n[c],v=d[c],y=u[g],m=r[g];m&&(m[p]=v),v<y[0]&&(y[0]=v),v>y[1]&&(y[1]=v)}}}},e.prototype.lttbDownSample=function(t,n){var i=this.clone([t],!0),r=i._chunks,o=r[t],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,h,p,f=new(wr(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));f[s++]=u;for(var d=1;d<a-1;d+=l){for(var g=Math.min(d+l,a-1),v=Math.min(d+l*2,a),y=(v+g)/2,m=0,_=g;_<v;_++){var x=this.getRawIndex(_),b=o[x];isNaN(b)||(m+=b)}m/=v-g;var w=d,S=Math.min(d+l,a),M=d-1,T=o[u];c=-1,p=w;for(var k=-1,I=0,_=w;_<S;_++){var x=this.getRawIndex(_),b=o[x];if(isNaN(b)){I++,k<0&&(k=x);continue}h=Math.abs((M-y)*(b-T)-(M-_)*(m-T)),h>c&&(c=h,p=x)}I>0&&I<S-w&&(f[s++]=Math.min(k,p),p=Math.max(k,p)),f[s++]=p,u=p}return f[s++]=this.getRawIndex(a-1),i._count=s,i._indices=f,i.getRawIndex=this._getRawIdx,i},e.prototype.minmaxDownSample=function(t,n){for(var i=this.clone([t],!0),r=i._chunks,o=Math.floor(1/n),a=r[t],s=this.count(),l=new(wr(this._rawCount))(Math.ceil(s/o)*2),u=0,c=0;c<s;c+=o){var h=c,p=a[this.getRawIndex(h)],f=c,d=a[this.getRawIndex(f)],g=o;c+o>s&&(g=s-c);for(var v=0;v<g;v++){var y=this.getRawIndex(c+v),m=a[y];m<p&&(p=m,h=c+v),m>d&&(d=m,f=c+v)}var _=this.getRawIndex(h),x=this.getRawIndex(f);h<f?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},e.prototype.downSample=function(t,n,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[t],c=this.count(),h=o._rawExtent[t]=Se(),p=new(wr(this._rawCount))(Math.ceil(c/l)),f=0,d=0;d<c;d+=l){l>c-d&&(l=c-d,s.length=l);for(var g=0;g<l;g++){var v=this.getRawIndex(d+g);s[g]=u[v]}var y=i(s),m=this.getRawIndex(Math.min(d+r(s,y)||0,c-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),p[f++]=m}return o._count=f,o._indices=p,o._updateGetRawIdx(),o},e.prototype.each=function(t,n){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:n(o);break;case 1:n(r[t[0]][s],o);break;case 2:n(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,u=[];l<i;l++)u[l]=r[t[l]][s];u[l]=o,n.apply(null,u)}}},e.prototype.getDataExtent=function(t,n){var i=this._chunks[t],r=Se();if(!i)return r;var o=this.count(),a=!this._indices&&!n;if(a)return this._rawExtent[t].slice();var s=this._extent,l=s[t]||(s[t]={}),u=Nv(n),c=u.key,h=l[c];if(h)return h.slice();for(var p=r[0],f=r[1],d=0;d<o;d++){var g=this.getRawIndex(d),v=i[g];(!n||Ev(u,v))&&(v<p&&(p=v),v>f&&(f=v))}return l[c]=[p,f]},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][n]);return i},e.prototype.clone=function(t,n){var i=new e,r=this._chunks,o=t&&In(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<r.length;a++)i._chunks[a]=o[a]?uT(r[a]):r[a];else i._chunks=r;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=rt(this._extent),t._rawExtent=rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,n=void 0;if(t===Array){var i=this._indices.length;n=new t(i);for(var r=0;r<i;r++)n[r]=this._indices[r]}else n=new t(this._indices);return n}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=(function(){function t(n,i,r,o){return br(n[o],this._dimensions[o])}ih={arrayRows:t,objectRows:function(n,i,r,o){return br(n[i],this._dimensions[o])},keyedColumns:t,original:function(n,i,r,o){var a=n&&(n.value==null?n:n.value);return br(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,i,r,o){return n[o]}}})(),e})(),cT=ht(),hT={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Gv=(function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Wv(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Y(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var n=this.source.dimensionsDefine;if(n)return n[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,n=Iv(this.source),i=!Uv(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,c=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===a)l=n?h.name:null,u=h.type,c=h.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=n?p.name:null,u=p.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!h||!h.isCalculationCoord)&&(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=hT[u]||"f",c&&(r+=c.uid),r+="$"}var f=this.source,d=[f.seriesLayoutBy,f.startIndex,r].join("$$");return{dimensions:o,hash:d}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],n=0,i=0;n<this._fullDimCount;n++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(n);a&&(r=a.name)}t.push(r)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e})();function Hv(e){return e instanceof Gv}function oh(e){for(var t=$(),n=0;n<(e||[]).length;n++){var i=e[n],r=j(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,n)}return t}function Wv(e){var t=cT(e);return t.dimNameMap||(t.dimNameMap=oh(e.dimensionsDefine))}function Uv(e){return e>30}var Lo=j,zn=Z,pT=typeof Int32Array>"u"?Array:Int32Array,fT="e\0\0",Xv=-1,dT=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],gT=["_approximateExtent"],Yv,ks,Po,Oo,ah,Ro,sh,No=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,r=!1;Hv(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<i.length;c++){var h=i[c],p=q(h)?new Is({name:h}):h instanceof Is?h:new Is(h),f=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=f,p.coordDimIndex=0);var d=p.otherDims=p.otherDims||{};a.push(f),o[f]=p,u[f]!=null&&(l=!0),p.createInvertedIndices&&(s[f]=[]),r&&(p.storeDimIndex=c),d.itemName===0&&(this._nameDimIdx=p.storeDimIndex),d.itemId===0&&(this._idDimIdx=p.storeDimIndex)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=$();C(a,function(v){g.set(o[v].storeDimIndex,v)})}}return e.prototype.getDimension=function(t){var n=this._recognizeDimIndex(t);if(n==null)return t;if(n=t,!this._dimOmitted)return this.dimensions[n];var i=this._dimIdxToName.get(n);if(i!=null)return i;var r=this._schema.getSourceDimension(n);if(r)return r.name},e.prototype.getDimensionIndex=function(t){var n=this._recognizeDimIndex(t);if(n!=null)return n;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(yt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var n=this.getDimensionIndex(t);return n},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var n=this._dimInfos;this._getDimInfo=t?function(i){return n.hasOwnProperty(i)?n[i]:void 0}:function(i){return n[i]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,n){var i=this._dimSummary;if(n==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[n]:null},e.prototype.mapDimensionsAll=function(t){var n=this._dimSummary,i=n.encode[t];return(i||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,n,i){var r=this,o;if(t instanceof rh&&(o=t),!o){var a=this.dimensions,s=Qc(t)||ne(t)?new Dv(t,a.length):t;o=new rh;var l=zn(a,function(u){return{type:r._dimInfos[u].type,property:u}});o.initData(s,l,i)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=iT(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var n=this._store.appendData(t);this._doInit(n[0],n[1])},e.prototype.appendValues=function(t,n){var i=this._store.appendValues(t,n&&n.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=n[l],a&&sh(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,n=this.dimensions,i=0;i<n.length;i++){var r=this._dimInfos[n[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Rn&&!t.fillStorage},e.prototype._doInit=function(t,n){if(!(t>=n)){var i=this._store,r=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=r.getSource().sourceFormat,l=s===pe;if(l&&!r.pure)for(var u=[],c=t;c<n;c++){var h=r.getItem(c,u);if(!this.hasItemOption&&Uw(h)&&(this.hasItemOption=!0),h){var p=h.name;o[c]==null&&p!=null&&(o[c]=rn(p,null));var f=h.id;a[c]==null&&f!=null&&(a[c]=rn(f,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<n;c++)sh(this,c);Yv(this)}},e.prototype.getApproximateExtent=function(t,n){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),n)},e.prototype.setApproximateExtent=function(t,n){n=this.getDimension(n),this._approximateExtent[n]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,n){Lo(t)?N(this._calculationInfo,t):this._calculationInfo[t]=n},e.prototype.getName=function(t){var n=this.getRawIndex(t),i=this._nameList[n];return i==null&&this._nameDimIdx!=null&&(i=Po(this,this._nameDimIdx,n)),i==null&&(i=""),i},e.prototype._getCategory=function(t,n){var i=this._store.get(t,n),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},e.prototype.getId=function(t){return ks(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,n){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,n)},e.prototype.getByRawIndex=function(t,n){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,n)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,n){var i=this,r=this._store;return B(t)?r.getValues(zn(t,function(o){return i._getStoreDimIndex(o)}),n):r.getValues(t)},e.prototype.hasValue=function(t){for(var n=this._dimSummary.dataDimIndicesOnCoord,i=0,r=n.length;i<r;i++)if(isNaN(this._store.get(n[i],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var n=0,i=this._store.count();n<i;n++)if(this.getName(n)===t)return n;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,n){var i=t&&this._invertedIndicesMap[t],r=i&&i[n];return r==null||isNaN(r)?Xv:r},e.prototype.each=function(t,n,i){tt(t)&&(i=n,n=t,t=[]);var r=i||this,o=zn(Oo(t),this._getStoreDimIndex,this);this._store.each(o,r?_t(n,r):n)},e.prototype.filterSelf=function(t,n,i){tt(t)&&(i=n,n=t,t=[]);var r=i||this,o=zn(Oo(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?_t(n,r):n),this},e.prototype.selectRange=function(t){var n=this,i={},r=St(t);return C(r,function(o){var a=n._getStoreDimIndex(o);i[a]=t[o]}),this._store=this._store.selectRange(i),this},e.prototype.mapArray=function(t,n,i){tt(t)&&(i=n,n=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(n&&n.apply(this,arguments))},i),r},e.prototype.map=function(t,n,i,r){var o=i||r||this,a=zn(Oo(t),this._getStoreDimIndex,this),s=Ro(this);return s._store=this._store.map(a,o?_t(n,o):n),s},e.prototype.modify=function(t,n,i,r){var o=i||r||this,a=zn(Oo(t),this._getStoreDimIndex,this);this._store.modify(a,o?_t(n,o):n)},e.prototype.downSample=function(t,n,i,r){var o=Ro(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),n,i,r),o},e.prototype.minmaxDownSample=function(t,n){var i=Ro(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),n),i},e.prototype.lttbDownSample=function(t,n){var i=Ro(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),n),i},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var n=this.hostModel,i=this.getRawDataItem(t);return new Tt(i,n,n&&n.ecModel)},e.prototype.diff=function(t){var n=this;return new XM(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ks(t,i)},function(i){return ks(n,i)})},e.prototype.getVisual=function(t){var n=this._visual;return n&&n[t]},e.prototype.setVisual=function(t,n){this._visual=this._visual||{},Lo(t)?N(this._visual,t):this._visual[t]=n},e.prototype.getItemVisual=function(t,n){var i=this._itemVisuals[t],r=i&&i[n];return r??this.getVisual(n)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,n){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[n];return o==null&&(o=this.getVisual(n),B(o)?o=o.slice():Lo(o)&&(o=N({},o)),r[n]=o),o},e.prototype.setItemVisual=function(t,n,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,Lo(n)?N(r,n):r[n]=i},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){Lo(t)?N(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,i){this._itemLayouts[t]=i?N(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var i=this.hostModel&&this.hostModel.seriesIndex;fS(i,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){C(this._graphicEls,function(i,r){i&&t&&t.call(n,i,r)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zn(this.dimensions,this._getDimInfo,this),this.hostModel)),ah(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var i=this[t];tt(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return n.apply(this,[r].concat(iu(arguments)))})},e.internalField=(function(){Yv=function(t){var n=t._invertedIndicesMap;C(n,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=n[r]=new pT(a.categories.length);for(var l=0;l<i.length;l++)i[l]=Xv;for(var l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Po=function(t,n,i){return rn(t._getCategory(n,i),null)},ks=function(t,n){var i=t._idList[n];return i==null&&t._idDimIdx!=null&&(i=Po(t,t._idDimIdx,n)),i==null&&(i=fT+n),i},Oo=function(t){return B(t)||(t=t!=null?[t]:[]),t},Ro=function(t){var n=new e(t._schema?t._schema:zn(t.dimensions,t._getDimInfo,t),t.hostModel);return ah(n,t),n},ah=function(t,n){C(dT.concat(n.__wrappedMethods||[]),function(i){n.hasOwnProperty(i)&&(t[i]=n[i])}),t.__wrappedMethods=n.__wrappedMethods,C(gT,function(i){t[i]=rt(n[i])}),t._calculationInfo=N({},n._calculationInfo)},sh=function(t,n){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[n],l=r[n];if(s==null&&o!=null&&(i[n]=s=Po(t,o,n)),l==null&&a!=null&&(r[n]=l=Po(t,a,n)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),r[n]=l}}})(),e})();function Zv(e,t){Qc(e)||(e=wv(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=$(),o=[],a=vT(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Uv(a),l=i===e.dimensionsDefine,u=l?Wv(e):oh(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var h=$(c),p=new zv(a),f=0;f<p.length;f++)p[f]=-1;function d(T){var k=p[T];if(k<0){var I=i[T],A=j(I)?I:{name:I},D=new Is,L=A.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),A.type!=null&&(D.type=A.type),A.displayName!=null&&(D.displayName=A.displayName);var P=o.length;return p[T]=P,D.storeDimIndex=T,o.push(D),D}return o[k]}if(!s)for(var f=0;f<a;f++)d(f);h.each(function(T,k){var I=Qt(T).slice();if(I.length===1&&!q(I[0])&&I[0]<0){h.set(k,!1);return}var A=h.set(k,[]);C(I,function(D,L){var P=q(D)?u.get(D):D;P!=null&&P<a&&(A[L]=P,v(d(P),k,L))})});var g=0;C(n,function(T){var k,I,A,D;if(q(T))k=T,D={};else{D=T,k=D.name;var L=D.ordinalMeta;D.ordinalMeta=null,D=N({},D),D.ordinalMeta=L,I=D.dimsDef,A=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var P=h.get(k);if(P!==!1){if(P=Qt(P),!P.length)for(var R=0;R<(I&&I.length||1);R++){for(;g<a&&d(g).coordDim!=null;)g++;g<a&&P.push(g++)}C(P,function(z,O){var E=d(z);if(l&&D.type!=null&&(E.type=D.type),v(vt(E,D),k,O),E.name==null&&I){var G=I[O];!j(G)&&(G={name:G}),E.name=E.displayName=G.name,E.defaultTooltip=G.defaultTooltip}A&&vt(E.otherDims,A)})}});function v(T,k,I){vg.get(k)!=null?T.otherDims[k]=I:(T.coordDim=k,T.coordDimIndex=I,r.set(k,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function b(T){T.name==null&&(T.name=T.coordDim)}if(s)C(o,function(T){b(T)}),o.sort(function(T,k){return T.storeDimIndex-k.storeDimIndex});else for(var w=0;w<a;w++){var S=d(w),M=S.coordDim;M==null&&(S.coordDim=yT(x,r,_),S.coordDimIndex=0,(!y||m<=0)&&(S.isExtraCoord=!0),m--),b(S),S.type==null&&(xv(e,w)===Vt.Must||S.isExtraCoord&&(S.otherDims.itemName!=null||S.otherDims.seriesName!=null))&&(S.type="ordinal")}return gc(o,function(T){return T.name},function(T,k){k>0&&(T.name=T.name+(k-1))}),new Gv({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function vT(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return C(t,function(o){var a;j(o)&&(a=o.dimsDef)&&(r=Math.max(r,a.length))}),r}function yT(e,t,n){if(n||t.hasKey(e)){for(var i=0;t.hasKey(e+i);)i++;e+=i}return t.set(e,!0),e}var Cs={},lh={},uh=(function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(t,n){this._nonSeriesBoxMasterList=i(Cs),this._normalMasterList=i(lh);function i(r,o){var a=[];return C(r,function(s,l){var u=s.create(t,n);a=a.concat(u||[])}),a}},e.prototype.update=function(t,n){C(this._normalMasterList,function(i){i.update&&i.update(t,n)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(t,n){if(t==="matrix"||t==="calendar"){Cs[t]=n;return}lh[t]=n},e.get=function(t){return lh[t]||Cs[t]},e})();function mT(e){return!!Cs[e]}var _T=1,qv=2;function xT(e){jv.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var jv=$();function Kv(e){var t=e.getShallow("coord",!0),n=_T;if(t==null){var i=jv.get(e.type);i&&i.getCoord2&&(n=qv,t=i.getCoord2(e))}return{coord:t,from:n}}var Sr=0,Ds=1,bT=2;function wT(e,t){var n=e.getShallow("coordinateSystem"),i=e.getShallow("coordinateSystemUsage",!0),r=Sr;if(n){var o=e.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(r=Ds,o||(r=Sr)):i==="box"&&(r=bT,!o&&!mT(n)&&(r=Sr))}return{coordSysType:n,kind:r}}function ST(e){var t=e.targetModel,n=e.coordSysType,i=e.coordSysProvider,r=e.isDefaultDataCoordSys,o=wT(t),a=o.kind,s=o.coordSysType;if(r&&a!==Ds&&(a=Ds,s=n),a===Sr||s!==n)return Sr;var l=i(n,t);return l?(a===Ds?t.coordinateSystem=l:t.boxCoordinateSystem=l,a):Sr}var MT=(function(){function e(t){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=t}return e})();function TT(e){var t=e.get("coordinateSystem"),n=new MT(t),i=IT[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var IT={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",we).models[0],o=e.getReferringComponents("yAxis",we).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),Mr(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),Mr(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",we).models[0];t.coordSysDims=["single"],n.set("single",r),Mr(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",we).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),Mr(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),Mr(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();C(o.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),c=a[l];n.set(c,u),Mr(u)&&(i.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(e,t,n,i){var r=e.getReferringComponents("matrix",we).models[0];t.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");n.set("x",o),n.set("y",a),i.set("x",o),i.set("y",a)}};function Mr(e){return e.get("type")==="category"}function kT(e,t,n){n=n||{};var i=n.byIndex,r=n.stackedCoordDimension,o,a,s;CT(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,h,p,f=!0;function d(x){return x.type!=="ordinal"&&x.type!=="time"}if(C(o,function(x,b){q(x)&&(o[b]=x={name:x}),d(x)||(f=!1)}),C(o,function(x,b){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!c&&d(x)&&(!f||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!r||r===x.coordDim)&&(c=x))}),c&&!i&&!u&&(i=!0),c){h="__\0ecstackresult_"+e.id,p="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var g=c.coordDim,v=c.type,y=0;C(o,function(x){x.coordDim===g&&y++});var m={name:h,coordDim:g,coordDimIndex:y,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},_={name:p,coordDim:p,coordDimIndex:y+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(p,v),_.storeDimIndex=s.ensureCalculationDimension(h,v)),a.appendCalculationDimension(m),a.appendCalculationDimension(_)):(o.push(m),o.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:p,stackResultDimension:h}}function CT(e){return!Hv(e.schema)}function Pi(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function $v(e,t){return Pi(e,t)?e.getCalculationInfo("stackResultDimension"):t}function DT(e,t){var n=e.get("coordinateSystem"),i=uh.get(n),r;return t&&t.coordSysDims&&(r=Z(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=rT(l)}return a})),r||(r=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),r}function AT(e,t,n){var i,r;return n&&C(e,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(i==null&&(i=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(r=!0)}),!r&&i!=null&&(e[i].otherDims.itemName=0),i}function ch(e,t,n){n=n||{};var i=t.getSourceManager(),r,o=!1;r=i.getSource(),o=r.sourceFormat===pe;var a=TT(t),s=DT(t,a),l=n.useEncodeDefaulter,u=tt(l)?l:l?xt(ZM,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},h=Zv(r,c),p=AT(h.dimensions,n.createInvertedIndices,a),f=o?null:i.getSharedDataStore(h),d=kT(t,{schema:h,store:f}),g=new No(h,t);g.setCalculationInfo(d);var v=p!=null&<(r)?function(y,m,_,x){return x===p?_:this.defaultDimValueGetter(y,m,_,x)}:null;return g.hasItemOption=!1,g.initData(o?r:f,null,v),g}function LT(e){if(e.sourceFormat===pe){var t=PT(e.data||[]);return!B(fo(t))}}function PT(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var OT=Math.round(Math.random()*10);function As(e){return[e||"",OT++].join("_")}function RT(e){var t={};e.registerSubTypeDefaulter=function(n,i){var r=Ye(n);t[r.main]=i},e.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ye(n).main;e.hasSubTypes(n)&&t[o]&&(r=t[o](i))}return r}}function NT(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,h=u.noEntryList,p={};for(C(o,function(m){p[m]=!0});h.length;){var f=h.pop(),d=c[f],g=!!p[f];g&&(s.call(l,f,d.originalDeps.slice()),delete p[f]),C(d.successor,g?y:v)}C(p,function(){var m="";throw new Error(m)});function v(m){c[m].entryCount--,c[m].entryCount===0&&h.push(m)}function y(m){p[m]=!0,v(m)}};function n(o){var a={},s=[];return C(o,function(l){var u=i(a,l),c=u.originalDeps=t(l),h=r(c,o);u.entryCount=h.length,u.entryCount===0&&s.push(l),C(h,function(p){st(u.predecessor,p)<0&&u.predecessor.push(p);var f=i(a,p);st(f.successor,p)<0&&f.successor.push(l)})}),{graph:a,noEntryList:s}}function i(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function r(o,a){var s=[];return C(o,function(l){st(a,l)>=0&&s.push(l)}),s}}function Qv(e,t){return pt(pt({},e,!0),t,!0)}var ET=Math.log(2);function hh(e,t,n,i,r,o){var a=i+"-"+r,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/ET);return e[n][l]}for(var u=i|1<<n,c=n+1;i&1<<c;)c++;for(var h=0,p=0,f=0;p<s;p++){var d=1<<p;d&r||(h+=(f%2?-1:1)*e[n][p]*hh(e,t-1,c,u,r|d,o),f++)}return o[a]=h,h}function Jv(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},r=hh(n,8,0,0,0,i);if(r!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*hh(n,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,u,c){var h=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/h,l[1]=(u*o[3]+c*o[4]+o[5])/h}}}var Ls="___zrEVENTSAVED",ph=[];function zT(e,t,n,i,r){return fh(ph,t,i,r,!0)&&fh(e,n,ph[0],ph[1])}function BT(e,t){e&&n(e),t&&n(t);function n(i){var r=i[Ls];r&&(r.clearMarkers&&r.clearMarkers(),delete i[Ls])}}function fh(e,t,n,i,r){if(t.getBoundingClientRect&&nt.domSupported&&!ty(t)){var o=t[Ls]||(t[Ls]={}),a=FT(t,o),s=VT(a,o,r);if(s)return s(e,n,i),!0}return!1}function FT(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return t.clearMarkers=function(){C(n,function(c){c.parentNode&&c.parentNode.removeChild(c)})},n}function VT(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),h=2*u,p=c.left,f=c.top;a.push(p,f),l=l&&o&&p===o[h]&&f===o[h+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?Jv(s,a):Jv(a,s))}function ty(e){return e.nodeName.toUpperCase()==="CANVAS"}var GT=/([&<>"'])/g,HT={"&":"&","<":"<",">":">",'"':""","'":"'"};function ue(e){return e==null?"":(e+"").replace(GT,function(t,n){return HT[n]})}const WT={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:". "}}}},UT={time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}};var Ps="ZH",dh="EN",Tr=dh,Os={},gh={},ey=nt.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Tr).toUpperCase();return e.indexOf(Ps)>-1?Ps:Tr})():Tr;function ny(e,t){e=e.toUpperCase(),gh[e]=new Tt(t),Os[e]=t}function XT(e){if(q(e)){var t=Os[e.toUpperCase()]||{};return e===Ps||e===dh?rt(t):pt(rt(t),rt(Os[Tr]),!1)}else return pt(rt(e),rt(Os[Tr]),!1)}function YT(e){return gh[e]}function ZT(){return gh[Tr]}ny(dh,WT),ny(Ps,UT);var qT=null;function Jt(){return qT}function iy(e,t){var n=Jt(),i=t.breakOption,r=t.breakParsed;return!r&&n&&(r=n.parseAxisBreakOption(i,e)),r}function Rs(e){var t=e.brk;return t?t.breaks:[]}function Ns(e){var t=e.brk;return t?t.hasBreaks():!1}var vh=1e3,yh=vh*60,Eo=yh*60,Te=Eo*24,ry=Te*365,jT={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Es={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},KT="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",zs="{yyyy}-{MM}-{dd}",oy={year:"{yyyy}",month:"{yyyy}-{MM}",day:zs,hour:zs+" "+Es.hour,minute:zs+" "+Es.minute,second:zs+" "+Es.second,millisecond:KT},de=["year","month","day","hour","minute","second","millisecond"],$T=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function QT(e){return!q(e)&&!tt(e)?JT(e):e}function JT(e){e=e||{};var t={},n=!0;return C(de,function(i){n&&(n=e[i]==null)}),C(de,function(i,r){var o=e[i];t[i]={};for(var a=null,s=r;s>=0;s--){var l=de[s],u=j(o)&&!B(o)?o[l]:o,c=void 0;B(u)?(c=u.slice(),a=c[0]||""):q(u)?(a=u,c=[a]):(a==null?a=Es[i]:jT[l].test(a)||(a=t[l][l][0]+" "+a),c=[a],n&&(c[1]="{primary|"+a+"}")),t[i][l]=c}}),t}function Bn(e,t){return e+="","0000".substr(0,t-e.length)+e}function zo(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function tI(e){return e===zo(e)}function eI(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Bs(e,t,n,i){var r=lr(e),o=r[ay(n)](),a=r[_h(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[xh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[bh(n)](),h=(c-1)%12+1,p=r[wh(n)](),f=r[Sh(n)](),d=r[Mh(n)](),g=c>=12?"pm":"am",v=g.toUpperCase(),y=i instanceof Tt?i:YT(i||ey)||ZT(),m=y.getModel("time"),_=m.get("month"),x=m.get("monthAbbr"),b=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,v+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Bn(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,x[a-1]).replace(/{MM}/g,Bn(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Bn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Bn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Bn(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Bn(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,Bn(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Bn(d,3)).replace(/{S}/g,d+"")}function nI(e,t,n,i,r){var o=null;if(q(n))o=n;else if(tt(n)){var a={time:e.time,level:e.time?e.time.level:0},s=Jt();s&&s.makeAxisLabelFormatterParamBreak(a,e.break),o=n(e.value,t,a)}else{var l=e.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];o=u[Math.min(l.level,u.length-1)]||""}else{var c=Ir(e.value,r);o=n[c][c][0]}}return Bs(new Date(e.value),o,r,i)}function Ir(e,t){var n=lr(e),i=n[_h(t)]()+1,r=n[xh(t)](),o=n[bh(t)](),a=n[wh(t)](),s=n[Sh(t)](),l=n[Mh(t)](),u=l===0,c=u&&s===0,h=c&&a===0,p=h&&o===0,f=p&&r===1,d=f&&i===1;return d?"year":f?"month":p?"day":h?"hour":c?"minute":u?"second":"millisecond"}function mh(e,t,n){switch(t){case"year":e[sy(n)](0);case"month":e[ly(n)](1);case"day":e[uy(n)](0);case"hour":e[cy(n)](0);case"minute":e[hy(n)](0);case"second":e[py(n)](0)}return e}function ay(e){return e?"getUTCFullYear":"getFullYear"}function _h(e){return e?"getUTCMonth":"getMonth"}function xh(e){return e?"getUTCDate":"getDate"}function bh(e){return e?"getUTCHours":"getHours"}function wh(e){return e?"getUTCMinutes":"getMinutes"}function Sh(e){return e?"getUTCSeconds":"getSeconds"}function Mh(e){return e?"getUTCMilliseconds":"getMilliseconds"}function iI(e){return e?"setUTCFullYear":"setFullYear"}function sy(e){return e?"setUTCMonth":"setMonth"}function ly(e){return e?"setUTCDate":"setDate"}function uy(e){return e?"setUTCHours":"setHours"}function cy(e){return e?"setUTCMinutes":"setMinutes"}function hy(e){return e?"setUTCSeconds":"setSeconds"}function py(e){return e?"setUTCMilliseconds":"setMilliseconds"}function fy(e){if(!Fw(e))return q(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function dy(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,i){return i.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Fs=ru;function Th(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(c){return c&&Xe(c)?c:"-"}function o(c){return be(c)}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?lr(e):e;if(isNaN(+l)){if(s)return"-"}else return Bs(l,i,n)}if(t==="ordinal")return nu(e)?r(e):yt(e)&&o(e)?e+"":"-";var u=$a(e);return o(u)?fy(u):nu(e)?r(e):typeof e=="boolean"?e+"":"-"}var gy=["a","b","c","d","e","f","g"],Ih=function(e,t){return"{"+e+(t??"")+"}"};function vy(e,t,n){B(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=gy[o];e=e.replace(Ih(a),Ih(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];e=e.replace(Ih(gy[l],s),n?ue(u):u)}return e}function rI(e,t){var n=q(e)?{color:e,extraCssText:t}:e||{},i=n.color,r=n.type;t=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if(o==="html")return r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ue(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ue(i)+";"+(t||"")+'"></span>';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Oi(e,t){return t=t||"transparent",q(e)?e:j(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}var Vs=C,oI=["left","right","top","bottom","width","height"],Gs=[["width","left","right"],["height","top","bottom"]];function kh(e,t,n,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect(),f,d;if(e==="horizontal"){var g=c.width+(p?-p.x+c.x:0);f=o+g,f>i||l.newline?(o=0,f=g,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var v=c.height+(p?-p.y+c.y:0);d=a+v,d>r||l.newline?(o+=s+n,a=0,d=v,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=f+n:a=d+n)})}var Bo=kh;xt(kh,"vertical"),xt(kh,"horizontal");function aI(e,t){return{left:e.getShallow("left",t),top:e.getShallow("top",t),right:e.getShallow("right",t),bottom:e.getShallow("bottom",t),width:e.getShallow("width",t),height:e.getShallow("height",t)}}function sI(e,t){var n=Ch(e,t,{enableLayoutOnlyByCenter:!0}),i=e.getBoxLayoutParams(),r,o;if(n.type===Fo.point)o=n.refPoint,r=Ri(i,{width:t.getWidth(),height:t.getHeight()});else{var a=e.get("center"),s=B(a)?a:[a,a];r=Ri(i,n.refContainer),o=n.boxCoordFrom===qv?n.refPoint:[bt(s[0],r.width)+r.x,bt(s[1],r.height)+r.y]}return{viewRect:r,center:o}}function lI(e,t){var n=sI(e,t),i=n.viewRect,r=n.center,o=e.get("radius");B(o)||(o=[0,o]);var a=bt(i.width,t.getWidth()),s=bt(i.height,t.getHeight()),l=Math.min(a,s),u=bt(o[0],l/2),c=bt(o[1],l/2);return{cx:r[0],cy:r[1],r0:u,r:c,viewRect:i}}function Ri(e,t,n){n=Fs(n||0);var i=t.width,r=t.height,o=bt(e.left,i),a=bt(e.top,r),s=bt(e.right,i),l=bt(e.bottom,r),u=bt(e.width,i),c=bt(e.height,r),h=n[2]+n[0],p=n[1]+n[3],f=e.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(c)&&(c=r-l-h-a),f!=null&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=i*.8:c=r*.8),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-c-h),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h;break}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var d=new Q((t.x||0)+o+n[3],(t.y||0)+a+n[0],u,c);return d.margin=n,d}var Fo={rect:1,point:2};function Ch(e,t,n){var i,r,o,a=e.boxCoordinateSystem,s;if(a){var l=Kv(e),u=l.coord,c=l.from;if(a.dataToLayout){o=Fo.rect,s=c;var h=a.dataToLayout(u);i=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&a.dataToPoint&&(o=Fo.point,s=c,r=a.dataToPoint(u))}return o==null&&(o=Fo.rect),o===Fo.rect&&(i||(i={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),r=[i.x+i.width/2,i.y+i.height/2]),{type:o,refContainer:i,refPoint:r,boxCoordFrom:s}}function Vo(e){var t=e.layoutMode||e.constructor.layoutMode;return j(t)?t:t?{type:t}:null}function Fn(e,t,n){var i=n&&n.ignoreSize;!B(i)&&(i=[i,i]);var r=a(Gs[0],0),o=a(Gs[1],1);l(Gs[0],e,r),l(Gs[1],e,o);function a(u,c){var h={},p=0,f={},d=0,g=2;if(Vs(u,function(m){f[m]=e[m]}),Vs(u,function(m){jt(t,m)&&(h[m]=f[m]=t[m]),s(h,m)&&p++,s(f,m)&&d++}),i[c])return s(t,u[1])?f[u[2]]=null:s(t,u[2])&&(f[u[1]]=null),f;if(d===g||!p)return f;if(p>=g)return h;for(var v=0;v<u.length;v++){var y=u[v];if(!jt(h,y)&&jt(e,y)){h[y]=e[y];break}}return h}function s(u,c){return u[c]!=null&&u[c]!=="auto"}function l(u,c,h){Vs(u,function(p){c[p]=h[p]})}}function Go(e){return uI({},e)}function uI(e,t){return t&&e&&Vs(oI,function(n){jt(t,n)&&(e[n]=t[n])}),e}var cI=ht(),mt=(function(e){F(t,e);function t(n,i,r){var o=e.call(this,n,i,r)||this;return o.uid=As("ec_cpt_model"),o}return t.prototype.init=function(n,i,r){this.mergeDefaultAndTheme(n,r)},t.prototype.mergeDefaultAndTheme=function(n,i){var r=Vo(this),o=r?Go(n):{},a=i.getTheme();pt(n,a.get(this.mainType)),pt(n,this.getDefaultOption()),r&&Fn(n,o,r)},t.prototype.mergeOption=function(n,i){pt(this.option,n,!0);var r=Vo(this);r&&Fn(this.option,n,r)},t.prototype.optionUpdated=function(n,i){},t.prototype.getDefaultOption=function(){var n=this.constructor;if(!Qx(n))return n.defaultOption;var i=cI(this);if(!i.defaultOption){for(var r=[],o=n;o;){var a=o.prototype.defaultOption;a&&r.push(a),o=o.superClass}for(var s={},l=r.length-1;l>=0;l--)s=pt(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(n,i){var r=n+"Index",o=n+"Id";return yo(this.ecModel,n,{index:this.get(r,!0),id:this.get(o,!0)},i)},t.prototype.getBoxLayoutParams=function(){return aI(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(Tt);Vf(mt,Tt),ya(mt),RT(mt),NT(mt,hI);function hI(e){var t=[];return C(mt.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Z(t,function(n){return Ye(n).main}),e!=="dataset"&&st(t,"dataset")<=0&&t.unshift("dataset"),t}var yy=ht();ht();var Dh=(function(){function e(){}return e.prototype.getColorFromPalette=function(t,n,i){var r=Qt(this.get("color",!0)),o=this.get("colorLayer",!0);return fI(this,yy,r,o,t,n,i)},e.prototype.clearColorPalette=function(){dI(this,yy)},e})();function pI(e,t){for(var n=e.length,i=0;i<n;i++)if(e[i].length>t)return e[i];return e[n-1]}function fI(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=a==null||!i?n:pI(i,a);if(c=c||n,!(!c||!c.length)){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}function dI(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var gI=/\{@(.+?)\}/g,Ah=(function(){function e(){}return e.prototype.getDataParams=function(t,n){var i=this.getData(n),r=this.getRawValue(t,n),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,h=this.mainType,p=h==="series",f=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:r,color:u,borderColor:c,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,n,i,r,o,a){n=n||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(a&&(l.value=a.interpolatedValue),r!=null&&B(l.value)&&(l.value=l.value[r]),!o){var u=s.getItemModel(t);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(tt(o))return l.status=n,l.dimensionIndex=r,o(l);if(q(o)){var c=vy(o,l);return c.replace(gI,function(h,p){var f=p.length,d=p;d.charAt(0)==="["&&d.charAt(f-1)==="]"&&(d=+d.slice(1,f-1));var g=xr(s,t,d);if(a&&B(a.interpolatedValue)){var v=s.getDimensionIndex(d);v>=0&&(g=a.interpolatedValue[v])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,n){return xr(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,i){},e})();function my(e){var t,n;return j(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Ho(e){return new vI(e)}var vI=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(a!==l||s!==u)&&(o="reset");function c(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||o==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,d=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!i&&(h||f<d)){var g=this._progress;if(B(g))for(var v=0;v<g.length;v++)this._doProgress(g[v],f,d,l,u);else this._doProgress(g,f,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()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,n,i,r,o){_y.reset(n,i,r,o),this._callingProgress=t,this._callingProgress({start:n,end:i,count:i-n,next:_y.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,i;!t&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),B(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e})(),_y=(function(){var e,t,n,i,r,o={reset:function(l,u,c,h){t=l,e=u,n=c,i=h,r=Math.ceil(i/n),o.next=n>1&&i>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%r*n+Math.ceil(t/r),u=t>=e?null:l<i?l:t;return t++,u}})(),yI=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return br(t,n)},e})();function mI(e,t){var n=new yI,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==on&&ae(a);var s=[],l={},u=e.dimensionsDefine;if(u)C(u,function(g,v){var y=g.name,m={index:v,name:y,displayName:g.displayName};if(s.push(m),y!=null){var _="";jt(l,y)&&ae(_),l[y]=m}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var h=Lv(r,on);t.__isBuiltIn&&(n.getRawDataItem=function(g){return h(i,o,s,g)},n.getRawData=_t(_I,null,e)),n.cloneRawData=_t(xI,null,e);var p=Ov(r,on);n.count=_t(p,null,i,o,s);var f=Rv(r);n.retrieveValue=function(g,v){var y=h(i,o,s,g);return d(y,v)};var d=n.retrieveValueFromItem=function(g,v){if(g!=null){var y=s[v];if(y)return f(g,v,y.name)}};return n.getDimensionInfo=_t(bI,null,s,l),n.cloneAllDimensionInfo=_t(wI,null,s),n}function _I(e){var t=e.sourceFormat;if(!Lh(t)){var n="";ae(n)}return e.data}function xI(e){var t=e.sourceFormat,n=e.data;if(!Lh(t)){var i="";ae(i)}if(t===Ut){for(var r=[],o=0,a=n.length;o<a;o++)r.push(n[o].slice());return r}else if(t===Me){for(var r=[],o=0,a=n.length;o<a;o++)r.push(N({},n[o]));return r}}function bI(e,t,n){if(n!=null){if(yt(n)||!isNaN(n)&&!jt(t,n))return e[n];if(jt(t,n))return t[n]}}function wI(e){return rt(e)}var xy=$();function SI(e){e=rt(e);var t=e.type,n="";t||ae(n);var i=t.split(":");i.length!==2&&ae(n);var r=!1;i[0]==="echarts"&&(t=i[1],r=!0),e.__isBuiltIn=r,xy.set(t,e)}function MI(e,t,n){var i=Qt(e),r=i.length,o="";r||ae(o);for(var a=0,s=r;a<s;a++){var l=i[a];t=TI(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function TI(e,t,n,i){var r="";t.length||ae(r),j(e)||ae(r);var o=e.type,a=xy.get(o);a||ae(r);var s=Z(t,function(u){return mI(u,a)}),l=Qt(a.transform({upstream:s[0],upstreamList:s,config:rt(e.config)}));return Z(l,function(u,c){var h="";j(u)||ae(h),u.data||ae(h);var p=Sv(u.data);Lh(p)||ae(h);var f,d=t[0];if(d&&c===0&&!u.dimensions){var g=d.startIndex;g&&(u.data=d.data.slice(0,g).concat(u.data)),f={seriesLayoutBy:on,sourceHeader:g,dimensions:d.metaRawOption.dimensions}}else f={seriesLayoutBy:on,sourceHeader:0,dimensions:u.dimensions};return Jc(u.data,f,null)})}function Lh(e){return e===Ut||e===Me}var II=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),i=!!n.length,r,o;if(Hs(t)){var a=t,s=void 0,l=void 0,u=void 0;if(i){var c=n[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,o=[c._getVersionSign()]}else s=a.get("data",!0),l=ie(s)?Rn:pe,o=[];var h=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},f=Y(h.seriesLayoutBy,p.seriesLayoutBy)||null,d=Y(h.sourceHeader,p.sourceHeader),g=Y(h.dimensions,p.dimensions),v=f!==p.seriesLayoutBy||!!d!=!!p.sourceHeader||g;r=v?[Jc(s,{seriesLayoutBy:f,sourceHeader:d,dimensions:g},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(n);r=m.sourceList,o=m.upstreamSignList}else{var _=y.get("source",!0);r=[Jc(_,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(r,o)},e.prototype._applyTransform=function(t){var n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(r!=null){var o="";t.length!==1&&by(o)}var a,s=[],l=[];return C(t,function(u){u.prepareSource();var c=u.getSource(r||0),h="";r!=null&&!c&&by(h),s.push(c),l.push(u._getVersionSign())}),i?a=MI(i,s,{datasetIndex:n.componentIndex}):r!=null&&(a=[KM(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n<t.length;n++){var i=t[n];if(i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var n=this._sourceList[t];if(!n){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return n},e.prototype.getSharedDataStore=function(t){var n=t.makeStoreSchema();return this._innerGetDataStore(n.dimensions,t.source,n.hash)},e.prototype._innerGetDataStore=function(t,n,i){var r=0,o=this._storeList,a=o[r];a||(a=o[r]={});var s=a[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Hs(this._sourceHost)&&l?s=l._innerGetDataStore(t,n,i):(s=new rh,s.initData(new Dv(n,t.length),t)),a[i]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Hs(t)){var n=$c(t);return n?[n.getSourceManager()]:[]}else return Z(jM(t),function(i){return i.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,n,i,r;if(Hs(t))n=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),r=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;n=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),r=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:i,dimensions:r}},e})();function Hs(e){return e.mainType==="series"}function by(e){throw new Error(e)}var K={color:{},darkColor:{},size:{}},It=K.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};N(It,{primary:It.neutral80,secondary:It.neutral70,tertiary:It.neutral60,quaternary:It.neutral50,disabled:It.neutral20,border:It.neutral30,borderTint:It.neutral20,borderShade:It.neutral40,background:It.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:It.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:It.neutral70,axisLineTint:It.neutral40,axisTick:It.neutral70,axisTickMinor:It.neutral60,axisLabel:It.neutral70,axisSplitLine:It.neutral15,axisMinorSplitLine:It.neutral05});for(var Ni in It)if(It.hasOwnProperty(Ni)){var wy=It[Ni];Ni==="theme"?K.darkColor.theme=It.theme.slice():Ni==="highlight"?K.darkColor.highlight="rgba(255,231,130,0.4)":Ni.indexOf("accent")===0?K.darkColor[Ni]=Ou(wy,null,function(e){return e*.5},function(e){return Math.min(1,1.3-e)}):K.darkColor[Ni]=Ou(wy,null,function(e){return e*.9},function(e){return 1-Math.pow(e,1.5)})}K.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var kI="line-height:1";function Sy(e){var t=e.lineHeight;return t==null?kI:"line-height:"+ue(t+"")+"px"}function My(e,t){var n=e.color||K.color.tertiary,i=e.fontSize||12,r=e.fontWeight||"400",o=e.color||K.color.secondary,a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ue(i+"")+"px;color:"+ue(n)+";font-weight:"+ue(r+""),valueStyle:"font-size:"+ue(a+"")+"px;color:"+ue(o)+";font-weight:"+ue(s+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var CI=[0,10,20,30],DI=["",`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function Ei(e,t){return t.type=e,t}function Ph(e){return e.type==="section"}function Ty(e){return Ph(e)?AI:LI}function Iy(e){if(Ph(e)){var t=0,n=e.blocks.length,i=n>1||n>0&&!e.noHeader;return C(e.blocks,function(r){var o=Iy(r);o>=t&&(t=o+ +(i&&(!o||Ph(r)&&!r.noHeader)))}),t}return 0}function AI(e,t,n,i){var r=t.noHeader,o=PI(Iy(t)),a=[],s=t.blocks||[];cn(!s||B(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(jt(u,l)){var c=new aT(u[l],null);s.sort(function(g,v){return c.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}C(s,function(g,v){var y=t.valueFormatter,m=Ty(g)(y?N(N({},e),{valueFormatter:y}):e,g,v>0?o.html:0,i);m!=null&&a.push(m)});var h=e.renderMode==="richText"?a.join(o.richText):Oh(i,a.join(""),r?n:o.html);if(r)return h;var p=Th(t.header,"ordinal",e.useUTC),f=My(i,e.renderMode).nameStyle,d=Sy(i);return e.renderMode==="richText"?Cy(e,p,f)+o.richText+h:Oh(i,'<div style="'+f+";"+d+';">'+ue(p)+"</div>"+h,n)}function LI(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(x){return x=B(x)?x:[x],Z(x,function(b,w){return Th(b,B(f)?f[w]:f,u)})};if(!(o&&a)){var h=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||K.color.secondary,r),p=o?"":Th(l,"ordinal",u),f=t.valueType,d=a?[]:c(t.value,t.rawDataIndex),g=!s||!o,v=!s&&o,y=My(i,r),m=y.nameStyle,_=y.valueStyle;return r==="richText"?(s?"":h)+(o?"":Cy(e,p,m))+(a?"":NI(e,d,g,v,_)):Oh(i,(s?"":h)+(o?"":OI(p,!s,m))+(a?"":RI(d,g,v,_)),n)}}function ky(e,t,n,i,r,o){if(e){var a=Ty(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function PI(e){return{html:CI[e],richText:DI[e]}}function Oh(e,t,n){var i='<div style="clear:both"></div>',r="margin: "+n+"px 0 0",o=Sy(e);return'<div style="'+r+";"+o+';">'+t+i+"</div>"}function OI(e,t,n){var i=t?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+ue(e)+"</span>"}function RI(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=B(e)?e:[e],'<span style="'+o+";"+i+'">'+Z(e,function(a){return ue(a)}).join(" ")+"</span>"}function Cy(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function NI(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(B(t)?t.join(" "):t,o)}function EI(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Oi(i)}function Dy(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var Rh=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=cc()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,i){var r=i==="richText"?this._generateStyleName():null,o=rI({color:n,type:t,renderMode:i,markerId:r});return q(o)?o:(this.richTextStyles[r]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,n){var i={};B(n)?C(n,function(o){return N(i,o)}):N(i,n);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},e})();function zI(e){var t=e.series,n=e.dataIndex,i=e.multipleSeries,r=t.getData(),o=r.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(n),l=B(s),u=EI(t,n),c,h,p,f;if(a>1||l&&!a){var d=BI(s,t,n,o,u);c=d.inlineValues,h=d.inlineValueTypes,p=d.blocks,f=d.inlineValues[0]}else if(a){var g=r.getDimensionInfo(o[0]);f=c=xr(r,n,o[0]),h=g.type}else f=c=l?s[0]:s;var v=hc(t),y=v&&t.name||"",m=r.getName(n),_=i?y:m;return Ei("section",{header:y,noHeader:i||!v,sortParam:f,blocks:[Ei("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Xe(_),value:c,valueType:h,rawDataIndex:r.getRawIndex(n)})].concat(p||[])})}function BI(e,t,n,i,r){var o=t.getData(),a=In(e,function(h,p,f){var d=o.getDimensionInfo(f);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?C(i,function(h){c(xr(o,n,h),h)}):C(e,c);function c(h,p){var f=o.getDimensionInfo(p);!f||f.otherDims.tooltip===!1||(a?u.push(Ei("nameValue",{markerType:"subItem",markerColor:r,name:f.displayName,value:h,valueType:f.type})):(s.push(h),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Vn=ht();function Ws(e,t){return e.getName(t)||e.getId(t)}var FI="__universalTransitionEnabled",ze=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,i,r){this.seriesIndex=this.componentIndex,this.dataTask=Ho({count:GI,reset:HI}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,r);var o=Vn(this).sourceManager=new II(this);o.prepareSource();var a=this.getInitialData(n,r);Ly(a,this),this.dataTask.context.data=a,Vn(this).dataBeforeProcessed=a,Ay(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(n,i){var r=Vo(this),o=r?Go(n):{},a=this.subType;mt.hasClass(a)&&(a+="Series"),pt(n,i.getTheme().get(this.subType)),pt(n,this.getDefaultOption()),Qa(n,"label",["show"]),this.fillDataTextStyle(n.data),r&&Fn(n,o,r)},t.prototype.mergeOption=function(n,i){n=pt(this.option,n,!0),this.fillDataTextStyle(n.data);var r=Vo(this);r&&Fn(this.option,n,r);var o=Vn(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,i);Ly(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Vn(this).dataBeforeProcessed=a,Ay(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(n){if(n&&!ie(n))for(var i=["show"],r=0;r<n.length;r++)n[r]&&n[r].label&&Qa(n[r],"label",i)},t.prototype.getInitialData=function(n,i){},t.prototype.appendData=function(n){var i=this.getRawData();i.appendData(n.data)},t.prototype.getData=function(n){var i=Nh(this);if(i){var r=i.context.data;return n==null||!r.getLinkedData?r:r.getLinkedData(n)}else return Vn(this).data},t.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},t.prototype.setData=function(n){var i=Nh(this);if(i){var r=i.context;r.outputData=n,i!==this.dataTask&&(r.data=n)}Vn(this).data=n},t.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return $(n)},t.prototype.getSourceManager=function(){return Vn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Vn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},t.prototype.indicesOfNearest=function(n,i,r,o){var a=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(n);if(!s||!l)return[];var u=l.dataToCoord(r);o==null&&(o=1/0);for(var c=[],h=1/0,p=-1,f=0,d=a.getDimensionIndex(i),g=a.getStore(),v=0,y=g.count();v<y;v++){var m=g.get(d,v),_=l.dataToCoord(m),x=u-_,b=Math.abs(x);b<=o&&((b<h||b===h&&x>=0&&p<0)&&(h=b,p=x,f=0),x===p&&(c[f++]=v))}return c.length=f,c},t.prototype.formatTooltip=function(n,i,r){return zI({series:this,dataIndex:n,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(nt.node&&!(n&&n.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,i,r){var o=this.ecModel,a=Dh.prototype.getColorFromPalette.call(this,n,i,r);return a||(a=o.getColorFromPalette(n,i,r)),a},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,i){this._innerSelect(this.getData(i),n)},t.prototype.unselect=function(n,i){var r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=Ws(a,l);r[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(n,i){for(var r=[],o=0;o<n.length;o++)r[0]=n[o],this.isSelected(n[o],i)?this.unselect(r,i):this.select(r,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,i=St(n),r=[],o=0;o<i.length;o++){var a=n[i[o]];a>=0&&r.push(a)}return r},t.prototype.isSelected=function(n,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[Ws(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[FI])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){j(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var h=i[c],p=Ws(n,h);u[p]=!0,this._selectedDataIndicesMap[p]=n.getRawIndex(h)}}else if(s==="single"||s===!0){var f=i[l-1],p=Ws(n,f);a.selectedMap=(r={},r[p]=!0,r),this._selectedDataIndicesMap=(o={},o[p]=n.getRawIndex(f),o)}}},t.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var i=[];n.hasItemOption&&n.each(function(r){var o=n.getRawDataItem(r);o&&o.selected&&i.push(r)}),i.length>0&&this._innerSelect(n,i)}},t.registerClass=function(n){return mt.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(mt);Oe(ze,Ah),Oe(ze,Dh),Vf(ze,mt);function Ay(e){var t=e.name;hc(e)||(e.name=VI(e)||t)}function VI(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return C(n,function(r){var o=t.getDimensionInfo(r);o.displayName&&i.push(o.displayName)}),i.join(" ")}function GI(e){return e.model.getRawData().count()}function HI(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),WI}function WI(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Ly(e,t){C(Xx(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,xt(UI,t))})}function UI(e,t){var n=Nh(e);return n&&n.setOutputEnd((t||this).count()),t}function Nh(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}var XI=dt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i+o),e.lineTo(n-r,i+o),e.closePath()}}),YI=dt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,i=t.cy,r=t.width/2,o=t.height/2;e.moveTo(n,i-o),e.lineTo(n+r,i),e.lineTo(n,i+o),e.lineTo(n-r,i),e.closePath()}}),ZI=dt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),p=Math.cos(u),f=a*.6,d=a*.7;e.moveTo(n-c,l+s),e.arc(n,l,a,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(n+c-h*f,l+s+p*f,n,i-d,n,i),e.bezierCurveTo(n,i-d,n-c+h*f,l+s+p*f,n-c,l+s),e.closePath()}}),qI=dt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;e.moveTo(r,o),e.lineTo(r+a,o+n),e.lineTo(r,o+n/4*3),e.lineTo(r-a,o+n),e.lineTo(r,o),e.closePath()}}),jI={line:yn,rect:Ct,roundRect:Ct,square:Ct,circle:us,diamond:YI,pin:ZI,arrow:qI,triangle:XI},KI={line:function(e,t,n,i,r){r.x1=e,r.y1=t+i/2,r.x2=e+n,r.y2=t+i/2},rect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i},roundRect:function(e,t,n,i,r){r.x=e,r.y=t,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(e,t,n,i,r){var o=Math.min(n,i);r.x=e,r.y=t,r.width=o,r.height=o},circle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.r=Math.min(n,i)/2},diamond:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i},pin:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},arrow:function(e,t,n,i,r){r.x=e+n/2,r.y=t+i/2,r.width=n,r.height=i},triangle:function(e,t,n,i,r){r.cx=e+n/2,r.cy=t+i/2,r.width=n,r.height=i}},Eh={};C(jI,function(e,t){Eh[t]=new e});var $I=dt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var i=ba(e,t,n),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=n.y+n.height*.4),i},buildPath:function(e,t,n){var i=t.symbolType;if(i!=="none"){var r=Eh[i];r||(i="rect",r=Eh[i]),KI[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(e,r.shape,n)}}});function QI(e,t){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||K.color.neutral00,n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=e:n.fill=e,this.markRedraw()}}function zi(e,t,n,i,r,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=nv(e.slice(8),new Q(t,n,i,r),a?"center":"cover"):e.indexOf("path://")===0?l=Vc(e.slice(7),{},new Q(t,n,i,r),a?"center":"cover"):l=new $I({shape:{symbolType:e,x:t,y:n,width:i,height:r}}),l.__isEmptyBrush=s,l.setColor=QI,o&&l.setColor(o),l}function zh(e){return B(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Us(e,t){if(e!=null)return B(e)||(e=[e,e]),[bt(e[0],t[0])||0,bt(Y(e[1],e[0]),t[1])||0]}var JI=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return t.prototype.getInitialData=function(n){return ch(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(n){var i=new Pt,r=zi("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);i.add(r),r.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=n.itemHeight*.8,u=zi(s,(n.itemWidth-l)/2,(n.itemHeight-l)/2,l,l,n.itemStyle.fill);i.add(u),u.setStyle(n.itemStyle);var c=n.iconRotate==="inherit"?a:n.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([n.itemWidth/2,n.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=K.color.neutral00,u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t})(ze);function Bh(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(i===1){var r=xr(e,t,n[0]);return r!=null?r+"":null}else if(i){for(var o=[],a=0;a<n.length;a++)o.push(xr(e,t,n[a]));return o.join(" ")}}function Py(e,t){var n=e.mapDimensionsAll("defaultedLabel");if(!B(t))return t+"";for(var i=[],r=0;r<n.length;r++){var o=e.getDimensionIndex(n[r]);o>=0&&i.push(t[o])}return i.join(" ")}var Fh=(function(e){F(t,e);function t(n,i,r,o){var a=e.call(this)||this;return a.updateData(n,i,r,o),a}return t.prototype._createSymbol=function(n,i,r,o,a,s){this.removeAll();var l=zi(n,-1,-1,2,2,null,s);l.attr({z2:Y(a,100),culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=tk,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mo(this.childAt(0))},t.prototype.downplay=function(){_o(this.childAt(0))},t.prototype.setZ=function(n,i){var r=this.childAt(0);r.zlevel=n,r.z=i},t.prototype.setDraggable=function(n,i){var r=this.childAt(0);r.draggable=n,r.cursor=!i&&n?"move":r.cursor},t.prototype.updateData=function(n,i,r,o){this.silent=!1;var a=n.getItemVisual(i,"symbol")||"circle",s=n.hostModel,l=t.getSymbolSize(n,i),u=t.getSymbolZ2(n,i),c=a!==this._symbolType,h=o&&o.disableAnimation;if(c){var p=n.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,n,i,l,u,p)}else{var f=this.childAt(0);f.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};h?f.attr(d):Yt(f,d,s,i),Bc(f)}if(this._updateCommon(n,i,l,r,o),c){var f=this.childAt(0);if(!h){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,fe(f,d,s,i)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,i,r,o,a){var s=this.childAt(0),l=n.hostModel,u,c,h,p,f,d,g,v,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,h=o.selectItemStyle,p=o.focus,f=o.blurScope,g=o.labelStatesModels,v=o.hoverScale,y=o.cursorStyle,d=o.emphasisDisabled),!o||n.hasItemOption){var m=o&&o.itemModel?o.itemModel:n.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),c=m.getModel(["blur","itemStyle"]).getItemStyle(),p=_.get("focus"),f=_.get("blurScope"),d=_.get("disabled"),g=Ci(m),v=_.getShallow("scale"),y=m.getShallow("cursor")}var x=n.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var b=Us(n.getItemVisual(i,"symbolOffset"),r);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var w=n.getItemVisual(i,"style"),S=w.fill;if(s instanceof On){var M=s.style;s.useStyle(N({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else s.__isEmptyBrush?s.useStyle(N({},w)):s.useStyle(w),s.style.decal=null,s.setColor(S,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var T=n.getItemVisual(i,"liftZ"),k=this._z2;T!=null?k==null&&(this._z2=s.z2,s.z2+=T):k!=null&&(s.z2=k,this._z2=null);var I=a&&a.useNameLabel;vr(s,g,{labelFetcher:l,labelDataIndex:i,defaultText:A,inheritColor:S,defaultOpacity:w.opacity});function A(P){return I?n.getName(P):Bh(n,P)}this._sizeX=r[0]/2,this._sizeY=r[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=c;var L=v==null||v===!0?Math.max(1.1,3/this._sizeY):isFinite(v)&&v>0?+v:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),pr(this,p,f,d)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,i,r){var o=this.childAt(0),a=ut(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&ys(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();ys(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:n,removeOpt:s})},t.getSymbolSize=function(n,i){return zh(n.getItemVisual(i,"symbolSize"))},t.getSymbolZ2=function(n,i){return n.getItemVisual(i,"z2")},t})(Pt);function tk(e,t){this.parent.drift(e,t)}function Xs(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i&&i.isIgnore&&i.isIgnore(n))&&!(i&&i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Oy(e){return e!=null&&!j(e)&&(e={isIgnore:e}),e||{}}function Ry(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Ci(t),cursorStyle:t.get("cursor")}}function Ny(e,t,n,i,r,o,a){var s=new e(t,n,i,r);return s.setPosition(o),t.setItemGraphicEl(n,s),a.add(s),s}var ek=(function(){function e(t){this.group=new Pt,this._SymbolCtor=t||Fh}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Oy(n);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=this._seriesScope=Ry(t),u={disableAnimation:s},c=n.getSymbolPoint||function(h){return t.getItemLayout(h)};o||i.removeAll(),t.diff(o).add(function(h){var p=c(h);Xs(t,p,h,n)&&Ny(a,t,h,l,u,p,i)}).update(function(h,p){var f=o.getItemGraphicEl(p),d=c(h);if(!Xs(t,d,h,n)){i.remove(f);return}var g=t.getItemVisual(h,"symbol")||"circle",v=f&&f.getSymbolType&&f.getSymbolType();if(!f||v&&v!==g)i.remove(f),f=new a(t,h,l,u),f.setPosition(d);else{f.updateData(t,h,l,u);var y={x:d[0],y:d[1]};s?f.attr(y):Yt(f,y,r)}i.add(f),t.setItemGraphicEl(h,f)}).remove(function(h){var p=o.getItemGraphicEl(h);p&&p.fadeOut(function(){i.remove(p)},r)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(t){var n=this._data;if(n)for(var i=this,r=n.getStore(),o=0,a=r.count();o<a;o++){var s=n.getItemGraphicEl(o),l=i._getSymbolPoint(o);Xs(n,l,o,t)?(s=s||Ny(i._SymbolCtor,n,o,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),n.setItemGraphicEl(o,null))}},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ry(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,i,r){this._progressiveEls=[],r=Oy(r);function o(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=ms)}for(var a=t.start;a<t.end;a++){var s=n.getItemLayout(a);if(Xs(n,s,a,r)){var l=new this._SymbolCtor(n,a,this._seriesScope);l.traverse(o),l.setPosition(s),this.group.add(l),n.setItemGraphicEl(a,l),this._progressiveEls.push(l)}}},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var n=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){n.remove(r)},i.hostModel)}):n.removeAll()},e})();function Ey(e,t,n){var i=e.getBaseAxis(),r=e.getOtherAxis(i),o=nk(r,n),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),c=s==="x"||s==="radius"?1:0,h=Z(e.dimensions,function(d){return t.mapDimension(d)}),p=!1,f=t.getCalculationInfo("stackResultDimension");return Pi(t,h[0])&&(p=!0,h[0]=f),Pi(t,h[1])&&(p=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nk(e,t){var n=0,i=e.scale.getExtent();return t==="start"?n=i[0]:t==="end"?n=i[1]:yt(t)&&!isNaN(t)?n=t:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function zy(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function Ie(e,t){return!isFinite(e)||!isFinite(t)}var ik=typeof Float32Array!==cr?Float32Array:void 0,rk=typeof Float64Array!==cr?Float64Array:void 0;function mn(e){return Vh({ctor:ik},e).arr}function Vh(e,t){var n=e.arr,i=e.ctor;if(t>Jd&&(t=Jd),!n||e.typed&&n.length<t){var r=void 0;if(i)try{r=new i(t),e.typed=!0,n&&r.set(n)}catch{}if(!r&&(r=[],e.typed=!1,n))for(var o=0,a=n.length;o<a;o++)r[o]=n[o];e.arr=r}return e}function ok(e,t){var n=[];return t.diff(e).add(function(i){n.push({cmd:"+",idx:i})}).update(function(i,r){n.push({cmd:"=",idx:r,idx1:i})}).remove(function(i){n.push({cmd:"-",idx:i})}).execute(),n}function ak(e,t,n,i,r,o,a,s){for(var l=ok(e,t),u=[],c=[],h=[],p=[],f=[],d=[],g=[],v=Ey(r,t,a),y=e.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],b=!0,w=void 0,S=void 0;switch(x.cmd){case"=":w=x.idx*2,S=x.idx1*2;var M=y[w],T=y[w+1],k=m[S],I=m[S+1];(isNaN(M)||isNaN(T))&&(M=k,T=I),u.push(M,T),c.push(k,I),h.push(n[w],n[w+1]),p.push(i[S],i[S+1]),g.push(t.getRawIndex(x.idx1));break;case"+":var A=x.idx,D=v.dataDimsForPoint,L=r.dataToPoint([t.get(D[0],A),t.get(D[1],A)]);S=A*2,u.push(L[0],L[1]),c.push(m[S],m[S+1]);var P=zy(v,r,t,A);h.push(P[0],P[1]),p.push(i[S],i[S+1]),g.push(t.getRawIndex(A));break;case"-":b=!1}b&&(f.push(x),d.push(d.length))}d.sort(function(et,ot){return g[et]-g[ot]});for(var R=u.length,z=mn(R),O=mn(R),E=mn(R),G=mn(R),H=[],_=0;_<d.length;_++){var U=d[_],X=_*2,W=U*2;z[X]=u[W],z[X+1]=u[W+1],O[X]=c[W],O[X+1]=c[W+1],E[X]=h[W],E[X+1]=h[W+1],G[X]=p[W],G[X+1]=p[W+1],H[_]=f[U]}return{current:z,next:O,stackedOnCurrent:E,stackedOnNext:G,status:H}}var Gn=Math.min,Hn=Math.max;function Gh(e,t,n,i,r,o,a,s,l){for(var u,c,h,p,f,d,g=n,v=0;v<i;v++){var y=t[g*2],m=t[g*2+1];if(g>=r||g<0)break;if(Ie(y,m)){if(l){g+=o;continue}break}if(g===n)e[o>0?"moveTo":"lineTo"](y,m),h=y,p=m;else{var _=y-u,x=m-c;if(_*_+x*x<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[b*2],S=t[b*2+1];w===y&&S===m&&v<i;)v++,b+=o,g+=o,w=t[b*2],S=t[b*2+1],y=t[g*2],m=t[g*2+1],_=y-u,x=m-c;var M=v+1;if(l)for(;Ie(w,S)&&M<i;)M++,b+=o,w=t[b*2],S=t[b*2+1];var T=.5,k=0,I=0,A=void 0,D=void 0;if(M>=i||Ie(w,S))f=y,d=m;else{k=w-u,I=S-c;var L=y-u,P=w-y,R=m-c,z=S-m,O=void 0,E=void 0;if(s==="x"){O=Math.abs(L),E=Math.abs(P);var G=k>0?1:-1;f=y-G*O*a,d=m,A=y+G*E*a,D=m}else if(s==="y"){O=Math.abs(R),E=Math.abs(z);var H=I>0?1:-1;f=y,d=m-H*O*a,A=y,D=m+H*E*a}else O=Math.sqrt(L*L+R*R),E=Math.sqrt(P*P+z*z),T=E/(E+O),f=y-k*a*(1-T),d=m-I*a*(1-T),A=y+k*a*T,D=m+I*a*T,A=Gn(A,Hn(w,y)),D=Gn(D,Hn(S,m)),A=Hn(A,Gn(w,y)),D=Hn(D,Gn(S,m)),k=A-y,I=D-m,f=y-k*O/E,d=m-I*O/E,f=Gn(f,Hn(u,y)),d=Gn(d,Hn(c,m)),f=Hn(f,Gn(u,y)),d=Hn(d,Gn(c,m)),k=y-f,I=m-d,A=y+k*E/O,D=m+I*E/O}e.bezierCurveTo(h,p,f,d,y,m),h=A,p=D}else e.lineTo(y,m)}u=y,c=m,g+=o}return v}var By=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),sk=(function(e){F(t,e);function t(n){var i=e.call(this,n)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new By},t.prototype.buildPath=function(n,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&Ie(r[a*2-2],r[a*2-1]);a--);for(;o<a&&Ie(r[o*2],r[o*2+1]);o++);}for(;o<a;)o+=Gh(n,r,o,a,a,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(n,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var r=this.path,o=r.data,a=vi.CMD,s,l,u=i==="x",c=[],h=0;h<o.length;){var p=o[h++],f=void 0,d=void 0,g=void 0,v=void 0,y=void 0,m=void 0,_=void 0;switch(p){case a.M:s=o[h++],l=o[h++];break;case a.L:if(f=o[h++],d=o[h++],_=u?(n-s)/(f-s):(n-l)/(d-l),_<=1&&_>=0){var x=u?(d-l)*_+l:(f-s)*_+s;return u?[n,x]:[x,n]}s=f,l=d;break;case a.C:f=o[h++],d=o[h++],g=o[h++],v=o[h++],y=o[h++],m=o[h++];var b=u?ka(s,f,g,y,n,c):ka(l,d,v,m,n,c);if(b>0)for(var w=0;w<b;w++){var S=c[w];if(S<=1&&S>=0){var x=u?Ft(l,d,v,m,S):Ft(s,f,g,y,S);return u?[n,x]:[x,n]}}s=y,l=m;break}}},t})(dt),lk=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(By),uk=(function(e){F(t,e);function t(n){var i=e.call(this,n)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new lk},t.prototype.buildPath=function(n,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Ie(r[s*2-2],r[s*2-1]);s--);for(;a<s&&Ie(r[a*2],r[a*2+1]);a++);}for(;a<s;){var u=Gh(n,r,a,s,s,1,i.smooth,l,i.connectNulls);Gh(n,o,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,n.closePath()}},t})(dt);function Hh(){var e=ht();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!!(i&&i.large),s=n.progressiveRender=!!(i&&i.progressiveRender);return(r!==a||o!==s)&&"reset"}}var Fy=ht(),ck=Hh(),ke=(function(){function e(){this.group=new Pt,this.uid=As("viewChart"),this.renderTask=Ho({plan:hk,reset:pk}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,i,r){},e.prototype.highlight=function(t,n,i,r){var o=t.getData(r&&r.dataType);o&&Gy(o,r,"emphasis")},e.prototype.downplay=function(t,n,i,r){var o=t.getData(r&&r.dataType);o&&Gy(o,r,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,i,r){this.render(t,n,i,r)},e.prototype.updateVisual=function(t,n,i,r){this.render(t,n,i,r)},e.prototype.eachRendered=function(t){ko(this.group,t)},e.markUpdateMethod=function(t,n){Fy(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Vy(e,t,n){e&&Cc(e)&&(t==="emphasis"?mo:_o)(e,n)}function Gy(e,t,n){var i=wi(e,t),r=t&&t.highlightKey!=null?OS(t.highlightKey):null;i!=null?C(Qt(i),function(o){Vy(e.getItemGraphicEl(o),n,r)}):e.eachItemGraphicEl(function(o){Vy(o,n,r)})}au(ke),ya(ke);function hk(e){return ck(e.model)}function pk(e){var t=e.model,n=e.ecModel,i=e.api,r=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=r&&Fy(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,n,i,r),fk[l]}var fk={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function Hy(e,t,n,i,r){var o=e.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||0;a-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var h=new Ct({shape:{x:a,y:s,width:l,height:u}});if(t){var p=e.getBaseAxis(),f=p.isHorizontal(),d=p.inverse;f?(d&&(h.shape.x+=l),h.shape.width=0):(d||(h.shape.y+=u),h.shape.height=0);var g=tt(r)?function(v){r(v,h)}:null;fe(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,g)}return h}function Wy(e,t,n){var i=e.getArea(),r=lt(i.r0,1),o=lt(i.r,1),a=new Nn({shape:{cx:lt(e.cx,1),cy:lt(e.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=i.startAngle:a.shape.r=r,fe(a,{shape:{endAngle:i.endAngle,r:o}},n)}return a}function dk(e,t,n,i,r){if(e){if(e.type==="polar")return Wy(e,t,n);if(e.type==="cartesian2d")return Hy(e,t,n,i,r)}else return null;return null}function Wh(e,t){return e.type===t}var Be=(function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();ya(Be);var gk=0,Uh=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++gk,this._onCollect=t.onCollect}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&Z(i,vk);return new e({categories:r,needCollect:!r,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,i=this._needCollect;if(!q(t)&&!i)return t;if(i&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n),n;var r=this._getOrCreateMap();return n=r.get(t),n==null&&(i?(n=this.categories.length,this.categories[n]=t,r.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},e})();function vk(e){return j(e)&&e.value!=null?e.value:e+""}var Ce=0,Wo=1,yk={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},Uy=St(yk),Ys=2,Xy=3;function Xh(e,t,n){var i;e=e||{};var r=Jt();if(r){var o=r.createBreakScaleMapper(t,n);o.hasBreaks()&&(C(Uy,function(a){o[a]&&(e[a]=_t(o[a],o))}),i=o)}return i==null&&_k(e,n),{brk:i,mapper:e}}function Yy(e,t){C(Uy,function(n){e[n]=t[n]})}function Zy(e,t){e.freeze=Ht}function Uo(e){return e.getExtentUnsafe(Ce,Ys)}function Zs(e,t){return e.getExtentUnsafe(Wo,t)||e.getExtentUnsafe(Ce,t)}function mk(e){var t=Zs(e,Xy);return t[1]-t[0]}function qs(e){var t=e.getExtentUnsafe(Ce,Xy);return t[1]-t[0]}function _k(e,t){var n=e||{},i=[];return n._extents=i,i[Ce]=t?t.slice():Se(),N(n,xk),n}var xk={needTransform:function(){return!1},normalize:function(e){var t=this._extents[Wo]||this._extents[Ce];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[Wo]||this._extents[Ce];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Zs(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[Ce].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){qy(this._extents,Ce,e,t)},setExtent2:function(e,t,n){var i=this._extents;i[e]||(i[e]=i[Ce].slice()),qy(i,e,t,n)},freeze:function(){}};function qy(e,t,n,i){ur(n,i)&&(e[t][0]=n,e[t][1]=i)}function jy(e){return js(e)||kr(e)}function js(e){return e.type==="interval"}function Yh(e){return e.type==="time"}function kr(e){return e.type==="log"}function Fe(e){return e.type==="ordinal"}function bk(e){var t=lc(e),n=bi(10,t),i=fn(e/n);return i?i===2?i=3:i===3?i=5:i*=2:i=1,lt(i*n,-t)}function Bi(e){return dn(e)+2}function Ks(e,t){return po(e)/po(t)}function Zh(e,t,n){var i=n&&n.lookup;if(i){for(var r=0;r<i.from.length;r++)if(e===i.from[r])return i.to[r]}return bi(t,e)}function Ky(e,t,n){var i=e.slice();if(i[0]===i[1]){var r=n&&n.ctnShp;if(i[0]!==0){var o=Lt(i[0]);t[1]||(i[1]+=o/2),i[0]-=o/2}else r&&(i[0]=-1),i[1]=1}return(!gn(i[0])||!gn(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function wk(e,t){return[e[0]!==t[0],e[1]!==t[1]]}function qh(e,t){return e=e||t,fn(ct(e,1))}function $y(e,t,n){var i=Uo(e),r=i[0],o=e.count(),a=Math.max((t||0)+1,1);r!==0&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==i[0]&&l(i[0],!0,!0);for(var s=r;s<=i[1];s+=a)l(s,!1,s===i[0]||s===i[1]);s-a!==i[1]&&l(i[1],!0,!0);function l(u,c,h){n({value:u,offInterval:c},h)}}var Qy=(function(e){F(t,e);function t(n){var i=e.call(this)||this;i.type="ordinal",i.parse=t.parse,Yy(i,t.decoratedMethods);var r=n.ordinalMeta;r||(r=new Uh({})),B(r)&&(r=new Uh({categories:Z(r,function(a){return j(a)?a.value:a})})),i._ordinalMeta=r;var o=Xh(null,null,n.extent||[0,r.categories.length-1]);return i._mapper=o.mapper,Zy(i),i}return t.parse=function(n){return n==null?n=NaN:q(n)?(n=this._ordinalMeta.getOrdinal(n),n==null&&(n=NaN)):n=fn(n),n},t.prototype.getTicks=function(){var n=[];return $y(this,0,function(i){n.push(i)}),n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=n.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Wt(s,i.length);a<l;++a){var u=r[a]=i[a];o[u]=a}for(var c=0;a<s;++a){for(;o[c]!=null;)c++;r[a]=c,o[c]=a}},t.prototype._getTickNumber=function(n){var i=this._ticksByOrdinalNumber;return i&&n>=0&&n<i.length?i[n]:n},t.prototype.getRawOrdinalNumber=function(n){var i=this._ordinalNumbersByTick;return i&&n>=0&&n<i.length?i[n]:n},t.prototype.getLabel=function(n){if(!this.isBlank()){var i=this.getRawOrdinalNumber(n.value),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},t.prototype.count=function(){var n=Uo(this._mapper);return n[1]-n[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(n){return this._mapper.contain(this._getTickNumber(n))&&n>=0&&n<this._ordinalMeta.categories.length},normalize:function(n){return this._mapper.normalize(this._getTickNumber(n))},scale:function(n){return this.getRawOrdinalNumber(fn(this._mapper.scale(n)))},transformIn:function(n,i){return this._mapper.transformIn(this._getTickNumber(n),i)},transformOut:function(n,i){return this.getRawOrdinalNumber(this._mapper.transformOut(n,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(n,i){return this._mapper.getExtentUnsafe(n,i)},setExtent:function(n,i){return this._mapper.setExtent(n,i)},setExtent2:function(n,i,r){return this._mapper.setExtent2(n,i,r)}},t})(Be);Be.registerClass(Qy);function jh(e,t,n,i){for(var r=e.getTicks({expandToNicedExtent:!0}),o=[],a=e.getExtent(),s=1;s<r.length;s++){var l=r[s],u=r[s-1];if(!(u.break||l.break)){for(var c=0,h=[],p=l.value-u.value,f=p/t,d=Bi(f);c<t-1;){var g=lt(u.value+(c+1)*f,d);g>a[0]&&g<a[1]&&h.push(g),c++}var v=Jt();v&&v.pruneTicksByBreak("auto",h,n,function(y){return y},i,a),o.push(h)}}return o}var Cr=(function(e){F(t,e);function t(n){var i=e.call(this)||this;i.type="interval",i.parse=t.parse,n=n||{};var r=iy(i,n),o=Xh(i,r,null);return i.brk=o.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return t.parse=function(n){return n==null||n===""?NaN:Number(n)},t.prototype.getConfig=function(){return rt(this._cfg)},t.prototype.setConfig=function(n){var i=Uo(this);this._cfg=n=rt(n),n.niceExtent==null&&(n.niceExtent=i.slice()),n.intervalPrecision==null&&(n.intervalPrecision=Bi(n.interval))},t.prototype.getTicks=function(n){n=n||{};var i=this._cfg,r=i.interval,o=Uo(this),a=i.niceExtent,s=i.intervalPrecision,l=Jt(),u=this.brk,c=l&&u,h=[];if(!r)return h;if(n.breakTicks==="only_break"&&c)return l.addBreaksToTicks(h,u.breaks,o),h;var p=3e3;o[0]<a[0]&&h.push({value:n.expandToNicedExtent?lt(a[0]-r,s):o[0]});for(var f=function(_,x){return fn((x-_)/r)},d=i.intervalCount,g=a[0],v=0;;v++){if(d==null){if(g>a[1]||!isFinite(g)||!isFinite(a[1]))break}else{if(v>d)break;g=Wt(g,a[1]),v===d&&(g=a[1])}if(h.push({value:g}),g=lt(g+r,s),u){var y=u.calcNiceTickMultiple(g,f);y>=0&&(g=lt(g+y*r,s))}if(h.length>0&&g===h[h.length-1].value)break;if(h.length>p)return[]}var m=h.length?h[h.length-1].value:a[1];return o[1]>m&&h.push({value:n.expandToNicedExtent?lt(m+r,s):o[1]}),c&&l.pruneTicksByBreak(n.pruneByBreak,h,u.breaks,function(_){return _.value},i.interval,o),c&&n.breakTicks!=="none"&&l.addBreaksToTicks(h,u.breaks,o),h},t.prototype.getMinorTicks=function(n){return jh(this,n,Rs(this),this._cfg.interval)},t.prototype.getLabel=function(n,i){if(n==null)return"";var r=i&&i.precision;r==null?r=dn(n.value)||0:r==="auto"&&(r=this._cfg.intervalPrecision);var o=lt(n.value,r,!0);return fy(o)},t.type="interval",t})(Be);Be.registerClass(Cr);var Sk=function(e,t,n,i){for(;n<i;){var r=n+i>>>1;e[r][1]<t?n=r+1:i=r}return n},Jy=(function(e){F(t,e);function t(n){var i=e.call(this)||this;i.type="time",i.parse=t.parse,i._locale=n.locale,i._useUTC=n.useUTC,i._interval=0;var r=iy(i,n),o=Xh(i,r,null);return i.brk=o.brk,i}return t.prototype.getLabel=function(n){return Bs(n.value,oy[eI(zo(this._minLevelUnit))]||oy.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(n,i,r){return nI(n,i,r,this._locale,this._useUTC)},t.prototype.getTicks=function(n){n=n||{};var i=this._interval,r=Uo(this),o=Jt(),a=this.brk,s=o&&a,l=[];if(!i)return l;var u=this._useUTC;if(s&&n.breakTicks==="only_break")return Jt().addBreaksToTicks(l,a.breaks,r),l;l=Ak(this._minLevelUnit,this._approxInterval,u,r,qs(this),a);var c=de.length-1,h=0;return C(l,function(p){p.time&&(c=Math.min(c,st(de,p.time.upperTimeUnit)),h=Math.max(h,p.time.level))}),s&&Jt().pruneTicksByBreak(n.pruneByBreak,l,a.breaks,function(p){return p.value},this._approxInterval,r),s&&n.breakTicks!=="none"&&Jt().addBreaksToTicks(l,a.breaks,r,function(p){for(var f=Math.max(st(de,Ir(p.vmin,u)),st(de,Ir(p.vmax,u))),d=0,g=0;g<de.length;g++)if(!tm(de[g],p.vmin,p.vmax,u)){d=g;break}var v=Math.min(d,c),y=Math.max(v,f);return{level:h,lowerTimeUnit:de[y],upperTimeUnit:de[v]}}),l},t.prototype.getMinorTicks=function(n){return jh(this,n,Rs(this),this._interval)},t.prototype.setTimeInterval=function(n){this._interval=n.interval,this._approxInterval=n.approxInterval,this._minLevelUnit=n.minLevelUnit},t.parse=function(n){return yt(n)?Math.round(n):+lr(n)},t.type="time",t})(Be),$s=[["second",vh],["minute",yh],["hour",Eo],["quarter-day",Eo*6],["half-day",Eo*12],["day",Te*1.2],["half-week",Te*3.5],["week",Te*7],["month",Te*31],["quarter",Te*95],["half-year",ry/2],["year",ry]];function tm(e,t,n,i){return mh(new Date(t),e,i).getTime()===mh(new Date(n),e,i).getTime()}function Mk(e,t){return e/=Te,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function Tk(e){var t=30*Te;return e/=t,e>6?6:e>3?3:e>2?2:1}function Ik(e){return e/=Eo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function em(e,t){return e/=t?yh:vh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function kk(e){return ct(uc(e,!0),1)}function Ck(e,t,n){var i=Math.max(0,st(de,t)-1);return mh(new Date(e),de[i],n).getTime()}function Dk(e,t){var n=new Date(0);n[e](1);var i=n.getTime();n[e](1+t);var r=n.getTime()-i;return function(o,a){return Math.max(0,Math.round((a-o)/r))}}function Ak(e,t,n,i,r,o){var a=3e3,s=$T,l=0;function u(R,z,O,E,G,H,U){for(var X=Dk(G,R),W=z,et=new Date(W);W<O&&W<=i[1]&&(U.push({value:W}),!(l++>a));)if(et[G](et[E]()+R),W=et.getTime(),o){var ot=o.calcNiceTickMultiple(W,X);ot>0&&(et[G](et[E]()+ot*R),W=et.getTime())}U.push({value:W,notAdd:W>i[1]})}function c(R,z,O){var E=[],G=!z.length;if(!tm(zo(R),i[0],i[1],n)){G&&(z=[{value:Ck(i[0],R,n)},{value:i[1]}]);for(var H=0;H<z.length-1;H++){var U=z[H].value,X=z[H+1].value;if(U!==X){var W=void 0,et=void 0,ot=void 0,At=!1;switch(R){case"year":W=Math.max(1,Math.round(t/Te/365)),et=ay(n),ot=iI(n);break;case"half-year":case"quarter":case"month":W=Tk(t),et=_h(n),ot=sy(n);break;case"week":case"half-week":case"day":W=Mk(t),et=xh(n),ot=ly(n),At=!0;break;case"half-day":case"quarter-day":case"hour":W=Ik(t),et=bh(n),ot=uy(n);break;case"minute":W=em(t,!0),et=wh(n),ot=cy(n);break;case"second":W=em(t,!1),et=Sh(n),ot=hy(n);break;case"millisecond":W=kk(t),et=Mh(n),ot=py(n);break}X>=i[0]&&U<=i[1]&&u(W,U,X,et,ot,At,E),R==="year"&&O.length>1&&H===0&&O.unshift({value:O[0].value-W})}}for(var H=0;H<E.length;H++)O.push(E[H])}}for(var h=[],p=[],f=0,d=0,g=0;g<s.length;++g){var v=zo(s[g]);if(tI(s[g])){c(s[g],h[h.length-1]||[],p);var y=s[g+1]?zo(s[g+1]):null;if(v!==y){if(p.length){d=f,p.sort(function(R,z){return R.value-z.value});for(var m=[],_=0;_<p.length;++_){var x=p[_].value;(_===0||p[_-1].value!==x)&&(m.push(p[_]),x>=i[0]&&x<=i[1]&&f++)}var b=r/t;if(f>b*1.5&&d>b/1.5||(h.push(m),f>b||e===s[g]))break}p=[]}}}for(var w=Bt(Z(h,function(z){return Bt(z,function(O){return O.value>=i[0]&&O.value<=i[1]&&!O.notAdd})}),function(z){return z.length>0}),S=w.length-1,M=[],g=0;g<w.length;++g)for(var T=w[g],k=0;k<T.length;++k){var I=Ir(T[k].value,n);M.push({value:T[k].value,time:{level:S-g,upperTimeUnit:I,lowerTimeUnit:I}})}gc(M,uS,null),M.sort(function(R,z){return R.value-z.value});var A=M[0],D=M[M.length-1],L=Ir(i[0],n),P=Ir(i[1],n);return(!A||A.value>i[0])&&M.unshift({value:i[0],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),(!D||D.value<i[1])&&M.push({value:i[1],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),M}var Lk=function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=Te,n[1]+=Te),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Te}e.setExtent(n[0],n[1]);var r=qh(t.splitNumber,10),o=qs(e)/r,a=t.minInterval,s=t.maxInterval;a!=null&&o<a&&(o=a),s!=null&&o>s&&(o=s);var l=$s.length,u=Math.min(Sk($s,o,0,l),l-1),c=$s[u][1],h=$s[Math.max(u-1,0)][0];e.setTimeInterval({approxInterval:o,interval:c,minLevelUnit:h})};Be.registerClass(Jy);var Qs=0,Js=1,Pk=2,nm=(function(e){F(t,e);function t(n){var i=e.call(this)||this;i.type="log",i.parse=Cr.parse,i.base=n.logBase||10;var r=[],o=[],a=i._lookup={from:r,to:o};r[Qs]=r[Js]=o[Qs]=o[Js]=NaN,Yy(i,t.mapperMethods);var s=Jt(),l=n.breakOption,u={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},Pk,u),i.powStub=new Cr({breakParsed:u.original}),i.intervalStub=new Cr({breakParsed:u.transformed}),Zy(i,i.intervalStub),i}return t.prototype.getTicks=function(n){var i=this.base,r=this.powStub,o=Jt(),a=this.intervalStub,s=a.getExtent(),l=r.getExtent(),u={lookup:{from:s,to:l}};return Z(a.getTicks(n||{}),function(c){var h=c.value,p=Zh(h,i,u),f;if(o){var d=o.getTicksBreakOutwardTransform(this,c,Rs(r),this._lookup);d&&(f=d.vBreak,p=d.tickVal)}return{value:p,break:f}},this)},t.prototype.getMinorTicks=function(n){return jh(this,n,Rs(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(n,i){return this.intervalStub.getLabel(n,i)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(n){return this.intervalStub.normalize(Ks(n,this.base))},scale:function(n){return Zh(this.intervalStub.scale(n),this.base,null)},transformIn:function(n,i){return n=Ks(n,this.base),i&&i.depth===Ys?n:this.intervalStub.transformIn(n,i)},transformOut:function(n,i){var r=i?i.depth:null;return im.depth=r,rm.lookup=this._lookup,Zh(r===Ys?n:this.intervalStub.transformOut(n,im),this.base,rm)},contain:function(n){return this.powStub.contain(n)},setExtent:function(n,i){this.setExtent2(Ce,n,i)},setExtent2:function(n,i,r){if(!(!ur(i,r)||i<=0||r<=0)){var o=om,a=om;if(n===Ce){var s=this._lookup;o=s.to,a=s.from}this.powStub.setExtent2(n,o[Qs]=i,o[Js]=r);var l=this.base;this.intervalStub.setExtent2(n,a[Qs]=Ks(i,l),a[Js]=Ks(r,l))}},getFilter:function(){return{g:0}},sanitize:function(n,i){return ur(i[0],i[1])&&be(n)&&n<=0&&(n=i[0]),n},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(n,i){return i===null?this.powStub.getExtentUnsafe(n,null):this.intervalStub.getExtentUnsafe(n,i)}},t})(Be);Be.registerClass(nm);var im={},rm={},om=[],am={value:1,category:1,time:1,log:1},sm=ht();function Ok(e){var t=e.get("type");return(t==null||!jt(am,t)&&!Be.getClass(t))&&(t="value"),t}function Rk(e,t,n){var i=Jt(),r;switch(i&&(r=lm(e,t)),t){case"category":return new Qy({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Se()});case"time":return new Jy({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC"),breakOption:r});case"log":return new nm({logBase:e.get("logBase"),breakOption:r});case"value":return new Cr({breakOption:r});default:return new(Be.getClass(t)||Cr)({})}}function Nk(e,t,n){var i=e.getExtentUnsafe(Ce,null),r=i[0],o=i[1];return ur(r,o)?r===t||o===t?zk:r<t&&o>t?Ek:Kh:Kh}var Ek=1,zk=2,Kh=3;function Bk(e){sm(e).noOnMyZero=!0}function Fk(e){return sm(e).noOnMyZero}function tl(e){var t=e.getLabelModel().get("formatter");if(e.type==="time"){var n=QT(t);return function(r,o){return e.scale.getFormattedLabel(r,o,n)}}else{if(q(t))return function(r){var o=e.scale.getLabel(r),a=t.replace("{value}",o??"");return a};if(tt(t)){if(e.type==="category")return function(r,o){return t(el(e,r),r.value-e.scale.getExtent()[0],null)};var i=Jt();return function(r,o){var a=null;return i&&(a=i.makeAxisLabelFormatterParamBreak(a,r.break)),t(el(e,r),o,a)}}else return function(r){return e.scale.getLabel(r)}}}function el(e,t){var n=e.scale;return Fe(n)?n.getLabel(t):t.value}function $h(e){var t=e.get("interval");return t??"auto"}function Vk(e){return e.type==="category"&&$h(e.getLabelModel())===0}function Gk(e,t){var n={};return C(e.mapDimensionsAll(t),function(i){n[$v(e,i)]=!0}),St(n)}function Dr(e){return e==="middle"||e==="center"}function Xo(e){return e.getShallow("show")}function lm(e,t,n){var i=e.get("breaks",!0);if(i!=null)return!Jt()||!Hk(t)?void 0:i}function Hk(e){return e!=="category"}function um(e,t,n,i,r,o){var a=kr(e),s=a?e.intervalStub:e;if(s.setExtent(i[0],i[1]),a){var l=e.powStub,u={depth:Ys},c=e.transformOut(i[0],u),h=e.transformOut(i[1],u),p=wk(n,i);t[0]&&!p[0]&&(c=r[0]),t[1]&&!p[1]&&(h=r[1]),l.setExtent(c,h)}s.setConfig(o)}function Yo(e,t){return Fe(e)?e.getRawOrdinalNumber(t.value):t.value}function cm(e,t){return Fe(e)&&!!t.get("boundaryGap")}function hm(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function pm(e){for(var t=Se(),n=Se(),i=0;i<e.length;){var r=e[i++],o=e[i++];Ie(r,o)||(dc(t,r),dc(n,o))}return[t,n]}function fm(e,t){var n=pm(e),i=n[0],r=n[1],o=pm(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(r[0]-s[0]),Math.abs(i[1]-a[1]),Math.abs(r[1]-s[1]))}function dm(e){return yt(e)?e:e?.5:0}function Wk(e,t,n){if(n.valueDim==null)return[];for(var i=t.count(),r=mn(i*2),o=0;o<i;o++){var a=zy(n,e,t,o);r[o*2]=a[0],r[o*2+1]=a[1]}return r}function Wn(e,t,n,i,r){var o=n.getBaseAxis(),a=o.dim==="x"||o.dim==="radius"?0:1,s=[],l=0,u=[],c=[],h=[],p=[];if(r){for(l=0;l<e.length;l+=2){var f=t||e;Ie(f[l],f[l+1])||p.push(e[l],e[l+1])}e=p}for(l=0;l<e.length-2;l+=2)switch(h[0]=e[l+2],h[1]=e[l+3],c[0]=e[l],c[1]=e[l+1],s.push(c[0],c[1]),i){case"end":u[a]=h[a],u[1-a]=c[1-a],s.push(u[0],u[1]);break;case"middle":var d=(c[a]+h[a])/2,g=[];u[a]=g[a]=d,u[1-a]=c[1-a],g[1-a]=h[1-a],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[a]=c[a],u[1-a]=h[1-a],s.push(u[0],u[1])}return s.push(e[l++],e[l++]),s}function Uk(e,t){var n=[],i=e.length,r,o;function a(c,h,p){var f=c.coord,d=(p-f)/(h.coord-f),g=Bb(d,[c.color,h.color]);return{coord:p,color:g}}for(var s=0;s<i;s++){var l=e[s],u=l.coord;if(u<0)r=l;else if(u>t){o?n.push(a(o,l,t)):r&&n.push(a(r,l,0),a(r,l,t));break}else r&&(n.push(a(r,l,0)),r=null),n.push(l),o=l}return n}function Xk(e,t,n){var i=e.getVisual("visualMeta");if(!(!i||!i.length||!e.count())&&t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,r==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),u=Z(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,h=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var p=Uk(u,r==="x"?n.getWidth():n.getHeight()),f=p.length;if(!f&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var d=10,g=p[0].coord-d,v=p[f-1].coord+d,y=v-g;if(y<.001)return"transparent";C(p,function(_){_.offset=(_.coord-g)/y}),p.push({offset:f?p[f-1].offset:.5,color:h[1]||"transparent"}),p.unshift({offset:f?p[0].offset:.5,color:h[0]||"transparent"});var m=new Kg(0,0,0,0,p,!0);return m[r]=g,m[r+"2"]=v,m}}}function Yk(e,t,n){var i=e.get("showAllSymbol"),r=i==="auto";if(!(i&&!r)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(r&&Zk(o,t))){var a=t.mapDimension(o.dim),s={};return C(o.getViewLabels(),function(l){l.tick.offInterval||(s[Yo(o.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function Zk(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(Fh.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>i)return!1;return!0}function qk(e){for(var t=e.length/2;t>0&&Ie(e[t*2-2],e[t*2-1]);t--);return t-1}function gm(e,t){return[e[t*2],e[t*2+1]]}function jk(e,t,n){for(var i=e.length/2,r=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<i;u++)if(a=e[u*2+r],!Ie(a,e[u*2+1-r])){if(u===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=u;break}s=u,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function vm(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<se.length;t++)if(e.get([se[t],"endLabel","show"]))return!0;return!1}function Qh(e,t,n,i){if(Wh(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=vm(i)?function(f,d){e._endLabelOnDuring(f,d,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Hy(t,n,i,function(){var f=e._endLabel;f&&n&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=c.shape,p=Math.max(h.width,h.height);u?(h.y-=p,h.height+=p*2):(h.x-=p,h.width+=p*2)}return l&&l(1,c),c}else return Wy(t,n,i)}function Kk(e,t){var n=t.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var $k=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var n=new Pt,i=new ek;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=n,this._changePolyState=_t(this._changePolyState,this)},t.prototype.render=function(n,i,r){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=n.getModel("lineStyle"),u=n.getModel("areaStyle"),c=s.getLayout("points")||[],h=o.type==="polar",p=this._coordSys,f=this._symbolDraw,d=this._polyline,g=this._polygon,v=this._lineGroup,y=!i.ssr&&n.get("animation"),m=!u.isEmpty(),_=u.get("origin"),x=Ey(o,s,_),b=m&&Wk(o,s,x),w=n.get("showSymbol"),S=n.get("connectNulls"),M=w&&!h&&Yk(n,s,o),T=this._data;T&&T.eachItemGraphicEl(function(gt,Mt){gt.__temp&&(a.remove(gt),T.setItemGraphicEl(Mt,null))}),w||f.remove(),a.add(v);var k=h?!1:n.get("step"),I;o&&o.getArea&&n.get("clip",!0)&&(I=o.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var A=Xk(s,o,r)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&p.type===o.type&&k===this._step))w&&f.updateData(s,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(gt){return[c[gt*2],c[gt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,o,I),k&&(b&&(b=Wn(b,c,o,k,S)),c=Wn(c,null,o,k,S)),d=this._newPolyline(c),m?g=this._newPolygon(c,b):g&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(n,o,Oi(A)),v.setClipPath(Qh(this,o,!0,n));else{m&&!g?g=this._newPolygon(c,b):g&&!m&&(v.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(n,o,Oi(A));var D=v.getClipPath();if(D){var L=Qh(this,o,!1,n);fe(D,{shape:L.shape},n)}else v.setClipPath(Qh(this,o,!0,n));w&&f.updateData(s,{isIgnore:M,clipShape:I,disableAnimation:!0,getSymbolPoint:function(gt){return[c[gt*2],c[gt*2+1]]}}),(!hm(this._stackedOnPoints,b)||!hm(this._points,c))&&(y?this._doUpdateAnimation(s,b,o,r,k,_,S):(k&&(b&&(b=Wn(b,c,o,k,S)),c=Wn(c,null,o,k,S)),d.setShape({points:c}),g&&g.setShape({points:c,stackedOnPoints:b})))}var P=n.getModel("emphasis"),R=P.get("focus"),z=P.get("blurScope"),O=P.get("disabled");if(d.useStyle(vt(l.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),as(d,n,"lineStyle"),d.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var E=d.getState("emphasis").style;E.lineWidth=+d.style.lineWidth+1}ut(d).seriesIndex=n.seriesIndex,pr(d,R,z,O);var G=dm(n.get("smooth")),H=n.get("smoothMonotone");if(d.setShape({smooth:G,smoothMonotone:H,connectNulls:S}),g){var U=s.getCalculationInfo("stackedOnSeries"),X=0;g.useStyle(vt(u.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(X=dm(U.get("smooth"))),g.setShape({smooth:G,stackedOnSmooth:X,smoothMonotone:H,connectNulls:S}),as(g,n,"areaStyle"),ut(g).seriesIndex=n.seriesIndex,pr(g,R,z,O)}var W=this._changePolyState;s.eachItemGraphicEl(function(gt){gt&&(gt.onHoverStateChange=W)}),this._polyline.onHoverStateChange=W,this._data=s,this._coordSys=o,this._stackedOnPoints=b,this._points=c,this._step=k,this._valueOrigin=_;var et=n.get("triggerEvent"),ot=n.get("triggerLineEvent"),At=ot===!0||et===!0||et==="line",Rt=ot===!0||et===!0||et==="area";this.packEventData(n,d,At),g&&this.packEventData(n,g,Rt)},t.prototype.packEventData=function(n,i,r){ut(i).eventData=r?{componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},t.prototype.highlight=function(n,i,r,o){var a=n.getData(),s=wi(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],h=l[s*2+1];if(Ie(c,h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,h))return;var p=n.get("zlevel")||0,f=n.get("z")||0;u=new Fh(a,s),u.x=c,u.y=h,u.setZ(p,f);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=p,d.z=f,d.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else ke.prototype.highlight.call(this,n,i,r,o)},t.prototype.downplay=function(n,i,r,o){var a=n.getData(),s=wi(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else ke.prototype.downplay.call(this,n,i,r,o)},t.prototype._changePolyState=function(n){var i=this._polygon;Ig(this._polyline,n),i&&Ig(i,n)},t.prototype._newPolyline=function(n){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new sk({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(n,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new uk({shape:{points:n,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(n,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var u=n.hostModel,c=u.get("animationDuration");tt(c)&&(c=c(null));var h=u.get("animationDelay")||0,p=tt(h)?h(null):h;n.eachItemGraphicEl(function(f,d){var g=f;if(g){var v=[f.x,f.y],y=void 0,m=void 0,_=void 0;if(r)if(a){var x=r,b=i.pointToCoord(v);o?(y=x.startAngle,m=x.endAngle,_=-b[1]/180*Math.PI):(y=x.r0,m=x.r,_=b[0])}else{var w=r;o?(y=w.x,m=w.x+w.width,_=f.x):(y=w.y+w.height,m=w.y,_=f.y)}var S=m===y?0:(_-y)/(m-y);l&&(S=1-S);var M=tt(h)?h(d):c*S+p,T=g.getSymbolPath(),k=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),k&&k.animateFrom({style:{opacity:0}},{duration:300,delay:M}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,i,r){var o=n.getModel("endLabel");if(vm(n)){var a=n.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new $t({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=qk(l);c>=0&&(vr(s,Ci(n,"endLabel"),{inheritColor:r,labelFetcher:n,labelDataIndex:c,defaultText:function(h,p,f){return f!=null?Py(a,f):Bh(a,h)},enableTextSetter:!0},Kk(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,i,r,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var h=r.getLayout("points"),p=r.hostModel,f=p.get("connectNulls"),d=s.get("precision"),g=s.get("distance")||0,v=l.getBaseAxis(),y=v.isHorizontal(),m=v.inverse,_=i.shape,x=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?g:0)*(m?-1:1),w=(y?0:-g)*(m?-1:1),S=y?"x":"y",M=jk(h,x,S),T=M.range,k=T[1]-T[0],I=void 0;if(k>=1){if(k>1&&!f){var A=gm(h,T[0]);u.attr({x:A[0]+b,y:A[1]+w}),a&&(I=p.getRawValue(T[0]))}else{var A=c.getPointOn(x,S);A&&u.attr({x:A[0]+b,y:A[1]+w});var D=p.getRawValue(T[0]),L=p.getRawValue(T[1]);a&&(I=rS(r,d,D,L,M.t))}o.lastFrameIndex=T[0]}else{var P=n===1||o.lastFrameIndex>0?T[0]:0,A=gm(h,P);a&&(I=p.getRawValue(P)),u.attr({x:A[0]+b,y:A[1]+w})}if(a){var R=Ss(u);typeof R.setLabelText=="function"&&R.setLabelText(I)}}},t.prototype._doUpdateAnimation=function(n,i,r,o,a,s,l){var u=this._polyline,c=this._polygon,h=n.hostModel,p=ak(this._data,n,this._stackedOnPoints,i,this._coordSys,r,this._valueOrigin),f=p.current,d=p.stackedOnCurrent,g=p.next,v=p.stackedOnNext;if(a&&(d=Wn(p.stackedOnCurrent,p.current,r,a,l),f=Wn(p.current,null,r,a,l),v=Wn(p.stackedOnNext,p.next,r,a,l),g=Wn(p.next,null,r,a,l)),fm(f,g)>3e3||c&&fm(d,v)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:v}));return}u.shape.__points=p.current,u.shape.points=f;var y={shape:{points:g}};p.current!==f&&(y.shape.__points=p.next),u.stopAnimation(),Yt(u,y,h),c&&(c.setShape({points:f,stackedOnPoints:d}),c.stopAnimation(),Yt(c,{shape:{stackedOnPoints:v}},h),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var m=[],_=p.status,x=0;x<_.length;x++){var b=_[x].cmd;if(b==="="){var w=n.getItemGraphicEl(_[x].idx1);w&&m.push({el:w,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var S=u.shape.__points,M=0;M<m.length;M++){var T=m[M].el,k=m[M].ptIdx*2;T.x=S[k],T.y=S[k+1],T.markRedraw()}})},t.prototype.remove=function(n){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(ke);function Qk(e,t){return{seriesType:e,plan:Hh(),reset:function(n){var i=n.getData(),r=n.coordinateSystem;if(n.pipelineContext,!!r){var o=Z(r.dimensions,function(h){return i.mapDimension(h)}).slice(0,2),a=o.length,s=i.getCalculationInfo("stackResultDimension");Pi(i,o[0])&&(o[0]=s),Pi(i,o[1])&&(o[1]=s);var l=i.getStore(),u=i.getDimensionIndex(o[0]),c=i.getDimensionIndex(o[1]);return a&&{progress:function(h,p){for(var f=h.end-h.start,d=mn(f*a),g=[],v=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(a===1){var x=l.get(u,y);_=r.dataToPoint(x,null,v)}else g[0]=l.get(u,y),g[1]=l.get(c,y),_=r.dataToPoint(g,null,v);d[m++]=_[0],d[m++]=_[1]}p.setLayout("points",d),p.setLayout("pointsRange",{start:h.start,end:h.end})}}}}}}var Jk={average:function(e){for(var t=0,n=0,i=0;i<e.length;i++)isNaN(e[i])||(t+=e[i],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},t2=function(e){return Math.round(e.length/2)};function ym(e){return{seriesType:e,reset:function(t,n,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),h=i.getDevicePixelRatio(),p=Math.abs(c[1]-c[0])*(h||1),f=Math.round(s/p);if(isFinite(f)&&f>1){o==="lttb"?t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/f)):o==="minmax"&&t.setData(r.minmaxDownSample(r.mapDimension(u.dim),1/f));var d=void 0;q(o)?d=Jk[o]:tt(o)&&(d=o),d&&t.setData(r.downSample(r.mapDimension(u.dim),1/f,d,t2))}}}}}function e2(e){e.registerChartView($k),e.registerSeriesModel(JI),e.registerLayout(Qk("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",i)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ym("line"))}var n2=ht(),Zo=ht(),Ve={estimate:1,determine:2};function nl(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function i2(e,t){var n=e.getLabelModel().get("customValues");if(n){var i=e.scale;return{labels:Z(mm(n,i),function(r,o){return{formattedLabel:tl(e)(r,o),rawLabel:i.getLabel(r),tick:r}})}}return e.type==="category"?o2(e,t):s2(e)}function r2(e,t,n){var i=e.scale,r=e.getTickModel().get("customValues");return r?{ticks:mm(r,i)}:e.type==="category"?a2(e,t):{ticks:i.getTicks(n)}}function mm(e,t){var n=t.getExtent(),i=[];return C(e,function(r){r=t.parse(r),r>=n[0]&&r<=n[1]&&i.push(r)}),gc(i,cS,null),sc(i),Z(i,function(r){return{value:r}})}function o2(e,t){var n=e.getLabelModel(),i=_m(e,n,t);return!n.get("show")||e.scale.isBlank()?{labels:[]}:i}function _m(e,t,n){var i=u2(e),r=$h(t),o=n.kind===Ve.estimate;if(!o){var a=bm(i,r);if(a)return a}var s,l;tt(r)?s=il(e,r,!1):(l=r==="auto"?c2(e,n):r,s=il(e,l,!1));var u={labels:s,labelCategoryInterval:l};return o?n.out.noPxChangeTryDetermine.push(function(){return Jh(i,r,u),!0}):Jh(i,r,u),u}function a2(e,t){var n=l2(e),i=$h(t),r=bm(n,i);if(r)return r;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),tt(i))o=il(e,i,!0);else if(i==="auto"){var s=_m(e,e.getLabelModel(),nl(Ve.determine));a=s.labelCategoryInterval,o=Z(s.labels,function(l){return l.tick})}else a=i,o=il(e,a,!0);return Jh(n,i,{ticks:o,tickCategoryInterval:a})}function s2(e){var t=e.scale.getTicks(),n=tl(e);return{labels:Z(t,function(i,r){return{formattedLabel:n(i,r),rawLabel:e.scale.getLabel(i),tick:i}})}}var l2=xm("axisTick"),u2=xm("axisLabel");function xm(e){return function(t){return Zo(t)[e]||(Zo(t)[e]={list:[]})}}function bm(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function Jh(e,t,n){return e.list.push({key:t,value:n}),n}function c2(e,t){if(t.kind===Ve.estimate){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Zo(e).autoInterval=n,!0}),n}var i=Zo(e).autoInterval;return i??(Zo(e).autoInterval=e.calculateCategoryInterval(t))}function h2(e,t){var n=t.kind,i=f2(e),r=tl(e),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=e.scale,s=a.getExtent(),l=a.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var h=s[0],p=e.dataToCoord(h+1)-e.dataToCoord(h),f=Math.abs(p*Math.cos(o)),d=Math.abs(p*Math.sin(o)),g=0,v=0;h<=s[1];h+=u){var y=0,m=0,_=Jf(r({value:h}),i.font,"center","top");y=_.width*1.3,m=_.height*1.3,g=Math.max(g,y,7),v=Math.max(v,m,7)}var x=g/f,b=v/d;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var w=Math.max(0,Math.floor(Math.min(x,b)));if(n===Ve.estimate)return t.out.noPxChangeTryDetermine.push(_t(p2,null,e,w,l)),w;var S=wm(e,w,l);return S??w}function p2(e,t,n){return wm(e,t,n)==null}function wm(e,t,n){var i=n2(e.model),r=e.getExtent(),o=i.lastAutoInterval,a=i.lastTickCount;if(o!=null&&a!=null&&Math.abs(o-t)<=1&&Math.abs(a-n)<=1&&o>t&&i.axisExtent0===r[0]&&i.axisExtent1===r[1])return o;i.lastTickCount=n,i.lastAutoInterval=t,i.axisExtent0=r[0],i.axisExtent1=r[1]}function f2(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function il(e,t,n){var i=tl(e),r=e.scale,o=[],a=tt(t);return $y(r,a?0:t,function(s,l){var u=r.getLabel(s);if(a){var c=!!t(s.value,u);if(s.offInterval=!c,!c&&!l)return}o.push(n?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),o}var rl=ht();function d2(e){rl(e).prepare={}}function g2(e){rl(e).fullUpdate={}}function v2(e){return rl(e).prepare}function Ar(e){return rl(e).fullUpdate}var y2=fg(),tp="|&",Lr=ht(),Sm=-2,m2=-1,_2=ht();function Mm(e,t){var n=e.model,i=Lr(Ar(n.ecModel)).keyed,r=i&&i.get(t);return r&&r.get(n.uid)}function x2(e,t){return Im(Mm(e,t))}function b2(e,t){var n=[];return Tm(e.model.ecModel,function(i){for(var r=0;r<t.length;r++)t[r]&&i.serByIdx[t[r].seriesIndex]&&n.push(Im(i))}),n}function Tm(e,t){var n=Lr(Ar(e)).keyed;n&&n.each(function(i,r){i.each(function(o,a){t(o,r,a)})})}function Im(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function w2(e,t){var n=e.model.ecModel,i=Lr(Ar(n)).axSer;i&&ep(n,i.get(e.model.uid),t)}function km(e,t,n){var i=Mm(e,t);i&&ep(e.model.ecModel,i.sers,n)}function ep(e,t,n){if(t)for(var i=0;i<t.length;i++){var r=t[i];e.isSeriesFiltered(r)||n(r)}}function S2(e,t,n){var i=Lr(Ar(e)).keyed,r=i&&i.get(t);r&&r.each(function(o){n(o.axis)})}function Cm(e,t){var n=e.model,i=Lr(Ar(n.ecModel)).keys;i&&C(i.get(n.uid),function(r){t(r)})}function M2(e){var t=_2(v2(e)),n=t.keyed||(t.keyed=$());Tm(e,function(i,r,o){var a=n.get(r)||n.set(r,$()),s=a.get(o)||a.set(o,{});i.metrics.liPosMinGap&&Dm.liPosMinGap(e,i,s)})}function T2(e,t){Dm[e]=t}var Dm={};function Am(e,t,n){if(e){var i=t.ecModel,r=Lr(Ar(i)),o=e.model.uid,a=r.axSer||(r.axSer=$()),s=a.get(o)||a.set(o,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===e,c=ip.get(np(l,u,n))||ip.get(np(l,u,null));if(c){var h=r.keyed||(r.keyed=$()),p=r.keys||(r.keys=$()),f=c.key,d=h.get(f)||h.set(f,$()),g=d.get(o);g||(g=d.set(o,{axis:e,sers:[],serByIdx:[]}),g.metrics=c.getMetrics(e),(p.get(o)||p.set(o,[])).push(f)),g.sers.push(t),g.serByIdx[t.seriesIndex]=t}}}function np(e,t,n){return e+tp+Y(t,!0)+tp+(n||"")}function I2(e,t){var n=np(t.seriesType,t.baseAxis,t.coordSysType);ip.set(n,t),y2(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:M2})})}var ip=$(),k2=.8;function Pr(e,t){t=t||{};var n={w:NaN,w2:NaN},i=e.scale,r=t.fromStat,o=t.min,a=mk(i);be(a)||(a=NaN);var s=e.getExtent(),l=Lt(s[1]-s[0]);return Fe(i)?C2(n,e,a,l):r&&D2(n,e,a,l,r),o!=null&&(n.w=be(n.w)?ct(o,n.w):o),n}function C2(e,t,n,i){var r=t.onBand,o=n+(r?1:0);o===0&&(o=1),e.w=i/o,!r&&n&&i&&(e.w2=e.w*n/i)}function D2(e,t,n,i,r){var o=!1,a=-1/0;C(r.key?[x2(t,r.key)]:b2(t,r.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>a&&(a=l),o=!1):l===Sm&&(o=!0))}),be(n)&&n>0&&be(a)?(e.w=i/n*a,e.w2=a):o&&(e.w=i*k2,e.w2=e.w*n/i)}var Lm=[0,1],A2=(function(){function e(t,n,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=i||[0,0]}return e.prototype.contain=function(t){var n=this._extent,i=Math.min(n[0],n[1]),r=Math.max(n[0],n[1]);return t>=i&&t<=r},e.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var i=this._extent;i[0]=t,i[1]=n},e.prototype.dataToCoord=function(t,n){var i=this.scale;return t=i.normalize(i.parse(t)),oc(t,Lm,Pm(this),n)},e.prototype.coordToData=function(t,n){var i=oc(t,Pm(this),Lm,n);return this.scale.scale(i)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),i=r2(this,n,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),r=Z(i.ticks,function(s){return{coord:this.dataToCoord(Yo(this.scale,s)),tick:s}},this),o=n.get("alignWithLabel"),a=L2(this,r,o);return Z(r,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:a}})},e.prototype.getMinorTicksCoords=function(){if(Fe(this.scale))return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var i=this.scale.getMinorTicks(n),r=Z(i,function(o){return Z(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return r},e.prototype.getViewLabels=function(t){return t=t||nl(Ve.determine),i2(this,t).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){return Pr(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(t){return t=t||nl(Ve.determine),h2(this,t)},e})();function Pm(e){var t=e.getExtent();if(e.onBand){var n=t[1]-t[0],i=n/e.scale.count()/2;t[0]+=i,t[1]-=i}return t}function L2(e,t,n){var i=t.length;if(!e.onBand||n||!i)return!1;var r=Pr(e).w;if(!r)return!1;C(t,function(s){s.coord-=r/2});var o=e.scale.getExtent(),a=t[i-1];return a.tick.offInterval&&t.pop(),t.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}var P2=(function(e){F(t,e);function t(n,i,r,o,a){var s=e.call(this,n,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),n&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(n,i){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(A2),Om=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],O2=1,ol=2,Rm=O2|ol;function al(e,t,n){n=n||Rm,t?e.dirty|=n:e.dirty&=~n}function Nm(e,t){return t=t||Rm,e.dirty==null||!!(e.dirty&t)}function sn(e){if(e)return Nm(e)&&Em(e,e.label,e),e}function Em(e,t,n){var i=t.getComputedTransform();e.transform=Yc(e.transform,i);var r=e.localRect=Co(e.localRect,t.getBoundingRect()),o=t.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=o.__marginType;c==null&&u&&(a=u,c=mr.textMargin);for(var h=0;h<4;h++)rp[h]=c===mr.minMargin&&l&&l[h]!=null?l[h]:s&&s[h]!=null?s[h]:a?a[h]:0;c===mr.textMargin&&_s(r,rp,!1,!1);var p=e.rect=Co(e.rect,r);return i&&p.applyTransform(i),c===mr.minMargin&&_s(p,rp,!1,!1),e.axisAligned=Xc(i),(e.label=e.label||{}).ignore=t.ignore,al(e,!1),al(e,!0,ol),e}var rp=[0,0,0,0];function R2(e,t,n){return e.transform=Yc(e.transform,n),e.localRect=Co(e.localRect,t),e.rect=Co(e.rect,t),n&&e.rect.applyTransform(n),e.axisAligned=Xc(n),e.obb=void 0,(e.label=e.label||{}).ignore=!1,e}function N2(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var i=e.rect;i&&(i.x+=t.x,i.y+=t.y);var r=e.obb;r&&r.fromBoundingRect(e.localRect,n)}}function zm(e,t){for(var n=0;n<Om.length;n++){var i=Om[n];e[i]==null&&(e[i]=t[i])}return sn(e)}function Bm(e){var t=e.obb;return(!t||Nm(e,ol))&&(e.obb=t=t||new $g,t.fromBoundingRect(e.localRect,e.transform),al(e,!1,ol)),t}function E2(e,t,n,i,r){var o=e.length,a=En[t],s=gr[t];if(o<2)return!1;e.sort(function(S,M){return S.rect[a]-M.rect[a]});for(var l=0,u,c=!1,h=0;h<o;h++){var p=e[h],f=p.rect;u=f[a]-l,u<0&&(f[a]-=u,p.label[a]-=u,c=!0),l=f[a]+f[s]}var d=e[0],g=e[o-1],v,y;m(),v<0&&b(-v,.8),y<0&&b(y,.8),m(),_(v,y,1),_(y,v,-1),m(),v<0&&w(-v),y<0&&w(y);function m(){v=d.rect[a]-n,y=i-g.rect[a]-g.rect[s]}function _(S,M,T){if(S<0){var k=Math.min(M,-S);if(k>0){x(k*T,0,o);var I=k+S;I<0&&b(-I*T,1)}else b(-S*T,1)}}function x(S,M,T){S!==0&&(c=!0);for(var k=M;k<T;k++){var I=e[k],A=I.rect;A[a]+=S,I.label[a]+=S}}function b(S,M){for(var T=[],k=0,I=1;I<o;I++){var A=e[I-1].rect,D=Math.max(e[I].rect[a]-A[a]-A[s],0);T.push(D),k+=D}if(k){var L=Math.min(Math.abs(S)/k,M);if(S>0)for(var I=0;I<o-1;I++){var P=T[I]*L;x(P,0,I+1)}else for(var I=o-1;I>0;I--){var P=T[I-1]*L;x(-P,I,o)}}}function w(S){var M=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(o-1)),k=0;k<o-1;k++)if(M>0?x(T,0,k+1):x(-T,o-k-1,o),S-=T,S<=0)return}return c}function z2(e){var t=[];e.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function n(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var i=0;i<e.length;i++){var r=sn(e[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<t.length;l++)if(op(r,t[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):t.push(r)}}}function op(e,t,n,i){return!e||!t||e.label&&e.label.ignore||t.label&&t.label.ignore||!e.rect.intersect(t.rect,n,i)?!1:e.axisAligned&&t.axisAligned?!0:Bm(e).intersect(Bm(t),n,i)}var B2=null;function sl(){return B2}var F2="expandAxisBreak",Un=Math.PI,V2=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],G2=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Fi=ht(),Fm=ht(),Vm=(function(){function e(t){this.recordMap={},this.resolveAxisNameOverlap=t}return e.prototype.ensureRecord=function(t){var n=t.axis.dim,i=t.componentIndex,r=this.recordMap,o=r[n]||(r[n]=[]);return o[i]||(o[i]={ready:{}})},e})();function H2(e,t,n,i){var r=n.axis,o=t.ensureRecord(n),a=[],s,l=sp(e.axisName)&&Dr(e.nameLocation);C(i,function(d){var g=sn(d);if(!(!g||g.label.ignore)){a.push(g);var v=o.transGroup;l&&(v.transform?Jr(qo,v.transform):$r(qo),g.transform&&Qr(qo,qo,g.transform),Q.copy(ll,g.localRect),ll.applyTransform(qo),s?s.union(ll):Q.copy(s=new Q(0,0,0,0),ll))}});var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(a.sort(function(d,g){return Math.abs(d.label[u]-c)-Math.abs(g.label[u]-c)}),l&&s){var h=r.getExtent(),p=Math.min(h[0],h[1]),f=Math.max(h[0],h[1])-p;s.union(new Q(p,0,f,1))}o.stOccupiedRect=s,o.labelInfoList=a}var qo=Ze(),ll=new Q(0,0,0,0),Gm=function(e,t,n,i,r,o){if(Dr(e.nameLocation)){var a=o.stOccupiedRect;a&&Hm(R2({},a,o.transGroup.transform),i,r)}else Wm(o.labelInfoList,o.dirVec,i,r)};function Hm(e,t,n){var i=new it;op(e,t,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&N2(t,i)}function Wm(e,t,n,i){for(var r=it.dot(i,t)>=0,o=0,a=e.length;o<a;o++){var s=e[r?o:a-1-o];s.label.ignore||Hm(s,n,i)}}var Xn=(function(){function e(t,n,i,r){this.group=new Pt,this._axisModel=t,this._api=n,this._local={},this._shared=r||new Vm(Gm),this._resetCfgDetermined(i)}return e.prototype.updateCfg=function(t){var n=this._cfg.raw;n.position=t.position,n.labelOffset=t.labelOffset,this._resetCfgDetermined(n)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(t){var n=this._axisModel,i=n.getDefaultOption?n.getDefaultOption():{},r=Y(t.axisName,n.get("name")),o=n.get("nameMoveOverlap");(o==null||o==="auto")&&(o=Y(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:Y(t.nameDirection,1),tickDirection:Y(t.tickDirection,1),labelDirection:Y(t.labelDirection,1),labelOffset:Y(t.labelOffset,0),silent:Y(t.silent,!0),axisName:r,nameLocation:Qn(n.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:sp(r)&&o,optionHideOverlap:n.get(["axisLabel","hideOverlap"]),showMinorTicks:n.get(["minorTick","show"])};this._cfg=a;var s=new Pt({x:a.position[0],y:a.position[1],rotation:a.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(n);l.transGroup=this._transformGroup,l.dirVec=new it(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(t,n){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),C(W2,function(r){t[r]&&U2[r](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},e.innerTextLayout=function(t,n,i){var r=tg(n-t),o,a;return Ka(r)?(a=i>0?"top":"bottom",o="center"):Ka(r-Un)?(a=i>0?"bottom":"top",o="center"):(a="middle",r>0&&r<Un?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:r,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),W2=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],U2={axisLine:function(e,t,n,i,r,o,a){var s=i.get(["axisLine","show"]);if(s==="auto"&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),!!s){var l=i.axis.getExtent(),u=o.transform,c=[l[0],0],h=[l[1],0],p=c[0]>h[0];u&&(ge(c,c,u),ge(h,h,u));var f=N({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:f};if(i.get(["axisLine","breakLine"])&&Ns(i.axis.scale))sl().buildAxisBreakLine(i,r,o,d);else{var g=new yn(N({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},d));Io(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var v=i.get(["axisLine","symbol"]);if(v!=null){var y=i.get(["axisLine","symbolSize"]);q(v)&&(v=[v,v]),(q(y)||yt(y))&&(y=[y,y]);var m=Us(i.get(["axisLine","symbolOffset"])||0,y),_=y[0],x=y[1];C([{rotate:e.rotation+Math.PI/2,offset:m[0],r:0},{rotate:e.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],function(b,w){if(v[w]!=="none"&&v[w]!=null){var S=zi(v[w],-_/2,-x/2,_,x,f.stroke,!0),M=b.r+b.offset,T=p?h:c;S.attr({rotation:b.rotate,x:T[0]+M*Math.cos(e.rotation),y:T[1]-M*Math.sin(e.rotation),silent:!0,z2:11}),r.add(S)}})}}},axisTickLabelEstimate:function(e,t,n,i,r,o,a,s){var l=Ym(t,r,s);l&&Um(e,t,n,i,r,o,a,Ve.estimate)},axisTickLabelDetermine:function(e,t,n,i,r,o,a,s){var l=Ym(t,r,s);l&&Um(e,t,n,i,r,o,a,Ve.determine);var u=q2(e,r,o,i);Z2(e,t.labelLayoutList,u),j2(e,r,o,i,e.tickDirection)},axisName:function(e,t,n,i,r,o,a,s){var l=n.ensureRecord(i);t.nameEl&&(r.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=e.axisName;if(sp(u)){var c=e.nameLocation,h=e.nameDirection,p=i.getModel("nameTextStyle"),f=i.get("nameGap")||0,d=i.axis.getExtent(),g=i.axis.inverse?-1:1,v=new it(0,0),y=new it(0,0);c==="start"?(v.x=d[0]-g*f,y.x=-g):c==="end"?(v.x=d[1]+g*f,y.x=g):(v.x=(d[0]+d[1])/2,v.y=e.labelOffset+h*f,y.y=h);var m=Ze();y.transform(cu(m,m,e.rotation));var _=i.get("nameRotate");_!=null&&(_=_*Un/180);var x,b;Dr(c)?x=Xn.innerTextLayout(e.rotation,_??e.rotation,h):(x=X2(e.rotation,c,_||0,d),b=e.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(x.rotation)),!isFinite(b)&&(b=null)));var w=p.getFont(),S=i.get("nameTruncate",!0)||{},M=S.ellipsis,T=qr(e.raw.nameTruncateMaxWidth,S.maxWidth,b),k=s.nameMarginLevel||0,I=new $t({x:v.x,y:v.y,rotation:x.rotation,silent:Xn.isLabelSilent(i),style:yr(p,{text:u,font:w,overflow:"truncate",width:T,ellipsis:M,fill:p.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:p.get("align")||x.textAlign,verticalAlign:p.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(xs({el:I,componentModel:i,itemName:u}),I.__fullText=u,I.anid="name",i.get("triggerEvent")){var A=Xn.makeAxisEventDataBase(i);A.targetType="axisName",A.name=u,ut(I).eventData=A}o.add(I),I.updateTransform(),t.nameEl=I;var D=l.nameLayout=sn({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Dr(c)?V2[k]:G2[k]});if(l.nameLocation=c,r.add(I),I.decomposeTransform(),e.shouldNameMoveOverlap&&D){var L=n.ensureRecord(i);n.resolveAxisNameOverlap(e,n,i,D,y,L)}}}};function Um(e,t,n,i,r,o,a,s){Zm(t)||K2(e,t,r,s,i,a);var l=t.labelLayoutList;$2(e,i,l,o),tC(i,e.rotation,l);var u=e.optionHideOverlap;Y2(i,l,u),u&&z2(Bt(l,function(c){return c&&!c.label.ignore})),H2(e,n,i,l)}function X2(e,t,n,i){var r=tg(n-e),o,a,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Ka(r-Un/2)?(a=l?"bottom":"top",o="center"):Ka(r-Un*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",r<Un*1.5&&r>Un/2?o=l?"left":"right":o=l?"right":"left"),{rotation:r,textAlign:o,textVerticalAlign:a}}function Y2(e,t,n){var i=e.axis,r=e.get(["axisLabel","customValues"]);if(Vk(i))return;function o(u,c,h){var p=sn(t[c]),f=sn(t[h]),d=i.scale;if(!(!p||!f)){if(u==null){if(!n&&r)return;var g=Fi(p.label).labelInfo.tick;if(Yh(d)&&g.notNice||Fe(d)&&g.offInterval){jo(p.label);return}}if(u===!1||p.suggestIgnore){jo(p.label);return}if(f.suggestIgnore){jo(f.label);return}var v=.1;if(!n){var y=[0,0,0,0];p=zm({marginForce:y},p),f=zm({marginForce:y},f)}op(p,f,null,{touchThreshold:v})&&jo(u?f.label:p.label)}}var a=e.get(["axisLabel","showMinLabel"]),s=e.get(["axisLabel","showMaxLabel"]),l=t.length;o(a,0,1),o(s,l-1,l-2)}function Z2(e,t,n){e.showMinorTicks||C(t,function(i){if(i&&i.label.ignore)for(var r=0;r<n.length;r++){var o=n[r],a=Fm(o),s=Fi(i.label);if(a.tickValue!=null&&!a.onBand&&a.tickValue===s.labelInfo.tick.value){jo(o);return}}})}function jo(e){e&&(e.ignore=!0)}function Xm(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,t&&(ge(a,a,t),ge(s,s,t));var c=new yn({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Io(c.shape,c.style.lineWidth),c.anid=r+"_"+e[l].tickValue,o.push(c);var h=Fm(c);h.onBand=!!e[l].onBand,h.tickValue=e[l].tickValue}return o}function q2(e,t,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");if(a==="auto"&&(a=!0,e.raw.axisTickAutoShow!=null&&(a=!!e.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=e.tickDirection*o.get("length"),u=r.getTicksCoords(),c=Xm(u,n.transform,l,vt(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)t.add(c[h]);return c}function j2(e,t,n,i,r){var o=i.axis,a=i.getModel("minorTick");if(!(!e.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),u=r*a.get("length"),c=vt(l.getLineStyle(),vt(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var p=Xm(s[h],n.transform,u,c,"minorticks_"+h),f=0;f<p.length;f++)t.add(p[f])}}function Ym(e,t,n){if(Zm(e)){var i=e.axisLabelsCreationContext,r=i.out.noPxChangeTryDetermine;if(n.noPxChange){for(var o=!0,a=0;a<r.length;a++)o=o&&r[a]();if(o)return!1}r.length&&(t.remove(e.labelGroup),ap(e,null,null,null))}return!0}function K2(e,t,n,i,r,o){var a=r.axis,s=qr(e.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new Pt;n.add(l);var u=nl(i);if(!s||a.scale.isBlank()){ap(t,[],l,u);return}var c=r.getModel("axisLabel"),h=a.getViewLabels(u),p=(qr(e.raw.labelRotate,c.get("rotate"))||0)*Un/180,f=Xn.innerTextLayout(e.rotation,p,e.labelDirection),d=r.getCategories&&r.getCategories(!0),g=[],v=r.get("triggerEvent"),y=1/0,m=-1/0;C(h,function(x,b){var w,S=x.tick,M=x.formattedLabel,T=x.rawLabel,k=c,I=Yo(a.scale,S);if(d&&d[I]){var A=d[I];j(A)&&A.textStyle&&(k=new Tt(A.textStyle,c,r.ecModel))}var D=k.getTextColor()||r.get(["axisLine","lineStyle","color"]),L=k.getShallow("align",!0)||f.textAlign,P=Y(k.getShallow("alignMinLabel",!0),L),R=Y(k.getShallow("alignMaxLabel",!0),L),z=k.getShallow("verticalAlign",!0)||k.getShallow("baseline",!0)||f.textVerticalAlign,O=Y(k.getShallow("verticalAlignMinLabel",!0),z),E=Y(k.getShallow("verticalAlignMaxLabel",!0),z),G=10+(((w=S.time)===null||w===void 0?void 0:w.level)||0);y=Math.min(y,G),m=Math.max(m,G);var H=new $t({x:0,y:0,rotation:0,silent:Xn.isLabelSilent(r),z2:G,style:yr(k,{text:M,align:b===0?P:b===h.length-1?R:L,verticalAlign:b===0?O:b===h.length-1?E:z,fill:tt(D)?D(a.type==="category"?T:a.type==="value"?I+"":I,b):D})});H.anid="label_"+I;var U=Fi(H);if(U.labelInfo=x,U.layoutRotation=f.rotation,xs({el:H,componentModel:r,itemName:M,formatterParamsExtra:{isTruncated:function(){return H.isTruncated},value:T,tickIndex:b}}),v){var X=Xn.makeAxisEventDataBase(r);X.targetType="axisLabel",X.value=T,X.tickIndex=b;var W=x.tick.break;if(W){var et=W.parsedBreak;X.break={start:et.vmin,end:et.vmax}}a.type==="category"&&(X.dataIndex=I),ut(H).eventData=X,W&&J2(r,o,H,W)}g.push(H),l.add(H)});var _=Z(g,function(x){return{label:x,priority:Fi(x).labelInfo.tick.break?x.z2+(m-y+1):x.z2,defaultAttr:{ignore:x.ignore}}});ap(t,_,l,u)}function Zm(e){return!!e.labelLayoutList}function ap(e,t,n,i){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=i}function $2(e,t,n,i){var r=t.get(["axisLabel","margin"]);C(n,function(o,a){var s=sn(o);if(s){var l=s.label,u=Fi(l);s.suggestIgnore=l.ignore,l.ignore=!1,Sa(_n,Q2);var c=t.axis;_n.x=c.dataToCoord(Yo(c.scale,u.labelInfo.tick)),_n.y=e.labelOffset+e.labelDirection*r,_n.rotation=u.layoutRotation,i.add(_n),_n.updateTransform(),i.remove(_n),_n.decomposeTransform(),Sa(l,_n),l.markRedraw(),al(s,!0),sn(s)}})}var _n=new Ct,Q2=new Ct;function sp(e){return!!e}function J2(e,t,n,i){n.on("click",function(r){var o={type:F2,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};o[e.axis.dim+"AxisIndex"]=e.componentIndex,t.dispatchAction(o)})}function tC(e,t,n){var i=Jt();if(i){var r=i.retrieveAxisBreakPairs(n,function(a){return a&&Fi(a.label).labelInfo.tick.break},!0),o=e.get(["breakLabelLayout","moveOverlap"],!0);(o===!0||o==="auto")&&C(r,function(a){sl().adjustBreakLabelPair(e.axis.inverse,t,[sn(n[a[0]]),sn(n[a[1]])])})}}function ul(e,t,n){n=n||{};var i=t.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,l=i.dim,u=[e.x,e.x+e.width,e.y,e.y+e.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=l==="x"?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(o){var f=o.toGlobalCoord(o.dataToCoord(0));p[c.onZero]=Math.max(Math.min(f,p[1]),p[0])}r.position=[l==="y"?p[c[s]]:u[0],l==="x"?p[c[s]]:u[3]],r.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};r.labelDirection=r.tickDirection=r.nameDirection=d[a],r.labelOffset=o?p[c[a]]-p[c.onZero]:0,t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),qr(n.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var g=t.get(["axisLabel","rotate"]);return r.labelRotate=s==="top"?-g:g,r.z2=1,r}function eC(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function nC(e){var t={xAxisModel:null,yAxisModel:null};return C(t,function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,we).models[0];t[i]=o}),t}function iC(e,t,n,i,r,o){for(var a=ul(e,n),s=!1,l=!1,u=0;u<t.length;u++)jy(t[u].getOtherAxis(n.axis).scale)&&(s=l=!0,n.axis.type==="category"&&n.axis.onBand&&(l=!1));return a.axisLineAutoShow=s,a.axisTickAutoShow=l,a.defaultNameMoveOverlap=o,new Xn(n,i,a,r)}function rC(e,t,n){var i=ul(t,n);e.updateCfg(i)}var oC=ht(),aC=1,sC=3,qm=(function(){function e(t,n,i,r,o){var a=Fe(t),s=a?n.getCategories().length:null,l;if(a){var u=n.getCategories(!0);l=u&&!u.length}var c=i.slice();(js(t)||kr(t)||Yh(t))&&(hg(c,Ko(t,n.get("dataMin",!0))),pg(c,Ko(t,n.get("dataMax",!0)))),aS(c)||(c[0]=c[1]=NaN);var h=[],p=[!1,!1],f=n.get("min",!0);f==="dataMin"?(h[0]=c[0],p[0]=!0):(h[0]=Ko(t,tt(f)?f({min:c[0],max:c[1]}):f),p[0]=h[0]!=null);var d=n.get("max",!0);d==="dataMax"?(h[1]=c[1],p[1]=!0):(h[1]=Ko(t,tt(d)?d({min:c[0],max:c[1]}):d),p[1]=h[1]!=null);var g=lC(t,n),v=a?null:c[1]-c[0]||Math.abs(c[0]);h[0]==null&&(h[0]=a?l?c[0]:s?0:NaN:c[0]-g[0]*v),h[1]==null&&(h[1]=a?l?c[1]:s?s-1:NaN:c[1]+g[1]*v),!gn(h[0])&&(h[0]=NaN),!gn(h[1])&&(h[1]=NaN);var y=l||Zr(h[0])||Zr(h[1])||a&&!s,m=js(t),_=m&&n.needIncludeZero&&n.needIncludeZero();_&&(h[0]>0&&h[1]>0&&!p[0]&&(h[0]=0),h[0]<0&&h[1]<0&&!p[1]&&(h[1]=0));var x=!1;h[0]>h[1]&&(h.reverse(),x=!0);var b=Ko(t,n.get("startValue",!0)),w=b!=null;!be(b)&&r&&(b=t.getDefaultStartValue?t.getDefaultStartValue():0),be(b)&&(w||!m||_)&&(b<h[0]&&!p[0]?(h[0]=b,p[0]=!0):b>h[1]&&!p[1]&&(h[1]=b,p[1]=!0));var S=this._i={scale:t,dataMM:c,noZoomEffMM:h,zoomMM:[],fixMM:p,zoomFixMM:[!1,!1],startValue:b,isBlank:y,incl0:_,tggAxInv:x,ctnShp:o};jm(S,h)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var t=this._i,n=t.zoomMM,i=t.noZoomEffMM,r=t.zoomFixMM,o=t.fixMM,a={fixMM:o,zoomFixMM:r,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},s=a.effMM;return n[0]!=null&&(s[0]=n[0],o[0]=r[0]=!0),n[1]!=null&&(s[1]=n[1],o[1]=r[1]=!0),jm(t,s),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(t,n){this._i.zoomMM[t]=n},e})();function jm(e,t){var n=e.scale,i=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],i),t[1]=n.sanitize(t[1],i),sS(t))}function Ko(e,t){return t==null?null:Zr(t)?NaN:e.parse(t)}function lC(e,t){var n;if(Fe(e))n=[0,0];else{var i=t.get("boundaryGap");typeof i=="boolean"&&(i=null),n=B(i)?i:[i,i]}return[Km(n[0]),Km(n[1])]}function Km(e){return ai(typeof e=="boolean"?0:e,1)||0}function $m(e){var t=oC(e.scale);return t.extent||(t.extent=Se()),t}function uC(e,t){$m(e).dimIdxInCoord=t.get(e.dim)}function cC(e,t){var n=e.scale,i=e.model,r=e.dim;n.rawExtentInfo||hC(n,e,r,i,t)}function hC(e,t,n,i,r){var o=$m(t),a=o.extent,s=!1;w2(t,function(c){if(c.boxCoordinateSystem){var h=Kv(c).coord,p=o.dimIdxInCoord;if(p>=0&&B(h)){var f=h[p];f!=null&&!B(f)&&dc(a,e.parse(f))}}else if(c.coordinateSystem){var d=c.getData();if(d){var g=e.getFilter?e.getFilter():null;C(Gk(d,n),function(v){oS(a,d.getApproximateExtent(v,g))})}c.__requireStartValue&&c.__requireStartValue(t)&&(s=!0)}});var l=dC(e,t,i),u=new qm(e,i,a,s,l);Qm(e,u,r),o.extent=null}function pC(e,t){var n=e.scale;Qm(n,new qm(n,e.model,t,!1,!1),sC)}function Qm(e,t,n){e.rawExtentInfo=t,t.from=n}function fC(e,t){lp.set(e,t)}var lp=$();function Jm(e,t,n,i,r){e.rawExtentInfo||pC({scale:e,model:t},Se());var o=e.rawExtentInfo.makeFinal(),a=o.effMM;return e.setExtent(a[0],a[1]),e.setBlank(o.isBlank),i&&o.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),o}function dC(e,t,n){var i=cm(e,n),r=n.get("containShape",!0);if(r==null&&!i&&(r=!0),!r)return!1;var o=!1;return Cm(t,function(a){o=!!lp.get(a)||o}),o}function gC(e,t,n,i){if(n.ctnShp){var r;if(Cm(e,function(s){var l=lp.get(s);if(l){var u=l(e,i);u&&(r=r||[0,0],hg(r,u[0]),pg(r,u[1]),Bk(e))}}),!!r){var o=t.getExtent();if(Fe(t))e.onBand||t.setExtent2(Wo,Wt(o[0],o[0]+r[0]),ct(o[1],o[1]+r[1]));else{var a=o.slice();n.zoomFixMM[0]||(a[0]=Wt(a[0],t.transformOut(t.transformIn(a[0],null)+r[0],null))),n.zoomFixMM[1]||(a[1]=ct(a[1],t.transformOut(t.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&t.setExtent2(Wo,a[0],a[1])}}}}function vC(){T2("liPosMinGap",yC)}function yC(e,t,n){var i=$(),r=n.serUids,o=n.liPosMinGap,a,s=t.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=Nv(c);function p(_){ep(e,t.sers,function(x){var b=x.getRawData(),w=b.getDimensionIndex(b.mapDimension(s.dim));w>=0&&_(w,x,b.getStore())})}var f=0;if(p(function(_,x,b){i.set(x.uid,1),(!r||!r.hasKey(x.uid))&&(a=!0),f+=b.count()}),(!r||r.keys().length!==i.keys().length)&&(a=!0),!a&&o!=null){t.liPosMinGap=o;return}Vh(Vi,f);var d=0;p(function(_,x,b){for(var w=0,S=b.count();w<S;++w){var M=b.get(_,w);isFinite(M)&&(!c||Ev(h,M))&&(u&&(M=l.transformIn(M,null)),Vi.arr[d++]=M)}});var g=Vi.typed?Vi.arr.subarray(0,d):(Vi.arr.length=d,Vi.arr);Vi.typed?g.sort():sc(g);for(var v=1/0,y=1;y<d;++y){var m=g[y]-g[y-1];m>0&&m<v&&(v=m)}n.liPosMinGap=t.liPosMinGap=be(v)?v:d>0?Sm:m2,n.serUids=i}var Vi=Vh({ctor:rk},50);function mC(e){return function(t,n){var i=Pr(t,{fromStat:{key:e}});if(be(i.w2))return[-i.w2/2,i.w2/2]}}function cl(e,t){return e+tp+t}function _C(e){return vC(),{liPosMinGap:!Fe(e.scale)}}var Or="bar";function xC(e,t,n,i){I2(e,{key:t,seriesType:n,coordSysType:i,getMetrics:_C})}function bC(e){var t=e.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var t0={left:0,right:0,top:0,bottom:0},hl=["25%","25%"],xn="cartesian2d",wC=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(n,i){var r=Go(n.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&n.outerBounds&&Fn(n.outerBounds,r)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&n.outerBounds&&Fn(this.option.outerBounds,n.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:t0,outerBoundsContain:"all",outerBoundsClampWidth:hl[0],outerBoundsClampHeight:hl[1],backgroundColor:K.color.transparent,borderWidth:1,borderColor:K.color.neutral30},t})(mt),SC=fg(),MC="__ec_stack_";function e0(e){return e.get("stack")||MC+e.seriesIndex}function TC(e,t){var n=IC(e,t);return n.columnMap=kC(n),n}function IC(e,t){var n=cl(t,xn),i=[],r=Pr(e,{fromStat:{key:n},min:1});return km(e,n,function(o){i.push({barWidth:bt(o.get("barWidth"),r.w),barMaxWidth:bt(o.get("barMaxWidth"),r.w),barMinWidth:bt(o.get("barMinWidth")||(n0(o)?.5:1),r.w),barGap:o.get("barGap"),barCategoryGap:o.get("barCategoryGap"),defaultBarGap:o.get("defaultBarGap"),stackId:e0(o)})}),{bandWidthResult:r,seriesInfo:i}}function kC(e){var t=e.bandWidthResult.w,n=t,i=0,r,o,a=[],s={};C(e.seriesInfo,function(g,v){v||(o=g.defaultBarGap||0);var y=g.stackId;jt(s,y)||i++;var m=s[y];m||(m=s[y]={width:0,maxWidth:0},a.push(y));var _=g.barWidth;_&&!m.width&&(m.width=_,_=Wt(n,_),n-=_);var x=g.barMaxWidth;x&&(m.maxWidth=x);var b=g.barMinWidth;b&&(m.minWidth=b);var w=g.barGap;w!=null&&(o=w);var S=g.barCategoryGap;S!=null&&(r=S)}),r==null&&(r=ct(35-a.length*4,15)+"%");var l=bt(r,t),u=bt(o,1),c=(n-l)/(i+(i-1)*u);c=ct(c,0),C(a,function(g){var v=s[g],y=v.maxWidth,m=v.minWidth;if(v.width){var _=v.width;y&&(_=Wt(_,y)),m&&(_=ct(_,m)),v.width=_,n-=_+u*_,i--}else{var _=c;y&&y<_&&(_=Wt(y,n)),m&&m>_&&(_=m),_!==c&&(v.width=_,n-=_+u*_,i--)}}),c=(n-l)/(i+(i-1)*u),c=ct(c,0);var h=0,p;C(a,function(g){var v=s[g];v.width||(v.width=c),p=v,h+=v.width*(1+u)}),p&&(h-=p.width*u);var f={},d=-h/2;return C(a,function(g){var v=s[g];f[g]=f[g]||{bandWidth:t,offset:d,width:v.width},d+=v.width*(1+u)}),f}function CC(e){return{seriesType:e,overallReset:function(t){var n=cl(e,xn);S2(t,n,function(i){var r=TC(i,e);km(i,n,function(o){var a=r.columnMap[e0(o)];o.getData().setLayout({bandWidth:a.bandWidth,offset:a.offset,size:a.width})})})}}}function DC(e){return{seriesType:e,plan:Hh(),reset:function(t){if(eC(t)){var n=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(r.dim)),l=t.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),h=Pi(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),f=o.toGlobalCoord(o.dataToCoord(bC(o))),d=n0(t),g=t.get("barMinHeight")||0,v=c&&n.getDimensionIndex(c),y=n.getLayout("size"),m=n.getLayout("offset");return{progress:function(_,x){for(var b=_.count,w=d&&mn(b*3),S=d&&l&&mn(b*3),M=d&&mn(b),T=i.master.getRect(),k=p?T.width:T.height,I,A=x.getStore(),D=0;(I=_.next())!=null;){var L=A.get(h?v:a,I),P=A.get(s,I),R=f,z=void 0;h&&(z=+L-A.get(a,I));var O=void 0,E=void 0,G=void 0,H=void 0;if(p){var U=i.dataToPoint([L,P]);h&&(R=i.dataToPoint([z,P])[0]),O=R,E=U[1]+m,G=U[0]-R,H=y,Lt(G)<g&&(G=(G<0?-1:1)*g)}else{var U=i.dataToPoint([P,L]);h&&(R=i.dataToPoint([P,z])[1]),O=U[0]+m,E=R,G=y,H=U[1]-R,Lt(H)<g&&(H=(H<=0?-1:1)*g)}d?(w[D]=O,w[D+1]=E,w[D+2]=p?G:H,S&&(S[D]=p?T.x:O,S[D+1]=p?E:T.y,S[D+2]=k),M[I]=I):x.setItemLayout(I,{x:O,y:E,width:G,height:H}),D+=3}d&&x.setLayout({largePoints:w,largeDataIndices:M,largeBackgroundPoints:S,valueAxisHorizontal:p})}}}}}}function n0(e){return e.pipelineContext&&e.pipelineContext.large}function AC(e){return mC(cl(e,xn))}function LC(e){SC(e,function(){function t(n){var i=cl(n,xn);xC(e,i,n,xn),fC(i,AC(n))}t("bar"),t("pictorialBar")})}var up=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,i){return ch(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(r)C(o.getAxes(),function(p,f){if(p.type==="category"&&i!=null){var d=p.getTicksCoords(),g=p.getTickModel().get("alignWithLabel"),v=a[f],y=i[f]==="x1"||i[f]==="y1";if(y&&!g&&(v+=1),d.length<2)return;if(d.length===2){s[f]=p.toGlobalCoord(p.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,x=1,b=0;b<d.length;b++){var w=d[b].coord,S=b===d.length-1?d[b-1].tickValue+x:d[b].tickValue;if(S===v){_=w;break}else if(S<v)m=w;else if(m!=null&&S>v){_=(w+m)/2;break}b===1&&(x=S-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[f]=p.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),h=o.getBaseAxis().isHorizontal()?0:1;s[h]+=u+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(n){return this.getBaseAxis()!==n},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(ze);ze.registerClass(up);var PC=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return ch(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(n,i){var r=dg(this,n,i);return r.progressiveRender&&(r.large=!0),r},t.prototype.brushSelector=function(n,i,r){return r.rect(i.getItemLayout(n))},t.type="series."+Or,t.dependencies=["grid","polar"],t.defaultOption=Qv(up.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:K.color.primary,borderWidth:2}},realtimeSort:!1}),t})(up),pl="\0__throttleOriginMethod",i0="\0__throttleRate",r0="\0__throttleType";function cp(e,t,n){var i,r=0,o=0,a=null,s,l,u,c;t=t||0;function h(){o=new Date().getTime(),a=null,e.apply(l,u||[])}var p=function(){for(var f=[],d=0;d<arguments.length;d++)f[d]=arguments[d];i=new Date().getTime(),l=this,u=f;var g=c||t,v=c||n;c=null,s=i-(v?r:o)-g,clearTimeout(a),v?a=setTimeout(h,g):s>=0?h():a=setTimeout(h,-s),r=i};return p.clear=function(){a&&(clearTimeout(a),a=null)},p.debounceNextCall=function(f){c=f},p}function o0(e,t,n,i){var r=e[t];if(r){var o=r[pl]||r,a=r[r0],s=r[i0];if(s!==n||a!==i){if(n==null||!i)return e[t]=o;r=e[t]=cp(o,n,i==="debounce"),r[pl]=o,r[r0]=i,r[i0]=n}return r}}function hp(e,t){var n=e[t];n&&n[pl]&&(n.clear&&n.clear(),e[t]=n[pl])}var OC=(function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e})(),a0=(function(e){F(t,e);function t(n){var i=e.call(this,n)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new OC},t.prototype.buildPath=function(n,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-a)*.5,u=a+l,c=i.startAngle,h=i.endAngle,p=i.clockwise,f=Math.PI*2,d=p?h-c<f:c-h<f;d||(c=h-(p?f:-f));var g=Math.cos(c),v=Math.sin(c),y=Math.cos(h),m=Math.sin(h);d?(n.moveTo(g*a+r,v*a+o),n.arc(g*u+r,v*u+o,l,-Math.PI+c,c,!p)):n.moveTo(g*s+r,v*s+o),n.arc(r,o,s,c,h,!p),n.arc(y*u+r,m*u+o,l,h-Math.PI*2,h-Math.PI,!p),a!==0&&n.arc(r,o,a,h,c,p)},t})(dt);function RC(e,t){t=t||{};var n=t.isRoundCap;return function(i,r,o){var a=r.position;if(!a||a instanceof Array)return ba(i,r,o);var s=e(a),l=r.distance!=null?r.distance:5,u=this.shape,c=u.cx,h=u.cy,p=u.r,f=u.r0,d=(p+f)/2,g=u.startAngle,v=u.endAngle,y=(g+v)/2,m=n?Math.abs(p-f)/2:0,_=Math.cos,x=Math.sin,b=c+p*_(g),w=h+p*x(g),S="left",M="top";switch(s){case"startArc":b=c+(f-l)*_(y),w=h+(f-l)*x(y),S="center",M="top";break;case"insideStartArc":b=c+(f+l)*_(y),w=h+(f+l)*x(y),S="center",M="bottom";break;case"startAngle":b=c+d*_(g)+fl(g,l+m,!1),w=h+d*x(g)+dl(g,l+m,!1),S="right",M="middle";break;case"insideStartAngle":b=c+d*_(g)+fl(g,-l+m,!1),w=h+d*x(g)+dl(g,-l+m,!1),S="left",M="middle";break;case"middle":b=c+d*_(y),w=h+d*x(y),S="center",M="middle";break;case"endArc":b=c+(p+l)*_(y),w=h+(p+l)*x(y),S="center",M="bottom";break;case"insideEndArc":b=c+(p-l)*_(y),w=h+(p-l)*x(y),S="center",M="top";break;case"endAngle":b=c+d*_(v)+fl(v,l+m,!0),w=h+d*x(v)+dl(v,l+m,!0),S="left",M="middle";break;case"insideEndAngle":b=c+d*_(v)+fl(v,-l+m,!0),w=h+d*x(v)+dl(v,-l+m,!0),S="right",M="middle";break;default:return ba(i,r,o)}return i=i||{},i.x=b,i.y=w,i.align=S,i.verticalAlign=M,i}}function NC(e,t,n,i){if(yt(i)){e.setTextConfig({rotation:i});return}else if(B(t)){e.setTextConfig({rotation:0});return}var r=e.shape,o=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,s=(o+a)/2,l,u=n(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function fl(e,t,n){return t*Math.sin(e)*(n?-1:1)}function dl(e,t,n){return t*Math.cos(e)*(n?1:-1)}function $o(e,t,n){var i=e.get("borderRadius");if(i==null)return n?{cornerRadius:0}:null;B(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Z(i,function(o){return ai(o,r)})}}var pp=Math.max,fp=Math.min,EC=(function(e){F(t,e);function t(){var n=e.call(this)||this;return n.type=Or,n._isFirstFrame=!0,n}return t.prototype.render=function(n,i,r,o){this._model=n,this._removeOnRenderedListener(r),this._updateDrawMode(n);var a=n.get("coordinateSystem");(a==="cartesian2d"||a==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,i,r):this._renderNormal(n,i,r,o))},t.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},t.prototype.incrementalRender=function(n,i){this._progressiveEls=[],this._incrementalRenderLarge(n,i)},t.prototype.eachRendered=function(n){ko(this._progressiveEls||this.group,n)},t.prototype._updateDrawMode=function(n){var i=n.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(n,i,r,o){var a=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),h;u.type==="cartesian2d"?h=c.isHorizontal():u.type==="polar"&&(h=c.dim==="angle");var p=n.isAnimationEnabled()?n:null,f=zC(n,u);f&&this._enableRealtimeSort(f,s,r);var d=n.get("clip",!0)||f,g=u.getArea();a.removeClipPath();var v=n.get("roundCap",!0),y=n.get("showBackground",!0),m=n.getModel("backgroundStyle"),_=m.get("borderRadius")||0,x=[],b=this._backgroundEls,w=o&&o.isInitSort,S=o&&o.type==="changeAxisOrder";function M(I){var A=gl[u.type](s,I);if(!A)return null;var D=UC(u,h,A);return D.useStyle(m.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),x[I]=D,D}s.diff(l).add(function(I){var A=s.getItemModel(I),D=gl[u.type](s,I,A);if(D&&(y&&M(I),!(!s.hasValue(I)||!h0[u.type](D)))){var L=!1;d&&(L=s0[u.type](g,D));var P=l0[u.type](n,s,I,D,h,p,c.model,!1,v);f&&(P.forceLabelAnimation=!0),f0(P,s,I,A,D,n,h,u.type==="polar"),w?P.attr({shape:D}):f?u0(f,p,P,D,I,h,!1,!1):fe(P,{shape:D},n,I),s.setItemGraphicEl(I,P),a.add(P),P.ignore=L}}).update(function(I,A){var D=s.getItemModel(I),L=gl[u.type](s,I,D);if(L){if(y){var P=void 0;b.length===0?P=M(A):(P=b[A],P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),x[I]=P);var R=gl[u.type](s,I),z=y0(h,R,u);Yt(P,{shape:z},p,I)}var O=l.getItemGraphicEl(A);if(!s.hasValue(I)||!h0[u.type](L)){a.remove(O);return}var E=!1;d&&(E=s0[u.type](g,L),E&&a.remove(O));var G=O&&(O.type==="sector"&&v||O.type==="sausage"&&!v);if(G&&(O&&To(O,n,A),O=null),O?Bc(O):O=l0[u.type](n,s,I,L,h,p,c.model,!0,v),f&&(O.forceLabelAnimation=!0),S){var H=O.getTextContent();if(H){var U=Ss(H);U.prevValue!=null&&(U.prevValue=U.value)}}else f0(O,s,I,D,L,n,h,u.type==="polar");w?O.attr({shape:L}):f?u0(f,p,O,L,I,h,!0,S):Yt(O,{shape:L},n,I,null),s.setItemGraphicEl(I,O),O.ignore=E,a.add(O)}}).remove(function(I){var A=l.getItemGraphicEl(I);A&&To(A,n,I)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Pt);T.removeAll();for(var k=0;k<x.length;++k)T.add(x[k]);a.add(T),this._backgroundEls=x,this._data=s},t.prototype._renderLarge=function(n,i,r){this._clear(),g0(n,this.group),this._updateLargeClip(n)},t.prototype._incrementalRenderLarge=function(n,i){this._removeBackground(),g0(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(n){var i=n.get("clip",!0)&&dk(n.coordinateSystem,!1,n),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(n,i,r){var o=this;if(i.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,n,r),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(n,i,r){var o=[];return n.each(n.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:Z(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(n,i,r){for(var o=r.scale,a=n.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),h=c<0?Number.MIN_VALUE:i(n.indexOfRawIndex(c));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(n,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(n,i,r,o){if(this._isOrderChangedWithinSameData(n,i,r)){var a=this._dataSort(n,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(n,i,r){var o=i.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},t.prototype.remove=function(n,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(n,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var i=this.group,r=this._data;n&&n.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){To(o,n,ut(o).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Or,t})(ke),s0={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=pp(t.x,e.x),s=fp(t.x+t.width,r),l=pp(t.y,e.y),u=fp(t.y+t.height,o),c=s<a,h=u<l;return t.x=c&&a>r?s:a,t.y=h&&l>o?u:l,t.width=c?0:s-a,t.height=h?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||h},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=fp(t.r,e.r),o=pp(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}return a}},l0={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new Ct({shape:N({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,h=r?"height":"width";c[h]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?a0:Nn,c=new u({shape:i,z2:1});c.name="item";var h=p0(r);if(c.calculateTextPosition=RC(h,{isRoundCap:u===a0}),o){var p=c.shape,f=r?"r":"endAngle",d={};p[f]=r?i.r0:i.startAngle,d[f]=i[f],(s?Yt:fe)(c,{shape:d},o)}return c}};function zC(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function u0(e,t,n,i,r,o,a,s){var l,u;o?(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||(a?Yt:fe)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?Yt:fe)(n,{shape:u},c,r)}function c0(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var BC=["x","y","width","height"],FC=["cx","cy","r","startAngle","endAngle"],h0={cartesian2d:function(e){return!c0(e,BC)},polar:function(e){return!c0(e,FC)}},gl={cartesian2d:function(e,t,n){var i=e.getItemLayout(t);if(!i)return null;var r=n?GC(n,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.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 VC(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function p0(e){return(function(t){var n=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+n;default:return i}}})(e)}function f0(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,c=$o(i.getModel("itemStyle"),u,!0);N(u,c),e.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;e.setShape("r",h)}e.useStyle(l);var p=i.getShallow("cursor");p&&e.attr("cursor",p);var f=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?XC(r,o.coordinateSystem):YC(r,o.coordinateSystem),d=Ci(i);vr(e,d,{labelFetcher:o,labelDataIndex:n,defaultText:Bh(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(s&&g){var v=i.get(["label","position"]);e.textConfig.inside=v==="middle"?!0:null,NC(e,v==="outside"?f:v,p0(a),i.get(["label","rotate"]))}BM(g,d,o.getRawValue(n),function(m){return Py(t,m)});var y=i.getModel(["emphasis"]);pr(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),as(e,i),VC(r)&&(e.style.fill="none",e.style.stroke="none",C(e.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function GC(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var HC=(function(){function e(){}return e})(),d0=(function(e){F(t,e);function t(n){var i=e.call(this,n)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new HC},t.prototype.buildPath=function(n,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<r.length;c+=3)l[o]=u,l[a]=r[c+2],s[o]=r[c+o],s[a]=r[c+a],n.rect(s[0],s[1],l[0],l[1])},t})(dt);function g0(e,t,n,i){var r=e.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=e.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),c=i?hS(e):0;if(u){var h=new d0({shape:{points:u},incremental:c,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),t.add(h),n&&n.push(h)}var p=new d0({shape:{points:r.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});p.baseDimIdx=o,p.largeDataIndices=a,p.barWidth=s,t.add(p),p.useStyle(r.getVisual("style")),p.style.stroke=null,ut(p).seriesIndex=e.seriesIndex,e.get("silent")||(p.on("mousedown",v0),p.on("mousemove",v0)),n&&n.push(p)}var v0=cp(function(e){var t=this,n=WC(t,e.offsetX,e.offsetY);ut(t).dataIndex=n>=0?n:null},30,!1);function WC(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,h=o.length/3;c<h;c++){var p=c*3;if(l[i]=u,l[r]=o[p+2],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),t>=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function y0(e,t,n){if(Wh(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}else{var r=n.getArea(),o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function UC(e,t,n){var i=e.type==="polar"?Nn:Ct;return new i({shape:y0(t,n,e),silent:!0,z2:0})}function XC(e,t){if(e.height===0){var n=t.getOtherAxis(t.getBaseAxis());return n.inverse?"bottom":"top"}return e.height>0?"bottom":"top"}function YC(e,t){if(e.width===0){var n=t.getOtherAxis(t.getBaseAxis());return n.inverse?"left":"right"}return e.width>=0?"right":"left"}function ZC(e){e.registerChartView(EC),e.registerSeriesModel(PC),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,CC(Or)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,DC(Or)),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,ym(Or)),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var i=t.componentType||"series";n.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})}),LC(e)}function qC(e,t){function n(i,r){var o=[];return i.eachComponent({mainType:"series",subType:e,query:r},function(a){o.push(a.seriesIndex)}),o}C([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){r=N({},r),a.dispatchAction(N(r,{type:i[1],seriesIndex:n(o,r)}))})})}function Rr(e,t,n,i,r){var o=e+t;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=r.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var h=a.getData(),p=wi(h,r.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:B(p)?h.getName(p[0]):h.getName(p),selected:q(l)?l:N({},l)})}})}function jC(e,t,n){e.on("selectchanged",function(i){var r=n.getModel();i.isFromClick?(Rr("map","selectchanged",t,r,i),Rr("pie","selectchanged",t,r,i)):i.fromAction==="select"?(Rr("map","selected",t,r,i),Rr("pie","selected",t,r,i)):i.fromAction==="unselect"&&(Rr("map","unselected",t,r,i),Rr("pie","unselected",t,r,i))})}function KC(e){return{seriesType:e,reset:function(t,n){var i=n.findComponents({mainType:"legend"});if(!(!i||!i.length)){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}function $C(e,t,n){t=B(t)&&{coordDimensions:t}||N({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Zv(i,t).dimensions,o=new No(r,e);return o.initData(i,n),o}var QC=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,n)},e})(),Yn="pie",JC=ht(),m0=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new QC(_t(this.getData,this),_t(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return $C(this,{coordDimensions:["value"],encodeDefaulter:xt(qM,this)})},t.prototype.getDataParams=function(n){var i=this.getData(),r=JC(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=Ew(a,i.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(n){Qa(n,"labelLine",["show"]);var i=n.labelLine,r=n.emphasis.labelLine;i.show=i.show&&n.label.show,r.show=r.show&&n.emphasis.label.show},t.type="series."+Yn,t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(ze);xT({fullType:m0.type,getCoord2:function(e){return e.getShallow("center")}});function _0(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,h=i-t,p=Math.sqrt(c*c+h*h);c/=p,h/=p;var f=l*c+u*h,d=f/p;d*=p;var g=a[0]=e+d*c,v=a[1]=t+d*h;return Math.sqrt((g-r)*(g-r)+(v-o)*(v-o))}var Zn=new it,kt=new it,Gt=new it,qn=new it,ln=new it,vl=[],te=new it;function tD(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Zn.fromArray(e[0]),kt.fromArray(e[1]),Gt.fromArray(e[2]),it.sub(qn,Zn,kt),it.sub(ln,Gt,kt);var n=qn.len(),i=ln.len();if(!(n<.001||i<.001)){qn.scale(1/n),ln.scale(1/i);var r=qn.dot(ln),o=Math.cos(t);if(o<r){var a=_0(kt.x,kt.y,Gt.x,Gt.y,Zn.x,Zn.y,vl);te.fromArray(vl),te.scaleAndAdd(ln,a/Math.tan(Math.PI-t));var s=Gt.x!==kt.x?(te.x-kt.x)/(Gt.x-kt.x):(te.y-kt.y)/(Gt.y-kt.y);if(isNaN(s))return;s<0?it.copy(te,kt):s>1&&it.copy(te,Gt),te.toArray(e[1])}}}}function eD(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Zn.fromArray(e[0]),kt.fromArray(e[1]),Gt.fromArray(e[2]),it.sub(qn,kt,Zn),it.sub(ln,Gt,kt);var i=qn.len(),r=ln.len();if(!(i<.001||r<.001)){qn.scale(1/i),ln.scale(1/r);var o=qn.dot(t),a=Math.cos(n);if(o<a){var s=_0(kt.x,kt.y,Gt.x,Gt.y,Zn.x,Zn.y,vl);te.fromArray(vl);var l=Math.PI/2,u=Math.acos(ln.dot(t)),c=l+u-n;if(c>=l)it.copy(te,Gt);else{te.scaleAndAdd(ln,s/Math.tan(Math.PI/2-c));var h=Gt.x!==kt.x?(te.x-kt.x)/(Gt.x-kt.x):(te.y-kt.y)/(Gt.y-kt.y);if(isNaN(h))return;h<0?it.copy(te,kt):h>1&&it.copy(te,Gt)}te.toArray(e[1])}}}}function dp(e,t,n,i){var r=n==="normal",o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a=a===!0?.3:Math.max(+a,0)||0,o.shape=o.shape||{},o.shape.smooth=a;var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function nD(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=gu(i[0],i[1]),o=gu(i[1],i[2]);if(!r||!o){e.lineTo(i[1][0],i[1][1]),e.lineTo(i[2][0],i[2][1]);return}var a=Math.min(r,o)*n,s=vu([],i[1],i[0],a/r),l=vu([],i[1],i[2],a/o),u=vu([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c<i.length;c++)e.lineTo(i[c][0],i[c][1])}function iD(e,t,n){var i=e.getTextGuideLine(),r=e.getTextContent();if(!r){i&&e.removeTextGuideLine();return}for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<es.length;l++){var u=es[l],c=t[u],h=u==="normal";if(c){var p=c.get("show"),f=h?s:Y(r.states[u]&&r.states[u].ignore,s);if(f||!Y(p,a)){var d=h?i:i&&i.states[u];d&&(d.ignore=!0),i&&dp(i,!0,u,c);continue}i||(i=new So,e.setTextGuideLine(i),!h&&(s||!a)&&dp(i,!0,"normal",t.normal),e.stateProxy&&(i.stateProxy=e.stateProxy)),dp(i,!1,u,c)}}if(i){vt(i.style,n),i.style.fill=null;var g=o.get("showAbove"),v=e.textGuideLineConfig=e.textGuideLineConfig||{};v.showAbove=g||!1,i.buildPath=nD}}function rD(e,t){t=t||"labelLine";for(var n={normal:e.getModel(t)},i=0;i<se.length;i++){var r=se[i];n[r]=e.getModel([r,t])}return n}var oD=Math.PI/180;function x0(e,t,n,i,r,o,a,s,l,u){if(e.length<2)return;function c(g){for(var v=g.rB,y=v*v,m=0;m<g.list.length;m++){var _=g.list[m],x=Math.abs(_.label.y-n),b=i+_.len,w=b*b,S=Math.sqrt(Math.abs((1-x*x/y)*w)),M=t+(S+_.len2)*r,T=M-_.label.x,k=_.targetTextWidth-T*r;b0(_,k,!0),_.label.x=M}}function h(g){for(var v={list:[],maxY:0},y={list:[],maxY:0},m=0;m<g.length;m++)if(g[m].labelAlignTo==="none"){var _=g[m],x=_.label.y>n?y:v,b=Math.abs(_.label.y-n);if(b>=x.maxY){var w=_.label.x-t-_.len2*r,S=i+_.len,M=Math.abs(w)<S?Math.sqrt(b*b/(1-w*w/S/S)):S;x.rB=M,x.maxY=b}x.list.push(_)}c(v),c(y)}for(var p=e.length,f=0;f<p;f++)if(e[f].position==="outer"&&e[f].labelAlignTo==="labelLine"){var d=e[f].label.x-u;e[f].linePoints[1][0]+=d,e[f].label.x=u}E2(e,1,l,l+a)&&h(e)}function aD(e,t,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,p=0;p<e.length;p++){var f=e[p].label;gp(e[p])||(f.x<t?(c=Math.min(c,f.x),l.push(e[p])):(h=Math.max(h,f.x),u.push(e[p])))}for(var p=0;p<e.length;p++){var d=e[p];if(!gp(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var f=d.label,g=d.linePoints,v=void 0;d.labelAlignTo==="edge"?f.x<t?v=g[2][0]-d.labelDistance-a-d.edgeDistance:v=a+r-d.edgeDistance-g[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?f.x<t?v=c-a-d.bleedMargin:v=a+r-h-d.bleedMargin:f.x<t?v=f.x-a-d.bleedMargin:v=a+r-f.x-d.bleedMargin,d.targetTextWidth=v,b0(d,v,!1)}}x0(u,t,n,i,1,r,o,a,s,h),x0(l,t,n,i,-1,r,o,a,s,c);for(var p=0;p<e.length;p++){var d=e[p];if(!gp(d)&&d.linePoints){var f=d.label,g=d.linePoints,y=d.labelAlignTo==="edge",m=f.style.padding,_=m?m[1]+m[3]:0,x=f.style.backgroundColor?0:_,b=d.rect.width+x,w=g[1][0]-g[2][0];y?f.x<t?g[2][0]=a+d.edgeDistance+b+d.labelDistance:g[2][0]=a+r-d.edgeDistance-b-d.labelDistance:(f.x<t?g[2][0]=f.x+d.labelDistance:g[2][0]=f.x-d.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=f.y}}}function b0(e,t,n){if(e.labelStyleWidth==null){var i=e.label,r=i.style,o=e.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,c=o.width+(a?0:l);if(t<c||n){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var h=i.getBoundingRect();i.setStyle("width",Math.ceil(h.width)),i.setStyle("backgroundColor",a)}else{var p=t-l,f=t<c?p:n?p>e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}w0(o,i)}}}function w0(e,t){S0.rect=e,Em(S0,t,sD)}var sD={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},S0={};function gp(e){return e.position==="center"}function lD(e){var t=e.getData(),n=[],i,r,o=!1,a=(e.get("minShowLabelAngle")||0)*oD,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,h=s.y,p=s.height;function f(w){w.ignore=!0}function d(w){if(!w.ignore)return!0;for(var S in w.states)if(w.states[S].ignore===!1)return!0;return!1}t.each(function(w){var S=t.getItemGraphicEl(w),M=S.shape,T=S.getTextContent(),k=S.getTextGuideLine(),I=t.getItemModel(w),A=I.getModel("label"),D=A.get("position")||I.get(["emphasis","label","position"]),L=A.get("distanceToLabelLine"),P=A.get("alignTo"),R=bt(A.get("edgeDistance"),u),z=A.get("bleedMargin");z==null&&(z=Math.min(u,p)>200?10:2);var O=I.getModel("labelLine"),E=O.get("length");E=bt(E,u);var G=O.get("length2");if(G=bt(G,u),Math.abs(M.endAngle-M.startAngle)<a){C(T.states,f),T.ignore=!0,k&&(C(k.states,f),k.ignore=!0);return}if(d(T)){var H=(M.startAngle+M.endAngle)/2,U=Math.cos(H),X=Math.sin(H),W,et,ot,At;i=M.cx,r=M.cy;var Rt=D==="inside"||D==="inner";if(D==="center")W=M.cx,et=M.cy,At="center";else{var gt=(Rt?(M.r+M.r0)/2*U:M.r*U)+i,Mt=(Rt?(M.r+M.r0)/2*X:M.r*X)+r;if(W=gt+U*3,et=Mt+X*3,!Rt){var J=gt+U*(E+l-M.r),at=Mt+X*(E+l-M.r),Ue=J+(U<0?-1:1)*G,Nt=at;P==="edge"?W=U<0?c+R:c+u-R:W=Ue+(U<0?-L:L),et=Nt,ot=[[gt,Mt],[J,at],[Ue,Nt]]}At=Rt?"center":P==="edge"?U>0?"right":"left":U>0?"left":"right"}var Mn=Math.PI,un=0,$n=A.get("rotate");if(yt($n))un=$n*(Mn/180);else if(D==="center")un=0;else if($n==="radial"||$n===!0){var Tx=U<0?-H+Mn:-H;un=Tx}else if($n==="tangential"||$n==="tangential-noflip"&&D!=="outside"&&D!=="outer"){var Zi=Math.atan2(U,X);Zi<0&&(Zi=Mn*2+Zi);var Ix=X>0;Ix&&$n!=="tangential-noflip"&&(Zi=Mn+Zi),un=Zi-Mn}if(o=!!un,T.x=W,T.y=et,T.rotation=un,T.setStyle({verticalAlign:"middle"}),Rt){T.setStyle({align:At});var ql=T.states.select;ql&&(ql.x+=T.x,ql.y+=T.y)}else{var jl=new Q(0,0,0,0);w0(jl,T),n.push({label:T,labelLine:k,position:D,len:E,len2:G,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new it(U,X),linePoints:ot,textAlign:At,labelDistance:L,labelAlignTo:P,edgeDistance:R,bleedMargin:z,rect:jl,unconstrainedWidth:jl.width,labelStyleWidth:T.style.width})}S.setTextConfig({inside:Rt})}}),!o&&e.get("avoidLabelOverlap")&&aD(n,i,r,l,u,p,c,h);for(var g=0;g<n.length;g++){var v=n[g],y=v.label,m=v.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:v.textAlign}),_&&(C(y.states,f),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(m){var b=v.linePoints;_||!b?(C(m.states,f),m.ignore=!0):(tD(b,v.minTurnAngle),eD(b,v.surfaceNormal,v.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new it(b[0][0],b[0][1])})}}}var M0=Math.PI*2,yl=Math.PI/180,uD=pS(Yn,cD);function cD(e,t){e.eachSeriesByType(Yn,function(n){var i=n.getData(),r=i.mapDimension("value"),o=lI(n,t),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=o.viewRect,h=-n.get("startAngle")*yl,p=n.get("endAngle"),f=n.get("padAngle")*yl;p=p==="auto"?h-M0:-p*yl;var d=n.get("minAngle")*yl,g=d+f,v=0;i.each(r,function(R){!isNaN(R)&&v++});var y=i.getSum(r),m=Math.PI/(y||v)*2,_=n.get("clockwise"),x=n.get("roseType"),b=n.get("stillShowZeroSum"),w=i.getDataExtent(r);w[0]=0;var S=_?1:-1,M=[h,p],T=S*f/2;Ed(M,!_),h=M[0],p=M[1];var k=T0(n);k.startAngle=h,k.endAngle=p,k.clockwise=_,k.cx=a,k.cy=s,k.r=l,k.r0=u;var I=Math.abs(p-h),A=I,D=0,L=h;if(i.setLayout({viewRect:c,r:l}),i.each(r,function(R,z){var O;if(isNaN(R)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:a,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?O=y===0&&b?m:R*m:O=I/v,O<g?(O=g,A-=g):D+=R;var E=L+S*O,G=0,H=0;f>O?(G=L+S*O/2,H=G):(G=L+T,H=E-T),i.setItemLayout(z,{angle:O,startAngle:G,endAngle:H,clockwise:_,cx:a,cy:s,r0:u,r:x?oc(R,w,[u,l]):l}),L=E}),A<M0&&v)if(A<=.001){var P=I/v;i.each(r,function(R,z){if(!isNaN(R)){var O=i.getItemLayout(z);O.angle=P;var E=0,G=0;P<f?(E=h+S*(z+1/2)*P,G=E):(E=h+S*z*P+T,G=h+S*(z+1)*P-T),O.startAngle=E,O.endAngle=G}})}else m=A/D,L=h,i.each(r,function(R,z){if(!isNaN(R)){var O=i.getItemLayout(z),E=O.angle===g?g:R*m,G=0,H=0;E<f?(G=L+S*E/2,H=G):(G=L+T,H=L+S*E-T),O.startAngle=G,O.endAngle=H,L+=S*E}})})}var T0=ht(),hD=(function(e){F(t,e);function t(n,i,r){var o=e.call(this)||this;o.z2=2;var a=new $t;return o.setTextContent(a),o.updateData(n,i,r,!0),o}return t.prototype.updateData=function(n,i,r,o){var a=this,s=n.hostModel,l=n.getItemModel(i),u=l.getModel("emphasis"),c=n.getItemLayout(i),h=N($o(l.getModel("itemStyle"),c,!0),c);if(isNaN(h.startAngle)){a.setShape(h);return}if(o){a.setShape(h);var p=s.getShallow("animationType");s.ecModel.ssr?(fe(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=h.cx,a.originY=h.cy):p==="scale"?(a.shape.r=c.r0,fe(a,{shape:{r:c.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),fe(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,i)):(a.shape.endAngle=c.startAngle,Yt(a,{shape:{endAngle:c.endAngle}},s,i))}else Bc(a),Yt(a,{shape:h},s,i);a.useStyle(n.getItemVisual(i,"style")),as(a,l);var f=(c.startAngle+c.endAngle)/2,d=s.get("selectedOffset"),g=Math.cos(f)*d,v=Math.sin(f)*d,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,n,i),a.ensureState("emphasis").shape=N({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},$o(u.getModel("itemStyle"),c)),N(a.ensureState("select"),{x:g,y:v,shape:$o(l.getModel(["select","itemStyle"]),c)}),N(a.ensureState("blur"),{shape:$o(l.getModel(["blur","itemStyle"]),c)});var m=a.getTextGuideLine(),_=a.getTextContent();m&&N(m.ensureState("select"),{x:g,y:v}),N(_.ensureState("select"),{x:g,y:v}),pr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(n,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),u=l&&l.fill,c=l&&l.opacity;vr(o,Ci(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(r,"normal")||i.getName(r)});var h=o.getTextContent();o.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var p=a.get(["label","position"]);if(p!=="outside"&&p!=="outer")o.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new So,this.setTextGuideLine(f)),iD(this,rD(a),{stroke:u,opacity:Qn(s.get(["lineStyle","opacity"]),c,1)})}},t})(Nn),pD=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=Yn,n.ignoreLabelLineUpdate=!0,n}return t.prototype.render=function(n,i,r,o){var a=n.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),h=1;isNaN(c&&c.startAngle)&&h<a.count();++h)c=a.getItemLayout(h);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var p=T0(n),f=new Nn({shape:rt(p)});f.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=f,l.add(f)}a.diff(s).add(function(d){var g=new hD(a,d,u);a.setItemGraphicEl(d,g),l.add(g)}).update(function(d,g){var v=s.getItemGraphicEl(g);v.updateData(a,d,u),v.off("click"),l.add(v),a.setItemGraphicEl(d,v)}).remove(function(d){var g=s.getItemGraphicEl(d);To(g,n,d)}).execute(),lD(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(n,i){var r=i.getData(),o=r.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},t.type=Yn,t})(ke);function fD(e){return{seriesType:e,reset:function(t,n){var i=t.getData();i.filterSelf(function(r){var o=i.mapDimension("value"),a=i.get(o,r);return!(yt(a)&&!isNaN(a)&&a<0)})}}}function dD(e){e.registerChartView(pD),e.registerSeriesModel(m0),qC(Yn,e.registerAction),e.registerLayout(uD),e.registerProcessor(KC(Yn)),e.registerProcessor(fD(Yn))}var Nr=(function(){function e(t,n){this.target=t,this.topTarget=n&&n.topTarget}return e})(),gD=(function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var n=t.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Nr(n,t),"dragstart",t.event))},e.prototype._drag=function(t){var n=this._draggingTarget;if(n){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,n.drift(o,a,t),this.handler.dispatchToElement(new Nr(n,t),"drag",t.event);var s=this.handler.findHover(i,r,n).target,l=this._dropTarget;this._dropTarget=s,n!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Nr(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Nr(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Nr(n,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Nr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e})(),vD=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vp=[],yD=nt.browser.firefox&&+nt.browser.version.split(".")[0]<39;function yp(e,t,n,i){return n=n||{},i?I0(e,t,n):yD&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):I0(e,t,n),n}function I0(e,t,n){if(nt.domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ty(e)){var o=e.getBoundingClientRect();n.zrX=i-o.left,n.zrY=r-o.top;return}else if(fh(vp,e,i,r)){n.zrX=vp[0],n.zrY=vp[1];return}}n.zrX=n.zrY=0}function mp(e){return e||window.event}function De(e,t,n){if(t=mp(t),t.zrX!=null)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&yp(e,o,t,n)}else{yp(e,t,t,n);var a=mD(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&vD.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function mD(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(n==null||i==null)return t;var r=Math.abs(i!==0?i:n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function _D(e,t,n,i){e.addEventListener(t,n,i)}function xD(e,t,n,i){e.removeEventListener(t,n,i)}var k0=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},bD=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,i){return this._doTrack(t,n,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:n,event:t},a=0,s=r.length;a<s;a++){var l=r[a],u=yp(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var n in _p)if(_p.hasOwnProperty(n)){var i=_p[n](this._track,t);if(i)return i}},e})();function C0(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}function wD(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var _p={pinch:function(e,t){var n=e.length;if(n){var i=(e[n-1]||{}).points,r=(e[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=C0(i)/C0(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=wD(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},D0="silent";function SD(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:MD}}function MD(){k0(this.event)}var TD=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Qe),Qo=(function(){function e(t,n){this.x=t,this.y=n}return e})(),ID=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],xp=new Q(0,0,0,0),A0=(function(e){F(t,e);function t(n,i,r,o,a){var s=e.call(this)||this;return s._hovered=new Qo(0,0),s.storage=n,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new TD,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new gD(s),s}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(C(ID,function(i){n.on&&n.on(i,this[i],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var i=n.zrX,r=n.zrY,o=P0(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new Qo(i,r):this.findHover(i,r),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"mouseout",n),this.dispatchToElement(l,"mousemove",n),u&&u!==s&&this.dispatchToElement(l,"mouseover",n)},t.prototype.mouseout=function(n){var i=n.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new Qo(0,0)},t.prototype.dispatch=function(n,i){var r=this[n];r&&r.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var i=this.proxy;i.setCursor&&i.setCursor(n)},t.prototype.dispatchToElement=function(n,i,r){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+i,s=SD(i,n,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(n,i,r){var o=this.storage.getDisplayList(),a=new Qo(n,i);if(L0(o,a,n,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Q(n-u,i-u,l,l),h=o.length-1;h>=0;h--){var p=o[h];p!==r&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(xp.copy(p.getBoundingRect()),p.transform&&xp.applyTransform(p.transform),xp.intersect(c)&&s.push(p))}if(s.length)for(var f=4,d=Math.PI/12,g=Math.PI*2,v=0;v<u;v+=f)for(var y=0;y<g;y+=d){var m=n+v*Math.cos(y),_=i+v*Math.sin(y);if(L0(s,a,m,_,r),a.target)return a}}return a},t.prototype.processGesture=function(n,i){this._gestureMgr||(this._gestureMgr=new bD);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;n.gestureEvent=a;var s=new Qo;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t})(Qe);C(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){A0.prototype[e]=function(t){var n=t.zrX,i=t.zrY,r=P0(this,n,i),o,a;if((e!=="mouseup"||!r)&&(o=this.findHover(n,i),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||gu(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function kD(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var i=e,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,n))return!1}i.silent&&(r=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return r?D0:!0}return!1}function L0(e,t,n,i,r){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=kD(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==D0)){t.target=a;break}}}function P0(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}var O0=32,Jo=7;function CD(e){for(var t=0;e>=O0;)t|=e&1,e>>=1;return e+t}function R0(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){for(;r<n&&i(e[r],e[r-1])<0;)r++;DD(e,t,r)}else for(;r<n&&i(e[r],e[r-1])>=0;)r++;return r-t}function DD(e,t,n){for(n--;t<n;){var i=e[t];e[t++]=e[n],e[n--]=i}}function N0(e,t,n,i,r){for(i===t&&i++;i<n;i++){for(var o=e[i],a=t,s=i,l;a<s;)l=a+s>>>1,r(o,e[l])<0?s=l:a=l+1;var u=i-a;switch(u){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;u>0;)e[a+u]=e[a+u-1],u--}e[a]=o}}function bp(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){for(s=i-r;l<s&&o(e,t[n+r+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(e,t[n+r-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function wp(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){for(s=r+1;l<s&&o(e,t[n+r-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(e,t[n+r+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var c=a+(l-a>>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function AD(e,t){var n=Jo,i,r,o=0,a=[];i=[],r=[];function s(f,d){i[o]=f,r[o]=d,o+=1}function l(){for(;o>1;){var f=o-2;if(f>=1&&r[f-1]<=r[f]+r[f+1]||f>=2&&r[f-2]<=r[f]+r[f-1])r[f-1]<r[f+1]&&f--;else if(r[f]>r[f+1])break;c(f)}}function u(){for(;o>1;){var f=o-2;f>0&&r[f-1]<r[f+1]&&f--,c(f)}}function c(f){var d=i[f],g=r[f],v=i[f+1],y=r[f+1];r[f]=g+y,f===o-3&&(i[f+1]=i[f+2],r[f+1]=r[f+2]),o--;var m=wp(e[v],e,d,g,0,t);d+=m,g-=m,g!==0&&(y=bp(e[d+g-1],e,v,y,y-1,t),y!==0&&(g<=y?h(d,g,v,y):p(d,g,v,y)))}function h(f,d,g,v){var y=0;for(y=0;y<d;y++)a[y]=e[f+y];var m=0,_=g,x=f;if(e[x++]=e[_++],--v===0){for(y=0;y<d;y++)e[x+y]=a[m+y];return}if(d===1){for(y=0;y<v;y++)e[x+y]=e[_+y];e[x+v]=a[m];return}for(var b=n,w,S,M;;){w=0,S=0,M=!1;do if(t(e[_],a[m])<0){if(e[x++]=e[_++],S++,w=0,--v===0){M=!0;break}}else if(e[x++]=a[m++],w++,S=0,--d===1){M=!0;break}while((w|S)<b);if(M)break;do{if(w=wp(e[_],a,m,d,0,t),w!==0){for(y=0;y<w;y++)e[x+y]=a[m+y];if(x+=w,m+=w,d-=w,d<=1){M=!0;break}}if(e[x++]=e[_++],--v===0){M=!0;break}if(S=bp(a[m],e,_,v,0,t),S!==0){for(y=0;y<S;y++)e[x+y]=e[_+y];if(x+=S,_+=S,v-=S,v===0){M=!0;break}}if(e[x++]=a[m++],--d===1){M=!0;break}b--}while(w>=Jo||S>=Jo);if(M)break;b<0&&(b=0),b+=2}if(n=b,n<1&&(n=1),d===1){for(y=0;y<v;y++)e[x+y]=e[_+y];e[x+v]=a[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)e[x+y]=a[m+y]}}function p(f,d,g,v){var y=0;for(y=0;y<v;y++)a[y]=e[g+y];var m=f+d-1,_=v-1,x=g+v-1,b=0,w=0;if(e[x--]=e[m--],--d===0){for(b=x-(v-1),y=0;y<v;y++)e[b+y]=a[y];return}if(v===1){for(x-=d,m-=d,w=x+1,b=m+1,y=d-1;y>=0;y--)e[w+y]=e[b+y];e[x]=a[_];return}for(var S=n;;){var M=0,T=0,k=!1;do if(t(a[_],e[m])<0){if(e[x--]=e[m--],M++,T=0,--d===0){k=!0;break}}else if(e[x--]=a[_--],T++,M=0,--v===1){k=!0;break}while((M|T)<S);if(k)break;do{if(M=d-wp(a[_],e,f,d,d-1,t),M!==0){for(x-=M,m-=M,d-=M,w=x+1,b=m+1,y=M-1;y>=0;y--)e[w+y]=e[b+y];if(d===0){k=!0;break}}if(e[x--]=a[_--],--v===1){k=!0;break}if(T=v-bp(e[m],a,0,v,v-1,t),T!==0){for(x-=T,_-=T,v-=T,w=x+1,b=_+1,y=0;y<T;y++)e[w+y]=a[b+y];if(v<=1){k=!0;break}}if(e[x--]=e[m--],--d===0){k=!0;break}S--}while(M>=Jo||T>=Jo);if(k)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),v===1){for(x-=d,m-=d,w=x+1,b=m+1,y=d-1;y>=0;y--)e[w+y]=e[b+y];e[x]=a[_]}else{if(v===0)throw new Error;for(b=x-(v-1),y=0;y<v;y++)e[b+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function ml(e,t,n,i){n||(n=0),i||(i=e.length);var r=i-n;if(!(r<2)){var o=0;if(r<O0){o=R0(e,n,i,t),N0(e,n,i,n+o,t);return}var a=AD(e,t),s=CD(r);do{if(o=R0(e,n,i,t),o<s){var l=r;l>s&&(l=s),N0(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(r!==0);a.forceMergeRuns()}}var E0=!1;function Sp(){E0||(E0=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function z0(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var LD=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=z0}return e.prototype.traverse=function(t,n){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,n)},e.prototype.getDisplayList=function(t,n){n=n||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(n),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var n=this._roots,i=this._displayList,r=0,o=n.length;r<o;r++)this._updateAndAddDisplayable(n[r],null,t);i.length=this._displayListLen,ml(i,z0)},e.prototype._updateAndAddDisplayable=function(t,n,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath(),o=n&&n.length,a=0,s=t.__clipPaths;if(!t.ignoreClip&&(o||r)){if(s||(s=t.__clipPaths=[]),o)for(var l=0;l<n.length;l++)s[a++]=n[l];for(var u=r,c=t;u;)u.parent=c,u.updateTransform(),s[a++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=a),t.childrenRef){for(var h=t.childrenRef(),p=0;p<h.length;p++){var f=h[p];t.__dirty&&(f.__dirty|=oe),this._updateAndAddDisplayable(f,s,i)}t.__dirty=0}else{var d=t;isNaN(d.z)&&(Sp(),d.z=0),isNaN(d.z2)&&(Sp(),d.z2=0),isNaN(d.zlevel)&&(Sp(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var g=t.getDecalElement&&t.getDecalElement();g&&this._updateAndAddDisplayable(g,s,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,s,i);var y=t.getTextContent();y&&this._updateAndAddDisplayable(y,s,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,i=t.length;n<i;n++)this.delRoot(t[n]);return}var r=st(this._roots,t);r>=0&&this._roots.splice(r,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e})(),_l;_l=nt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Er(){return new Date().getTime()}var PD=(function(e){F(t,e);function t(n){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,n=n||{},i.stage=n.stage||{},i}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var i=n.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(n){if(n.animation){var i=n.prev,r=n.next;i?i.next=r:this._head=r,r?r.prev=i:this._tail=i,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var i=n.getClip();i&&this.removeClip(i),n.animation=null},t.prototype.update=function(n){for(var i=Er()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next,s=o.step(i,r);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,n||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function i(){n._running&&(_l(i),!n._paused&&n.update())}_l(i)},t.prototype.start=function(){this._running||(this._time=Er(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Er(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Er()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var i=n.next;n.prev=n.next=n.animation=null,n=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,i){i=i||{},this.start();var r=new Bu(n,i.loop);return this.addAnimator(r),r},t})(Qe),OD=300,Mp=nt.domSupported,Tp=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=Z(e,function(r){var o=r.replace("mouse","pointer");return n.hasOwnProperty(o)?o:r});return{mouse:e,touch:t,pointer:i}})(),B0={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},F0=!1;function Ip(e){var t=e.pointerType;return t==="pen"||t==="touch"}function RD(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function kp(e){e&&(e.zrByTouch=!0)}function ND(e,t){return De(e.dom,new ED(e,t),!0)}function V0(e,t){for(var n=t,i=!1;n&&n.nodeType!==9&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return i}var ED=(function(){function e(t,n){this.stopPropagation=Ht,this.stopImmediatePropagation=Ht,this.preventDefault=Ht,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),Ge={mousedown:function(e){e=De(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=De(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=De(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=De(this.dom,e);var t=e.toElement||e.relatedTarget;V0(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){F0=!0,e=De(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){F0||(e=De(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=De(this.dom,e),kp(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ge.mousemove.call(this,e),Ge.mousedown.call(this,e)},touchmove:function(e){e=De(this.dom,e),kp(e),this.handler.processGesture(e,"change"),Ge.mousemove.call(this,e)},touchend:function(e){e=De(this.dom,e),kp(e),this.handler.processGesture(e,"end"),Ge.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<OD&&Ge.click.call(this,e)},pointerdown:function(e){Ge.mousedown.call(this,e)},pointermove:function(e){Ip(e)||Ge.mousemove.call(this,e)},pointerup:function(e){Ge.mouseup.call(this,e)},pointerout:function(e){Ip(e)||Ge.mouseout.call(this,e)}};C(["click","dblclick","contextmenu"],function(e){Ge[e]=function(t){t=De(this.dom,t),this.trigger(e,t)}});var Cp={pointermove:function(e){Ip(e)||Cp.mousemove.call(this,e)},pointerup:function(e){Cp.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function zD(e,t){var n=t.domHandlers;nt.pointerEventsSupported?C(Tp.pointer,function(i){xl(t,i,function(r){n[i].call(e,r)})}):(nt.touchEventsSupported&&C(Tp.touch,function(i){xl(t,i,function(r){n[i].call(e,r),RD(t)})}),C(Tp.mouse,function(i){xl(t,i,function(r){r=mp(r),t.touching||n[i].call(e,r)})}))}function BD(e,t){nt.pointerEventsSupported?C(B0.pointer,n):nt.touchEventsSupported||C(B0.mouse,n);function n(i){function r(o){o=mp(o),V0(e,o.target)||(o=ND(e,o),t.domHandlers[i].call(e,o))}xl(t,i,r,{capture:!0})}}function xl(e,t,n,i){e.mounted[t]=n,e.listenerOpts[t]=i,_D(e.domTarget,t,n,i)}function Dp(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&xD(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var G0=(function(){function e(t,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=n}return e})(),FD=(function(e){F(t,e);function t(n,i){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=n,r.painterRoot=i,r._localHandlerScope=new G0(n,Ge),Mp&&(r._globalHandlerScope=new G0(document,Cp)),zD(r,r._localHandlerScope),r}return t.prototype.dispose=function(){Dp(this._localHandlerScope),Mp&&Dp(this._globalHandlerScope)},t.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},t.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,Mp&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var i=this._globalHandlerScope;n?BD(this,i):Dp(i)}},t})(Qe),bl={},H0={};function VD(e){delete H0[e]}function GD(e){if(!e)return!1;if(typeof e=="string")return Pa(e,1)<Fu;if(e.colorStops){for(var t=e.colorStops,n=0,i=t.length,r=0;r<i;r++)n+=Pa(t[r].color,1);return n/=i,n<Fu}return!1}var HD=(function(){function e(t,n,i){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=n,this.id=t;var o=new LD,a=i.renderer||"canvas";bl[a]||(a=St(bl)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new bl[a](n,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!nt.node&&!nt.worker&&!l?new FD(s.getViewportRoot(),s.root):null,c=i.useCoarsePointer,h=c==null||c==="auto"?nt.touchEventsSupported:!!c,p=44,f;h&&(f=Y(i.pointerSize,p)),this.handler=new A0(o,s,u,s.root,f),this.animation=new PD({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,n),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=GD(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(t){var n,i=Er(),r=this._needsRefresh,o=this._needsRefreshHover;(r||o)&&(n=!0,this._refresh({animUpdate:t,refresh:r,refreshHover:o}));var a=Er();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,i){return this._disposed||this.handler.on(t,n,i),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n<t.length;n++)t[n]instanceof Pt&&t[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,VD(this.id))},e})();function W0(e,t){var n=new HD(Rf(),e,t);return H0[n.id]=n,n}function WD(e,t){bl[e]=t}var U0="";typeof navigator<"u"&&(U0=navigator.platform||"");var zr="rgba(0, 0, 0, 0.2)",X0=K.color.theme[0],UD=Ou(X0,null,null,.9);const Y0={darkMode:"auto",colorBy:"series",color:K.color.theme,gradientColor:[UD,X0],aria:{decal:{decals:[{color:zr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:U0.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var XD=$();function YD(e,t,n){var i=XD.get(t);if(!i)return n;var r=i(e);return r?n.concat(r):n}var wl,ta,Z0,q0="\0_ec_inner",ZD=1,Ap=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,i,r,o,a,s){o=o||{},this.option=null,this._theme=new Tt(o),this._locale=new Tt(a),this._optionManager=s},t.prototype.setOption=function(n,i,r){var o=$0(i);this._optionManager.setOption(n,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(n,i){return this._resetOption(n,$0(i))},t.prototype._resetOption=function(n,i){var r=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");!this.option||n==="recreate"?Z0(this,a):(this.restoreData(),this._mergeOption(a,i)),r=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!n||n==="recreate"||n==="media"){var l=o.getMediaOption(this);l.length&&C(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=$(),u=i&&i.replaceMergeMainTypeMap;YM(this),C(n,function(h,p){h!=null&&(mt.hasClass(p)?p&&(s.push(p),l.set(p,!0)):r[p]=r[p]==null?rt(h):pt(r[p],h,!0))}),u&&u.each(function(h,p){mt.hasClass(p)&&!l.get(p)&&(s.push(p),l.set(p,!0))}),mt.topologicalTravel(s,mt.getAllClassMainTypes(),c,this);function c(h){var p=YD(this,h,Qt(n[h])),f=o.get(h),d=f?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",g=Xw(f,p,d);Qw(g,h,mt),r[h]=null,o.set(h,null),a.set(h,0);var v=[],y=[],m=0,_;C(g,function(x,b){var w=x.existing,S=x.newOption;if(!S)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var M=h==="series",T=mt.getClass(h,x.keyInfo.subType,!M);if(!T)return;if(h==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===T)w.name=x.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var k=N({componentIndex:b},x.keyInfo);w=new T(S,this,this,k),N(w,k),x.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}w?(v.push(w.option),y.push(w),m++):(v.push(void 0),y.push(void 0))},this),r[h]=v,o.set(h,y),a.set(h,m),h==="series"&&wl(this)}this._seriesIndices||wl(this)},t.prototype.getOption=function(){var n=rt(this.option);return C(n,function(i,r){if(mt.hasClass(r)){for(var o=Qt(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!vo(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[r]=o}}),delete n[q0],n},t.prototype.setTheme=function(n){this._theme=new Tt(n),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,i){var r=this._componentsMap.get(n);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(n){var i=n.mainType;if(!i)return[];var r=n.index,o=n.id,a=n.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return r!=null?(l=[],C(Qt(r),function(u){s[u]&&l.push(s[u])})):o!=null?l=j0("id",o,s):a!=null?l=j0("name",a,s):l=Bt(s,function(u){return!!u}),K0(l,n)},t.prototype.findComponents=function(n){var i=n.query,r=n.mainType,o=s(i),a=o?this.queryComponents(o):Bt(this._componentsMap.get(r),function(u){return!!u});return l(K0(a,n));function s(u){var c=r+"Index",h=r+"Id",p=r+"Name";return u&&(u[c]!=null||u[h]!=null||u[p]!=null)?{mainType:r,index:u[c],id:u[h],name:u[p]}:null}function l(u){return n.filter?Bt(u,n.filter):u}},t.prototype.eachComponent=function(n,i,r){var o=this._componentsMap;if(tt(n)){var a=i,s=n;o.each(function(h,p){for(var f=0;h&&f<h.length;f++){var d=h[f];d&&s.call(a,p,d,d.componentIndex)}})}else for(var l=q(n)?o.get(n):j(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&i.call(r,c,c.componentIndex)}},t.prototype.getSeriesByName=function(n){var i=rn(n,null);return Bt(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},t.prototype.getSeriesByType=function(n){return Bt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===n})},t.prototype.getSeries=function(){return Bt(this._componentsMap.get("series"),function(n){return!!n})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(n,i){ta(this),C(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];n.call(i,o,r)},this)},t.prototype.eachRawSeries=function(n,i){C(this._componentsMap.get("series"),function(r){r&&n.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(n,i,r){ta(this),C(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(n,i,r){return C(this.getSeriesByType(n),i,r)},t.prototype.isSeriesFiltered=function(n){return ta(this),this._seriesIndicesMap.get(n.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(n,i){ta(this);var r=[];C(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];n.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=$(r)},t.prototype.restoreData=function(n){wl(this);var i=this._componentsMap,r=[];i.each(function(o,a){mt.hasClass(a)&&r.push(a)}),mt.topologicalTravel(r,mt.getAllClassMainTypes(),function(o){C(i.get(o),function(a){a&&(o!=="series"||!qD(a,n))&&a.restoreData()})})},t.internalField=(function(){wl=function(n){var i=n._seriesIndices=[];C(n._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),n._seriesIndicesMap=$(i)},ta=function(n){},Z0=function(n,i){n.option={},n.option[q0]=ZD,n._componentsMap=$({series:[]}),n._componentsCount=$();var r=i.aria;j(r)&&r.enabled==null&&(r.enabled=!0),jD(i,n._theme.option),pt(i,Y0,!1),n._mergeOption(i,null)}})(),t})(Tt);function qD(e,t){if(t){var n=t.seriesIndex,i=t.seriesId,r=t.seriesName;return n!=null&&e.componentIndex!==n||i!=null&&e.id!==i||r!=null&&e.name!==r}}function jD(e,t){var n=e.color&&!e.colorLayer;C(t,function(i,r){r==="colorLayer"&&n||r==="color"&&e.color||mt.hasClass(r)||(typeof i=="object"?e[r]=e[r]?pt(e[r],i,!1):rt(i):e[r]==null&&(e[r]=i))})}function j0(e,t,n){if(B(t)){var i=$();return C(t,function(o){if(o!=null){var a=rn(o,null);a!=null&&i.set(o,!0)}}),Bt(n,function(o){return o&&i.get(o[e])})}else{var r=rn(t,null);return Bt(n,function(o){return o&&r!=null&&o[e]===r})}}function K0(e,t){return t.hasOwnProperty("subType")?Bt(e,function(n){return n&&n.subType===t.subType}):e}function $0(e){var t=$();return e&&C(Qt(e.replaceMerge),function(n){t.set(n,!0)}),{replaceMergeMainTypeMap:t}}Oe(Ap,Dh);var KD=/^(min|max)?(.+)$/,$D=(function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,n,i){t&&(C(Qt(t.series),function(a){a&&a.data&&ie(a.data)&&ou(a.data)}),C(Qt(t.dataset),function(a){a&&a.source&&ie(a.source)&&ou(a.source)})),t=rt(t);var r=this._optionBackup,o=QD(t,n,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],rt(t?n.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var n,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(n=rt(i[r.getCurrentIndex()]))}return n},e.prototype.getMediaOption=function(t){var n=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,u=r.length;l<u;l++)JD(r[l].query,n,i)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!eA(a,this._currentMediaIndices)&&(s=Z(a,function(c){return rt(c===-1?o.option:r[c].option)})),this._currentMediaIndices=a,s},e})();function QD(e,t,n){var i=[],r,o,a=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,h=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((h||c)&&(e.options=e.media=null),o=e),c&&B(u)&&C(u,function(f){f&&f.option&&(f.query?i.push(f):r||(r=f))}),p(o),C(l,function(f){return p(f)}),C(i,function(f){return p(f.option)});function p(f){C(t,function(d){d(f,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:r,mediaList:i}}function JD(e,t,n){var i={width:t,height:n,aspectratio:t/n},r=!0;return C(e,function(o,a){var s=a.match(KD);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();tA(i[u],o,l)||(r=!1)}}),r}function tA(e,t,n){return n==="min"?e>=t:n==="max"?e<=t:e===t}function eA(e,t){return e.join(",")===t.join(",")}var He=C,ea=j,Q0=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lp(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Q0.length;n<i;n++){var r=Q0[n],o=t.normal,a=t.emphasis;o&&o[r]&&(e[r]=e[r]||{},e[r].normal?pt(e[r].normal,o[r]):e[r].normal=o[r],o[r]=null),a&&a[r]&&(e[r]=e[r]||{},e[r].emphasis?pt(e[r].emphasis,a[r]):e[r].emphasis=a[r],a[r]=null)}}function Zt(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var i=e[t].normal,r=e[t].emphasis;i&&(n?(e[t].normal=e[t].emphasis=null,vt(e[t],i)):e[t]=i),r&&(e.emphasis=e.emphasis||{},e.emphasis[t]=r,r.focus&&(e.emphasis.focus=r.focus),r.blurScope&&(e.emphasis.blurScope=r.blurScope))}}function na(e){Zt(e,"itemStyle"),Zt(e,"lineStyle"),Zt(e,"areaStyle"),Zt(e,"label"),Zt(e,"labelLine"),Zt(e,"upperLabel"),Zt(e,"edgeLabel")}function Dt(e,t){var n=ea(e)&&e[t],i=ea(n)&&n.textStyle;if(i)for(var r=0,o=lg.length;r<o;r++){var a=lg[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Ae(e){e&&(na(e),Dt(e,"label"),e.emphasis&&Dt(e.emphasis,"label"))}function nA(e){if(ea(e)){Lp(e),na(e),Dt(e,"label"),Dt(e,"upperLabel"),Dt(e,"edgeLabel"),e.emphasis&&(Dt(e.emphasis,"label"),Dt(e.emphasis,"upperLabel"),Dt(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Lp(t),Ae(t));var n=e.markLine;n&&(Lp(n),Ae(n));var i=e.markArea;i&&Ae(i);var r=e.data;if(e.type==="graph"){r=r||e.nodes;var o=e.links||e.edges;if(o&&!ie(o))for(var a=0;a<o.length;a++)Ae(o[a]);C(e.categories,function(u){na(u)})}if(r&&!ie(r))for(var a=0;a<r.length;a++)Ae(r[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)Ae(s[a]);if(n=e.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)B(l[a])?(Ae(l[a][0]),Ae(l[a][1])):Ae(l[a]);e.type==="gauge"?(Dt(e,"axisLabel"),Dt(e,"title"),Dt(e,"detail")):e.type==="treemap"?(Zt(e.breadcrumb,"itemStyle"),C(e.levels,function(u){na(u)})):e.type==="tree"&&na(e.leaves)}}function bn(e){return B(e)?e:e?[e]:[]}function J0(e){return(B(e)?e[0]:e)||{}}function iA(e,t){He(bn(e.series),function(i){ea(i)&&nA(i)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),He(n,function(i){He(bn(e[i]),function(r){r&&(Dt(r,"axisLabel"),Dt(r.axisPointer,"label"))})}),He(bn(e.parallel),function(i){var r=i&&i.parallelAxisDefault;Dt(r,"axisLabel"),Dt(r&&r.axisPointer,"label")}),He(bn(e.calendar),function(i){Zt(i,"itemStyle"),Dt(i,"dayLabel"),Dt(i,"monthLabel"),Dt(i,"yearLabel")}),He(bn(e.radar),function(i){Dt(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)}),He(bn(e.geo),function(i){ea(i)&&(Ae(i),He(bn(i.regions),function(r){Ae(r)}))}),He(bn(e.timeline),function(i){Ae(i),Zt(i,"label"),Zt(i,"itemStyle"),Zt(i,"controlStyle",!0);var r=i.data;B(r)&&C(r,function(o){j(o)&&(Zt(o,"label"),Zt(o,"itemStyle"))})}),He(bn(e.toolbox),function(i){Zt(i,"iconStyle"),He(i.feature,function(r){Zt(r,"iconStyle")})}),Dt(J0(e.axisPointer),"label"),Dt(J0(e.tooltip).axisPointer,"label")}function rA(e,t){for(var n=t.split(","),i=e,r=0;r<n.length&&(i=i&&i[n[r]],i!=null);r++);return i}function oA(e,t,n,i){for(var r=t.split(","),o=e,a,s=0;s<r.length-1;s++)a=r[s],o[a]==null&&(o[a]={}),o=o[a];o[r[s]]==null&&(o[r[s]]=n)}function t_(e){e&&C(aA,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var aA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Pp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ia(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Pp.length;n++){var i=Pp[n][1],r=Pp[n][0];t[i]!=null&&(t[r]=t[i])}}function e_(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function n_(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function lA(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function i_(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&i_(e[n].children,t)}function r_(e,t){iA(e,t),e.series=Qt(e.series),C(e.series,function(n){if(j(n)){var i=n.type;if(i==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(i==="pie"||i==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),e_(n.label);var r=n.data;if(r&&!ie(r))for(var o=0;o<r.length;o++)e_(r[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(i==="gauge"){var a=rA(n,"pointer.color");a!=null&&oA(n,"itemStyle.color",a)}else if(i==="bar"){ia(n),ia(n.backgroundStyle),ia(n.emphasis);var r=n.data;if(r&&!ie(r))for(var o=0;o<r.length;o++)typeof r[o]=="object"&&(ia(r[o]),ia(r[o]&&r[o].emphasis))}else if(i==="sunburst"){var s=n.highlightPolicy;s&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=s)),n_(n),i_(n.data,n_)}else i==="graph"||i==="sankey"?lA(n):i==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&vt(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),t_(n)}}),e.dataRange&&(e.visualMap=e.dataRange),C(sA,function(n){var i=e[n];i&&(B(i)||(i=[i]),C(i,function(r){t_(r)}))})}var uA=vc(cA);function cA(e){var t=$();e.eachSeries(function(n){var i=n.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=n.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;r.push(a)}}),t.each(function(n){if(n.length!==0){var i=n[0].seriesModel,r=i.get("stackOrder")||"seriesAsc";r==="seriesDesc"&&n.reverse(),C(n,function(o,a){o.data.setCalculationInfo("stackedOnSeries",a>0?n[a-1].seriesModel:null)}),hA(n)}})}function hA(e){C(e,function(t,n){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,h){var p=a.get(t.stackedDimension,h);if(isNaN(p))return r;var f,d;s?d=a.getRawIndex(h):f=a.get(t.stackedByDimension,h);for(var g=NaN,v=n-1;v>=0;v--){var y=e[v];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,f)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&p>=0&&m>0||l==="samesign"&&p<=0&&m<0){p=zw(p,m),g=m;break}}}return i[0]=p,i[1]=g,i})})}var We=(function(){function e(){this.group=new Pt,this.uid=As("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,i,r){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,i,r){},e.prototype.updateLayout=function(t,n,i,r){},e.prototype.updateVisual=function(t,n,i,r){},e.prototype.toggleBlurSeries=function(t,n,i){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();au(We),ya(We);var o_=ht(),a_={itemStyle:Kr(yv,!0),lineStyle:Kr(vv,!0)},pA={lineStyle:"stroke",itemStyle:"fill"};function s_(e,t){var n=e.visualStyleMapper||a_[t];return n||(console.warn("Unknown style type '"+t+"'."),a_.itemStyle)}function l_(e,t){var n=e.visualDrawType||pA[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var fA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=s_(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=l_(e,i),u=a[l],c=tt(u)?u:null,h=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||h){var p=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||tt(a.fill)?p:a.fill,a.stroke=a.stroke==="auto"||tt(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(f,d){var g=e.getDataParams(d),v=N({},a);v[l]=c(g),f.setItemVisual(d,"style",v)}}}},ra=new Tt,dA={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=s_(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){ra.option=l[i];var u=r(ra),c=a.ensureUniqueItemVisual(s,"style");N(c,u),ra.option.decal&&(a.setItemVisual(s,"decal",ra.option.decal),ra.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},gA={performRawSeries:!0,overallReset:function(e){var t=$();e.eachSeries(function(n){if(!n.isColorBySeries()){var i=n.type+"-"+n.getColorBy();o_(n).scope=t.get(i)||t.set(i,{})}}),e.eachSeries(function(n){if(!n.isColorBySeries()){var i=n.getRawData(),r={},o=n.getData(),a=o_(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=l_(n,s);o.each(function(u){var c=o.getRawIndex(u);r[c]=u}),i.each(function(u){var c=r[u],h=o.getItemVisual(c,"colorFromPalette");if(h){var p=o.ensureUniqueItemVisual(c,"style"),f=i.getName(u)||u+"",d=i.count();p[l]=n.getColorFromPalette(f,a,d)}})}})}},Sl=Math.PI;function vA(e,t){t=t||{},vt(t,{text:"loading",textColor:K.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:K.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Pt,i=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r=new $t({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Ct({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(o);var a;return t.showSpinner&&(a=new ps({shape:{startAngle:-Sl/2,endAngle:-Sl/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Sl*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Sl*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=r.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.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),c=e.getHeight()/2;t.showSpinner&&a.setShape({cx:u,cy:c}),o.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var u_=(function(){function e(t,n,i,r){this._stageTaskMap=$(),this.ecInstance=t,this.api=n,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!n&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex,a=o?i.step:null,s=r&&r.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var i=this._pipelineMap.get(t.uid),r=t.__preparePipelineContext?t.__preparePipelineContext(n,i):dg(t,n,i);t.pipelineContext=i.context=r},e.prototype.restorePipelines=function(t,n){var i=this,r=i._pipelineMap=$();n.eachSeries(function(o){var a=t.painter.type==="canvas"&&o.getProgressive(),s=o.uid;r.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),i._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),i=this.api;C(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{}),a="";cn(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,o,n,i),r.overallReset&&this._createOverallStageTask(r,o,n,i)},this)},e.prototype.prepareView=function(t,n,i,r){var o=t.renderTask,a=o.context;a.model=n,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(n,o)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,i){this._performStageTasks(this._visualHandlers,t,n,i)},e.prototype._performStageTasks=function(t,n,i,r){r=r||{};var o=!1,a=this;C(t,function(l,u){if(!(r.visualType&&r.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),h=c.seriesTaskMap,p=c.overallTask;if(p){var f,d=p.agentStubMap;d.each(function(v){s(r,v)&&(v.dirty(),f=!0)}),f&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,r.block);d.each(function(v){v.perform(g)}),p.perform(g)&&(o=!0)}else h&&h.each(function(v,y){s(r,v)&&v.dirty();var m=a.getPerformArgs(v,r.block);m.skip=!l.performRawSeries&&n.isSeriesFiltered(v.context.model),a.updatePayload(v,i),v.perform(m)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(i){n=i.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,i,r){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=$(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(c):l?i.eachRawSeriesByType(l,c):u&&u(i,r).each(c);function c(h){var p=h.uid,f=s.set(p,a&&a.get(p)||Ho({plan:bA,reset:wA,count:MA}));f.context={model:h,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(h,f)}},e.prototype._createOverallStageTask=function(t,n,i,r){var o=this,a=n.overallTask=n.overallTask||Ho({reset:yA});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=$(),u=t.seriesType,c=t.getTargetSeries,h=t.dirtyOnOverallProgress,p=!1,f="";cn(!t.createOnAllSeries,f),u?i.eachRawSeriesByType(u,d):c?c(i,r).each(d):C(i.getSeries(),d);function d(g){var v=g.uid,y=l.set(v,s&&s.get(v)||(p=!0,Ho({reset:mA,onDirty:xA})));y.context={model:g,dirtyOnOverallProgress:h},y.agent=a,y.__block=h,o._pipe(g,y)}p&&a.dirty()},e.prototype._pipe=function(t,n){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=n),r.tail&&r.tail.pipe(n),r.tail=n,n.__idxInPipeline=r.count++,n.__pipeline=r},e.wrapStageHandler=function(t,n){return tt(t)&&(t={overallReset:t,seriesType:TA(t)}),t.uid=As("stageHandler"),n&&(t.visualType=n),t},e})();function yA(e){e.overallReset(e.ecModel,e.api,e.payload)}function mA(e){return e.dirtyOnOverallProgress&&_A}function _A(){this.agent.dirty(),this.getDownstream().dirty()}function xA(){this.agent&&this.agent.dirty()}function bA(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function wA(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Qt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Z(t,function(n,i){return c_(i)}):SA}var SA=c_(0);function c_(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function MA(e){return e.data.count()}function TA(e){Ml=null;try{e(oa,h_)}catch{}return Ml}var oa={},h_={},Ml;p_(oa,Ap),p_(h_,mg),oa.eachSeriesByType=oa.eachRawSeriesByType=function(e){Ml=e},oa.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Ml=e.subType)};function p_(e,t){for(var n in t.prototype)e[n]=Ht}var V=K.darkColor,f_=V.background,aa=function(){return{axisLine:{lineStyle:{color:V.axisLine}},splitLine:{lineStyle:{color:V.axisSplitLine}},splitArea:{areaStyle:{color:[V.backgroundTint,V.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:V.axisMinorSplitLine}},axisLabel:{color:V.axisLabel},axisName:{}}},d_={label:{color:V.secondary},itemStyle:{borderColor:V.borderTint},dividerLineStyle:{color:V.border}},g_={darkMode:!0,color:V.theme,backgroundColor:f_,axisPointer:{lineStyle:{color:V.border},crossStyle:{color:V.borderShade},label:{color:V.tertiary}},legend:{textStyle:{color:V.secondary},pageTextStyle:{color:V.tertiary}},textStyle:{color:V.secondary},title:{textStyle:{color:V.primary},subtextStyle:{color:V.quaternary}},toolbox:{iconStyle:{borderColor:V.accent50},feature:{dataView:{backgroundColor:f_,textColor:V.primary,textareaColor:V.background,textareaBorderColor:V.border,buttonColor:V.accent50,buttonTextColor:V.neutral00}}},tooltip:{backgroundColor:V.neutral20,defaultBorderColor:V.border,textStyle:{color:V.tertiary}},dataZoom:{borderColor:V.accent10,textStyle:{color:V.tertiary},brushStyle:{color:V.backgroundTint},handleStyle:{color:V.neutral00,borderColor:V.accent20},moveHandleStyle:{color:V.accent40},emphasis:{handleStyle:{borderColor:V.accent50}},dataBackground:{lineStyle:{color:V.accent30},areaStyle:{color:V.accent20}},selectedDataBackground:{lineStyle:{color:V.accent50},areaStyle:{color:V.accent30}}},visualMap:{textStyle:{color:V.secondary},handleStyle:{borderColor:V.neutral30}},timeline:{lineStyle:{color:V.accent10},label:{color:V.tertiary},controlStyle:{color:V.accent30,borderColor:V.accent30}},calendar:{itemStyle:{color:V.neutral00,borderColor:V.neutral20},dayLabel:{color:V.tertiary},monthLabel:{color:V.secondary},yearLabel:{color:V.secondary}},matrix:{x:d_,y:d_,backgroundColor:{borderColor:V.axisLine},body:{itemStyle:{borderColor:V.borderTint}}},timeAxis:aa(),logAxis:aa(),valueAxis:aa(),categoryAxis:aa(),line:{symbol:"circle"},graph:{color:V.theme},gauge:{title:{color:V.secondary},axisLine:{lineStyle:{color:[[1,V.neutral05]]}},axisLabel:{color:V.axisLabel},detail:{color:V.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:V.background}},radar:(function(){var e=aa();return e.axisName={color:V.axisLabel},e.axisLine.lineStyle.color=V.neutral20,e})(),treemap:{breadcrumb:{itemStyle:{color:V.neutral20,textStyle:{color:V.secondary}},emphasis:{itemStyle:{color:V.neutral30}}}},sunburst:{itemStyle:{borderColor:V.background}},map:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},label:{color:V.tertiary},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}}},geo:{itemStyle:{borderColor:V.border,areaColor:V.neutral10},emphasis:{label:{color:V.primary},itemStyle:{areaColor:V.highlight}},select:{label:{color:V.primary},itemStyle:{color:V.highlight}}}};g_.categoryAxis.splitLine.show=!1;var IA=(function(){function e(){}return e.prototype.normalizeQuery=function(t){var n={},i={},r={};if(q(t)){var o=Ye(t);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};C(t,function(l,u){for(var c=!1,h=0;h<a.length;h++){var p=a[h],f=u.lastIndexOf(p);if(f>0&&f===u.length-p.length){var d=u.slice(0,f);d!=="data"&&(n.mainType=d,n[p.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(i[u]=l,c=!0),c||(r[u]=l)})}return{cptQuery:n,dataQuery:i,otherQuery:r}},e.prototype.filter=function(t,n){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,a,"mainType")&&c(l,a,"subType")&&c(l,a,"index","componentIndex")&&c(l,a,"name")&&c(l,a,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,n.otherQuery,r,o));function c(h,p,f,d){return h[f]==null||p[d||f]===h[f]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),Op=["symbol","symbolSize","symbolRotate","symbolOffset"],v_=Op.concat(["symbolKeepAspect"]),kA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var i={},r={},o=!1,a=0;a<Op.length;a++){var s=Op[a],l=e.get(s);tt(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||e.defaultSymbol,n.setVisual(N({legendIcon:e.legendIcon||i.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},i)),t.isSeriesFiltered(e))return;var u=St(r);function c(h,p){for(var f=e.getRawValue(p),d=e.getDataParams(p),g=0;g<u.length;g++){var v=u[g];h.setItemVisual(p,v,r[v](f,d))}}return{dataEach:o?c:null}}},CA={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var n=e.getData();function i(r,o){for(var a=r.getItemModel(o),s=0;s<v_.length;s++){var l=v_[s],u=a.getShallow(l,!0);u!=null&&r.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?i:null}}};function DA(e,t,n){switch(n){case"color":var i=e.getItemVisual(t,"style");return i[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n)}}function y_(e,t){switch(t){case"color":var n=e.getVisual("style");return n[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function sa(e,t,n){for(var i;e&&!(t(e)&&(i=e,n));)e=e.__hostTarget||e.parent;return i}var Le=new Qe,m_={};function AA(e,t){m_[e]=t}function LA(e){return m_[e]}var PA=Math.round(Math.random()*9),OA=typeof Object.defineProperty=="function",RA=(function(){function e(){this._id="__ec_inner_"+PA++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,n){var i=this._guard(t);return OA?Object.defineProperty(i,this._id,{value:n,enumerable:!1,configurable:!0}):i[this._id]=n,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e})();function Gi(e){return isFinite(e)}function NA(e,t,n){var i=t.x==null?0:t.x,r=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=Gi(i)?i:0,r=Gi(r)?r:1,o=Gi(o)?o:0,a=Gi(a)?a:0;var s=e.createLinearGradient(i,o,r,a);return s}function EA(e,t,n){var i=n.width,r=n.height,o=Math.min(i,r),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*i+n.x,s=s*r+n.y,l=l*o),a=Gi(a)?a:.5,s=Gi(s)?s:.5,l=l>=0&&Gi(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function Rp(e,t,n){for(var i=t.type==="radial"?EA(e,t,n):NA(e,t,n),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function zA(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}function Tl(e){return parseInt(e,10)}function Il(e,t,n){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(n[i]!=null&&n[i]!=="auto")return parseFloat(n[i]);var s=document.defaultView.getComputedStyle(e);return(e[r]||Tl(s[i])||Tl(e.style[i]))-(Tl(s[o])||0)-(Tl(s[a])||0)||0}function BA(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:yt(e)?[e]:B(e)?e:null}function __(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&BA(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&r!==1&&(n=Z(n,function(o){return o/r}),i/=r)}return[n,i]}var FA=new vi(!0);function kl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function x_(e){return typeof e=="string"&&e!=="none"}function Cl(e){var t=e.fill;return t!=null&&t!=="none"}function b_(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function w_(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function Np(e,t,n){var i=Hf(t.image,t.__image,n);if(ma(i)){var r=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*Yx),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function VA(e,t,n,i,r){var o,a=kl(n),s=Cl(n),l=n.strokePercent,u=l<1,c=!t.path;(!t.silent||u)&&c&&t.createPathProxy();var h=t.path||FA,p=t.__dirty;if(!i){var f=n.fill,d=n.stroke,g=s&&!!f.colorStops,v=a&&!!d.colorStops,y=s&&!!f.image,m=a&&!!d.image,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0;(g||v)&&(S=t.getBoundingRect()),g&&(_=p?Rp(e,f,S):t.__canvasFillGradient,t.__canvasFillGradient=_),v&&(x=p?Rp(e,d,S):t.__canvasStrokeGradient,t.__canvasStrokeGradient=x),y&&(b=p||!t.__canvasFillPattern?Np(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),m&&(w=p||!t.__canvasStrokePattern?Np(e,d,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),g?e.fillStyle=_:y&&(b?e.fillStyle=b:s=!1),v?e.strokeStyle=x:m&&(w?e.strokeStyle=w:a=!1)}var M=t.getGlobalScale();h.setScale(M[0],M[1],t.segmentIgnoreThreshold);var T,k;e.setLineDash&&n.lineDash&&(o=__(t),T=o[0],k=o[1]);var I=!0;(c||p&rr)&&(h.setDPR(e.dpr),u?h.setContext(null):(h.setContext(e),I=!1),h.reset(),t.buildPath(h,t.shape,i),h.toStatic(),t.pathUpdated()),I&&h.rebuildPath(e,u?l:1),T&&(e.setLineDash(T),e.lineDashOffset=k),i?(r.batchFill=s,r.batchStroke=a):n.strokeFirst?(a&&w_(e,n),s&&b_(e,n)):(s&&b_(e,n),a&&w_(e,n)),T&&e.setLineDash([])}function GA(e,t,n){var i=t.__image=Hf(n.image,t.__image,t,t.onload);if(!(!i||!ma(i))){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,h=a-u,p=s-c;e.drawImage(i,u,c,h,p,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function HA(e,t,n){var i,r=n.text;if(r!=null&&(r+=""),r){e.font=n.font||Tn,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=__(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(kl(n)&&e.strokeText(r,n.x,n.y),Cl(n)&&e.fillText(r,n.x,n.y)):(Cl(n)&&e.fillText(r,n.x,n.y),kl(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var S_=["shadowBlur","shadowOffsetX","shadowOffsetY"],M_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function T_(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){ee(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?ci.opacity:a}(i||t.blend!==n.blend)&&(o||(ee(e,r),o=!0),e.globalCompositeOperation=t.blend||ci.blend);for(var s=0;s<S_.length;s++){var l=S_[s];(i||t[l]!==n[l])&&(o||(ee(e,r),o=!0),e[l]=e.dpr*(t[l]||0))}return(i||t.shadowColor!==n.shadowColor)&&(o||(ee(e,r),o=!0),e.shadowColor=t.shadowColor||ci.shadowColor),o}function I_(e,t,n,i,r){var o=t.style,a=i?null:n&&n.style||{};if(o===a)return!1;var s=T_(e,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(ee(e,r),s=!0),x_(o.fill)&&(e.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(ee(e,r),s=!0),x_(o.stroke)&&(e.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(ee(e,r),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ee(e,r),s=!0),e.lineWidth=u)}for(var c=0;c<M_.length;c++){var h=M_[c],p=h[0];(i||o[p]!==a[p])&&(s||(ee(e,r),s=!0),e[p]=o[p]||h[1])}return s}function WA(e,t,n,i,r){return T_(e,t.style,n&&n.style,i,r)}function k_(e,t){var n=t.transform,i=e.dpr||1;n?e.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):e.setTransform(i,0,0,i,0,0)}function UA(e,t,n){for(var i=!1,r=0;r<e.length;r++){var o=e[r];i=i||o.isZeroArea(),k_(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}n.allClipped=i}function XA(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var C_=1,D_=2,A_=3,L_=4;function YA(e){var t=Cl(e),n=kl(e);return!(e.lineDash||!(+t^+n)||t&&typeof e.fill!="string"||n&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ee(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function P_(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Hi(e,t,n),Br(e,n)}function Hi(e,t,n){var i=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){t.__dirty&=~oe,t.__isRendered=!1;return}var r=t.__clipPaths,o=n.prevElClipPaths,a=t.style,s=!1,l=!1;if((!o||zA(r,o))&&(o&&(ee(e,n),e.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length&&(ee(e,n),e.save(),UA(r,e,n),s=!0,n.prevElClipPaths=r)),n.allClipped){t.__dirty&=~oe,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=t instanceof dt&&t.autoBatch&&YA(a);s||XA(i,u.transform)?(ee(e,n),k_(e,t)):c||ee(e,n),t instanceof dt?(n.lastDrawType!==C_&&(l=!0,n.lastDrawType=C_),I_(e,t,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&e.beginPath(),VA(e,t,a,c,n)):t instanceof ja?(n.lastDrawType!==A_&&(l=!0,n.lastDrawType=A_),I_(e,t,u,l,n),HA(e,t,a)):t instanceof On?(n.lastDrawType!==D_&&(l=!0,n.lastDrawType=D_),WA(e,t,u,l,n),GA(e,t,a)):t.getTemporalDisplayables&&(n.lastDrawType!==L_&&(l=!0,n.lastDrawType=L_),ZA(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(c&&ee(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Br(e,t){ee(e,t),t.prevElClipPaths&&e.restore()}function ZA(e,t,n){var i=t.getDisplayables(),r=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}},a,s;for(a=t.getCursor(),s=i.length;a<s;a++){var l=i[a];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),Hi(e,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}Br(e,o);for(var u=0,c=r.length;u<c;u++){var l=r[u];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),Hi(e,l,o),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}Br(e,o),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Ep=new RA,O_=new qi(100),R_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function zp(e,t){if(e==="none")return null;var n=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";e.dirty&&Ep.delete(e);var o=Ep.get(e);if(o)return o;var a=vt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/n,Ep.set(e,s),e.dirty=!1,s;function l(u){for(var c=[n],h=!0,p=0;p<R_.length;++p){var f=a[R_[p]];if(f!=null&&!B(f)&&!q(f)&&!yt(f)&&typeof f!="boolean"){h=!1;break}c.push(f)}var d;if(h){d=c.join(",")+(r?"-svg":"");var g=O_.get(d);g&&(r?u.svgElement=g:u.image=g)}var v=E_(a.dashArrayX),y=qA(a.dashArrayY),m=N_(a.symbol),_=jA(v),x=z_(y),b=!r&&ce.createCanvas(),w=r&&{tag:"g",attrs:{},key:"dcl",children:[]},S=T(),M;b&&(b.width=S.width*n,b.height=S.height*n,M=b.getContext("2d")),k(),h&&O_.put(d,b||w),u.image=b,u.svgElement=w,u.svgWidth=S.width,u.svgHeight=S.height;function T(){for(var I=1,A=0,D=_.length;A<D;++A)I=rg(I,_[A]);for(var L=1,A=0,D=m.length;A<D;++A)L=rg(L,m[A].length);I*=L;var P=x*_.length*m.length;return{width:Math.max(1,Math.min(I,a.maxTileWidth)),height:Math.max(1,Math.min(P,a.maxTileHeight))}}function k(){M&&(M.clearRect(0,0,b.width,b.height),a.backgroundColor&&(M.fillStyle=a.backgroundColor,M.fillRect(0,0,b.width,b.height)));for(var I=0,A=0;A<y.length;++A)I+=y[A];if(I<=0)return;for(var D=-x,L=0,P=0,R=0;D<S.height;){if(L%2===0){for(var z=P/2%m.length,O=0,E=0,G=0;O<S.width*2;){for(var H=0,A=0;A<v[R].length;++A)H+=v[R][A];if(H<=0)break;if(E%2===0){var U=(1-a.symbolSize)*.5,X=O+v[R][E]*U,W=D+y[L]*U,et=v[R][E]*a.symbolSize,ot=y[L]*a.symbolSize,At=G/2%m[z].length;Rt(X,W,et,ot,m[z][At])}O+=v[R][E],++G,++E,E===v[R].length&&(E=0)}++R,R===v.length&&(R=0)}D+=y[L],++P,++L,L===y.length&&(L=0)}function Rt(gt,Mt,J,at,Ue){var Nt=r?1:n,Mn=zi(Ue,gt*Nt,Mt*Nt,J*Nt,at*Nt,a.color,a.symbolKeepAspect);if(r){var un=i.painter.renderOneToVNode(Mn);un&&w.children.push(un)}else P_(M,Mn)}}}}function N_(e){if(!e||e.length===0)return[["rect"]];if(q(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!q(e[n])){t=!1;break}if(t)return N_([e]);for(var i=[],n=0;n<e.length;++n)q(e[n])?i.push([e[n]]):i.push(e[n]);return i}function E_(e){if(!e||e.length===0)return[[0,0]];if(yt(e)){var t=Math.ceil(e);return[[t,t]]}for(var n=!0,i=0;i<e.length;++i)if(!yt(e[i])){n=!1;break}if(n)return E_([e]);for(var r=[],i=0;i<e.length;++i)if(yt(e[i])){var t=Math.ceil(e[i]);r.push([t,t])}else{var t=Z(e[i],function(s){return Math.ceil(s)});t.length%2===1?r.push(t.concat(t)):r.push(t)}return r}function qA(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(yt(e)){var t=Math.ceil(e);return[t,t]}var n=Z(e,function(i){return Math.ceil(i)});return e.length%2?n.concat(n):n}function jA(e){return Z(e,function(t){return z_(t)})}function z_(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2===1?t*2:t}var KA=vc($A);function $A(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(a){var s=i.getItemVisual(a,"decal");if(s){var l=i.ensureUniqueItemVisual(a,"style");l.decal=zp(s,t)}});var r=i.getVisual("decal");if(r){var o=i.getVisual("style");o.decal=zp(r,t)}}})}var QA=1,JA=800,tL=900,eL=920,nL=1e3,iL=2e3,B_=5e3,F_=1e3,rL=1100,Bp=2e3,V_=3e3,oL=4e3,Dl=4500,aL=4600,sL=5e3,lL=6e3,G_=7e3,uL={PROCESSOR:{SERIES_FILTER:JA,AXIS_STATISTICS:eL,FILTER:nL,STATISTIC:B_,STATISTICS:B_},VISUAL:{LAYOUT:F_,PROGRESSIVE_LAYOUT:rL,GLOBAL:Bp,CHART:V_,POST_CHART_LAYOUT:aL,COMPONENT:oL,BRUSH:sL,CHART_ITEM:Dl,ARIA:lL,DECAL:G_}},Ot="__flagInMainProcess",Al="__mainProcessVersion",zt="__pendingUpdate",Fp="__needsUpdateStatus",H_=/^[a-zA-Z0-9_]+$/,Vp="__connectUpdateStatus",W_=0,cL=1,hL=2;function U_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this.isDisposed()){this.id;return}return Y_(this,e,t)}}function X_(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Y_(this,e,t)}}function Y_(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Qe.prototype[t].apply(e,n)}var Z_=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Qe),q_=Z_.prototype;q_.on=X_("on"),q_.off=X_("off");var Wi,Gp,Ll,wn,Pl,Hp,Wp,Fr,Vr,j_,K_,Up,$_,Ol,Q_,J_,Pe,t1,Gr,e1=(function(e){F(t,e);function t(n,i,r){var o=e.call(this,new IA)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},o.__v_skip=!0,o._dom=n;var a="canvas",s="auto",l=!1;o[Al]=1,r.ssr;var u=o._zr=W0(n,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Y(r.useDirtyRect,l),useCoarsePointer:Y(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=cp(_t(u.flush,u),17),o._updateTheme(i),o._locale=XT(r.locale||ey),o._coordSysMgr=new uh;var c=o._api=Q_(o);function h(p,f){return p.__prio-f.__prio}return ml(Nl,h),ml(qp,h),o._scheduler=new u_(o,c,qp,Nl),o._messageCenter=new Z_,o._initEvents(),o.resize=_t(o.resize,o),u.animation.on("frame",o._onframe,o),j_(u,o),K_(u,o),ou(o),o}return t.prototype._onframe=function(){if(!this._disposed){var n=this._scheduler,i=this._model,r=this._api;if(t1(this),this[zt]){var o=this[zt].silent;this[Ot]=!0,Gr(this);try{Wi(this),wn.update.call(this,null,this[zt].updateParams)}catch(l){throw this[Ot]=!1,this[zt]=null,l}this._zr.flush(),this[Ot]=!1,this[zt]=null,Fr.call(this,o),Vr.call(this,o)}else if(n.unfinished){var a=QA;do{n.unfinished=!1;var s=ce.getTime();n.performSeriesTasks(i),n.performDataProcessorTasks(i),Hp(this,i),n.performVisualTasks(i),Ol(this,this._model,r,"remain",{}),a-=ce.getTime()-s}while(a>0&&n.unfinished);n.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(n,i,r){if(!this[Ot]){if(this._disposed){this.id;return}var o,a,s;if(j(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[Ot]=!0,Gr(this),!this._model||i){var l=new $D(this._api),u=this._theme,c=this._model=new Ap;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},jp);var h={seriesTransition:s,optionChanged:!0};if(r)this[zt]={silent:o,updateParams:h},this[Ot]=!1,this.getZr().wakeUp();else{try{Wi(this),wn.update.call(this,null,h)}catch(p){throw this[zt]=null,this[Ot]=!1,p}this._ssr||this._zr.flush(),this[zt]=null,this[Ot]=!1,Fr.call(this,o),Vr.call(this,o)}}},t.prototype.setTheme=function(n,i){if(!this[Ot]){if(this._disposed){this.id;return}var r=this._model;if(r){var o=i&&i.silent,a=null;this[zt]&&(o==null&&(o=this[zt].silent),a=this[zt].updateParams,this[zt]=null),this[Ot]=!0,Gr(this);try{this._updateTheme(n),r.setTheme(this._theme),Wi(this),wn.update.call(this,{type:"setTheme"},a)}catch(s){throw this[Ot]=!1,s}this[Ot]=!1,Fr.call(this,o),Vr.call(this,o)}}},t.prototype._updateTheme=function(n){q(n)&&(n=n1[n]),n&&(n=rt(n),n&&r_(n,!0),this._theme=n)},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||nt.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var i=this._zr.painter;return i.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){var n=this._zr,i=n.storage.getDisplayList();return C(i,function(r){r.stopAnimation(null,!0)}),n.painter.toDataURL()},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var i=n.excludeComponents,r=this._model,o=[],a=this;C(i,function(l){r.eachComponent({mainType:l},function(u){var c=a._componentsMap[u.__viewId];c.group.ignore||(o.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return C(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var i=n.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(i1[r]){var l=s,u=s,c=-s,h=-s,p=[],f=n&&n.pixelRatio||this.getDevicePixelRatio();C(la,function(_,x){if(_.group===r){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(rt(n)),w=_.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),c=a(w.right,c),h=a(w.bottom,h),p.push({dom:b,left:w.left,top:w.top})}}),l*=f,u*=f,c*=f,h*=f;var d=c-l,g=h-u,v=ce.createCanvas(),y=W0(v,{renderer:i?"svg":"canvas"});if(y.resize({width:d,height:g}),i){var m="";return C(p,function(_){var x=_.left-l,b=_.top-u;m+='<g transform="translate('+x+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Ct({shape:{x:0,y:0,width:d,height:g},style:{fill:n.connectedBackgroundColor}})),C(p,function(_){var x=new On({style:{x:_.left*f-l,y:_.top*f-u,image:_.dom}});y.add(x)}),y.refreshImmediately(),v.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,i,r){return Pl(this,"convertToPixel",n,i,r)},t.prototype.convertToLayout=function(n,i,r){return Pl(this,"convertToLayout",n,i,r)},t.prototype.convertFromPixel=function(n,i,r){return Pl(this,"convertFromPixel",n,i,r)},t.prototype.containPixel=function(n,i){if(this._disposed){this.id;return}var r=this._model,o,a=pc(r,n);return C(a,function(s,l){l.indexOf("Models")>=0&&C(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(o=o||h.containPoint(i,u))}},this)},this),!!o},t.prototype.getVisual=function(n,i){var r=this._model,o=pc(r,n,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?DA(s,l,i):y_(s,i)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;C(pL,function(r){var o=function(a){var s=n.getModel(),l=a.target,u,c=r==="globalout";if(c?u={}:l&&sa(l,function(g){var v=ut(g);if(v&&v.dataIndex!=null){var y=v.dataModel||s.getSeriesByIndex(v.seriesIndex);return u=y&&y.getDataParams(v.dataIndex,v.dataType,l)||{},!0}else if(v.eventData)return u=N({},v.eventData),!0},!0),u){var h=u.componentType,p=u.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=u.seriesIndex);var f=h&&p!=null&&s.getComponent(h,p),d=f&&n[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];u.event=a,u.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:f,view:d},n.trigger(r,u)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)});var i=this._messageCenter;C(Zp,function(r,o){i.on(o,function(a){n.trigger(o,a)})}),jC(i,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&cg(this.getDom(),$p,"");var i=this,r=i._api,o=i._model;C(i._componentsViews,function(a){a.dispose(o,r)}),C(i._chartsViews,function(a){a.dispose(o,r)}),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 la[i.id]},t.prototype.resize=function(n){if(!this[Ot]){if(this._disposed){this.id;return}this._zr.resize(n);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var r=i.resetOption("media"),o=n&&n.silent;this[zt]&&(o==null&&(o=this[zt].silent),r=!0,this[zt]=null),this[Ot]=!0,Gr(this);try{r&&Wi(this),wn.update.call(this,{type:"resize",animation:N({duration:0},n&&n.animation)})}catch(a){throw this[Ot]=!1,a}this[Ot]=!1,Fr.call(this,o),Vr.call(this,o)}}},t.prototype.showLoading=function(n,i){if(this._disposed){this.id;return}if(j(n)&&(i=n,n=""),n=n||"default",this.hideLoading(),!!Kp[n]){var r=Kp[n](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var i=N({},n);return i.type=Yp[n.type],i},t.prototype.dispatchAction=function(n,i){if(this._disposed){this.id;return}if(j(i)||(i={silent:!!i}),!!Rl[n.type]&&this._model){if(this[Ot]){this._pendingActions.push(n);return}var r=i.silent;Wp.call(this,n,r);var o=i.flush;o?this._zr.flush():o!==!1&&nt.browser.weChat&&this._throttledZrFlush(),Fr.call(this,r),Vr.call(this,r)}},t.prototype.updateLabelLayout=function(){Le.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var i=n.seriesIndex,r=this.getModel(),o=r.getSeriesByIndex(i);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Wi=function(h){d2(h._model);var p=h._scheduler;p.restorePipelines(h._zr,h._model),p.prepareStageTasks(),Gp(h,!0),Gp(h,!1),p.plan()},Gp=function(h,p){for(var f=h._model,d=h._scheduler,g=p?h._componentsViews:h._chartsViews,v=p?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<g.length;_++)g[_].__alive=!1;p?f.eachComponent(function(w,S){w!=="series"&&x(S)}):f.eachSeries(x);function x(w){var S=w.__requireNewView;w.__requireNewView=!1;var M="_ec_"+w.id+"_"+w.type,T=!S&&v[M];if(!T){var k=Ye(w.type),I=p?We.getClass(k.main,k.sub):ke.getClass(k.sub);T=new I,T.init(f,m),v[M]=T,g.push(T),y.add(T.group)}w.__viewId=T.__id=M,T.__alive=!0,T.__model=w,T.group.__ecComponentInfo={mainType:w.mainType,index:w.componentIndex},!p&&d.prepareView(T,w,f,m)}for(var _=0;_<g.length;){var b=g[_];b.__alive?_++:(!p&&b.renderTask.dispose(),y.remove(b.group),b.dispose(f,m),g.splice(_,1),v[b.__id]===b&&delete v[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Ll=function(h,p,f,d,g){var v=h._model;if(v.setUpdatePayload(f),!d){C([].concat(h._componentsViews).concat(h._chartsViews),x);return}var y=eS(f,d,g),m=f.excludeSeriesId,_;m!=null&&(_=$(),C(Qt(m),function(b){var w=rn(b,null);w!=null&&_.set(w,!0)})),v&&v.eachComponent(y,function(b){var w=_&&_.get(b.id)!=null;if(!w)if(zg(f))if(b instanceof ze)f.type===Mi&&!f.notBlur&&!b.get(["emphasis","disabled"])&&TS(b,f,h._api);else{var S=Ic(b.mainType,b.componentIndex,f.name,h._api),M=S.focusSelf,T=S.dispatchers;f.type===Mi&&M&&!f.notBlur&&Tc(b.mainType,b.componentIndex,h._api),T&&C(T,function(k){f.type===Mi?mo(k):_o(k)})}else Dc(f)&&b instanceof ze&&(CS(b,f,h._api),Rg(b),Pe(h))},h),v&&v.eachComponent(y,function(b){var w=_&&_.get(b.id)!=null;w||x(h[d==="series"?"_chartsMap":"_componentsMap"][b.__viewId])},h);function x(b){b&&b.__alive&&b[p]&&b[p](b.__model,v,h._api,f)}},wn={prepareAndUpdate:function(h){Wi(this),wn.update.call(this,h,h&&{optionChanged:h.newOption!=null})},update:function(h,p){var f=this._model,d=this._api,g=this._zr,v=this._coordSysMgr,y=this._scheduler;if(f){g2(f),f.setUpdatePayload(h),y.restoreData(f,h),y.performSeriesTasks(f),v.create(f,d),Le.trigger("coordsys:aftercreate",f,d),y.performDataProcessorTasks(f,h),Hp(this,f),v.update(f,d),i(f),y.performVisualTasks(f,h);var m=f.get("backgroundColor")||"transparent";g.setBackgroundColor(m);var _=f.get("darkMode");_!=null&&_!=="auto"&&g.setDarkMode(_),Up(this,f,d,h,p),Le.trigger("afterupdate",f,d)}},updateTransform:function(h){var p=this,f=p._model,d=p._api;if(f){f.setUpdatePayload(h);var g=[];f.eachComponent(function(y,m){if(y!==gg){var _=p.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(m,f,d,h);x&&x.update&&g.push(_)}else g.push(_)}});var v=$();f.eachSeries(function(y){var m=p._chartsMap[y.__viewId],_=y.pipelineContext;if(m.updateTransform&&!_.progressiveRender){var x=m.updateTransform(y,f,d,h);x&&x.update&&v.set(y.uid,1)}else v.set(y.uid,1)}),p._scheduler.performVisualTasks(f,h,{setDirty:!0,dirtyMap:v}),Ol(p,f,d,h,{},v),Le.trigger("afterupdate",f,d)}},updateView:function(h){var p=this._model;p&&(p.setUpdatePayload(h),ke.markUpdateMethod(h,"updateView"),i(p),this._scheduler.performVisualTasks(p,h,{setDirty:!0}),Up(this,p,this._api,h,{}),Le.trigger("afterupdate",p,this._api))},updateVisual:function(h){var p=this,f=this._model;f&&(f.setUpdatePayload(h),f.eachSeries(function(d){d.getData().clearAllVisual()}),ke.markUpdateMethod(h,"updateVisual"),i(f),this._scheduler.performVisualTasks(f,h,{visualType:"visual",setDirty:!0}),f.eachComponent(function(d,g){if(d!=="series"){var v=p.getViewOfComponentModel(g);v&&v.__alive&&v.updateVisual(g,f,p._api,h)}}),f.eachSeries(function(d){var g=p._chartsMap[d.__viewId];g.updateVisual(d,f,p._api,h)}),Le.trigger("afterupdate",f,this._api))},updateLayout:function(h){wn.update.call(this,h)}};function n(h,p,f,d,g){if(h._disposed){h.id;return}for(var v=h._model,y=h._coordSysMgr.getCoordinateSystems(),m,_=pc(v,f),x=0;x<y.length;x++){var b=y[x];if(b[p]&&(m=b[p](v,_,d,g))!=null)return m}}Pl=n,Hp=function(h,p){var f=h._chartsMap,d=h._scheduler;p.eachSeries(function(g){d.updateStreamModes(g,f[g.__viewId])})},Wp=function(h,p){var f=this,d=this.getModel(),g=h.type,v=h.escapeConnect,y=Rl[g],m=(y.update||"update").split(":"),_=m.pop(),x=m[0]!=null&&Ye(m[0]);this[Ot]=!0,Gr(this);var b=[h],w=!1;h.batch&&(w=!0,b=Z(h.batch,function(R){return R=vt(N({},R),h),R.batch=null,R}));var S=[],M,T=[],k=y.nonRefinedEventType,I=Dc(h),A=zg(h);if(A&&Og(this._api),C(b,function(R){var z=y.action(R,d,f._api);if(y.refineEvent?T.push(z):M=z,M=M||N({},R),M.type=k,S.push(M),A){var O=fc(h),E=O.queryOptionMap,G=O.mainTypeSpecified,H=G?E.keys()[0]:"series";Ll(f,_,R,H),Pe(f)}else I?(Ll(f,_,R,"series"),Pe(f)):x&&Ll(f,_,R,x.main,x.sub)}),_!=="none"&&!A&&!I&&!x)try{this[zt]?(Wi(this),wn.update.call(this,h),this[zt]=null):wn[_].call(this,h)}catch(R){throw this[Ot]=!1,R}if(w?M={type:k,escapeConnect:v,batch:S}:M=S[0],this[Ot]=!1,!p){var D=void 0;if(y.refineEvent){var L=y.refineEvent(T,h,d,this._api).eventContent;cn(j(L)),D=vt({type:y.refinedEventType},L),D.fromAction=h.type,D.fromActionPayload=h,D.escapeConnect=!0}var P=this._messageCenter;P.trigger(M.type,M),D&&P.trigger(D.type,D)}},Fr=function(h){for(var p=this._pendingActions;p.length;){var f=p.shift();Wp.call(this,f,h)}},Vr=function(h){!h&&this.trigger("updated")},j_=function(h,p){h.on("rendered",function(f){p.trigger("rendered",f),h.animation.isFinished()&&!p[zt]&&!p._scheduler.unfinished&&!p._pendingActions.length?p.trigger("finished"):h.refresh()})},K_=function(h,p){h.on("mouseover",function(f){var d=f.target,g=sa(d,Cc);g&&(IS(g,f,p._api),Pe(p))}).on("mouseout",function(f){var d=f.target,g=sa(d,Cc);g&&(kS(g,f,p._api),Pe(p))}).on("click",function(f){var d=f.target,g=sa(d,function(m){return ut(m).dataIndex!=null},!0);if(g){var v=g.selected?"unselect":"select",y=ut(g);p._api.dispatchAction({type:v,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function i(h){h.clearColorPalette(),h.eachSeries(function(p){p.clearColorPalette()})}function r(h){var p=[],f=[],d=!1;if(h.eachComponent(function(m,_){var x=_.get("zlevel")||0,b=_.get("z")||0,w=_.getZLevelKey();d=d||!!w,(m==="series"?f:p).push({zlevel:x,z:b,idx:_.componentIndex,type:m,key:w})}),d){var g=p.concat(f),v,y;ml(g,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),C(g,function(m){var _=h.getComponent(m.type,m.idx),x=m.zlevel,b=m.key;v!=null&&(x=Math.max(v,x)),b?(x===v&&b!==y&&x++,y=b):y&&(x===v&&x++,y=""),v=x,_.setZLevel(x)})}}Up=function(h,p,f,d,g){r(p),$_(h,p,f,d,g),C(h._chartsViews,function(v){v.__alive=!1}),Ol(h,p,f,d,g),C(h._chartsViews,function(v){v.__alive||v.remove(p,f)})},$_=function(h,p,f,d,g,v){C(v||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,p,f,d),l(m,y),c(m,y)})},Ol=function(h,p,f,d,g,v){var y=h._scheduler;g=N(g||{},{updatedSeries:p.getSeries()}),Le.trigger("series:beforeupdate",p,f,g);var m=!1;p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];x.__alive=!0;var b=x.renderTask;y.updatePayload(b,d),u(_,x),v&&v.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),x.group.silent=!!_.get("silent"),s(_,x),Rg(_)}),y.unfinished=m||y.unfinished,Le.trigger("series:layoutlabels",p,f,g),Le.trigger("series:transition",p,f,g),p.eachSeries(function(_){var x=h._chartsMap[_.__viewId];l(_,x),c(_,x)}),a(h,p),Le.trigger("series:afterupdate",p,f,g)},Pe=function(h){h[Fp]=!0,h.getZr().wakeUp()},Gr=function(h){h[Al]=(h[Al]+1)%1e6},t1=function(h){h[Fp]&&(h.getZr().storage.traverse(function(p){Mo(p)||o(p)}),h[Fp]=!1)};function o(h){for(var p=[],f=h.currentStates,d=0;d<f.length;d++){var g=f[d];g==="emphasis"||g==="blur"||g==="select"||p.push(g)}h.selected&&h.states.select&&p.push("select"),h.hoverState===ts&&h.states.emphasis?p.push("emphasis"):h.hoverState===Ja&&h.states.blur&&p.push("blur"),h.useStates(p)}function a(h,p){var f=h._zr;if(f.painter.type==="canvas"){var d=f.storage,g=0;d.traverse(function(y){y.isGroup||g++});var v=g>Y(p.get("hoverLayerThreshold"),Y0.hoverLayerThreshold)&&!nt.node&&!nt.worker;(h._usingTHL||v)&&(p.eachSeries(function(y){if(!y.preventUsingHoverLayer){var m=h._chartsMap[y.__viewId];m.__alive&&m.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==ms&&(x.hoverLayer=v?ev:tv)})}}),h._usingTHL=v)}}function s(h,p){var f=h.get("blendMode")||null;p.eachRendered(function(d){d.isGroup||(d.style.blend=f)})}function l(h,p){if(!h.preventAutoZ){var f=Zc(h);p.eachRendered(function(d){return qc(d,f.z,f.zlevel),!0})}}function u(h,p){p.eachRendered(function(f){if(!Mo(f)){var d=f.getTextContent(),g=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function c(h,p){var f=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),g=f.get("duration"),v=g>0?{duration:g,delay:f.get("delay"),easing:f.get("easing")}:null;p.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Mo(y))return;if(y instanceof dt&&RS(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=v;var _=y.getTextContent(),x=y.getTextGuideLine();_&&(_.stateTransition=v),x&&(x.stateTransition=v)}y.__dirty&&o(y)}})}Q_=function(h){return new((function(p){F(f,p);function f(){return p!==null&&p.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(d){for(;d;){var g=d.__ecComponentInfo;if(g!=null)return h._model.getComponent(g.mainType,g.index);d=d.parent}},f.prototype.enterEmphasis=function(d,g){mo(d,g),Pe(h)},f.prototype.leaveEmphasis=function(d,g){_o(d,g),Pe(h)},f.prototype.enterBlur=function(d){Dg(d),Pe(h)},f.prototype.leaveBlur=function(d){Sc(d),Pe(h)},f.prototype.enterSelect=function(d){Ag(d),Pe(h)},f.prototype.leaveSelect=function(d){Lg(d),Pe(h)},f.prototype.getModel=function(){return h.getModel()},f.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},f.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},f.prototype.getECUpdateCycleVersion=function(){return h[Al]},f.prototype.usingTHL=function(){return h._usingTHL},f})(mg))(h)},J_=function(h){function p(f,d){for(var g=0;g<f.length;g++){var v=f[g];v[Vp]=d}}C(Yp,function(f,d){h._messageCenter.on(d,function(g){if(i1[h.group]&&h[Vp]!==W_){if(g&&g.escapeConnect)return;var v=h.makeActionFromEvent(g),y=[];C(la,function(m){m!==h&&m.group===h.group&&y.push(m)}),p(y,W_),C(y,function(m){m[Vp]!==cL&&m.dispatchAction(v)}),p(y,hL)}})})}})(),t})(Qe),Xp=e1.prototype;Xp.on=U_("on"),Xp.off=U_("off"),Xp.one=function(e,t,n){var i=this;function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(e,r)}this.on.call(this,e,r,n)};var pL=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],Rl={},Yp={},Zp={},qp=[],jp=[],Nl=[],n1={},Kp={},la={},i1={},fL=+new Date-0,$p="_echarts_instance_";function dL(e,t,n){var i=!(n&&n.ssr);if(i){var r=gL(e);if(r)return r}var o=new e1(e,t,n);return o.id="ec_"+fL++,la[o.id]=o,i&&cg(e,$p,o.id),J_(o),Le.trigger("afterinit",o),o}function gL(e){return la[nS(e,$p)]}function r1(e,t){n1[e]=t}function o1(e){st(jp,e)<0&&jp.push(e)}function a1(e,t){Jp(qp,e,t,iL)}function vL(e){Qp("afterinit",e)}function yL(e){Qp("afterupdate",e)}function Qp(e,t){Le.on(e,t)}function Hr(e,t,n){var i,r,o,a,s;tt(t)&&(n=t,t=""),j(e)?(i=e.type,r=e.event,a=e.update,s=e.publishNonRefinedEvent,n||(n=e.action),o=e.refineEvent):(i=e,r=t);function l(c){return c.toLowerCase()}r=l(r||i);var u=o?l(i):r;Rl[i]||(cn(H_.test(i)&&H_.test(r)),o&&cn(r!==i),Rl[i]={actionType:i,refinedEventType:r,nonRefinedEventType:u,update:a,action:n,refineEvent:o},Zp[r]=1,o&&s&&(Zp[u]=1),Yp[u]=i)}function mL(e,t){uh.register(e,t)}function _L(e,t){Jp(Nl,e,t,F_,"layout")}function Ui(e,t){Jp(Nl,e,t,V_,"visual")}var s1=[];function Jp(e,t,n,i,r,o){if((tt(t)||j(t))&&(n=t,t=i),!(st(s1,n)>=0)){s1.push(n);var a=u_.wrapStageHandler(n,r);a.__prio=t,a.__raw=n,e.push(a)}}function l1(e,t){Kp[e]=t}function xL(e,t,n){var i=LA("registerMap");i&&i(e,t,n)}var bL=SI;Ui(Bp,fA),Ui(Dl,dA),Ui(Dl,gA),Ui(Bp,kA),Ui(Dl,CA),Ui(G_,KA),o1(r_),a1(tL,uA),l1("default",vA),Hr({type:Mi,event:Mi,update:Mi},Ht),Hr({type:ns,event:ns,update:ns},Ht),Hr({type:is,event:xc,update:is,action:Ht,refineEvent:tf,publishNonRefinedEvent:!0}),Hr({type:_c,event:xc,update:_c,action:Ht,refineEvent:tf,publishNonRefinedEvent:!0}),Hr({type:rs,event:xc,update:rs,action:Ht,refineEvent:tf,publishNonRefinedEvent:!0});function tf(e,t,n,i){return{eventContent:{selected:DS(n),isFromClick:t.isFromClick||!1}}}r1("default",{}),r1("dark",g_);var u1=[],wL={registerPreprocessor:o1,registerProcessor:a1,registerPostInit:vL,registerPostUpdate:yL,registerUpdateLifecycle:Qp,registerAction:Hr,registerCoordinateSystem:mL,registerLayout:_L,registerVisual:Ui,registerTransform:bL,registerLoading:l1,registerMap:xL,registerImpl:AA,PRIORITY:uL,ComponentModel:mt,ComponentView:We,SeriesModel:ze,ChartView:ke,registerComponentModel:function(e){mt.registerClass(e)},registerComponentView:function(e){We.registerClass(e)},registerSeriesModel:function(e){ze.registerClass(e)},registerChartView:function(e){ke.registerClass(e)},registerCustomSeries:function(e,t){},registerSubTypeDefaulter:function(e,t){mt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){WD(e,t)}};function jn(e){if(B(e)){C(e,function(t){jn(t)});return}st(u1,e)>=0||(u1.push(e),tt(e)&&(e={install:e}),e.install(wL))}var SL=(function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e})(),ef=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",we).models[0]},t.type="cartesian2dAxis",t})(mt);Oe(ef,SL);var c1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:K.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:K.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:K.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[K.color.backgroundTint,K.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:K.color.neutral00,borderColor:K.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},ML=pt({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},c1),nf=pt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:K.color.axisMinorSplitLine,width:1}}},c1),TL=pt({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},nf),IL=vt({logBase:10},nf);const kL={category:ML,value:nf,time:TL,log:IL};function h1(e,t,n,i){C(am,function(r,o){var a=pt(pt({},kL[o],!0),i,!0),s=(function(l){F(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,h){var p=Vo(this),f=p?Go(c):{},d=h.getTheme();pt(c,d.get(o+"Axis")),pt(c,this.getDefaultOption()),c.type=p1(c),p&&Fn(c,f,p)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=Uh.createByAxisModel(this))},u.prototype.getCategories=function(c){var h=this.option;if(h.type==="category")return c?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){var h=sl();return h?h.updateModelAxisBreak(this,c):{breaks:[]}},u.type=t+"Axis."+o,u.defaultOption=a,u})(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",p1)}function p1(e){return e.type||(e.data?"category":"value")}var CL=(function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Z(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Bt(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),El=["x","y"];function f1(e){return(e.type==="interval"||e.type==="time")&&!Ns(e)}var DL=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=xn,n.dimensions=El,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!f1(n)||!f1(i))){var r=Zs(n,null),o=Zs(i,null),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,h=(s[1]-a[1])/u,p=a[0]-r[0]*c,f=a[1]-o[0]*h,d=this._transform=[c,0,0,h,p,f];this._invTransform=Jr([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var i=this.getAxis("x"),r=this.getAxis("y");return i.contain(i.toLocalCoord(n[0]))&&r.contain(r.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,i){var r=this.dataToPoint(n),o=this.dataToPoint(i),a=this.getArea(),s=new Q(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(n,i,r){r=r||[];var o=n[0],a=n[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ge(r,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(n,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(n[0]),u=o.parse(n[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[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(n,i,r){if(r=r||[],this._invTransform)return ge(r,n,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(n[0]),i),r[1]=a.coordToData(a.toLocalCoord(n[1]),i),r},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var i=this.getAxis("x").getGlobalExtent(),r=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-n,a=Math.min(r[0],r[1])-n,s=Math.max(i[0],i[1])-o+n,l=Math.max(r[0],r[1])-a+n;return new Q(o,a,s,l)},t})(CL);function AL(e,t){var n=e.scale,i=e.model,r=Jm(n,i,i.ecModel,e),o=kr(n),a=kr(t)?t.intervalStub:t,s=o?n.intervalStub:n,l=n.base,u=a.getTicks(),c=a.getTicks({expandToNicedExtent:!0}),h=u.length-1,p,f,d;if(h===1)p=f=0,d=1;else if(h===2){var g=Lt(u[0].value-u[1].value),v=Lt(u[1].value-u[2].value);p=f=0,g===v?d=2:(d=1,g<v?p=g/v:f=v/g)}else{var y=a.getConfig().interval;p=(1-(u[0].value-c[0].value)/y)%1,f=(1-(c[h].value-u[h].value)/y)%1,d=h-(p?1:0)-(f?1:0)}var m=r.zoomFixMM,_=m[0]||m[1],x=[r.fixMM[0]||_,r.fixMM[1]||_],b=n.getExtent(),w=s.getExtent(),S=Ky(w,x),M,T,k,I,A,D;function L(U){for(var X=50,W=0;W<X&&!U();W++)k=o?k*ct(l,2):bk(k),I=Bi(k)}function P(){M=lt(D-k*p,I)}function R(){T=lt(A+k*f,I)}function z(){D=p?lt(M+k*p,I):M}function O(){A=f?lt(T-k*f,I):T}if(x[0]&&x[1]){M=S[0],T=S[1],k=(T-M)/(d+p+f);var E=e.getExtent(),G=Lt(E[1]-E[0]);I=Nw([T,M],G,.5/d),z(),O(),be(I)&&(k=lt(k,I))}else{var H=S[1]-S[0];k=o?ct(eg(H),1):uc(H/d,ng),I=Bi(k),x[0]?(M=S[0],L(function(){if(z(),A=lt(D+k*d,I),R(),T>=S[1])return!0})):x[1]?(T=S[1],L(function(){if(O(),D=lt(A-k*d,I),P(),M<=S[0])return!0})):L(function(){D=lt(ho(S[0]/k)*k,I),A=lt(xi(S[1]/k)*k,I);var U=fn((A-D)/k);if(U<=d){var X=d-U,W=void 0,et=r.incl0||o;if(et&&S[0]===0)W=[0,X];else if(et&&S[1]===0)W=[X,0];else{var ot=xi(X/2);W=X%2===0?[ot,ot]:M+T<S[0]+S[1]?[ot,ot+1]:[ot+1,ot]}if(D=lt(D-k*W[0],I),A=lt(A+k*W[1],I),P(),R(),M<=S[0]&&T>=S[1])return!0}})}um(n,x,w,[M,T],b,{interval:k,intervalCount:d,intervalPrecision:I,niceExtent:[D,A]})}function d1(e,t){var n=kr(e),i=n?e.intervalStub:e,r=t.fixMinMax||[],o=n?e.getExtent():null,a=i.getExtent(),s=Ky(a,r,t.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=n?PL(i,t):LL(i,t),u=l.intervalPrecision,c=l.interval,h=t.userInterval;h!=null&&(l.interval=h,l.intervalPrecision=Bi(h)),r[0]||(s[0]=lt(xi(s[0]/c)*c,u)),r[1]||(s[1]=lt(ho(s[1]/c)*c,u)),h!=null&&(l.niceExtent=s.slice()),um(e,r,a,s,o,l)}function LL(e,t){var n=qh(t.splitNumber,5),i=qs(e),r=t.minInterval,o=t.maxInterval,a=uc(i/n,!0);r!=null&&a<r&&(a=r),o!=null&&a>o&&(a=o);var s=Bi(a),l=e.getExtent(),u=[lt(ho(l[0]/a)*a,s),lt(xi(l[1]/a)*a,s)];return{interval:a,intervalPrecision:s,niceExtent:u}}function PL(e,t){var n=qh(t.splitNumber,10),i=e.getExtent(),r=qs(e),o=ct(eg(r),1),a=n/r*o;a<=.5&&(o*=10);var s=Bi(o),l=[lt(ho(i[0]/o)*o,s),lt(xi(i[1]/o)*o,s)];return{intervalPrecision:s,interval:o,niceExtent:l}}function g1(e){var t=e.scale,n=e.model,i=n.axis,r=n.ecModel;OL(t,n,i,r)}function OL(e,t,n,i,r){var o=Jm(e,t,i,n),a=js(e)||Yh(e);RL(e,{splitNumber:t.get("splitNumber"),fixMinMax:o.fixMM,userInterval:t.get("interval"),minInterval:a?t.get("minInterval"):null,maxInterval:a?t.get("maxInterval"):null,rawExtentResult:o}),n&&i&&gC(n,e,o,i)}function RL(e,t){NL[e.type](e,t)}var NL={interval:d1,log:d1,time:Lk,ordinal:Ht},v1=[[3,1],[0,2]],EL=(function(){function e(t,n,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=El,this._initCartesian(t,n,i),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var i=this._axesMap;C(this._axesList,function(a){cC(a,aC);var s=a.scale;Fe(s)&&s.setSortInfo(a.model.get("categorySortInfo"))});function r(a){for(var s=St(a),l=[],u=s.length-1;u>=0;u--){var c=a[+s[u]];c.__alignTo?l.push(c):g1(c)}C(l,function(h){BL(h,h.__alignTo)?g1(h):AL(h,h.__alignTo.scale)})}r(i.x),r(i.y);var o={};C(i.x,function(a){y1(i,"y",a,o)}),C(i.y,function(a){y1(i,"x",a,o)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,i){var r=Ch(t,n),o=this._rect=Ri(t.getBoxLayoutParams(),r.refContainer),a=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(x1(a,o),!i){var u=VL(o,s,a,l,n),c=void 0;if(l)c=w1(o.clone(),"axisLabel",null,o,a,u,r);else{var h=GL(t,o,r),p=h.outerBoundsRect,f=h.parsedOuterBoundsContain,d=h.outerBoundsClamp;p&&(c=w1(p,f,d,o,a,u,r))}S1(o,a,Ve.determine,null,c,r),C(this._coordsList,function(g){g.calcAffineTransform()})}},e.prototype.getAxis=function(t,n){var i=this._axesMap[t];if(i!=null)return i[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var i="x"+t+"y"+n;return this._coordsMap[i]}j(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===n)return o[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,n,i){var r=this._findConvertTarget(n);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},e.prototype.convertFromPixel=function(t,n,i){var r=this._findConvertTarget(n);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},e.prototype._findConvertTarget=function(t){var n=t.seriesModel,i=t.xAxisModel||n&&n.getReferringComponents("xAxis",we).models[0],r=t.yAxisModel||n&&n.getReferringComponents("yAxis",we).models[0],o=t.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,st(a,s)<0&&(s=null);else if(i&&r)s=this.getCartesian(i.componentIndex,r.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(r)l=this.getAxis("y",r.componentIndex);else if(o){var u=o.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var n=this._coordsList[0];if(n)return n.containPoint(t)},e.prototype._initCartesian=function(t,n,i){var r=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(n.eachComponent("xAxis",u("x"),this),n.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,C(s.x,function(c,h){C(s.y,function(p,f){var d="x"+h+"y"+f,g=new DL(d);g.master=r,g.model=t,r._coordsMap[d]=g,r._coordsList.push(g),g.addAxis(c),g.addAxis(p)})}),_1(s.x),_1(s.y);function u(c){return function(h,p){if(zL(h,t)){var f=h.get("position");c==="x"?f!=="top"&&f!=="bottom"&&(f=a.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=a.left?"right":"left"),a[f]=!0;var d=Ok(h),g=new P2(c,Rk(h,d),[0,0],d,f);g.onBand=cm(g.scale,h),g.inverse=h.get("inverse"),h.axis=g,g.model=h,g.grid=o,g.index=p,o._axesList.push(g),s[c][p]=g,l[c]++}}}},e.prototype.getTooltipAxes=function(t){var n=[],i=[];return C(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);st(n,o)<0&&n.push(o),st(i,a)<0&&i.push(a)}),{baseAxes:n,otherAxes:i}},e.create=function(t,n){var i=[];return t.eachComponent("grid",function(r,o){var a=new e(r,t,n);a.name="grid_"+o,a.resize(r,n,!0),r.coordinateSystem=a,i.push(a),C(a._axesList,function(s){uC(s,e.dimIdxMap)})}),t.eachSeries(function(r){var o,a;ST({targetModel:r,coordSysType:xn,coordSysProvider:s});function s(){var l=nC(r),u=l.xAxisModel,c=l.yAxisModel;o=u.axis,a=c.axis;var h=u.getCoordSysModel(),p=h.coordinateSystem;return p.getCartesian(u.componentIndex,c.componentIndex)}o&&a&&(Am(o,r,xn),Am(a,r,xn))},this),i},e.dimensions=El,e.dimIdxMap=oh(El),e})();function zL(e,t){return e.getCoordSysModel()===t}function y1(e,t,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var r=e[t],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)m1(s,r[l])&&(o=r[l]);else for(var u in r)if(jt(r,u)&&m1(s,r[u])&&!i[c(r[u])]){o=r[u];break}o&&(i[c(o)]=!0);function c(h){return h.dim+"_"+h.index}}function m1(e,t){if(!t)return!1;var n=t.scale,i=Nk(n,0),r=t&&t.type!=="category"&&t.type!=="time"&&i!==Kh;return r&&e==="auto"&&Fk(t)&&(r=!1),r}function _1(e){for(var t=St(e),n,i=[],r=t.length-1;r>=0;r--){var o=e[+t[r]];jy(o.scale)&&lm(o.model,o.type)==null&&(o.model.get("alignTicks")&&o.model.get("interval")==null?i.push(o):n=o)}n||(n=i.pop()),n&&C(i,function(a){a.__alignTo=n})}function BL(e,t){return Ns(e.scale)||Ns(t.scale)||t.scale.getTicks().length<2}function FL(e,t){var n=e.getExtent(),i=n[0]+n[1];e.toGlobalCoord=e.dim==="x"?function(r){return r+t}:function(r){return i-r+t},e.toLocalCoord=e.dim==="x"?function(r){return r-t}:function(r){return i-r+t}}function x1(e,t){C(e.x,function(n){return b1(n,t.x,t.width)}),C(e.y,function(n){return b1(n,t.y,t.height)})}function b1(e,t,n){var i=[0,n],r=e.inverse?1:0;e.setExtent(i[r],i[1-r]),FL(e,t)}function w1(e,t,n,i,r,o,a){S1(i,r,Ve.estimate,t,!1,a);var s=[0,0,0,0];u(0),u(1),c(i,0,NaN),c(i,1,NaN);var l=Fx(s,function(p){return p>0})==null;return _s(i,s,!0,!0,n),x1(r,i),l;function u(p){C(r[En[p]],function(f){if(Xo(f.model)){var d=o.ensureRecord(f.model),g=d.labelInfoList;if(g)for(var v=0;v<g.length;v++){var y=g[v],m=f.scale.normalize(Yo(f.scale,Fi(y.label).labelInfo.tick));m=p===1?1-m:m,c(y.rect,p,m),c(y.rect,1-p,NaN)}var _=d.nameLayout;if(_){var m=Dr(d.nameLocation)?.5:NaN;c(_.rect,p,m),c(_.rect,1-p,NaN)}}})}function c(p,f,d){var g=e[En[f]]-p[En[f]],v=p[gr[f]]+p[En[f]]-(e[gr[f]]+e[En[f]]);g=h(g,1-d),v=h(v,d);var y=v1[f][0],m=v1[f][1];s[y]=ct(s[y],g),s[m]=ct(s[m],v)}function h(p,f){return p>0&&!Zr(f)&&f>1e-4&&(p/=f),p}}function VL(e,t,n,i,r){var o=new Vm(HL);return C(n,function(a){return C(a,function(s){if(Xo(s.model)){var l=!i;s.axisBuilder=iC(e,t,s.model,r,o,l)}})}),o}function S1(e,t,n,i,r,o){var a=n===Ve.determine;C(t,function(u){return C(u,function(c){Xo(c.model)&&(rC(c.axisBuilder,e,c.model),c.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[En[1-u]]=e[gr[u]]<=o.refContainer[gr[u]]*.5?0:1-u===1?2:1}C(t,function(u,c){return C(u,function(h){Xo(h.model)&&((i==="all"||a)&&h.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),a&&h.axisBuilder.build({axisLine:!0}))})})}function GL(e,t,n){var i,r=e.get("outerBoundsMode",!0);r==="same"?i=t.clone():(r==null||r==="auto")&&(i=Ri(e.get("outerBounds",!0)||t0,n.refContainer));var o=e.get("outerBoundsContain",!0),a;o==null||o==="auto"||st(["all","axisLabel"],o)<0?a="all":a=o;var s=[ac(Y(e.get("outerBoundsClampWidth",!0),hl[0]),t.width),ac(Y(e.get("outerBoundsClampHeight",!0),hl[1]),t.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var HL=function(e,t,n,i,r,o){var a=n.axis.dim==="x"?"y":"x";Gm(e,t,n,i,r,o),Dr(e.nameLocation)||C(t.recordMap[a],function(s){s&&s.labelInfoList&&s.dirVec&&Wm(s.labelInfoList,s.dirVec,i,r)})};function WL(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return UL(n,e,t),n.seriesInvolved&&YL(n,e),n}function UL(e,t,n){var i=t.getComponent("tooltip"),r=t.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];C(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=ua(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,h=c.getModel("tooltip",i);if(C(s.getAxes(),xt(g,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var p=h.get("trigger")==="axis",f=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(p||f)&&C(d.baseAxes,xt(g,f?"cross":!0,p)),f&&C(d.otherAxes,xt(g,"cross",!1))}function g(v,y,m){var _=m.model.getModel("axisPointer",r),x=_.get("show");if(!(!x||x==="auto"&&!v&&!af(_))){y==null&&(y=_.get("triggerTooltip")),_=v?XL(m,h,r,t,v,y):_;var b=_.get("snap"),w=_.get("triggerEmphasis"),S=ua(m.model),M=y||b||m.type==="category",T=e.axesInfo[S]={key:S,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:w,involveSeries:M,snap:b,useHandle:af(_),seriesModels:[],linkGroup:null};u[S]=T,e.seriesInvolved=e.seriesInvolved||M;var k=ZL(o,m);if(k!=null){var I=a[k]||(a[k]={axesInfo:{}});I.axesInfo[S]=T,I.mapper=o[k].mapper,T.linkGroup=I}}}})}function XL(e,t,n,i,r,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};C(s,function(p){l[p]=rt(a.get(p))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),r==="cross"){var c=a.get(["label","show"]);if(u.show=c??!0,!o){var h=l.lineStyle=a.get("crossStyle");h&&vt(u,h.textStyle)}}return e.model.getModel("axisPointer",new Tt(l,n,i))}function YL(e,t){t.eachSeries(function(n){var i=n.coordinateSystem,r=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!i||!i.model||r==="none"||r===!1||r==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||C(e.coordSysAxesInfo[ua(i.model)],function(a){var s=a.axis;i.getAxis(s.dim)===s&&(a.seriesModels.push(n),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=n.getData().count())})})}function ZL(e,t){for(var n=t.model,i=t.dim,r=0;r<e.length;r++){var o=e[r]||{};if(rf(o[i+"AxisId"],n.id)||rf(o[i+"AxisIndex"],n.componentIndex)||rf(o[i+"AxisName"],n.name))return r}}function rf(e,t){return e==="all"||B(e)&&st(e,t)>=0||e===t}function qL(e){var t=of(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=i.parse(a));var s=af(n);o==null&&(r.status=s?"show":"hide");var l=i.getExtent();(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=t.axis.scale.isBlank()?"hide":"show")}}function of(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[ua(e)]}function jL(e){var t=of(e);return t&&t.axisPointerModel}function af(e){return!!e.get(["handle","show"])}function ua(e){return e.type+"||"+e.id}var M1={},T1=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r,o){this.axisPointerClass&&qL(n),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,r,!0)},t.prototype.updateAxisPointer=function(n,i,r,o){this._doUpdateAxisPointerClass(n,r,!1)},t.prototype.remove=function(n,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(n,i){this._disposeAxisPointer(i),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(n,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=jL(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},t.registerAxisPointerClass=function(n,i){M1[n]=i},t.getAxisPointerClass=function(n){return n&&M1[n]},t.type="axis",t})(We),sf=ht();function KL(e,t,n,i){var r=n.axis;if(!r.scale.isBlank()){var o=n.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=i.coordinateSystem.getRect(),u=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=sf(e).splitAreaColors,p=$(),f=0;if(h)for(var d=0;d<u.length;d++){var g=h.get(u[d].tickValue);if(g!=null){f=(g+(c-1)*d)%c;break}}var v=r.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=B(s)?s:[s];for(var d=1;d<u.length;d++){var m=r.toGlobalCoord(u[d].coord),_=void 0,x=void 0,b=void 0,w=void 0;r.isHorizontal()?(_=v,x=l.y,b=m-_,w=l.height,v=_+b):(_=l.x,x=v,b=l.width,w=m-x,v=x+w);var S=u[d-1].tickValue;S!=null&&p.set(S,f),t.add(new Ct({anid:S!=null?"area_"+S:null,shape:{x:_,y:x,width:b,height:w},style:vt({fill:s[f]},y),autoBatch:!0,silent:!0})),f=(f+1)%c}sf(e).splitAreaColors=p}}}function $L(e){sf(e).splitAreaColors=null}var QL=["splitArea","splitLine","minorSplitLine","breakArea"],I1=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="CartesianAxisPointer",n}return t.prototype.render=function(n,i,r,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new Pt,this.group.add(this._axisGroup),!!Xo(n)){this._axisGroup.add(n.axis.axisBuilder.group),C(QL,function(l){n.get([l,"show"])&&JL[l](this,this._axisGroup,n,n.getCoordSysModel(),r)},this);var s=o&&o.type==="changeAxisOrder"&&o.isInitSort;s||av(a,this._axisGroup,n),e.prototype.render.call(this,n,i,r,o)}},t.prototype.remove=function(){$L(this)},t.type="cartesianAxis",t})(T1),JL={splitLine:function(e,t,n,i,r){var o=n.axis;if(!o.scale.isBlank()){var a=n.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=a.get("showMinLine")!==!1,c=a.get("showMaxLine")!==!1;l=B(l)?l:[l];for(var h=i.coordinateSystem.getRect(),p=o.isHorizontal(),f=0,d=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],v=[],y=s.getLineStyle(),m=0;m<d.length;m++){var _=o.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!c)){var x=d[m].tickValue;p?(g[0]=_,g[1]=h.y,v[0]=_,v[1]=h.y+h.height):(g[0]=h.x,g[1]=_,v[0]=h.x+h.width,v[1]=_);var b=f++%l.length,w=new yn({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},style:vt({stroke:l[b]},y),silent:!0});Io(w.shape,y.lineWidth),t.add(w)}}}},minorSplitLine:function(e,t,n,i,r){var o=n.axis,a=n.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=o.isHorizontal(),c=o.getMinorTicksCoords();if(c.length)for(var h=[],p=[],f=s.getLineStyle(),d=0;d<c.length;d++)for(var g=0;g<c[d].length;g++){var v=o.toGlobalCoord(c[d][g].coord);u?(h[0]=v,h[1]=l.y,p[0]=v,p[1]=l.y+l.height):(h[0]=l.x,h[1]=v,p[0]=l.x+l.width,p[1]=v);var y=new yn({anid:"minor_line_"+c[d][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:p[0],y2:p[1]},style:f,silent:!0});Io(y.shape,f.lineWidth),t.add(y)}},splitArea:function(e,t,n,i,r){KL(e,t,n,i)},breakArea:function(e,t,n,i,r){var o=sl(),a=n.axis.scale;o&&a.type!=="ordinal"&&o.rectCoordBuildBreakAxis(t,e,n,i.coordinateSystem.getRect(),r)}},k1=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="xAxis",t})(I1),tP=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=k1.type,n}return t.type="yAxis",t})(I1),eP=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="grid",n}return t.prototype.render=function(n,i){this.group.removeAll(),n.get("show")&&this.group.add(new Ct({shape:n.coordinateSystem.getRect(),style:vt({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(We),C1={offset:0};function nP(e){e.registerComponentView(eP),e.registerComponentModel(wC),e.registerCoordinateSystem("cartesian2d",EL),h1(e,"x",ef,C1),h1(e,"y",ef,C1),e.registerComponentView(k1),e.registerComponentView(tP),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var D1=yn.prototype,lf=hs.prototype,A1=(function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e})();(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(A1);function uf(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var iP=(function(e){F(t,e);function t(n){var i=e.call(this,n)||this;return i.type="ec-line",i}return t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new A1},t.prototype.buildPath=function(n,i){uf(i)?D1.buildPath.call(this,n,i):lf.buildPath.call(this,n,i)},t.prototype.pointAt=function(n){return uf(this.shape)?D1.pointAt.call(this,n):lf.pointAt.call(this,n)},t.prototype.tangentAt=function(n){var i=this.shape,r=uf(i)?[i.x2-i.x1,i.y2-i.y1]:lf.tangentAt.call(this,n);return fu(r,r)},t})(dt),cf=["fromSymbol","toSymbol"];function L1(e){return"_"+e+"Type"}function P1(e,t,n){var i=t.getItemVisual(n,e);if(!i||i==="none")return i;var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=zh(r),u=Us(a||0,l);return i+l+u+(o||"")+(s||"")}function O1(e,t,n){var i=t.getItemVisual(n,e);if(!(!i||i==="none")){var r=t.getItemVisual(n,e+"Size"),o=t.getItemVisual(n,e+"Rotate"),a=t.getItemVisual(n,e+"Offset"),s=t.getItemVisual(n,e+"KeepAspect"),l=zh(r),u=Us(a||0,l),c=zi(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function rP(e){var t=new iP({name:"line",subPixelOptimize:!0});return hf(t.shape,e),t}function hf(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var n=t[2];n?(e.cpx1=n[0],e.cpy1=n[1]):(e.cpx1=NaN,e.cpy1=NaN)}var oP=(function(e){F(t,e);function t(n,i,r){var o=e.call(this)||this;return o._createLine(n,i,r),o}return t.prototype._createLine=function(n,i,r){var o=n.hostModel,a=n.getItemLayout(i),s=n.getItemVisual(i,"z2"),l=rP(a);l.shape.percent=0,fe(l,{z2:Y(s,0),shape:{percent:1}},o,i),this.add(l),C(cf,function(u){var c=O1(u,n,i);this.add(c),this[L1(u)]=P1(u,n,i)},this),this._updateCommonStl(n,i,r)},t.prototype.updateData=function(n,i,r){var o=n.hostModel,a=this.childOfName("line"),s=n.getItemLayout(i),l={shape:{}};hf(l.shape,s),Yt(a,l,o,i),C(cf,function(u){var c=P1(u,n,i),h=L1(u);if(this[h]!==c){this.remove(this.childOfName(u));var p=O1(u,n,i);this.add(p)}this[h]=c},this),this._updateCommonStl(n,i,r)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(n,i,r){var o=n.hostModel,a=this.childOfName("line"),s=r&&r.emphasisLineStyle,l=r&&r.blurLineStyle,u=r&&r.selectLineStyle,c=r&&r.labelStatesModels,h=r&&r.emphasisDisabled,p=r&&r.focus,f=r&&r.blurScope;if(!r||n.hasItemOption){var d=n.getItemModel(i),g=d.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),h=g.get("disabled"),p=g.get("focus"),f=g.get("blurScope"),c=Ci(d)}var v=n.getItemVisual(i,"style"),y=v.stroke;a.useStyle(v),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,C(cf,function(w){var S=this.childOfName(w);if(S){S.setColor(y),S.style.opacity=v.opacity;for(var M=0;M<se.length;M++){var T=se[M],k=a.getState(T);if(k){var I=k.style||{},A=S.ensureState(T),D=A.style||(A.style={});I.stroke!=null&&(D[S.__isEmptyBrush?"stroke":"fill"]=I.stroke),I.opacity!=null&&(D.opacity=I.opacity)}}S.markRedraw()}},this);var m=o.getRawValue(i);vr(this,c,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(w,S){return o.getFormattedLabel(w,S,n.dataType)}},inheritColor:y||K.color.neutral99,defaultOpacity:v.opacity,defaultText:(m==null?n.getName(i):isFinite(m)?lt(m,10):m)+""});var _=this.getTextContent();if(_){var x=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var b=x.get("distance");B(b)||(b=[b,b]),_.__labelDistance=b}this.setTextConfig({position:null,local:!0,inside:!1}),pr(this,p,f,h)},t.prototype.highlight=function(){mo(this)},t.prototype.downplay=function(){_o(this)},t.prototype.updateLayout=function(n,i){this.childOfName("line").stopAnimation(),this.setLinePoints(n.getItemLayout(i))},t.prototype.setLinePoints=function(n){var i=this.childOfName("line");hf(i.shape,n),i.dirty()},t.prototype.beforeUpdate=function(){var n=this,i=n.childOfName("fromSymbol"),r=n.childOfName("toSymbol"),o=n.getTextContent();if(!i&&!r&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),h=l.pointAt(u),p=Xf([],h,c);fu(p,p);function f(k,I){var A=k.__specifiedRotation;if(A==null){var D=l.tangentAt(I);k.attr("rotation",(I===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else k.attr("rotation",A)}if(i&&(i.setPosition(c),f(i,0),i.scaleX=i.scaleY=a*u,i.markRedraw()),r&&(r.setPosition(h),f(r,1),r.scaleX=r.scaleY=a*u,r.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var d=void 0,g=void 0,v=o.__labelDistance,y=v[0]*a,m=v[1]*a,_=u/2,x=l.tangentAt(_),b=[x[1],-x[0]],w=l.pointAt(_);b[1]>0&&(b[0]=-b[0],b[1]=-b[1]);var S=x[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var M=-Math.atan2(x[1],x[0]);h[0]<c[0]&&(M=Math.PI+M),o.rotation=M}var T=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-m,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=m,g="top";break;default:T=0,g="middle"}switch(o.__position){case"end":o.x=p[0]*y+h[0],o.y=p[1]*m+h[1],d=p[0]>.8?"left":p[0]<-.8?"right":"center",g=p[1]>.8?"top":p[1]<-.8?"bottom":"middle";break;case"start":o.x=-p[0]*y+c[0],o.y=-p[1]*m+c[1],d=p[0]>.8?"right":p[0]<-.8?"left":"center",g=p[1]>.8?"bottom":p[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*S+c[0],o.y=c[1]+T,d=x[0]<0?"right":"left",o.originX=-y*S,o.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=w[0],o.y=w[1]+T,d="center",o.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*S+h[0],o.y=h[1]+T,d=x[0]>=0?"right":"left",o.originX=y*S,o.originY=-T;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||g,align:o.__align||d})}},t})(Pt),aP=(function(){function e(t){this.group=new Pt,this._LineCtor=t||oP}return e.prototype.updateData=function(t){var n=this;this._progressiveEls=null;var i=this,r=i.group,o=i._lineData;i._lineData=t,o||r.removeAll();var a=R1(t);t.diff(o).add(function(s){n._doAdd(t,s,a)}).update(function(s,l){n._doUpdate(o,t,l,s,a)}).remove(function(s){r.remove(o.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(n,i){n.updateLayout(t,i)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=R1(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,i){this._progressiveEls=[];function r(l){!l.isGroup&&!sP(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=ms)}for(var o=t.start;o<t.end;o++){var a=n.getItemLayout(o);if(pf(a)){var s=new this._LineCtor(n,o,this._seriesScope);s.traverse(r),this.group.add(s),n.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){ko(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,n,i){var r=t.getItemLayout(n);if(pf(r)){var o=new this._LineCtor(t,n,i);t.setItemGraphicEl(n,o),this.group.add(o)}},e.prototype._doUpdate=function(t,n,i,r,o){var a=t.getItemGraphicEl(i);if(!pf(n.getItemLayout(r))){this.group.remove(a);return}a?a.updateData(n,r,o):a=new this._LineCtor(n,r,o),n.setItemGraphicEl(r,a),this.group.add(a)},e})();function sP(e){return e.animators&&e.animators.length>0}function R1(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Ci(t)}}function N1(e){return isNaN(e[0])||isNaN(e[1])}function pf(e){return e&&!N1(e[0])&&!N1(e[1])}var Xi=ht(),E1=rt,ff=_t,lP=(function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,n,i,r){var o=n.get("value"),a=n.get("status");if(this._axisModel=t,this._axisPointerModel=n,this._api=i,!(!r&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,n,i);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=c;var h=this._moveAnimation=this.determineAnimation(t,n);if(!s)s=this._group=new Pt,this.createPointerEl(s,u,t,n),this.createLabelEl(s,u,t,n),i.getZr().add(s);else{var p=xt(z1,n,h);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,n)}V1(s,n,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,n){var i=n.get("animation"),r=t.axis,o=r.type==="category",a=n.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&Pr(r).w>s)return!0;if(a){var l=of(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},e.prototype.makeElOption=function(t,n,i,r,o){},e.prototype.createPointerEl=function(t,n,i,r){var o=n.pointer;if(o){var a=Xi(t).pointerEl=new OM[o.type](E1(n.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,n,i,r){if(n.label){var o=Xi(t).labelEl=new $t(E1(n.label));t.add(o),F1(o,r)}},e.prototype.updatePointerEl=function(t,n,i){var r=Xi(t).pointerEl;r&&n.pointer&&(r.setStyle(n.pointer.style),i(r,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,i,r){var o=Xi(t).labelEl;o&&(o.setStyle(n.label.style),i(o,{x:n.label.x,y:n.label.y}),F1(o,r))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||a==="hide"){r&&i.remove(r),this._handle=null;return}var s;this._handle||(s=!0,r=this._handle=Hc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){k0(u.event)},onmousedown:ff(this._onHandleDragMove,this,0,0),drift:ff(this._onHandleDragMove,this),ondragend:ff(this._onHandleDragEnd,this)}),i.add(r)),V1(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");B(l)||(l=[l,l]),r.scaleX=l[0]/2,r.scaleY=l[1]/2,o0(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,n){z1(this._axisPointerModel,!n&&this._moveAnimation,this._handle,df(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(df(i),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(df(r)),Xi(i).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),i=this._group,r=this._handle;n&&i&&(this._lastGraphicKey=null,i&&n.remove(i),r&&n.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),hp(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,i){return i=i||0,{x:t[i],y:t[1-i],width:n[i],height:n[1-i]}},e})();function z1(e,t,n,i){B1(Xi(n).lastProp,i)||(Xi(n).lastProp=i,t?Yt(n,i,e):(n.stopAnimation(),n.attr(i)))}function B1(e,t){if(j(e)&&j(t)){var n=!0;return C(t,function(i,r){n=n&&B1(e[r],i)}),!!n}else return e===t}function F1(e,t){e[t.get(["label","show"])?"show":"hide"]()}function df(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function V1(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=n)})}function uP(e){var t=e.get("type"),n=e.getModel(t+"Style"),i;return t==="line"?(i=n.getLineStyle(),i.fill=null):t==="shadow"&&(i=n.getAreaStyle(),i.stroke=null),i}function cP(e,t,n,i,r){var o=n.get("value"),a=G1(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Fs(s.get("padding")||0),u=s.getFont(),c=Jf(a,u),h=r.position,p=c.width+l[1]+l[3],f=c.height+l[0]+l[2],d=r.align;d==="right"&&(h[0]-=p),d==="center"&&(h[0]-=p/2);var g=r.verticalAlign;g==="bottom"&&(h[1]-=f),g==="middle"&&(h[1]-=f/2),hP(h,p,f,i);var v=s.get("backgroundColor");(!v||v==="auto")&&(v=t.get(["axisLine","lineStyle","color"])),e.label={x:h[0],y:h[1],style:yr(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:v}),z2:10}}function hP(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function G1(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:el(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};C(i,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,h=u&&u.getDataParams(c);h&&s.seriesData.push(h)}),q(a)?o=a.replace("{value}",o):tt(a)&&(o=a(s))}return o}function H1(e,t,n){var i=Ze();return cu(i,i,n.rotation),uu(i,i,n.position),Gc([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function pP(e,t,n,i,r,o){var a=Xn.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),cP(t,i,r,o,{position:H1(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function fP(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function dP(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function gP(e,t,n){return Pr(e,{fromStat:{sers:Z(t,function(i){return n.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function vP(e,t,n){return[ct(Wt(t[0],t[1]),e-n/2),Wt(e+n/2,ct(t[0],t[1]))]}var yP=(function(e){F(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,i,r,o,a){var s=r.axis,l=s.grid,u=o.get("type"),c=s.getGlobalExtent(),h=W1(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var f=uP(o),d=mP[u](s,p,c,h,o.get("seriesDataIndices"),o.ecModel);d.style=f,n.graphicKey=d.type,n.pointer=d}var g=ul(l.getRect(),r);pP(i,n,g,r,o,a)},t.prototype.getHandleTransform=function(n,i,r){var o=ul(i.axis.grid.getRect(),i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=H1(i.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),u=W1(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,h=[n.x,n.y];h[c]+=i[c],h[c]=Wt(l[1],h[c]),h[c]=ct(l[0],h[c]);var p=(u[1]+u[0])/2,f=[p,p];f[c]=h[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:n.rotation,cursorPoint:f,tooltipOption:d[c]}},t})(lP);function W1(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var mP={line:function(e,t,n,i){var r=fP([t,i[0]],[t,i[1]],U1(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n,i,r,o){var a=gP(e,r,o),s=i[1]-i[0],l=vP(t,n,a),u=l[0],c=l[1];return{type:"Rect",shape:dP([u,i[0]],[c-u,s],U1(e))}}};function U1(e){return e.dim==="x"?0:1}var _P=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:K.color.border,width:1,type:"dashed"},shadowStyle:{color:K.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:K.color.neutral00,padding:[5,7,5,7],backgroundColor:K.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:K.color.accent40,throttle:40}},t})(mt),Sn=ht(),xP=C;function X1(e,t,n){if(!nt.node){var i=t.getZr();Sn(i).records||(Sn(i).records={}),bP(i,t);var r=Sn(i).records[e]||(Sn(i).records[e]={});r.handler=n}}function bP(e,t){if(Sn(e).initialized)return;Sn(e).initialized=!0,n("click",xt(gf,"click")),n("mousemove",xt(gf,"mousemove")),n("mousewheel",xt(gf,"mousewheel")),n("globalout",SP);function n(i,r){e.on(i,function(o){var a=MP(t);xP(Sn(e).records,function(s){s&&r(s,o,a.dispatchAction)}),wP(a.pendings,t)})}}function wP(e,t){var n=e.showTip.length,i=e.hideTip.length,r;n?r=e.showTip[n-1]:i&&(r=e.hideTip[i-1]),r&&(r.dispatchAction=null,t.dispatchAction(r))}function SP(e,t,n){e.handler("leave",null,n)}function gf(e,t,n,i){t.handler(e,n,i)}function MP(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function vf(e,t){if(!nt.node){var n=t.getZr(),i=(Sn(n).records||{})[e];i&&(Sn(n).records[e]=null)}}var TP=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,i,r){var o=i.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click|mousewheel";X1("axisPointer",r,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(n,i){vf("axisPointer",i)},t.prototype.dispose=function(n,i){vf("axisPointer",i)},t.type="axisPointer",t})(We);function Y1(e,t){var n=[],i=e.seriesIndex,r;if(i==null||!(r=t.getSeriesByIndex(i)))return{point:[]};var o=r.getData(),a=wi(o,e);if(a==null||a<0||B(a))return{point:[]};var s=o.getItemGraphicEl(a),l=r.coordinateSystem;if(r.getTooltipPosition)n=r.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,p=u.dim,f=h==="x"||h==="radius"?1:0,d=o.mapDimension(p),g=[];g[f]=o.get(d,a),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues(Z(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),n=[v.x+v.width/2,v.y+v.height/2]}return{point:n,el:s}}var Z1=ht();function IP(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||_t(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){zl(r)&&(r=Y1({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=zl(r),u=o.axesInfo,c=s.axesInfo,h=i==="leave"||zl(r),p={},f={},d={list:[],map:{}},g={showPointer:xt(CP,f),showTooltip:xt(DP,d)};C(s.coordSysMap,function(y,m){var _=l||y.containPoint(r);C(s.coordSysAxesInfo[m],function(x,b){var w=x.axis,S=OP(u,x);if(!h&&_&&(!u||S)){var M=S&&S.value;M==null&&!l&&(M=w.pointToData(r)),M!=null&&q1(x,M,g,!1,p)}})});var v={};return C(c,function(y,m){var _=y.linkGroup;_&&!f[m]&&C(_.axesInfo,function(x,b){var w=f[b];if(x!==y&&w){var S=w.value;_.mapper&&(S=y.axis.scale.parse(_.mapper(S,j1(x),j1(y)))),v[y.key]=S}})}),C(v,function(y,m){q1(c[m],y,g,!0,p)}),AP(f,c,p),LP(d,r,e,a),PP(c,a,n),p}}function q1(e,t,n,i,r){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var a=kP(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&N(r,s[0]),!i&&e.snap&&o.containData(l)&&l!=null&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}}function kP(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return C(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(i),h,p;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(c,e,n);p=f.dataIndices,h=f.nestestValue}else{if(p=l.indicesOfNearest(i,c[0],e,n.type==="category"?.5:null),!p.length)return;h=l.getData().get(c[0],p[0])}if(be(h)){var d=e-h,g=Math.abs(d);g<=a&&((g<a||d>=0&&s<0)&&(a=g,s=d,r=h,o.length=0),C(p,function(v){o.push({seriesIndex:l.seriesIndex,dataIndexInside:v,dataIndex:l.getData().getRawIndex(v)})}))}}),{payloadBatch:o,snapToValue:r}}function CP(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function DP(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!r.length)){var l=t.coordSys.model,u=ua(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function AP(e,t,n){var i=n.axesInfo=[];C(t,function(r,o){var a=r.axisPointerModel.option,s=e[o];s?(!r.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!r.useHandle&&(a.status="hide"),a.status==="show"&&i.push({axisDim:r.axis.dim,axisIndex:r.axis.model.componentIndex,value:a.value})})}function LP(e,t,n,i){if(zl(t)||!e.list.length){i({type:"hideTip"});return}var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}function PP(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=Z1(i)[r]||{},a=Z1(i)[r]={};C(e,function(c,h){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&C(p.seriesDataIndices,function(f){a[f.seriesIndex+"|"+f.dataIndex]=f})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}C(o,function(c,h){!a[h]&&l.push(u(c))}),C(a,function(c,h){!o[h]&&s.push(u(c))}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function OP(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function j1(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function zl(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function K1(e){T1.registerAxisPointerClass("CartesianAxisPointer",yP),e.registerComponentModel(_P),e.registerComponentView(TP),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!B(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=WL(t,n)}}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},IP)}function RP(e){jn(nP),jn(K1)}function NP(e,t){var n=Fs(t.get("padding")),i=t.getItemStyle(["color","opacity"]);i.fill=t.get("backgroundColor");var r=new Ct({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1});return r}var EP=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:K.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:K.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:K.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:K.color.tertiary,fontSize:14}},t})(mt);function $1(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Q1(e){if(nt.domSupported){for(var t=document.documentElement.style,n=0,i=e.length;n<i;n++)if(e[n]in t)return e[n]}}var J1=Q1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),zP=Q1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function tx(e,t){if(!e)return t;t=dy(t,!0);var n=e.indexOf(t);return e=n===-1?t:"-"+e.slice(0,n)+"-"+t,e.toLowerCase()}function BP(e,t){var n=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return n?n[t]:null}var FP=tx(zP,"transition"),yf=tx(J1,"transform"),VP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(nt.transform3dSupported?"will-change:transform;":"");function GP(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function HP(e,t,n){if(!q(n)||n==="inside")return"";var i=e.get("backgroundColor"),r=e.get("borderWidth");t=Oi(t);var o=GP(n),a=Math.max(Math.round(r)*1.5,6),s="",l=yf+":",u;st(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,h=a+r,p=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),f=Math.round(((p-Math.SQRT2*r)/2+Math.SQRT2*r-(p-h)/2)*100)/100;s+=";"+o+":-"+f+"px";var d=t+" solid "+r+"px;",g=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+i+";"];return'<div style="'+g.join("")+'"></div>'}function WP(e,t,n){var i="cubic-bezier(0.23,1,0.32,1)",r="",o="";return n&&(r=" "+e/2+"s "+i,o="opacity"+r+",visibility"+r),t||(r=" "+e+"s "+i,o+=(o.length?",":"")+(nt.transformSupported?""+yf+r:",left"+r+",top"+r)),FP+":"+o}function ex(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!nt.transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=nt.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+yf+":"+a+";":[["top",0],["left",0],[J1,a]]}function UP(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont());var r=Y(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+r+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),C(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function XP(e,t,n,i){var r=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),u=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=Dy(e,"html"),f=u+"px "+c+"px "+s+"px "+l;return r.push("box-shadow:"+f),t&&o>0&&r.push(WP(o,n,i)),a&&r.push("background-color:"+a),C(["width","color","radius"],function(d){var g="border-"+d,v=dy(g),y=e.get(v);y!=null&&r.push(g+":"+y+(d==="color"?"":"px"))}),r.push(UP(h)),p!=null&&r.push("padding:"+Fs(p).join("px ")+"px"),r.join(";")+";"}function nx(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&zT(e,a,n,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var YP=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,nt.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=n.appendTo,a=o&&(q(o)?document.querySelector(o):Yr(o)?o:tt(o)&&o(t.getDom()));nx(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(i),this._api=t,this._container=a;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=r.handler,c=r.painter.getViewportRoot();De(c,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),i=BP(n,"position"),r=n.style;r.position!=="absolute"&&i!=="absolute"&&(r.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=VP+XP(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+ex(o[0],o[1],!0)+("border-color:"+Oi(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,i,r,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(q(o)&&i.get("trigger")==="item"&&!$1(i)&&(s=HP(i,r,o)),q(t))a.innerHTML=t+s;else if(t){a.innerHTML="",B(t)||(t=[t]);for(var l=0;l<t.length;l++)Yr(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},e.prototype.moveTo=function(t,n){if(this.el){var i=this._styleCoord;if(nx(i,this._zr,this._container,t,n),i[0]!=null&&i[1]!=null){var r=this.el.style,o=ex(i[0],i[1]);C(o,function(a){r[a[0]]=a[1]})}}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){var t=this,n=this.el.style;this._enableDisplayTransition?(n.visibility="hidden",n.opacity="0"):n.display="none",nt.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;BT(t&&t.painter&&t.painter.getViewportRoot(),this._container);var n=this.el;if(n){n.onmouseenter=n.onmousemove=n.onmouseleave=null;var i=n.parentNode;i&&i.removeChild(n)}this.el=this._container=null},e})(),ZP=(function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),rx(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,n,i,r,o){var a=this;j(t)&&ae(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new $t({style:{rich:n.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Dy(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),C(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),C(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,n=this.el.getBoundingRect(),i=ix(t.style);return[n.width+i.left+i.right,n.height+i.top+i.bottom]},e.prototype.moveTo=function(t,n){var i=this.el;if(i){var r=this._styleCoord;rx(r,this._zr,t,n),t=r[0],n=r[1];var o=i.style,a=Kn(o.borderWidth||0),s=ix(o);i.x=t+a+s.left,i.y=n+a+s.top,i.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),n*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(_t(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e})();function Kn(e){return Math.max(0,e)}function ix(e){var t=Kn(e.shadowBlur||0),n=Kn(e.shadowOffsetX||0),i=Kn(e.shadowOffsetY||0);return{left:Kn(t-n),right:Kn(t+n),top:Kn(t-i),bottom:Kn(t+i)}}function rx(e,t,n,i){e[0]=n,e[1]=i,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qP=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),jP=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(n,i){if(!(nt.node||!i.getDom())){var r=n.getComponent("tooltip"),o=this._renderMode=iS(r.get("renderMode"));this._tooltipContent=o==="richText"?new ZP(i):new YP(i,{appendTo:r.get("appendToBody",!0)?"body":r.get("appendTo",!0)})}},t.prototype.render=function(n,i,r){if(!(nt.node||!r.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?o0(this,"_updatePosition",50,"fixRate"):hp(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var n=this._tooltipModel,i=n.get("triggerOn");X1("itemTooltip",this._api,_t(function(r,o,a){i!=="none"&&(i.indexOf(r)>=0?this._tryShow(o,a):r==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,i=this._ecModel,r=this._api,o=n.get("triggerOn");if(n.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(n,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,i,r,o){if(!(o.from===this.uid||nt.node||!r.getDom())){var a=ox(o,r);this._ticket="";var s=o.dataByCoordSys,l=JP(o,i,r);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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var c=qP;c.x=o.x,c.y=o.y,c.update(),ut(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,i,r,o))return;var h=Y1(o,i),p=h.point[0],f=h.point[1];p!=null&&f!=null&&this._tryShow({offsetX:p,offsetY:f,target:h.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(n,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,o.from!==this.uid&&this._hide(ox(o,r))},t.prototype._manuallyAxisShowTip=function(n,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var u=i.getSeriesByIndex(a);if(u){var c=u.getData(),h=ca([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(n,i){var r=n.target,o=this._tooltipModel;if(o){this._lastX=n.offsetX,this._lastY=n.offsetY;var a=n.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,n);else if(r){var s=ut(r);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;sa(r,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(ut(c).dataIndex!=null?l=c:ut(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(n,l,i):u?this._showComponentItemTooltip(n,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},t.prototype._showOrMove=function(n,i){var r=n.get("showDelay");i=_t(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(n,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=ca([i.tooltipOption],o),l=this._renderMode,u=[],c=Ei("section",{blocks:[],noHeader:!0}),h=[],p=new Rh;C(n,function(m){C(m.dataByAxis,function(_){var x=r.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value,w=x.axis,S=w.scale.parse(b);if(!(!x||b==null)){var M=G1(b,w,r,_.seriesDataIndices,_.valueLabelOpt),T=Ei("section",{header:M,noHeader:!Xe(M),sortBlocks:!0,blocks:[]});c.blocks.push(T),C(_.seriesDataIndices,function(k){var I=r.getSeriesByIndex(k.seriesIndex),A=k.dataIndexInside,D=I.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=el(x.axis,{value:S}),D.axisValueLabel=M,D.marker=p.makeTooltipMarker("item",Oi(D.color),l);var L=my(I.formatTooltip(A,!0,null)),P=L.frag;if(P){var R=ca([I],o).get("valueFormatter");T.blocks.push(R?N({valueFormatter:R},P):P)}L.text&&h.push(L.text),u.push(D)}})}})}),c.blocks.reverse(),h.reverse();var f=i.position,d=s.get("order"),g=ky(c,p,l,d,r.get("useUTC"),s.get("textStyle"));g&&h.unshift(g);var v=l==="richText"?`
|
|
15
|
+
|
|
16
|
+
`:"<br/>",y=h.join(v);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,f,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],f,null,p)})},t.prototype._showSeriesItemTooltip=function(n,i,r){var o=this._ecModel,a=ut(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,h=a.dataType,p=u.getData(h),f=this._renderMode,d=n.positionDefault,g=ca([p.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),v=g.get("trigger");if(!(v!=null&&v!=="item")){var y=u.getDataParams(c,h),m=new Rh;y.marker=m.makeTooltipMarker("item",Oi(y.color),f);var _=my(u.formatTooltip(c,!1,h)),x=g.get("order"),b=g.get("valueFormatter"),w=_.frag,S=w?ky(b?N({valueFormatter:b},w):w,m,f,x,o.get("useUTC"),g.get("textStyle")):_.text,M="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,S,y,M,n.offsetX,n.offsetY,n.position,n.target,m)}),r({type:"showTip",dataIndexInside:c,dataIndex:p.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,i,r){var o=this._renderMode==="html",a=ut(i),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=rt(l),l.content=ue(l.content));var h=[l],p=this._ecModel.getComponent(a.componentMainType,a.componentIndex);p&&h.push(p),h.push({formatter:l.content});var f=n.positionDefault,d=ca(h,this._tooltipModel,f?{position:f}:null),g=d.get("content"),v=Math.random()+"",y=new Rh;this._showOrMove(d,function(){var m=rt(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,v,n.offsetX,n.offsetY,n.position,i,y)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,i,r,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var h=this._tooltipContent;h.setEnterable(n.get("enterable"));var p=n.get("formatter");l=l||n.get("position");var f=i,d=this._getNearestPoint([a,s],r,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)),g=d.color;if(p)if(q(p)){var v=n.ecModel.get("useUTC"),y=B(r)?r[0]:r,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;f=p,m&&(f=Bs(y.axisValue,f,v)),f=vy(f,r,!0)}else if(tt(p)){var _=_t(function(x,b){x===this._ticket&&(h.setContent(b,c,n,g,l),this._updatePosition(n,l,a,s,h,r,u))},this);this._ticket=o,f=p(r,o,_)}else f=p;h.setContent(f,c,n,g,l),h.show(n,g),this._updatePosition(n,l,a,s,h,r,u)}},t.prototype._getNearestPoint=function(n,i,r,o,a){if(r==="axis"||B(i))return{color:o||a};if(!B(i))return{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(n,i,r,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||n.get("position");var h=a.getSize(),p=n.get("align"),f=n.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),tt(i)&&(i=i([r,o],s,a.el,d,{viewSize:[u,c],contentSize:h.slice()})),B(i))r=bt(i[0],u),o=bt(i[1],c);else if(j(i)){var g=i;g.width=h[0],g.height=h[1];var v=Ri(g,{width:u,height:c});r=v.x,o=v.y,p=null,f=null}else if(q(i)&&l){var y=QP(i,d,h,n.get("borderWidth"));r=y[0],o=y[1]}else{var y=KP(r,o,a,u,c,p?null:20,f?null:20);r=y[0],o=y[1]}if(p&&(r-=ax(p)?h[0]/2:p==="right"?h[0]:0),f&&(o-=ax(f)?h[1]/2:f==="bottom"?h[1]:0),$1(n)){var y=$P(r,o,a,u,c);r=y[0],o=y[1]}a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(n,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===n.length;return a&&C(r,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},h=c.dataByAxis||[];a=a&&u.length===h.length,a&&C(u,function(p,f){var d=h[f]||{},g=p.seriesDataIndices||[],v=d.seriesDataIndices||[];a=a&&p.value===d.value&&p.axisType===d.axisType&&p.axisId===d.axisId&&g.length===v.length,a&&C(g,function(y,m){var _=v[m];a=a&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),o&&C(p.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],x=o[m];_&&x&&x.data!==_.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=i,!!a},t.prototype._hide=function(n){this._lastDataByCoordSys=null,this._cbParamsList=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,i){nt.node||!i.getDom()||(hp(this,"_updatePosition"),this._tooltipContent.dispose(),vf("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(We);function ca(e,t,n){var i=t.ecModel,r;n?(r=new Tt(n,i,i),r=new Tt(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Tt&&(a=a.get("tooltip",!0)),q(a)&&(a={formatter:a}),a&&(r=new Tt(a,r,i)))}return r}function ox(e,t){return e.dispatchAction||_t(t.dispatchAction,t)}function KP(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>i?e-=l+o:e+=o),a!=null&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function $P(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function QP(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function ax(e){return e==="center"||e==="middle"}function JP(e,t,n){var i=fc(e).queryOptionMap,r=i.keys()[0];if(!(!r||r==="series")){var o=yo(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=n.getViewOfComponentModel(a),l;if(s.group.traverse(function(u){var c=ut(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:r,componentIndex:a.componentIndex,el:l}}}}function tO(e){jn(K1),e.registerComponentModel(EP),e.registerComponentView(jP),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ht),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ht)}function eO(e,t){if(!e)return!1;for(var n=B(e)?e:[e],i=0;i<n.length;i++)if(n[i]&&n[i][t])return!0;return!1}function Bl(e){Qa(e,"label",["show"])}var Fl=ht(),Wr=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return t.prototype.init=function(n,i,r){this.mergeDefaultAndTheme(n,r),this._mergeOption(n,r,!1,!0)},t.prototype.isAnimationEnabled=function(){if(nt.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},t.prototype.mergeOption=function(n,i){this._mergeOption(n,i,!1,!1)},t.prototype._mergeOption=function(n,i,r,o){var a=this.mainType;r||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Fl(s)[a];if(!l||!l.data){Fl(s)[a]=null;return}u?u._mergeOption(l,i,!0):(o&&Bl(l),C(l.data,function(c){c instanceof Array?(Bl(c[0]),Bl(c[1])):Bl(c)}),u=this.createMarkerModelFromSeries(l,this,i),N(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Fl(s)[a]=u},this)},t.prototype.formatTooltip=function(n,i,r){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Ei("section",{header:this.name,blocks:[Ei("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(n){this._data=n},t.prototype.getDataParams=function(n,i){var r=Ah.prototype.getDataParams.call(this,n,i),o=this.__hostSeries;return o&&(r.seriesId=o.id,r.seriesName=o.name,r.seriesType=o.subType),r},t.getMarkerModelFromSeries=function(n,i){return Fl(n)[i]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(mt);Oe(Wr,Ah.prototype);function nO(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function iO(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Vl(e,t,n,i,r,o,a){var s=[],l=Pi(t,r),u=l?t.getCalculationInfo("stackResultDimension"):r,c=Hl(t,u,e),h=t.hostModel,p=h.indicesOfNearest(n,u,c)[0];s[o]=t.get(i,p),s[a]=t.get(u,p);var f=t.get(r,p),d=dn(t.get(r,p));return d=Math.min(d,20),d>=0&&(s[a]=+s[a].toFixed(d)),[s,f]}var Gl={min:xt(Vl,"min"),max:xt(Vl,"max"),average:xt(Vl,"average"),median:xt(Vl,"median")};function sx(e,t){if(t){var n=e.getData(),i=e.coordinateSystem,r=i&&i.dimensions;if(!iO(t)&&!B(t.coord)&&B(r)){var o=lx(t,n,i,e);if(t=rt(t),t.type&&Gl[t.type]&&o.baseAxis&&o.valueAxis){var a=st(r,o.baseAxis.dim),s=st(r,o.valueAxis.dim),l=Gl[t.type](n,o.valueAxis.dim,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!B(r)){t.coord=[];var u=e.getBaseAxis();if(u&&t.type&&Gl[t.type]){var c=i.getOtherAxis(u);c&&(t.value=Hl(n,n.mapDimension(c.dim),t.type))}}else for(var h=t.coord,p=0;p<2;p++)Gl[h[p]]&&(h[p]=Hl(n,n.mapDimension(r[p]),h[p]));return t}}function lx(e,t,n,i){var r={};return e.valueIndex!=null||e.valueDim!=null?(r.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(rO(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function rO(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function ux(e,t){return e&&e.containData&&t.coord&&!nO(t)?e.containData(t.coord):!0}function oO(e,t){return e?function(n,i,r,o){var a=o<2?n.coord&&n.coord[o]:n.value;return br(a,t[o])}:function(n,i,r,o){return br(n.value,t[o])}}function Hl(e,t,n){if(n==="average"){var i=0,r=0;return e.each(t,function(o,a){isNaN(o)||(i+=o,r++)}),i/r}else return n==="median"?e.getMedian(t):e.getDataExtent(t)[n==="max"?1:0]}var mf=ht(),aO=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.init=function(){this.markerGroupMap=$()},t.prototype.render=function(n,i,r){var o=this,a=this.markerGroupMap;a.each(function(s){mf(s).keep=!1}),i.eachSeries(function(s){var l=Wr.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,i,r)}),a.each(function(s){!mf(s).keep&&o.group.remove(s.group)}),sO(i,a,this.type)},t.prototype.markKeep=function(n){mf(n).keep=!0},t.prototype.toggleBlurSeries=function(n,i){var r=this;C(n,function(o){var a=Wr.getMarkerModelFromSeries(o,r.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(i?Dg(l):Sc(l))})}})},t.type="marker",t})(We);function sO(e,t,n){e.eachSeries(function(i){var r=Wr.getMarkerModelFromSeries(i,n),o=t.get(i.id);if(r&&o&&o.group){var a=Zc(r),s=a.z,l=a.zlevel;qc(o.group,s,l)}})}var lO=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.createMarkerModelFromSeries=function(n,i,r){return new t(n,i,r)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(Wr),Wl=ht(),uO=function(e,t,n,i){var r=e.getData(),o;if(B(i))o=i;else{var a=i.type;if(a==="min"||a==="max"||a==="average"||a==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=t.getAxis(i.yAxis!=null?"y":"x"),l=qr(i.yAxis,i.xAxis);else{var u=lx(i,r,t,e);s=u.valueAxis;var c=$v(r,u.valueDataDim);l=Hl(r,c,a)}var h=s.dim==="x"?0:1,p=1-h,f=rt(i),d={coord:[]};f.type=null,f.coord=[],f.coord[p]=-1/0,d.coord[p]=1/0;var g=n.get("precision");g>=0&&yt(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[h]=d.coord[h]=l,o=[f,d,{type:a,valueIndex:i.valueIndex,value:l}]}else o=[]}var v=[sx(e,o[0]),sx(e,o[1]),N({},o[2])];return v[2].type=v[2].type||null,pt(v[2],v[0]),pt(v[2],v[1]),v};function Ul(e){return!isNaN(e)&&!isFinite(e)}function cx(e,t,n,i){var r=1-e,o=i.dimensions[e];return Ul(t[r])&&Ul(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function cO(e,t){if(e.type==="cartesian2d"){var n=t[0].coord,i=t[1].coord;if(n&&i&&(cx(1,n,i,e)||cx(0,n,i,e)))return!0}return ux(e,t[0])&&ux(e,t[1])}function _f(e,t,n,i,r){var o=i.coordinateSystem,a=e.getItemModel(t),s,l=bt(a.get("x"),r.getWidth()),u=bt(a.get("y"),r.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=o.dimensions,h=e.get(c[0],t),p=e.get(c[1],t);s=o.dataToPoint([h,p])}if(Wh(o,"cartesian2d")){var f=o.getAxis("x"),d=o.getAxis("y"),c=o.dimensions;Ul(e.get(c[0],t))?s[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):Ul(e.get(c[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var hO=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.updateTransform=function(n,i,r){i.eachSeries(function(o){var a=Wr.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=Wl(a).from,u=Wl(a).to;l.each(function(c){_f(l,c,!0,o,r),_f(u,c,!1,o,r)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(n,i,r,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new aP);this.group.add(c.group);var h=pO(a,n,i),p=h.from,f=h.to,d=h.line;Wl(i).from=p,Wl(i).to=f,i.setData(d);var g=i.get("symbol"),v=i.get("symbolSize"),y=i.get("symbolRotate"),m=i.get("symbolOffset");B(g)||(g=[g,g]),B(v)||(v=[v,v]),B(y)||(y=[y,y]),B(m)||(m=[m,m]),h.from.each(function(x){_(p,x,!0),_(f,x,!1)}),d.each(function(x){var b=d.getItemModel(x),w=b.getModel("lineStyle").getLineStyle();d.setItemLayout(x,[p.getItemLayout(x),f.getItemLayout(x)]);var S=b.get("z2");w.stroke==null&&(w.stroke=p.getItemVisual(x,"style").fill),d.setItemVisual(x,{z2:Y(S,0),fromSymbolKeepAspect:p.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:p.getItemVisual(x,"symbolOffset"),fromSymbolRotate:p.getItemVisual(x,"symbolRotate"),fromSymbolSize:p.getItemVisual(x,"symbolSize"),fromSymbol:p.getItemVisual(x,"symbol"),toSymbolKeepAspect:f.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(x,"symbolOffset"),toSymbolRotate:f.getItemVisual(x,"symbolRotate"),toSymbolSize:f.getItemVisual(x,"symbolSize"),toSymbol:f.getItemVisual(x,"symbol"),style:w})}),c.updateData(d),h.line.eachItemGraphicEl(function(x){ut(x).dataModel=i,x.traverse(function(b){ut(b).dataModel=i})});function _(x,b,w){var S=x.getItemModel(b);_f(x,b,w,n,o);var M=S.getModel("itemStyle").getItemStyle();M.fill==null&&(M.fill=y_(l,"color")),x.setItemVisual(b,{symbolKeepAspect:S.get("symbolKeepAspect"),symbolOffset:Y(S.get("symbolOffset",!0),m[w?0:1]),symbolRotate:Y(S.get("symbolRotate",!0),y[w?0:1]),symbolSize:Y(S.get("symbolSize"),v[w?0:1]),symbol:Y(S.get("symbol",!0),g[w?0:1]),style:M})}this.markKeep(c),c.group.silent=i.get("silent")||n.get("silent")},t.type="markLine",t})(aO);function pO(e,t,n){var i;e?i=Z(e&&e.dimensions,function(u){var c=t.getData(),h=c.getDimensionInfo(c.mapDimension(u))||{};return N(N({},h),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var r=new No(i,n),o=new No(i,n),a=new No([],n),s=Z(n.get("data"),xt(uO,t,e,n));e&&(s=Bt(s,xt(cO,e)));var l=oO(!!e,i);return r.initData(Z(s,function(u){return u[0]}),null,l),o.initData(Z(s,function(u){return u[1]}),null,l),a.initData(Z(s,function(u){return u[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}function fO(e){e.registerComponentModel(lO),e.registerComponentView(hO),e.registerPreprocessor(function(t){eO(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var dO=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},xf=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,i,r){this.mergeDefaultAndTheme(n,r),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.call(this,n,i),this._updateSelector(n)},t.prototype._updateSelector=function(n){var i=n.selector,r=this.ecModel;i===!0&&(i=n.selector=["all","inverse"]),B(i)&&C(i,function(o,a){q(o)&&(o={type:o}),i[a]=pt(o,dO(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<n.length;r++){var o=n[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(n[0].get("name"))}},t.prototype._updateData=function(n){var i=[],r=[];n.eachRawSeries(function(l){var u=l.name;r.push(u);var c;if(l.legendVisualProvider){var h=l.legendVisualProvider,p=h.getAllNames();n.isSeriesFiltered(l)||(r=r.concat(p)),p.length?i=i.concat(p):c=!0}else c=!0;c&&hc(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=$(),s=Z(o,function(l){return(q(l)||yt(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new Tt(l,this,this.ecModel))},this);this._data=Bt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(n){var i=this.option.selected,r=this.get("selectedMode");if(r==="single"){var o=this._data;C(o,function(a){i[a.get("name")]=!1})}i[n]=!0},t.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},t.prototype.toggleSelected=function(n){var i=this.option.selected;i.hasOwnProperty(n)||(i[n]=!0),this[i[n]?"unSelect":"select"](n)},t.prototype.allSelect=function(){var n=this._data,i=this.option.selected;C(n,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var n=this._data,i=this.option.selected;C(n,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(n){var i=this.option.selected;return!(i.hasOwnProperty(n)&&!i[n])&&st(this._availableNames,n)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:K.size.m,align:"auto",backgroundColor:K.color.transparent,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:K.color.disabled,inactiveBorderColor:K.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:K.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:K.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:K.color.tertiary,borderWidth:1,borderColor:K.color.border},emphasis:{selectorLabel:{show:!0,color:K.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(mt),Ur=xt,bf=C,Xl=Pt,hx=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new Xl),this.group.add(this._selectorGroup=new Xl),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,i,r,l,s,u);var c=Ch(n,r).refContainer,h=n.getBoxLayoutParams(),p=n.get("padding"),f=Ri(h,c,p),d=this.layoutInner(n,a,f,o,l,u),g=Ri(vt({width:d.width,height:d.height},h),c,p);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=NP(d,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,i,r,o,a,s,l){var u=this.getContentGroup(),c=$(),h=i.get("selectedMode"),p=i.get("triggerEvent"),f=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&f.push(d.id)}),bf(i.getData(),function(d,g){var v=this,y=d.get("name");if(!this.newlineDisabled&&(y===""||y===`
|
|
17
|
+
`)){var m=new Xl;m.newline=!0,u.add(m);return}var _=r.getSeriesByName(y)[0];if(!c.get(y))if(_){var x=_.getData(),b=x.getVisual("legendLineStyle")||{},w=x.getVisual("legendIcon"),S=x.getVisual("style"),M=this._createItem(_,y,g,d,i,n,b,S,w,h,o);M.on("click",Ur(px,y,null,o,f)).on("mouseover",Ur(wf,_.name,null,o,f)).on("mouseout",Ur(Sf,_.name,null,o,f)),r.ssr&&M.eachChild(function(T){var k=ut(T);k.seriesIndex=_.seriesIndex,k.dataIndex=g,k.ssrType="legend"}),p&&M.eachChild(function(T){v.packEventData(T,i,_,g,y)}),c.set(y,!0)}else r.eachRawSeries(function(T){var k=this;if(!c.get(y)&&T.legendVisualProvider){var I=T.legendVisualProvider;if(!I.containName(y))return;var A=I.indexOfName(y),D=I.getItemVisual(A,"style"),L=I.getItemVisual(A,"legendIcon"),P=$e(D.fill);P&&P[3]===0&&(P[3]=.2,D=N(N({},D),{fill:ro(P,"rgba")}));var R=this._createItem(T,y,g,d,i,n,{},D,L,h,o);R.on("click",Ur(px,null,y,o,f)).on("mouseover",Ur(wf,null,y,o,f)).on("mouseout",Ur(Sf,null,y,o,f)),r.ssr&&R.eachChild(function(z){var O=ut(z);O.seriesIndex=T.seriesIndex,O.dataIndex=g,O.ssrType="legend"}),p&&R.eachChild(function(z){k.packEventData(z,i,T,g,y)}),c.set(y,!0)}},this)},this),a&&this._createSelector(a,i,o,s,l)},t.prototype.packEventData=function(n,i,r,o,a){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:o,value:a,seriesIndex:r.seriesIndex};ut(n).eventData=s},t.prototype._createSelector=function(n,i,r,o,a){var s=this.getSelectorGroup();bf(n,function(l){var u=l.type,c=new $t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(c);var h=i.getModel("selectorLabel"),p=i.getModel(["emphasis","selectorLabel"]);vr(c,{normal:h,emphasis:p},{defaultText:l.title}),kc(c)})},t.prototype._createItem=function(n,i,r,o,a,s,l,u,c,h,p){var f=n.visualDrawType,d=a.get("itemWidth"),g=a.get("itemHeight"),v=a.isSelected(i),y=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),_=o.get("icon");c=_||c||"roundRect";var x=gO(c,o,l,u,f,v,p),b=new Xl,w=o.getModel("textStyle");if(tt(n.getLegendIcon)&&(!_||_==="inherit"))b.add(n.getLegendIcon({itemWidth:d,itemHeight:g,icon:c,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var S=_==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;b.add(vO({itemWidth:d,itemHeight:g,icon:c,iconRotate:S,itemStyle:x.itemStyle,symbolKeepAspect:m}))}var M=s==="left"?d+5:-5,T=s,k=a.get("formatter"),I=i;q(k)&&k?I=k.replace("{name}",i??""):tt(k)&&(I=k(i));var A=v?w.getTextColor():o.get("inactiveColor");b.add(new $t({style:yr(w,{text:I,x:M,y:g/2,fill:A,align:T,verticalAlign:"middle"},{inheritColor:A})}));var D=new Ct({shape:b.getBoundingRect(),style:{fill:"transparent"}}),L=o.getModel("tooltip");return L.get("show")&&xs({el:D,componentModel:a,itemName:i,itemTooltipOption:L.option}),b.add(D),b.eachChild(function(P){P.silent=!0}),D.silent=!h,this.getContentGroup().add(b),kc(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(n,i,r,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Bo(n.get("orient"),l,n.get("itemGap"),r.width,r.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),a){Bo("horizontal",u,n.get("selectorItemGap",!0));var p=u.getBoundingRect(),f=[-p.x,-p.y],d=n.get("selectorButtonGap",!0),g=n.getOrient().index,v=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?f[g]+=c[v]+d:h[g]+=p[v]+d,f[1-g]+=c[y]/2-p[y]/2,u.x=f[0],u.y=f[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[v]=c[v]+d+p[v],_[y]=Math.max(c[y],p[y]),_[m]=Math.min(0,p[m]+f[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(We);function gO(e,t,n,i,r,o,a){function s(v,y){v.lineWidth==="auto"&&(v.lineWidth=y.lineWidth>0?2:0),bf(v,function(m,_){v[_]==="inherit"&&(v[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:zp(h,a),u.fill==="inherit"&&(u.fill=i[r]),u.stroke==="inherit"&&(u.stroke=i[c]),u.opacity==="inherit"&&(u.opacity=(r==="fill"?i:n).opacity),s(u,i);var p=t.getModel("lineStyle"),f=p.getLineStyle();if(s(f,n),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),f.stroke==="auto"&&(f.stroke=i.fill),!o){var d=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=d==="auto"?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=p.get("inactiveColor"),f.lineWidth=p.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function vO(e){var t=e.icon||"roundRect",n=zi(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=K.color.neutral00,n.style.lineWidth=2),n}function px(e,t,n,i){Sf(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:e??t}),wf(e,t,n,i)}function wf(e,t,n,i){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:i})}function Sf(e,t,n,i){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:i})}function ha(e,t,n){var i=e==="allSelect"||e==="inverseSelect",r={},o=[];n.eachComponent({mainType:"legend",query:t},function(s){i?s[e]():s[e](t.name),fx(s,r),o.push(s.componentIndex)});var a={};return n.eachComponent("legend",function(s){C(r,function(l,u){s[l?"select":"unSelect"](u)}),fx(s,a)}),i?{selected:a,legendIndex:o}:{name:t.name,selected:a}}function fx(e,t){var n=t||{};return C(e.getData(),function(i){var r=i.get("name");if(!(r===`
|
|
18
|
+
`||r==="")){var o=e.isSelected(r);jt(n,r)?n[r]=n[r]&&o:n[r]=o}}),n}function yO(e){e.registerAction("legendToggleSelect","legendselectchanged",xt(ha,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",xt(ha,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",xt(ha,"inverseSelect")),e.registerAction("legendSelect","legendselected",xt(ha,"select")),e.registerAction("legendUnSelect","legendunselected",xt(ha,"unSelect"))}var mO=vc(_O);function _O(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(n){for(var i=0;i<t.length;i++)if(!t[i].isSelected(n.name))return!1;return!0})}function dx(e){e.registerComponentModel(xf),e.registerComponentView(hx),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,mO),e.registerSubTypeDefaulter("legend",function(){return"plain"}),yO(e)}var xO=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},t.prototype.init=function(n,i,r){var o=Go(n);e.prototype.init.call(this,n,i,r),gx(this,n,o)},t.prototype.mergeOption=function(n,i){e.prototype.mergeOption.call(this,n,i),gx(this,this.option,n)},t.type="legend.scroll",t.defaultOption=Qv(xf.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:K.color.accent50,pageIconInactiveColor:K.color.accent10,pageIconSize:15,pageTextStyle:{color:K.color.tertiary},animationDurationUpdate:800}),t})(xf);function gx(e,t,n){var i=e.getOrient(),r=[1,1];r[i.index]=0,Fn(t,n,{type:"box",ignoreSize:!!r})}var vx=Pt,Mf=["width","height"],Tf=["x","y"],bO=(function(e){F(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new vx),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new vx)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(n,i,r,o,a,s,l){var u=this;e.prototype.renderInner.call(this,n,i,r,o,a,s,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),p=B(h)?h:[h,h];d("pagePrev",0);var f=i.getModel("pageTextStyle");c.add(new $t({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,v){var y=g+"DataIndex",m=Hc(i.get("pageIcons",!0)[i.getOrient().name][v],{onclick:_t(u._pageGo,u,y,i,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});m.name=g,c.add(m)}},t.prototype.layoutInner=function(n,i,r,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=Mf[u],h=Tf[u],p=Mf[1-u],f=Tf[1-u];a&&Bo("horizontal",l,n.get("selectorItemGap",!0));var d=n.get("selectorButtonGap",!0),g=l.getBoundingRect(),v=[-g.x,-g.y],y=rt(r);a&&(y[c]=r[c]-g[c]-d);var m=this._layoutContentAndController(n,o,y,u,c,p,f,h);if(a){if(s==="end")v[u]+=m[c]+d;else{var _=g[c]+d;v[u]-=_,m[h]-=_}m[c]+=g[c]+d,v[1-u]+=m[f]+m[p]/2-g[p]/2,m[p]=Math.max(m[p],g[p]),m[f]=Math.min(m[f],g[f]+v[1-u]),l.x=v[0],l.y=v[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(n,i,r,o,a,s,l,u){var c=this.getContentGroup(),h=this._containerGroup,p=this._controllerGroup;Bo(n.get("orient"),c,n.get("itemGap"),o?r.width:null,o?null:r.height),Bo("horizontal",p,n.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),d=p.getBoundingRect(),g=this._showController=f[a]>r[a],v=[-f.x,-f.y];i||(v[o]=c[u]);var y=[0,0],m=[-d.x,-d.y],_=Y(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var x=n.get("pageButtonPosition",!0);x==="end"?m[o]+=r[a]-d[a]:y[o]+=d[a]+_}m[1-o]+=f[s]/2-d[s]/2,c.setPosition(v),h.setPosition(y),p.setPosition(m);var b={x:0,y:0};if(b[a]=g?r[a]:f[a],b[s]=Math.max(f[s],d[s]),b[l]=Math.min(0,d[l]+m[1-o]),h.__rectSize=r[a],g){var w={x:0,y:0};w[a]=Math.max(r[a]-d[a]-_,0),w[s]=b[s],h.setClipPath(new Ct({shape:w})),h.__rectSize=w[a]}else p.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(n);return S.pageIndex!=null&&Yt(c,{x:S.contentPosition[0],y:S.contentPosition[1]},g?n:null),this._updatePageInfoView(n,S),b},t.prototype._pageGo=function(n,i,r){var o=this._getPageInfo(i)[n];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(n,i){var r=this._controllerGroup;C(["pagePrev","pageNext"],function(c){var h=c+"DataIndex",p=i[h]!=null,f=r.childOfName(c);f&&(f.setStyle("fill",p?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),f.cursor=p?"pointer":"default")});var o=r.childOfName("pageText"),a=n.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;o&&a&&o.setStyle("text",q(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(n){var i=n.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=Mf[a],l=Tf[a],u=this._findTargetItemIndex(i),c=r.children(),h=c[u],p=c.length,f=p?1:0,d={contentPosition:[r.x,r.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=x(h);d.contentPosition[a]=-g.s;for(var v=u+1,y=g,m=g,_=null;v<=p;++v)_=x(c[v]),(!_&&m.e>y.s+o||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var v=u-1,y=g,m=g,_=null;v>=-1;--v)_=x(c[v]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(w){if(w){var S=w.getBoundingRect(),M=S[l]+w[l];return{s:M,e:M+S[s],i:w.__legendDataIndex}}}function b(w,S){return w.e>=S&&w.s<=S+o}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var i,r=this.getContentGroup(),o;return r.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===n&&(i=s)}),i??o},t.type="legend.scroll",t})(hx);function wO(e){e.registerAction("legendScroll","legendscroll",function(t,n){var i=t.scrollDataIndex;i!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(r){r.setScrollDataIndex(i)})})}function SO(e){jn(dx),e.registerComponentModel(xO),e.registerComponentView(bO),wO(e)}function MO(e){jn(dx),jn(SO)}function yx(e,t,n){var i=ce.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}function If(e){return!e.__cursors.get(Qg)}function mx(e){var t=e.__cursors.get(Qg);return{startIdx:t?t.startIdx:0,endIdx:t?t.endIdx:0}}var _x=(function(e){F(t,e);function t(n,i,r){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=vs,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0};var a;r=r||Fa,typeof n=="string"?a=yx(n,i,r):j(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(Bf(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=i,o.dpr=r,o}return t.prototype.afterBrush=function(){this.__prevIdx=mx(this)},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=yx("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},t.prototype.createRepaintRects=function(n,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new Q(0,0,0,0);function c(x){if(!(!x.isFinite()||x.isZero()))if(a.length===0){var b=new Q(0,0,0,0);b.copy(x),a.push(b)}else{for(var w=!1,S=1/0,M=0,T=0;T<a.length;++T){var k=a[T];if(k.intersect(x)){var I=new Q(0,0,0,0);I.copy(k),I.union(x),a[T]=I,w=!0;break}else if(l){u.copy(x),u.union(k);var A=x.width*x.height,D=k.width*k.height,L=u.width*u.height,P=L-A-D;P<S&&(S=P,M=T)}}if(l&&(a[M].union(x),w=!0),!w){var b=new Q(0,0,0,0);b.copy(x),a.push(b)}l||(l=a.length>=s)}}for(var h=mx(this),p=h.startIdx;p<h.endIdx;++p){var f=n[p];if(f){var d=f.shouldBePainted(r,o,!0,!0),g=f.__isRendered&&(f.__dirty&oe||!d)?f.getPrevPaintRect():null;g&&c(g);var v=d&&(f.__dirty&oe||!f.__isRendered)?f.getPaintRect():null;v&&c(v)}}for(var y=this.__prevIdx,p=y.startIdx;p<y.endIdx;++p){var f=i[p],d=f&&f.shouldBePainted(r,o,!0,!0);if(f&&(!d||!f.__zr)&&f.__isRendered){var g=f.getPrevPaintRect();g&&c(g)}}var m;do{m=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var _=p+1;_<a.length;)a[p].intersect(a[_])?(m=!0,a[p].union(a[_]),a.splice(_,1)):_++;p++}}while(m);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(n,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=n+"px",a.height=i+"px"),o.width=n*r,o.height=i*r,s&&(s.width=n*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(n,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,h=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/h,l/h));var f=this.domBack;function d(g,v,y,m){if(a.clearRect(g,v,y,m),i&&i!=="transparent"){var _=void 0;if(ga(i)){var x=i.global||i.__width===y&&i.__height===m;_=x&&i.__canvasGradient||Rp(a,i,{x:0,y:0,width:y,height:m}),i.__canvasGradient=_,i.__width=y,i.__height=m}else Gx(i)&&(i.scaleX=i.scaleX||h,i.scaleY=i.scaleY||h,_=Np(a,i,{dirty:function(){p.setUnpainted(),p.painter.refresh()}}));a.save(),a.fillStyle=_||i,a.fillRect(g,v,y,m),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(f,g,v,y,m),a.restore())}!r||u?d(0,0,s,l):r.length&&C(r,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(Qe),xx=1e5,Yi=314159,kf=void 0,TO=1,Cf=2;function IO(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function kO(e,t){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function bx(e,t,n,i){var r=new _x(e,t,t.dpr);return r.zlevel=n,r.zlevel2=i,r.__builtin__=!0,Sx(r),r}function Sx(e){e.__cursorStack=[],e.__cursors=$()}function CO(e){return e.startIdx=e.drawIdx=e.endIdx=e.endIdxNew=0,e.used=!1,e.first=e.last=NaN,e.notClearIdx=-1,e}function DO(e,t){var n=e.__cursors,i=+t;return n.get(i)||(e.__cursorStack.push(i),n.set(i,CO({key:i})))}function Yl(e,t){for(var n=e.__cursorStack,i=0;i<n.length;i++)t(e.__cursors.get(n[i]))}function Df(e,t){var n=e.layers;return n[t]||(n[t]=new Array(3))}function qt(e,t,n){for(var i=e.layerStack,r=0;r<i.length;r++){var o=i[r].zl,a=i[r].zl2,s=e.layers[o][a];(!n||(!(n&pa)||s.__builtin__)&&(!(n&Af)||!s.__builtin__)&&(!(n&Mx)||s!==e.hoverlayer))&&t(s,o,a,r)}}var pa=1,Af=2,Mx=4,Zl=pa|Mx,AO=(function(){function e(t,n,i,r){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=N({},i||{}),this.dpr=i.devicePixelRatio||Fa,this._singleCanvas=o,this.root=t;var a=t.style;if(a&&(Bf(t),t.innerHTML=""),this.storage=n,this._prevDisplayList=[],o){var s=t,l=s.width,u=s.height;i.width!=null&&(l=i.width),i.height!=null&&(u=i.height),this.dpr=i.devicePixelRatio||1,s.width=l*this.dpr,s.height=u*this.dpr,this._width=l,this._height=u;var c=bx(s,this,Yi,vs);c.initContext(),this._insertLayer(c,Yi,vs,!0),this._domRoot=t}else{this._width=Il(t,0,i),this._height=Il(t,1,i);var h=this._domRoot=kO(this._width,this._height);t.appendChild(h)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var n;t&&!j(t)?n={paintAll:!!t}:n=t||{};var i=Y(n.refresh,!0),r=Y(n.refreshHover,!1);if(r&&(this._hoverLayerDirty=Cf),!i)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var o=this.storage.getDisplayList(!0);this._updateLayerStatus(o,n.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(o,a,this._redrawId);var s=this._backgroundColor;return qt(this._i,function(l,u,c,h){l.refresh&&l.refresh(h===0?s:null)},Af),this._opts.useDirtyRect&&(this._prevDisplayList=o.slice()),this},e.prototype._paintHoverList=function(t){var n=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=kf,i!==kf&&(!n&&i===Cf&&(n=this._i.hoverlayer=this._ensureLayer(xx)),!!n)){n.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o,a=0,s=t.length;a<s;a++){var l=t[a];if(l.__inHover){o||(o=n.ctx,o.save());var u=l.__hoverStyle,c=void 0;u&&(c=l.style,l.style=u),Hi(o,l,r),u&&(l.style=c)}}o&&(Br(o,r),o.restore())}},e.prototype.getHoverLayer=function(){return this._ensureLayer(xx)},e.prototype.paintOne=function(t,n){P_(t,n)},e.prototype._paintList=function(t,n,i){if(this._redrawId===i){var r=this._doPaintList(t,n);if(this._needsManuallyCompositing&&this._compositeManually(),r)qt(this._i,function(a){a.afterBrush&&a.afterBrush()},Zl),this._paintHoverList(t);else{var o=this;_l(function(){o._paintList(t,n,i)})}}},e.prototype._compositeManually=function(){var t=this._ensureLayer(Yi).ctx,n=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,n,i),qt(this._i,function(r){r.virtual&&t.drawImage(r.dom,0,0,n,i)},pa)},e.prototype._doPaintList=function(t,n){var i=this,r=!0;return qt(this._i,function(o){var a=!1;if(Yl(o,function(h){(h.drawIdx<h.endIdx||h.notClearIdx>=0)&&(a=!0)}),!(!a&&!o.__dirty)){var s=i._opts.useDirtyRect&&!If(o)?o.createRepaintRects(t,n,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(o.__dirty){u=!1,o.__dirty=!1;var c=o.zlevel===l.zl&&o.zlevel2===l.zl2?i._backgroundColor:null;o.clear(!1,c,s)}Yl(o,function(h){var p=i._paintPerCursor(o,h,t,s,u);r=r&&p})}},Zl),nt.wxa&&qt(this._i,function(o){o&&o.ctx&&o.ctx.draw&&o.ctx.draw()}),r},e.prototype._paintPerCursor=function(t,n,i,r,o){var a=t.ctx;if(r)if(!r.length)n.drawIdx=n.endIdx;else for(var s=this.dpr,l=0;l<r.length;++l){var u=r[l];a.save(),a.beginPath(),a.rect(u.x*s,u.y*s,u.width*s,u.height*s),a.clip(),this._paintPerCursorInRect(t,n,i,u,o),a.restore()}else a.save(),this._paintPerCursorInRect(t,n,i,null,o),a.restore();return n.drawIdx>=n.endIdx},e.prototype._paintPerCursorInRect=function(t,n,i,r,o){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:o}},s=t.ctx,l=If(t),u=l&&ce.getTime(),c=n.drawIdx,h=n.notClearIdx,p=h>=0?Math.min(h,c):c;p<n.endIdx;p++){var f=i[p];if(!(p<c&&!f.notClear)){if(f.__inHover&&(this._hoverLayerDirty=Cf),r!=null){var d=f.getPaintRect();d&&d.intersect(r)&&(Hi(s,f,a),f.setPrevPaintRect(d))}else Hi(s,f,a);if(l){var g=ce.getTime()-u;if(g>15){p++;break}}}}Br(s,a),n.drawIdx=Math.max(p,c)},e.prototype.getLayer=function(t,n){return this._ensureLayer(t,0,n)},e.prototype._ensureLayer=function(t,n,i){n=n||0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(t=Yi,n=0);var o=Df(this._i,t)[n];return o||(o=bx("zr_"+t+"."+n,this,t,n),this._layerConfig[t]&&pt(o,this._layerConfig[t],!0),(i||r&&t!==Yi)&&(o.virtual=!0),this._insertLayer(o,t,n,!1),o.initContext()),o},e.prototype.insertLayer=function(t,n){this._insertLayer(n,t,0,!1)},e.prototype._insertLayer=function(t,n,i,r){var o=this._i,a=o.layers,s=o.layerStack,l=this._domRoot,u=null;if(!(a[n]&&a[n][i])&&IO(t)){for(var c=s.length,h=0;h<c&&(s[h].zl<n||s[h].zl===n&&s[h].zl2<i);)h++;if(h>0&&(u=Df(o,s[h-1].zl)[s[h-1].zl2]),s.splice(h,0,{zl:n,zl2:i}),Df(o,n)[i]=t,!r&&!t.virtual)if(u){var p=u.dom;p.nextSibling?l.insertBefore(t.dom,p.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);t.painter||(t.painter=this)}},e.prototype.eachLayer=function(t,n){return qt(this._i,function(i,r){t.call(n,i,r)})},e.prototype.eachBuiltinLayer=function(t,n){return qt(this._i,function(i,r){t.call(n,i,r)},pa)},e.prototype.eachOtherLayer=function(t,n){return qt(this._i,function(i,r){t.call(n,i,r)},Af)},e.prototype.getLayers=function(){var t={};return qt(this._i,function(n,i,r){t[n.id]=n}),t},e.prototype._updateLayerStatus=function(t,n){var i=this;if(i._singleCanvas)for(var r=1;r<t.length;r++){var o=t[r];if(o.zlevel!==t[r-1].zlevel||o.incremental){i._needsManuallyCompositing=!0;break}}qt(i._i,function(v){v.__dirty=!1,Yl(v,function(y){y.used=!1,y.endIdxNew=0,y.notClearIdx=-1})},Zl);for(var a,s=null,l=null,u=!1,c=0,h=t.length;c<h;c++){var o=t[c],p=o.zlevel,f=o.incremental,d=void 0;if(a!==p&&(a=p,u=!1),f?(u=!0,d=cM):d=u?uM:vs,(!s||p!==s.zlevel||d!==s.zlevel2)&&(s=i._ensureLayer(p,d),l=null,!s.__builtin__)){eu("ZLevel "+p+" has been used by unknown layer "+s.id);continue}if((!l||f!==l.key)&&(l=DO(s,f),!l.used))if(l.used=!0,!n&&l.first===o.id){var g=c-l.startIdx;l.startIdx=c,l.drawIdx+=g,l.endIdx+=g}else s.__dirty=!0,l.first=o.id,l.startIdx=l.drawIdx=c,l.endIdx=c+1;l.endIdxNew=c+1,o.__dirty&oe&&!o.__inHover&&((!f||!o.notClear&&c<l.drawIdx)&&(s.__dirty=!0),f&&o.notClear&&l.notClearIdx<0&&(l.notClearIdx=c))}qt(i._i,function(v){for(var y=v.__cursorStack,m=v.__cursors,_=y.length-1;_>=0;_--){var x=m.get(y[_]);if(!x.used)v.__dirty=!0,m.removeKey(y[_]),y.splice(_,1);else{var b=x.endIdxNew;(If(v)?b<x.drawIdx:b!==x.endIdx||!b||t[b-1].id!==x.last)&&(v.__dirty=!0),x.endIdx=x.endIdxNew,x.last=b?t[b-1].id:NaN}}v.__dirty&&(Yl(v,function(w){w.drawIdx=w.startIdx}),i._hoverLayerDirty===kf&&(i._hoverLayerDirty=TO))},Zl)},e.prototype.clear=function(){return qt(this._i,function(t){t.clear(),Sx(t)},pa),this},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,qt(this._i,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var i=this._layerConfig;i[t]?pt(i[t],n,!0):i[t]=n,qt(this._i,function(r,o){pt(r,i[o],!0)})}},e.prototype.delLayer=function(t){for(var n=this._i.layerStack,i=this._i.layers,r=n.length-1;r>=0;r--){var o=n[r];if(o.zl===t){var a=i[t][o.zl2];if(a.__builtin__)continue;if(n.splice(r,1),i[t][o.zl2]=void 0,!a.virtual){var s=a.dom.parentNode;s&&s.removeChild(a.dom)}}}},e.prototype.resize=function(t,n){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;t!=null&&(r.width=t),n!=null&&(r.height=n),t=Il(o,0,r),n=Il(o,1,r),i.style.display="",(this._width!==t||n!==this._height)&&(i.style.width=t+"px",i.style.height=n+"px",qt(this._i,function(a){a.resize(t,n)}),this.refresh({paintAll:!0})),this._width=t,this._height=n}else{if(t==null||n==null)return;this._width=t,this._height=n,this._ensureLayer(Yi).resize(t,n)}return this},e.prototype.clearLayer=function(t){C(this._i.layers[t],function(n){n&&!n.__builtin__&&n.clear()})},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Yi][0].dom;var n=new _x("image",this,t.pixelRatio||this.dpr);n.initContext(),n.clear(!1,t.backgroundColor||this._backgroundColor);var i=n.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=n.dom.width,o=n.dom.height;qt(this._i,function(h){h.__builtin__?i.drawImage(h.dom,0,0,r,o):h.renderToCanvas&&(i.save(),h.renderToCanvas(i),i.restore())})}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Hi(i,c,a)}Br(i,a)}return n.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e})();function LO(e){e.registerPainter("canvas",AO)}jn([ZC,e2,dD,RP,MO,fO,tO,LO]);export{dL as init};
|